2

I would like use battery backup SRAM in STM32F4 MCU. Is there some way how detect disconnected/removed battery after connecting VDD voltage (after reset)?

Yes, I can save CRC of backup SRAM in RTC backup registers, but I would like get information from some MCU register.

Thank you for your answer

BlR
  • 23
  • 4

1 Answers1

1

Vbat is connected internally to the channel 18 of the ADC. You just need to enable the bit VBATE in the CCR ADC register and convert. This channel has internal divider and the read value is 1/4 of the actual one.

0___________
  • 60,014
  • 4
  • 34
  • 74