IF A2DV = 0 THEN Potpos = 1
a small scale translating attempt to avoid value "0" ... probably !
... I know ... he could have written
POTPOS = A2DV MAX 1 ...
Alain
IF A2DV = 0 THEN Potpos = 1
a small scale translating attempt to avoid value "0" ... probably !
... I know ... he could have written
POTPOS = A2DV MAX 1 ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Just a guess...
This makes the ADC right justified
This will make it left justified. Left justified is "normal"for 8 bit.Code:ADCON1=%10000010 '?? Setup to read analog inputs
Code:ADCON1=%00000010
Dave
Always wear safety glasses while programming.
Thanks Guys!
I've made it work. I changed ADCON1=%10000010 to ADCON1=%00000010 and this fixed the problem. So, your guess was exactly correct!
Well, it was an educated guess....
That is why I asked about the chip being used so I could look at the correct data sheet
Have FUN!!!
Dave
Always wear safety glasses while programming.
Bookmarks