Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: EEPROM write and power failure

2008-05-01 by Tim Gilbert

Just wanted to thank everyone for the ideas and let you know which direction we're heading.  Our original plan was to write the data every 3 seconds into a wear-leveling buffer.  However, since the hardware is still in flux, we're increasing our power supply capacitors to provide more time after the power failure.  We already had INT0 wired up to indicate power failure; so the plan is to NOT write the data until the interrupt is triggered.  The interrupt routine will then write the data to EEPROM and enter a while(1) loop, waiting for the power to die.

The flip side, is making sure the processor waits long enough on power up for the capacitors to charge (in our case, it shouldn't be a problem) before starting anything that would require storage on shutdown.


Thanks again,


Tim

[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.