avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] What about to clean EEPM0/1 by eeprom_write_byte()?


From: Dmitry K.
Subject: [avr-libc-dev] What about to clean EEPM0/1 by eeprom_write_byte()?
Date: Mon, 3 Mar 2008 17:18:14 +1000
User-agent: KMail/1.5

Hi.

Exclude old chips, the EEPROM module permits 3 types
of writing: clean, burn, clean_and_burn.  This is
set by 2 bits in control register.  Datasheet says,
that this bits are undefined after reset. The text
below says, that this bits are zeros after reset (?).
The ATtiny program example contains clearing of this
bits. The ATmega's program example does not contain
clearing its (?).

I tend to add the cleaning all EECR, like ATtiny's
example for all chips, where EEPM0/1 are defined.

Another point is SELFPRGEN bit: I tend confine to
note in documentation.

Opinions?

Thanks,
Dmitry.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]