cancel
Showing results for 
Search instead for 
Did you mean: 

Save to EEProm at power down STM32F030R8

Nimit Vachhani
Associate III

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 ?

1 REPLY 1
berendi
Principal

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.