512 Kbyte Flash Module (S12XFTX512K4V2)
BookTitle, Rev. 2.4
130 Freescale Semiconductor
Figure 2-26. Example Data Compress Command Flow
Write: Flash Address to start
Write: FCMD register
Data Compress Command 0x06
Write: FSTAT register
Clear CBEIF 0x80
1.
2.
3.
Clear ACCERR/PVIOL 0x30
Write: FSTAT register
yes
no
Access Error and
Protection Violation
no
compression and number of word
Bit Polling for
Command Completion
Check
Read: FSTAT register
yes
Read: FSTAT register
no
START
yes
Check
CBEIF
Set?
Next
no
yes
Address, Data,
Command
Buffer Empty Check
Flash
Block?
CCIF
Set?
ACCERR/
PVIOL
Set?
EXIT
Erase and Reprogram
by 128K
Decrement Global Address
Write: FCLKDIV register
Read: FCLKDIV register
yes
no
Clock Register
Written
Check
FDIVLD
Set?
NOTE: FCLKDIV needs to
be set once after each reset.
Simultaneous
Multiple Flash Block
Decision
Flash Sector(s) Compressed
Data Compress Signature
Read: FDATA registers
no
yes
Signature
Valid?
addresses to compress
NOTE: address used to select
Flash block; data ignored.