my code just gives me the same output, I'm trying to use 4 7 segment displays can you all help me I am useing a 18f452
clear
define osc 20
include "modedefs.bas"
trisa=%11111111 ' a as input ...
Type: Posts; User: mystified; Keyword(s):
my code just gives me the same output, I'm trying to use 4 7 segment displays can you all help me I am useing a 18f452
clear
define osc 20
include "modedefs.bas"
trisa=%11111111 ' a as input ...
OK , I put clock back to 3 but used upper chase in the define statement and that is what made it work
Thank You very much.
cannot find clock 3 in datasheet it now works thank you
I thank you of your time
The code
define adc_bits 10 'adc settings
define adc_clock 3 ' adc setting
define adc_sampleus 50 'adc setting
should set up the a the analog to digital...
clean
define adc_bits 10 'adc settings
define adc_clock 3 ' adc setting
define adc_sampleus 50 'adc setting
intcon.6=1 'gloabal interrupt
intcon.7=1 'gloabal interrupt
pie1.6=1 ...
i want to set up a brushless dc motor control,I need to setup capxcon to input state change, (hall sensor as the inputs)
rest tmr5 if a change on cap1 or cap2 or cap3, us a ic interupst and ovdcond...
trying to us motion feedback module with capture on state mode on pins 3,4,5
need help with 3-input caputer transtion detector
capture
ansel0=%00000000 'all digital
trisa=%11111111 'set all port a pins to input cap1,cap2,cap3
trisb=%00000000 'set all port b pins as output
t1 var word
t2 var word
t3 var word...
duty var word
ansel0=%00000000 'all digital
'ansel1=%00000000
trisa=%11111111 'set all port a pins to input cap1,cap2,cap3
trisb=%00000000 'set all port b pins as output
portb=%00000000...
Thanks did not know that ccp and pwm0-5 are not the same pins that helped now how about setuo for timer 2.
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *...
does mplab use pic basic or assembly code?
are there books on microcode studio plus?
what does nolist mean?
why will it not compile?
It come out of the include file.
I'm a newbee.