What i am trying to accomplish is, writing data to the eeprom at the point of a power loss. I could just have it write to the eeprom every few seconds, so the program knows where it was on power-up. But this is just wearing out the eeprom.
I thought of using a flag-interrupt to measure a voltage drop then trigger a write. But it would require that pin to have read the ADC value to know that a power lose condition has occurred.
Is there a way to tie in the BROWN-OUT detection into the write command?
I thought of using a flag-interrupt to measure a voltage drop then trigger a write. But it would require that pin to have read the ADC value to know that a power lose condition has occurred.
Is there a way to tie in the BROWN-OUT detection into the write command?
Last edited: