Re: [AVR-Chat] RE: ATmega88PA EEPROM Memory Life
2012-12-12 by Clark Martin
On Dec 12, 2012, at 2:04 PM, Benny Smith wrote: > The Mega88PA data sheet gives the EEPROM a write/erase lifetime of 100,000 > cycles. > > I assume that this applies byte-by-byte to the EEPROM contents. > > In other words, I assume that if only one of the 88PA's 512,000 EEPROM bytes > is changed, then only that byte (i.e., its 8 memory-bit locations) has used > up one of its 100,000 cycles. > > All other EEPROM bytes, which were not changed, still have their full > lifetime of 100,000 cycles available. > > So, if I wanted to save a byte frequently, I could use up the 100,000 cycles > at one byte address and then switch to another byte address to store the > next 100,000 repetitions of my byte-save operation. > > Is that correct? Yes. You'd either want to use another byte(s) location to indicate which EEPROM location has the current data or find out what the excessive writing failure mode is (0 or 1) then when the current location is worn out and it fails to pass a verification read then write it to either all 0s or all 1s and put the data in the next location in sequence. 0x00 or 0xFF would need to be reserved and not represent actual data. [Non-text portions of this message have been removed]