Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
738
Freescale Semiconductor
21.4.8
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.
NOTE
Vector addresses and their relative interrupt priority are determined at the
MCU level.
21.4.8.1
Description of Flash Interrupt Operation
The Flash module uses the CCIF flag in combination with the CCIE interrupt enable bit to generate the
Flash command interrupt request. The Flash module uses the SFDIF flag in combination with the SFDIE
interrupt enable bits to generate the Flash error interrupt request. For a detailed description of the register
bits involved, refer to
Section 21.3.2.5, “Flash Configuration Register (FCNFG)
Error Configuration Register (FERCNFG)
Section 21.3.2.7, “Flash Status Register (FSTAT)
Section 21.3.2.8, “Flash Error Status Register (FERSTAT)
The logic used for generating the Flash module interrupts is shown in
.
Figure 21-31. Flash Module Interrupts Implementation
21.4.9
Wait Mode
The Flash module is not affected if the MCU enters wait mode. The Flash module can recover the MCU
from wait via the CCIF interrupt (see
).
Table 21-71. Flash Interrupt Sources
Interrupt Source
Interrupt Flag
Local Enable
Global (CCR)
Mask
Flash Command Complete
CCIF
(FSTAT register)
CCIE
(FCNFG register)
I Bit
ECC Single Bit Fault on Flash Read
SFDIF
(FERSTAT register)
SFDIE
(FERCNFG register)
I Bit
Flash Error Interrupt Request
CCIF
CCIE
SFDIF
SFDIE
Flash Command Interrupt Request