MC9S12XDP512CFU
Model | MC9S12XDP512CFU |
Description | 16-BIT, FLASH, 40MHz, MICROCONTROLLER, PQFP80 |
PDF file | Total 1348 pages (File size: 8M) |
Chip Manufacturer | PHILIPS |
Chapter 25 2 Kbyte EEPROM Module (S12XEETX2KV1)
START
Read: ECLKDIV register
Clock Register
Written
Check
NOTE: ECLKDIV needs to
be set once after each reset.
EDIVLD
Set?
yes
no
Write: ECLKDIV register
Read: ESTAT register
Address, Data,
Command
Buffer Empty Check
CBEIF
Set?
yes
no
Access Error and
Protection Violation
Check
1.
2.
3.
ACCERR/
PVIOL
Set?
no
Write: EEPROM Address
and program Data
Write: ECMD register
Program Command 0x20
Write: ESTAT register
Clear CBEIF 0x80
yes
Write: ESTAT register
Clear ACCERR/PVIOL 0x30
NOTE: command write sequence
aborted by writing 0x00 to
ESTAT register.
NOTE: command write sequence
aborted by writing 0x00 to
ESTAT register.
Read: ESTAT register
Bit Polling for
Buffer Empty
Check
CBEIF
Set?
yes
no
Sequential
Programming
Decision
Next
Word?
yes
no
Read: ESTAT register
Bit Polling for
Command Completion
Check
CCIF
Set?
yes
EXIT
no
Figure 25-19. Example Program Command Flow
MC9S12XDP512 Data Sheet, Rev. 2.21
Freescale Semiconductor
1059