mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 578

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Chapter 20 96 Kbyte Flash Module (S12FTS96KV1)
FPHDIS is cleared. The FPROT register is loaded from Flash address 0xFF0D during the reset sequence,
indicated by F in
To change the Flash protection that will be loaded on reset, the upper sector of the Flash array must be
unprotected, then the Flash protection byte located at Flash address 0xFF0D must be written to.
A protected Flash sector is disabled by FPHDIS
defined by FPHS[1:0]
Trying to alter any of the protected areas will result in a protect violation error and the PVIOL flag will be
set in the FSTAT register (see
when protection is fully disabled by setting the
erase a Flash array while protection is enabled will set the PVIOL flag in the FSTAT register.
578
FPHS[1:0]
FPLS[1:0]
FPOPEN
FPHDIS
FPLDIS
Field
NV6
4–3
1–0
7
6
5
2
Protection Function for Program or Erase — It is possible using the FPOPEN bit to either select address
ranges to be protected using FPHDIS, FPLDIS, FPHS[1:0] and FPLS[1:0] or to select the same ranges to be
unprotected. When FPOPEN is set, FPxDIS enables the ranges to be protected, whereby clearing FPxDIS
enables protection for the range specified by the corresponding FPxS[1:0] bits. When FPOPEN is cleared,
FPxDIS defines unprotected ranges as specified by the corresponding FPxS[1:0] bits. In this case, setting
FPxDIS enables protection. Thus the effective polarity of the FPxDIS bits is swapped by the FPOPEN bit as
shown in
can remain unprotected for EEPROM emulation.
0 The FPHDIS and FPLDIS bits define Flash address ranges to be unprotected
1 The FPHDIS and FPLDIS bits define Flash address ranges to be protected
Nonvolatile Flag Bit — The NV6 bit should remain in the erased state for future enhancements.
Flash Protection Higher Address Range Disable — The FPHDIS bit determines whether there is a
protected/unprotected area in the higher space of the Flash address map.
0 Protection/unprotection enabled
1 Protection/unprotection disabled
Flash Protection Higher Address Size — The FPHS[1:0] bits determine the size of the protected/unprotected
sector as shown in
Flash Protection Lower Address Range Disable — The FPLDIS bit determines whether there is a
protected/unprotected sector in the lower space of the Flash address map.
0 Protection/unprotection enabled
1 Protection/unprotection disabled
Flash Protection Lower Address Size — The FPLS[1:0] bits determine the size of the protected/unprotected
sector as shown in
Figure
Table
and FPLS[1:0]
20-8.
20-9. This function allows the main part of the Flash array to be protected while a small range
Table
Table
Section
20-10. The FPHS[1:0] bits can only be written to while the FPHDIS bit is set.
20-11. The FPLS[1:0] bits can only be written to while the FPLDIS bit is set.
Table 20-8. FPROT Field Descriptions
MC9S12C-Family / MC9S12GC-Family
in the FPROT register.
20.3.2.6). A mass erase of the whole Flash array is only possible
FPOPEN, FPLDIS,
Rev 01.23
and FPLDIS
Description
while the size of the protected sector is
and FPHDIS bits. An attempt to mass
Freescale Semiconductor

Related parts for mc9s12c32mpb16