The code is only for testing A port.
Am I wrong assuming that ADCON1=7 takes care only of A0-3 ports?
Should I extend it to ADCON1=15 or ADCON1=31 to cover higher bits?
Regards,

Nick