Chapter 20 96 Kbyte Flash Module (S12FTS96KV1)
Freescale Semiconductor
MC9S12C-Family / MC9S12GC-Family
611
Rev 01.24
20.4.4
Flash Reset Sequence
On each reset, the Flash module executes a reset sequence to hold CPU activity while loading the following
registers from the Flash array memory according to
•
FPROT — Flash Protection Register (see
•
FSEC — Flash Security Register (see
20.4.4.1
Reset While Flash Command Active
If a reset occurs while any Flash command is in progress, that command will be immediately aborted. The
state of the word being programmed or the sector/array being erased is not guaranteed.
20.4.5
Interrupts
The Flash module can generate an interrupt when all Flash commands have completed execution or the
Flash address, data, and command buffers are empty.
NOTE
Vector addresses and their relative interrupt priority are determined at the
MCU level.
20.4.5.1
Description of Interrupt Operation
shows the logic used for generating interrupts.
The Flash module uses the CBEIF and CCIF flags in combination with the enable bits CBIE and CCIE to
discriminate for the generation of interrupts.
Figure 20-28. Flash Interrupt Implementation
For a detailed description of these register bits, refer to
Section 20.3.2.4, “Flash Configuration Register
and
Section 20.3.2.6, “Flash Status Register (FSTAT)”
.
Table 20-18. Flash Interrupt Sources
Interrupt Source
Interrupt Flag
Local Enable
Global (CCR) Mask
Flash Address, Data, and Command
Buffers are empty
CBEIF
(FSTAT register)
CBEIE
I Bit
All Flash commands have completed
execution
CCIF
(FSTAT register)
CCIE
I Bit
CBEIF
CBEIE
CCIF
CCIE
FLASH INTERRUPT REQUEST
Summary of Contents for MC9S12C Family
Page 689: ......