Is this the proper way to configure AN1 for analog input in the ADCON0 register. I’m not sure how to deal with unimplemented bits. Bit’s 5 and 4 are unimplemented does that mean when I write to the ADCON0 I put 00 in them? Or is this wrong?
PIC10F220 adcon0 register
Writing to ADCON0
Code:
movlw b'10000101' ;CONFIG adc: AN1 Analog input
movwf ADCON0
It does not matter what you actually write on the unimplemented bits, they will always be read as '0'. Your code should work. And it also should work if you put