Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
710
Freescale Semiconductor
EEPROM protection that will be loaded during the reset sequence, the P-Flash sector containing the
EEPROM protection byte must be unprotected, then the EEPROM protection byte must be programmed.
If a double bit fault is detected while reading the P-Flash phrase containing the EEPROM protection byte
during the reset sequence, the DPOPEN bit will be cleared and DPS bits will be set to leave the EEPROM
memory fully protected.
Trying to alter data in any protected area in the EEPROM memory will result in a protection violation error
and the FPVIOL bit will be set in the FSTAT register. Block erase of the EEPROM memory is not possible
if any of the EEPROM sectors are protected.
21.3.2.11 Flash Option Register (FOPT)
The FOPT register is the Flash option register.
Table 21-24. DFPROT Field Descriptions
Field
Description
7
DPOPEN
EEPROM Protection Control
0 Enables EEPROM memory protection from program and erase with protected address range defined by DPS
bits
1 Disables EEPROM memory protection from program and erase
5–0
DPS[5:0]
EEPROM Protection Size
— The DPS[5:0] bits determine the size of the protected area in the EEPROM
memory, this size increase in step of 32 bytes, as shown in
Table 21-25. EEPROM Protection Address Range
DPS[5:0]
Global Address Range
Protected Size
000000
0x10_0000 – 0x10_001F
32 bytes
000001
0x10_0000 – 0x10_003F
64 bytes
000010
0x10_0000 – 0x10_005F
96 bytes
000011
0x10_0000 – 0x10_007F
128 bytes
000100
0x10_0000 – 0x10_009F
160 bytes
000101
0x10_0000 – 0x10_00BF
192 bytes
The Protection Size goes on enlarging in step of 32 bytes, for each DPS value
increasing of one.
.
.
.
111111
0x10_0000 – 0x10_07FF
2,048 bytes