English
Language : 

MC9S12HY64 Datasheet, PDF (545/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
32 KByte Flash Module (S12FTMRC32K1V1)
FCMD
0x10
0x11
0x12
Table 15-29. D-Flash Commands
Command
Erase Verify
D-Flash Section
Program D-Flash
Erase D-Flash
Sector
Function on D-Flash Memory
Verify that a given number of words starting at the address provided are erased.
Program up to four words in the D-Flash block.
Erase all bytes in a sector of the D-Flash block.
15.4.4 Allowed Simultaneous P-Flash and D-Flash Operations
Only the operations marked ‘OK’ in Table 15-30 are permitted to be run simultaneously on the Program
Flash and Data Flash blocks. Some operations cannot be executed simultaneously because certain
hardware resources are shared by the two memories. The priority has been placed on permitting Program
Flash reads while program and erase operations execute on the Data Flash, providing read (P-Flash) while
write (D-Flash) functionality.
Table 15-30. Allowed P-Flash and D-Flash Simultaneous Operations
Data Flash
Program Flash Read
Margin
Read1
Program
Sector
Erase
Mass
Erase3
Read
OK
OK
OK
Margin Read1
OK2
Program
Sector Erase
OK
Mass Erase3
OK
1 A ‘Margin Read’ is any read after executing the margin setting commands
‘Set User Margin Level’ or ‘Set Field Margin Level’ with anything but the
‘normal’ level specified.
2 See the Note on margin settings in Section 15.4.5.12 and Section 15.4.5.13.
3 The ‘Mass Erase’ operations are commands ‘Erase All Blocks’ and ‘Erase
Flash Block’
15.4.5 Flash Command Description
This section provides details of all available Flash commands launched by a command write sequence. The
ACCERR bit in the FSTAT register will be set during the command write sequence if any of the following
illegal steps are performed, causing the command not to be processed by the Memory Controller:
• Starting any command write sequence that programs or erases Flash memory before initializing the
FCLKDIV register
• Writing an invalid command as part of the command write sequence
• For additional possible errors, refer to the error handling table provided for each command
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
Freescale Semiconductor
545