Quote Originally Posted by Acetronics View Post
... and still the same AN2 ADC input leakage current tremendously increasing.
Is there any possibility that the CVRCON register is getting modified somewhere along the way?

Either intentionally ... CVRCON = %11000000

or Unintentionally ... if you have ASM in your program and are in the wrong bank when writing to address B5.

If the CVref is turned on, and the CVROE bit is set, the CVref will output on RA2/AN2/VREF-/CVREF.
<br>