PIC16F818/819
REGISTER 12-1:
CONFIGURATION WORD (ADDRESS 2007h)
(1)
R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1
R/P-1 R/P-1 R/P-1
CP CCPMX DEBUG WRT1 WRT0 CPD LVP BOREN MCLRE F
OSC
2 PWRTEN WDTEN F
OSC
1 F
OSC
0
bit 13
bit 0
bit 13
CP:
Flash Program Memory Code Protection bit
1
= Code protection off
0
= All memory locations code-protected
CCPMX:
CCP1 Pin Selection bit
1
= CCP1 function on RB2
0
= CCP1 function on RB3
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 PIC16F818:
11
= Write protection off
10
= 000h to 01FF write-protected, 0200 to 03FF may be modified by EECON control
01
= 000h to 03FF write-protected
For PIC16F819:
11
= Write protection off
10
= 0000h to 01FFh write-protected, 0200h to 07FFh may be modified by EECON control
01
= 0000h to 03FFh write-protected, 0400h to 07FFh may be modified by EECON control
00
= 0000h to 05FFh write-protected, 0600h to 07FFh may be modified by EECON control
CPD:
Data EE Memory Code Protection bit
1
= Code protection off
0
= Data EE memory locations code-protected
LVP:
Low-Voltage Programming Enable bit
1
= RB3/PGM pin has PGM function, low-voltage programming enabled
0
= RB3/PGM pin has digital I/O function, HV on MCLR must be used for programming
BOREN:
Brown-out Reset Enable bit
1
= BOR enabled
0
= BOR disabled
MCLRE:
RA5/MCLR Pin Function Select bit
1
= RA5/MCLR pin function is MCLR
0
= RA5/MCLR pin function is digital I/O, MCLR internally tied to V
DD
PWRTEN:
Power-up Timer Enable bit
1
= PWRT disabled
0
= PWRT enabled
WDTEN:
Watchdog Timer Enable bit
1
= WDT enabled
0
= WDT disabled
F
OSC
2:F
OSC
0:
Oscillator Selection bits
111
= EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin
110
= EXTRC oscillator; port I/O function on RA6/OSC2/CLKO pin
101
= INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on
RA7/OSC1/CLKI pin
100
= INTRC oscillator; port I/O function on both RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin
011
= EXTCLK; port I/O function on RA6/OSC2/CLKO pin
010
= HS oscillator
001
= XT oscillator
000
= LP oscillator
Note 1:
The erased (unprogrammed) value of the configuration word is 3FFFh.
Legend:
R = Readable bit
P = Programmable bit
- n = Value when device is unprogrammed
bit 12
bit 11
bit 10-9
bit 8
bit 7
bit 6
bit 5
bit 3
bit 2
bit 4, 1-0
U = Unimplemented bit, read as 鈥?鈥?/div>
u = Unchanged from programmed state
DS39598D-page 90
Preliminary
铮?/div>
2003 Microchip Technology Inc.
prev
next