Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] EEPROM writing with elec. noise

2006-04-07 by Robert Adsett

At 10:39 AM 4/6/2006 -0500, Gary J. Melvin wrote:
>My client has another product in a similar application which has been
>causing them a lot of grief with random EEPROM write errors, presumably
>due to noise glitches.  (They use the built-in Brown Out feature  -
>both trigger settings produced the same results.)  Obviously, this needs
>to be solved with this new product.

<snip>

>I'm open to suggestions.  If you have a better approach or a
>bullet-proof algorithm, please enlighten me.

Add several copies of the data with some sort of check sum or guard.  That 
gives you the chance of recovering from an error or at least (and more 
importantly) noticing it.  With only three bytes a simple mirrored copy 
might be the simplest effective method.  An xor of the data with its mirror 
will be zero if they are valid.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

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.