you really sure ???
I' not ....ADCON1 =%00101110 'Set PORTA analog and right justify result
Alain
you really sure ???
I' not ....ADCON1 =%00101110 'Set PORTA analog and right justify result
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 " !!!
*****************************************
Post editor somewhat " Rock and Roll " ... Heeeeellllp, Lester
REGISTER 11-2: ADCON1 REGISTER (ADDRESS 9Fh)bit 7ADFM: A/D Result Format Select bit1 = Right justified. Six (6) Most Significant bits of ADRESH are read as ‘0’.0 = Left justified. Six (6) Least Significant bits of ADRESL are read as
************************************************** ***********************
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 " !!!
*****************************************
Ace, thanks, I've been using a Microchip A/D addendum manual I downloaded years ago and I guess it sort of worked because I never noticed severe problems. (http://ww1.microchip.com/downloads/e...Doc/31023a.pdf)
I'm going to play with the ADCON1 settings shown in the proper data sheet for the 16F877 this evening.
JRudd
Bookmarks