English
Language : 

MC9S12XD256MAL Datasheet, PDF (1063/1348 Pages) Freescale Semiconductor, Inc – Freescale’s Scalable Controller Area Network
Chapter 25 2 Kbyte EEPROM Module (S12XEETX2KV1)
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 25-22. Example Sector Erase Abort Command Flow
Freescale Semiconductor
MC9S12XDP512 Data Sheet, Rev. 2.21
1065