![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 708](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602708.webp)
Chapter 19 128 KB Flash Module (S12ZFTMRZ128K512V2)
MC9S12ZVM Family Reference Manual Rev. 1.3
708
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.
19.3.2.11 Flash Option Register (FOPT)
The FOPT register is the Flash option register.
Table 19-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
3–0
DPS[3:0]
EEPROM Protection Size — The DPS[3:0] bits determine the size of the protected area in the EEPROM
memory as shown in
.
Table 19-25. EEPROM Protection Address Range
DPS[3:0]
Global Address Range
Protected Size
0000
0x10_0000 – 0x10_001F
32 bytes
0001
0x10_0000 – 0x10_003F
64 bytes
0010
0x10_0000 – 0x10_005F
96 bytes
0011
0x10_0000 – 0x10_007F
128 bytes
0100
0x10_0000 – 0x10_009F
160 bytes
0101
0x10_0000 – 0x10_00BF
192 bytes
The Protection Size goes on enlarging in step of 32 bytes, for each DPS
value increasing of one.
.
.
.
1111
0x10_0000 – 0x10_01FF
512 bytes