Datasheet

PIC32MX5XX/6XX/7XX
DS61156G-page 166 © 2009-2011 Microchip Technology Inc.
REGISTER 28-1: DEVCFG0: DEVICE CONFIGURATION WORD 0
Bit
Range
Bit
31/23/15/7
Bit
30/22/14/6
Bit
29/21/13/5
Bit
28/20/12/4
Bit
27/19/11/3
Bit
26/18/10/2
Bit
25/17/9/1
Bit
24/16/8/0
31:24
r-0 r-1 r-1 R/P r-1 r-1 r-1 R/P
—CP —BWP
23:16
r-1 r-1 r-1 r-1 R/P R/P R/P R/P
PWP<7:4>
15:8
R/P R/P R/P R/P r-1 r-1 r-1 r-1
PWP<3:0>
7:0
r-1 r-1 r-1 r-1 R/P r-1 R/P R/P
ICESEL DEBUG<1:0>
Legend:
R = Readable bit W = Writable bit P = Programmable bit r = Reserved bit
U = Unimplemented bit ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 31
Reserved: Write ‘0
bit 30-29
Reserved: Write ‘1
bit 28
CP: Code-Protect bit
Prevents boot and program Flash memory from being read or modified by an external programming device.
1 = Protection is disabled
0 = Protection is enabled
bit 27-25
Reserved: Write ‘1
bit 24
BWP: Boot Flash Write-Protect bit
Prevents boot Flash memory from being modified during code execution.
1 = Boot Flash is writable
0 = Boot Flash is not writable
bit 23-20
Reserved: Write ‘1
bit 19-12
PWP<7:0>: Program Flash Write-Protect bits
Prevents selected program Flash memory pages from being modified during code execution. The PWP bits
represent the 1’s complement of the number of write-protected program Flash memory pages.
11111111 = Disabled
11111110 = 0xBD00_0FFF
11111101 = 0xBD00_1FFF
11111100 = 0xBD00_2FFF
11111011 = 0xBD00_3FFF
11111010 = 0xBD00_4FFF
11111001 = 0xBD00_5FFF
11111000 = 0xBD00_6FFF
11110111 = 0xBD00_7FFF
11110110 = 0xBD00_8FFF
11110101 = 0xBD00_9FFF
11110100 = 0xBD00_AFFF
11110011 = 0xBD00_BFFF
11110010 = 0xBD00_CFFF
11110001 = 0xBD00_DFFF
11110000 = 0xBD00_EFFF
11101111 = 0xBD00_FFFF
01111111 = 0xBD07_FFFF