29.9.3 Data Polling EEPROM

When a new byte has been written and is being programmed into EEPROM, reading the address location being programmed will give the value 0xFF. At the time the device is ready for a new byte, the programmed value will read correctly. This is used to determine when the next byte can be written. This will not work for the value 0xFF, but the user should have the following in mind: As a chip-erased device contains 0xFF in all locations, programming of addresses that are meant to contain 0xFF, can be skipped. This does not apply if the EEPROM is Reprogrammed without chip-erasing the device. In this case, data polling cannot be used for the value 0xFF, and the user will have to wait at least tWD_EEPROM before programming the next byte. See table below for tWD_EEPROM value.

Table 29-14. Minimum Wait Delay Before Writing the Next Flash or EEPROM Location
SymbolMinimum Wait Delay
tWD_FUSE4.5ms
tWD_FLASH4.5ms
tWD_EEPROM9.0ms
tWD_ERASE9.0ms
Figure 29-10. Serial Programming Waveforms
Table 29-15. Serial Programming Instruction Set
Instruction Format
Instruction Byte 1Byte 2Byte 3Byte 4Operation
Programming Enable1010 11000101 0011xxxx xxxxxxxx xxxxEnable Serial Programming after RESET goes low.
Chip Erase1010 1100100x xxxxxxxx xxxxxxxx xxxxChip Erase EEPROM and Flash.
Read Program Memory0010 H0000000 aaaabbbb bbbboooo ooooRead H (high or low) data o from Program memory at word address a:b.
Load Program Memory Page0100 H0000000 xxxxxxxb bbbbiiii iiiiWrite H (high or low) data i to Program memory page at word address b. Data Low byte must be loaded before Data High byte is applied within the same address.
Write Program Memory Page0100 11000000 aaaabbbx xxxxxxxx xxxxWrite Program memory Page at address a:b.
Read EEPROM Memory1010 000000xx xxxabbbb bbbboooo ooooRead data o from EEPROM memory at address a:b.
Write EEPROM Memory1100 000000xx xxxabbbb bbbbiiii iiiiWrite data i to EEPROM memory at address a:b.
Read Lock Bits0101 10000000 0000xxxx xxxxxxoo ooooRead Lock Bits. “0” = programmed, “1” = unprogrammed. See Table Lock Bit Byte for details.
Write Lock Bits1010 1100111x xxxxxxxx xxxx11ii iiiiWrite Lock Bits. Set bits = “0” to program Lock Bits. See Table Lock Bit Byte for details.
Read Signature Byte0011 000000xx xxxxxxxx xxbboooo ooooRead Signature Byte o at address b.
Write Fuse Bits1010 11001010 0000xxxx xxxxiiii iiiiSet bits = “0” to program, “1” to unprogram. See Table Fuse Low Byte for details.
Write Fuse High Bits1010 11001010 1000xxxx xxxxiiii iiiiSet bits = “0” to program, “1” to unprogram. See Table Fuse High Byte for details.
Read Fuse Bits0101 00000000 0000xxxx xxxxoooo ooooRead Fuse Bits. “0” = programmed, “1” = unprogrammed. See Table Fuse Low Byte for details.
Read Fuse High Bits0101 10000000 1000xxxx xxxxoooo ooooRead Fuse high bits. “0” = programmed, “1” = unprogrammed. See Table Fuse High Byte for details.
Read Calibration Byte0011 100000xx xxxx0000 00bboooo ooooRead Calibration Byte
Note:

a = address high bits

b = address low bits

H = 0 – Low byte, 1 – High byte

o = data out

i = data in

x = don’t care