![](http://datasheet.mmic.net.cn/370000/P312XDP512F0VFV_datasheet_16728159/P312XDP512F0VFV_1200.png)
Chapter 29 128 Kbyte Flash Module (S12XFTX128K1V1)
MC9S12XDP512 Data Sheet, Rev. 2.17
1200
Freescale Semiconductor
Table 29-9. FPROT Field Descriptions
Field
Description
7
FPOPEN
Flash Protection Open
— The FPOPEN bit determines the protection function for program or erase as shown
in
Table 29-10
.
0 The FPHDIS and FPLDIS bits define unprotected address ranges as specified by the corresponding
FPHS[1:0] and FPLS[1:0] bits. For an MCU without an EEPROM module, the FPOPEN clear state allows the
main part of the Flash block to be protected while a small address range can remain unprotected for EEPROM
emulation.
1 The FPHDIS and FPLDIS bits enable protection for the address range specified by the corresponding
FPHS[1:0] and FPLS[1:0] bits.
6
RNV6
Reserved Nonvolatile Bit
— The RNV[6] bit should remain in the erased state for future enhancements.
5
FPHDIS
Flash Protection Higher Address Range Disable
— The FPHDIS bit determines whether there is a
protected/unprotected area in a specific region of the Flash memory ending with global address 0x7F_FFFF.
0 Protection/Unprotection enabled.
1 Protection/Unprotection disabled.
4:3
FPHS[1:0]
Flash Protection Higher Address Size
— The FPHS[1:0] bits determine the size of the protected/unprotected
area as shown in
Table 29-11
. The FPHS[1:0] bits can only be written to while the FPHDIS bit is set.
2
FPLDIS
Flash Protection Lower Address Range Disable
— The FPLDIS bit determines whether there is a
protected/unprotected area in a specific region of the Flash memory beginning with global address 0x7F_8000.
0 Protection/Unprotection enabled.
1 Protection/Unprotection disabled.
1:0
FPLS[1:0]
Flash Protection Lower Address Size
— The FPLS[1:0] bits determine the size of the protected/unprotected
area as shown in
Table 29-12
. The FPLS[1:0] bits can only be written to while the FPLDIS bit is set.
Table 29-10. Flash Protection Function
FPOPEN
FPHDIS
FPLDIS
Function
1
1 For range sizes, refer to
Table 29-11
and
Table 29-12
.
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
No Protection
Protected Low Range
Protected High Range
Protected High and Low Ranges
Full Flash memory Protected
Unprotected Low Range
Unprotected High Range
Unprotected High and Low Ranges
Table 29-11. Flash Protection Higher Address Range
FPHS[1:0]
Global
Address Range
Protected Size
00
01
10
11
0x7F_F800–0x7F_FFFF
0x7F_F000–0x7F_FFFF
0x7F_E000–0x7F_FFFF
0x7F_C000–0x7F_FFFF
2 Kbytes
4 Kbytes
8 Kbytes
16 Kbytes