Thanks Ioannis. I just replied while you were sending your reply.
The first lines of the AN1072 say:
INTRODUCTION
This application note describes how to measure the voltage supplied to a PIC ® microcontroller, VDD . The device used in preparation of this application note was the PIC16F690. The ability to measure VDD lends itself to battery applications where VDD is likely to fall over time. In this application note, an example program is provided with routines to measure VDD.
THEORY OF OPERATION
Select Microchip PIC microcontrollers contain a 0.6V or 1.2V internal reference that is selectable as an input to
the ADC module. This provides a fixed reference to allow measurement of VDD . The PIC16F690 was chosen for this feature.
A:- I can't still find a code example in this AN.
B:- Can this AN be wrong?
Right; on MICROCHIP's website, I could find two ASM code examples....but I don't know machine language or I wouldn't probably be on this forum
But here they are (ZIPfile) so if somebody want's to have a look and "translate" the essential stuff in PICBASIC, it would be great.
In case I can't really use the 0,6 reference voltage, I plan to make my circuit looking like this:
Attachment 8058
Bookmarks