Skip to main content
Nimit Vachhani
Associate III
July 9, 2020
Question

Save to EEProm at power down STM32F030R8

  • July 9, 2020
  • 1 reply
  • 768 views

Greetings,

I want to save a variable just before power down. There is PVD feature but it is not supported in STM32F030R8... Is there any other work around for the same ?

This topic has been closed for replies.

1 reply

berendi
Principal
July 9, 2020

The ADC has an analog watchdog, you can use it in two ways for this purpose.

Measure the internal Vrefint and trigger an interrupt when it becomes too high, meaning that VDDA has started dropping.

You would have more time to react if you can measure the input of the external voltage regulator (if there is one) through a voltage divider (if the input voltage can be > 4 V) and an ADC pin, set the analog watchdog to interrupt when it is too low.