![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 736](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602736.webp)
Chapter 19 128 KB Flash Module (S12ZFTMRZ128K512V2)
MC9S12ZVM Family Reference Manual Rev. 1.3
736
Freescale Semiconductor
The Protection Override command can be called multiple times and every time it is launched it will
preserve the current values of registers FPROT and DFPROT in a single-entry buffer to be restored later;
when the Protection Override command is launched to restore FPROT and DFPROT these registers will
assume the values they had before executing the Protection Override command on the last time. If contents
of FPROT and/or DFPROT registers were modified by direct register writes while protection is overridden
these modifications will be lost. Running Protection Override command to restore the contents of registers
FPROT and DFPROT will not force them to the reset values.
19.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.
Table 19-70. Protection Override Command Error Handling
Register
Error Bit
Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != (001, 010 or 011) at command launch.
Set if command not available in current mode (see
Set if protection is supposed to be restored (if key does not match or is invalid) and
Protection Override command was not run previously (bit FPSTAT FPOVRD is 0),
so there are no previous valid values of FPROT and DFPROT to be re-loaded.
Set if Protection Update Selection[1:0] = 00 (in case of CCOBIX[2:0] = 010 or 011)
Set if Protection Update Selection[1:0] = 00, CCOBIX[2:0] = 001 and a valid
comparison key is loaded as a command parameter.
FPVIOL
None
MGSTAT1
None
MGSTAT0
None
Table 19-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