PIC16F87XA
DS39582B-page 144
2003 Microchip Technology Inc.
REGISTER 14-1:
CONFIGURATION WORD (ADDRESS 2007h)
(1)
R/P-1
U-0
R/P-1
R/P-1
R/P-1
R/P-1 R/P-1
R/P-1
U-0
U-0
R/P-1
R/P-1
R/P-1
R/P-1
CP
—
DEBUG WRT1 WRT0
CPD
LVP
BOREN
—
—
PWRTEN WDTEN F
OSC
1 F
OSC
0
bit 13
bit0
bit 13
CP: Flash Program Memory Code Protection bit
1
= Code protection off
0
= All program memory code-protected
bit 12
Unimplemented: Read as ‘
1
’
bit 11
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
bit 10-9
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
bit 8
CPD: Data EEPROM Memory Code Protection bit
1
= Data EEPROM code protection off
0
= Data EEPROM code-protected
bit 7
LVP: Low-Voltage (Single-Supply) 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
bit 6
BOREN: Brown-out Reset Enable bit
1
= BOR enabled
0
= BOR disabled
bit 5-4
Unimplemented: Read as ‘
1
’
bit 3
PWRTEN: Power-up Timer Enable bit
1
= PWRT disabled
0
= PWRT enabled
bit 2
WDTEN: Watchdog Timer Enable bit
1
= WDT enabled
0
= WDT disabled
bit 1-0
F
OSC
1:F
OSC
0: Oscillator Selection bits
11
= RC oscillator
10
= HS oscillator
01
= XT oscillator
00
= LP oscillator
Legend:
R = Readable bit
P = Programmable bit
U = Unimplemented bit, read as ‘0’
- n = Value when device is unprogrammed
u = Unchanged from programmed state
Note 1:
The erased (unprogrammed) value of the Configuration Word is 3FFFh.
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655