Datasheet

PIC16CE62X
DS40182D-page 50 1998-2013 Microchip Technology Inc.
10.1 Configuration Bits
The configuration bits can be programmed (read as '0')
or left unprogrammed (read as '1') to select various
device configurations. These bits are mapped in
program memory location 2007h.
The user will note that address 2007h is beyond
the user program memory space. In fact, it belongs
to the special test/configuration memory space
(2000h – 3FFFh), which can be accessed only during
programming.
REGISTER 10-1: CONFIGURATION WORD
CP1 CP0
(2)
CP1 CP0
(2)
CP1 CP0
(2)
—BODEN
(1)
CP1 CP0
(2)
PWRTE
(1)
WDTE F0SC1 F0SC0
CONFIG Address
REGISTER: 2007h
bit13 bit0
bit 13-8, CP1:CP0 Pairs: Code protection bit pairs
(2)
5-4: Code protection for 2K program memory
11 = Program memory code protection off
10 = 0400h-07FFh code protected
01 = 0200h-07FFh code protected
00 = 0000h-07FFh code protected
Code protection for 1K program memory
11 = Program memory code protection off
10 =Program memory code protection on
01 = 0200h-03FFh code protected
00 = 0000h-03FFh code protected
Code protection for 0.5K program memory
11 = Program memory code protection off
10 = Program memory code protection off
01 = Program memory code protection off
00 = 0000h-01FFh code protected
bit 7: Unimplemented: Read as '1'
bit 6: BODEN: Brown-out Reset Enable bit
(1)
1 = BOD enabled
0 = BOD disabled
bit 3: PWRTE
: Power-up Timer Enable bit
(1)
1 = PWRT disabled
0 = PWRT enabled
bit 2: WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
bit 1-0: 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 anytime Brown-out Reset is enabled.
2: All of the CP<1:0> pairs have to be given the same value to enable the code protection scheme listed.