Thank you for your answer, richard.
I know that RA4 is Digital I/O – Open-drain when configured as output.
I will try adcon1=6