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 Larry Barello

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.

Best, upgrade to a tiny26 or some other chip with a built in BOD.  I have
never had EEPROM problems with the new mega & tiny chips.

-----Original Message-----
From: Mark Jordan

	I have a circuit using an AT90S2313 working on a very noisy
environment and subject to program 'crashes' sometimes.
	The Watchdog is very efficient recovering from crashes, but
I'm having a corruption on the EEPROM contents.
	What is the best method of saving some bytes (2) in the internal
EEPROM and getting them back without corruption? Is there some sort
of FEC applied to memories?

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.