English
Language : 

PIC16F87X_02 Datasheet, PDF (14/22 Pages) Microchip Technology – EEPROM Memory Programming Specification
PIC16F87X
REGISTER 3-2: CONFIG: CONFIGURATION WORD FOR PIC16F870/871/872 (ADDRESS 2007h)
U-0 U-0 U-0 U-0 U-0 U-0 U-0 R/P-1 U-0 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1
CP1 CP0 RESV — WRT CPD LVP BODEN CP1 CP0 PWRTE WDTE F0SC1 F0SC0
bit 13
bit 0
bit 13-12
bit 5-4
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 3
bit 2
bit 1-0
CP1:CP0: FLASH Program Memory Code Protection bits(2)
11 = Code protection off
10 = Not supported
01 = Not supported
00 = 0000h to 07FFh code protected
Reserved: Set to ‘1’ for normal operation
Unimplemented: Read as ‘1’
WRT: FLASH Program Memory Write Enable bit
1 = Unprotected program memory may be written to by EECON control
0 = Unprotected program memory may not be written to by EECON control
CPD: Data EE Memory Code Protection bit
1 = Code protection off
0 = Data EE memory code protected
LVP: Low Voltage ICSP Programming Enable bit
1 = RB3/PGM pin has PGM function, low voltage programming enabled
0 = RB3 is digital I/O, HV on MCLR must be used for programming
BODEN: Brown-out Reset Enable bit(2)
1 = BOR enabled
0 = BOR disabled
PWRTE: Power-up Timer Enable bit
1 = PWRT disabled
0 = PWRT enabled
WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
FOSC1:FOSC0: Oscillator Selection bits
11 = RC oscillator
10 = HS oscillator
01 = XT oscillator
00 = LP oscillator
Note 1: Enabling Brown-out Reset automatically enables Power-up Timer (PWRT), regardless of the value of
bit PWRTE. Ensure the Power-up Timer is enabled any time Brown-out Reset is enabled.
2: All of the CP1:CP0 pairs have to be given the same value to enable the code protection scheme listed.
Legend:
R = Readable bit
P = Programmable bit
- n = Value when device is unprogrammed
U = Unimplemented bit, read as ‘0’
u = Unchanged from programmed state
DS39025F-page 14
 2002 Microchip Technology Inc.