English
Language : 

S912XHZ512F1VAG Datasheet, PDF (201/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 4 4 Kbyte EEPROM Module (S12XEETX4KV2)
Execute Sector Erase/Modify Command Flow
Read: ESTAT register
Bit Polling for
Command
Completion Check
CCIF
no
Set?
yes
Erase
no
Abort
Needed?
yes
Sector Erase
Completed
EXIT
NOTE: command write sequence
aborted by writing 0x00 to
ESTAT register.
NOTE: command write sequence
aborted by writing 0x00 to
ESTAT register.
1.
Write: Dummy EEPROM Address
and Dummy Data
2.
Write: ECMD register
Sector Erase Abort Cmd 0x47
3.
Write: ESTAT register
Clear CBEIF 0x80
Read: ESTAT register
Bit Polling for
Command
Completion Check
CCIF
no
Set?
yes
Access
Error Check
ACCERR
Set?
no
yes Write: ESTAT register
Clear ACCERR 0x10
Sector Erase
or Modify
Completed
EXIT
Sector Erase
or Modify
EXIT
Aborted
Figure 4-22. Example Sector Erase Abort Command Flow
MC9S12XHZ512 Data Sheet, Rev. 1.06
Freescale Semiconductor
201