390
XMEGA B [DATASHEET]
8291B–AVR–01/2013
30.11.5.6 Erase EEPROM
The erase EEPROM command is used to erase all locations in all EEPROM pages that are loaded and tagged in the
EEPROM page buffer.
1.
Set up the NVM CMD register to the erase EPPROM command.
2.
Set the CMDEX bit in the NVM CTRLA register. This requires the timed CCP sequence during self-programming.
The BUSY flag in the NVM STATUS register will be set until the operation is finished.
30.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.
30.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 production programming.
For external programming, the device is accessed through the PDI and PDI controller, and using either the JTAG or PDI
physical connection. For details on PDI and JTAG and how to enable and use the physical interface, refer to
and Debug Interface” on page 408
. The remainder of this section assumes that the correct physical connection to the
shows the PDI memory space and the base address for each memory space in the device.
Summary of Contents for XMEGA B
Page 320: ...320 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 12 7 segments Character Table...
Page 321: ...321 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 13 14 segments Character Table...
Page 322: ...322 XMEGA B DATASHEET 8291B AVR 01 2013 Table 25 14 16 segments Character Table...
Page 412: ...412 XMEGA B DATASHEET 8291B AVR 01 2013...
Page 413: ...413 XMEGA B DATASHEET 8291B AVR 01 2013...