Block Guide — S12EETX4KV0 V00.04
29
NOTE:
The user should not program an EEPROM word without first erasing the sector in
which that word resides.
4.1.3.1 Erase Verify Command
The erase verify operation will verify that the EEPROM memory is erased.
Anexample flow to execute the erase verify operation is shown in Figure 4-2. The erase verify command
write sequence is as follows:
1. Write to an EEPROM address to start the command write sequence for the erase verify command.
The address and data written will be ignored.
2. Write the erase verify command, $05, to the ECMD register.
3. Clear the CBEIF flag in the ESTAT register by writing a “1” to CBEIF to launch the erase verify
command.
Afterlaunching the erase verify command, the CCIF flag in the ESTAT register will set after the operation
has completed unless a new command write sequence has been buffered. The number of bus cycles
required to execute the erase verify operation is equal to the number of words in the EEPROM memory
plus 14 bus cycles as measured from the time the CBEIF flag is cleared until the CCIF flag is set. Upon
completionof the erase verify operation, the BLANK flag in the ESTAT register will be set if all addresses
in the EEPROM memory are verified to be erased. If any address in the EEPROM memory is not erased,
the erase verify operation will terminate and the BLANK flag in the ESTAT register will remain clear.
$20 Program Program a word (two bytes) in the EEPROM block.
$40 Sector
Erase Erase all four memory bytes in a sector of the EEPROM block.
$41 Mass
Erase
Erase all memory bytes in the EEPROM block.
Amass erase of the full EEPROM block is only possible when EPOPEN and EPDIS bits
in the EPROT register are set prior to launching the command.
$47 SectorErase
Abort
Abort the sector erase operation.
The sector erase operation will terminate according to a set procedure. The EEPROM
sector should not be considered erased if the ACCERR flag is set upon command
completion.
$60 Sector
Modify Erase all four memory bytes in a sector of the EEPROM block and reprogram the
addressed word.
Table 4-1 EEPROM Command Description
ECMDB Command Function on EEPROM Memory
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...