English
Language : 

S912XHZ512F1VAG Datasheet, PDF (156/978 Pages) Freescale Semiconductor, Inc – Covers MC9S12XHZ384, MC9S12XHZ256
Chapter 3 512 Kbyte Flash Module (S12XFTX512K4V3)
START
Read: FCLKDIV register
Clock Register
Written
Check
FDIVLD
Set?
yes
no
Write: FCLKDIV register
NOTE: FCLKDIV needs to
be set once after each reset.
Read: FSTAT register
Address, Data,
Command
Buffer Empty Check
CBEIF
no
Set?
yes
Access Error and
Protection Violation
Check
1.
ACCERR/
yes
PVIOL
Set?
no
Write: Flash Block Address
and Dummy Data
Simultaneous
Multiple Flash Block
Decision
2.
Next
yes
Flash
Block?
no
Write: FCMD register
Erase Verify Command 0x05
3.
Write: FSTAT register
Clear CBEIF 0x80
Read: FSTAT register
Write: FSTAT register
Clear ACCERR/PVIOL 0x30
Decrement Global Address
by 128K
Bit Polling for
Command Completion
Check
Erase Verify
Status
CCIF
no
Set?
yes
BLANK
no
Set?
yes
EXIT
Flash Block
Erased
EXIT
Flash Block
Not Erased
Figure 3-25. Example Erase Verify Command Flow
MC9S12XHZ512 Data Sheet, Rev. 1.06
156
Freescale Semiconductor