Block Guide — S12EETX4KV0 V00.04
30
Figure 4-2 Example Erase Verify Command Flow4.1.3.2 Program CommandThe program operation will program a previously erased word in the EEPROM memory using anembedded algorithm.An example flow to execute the program operation is shown in Figure 4-3. The program command writesequence is as follows:1. Write to an EEPROM block address to start the command write sequence for the programcommand. The data written will be programmed to the address written.
Write: EEPROM Address
Write: ECMD register
Erase Verify Command $05
Write: ESTAT register
Clear CBEIF $80
1.
2.
3.
Clear ACCERR/PVIOL $30
Write: ESTAT register
yes
no
Access Error and
Protection Violation
no
and Dummy Data
Bit Polling for
Command Completion
Check
Read: ESTAT register
yes
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
NOTE: command write sequence
aborted by writing $00 to
ESTAT register.
Read: ESTAT register
no
START
yes
Check
CBEIF
Set?
Address, Data,
Command
Buffer Empty Check
CCIF
Set?
ACCERR/
PVIOL
Set?
no
Erase Verify
Status
yes
EXIT
EEPROM Memory
Not Erased
EXIT
EEPROM Memory
Erased
BLANK
Set?
Write: ECLKDIV register
Read: ECLKDIV register
yes
no
Clock Register
Written
Check
EDIVLD
Set? NOTE: ECLKDIV needs to
be set once after each reset.
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...