Datasheet

Trying to alter data in any protected area in the flash memory will result in a protection
violation error and the FPVIOL bit will be set in the FSTAT register. The block erase of a
flash block is not possible if any of the flash sectors contained in the same flash block are
protected.
Address: 3020h base + 8h offset = 3028h
Bit 7 6 5 4 3 2 1 0
Read
FPOPEN
1
FPHDIS FPHS FPLDIS FPLS
Write
Reset
x* x* x* x* x* x* x* x*
* Notes:
x = Undefined at reset.
NVM_FPROT field descriptions
Field Description
7
FPOPEN
Flash Protection Operation Enable
The FPOPEN bit determines the protection function for program or erase operations.
0 When FPOPEN is clear, the FPHDIS and FPLDIS bits define unprotected address ranges as specified
by the corresponding FPHS and FPLS bits.
1 When FPOPEN is set, the FPHDIS and FPLDIS bits enable protection for the address range specified
by the corresponding FPHS and FPLS bits.
6
Reserved
This field is reserved.
This read-only field is reserved and always has the value 1.
5
FPHDIS
Flash Protection Higher Address Range Disable
The FPHDIS bit determines whether there is a protected/unprotected area in a specific region of the flash
memory ending with global address 0xFFFF.
0 Protection/Unprotection enabled.
1 Protection/Unprotection disabled.
4–3
FPHS
Flash Protection Higher Address Size
The FPHS bits determine the size of the protected/unprotected area in flash memory. The FPHS bits can
be written to only while the FPHDIS bit is set.
2
FPLDIS
Flash Protection Lower Address Range Disable
The FPLDIS bit determines whether there is a protected/unprotected area in a specific region of the flash
memory beginning with global address 0x8000.
0 Protection/Unprotection enabled.
1 Protection/Unprotection disabled.
1–0
FPLS
Flash Protection Lower Address Size
The FPLS bits determine the size of the protected/unprotected area in flash memory. The FPLS bits can
only be written to while the FPLIDS bit is set.
Flash and EEPROM registers descriptions
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
112 Freescale Semiconductor, Inc.