Datasheet

Chapter 4 Memory
MC9S08AC16 Series Data Sheet, Rev. 9
60 Freescale Semiconductor
4.6.4 FLASH Protection Register (FPROT and NVPROT)
During reset, the contents of the nonvolatile location NVPROT are copied from FLASH into FPROT. This
register can be read at any time. If FPDIS = 0, protection can be increased, i.e., a smaller value of FPS can
be written. If FPDIS = 1, writes do not change protection.
4.6.5 FLASH Status Register (FSTAT)
Bits 3, 1, and 0 always read 0 and writes have no meaning or effect. The remaining five bits are status bits
that can be read at any time. Writes to these bits have special meanings that are discussed in the bit
descriptions.
76543210
R
FPS
1
FPDIS
1
W
Reset This register is loaded from nonvolatile location NVPROT during reset.
1
Background commands can be used to change the contents of these bits in FPROT.
Figure 4-8. FLASH Protection Register (FPROT)
Table 4-11. FPROT Register Field Descriptions
Field Description
7:1
FPS[7:1]
FLASH Protect Select Bits — When FPDIS = 0, this 7-bit field determines the ending address of unprotected
FLASH locations at the high address end of the FLASH. Protected FLASH locations cannot be erased or
programmed.
0
FPDIS
FLASH Protection Disable
0 FLASH block specified by FPS[7:1] is block protected (program and erase not allowed).
1 No FLASH block is protected.
76543210
R
FCBEF
FCCF
FPVIOL FACCERR
0FBLANK0 0
W
Reset11000000
= Unimplemented or Reserved
Figure 4-9. FLASH Status Register (FSTAT)