cancel
Showing results for 
Search instead for 
Did you mean: 

VBAT/3 ADC internal input measurement

AZube.2
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

Got it, thanks!