cancel
Showing results for 
Search instead for 
Did you mean: 

HAL Example how to read VBAT pin for low voltage

Elik Livnat
Associate II

I have a capacitor connected and need an example of HAL function that read register which signal that VBAT pin if low level of voltage detected.

Thank you.

1 REPLY 1

There is no simple signal for this, but STM32 which have VBAT pin usually have a connectable internal resistor divider from that pin to one ADC channel. Read the ADC chapter in Reference Manual (RM) of your STM32 model.

JW