MC9S12XDP512CFU
Model | MC9S12XDP512CFU |
Description | 16-BIT, FLASH, 40MHz, MICROCONTROLLER, PQFP80 |
PDF file | Total 1348 pages (File size: 8M) |
Chip Manufacturer | PHILIPS |
Chapter 27 512 Kbyte Flash Module (S12XFTX512K4V2)
START
Read: FCLKDIV register
Clock Register
Written
Check
NOTE: FCLKDIV needs to
be set once after each reset.
FDIVLD
Set?
yes
no
Write: FCLKDIV register
Read: FSTAT register
Address, Data,
Command
Buffer Empty Check
CBEIF
Set?
yes
no
Access Error and
Protection Violation
Check
1.
Simultaneous
Multiple Flash Block
Decision
ACCERR/
PVIOL
Set?
no
Write: Flash Address
and program Data
Next
Flash
Block?
no
Write: FCMD register
Program Command 0x20
Write: FSTAT register
Clear CBEIF 0x80
yes
Write: FSTAT register
Clear ACCERR/PVIOL 0x30
yes
Decrement Global Address
by 128K
2.
3.
Read: FSTAT register
Bit Polling for
Buffer Empty
Check
CBEIF
Set?
yes
no
Sequential
Programming
Decision
Next
Word?
yes
no
Read: FSTAT register
Bit Polling for
Command Completion
Check
CCIF
Set?
yes
EXIT
no
Figure 27-28. Example Program Command Flow
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor
1137