user manual
Block Guide — S12EETX4KV0 V00.04
32
Figure 4-3 Example Program Command Flow
4.1.3.3 Sector Erase Command
The sector erase operation will erase both words in a sector of EEPROM memory using an embedded
algorithm.
Write: EEPROM Address
Write: ECMD register
Program Command $20
Write: ESTAT register
Clear CBEIF $80
1.
2.
3.
Clear ACCERR/PVIOL $30
Write: ESTAT register
yes
no
Access Error and
Protection Violation
no
and program Data
Bit Polling for
Buffer Empty
Check
Read: ESTAT register
yes
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
CBEIF
Set?
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
yes
Sequential
Programming
Decision
Next
Word?
no
Bit Polling for
Command Completion
Check
Read: ESTAT register
yes
CCIF
Set?
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...