English
Language : 

MC9S12KG128 Datasheet, PDF (90/600 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 2 128 Kbyte ECC Flash Module (FTS128K1ECCV1)
2.3.2.6 Flash Protection Restrictions
The general guideline is that Flash protection can only be added and not removed. Table 2-14 specifies all
valid transitions between Flash protection scenarios. Any attempt to write an invalid scenario to the
FPROT register will be ignored and the FPROT register will remain unchanged. The contents of the
FPROT register reflect the active protection scenario. See the FPHS and FPLS descriptions for additional
restrictions.
Table 2-14. Flash Protection Scenario Transitions
From
To Protection Scenario1
Protection
Scenario
0
1
2
3
4
5
6
7
0
X
X
X
X
1
X
X
2
X
X
3
X
4
X
X
5
X
X
X
X
6
X
X
X
X
7
X
X
X
X
X
X
X
X
1 Allowed transitions marked with X.
2.3.2.7 Flash Status Register (FSTAT)
The FSTAT register defines the operational status of the module.
7
6
5
4
3
2
1
0
R
CCIF
BLANK
0
0
CBEIF
PVIOL
ACCERR
DFDIF
W
Reset
1
1
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 2-9. Flash Status Register (FSTAT - Normal Mode)
7
6
5
4
3
2
1
0
R
CCIF
BLANK
0
CBEIF
PVIOL
ACCERR
DFDIF
FAIL
W
Reset
1
1
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 2-10. Flash Status Register (FSTAT - Special Mode)
MC9S12KG128 Data Sheet, Rev. 1.15
90
Freescale Semiconductor