futz
Active Member
Sounds right. I'm on my "accounting" computer, so I don't have access to datasheets right now. Must get some invoices out so I can eat next month.desaila said:I'm seeing ADCON1 = 0x07 to configure portA for digital inputs, but there's nothing under the PORTB configuration with regards to digital or analog inputs.
However, it says on a power on reset "these ports are configured as digital inputs." Then, I guess I see that there are no AD's associated with PORTB in the final summary of regs at the bottom of PORTB's section. So, ADCON1 = 0x07 then.
EDIT: Just looked. What you want is on page 182 of the datasheet. 0x06 will work, but so will 0x07 as the 0-bit is a don't-care in this case.
Last edited: