Hello,
I want to set up 4 of the 13 availiable A2D converter pins on my 18F4620. Can someone clarrify for me......

If I want to set up AN0, AN1, AN4 & AN12 (8 bit resolution only) and leave every other pin on PORTA & B as digital input/ouputs.....

will this do the trick?


ADCON1.0=0
ADCON1.1=0
ADCON1.4=0
ADCON1.12=0

'tristates will already be defined above