English
Language : 

MC9S12T64 Datasheet, PDF (227/608 Pages) Motorola, Inc – Specification
Freescale Semiconductor, Inc.
Flash EEPROM 64K
Functional Description
START
Read: Register FSTAT
Are ACCERR or
yes
Clear ACCERR and/or PVIOL
PVIOL set?
no
Change BKSEL
no
All Flash banks
checked?
Clock Register
Written
Check
yes
Read: Register FCLKDIV
Bit FDIVLD set? no
yes
Write: Register FCLKDIV
Select BKSEL
Enter Flash
Super User Mode
Write: Register FCNFG
Write: Register CALCFG (1)
Set bit FSUM $80
1.
Write: Array Address to
FADDR Register
2.
Write: Array Data to FDATA
Register
Write: Register FCMD
3. Program Command $20
Write: Register FSTAT
4. Clear bit CBEIF $80
Read: Register FSTAT
NOTE: command sequence
aborted by writing $00 to
FSTAT register.
NOTE: command sequence
aborted by writing $00 to
FSTAT register.
Protection
Violation Check
Access
Error Check
Address, Data,
Command
Buffer Empty Check
Bit
PVIOL
Set?
no
Bit
ACCERR
Set?
no
Bit
CBEIF
Set?
no
yes Write: Register FSTAT
Clear bit PVIOL $20
yes Write: Register FSTAT
Clear bit ACCERR $10
yes
yes
Next Write?
no
Bit Polling for
Command
Completion Check
Exit Flash
Super User Mode
Bit
no
CCIF
Set?
yes
Write: Register CALCFG (1)
Clear bit FSUM $00
Read: Register FSTAT
FINISH
(1) The register CALCFG is in CALRAM.
Figure 29 Example Program Algorithm in Flash Super User Mode
MOTOROLA
Flash EEPROM 64K
For More Information On This Product,
Go to: www.freescale.com
MC9S12T64Revision 1.1.1
227