mc9s12c32mpb16 Freescale Semiconductor, Inc, mc9s12c32mpb16 Datasheet - Page 477

no-image

mc9s12c32mpb16

Manufacturer Part Number
mc9s12c32mpb16
Description
Hcs12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
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 while the size of the protected sector is defined by
FPHS[1:0] in the FPROT register.
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 FPOPEN and FPHDIS bits. An attempt to mass erase a
Flash array while protection is enabled will set the PVIOL flag in the FSTAT register.
Freescale Semiconductor
FPHS[1:0]
FPOPEN
FPHDIS
NV[2:0]
Field
NV6
4–3
2–0
7
6
5
Protection Function for Program or Erase — The FPOPEN bit is used to either select an address range to be
protected using the FPHDIS and FPHS[1:0] bits or to select the same address range to be unprotected as shown
in
0 The FPHDIS bit allows a Flash address range to be unprotected
1 The FPHDIS bit allows a Flash address range 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
Nonvolatile Flag Bits — The NV[2:0] bits should remain in the erased state for future enhancements.
Table
17-9.
1. For range sizes refer to
FPOPEN
1
1
0
0
Table 17-10. Flash Protection Higher Address Range
Table
Section
FPHS[1:0]
17-10. The FPHS[1:0] bits can only be written to while the FPHDIS bit is set.
FPHDIS
Table 17-8. FPROT Field Descriptions
Table 17-9. Flash Protection Function
00
01
10
11
MC9S12C-Family / MC9S12GC-Family
1
0
1
0
17.3.2.6). A mass erase of the whole Flash array is only possible
FPHS1
0xF800–0xFFFF
0xF000–0xFFFF
0xE000–0xFFFF
0xC000–0xFFFF
Table
Address Range
x
x
x
x
Rev 01.23
17-10.
FPHS0
Description
x
x
x
x
No protection
Protect high range
Full Flash array protected
Unprotected high range
Range Size
16 Kbytes
2 Kbytes
4 Kbytes
8 Kbytes
Chapter 17 16 Kbyte Flash Module (S12FTS16KV1)
Function
(1)
477

Related parts for mc9s12c32mpb16