Thankyou so much Darrel,
I must change the wires on my pcb to set AN0 in analog input
bye


Quote Originally Posted by Darrel Taylor View Post
There's no way to set ONLY AN3 as analog input on a 252.

The closest you can get is ADCON1 = %10000100 which sets AN0, AN1 and AN3 to analog mode.

If you can move that input to AN0, then you can set ONLY AN0 to analog mode with ADCON1 = %10001110.
<br>