Datasheet

PIC18F2X1X/4X1X
DS39636D-page 244 © 2009 Microchip Technology Inc.
REGISTER 22-6: CONFIG5L: CONFIGURATION REGISTER 5 LOW (BYTE ADDRESS 300008h)
REGISTER 22-7: CONFIG5H: CONFIGURATION REGISTER 5 HIGH (BYTE ADDRESS 300009h)
U-0 U-0 U-0 U-0 R/C-1 R/C-1 R/C-1 R/C-1
—CP3
(1,2)
CP2
(1)
CP1 CP0
bit 7 bit 0
bit 7-4 Unimplemented: Read as ‘0
bit 3 CP3: Code Protection bit
(1,2)
1 = Block 3 (006000-007FFFh) not code-protected
(3)
0 = Block 3 (006000-007FFFh) code-protected
(3)
1 = Block 3 (00C000-00FFFFh) not code-protected
(4)
0 = Block 3 (00C000-00FFFFh) code-protected
(4)
bit 2 CP2: Code Protection bit
(1)
1 = Block 2 (004000-005FFFh) not code-protected
(3)
0 = Block 2 (004000-005FFFh) code-protected
(3)
1 = Block 2 (008000-00BFFFh) not code-protected
(4)
0 = Block 2 (008000-00BFFFh) code-protected
(4)
bit 1 CP1: Code Protection bit
1 = Block 1 (002000-003FFFh) not code-protected
(3)
0 = Block 1 (002000-003FFFh) code-protected
(3)
1 = Block 1 (004000-007FFFh) not code-protected
(4)
0 = Block 1 (004000-007FFFh) code-protected
(4)
bit 0 CP0: Code Protection bit
1 = Block 0 (000800-001FFFh) not code-protected
(3)
0 = Block 0 (000800-001FFFh) code-protected
(3)
1 = Block 0 (000800-003FFFh) not code-protected
(4)
0 = Block 0 (000800-003FFFh) code-protected
(4)
Note 1: Unimplemented in PIC18F2410/4410 devices; maintain this bit set.
2: Unimplemented in PIC18F2515/4515 devices; maintain this bit set.
3: Address range for 16K and 32K devices.
4: Address range for 48K and 64K devices.
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value when device is unprogrammed u = Unchanged from programmed state
U-0 R/C-1 U-0 U-0 U-0 U-0 U-0 U-0
—CPB
bit 7 bit 0
bit 7 Unimplemented: Read as ‘0
bit 6 CPB: Boot Block Code Protection bit
1 = Boot block (000000-0007FFh) not code-protected
0 = Boot block (000000-0007FFh) code-protected
bit 5-0 Unimplemented: Read as ‘0
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value when device is unprogrammed u = Unchanged from programmed state