at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 19

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
5.3.3
5.3.4
7734M–AVR–03/10
The EEPROM Data Register – EEDR
The EEPROM Control Register – EECR
• Bits 15..9 – Reserved Bits
These bits are reserved bits in the AT90PWM81 and will always read as zero.
• Bits 8..0 – EEAR8..0: EEPROM Address
The EEPROM Address Registers – EEARH and EEARL specify the EEPROM address in the 512 bytes
EEPROM space. The EEPROM data bytes are addressed linearly between 0 and 511. The initial value of
EEAR is undefined. A proper value must be written before the EEPROM may be accessed.
• Bits 7..0 – EEDR7.0: EEPROM Data
For the EEPROM write operation, the EEDR Register contains the data to be written to the EEPROM in
the address given by the EEAR Register. For the EEPROM read operation, the EEDR contains the data
read out from the EEPROM at the address given by EEAR.
• Bits 7 – NVMBSY: Non-volatile memory busy
The NVMBSY bit is a status bit that indicates that the NVM memory (FLASH, EEPROM, Lock-bits) is
busy programming. Once a program operation is started, the bit will be set and it remains set until the pro-
gram operation is completed.
Bits 6 – EEPAGE: EEPROM page access (multiple bytes access mode)
Writing EEPAGE to one enables the multiple bytes access mode. That means that several bytes can be
programmed simultaneously into the EEPROM. When the EEPAGE bit has been written to one, the EEP-
AGE bit remains set until an EEPROM program operation is completed. Alternatively the bit is cleared
when the temporary EEPROM buffer is flushed in software (see EEPMn bits description). Any write to
EEPAGE while EEPE is one will be ignored. See Section “Program multiple bytes in one Atomic opera-
tion”, page 21 for details on how to load data into the temporary EEPROM page and the usage of the
EEPAGE bit.
• Bits 5..4 – EEPM1 and EEPM0: EEPROM Programming Mode Bits
The EEPROM Programming mode bit setting defines which programming action that will be triggered
when writing EEWE. It is possible to program data in one atomic operation (erase the old value and pro-
gram the new value) or to split the Erase and Write operations in two different operations. The
Programming times for the different modes are shown in
Read/Write
Initial Value
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
R
R/W
0
X
7
EEDR7
R/W
0
7
NVMBSY
R/W
X
R
R/W
0
X
6
EEPAGE
R/W
X
6
EEDR6
R/W
0
R
R/W
0
X
5
EEPM1
R/W
X
5
EEDR5
R/W
0
R
R/W
0
X
4
EEDR4
R/W
0
4
EEPM0
R/W
X
R
R/W
0
X
3
EERIE
R/W
0
3
EEDR3
R/W
0
Table
R
0
X
R/W
2
EEMWE
R/W
0
2
EEDR2
R/W
0
5-1. While EEWE is set, any write to
1
EEDR1
R/W
0
R
R/W
0
X
1
EEWE
R/W
X
AT90PWM81
X
0
EEDR0
R/W
0
0
EERE
R/W
0
R/W
R/W
X
EEDR
EECR
19

Related parts for at90pwm81-16se