These are the registers used with the A/D converter

PIC 18F2550

Select the A/D inputs with the ADCON1 register. So to select AN0 and AN1 as analogue inputs with voltage references of PIC supply...