
PIC16F87XA
DS39582A-page 142
Advance Information
2001 Microchip Technology Inc.
REGISTER 14-1:
CONFIGURATION WORD (ADDRESS 2007h)
(1)
R/P-1
CP
bit13
U-0
—
R/P-1
DEBUG
R/P-1
WRT1
R/P-1
WRT0
R/P-1
CPD
R/P-1
LVP
R/P-1
BOREN
U-0
—
U-0
—
R/P-1
PWRTEN
R/P-1
WDTEN
R/P-1
F0SC1
R/P-1
F0SC0
bit0
bit 13
CP:
FLASH Program Memory Code Protection bit
1
= Code protection off
0
= All program memory code protected
Unimplemented:
Read as ‘1’
DEBUG:
In-Circuit Debugger Mode bit
1
= In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins
0
= In-Circuit Debugger enabled, RB6 and RB7 are dedicated to the debugger
WRT1:WRT0
FLASH Program Memory Write Enable bits
For PIC16F876A/877A:
11
= Write protection off; all program memory may be written to by EECON control
10
= 0000h to 00FFh write protected; 0100h to 1FFFh may be written to by EECON control
01
= 0000h to 07FFh write protected; 0800h to 1FFFh may be written to by EECON control
00
= 0000h to 0FFFh write protected; 1000h to 1FFFh may be written to by EECON control
For PIC16F873A/874A:
11
= Write protection off; all program memory may be written to by EECON control
10
= 0000h to 00FFh write protected; 0100h to 0FFFh may be written to by EECON control
01
= 0000h to 03FFh write protected; 0400h to 0FFFh may be written to by EECON control
00
= 0000h to 07FFh write protected; 0800h to 0FFFh may be written to by EECON control
CPD:
Data EEPROM Memory Code Protection bit
1
= Data EEPROM code protection off
0
= Data EEPROM code protected
LVP
: Low Voltage In-Circuit Serial 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
BOREN
: Brown-out Reset Enable bit
1
= BOR enabled
0
= BOR disabled
Unimplemented:
Read as ‘1’
PWRTEN
: Power-up Timer Enable bit
1
= PWRT disabled
0
= PWRT enabled
WDTEN
: 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
bit 12
bit 11
bit 10-9
bit 8
bit 7
bit 6
bit 5-4
bit 3
bit 2
bit 1-0
Note
1:
The erased (unprogrammed) value of the configuration word is 3FFFh.
Legend:
R = Readable bit
- n = Value when device is unprogrammed
P = Programmable bit
U = Unimplemented bit, read as ‘0’
u = Unchanged from programmed state