Hello,
I am trying to make sense out of the pic16f88 spec sheet , section 12 is the section for the A/D module. Three of the registers (ANSEL, ADCON0 and ADCON1)
In brief they say:
ANSEL= Control the functions, has analog input bit select, so select the port you want to have input, ... Ok not complicated so far
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
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 ?
Thanks,
its a lot of questions.. well kinda , some of them I have been wandering for a long time so if someone can clear this up for me ,
K
Bookmarks