And if the power goes back up without really going all the way down, you'll be stuck in your while(1) loop :-) > To: AVR-Chat@yahoogroups.com > From: tim@jeminnovation.com > Date: Wed, 30 Apr 2008 22:38:07 -0600 > Subject: Re: [AVR-Chat] Re: EEPROM write and power failure > > 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] > > > ------------------------------------ > > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/AVR-Chat/ > > Your email settings: > Individual Email | Traditional > > To change settings online go to: > http://groups.yahoo.com/group/AVR-Chat/join > (Yahoo! ID required) > > To change settings via email: > mailto:AVR-Chat-digest@yahoogroups.com > mailto:AVR-Chat-fullfeatured@yahoogroups.com > > To unsubscribe from this group, send an email to: > AVR-Chat-unsubscribe@yahoogroups.com > > Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ >
Message
RE: [AVR-Chat] Re: EEPROM write and power failure
2008-05-01 by Cat C
Attachments
- No local attachments were found for this message.