Almost, not quite.ANSEL= Control the functions, has analog input bit select, so select the port you want to have input, ... Ok not complicated so far
ANSEL controls the FUNCTION of the pin selected. It sets the FUNCTION of the pin as either digital or analog.
Correct, you can only SAMPLE one analog port into ADRES (the result register) at a time, but you can SAMPLE all analog ports sequentially by changing the channel...ADCON0=Controls the operations (bits 5:3) analog channel select bit, eee didn't I choose my analog ports in already in ANSEL? I am not sure about this section. Also it allows only for one port setting at a time. Therefore I cannot use two analog port at the same time ? doesn,T make sense
In other chips, those bits might be implemented for something else. And if you read a bit farther down in that thread ( and a little bit between the lines ), you'll see that the poster of that thread really didn't understand those register's functions either.ADCON1= Controls the functions , I have one question about this. bit3:0 are unimplemented (Read as zeros the specsheet says) . What does that mean?
The reason I ask is I keep seeing people adding 1's in these bits
example: http://www.picbasic.co.uk/forum/show...t=ADCON1+16f88
ADCON1 = %10000010
why bother putting a 1 in bit 1 if it is going to be read as zero, Am I missing something ?
Bookmarks