PIC16C717/770/771
FIGURE 12-1: CONFIGURATION WORD FOR 16C717/770/771 DEVICE
CP CP BORV1 BORV0 CP CP — BODEN MCLRE PWRTE WDTE FOSC2 FOSC1 FOSC0 Register:
bit13 12 11
10
9
8
7
6
5
4
3
2
1
bit0 Address
bit 13,12: CP: Program Memory Code Protection
bit 9,8: 1 = Code protection off
0 = All program memory is protected(2)
bit 11-10: BORV<1:0>: Brown-out Reset Voltage bits
00 = VBOR set to 4.5V
01 = VBOR set to 4.2V
10 = VBOR set to 2.7V
11 = VBOR set to 2.5V
bit 7:
bit 6:
Unimplemented: Read as ’1’
BODEN: Brown-out Detect Reset Enable bit (1)
1 = Brown-out Detect Reset enabled
0 = Brown-out Detect Reset disabled
bit 5:
bit 4:
MCLRE: RA5/MCLR pin function select
1 = RA5/MCLR pin function is MCLR
0 = RA5/MCLR pin function is digital input, MCLR internally tied to VDD
PWRTE: Power-up Timer Enable bit (1)
1 = PWRT disabled
0 = PWRT enabled
bit 3:
WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
bit 2-0:
FOSC<2:0>: Oscillator Selection bits
000 = LP oscillator: Ceramic resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
001 = XT oscillator: Crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
010 = HS oscillator: High frequency crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN
011 = EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN function on RA7/OSC1/CLKIN
100 = INTRC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
101 = INTRC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN
110 = ER oscillator: I/O function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
111 = ER oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor on RA7/OSC1/CLKIN
CONFIG
2007h
Note 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 CP bits must be given the same value to enable code protection.
12.2 Oscillator Configurations
12.2.1 OSCILLATOR TYPES
The PIC16C717/770/771 can be operated in four differ-
ent oscillator modes. The user can program three con-
figuration bits (FOSC<2:0>) to select one of these eight
modes:
• LP
• XT
• HS
• ER
• INTRC
• EC
Low Power Crystal
Crystal/Resonator
High Speed Crystal/Resonator
External Resistor (with and without
CLKOUT)
Internal 4 MHz (with and without
CLKOUT)
External Clock
12.2.2 LP, XT AND HS MODES
In LP, XT or HS modes, a crystal or ceramic resonator
is connected to the OSC1/CLKIN and OSC2/CLKOUT
pins to establish oscillation (Figure 12-2). The
PIC16C717/770/771 oscillator design requires the use
of a parallel cut crystal. Use of a series cut crystal may
give a frequency out of the crystal manufacturers spec-
ifications.
DS41120A-page 126
Advanced Information
© 1999 Microchip Technology Inc.