
309
8210C–AVR–09/11
Atmel AVR XMEGA D
The BUSY flag in the NVM STATUS register will be set until the operation is finished.
24.11.5.7
Read EEPROM
The read EEPROM command is used to read one byte from the EEPROM.
1.
Load the NVM CMD register with the read EEPROM command.
2.
Load the NVM ADDR register with the address to read.
3.
Set the CMDEX bit in the NVM CTRLA register. This requires the timed CCP sequence
during self-programming.
The data byte read will be available in the NVM DATA0 register.
24.12 External Programming
External programming is the method for programming code and nonvolatile data into the device
from an external programmer or debugger. This can be done by both in-system or in mass pro-
duction programming.
For external programming, the device is accessed through the PDI and PDI controller, and using
the PDI physical connection. For details on PDI and how to enable and use the physical inter-
face, refer to
”Program and Debug Interface” on page 281
. The remainder of this section
assumes that the correct physical connection to the PDI is enabled. Doing this all data and pro-
gram memory spaces are mapped into the linear PDI memory space.
shows the PDI memory space and the base address for each memory space in the device.