Datasheet

Table Of Contents
© 2009 Microchip Technology Inc. DS39689F-page 265
PIC18F2221/2321/4221/4321 FAMILY
REGISTER 24-6: CONFIG5L: CONFIGURATION REGISTER 5 LOW (BYTE ADDRESS 300008h)
REGISTER 24-7: CONFIG5H: CONFIGURATION REGISTER 5 HIGH (BYTE ADDRESS 300009h)
U-0 U-0 U-0 U-0 U-0 U-0 R/C-1 R/C-1
—CP1CP0
bit 7 bit 0
bit 7-2 Unimplemented: Read as ‘0
bit 1 CP1: Code Protection bit
1 = Block 1 not code-protected
(1)
0 = Block 1 code-protected
(1)
bit 0 CP0: Code Protection bit
1 = Block 0 not code-protected
(1)
0 = Block 0 code-protected
(1)
Note 1: See Figure 24-5 for variable block boundaries.
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value when device is unprogrammed u = Unchanged from programmed state
R/C-1 R/C-1 U-0 U-0 U-0 U-0 U-0 U-0
CPD CPB
bit 7 bit 0
bit 7 CPD: Data EEPROM Code Protection bit
1 = Data EEPROM not code-protected
0 = Data EEPROM code-protected
bit 6 CPB: Boot Block Code Protection bit
1 = Boot block not code-protected
(1)
0 = Boot block code-protected
(1)
bit 5-0 Unimplemented: Read as ‘0
Note 1: See Figure 24-5 for variable block boundaries.
Legend:
R = Readable bit C = Clearable bit U = Unimplemented bit, read as ‘0’
-n = Value when device is unprogrammed u = Unchanged from programmed state