Hi to all,

I am going to set up the PIC18F452 having a clock speed of 40 Mhz in order to read the follwing analog inputs:

> analog input connected to AN0 pin_2
> Vref+ connected to AN3 pin_5
> Vref - connected to AN2 pin_4

Question_1:
How do I have to set ADCON0 register and ADCON1 register to achieve this set up ?

Question_2:
Do I have to read ADRESL and ADRESH relevant to AN0 ? or I do have to read AN2 and AN3 register in addition to AN0?

Thanks a lot for any help
Regards,
Ambrogio