I used internal voltage reference to read the battery voltage of my circuit (Short Circuit Probe).
If you read the Vdd voltage by using 2 resistors as voltage dividor, would that be work?
But maybe I miss something from your question.
Here the function I created (Sorry Anobium, I was using my own ADC routine and not the build in from GCBasic):
I cross my fingers that you will find the way to test Vdd. If you are looking for more content round the ADC management and how I used it, you can have a look in the full source code of my project.
The source code is documented line by line, so I guess you will be able to better understand how I used it myself and how I was able shutoff the circuitry ordered from the microcontroller.
hello guys,
I need your help :)
I can't find a way to measure Vdd and compare it to a voltage reference generated by the PIC.
The main objective is to set off every output if a short circuit happen in a any output circuit.
So I need to detect when Vdd is dropping to low..
im using PIC18F24Q10
please help me
I'm frustrated on chatgpt :)
José
Last edit: Jose Houle 2026-02-08
Hello,
I used internal voltage reference to read the battery voltage of my circuit (Short Circuit Probe).
If you read the Vdd voltage by using 2 resistors as voltage dividor, would that be work?
But maybe I miss something from your question.
Here the function I created (Sorry Anobium, I was using my own ADC routine and not the build in from GCBasic):
:-)
btw, probably you noticed, the PIC used in my circuit is a PIC16F1825
Hello Fabrice
Thank you so much for your reply !!
I can't wait to try it later today !!
Thanks !!!
Hi Jose,
I cross my fingers that you will find the way to test Vdd. If you are looking for more content round the ADC management and how I used it, you can have a look in the full source code of my project.
The source code is documented line by line, so I guess you will be able to better understand how I used it myself and how I was able shutoff the circuitry ordered from the microcontroller.
The full project page is on Elektor here:
https://www.elektormagazine.com/labs/short-circuit-probe
Or on PCBWay here:
https://www.pcbway.com/project/shareproject/Short_Circuit_Probe_f5e16641.html
(I guess):
You can set the PIC18F24Q10 ADC to use VDD as reference, then use the ADC to measure one of the internal voltage reference sources?
Play with this.