![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 67](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838067.webp)
FPHDIS = 1
FPHDIS = 0
Protected region
not defined by FPHS
Unprotected region
Protected region with size
defined by FPHS
FPHS[1:0]
FPOPEN = 1
FPOPEN = 1
Scenario 3
Scenario 2
Scenario 1
Scenario 0
Flash Start Address
0xFFFF
FPOPEN = 0
FPOPEN = 0
FPHDIS = 1
FPHDIS = 0
Figure 4-6. Flash protection scenarios
The general guideline is that flash protection can only be added and not removed. The
following table specifies all valid transitions between flash protection scenarios. Any
attempt to write an invalid scenario to the FPROT register will be ignored. The contents
of the FPROT register reflect the active protection scenario. See the FPROT[FPHS] and
FPROT[FPLS] bit descriptions for additional restrictions.
Table 4-13. Flash protection scenario transitions
From protection
scenario
To protection scenario
0
1
2
3
0
×
×
1
×
2
×
×
3
×
×
×
×
The flash protection address range is listed in the following two tables regarding the
scenarios in the table above.
Table 4-14. Flash protection higher address range
FPHS[1:0]
Global address range
Protected size
00
0xFC00 – 0xFFFF
1 Kbytes
01
0xF800 – 0xFFFF
2 Kbytes
10
0xF400 – 0xFFFF
3 Kbytes
11
0xF000 – 0xFFFF
4 Kbytes
Chapter 4 Memory map
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
NXP Semiconductors
67
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...