Thank you Paul.
In this case, the table shows me, as you already pointed, the following explanation for it; just as I need.
ADCON1 REGISTER for bit3-0: 1110
Meaning that:
AN7=Digital
AN6=Digital
AN5=Digital
AN4=Digital
AN3=Digital
AN2=Digital
AN1=Digital
AN0=Analog
Vref+=Vdd
Vref-=Vss
After setting the channels and the Vref with Bit3-0 as above, then I need to set Bit7 as 1=Right justified. Then, Bit6-5-4 are left untouched as they are 0.
Finally, I come up with an ADCON1 register as follows.
ADCON1=%10001110
I also set ADCON0= %11000001 to match ADCON1.
and it works.
Thanks again for the guidance Paul.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Bookmarks