Datasheet
PIC24F16KL402 FAMILY
DS30001037C-page 176 2011-2013 Microchip Technology Inc.
REGISTER 23-1: FBS: BOOT SEGMENT CONFIGURATION REGISTER
REGISTER 23-2: FGS: GENERAL SEGMENT CONFIGURATION REGISTER
U-0 U-0 U-0 U-0 R/C-1
(1)
R/C-1
(1)
R/C-1
(1)
R/C-1
(1)
— — — — BSS2 BSS1 BSS0 BWRP
bit 7 bit 0
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-4 Unimplemented: Read as ‘0’
bit 3-1 BSS<2:0>: Boot Segment Program Flash Code Protection bits
(1)
111 = No Boot Segment; all program memory space is General Segment
110 = Standard security Boot Segment starts at 0200h, ends at 0AFEh
101 = Standard security Boot Segment starts at 0200h, ends at 15FEh
(2)
100 = Reserved
011 = Reserved
010 = High-security Boot Segment starts at 0200h, ends at 0AFEh
001 = High-security Boot Segment starts at 0200h, ends at 15FEh
(2)
000 = Reserved
bit 0 BWRP: Boot Segment Program Flash Write Protection bit
(1)
1 = Boot Segment may be written
0 = Boot Segment is write-protected
Note 1: Code protection bits can only be programmed by clearing them. They can be reset to their default factory
state (‘1’), but only by performing a bulk erase and reprogramming the entire device.
2: This selection is available only on PIC24F16KL40X devices.
U-0 U-0 U-0 U-0 U-0 U-0 R/C-1
(1)
R/C-1
(1)
— — — — — — GSS0 GWRP
bit 7 bit 0
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-2 Unimplemented: Read as ‘0’
bit 1 GSS0: General Segment Code Flash Code Protection bit
(1)
1 = No protection
0 = Standard security is enabled
bit 0 GWRP: General Segment Code Flash Write Protection bit
(1)
1 = General Segment may be written
0 = General Segment is write-protected
Note 1: Code protection bits can only be programmed by clearing them. They can be reset to their default factory
state (‘1’), but only by performing a bulk erase and reprogramming the entire device.