You need to set
TRISA.0 = 1 to make the pin an input
TRISA.2 = 1
ADCON0 = %xxxx
ADCON1 = %xxxxx
ADCON2 = %xxxx
You will have to sort out the xxx's to suit your particular application which you have told us nothing about.
Section 19 has it all.
HTH
Brian
Bookmarks