2022-05-03 01:06 AM
Is there any code example on how to perform the VBAT/3 measurement. I need to measure my battery level (1.8V-2.7V) which I connect to VBAT pin. VDD and the rest of the micro supply pins are coneccted to a DCDC output which gives 3.3V.
Solved! Go to Solution.
2022-05-03 07:13 AM
It's identical to taking measurement on any other ADC channel, except you have to set ADC_CCR.VBATEN before starting the measurement. Read Battery voltage monitoring subchapter in RM, and VBAT monitoring characteristics in the Datasheet.
JW
2022-05-03 07:13 AM
It's identical to taking measurement on any other ADC channel, except you have to set ADC_CCR.VBATEN before starting the measurement. Read Battery voltage monitoring subchapter in RM, and VBAT monitoring characteristics in the Datasheet.
JW
2022-05-03 07:17 AM
Got it, thanks!