How secure is the EEPROM during a byte change?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How secure are the rest of the the EEPROM bytes while changing one byte (erasing, erase+writing och only writing)?

 

If I get a power down while changing one byte what could happen to the other bytes in EEPROM? Is it only the addressed byte that can get corrupt?

 

Is this defined somewhere?

 

 

This topic has a solution.
Last Edited: Thu. Nov 1, 2018 - 07:09 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MASIP wrote:
If I get a power down while changing one byte what could happen to the other bytes in EEPROM? Is it only the addressed byte that can get corrupt? Is this defined somewhere?

There are many threads on this forum about EEPROM corruption.  The short answer is that the brown-out detector, properly set and used, will prevent EEPROM corruption when supply power drops and EEAR (the usual culprit) drops to 0.

 

Doesn't the datasheet have a section entitled Preventing EEPROM Corruption?   Did you look there first?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Example discussion >>before<< AVR8 models had an internal BOD:  https://www.avrfreaks.net/forum/...

 

...and after BOD introduced, with people still skeptical of EEPROM.  But apparently not any other AVR8 subsystem...

https://www.avrfreaks.net/forum/...

 

And many more -- perhaps digest some of those.

https://www.avrfreaks.net/forum/...

https://www.avrfreaks.net/forum/...

https://www.avrfreaks.net/forum/...

https://www.avrfreaks.net/forum/...

...

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.