Block Guide — S12EETX4KV0 V00.04
35
If the EEPROM memory to be erased contains any protected area, the PVIOL flag in the ESTAT registerwill set and the mass erase command will not launch. Once the mass erase command has successfullylaunched,the CCIF flag in the ESTAT register will set after the mass erase operation has completed unlessa new command write sequence has been buffered.Figure 4-5 Example Mass Erase Command Flow4.1.3.5 Sector Erase Abort CommandThe sector erase abort operation will terminate the active sector erase or sector modify operation so thatother sectors in an EEPROM block are available for read and program operations without waiting for thesector erase or sector modify operation to complete.Anexample flow to execute the sector erase abort operation is shown in Figure 4-6. The sector erase abortcommand write sequence is as follows:
Write: EEPROM Address
Write: ECMD register
Mass Erase Command $41
Write: ESTAT register
Clear CBEIF $80
1.
2.
3.
Clear ACCERR/PVIOL $30
Write: ESTAT register
yes
no
Access Error and
Protection Violation
and Dummy Data
Read: ESTAT register
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
Read: ESTAT register
no
START
yes
Check
CBEIF
Set?
Address, Data,
Command
Buffer Empty Check
ACCERR/
PVIOL
Set?
EXIT
Write: ECLKDIV register
Read: ECLKDIV register
yes
no
Clock Register
Written
Check
EDIVLD
Set? NOTE: ECLKDIV needs to
be set once after each reset.
no
Bit Polling for
Command Completion
Check
yes
CCIF
Set?
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...