Datasheet

Chapter 17 16 Kbyte Flash Module (S12FTS16KV1)
480 MC9S12C-Family / MC9S12GC-Family Freescale Semiconductor
Rev 01.24
Figure 17-9 illustrates all possible protection scenarios. Although the protection scheme is loaded from the
Flash array after reset, it is allowed to change in normal modes. This protection scheme can be used by
applications requiring re-programming in single chip mode while providing as much protection as possible
if no re-programming is required.
Figure 17-9. Flash Protection Scenarios
17.3.2.5.1 Flash Protection Restrictions
The general guideline is that protection can only be added, not removed. All valid transitions between
Flash protection scenarios are specified in Table 17-11. 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.
Table 17-11. Flash Protection Scenario Transitions
From
Protection
Scenario
To Protection Scenario
(1)
0123
0XX
1X
2XX
3 2
FPHS[1:0]
FPOPEN = 1
1
FPOPEN = 0
FPHDIS = 1 FPHDIS = 0
Scenario
Scenario
Protected Flash
0
FPHS[1:0]
0xFFFF
0xFFFF