Datasheet
192 KByte Flash Module (S12FTMRG192K2V1)
MC9S12G Family Reference Manual, Rev.1.23
Freescale Semiconductor 1133
Upon clearing CCIF to launch the Erase EEPROM Sector command, the Memory Controller will erase the
selected Flash sector and verify that it is erased. The CCIF flag will set after the Erase EEPROM Sector
operation has completed.
30.4.7 Interrupts
The Flash module can generate an interrupt when a Flash command operation has completed or when a
Flash command operation has detected an ECC fault.
Table 30-64. Erase EEPROM Sector Command FCCOB Requirements
CCOBIX[2:0] FCCOB Parameters
000 0x12
Global address [17:16] to identify
EEPROM block
001
Global address [15:0] anywhere within the sector to be erased.
See Section 30.1.2.2 for EEPROM sector size.
Table 30-65. Erase EEPROM Sector Command Error Handling
Register Error Bit Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != 001 at command launch
Set if command not available in current mode (see Table 30-27)
Set if an invalid global address [17:0] is suppliedsee Table 30-3)
Set if a misaligned word address is supplied (global address [0] != 0)
FPVIOL Set if the selected area of the EEPROM memory is protected
MGSTAT1 Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
Table 30-66. Flash Interrupt Sources
Interrupt Source Interrupt Flag Local Enable
Global (CCR)
Mask
Flash Command Complete CCIF
(FSTAT register)
CCIE
(FCNFG register)
I Bit
ECC Double Bit Fault on Flash Read DFDIF
(FERSTAT register)
DFDIE
(FERCNFG register)
I Bit
ECC Single Bit Fault on Flash Read SFDIF
(FERSTAT register)
SFDIE
(FERCNFG register)
I Bit
