Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Distributing wear on EEPROM writes?

2005-06-09 by Dave VanHorn

>
>Another thought is to use Hamming codes and write multiple copies. The
>AVR has way more EEPROM than I really need as I have only about 20 bytes
>total of parameters, plus need for a summing register.

An approach I've used, is to start with it erased, and do readback 
verify on the data.
When area X fails, then you move to area Y.
To read the data, or to start again after a power failure, you scan 
till you find FFFF...FF (erased data) then you back up a notch, and 
that's the active area.

So, if you had 8 bytes to write, you'd maybe start at location $0008 
(avoiding zero)
Then when $0008-$000F wear out, you move to $0010-$0007 and so on.
It's simple and straightforward.

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.