Yahoo Groups archive

AVR-Chat

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

Message

RE: [AVR-Chat] Saving in EEPROM without corruption?

2004-09-20 by Dave VanHorn

At 10:25 PM 9/19/2004, Larry Barello wrote:

>Use an external reset chip.  This is a well documented problem with first
>generation AVR chips.  If you can't then a) don't use the first word of
>EEPROM and b) always zero the EEAR register between operations.

I wrote some code for the 8515 specifically to test for that old EE corruption issue. 
I never did get a hit. 

I suspect a lot of that was people starting writes immediately before a reset, or brownout. 

I do agree, set EEAR to zero when it's not in use, and don't use location 0.
It's cheap insurance.

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.