Datasheet
Chapter 4 Memory
MC9S08DV60 Series Data Sheet, Rev 3
Freescale Semiconductor 63
4.5.10.3 Flash Configuration Register (FCNFG)
4.5.10.4 Flash Protection Register (FPROT and NVPROT)
The FPROT register defines which Flash and EEPROM sectors are protected against program and erase
operations.
During the reset sequence, the FPROT register is loaded from the nonvolatile location NVPROT. To
change the protection that will be loaded during the reset sequence, the sector containing NVPROT must
be unprotected and erased, then NVPROT can be reprogrammed.
FPROT bits are readable at any time and writable as long as the size of the protected region is being
increased. Any write to FPROT that attempts to decrease the size of the protected memory will be ignored.
Trying to alter data in any protected area will result in a protection violation error and the FPVIOL flag
will be set in the FSTAT register. Mass erase is not possible if any one of the sectors is protected.
Table 4-10. Security States
1
1
SEC changes to 1:0 after successful backdoor key entry
or a successful blank check of Flash.
SEC[1:0] Description
0:0 secure
0:1 secure
1:0 unsecured
1:1 secure
76543210
R0
Reserved KEYACC Reserved
1
1
User must write a 1 to this bit. Failing to do so may result in unexpected behavior.
0001
W
Reset 00010001
= Unimplemented or Reserved
Figure 4-7. Flash Configuration Register (FCNFG)
Table 4-11. FCNFG Register Field Descriptions
Field Description
5
KEYACC
Enable Writing of Access Key — This bit enables writing of the backdoor comparison key. For more detailed
information about the backdoor key mechanism, refer to Section 4.5.9, “Security.”
0 Writes to 0xFFB0–0xFFB7 are interpreted as the start of a Flash programming or erase command.
1 Writes to NVBACKKEY (0xFFB0–0xFFB7) are interpreted as comparison key writes.