English
Language : 

MC9S12GRMV1 Datasheet, PDF (1054/1292 Pages) Freescale Semiconductor, Inc – MC9S12G Family Reference Manual and Data Sheet
128 KByte Flash Module (S12FTMRG128K1V1)
P-Flash memory (see Table 29-4) as indicated by reset condition F in Table 29-23. To change the
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.
Table 29-22. DFPROT Field Descriptions
Field
Description
7
DPOPEN
6–0
DPS[6:0]
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
EEPROM Protection Size — The DPS[6: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 29-23 .
Table 29-23. EEPROM Protection Address Range
DPS[6:0]
Global Address Range
Protected Size
0000000
0x0_0400 – 0x0_041F
32 bytes
0000001
0x0_0400 – 0x0_043F
64 bytes
0000010
0x0_0400 – 0x0_045F
96 bytes
0000011
0x0_0400 – 0x0_047F
128 bytes
0000100
0x0_0400 – 0x0_049F
160 bytes
0000101
0x0_0400 – 0x0_04BF
192 bytes
The Protection Size goes on enlarging in step of 32 bytes, for each DPS value
increasing of one.
.
.
.
1111111
0x0_0400 – 0x0_13FF
4,096 bytes
1056
MC9S12G Family Reference Manual, Rev.1.23
Freescale Semiconductor