PIC16C64X & PIC16C66X
9.1
Con铿乬uration Bits
The con铿乬uration bits can be programmed (read as '0')
or left unprogrammed (read as '1') to select various
device con铿乬urations. 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/con铿乬uration memory space
(2000h鈥?FFFh), which can be accessed only during
programming.
FIGURE 9-1:
CP1
bit13
bit 13-8
5-4:
CP0
CP1
CONFIGURATION WORD
CP0
CP1
CP0
MPEEN
(2)
BODEN CP1
CP0
PWRTE
WDTE
FOSC1 FOSC0
bit0
CONFIG
REGISTER:
Address
2007h
CP1:CP0:
Code protection bits
11
= Code protection off
10
= Upper half of program memory code protected
01
= Upper 3/4th of program memory code protected
00
= All memory is code protected
MPEEN
: Memory Parity Error Enable
1 = Memory Parity Checking is enabled
0 = Memory Parity Checking is disabled
BODEN
: Brown-out Reset Enable bit
(1)
1 = BOR enabled
0 = BOR disabled
PWRTE
: Power-up Timer Enable bit
(1)
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
1: Enabling Brown-out Reset automatically enables the 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 CP1:CP0 pairs have to be given the same value to enable the code protection scheme listed.
bit 7:
bit 6:
bit 3:
bit 2:
bit 1-0:
Note
DS30559A-page 56
Preliminary
漏
1996 Microchip Technology Inc.