Quote Originally Posted by Ioannis View Post
...you need to get rid of the LDO and feed a 4,5Volt battery pack to the PIC. That way you will measure the Vdd voltage in respect with the VP6 input to the ADC.
Thanks Ioannis; I now understand what you mean.

This morning, I tried to manually setup the ADC but it was always "failing" (= giving same value all time); you just explained why it didn't work

I found an example on which I based my test code here.

I'll give your example a try