Using Vbat as ADC for battery level monitoring
I'm updating an old PCB design that used the STM32L432KB. The new design is using the STM32L452CE which has the Vbat pin.
In the old design I used a voltage divider across the battery and connected it to an ADC pin to periodically check the battery level.
In the new design instead of using a voltage divider to an ADC pin can I use a connection from the positive terminal of the battery straight to the Vbat pin?
I don't wish to use Vbat as a backup power supply or any of the other feature, just as an ADC input since the board is to be powered with the battery only.
#adc #vbat #battery-life #battery