user manual

Block Guide — S12EETX4KV0 V00.04
37
Figure 4-6 Example Sector Erase Abort Command Flow
4.1.3.6 Sector Modify Command
The sector modify operation will erase both words in a sector of EEPROM memory followed by a
reprogram of the addressed word using an embedded algorithm.
An example flow to execute the sector modify operation is shown in Figure 4-7. The sector modify
command write sequence is as follows:
1. Write to an EEPROM memory address to start the command write sequence for the sector modify
command. The EEPROM address written determines the sector to be erased and word to be
reprogrammed while byte address bit 0 is ignored.
Write: Dummy EEPROM Address
Write: ECMD register
Sector Erase Abort Cmd $47
Write: ESTAT register
Clear CBEIF $80
1.
2.
3.
Read: ESTAT register
and Dummy Data
Bit Polling for
Command
Completion Check
yes
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
CCIF
Set?
Execute Sector Erase/Modify Command Flow
no
Bit Polling for
Command
Completion Check
Read: ESTAT register
yes
CCIF
Set?
no
yes
Abort
Needed?
Erase
Clear ACCERR $10
Write: ESTAT register
yes
no
Access
Error Check
ACCERR
Set?
Sector Erase
or Modify
Sector Erase
or Modify
no
EXIT EXIT
Sector Erase
Completed
EXIT
Completed Aborted
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...