Can someone tell me, is there a way to get the arduino to generate an interrupt on power loss?
I guess (please correct) that there's a little delay or latency between loss of power and the processor ceasing to function. All I need to do is store away a long value into EEPROM before power down so that I can restore that value on the next power up.
Currently I write the value to EEPROM every time it changes but it struck me that I don't need to do that, I only need to write before power down.
Can anyone help? Can this be done?