English
Language : 

MC9S12GRMV1 Datasheet, PDF (1169/1292 Pages) Freescale Semiconductor, Inc – MC9S12G Family Reference Manual and Data Sheet
240 KByte Flash Module (S12FTMRG240K2V1)
FCMD
0x08
0x09
0x0B
0x0D
0x0E
0x10
0x11
0x12
Table 31-29. EEPROM Commands
Command
Erase All Blocks
Erase Flash Block
Unsecure Flash
Set User Margin
Level
Set Field Margin
Level
Erase Verify
EEPROM Section
Program
EEPROM
Erase EEPROM
Sector
Function on EEPROM Memory
Erase all EEPROM (and P-Flash) blocks.
An erase of all Flash blocks is only possible when the FPLDIS, FPHDIS, and FPOPEN
bits in the FPROT register and the DPOPEN bit in the EEPROT register are set prior to
launching the command.
Erase a EEPROM (or P-Flash) block.
An erase of the full EEPROM block is only possible when DPOPEN bit in the EEPROT
register is set prior to launching the command.
Supports a method of releasing MCU security by erasing all EEPROM (and P-Flash)
blocks and verifying that all EEPROM (and P-Flash) blocks are erased.
Specifies a user margin read level for the EEPROM block.
Specifies a field margin read level for the EEPROM block (special modes only).
Verify that a given number of words starting at the address provided are erased.
Program up to four words in the EEPROM block.
Erase all bytes in a sector of the EEPROM block.
31.4.5 Allowed Simultaneous P-Flash and EEPROM Operations
Only the operations marked ‘OK’ in Table 31-30 are permitted to be run simultaneously on the Program
Flash and EEPROM 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 EEPROM, providing read (P-Flash) while write
(EEPROM) functionality.
Table 31-30. Allowed P-Flash and EEPROM Simultaneous Operations
EEPROM
Program Flash Read
Margin
Read1
Program
Sector
Erase
Mass
Erase2
Read
OK
OK
OK
Margin Read1
Program
Sector Erase
Mass Erase2
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. See the Note on margin settings in Section 31.4.6.12
and Section 31.4.6.13.
2 The ‘Mass Erase’ operations are commands ‘Erase All Blocks’ and ‘Erase
Flash Block’
Freescale Semiconductor
MC9S12G Family Reference Manual, Rev.1.23
1171