Datasheet

PIC12F609/12F615/12F617/16F610/16F616 AND PIC12HV609/12HV615/16HV610/16HV616
DS41396A-page 18 2009 Microchip Technology Inc.
5.0 CONFIGURATION WORD
The PIC12F609/12F615/12F617/16F610/16F616 and
PIC12HV609/12HV615/16HV610/16HV616 devices
have several Configuration bits. These bits can be
programmed (reads ‘0’) or left unchanged (reads1’), to
select various device configurations.
REGISTER 5-1: CONFIG: CONFIGURATION WORD (ADDRESS: 2007h)
U-1 U-1 U-1 U-1 R/P-1 R/P-1 R/P-1
BOREN1 BOREN0 IOSCFS
bit 13
R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1 R/P-1
CP
MCLRE PWRTE WDTE FOSC2 FOSC1 FOSC0
bit 6
Legend: x = Bit is unknown P = Programmable bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared
bit 13-10 Unimplemented: Read as ‘1
bit 9-8 BOREN<1:0>: Brown-out Reset Enable bits
11 = BOR enabled
10 = BOR enabled while running and disabled in Sleep
0x = BOR disabled
bit 7 IOSCFS: Internal Oscillator Frequency Select bit
1 = 8 MHz
0 = 4 MHz
bit 6 CP
: Code Protection bit
1 = Program memory is not code-protected
0 = Program memory is external read and write-protected
bit 5 MCLRE: MCLR Pin Function Select
bit
1 = MCLR
pin is MCLR function and weak internal pull-up is enabled
0 = MCLR
pin is alternate function, MCLR function is internally disabled
bit 4 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: Low-power crystal on RA5/GP5 and RA4/GP4
001 = XT oscillator: Crystal/resonator on RA5/GP5 and RA4/GP4
010 = HS oscillator: High-speed crystal/resonator on RA5/GP5 and RA4/GP4
011 = EC: I/O function on RA4/GP4, CLKIN on RA5/GP5
100 = INTOSCIO oscillator: I/O function on RA4/GP4, I/O function on RA5/GP5
101 = INTOSC oscillator: CLKOUT function on RA4/GP4, I/O function on RA5/GP5
110 = EXTRCIO oscillator: I/O function on RA4/GP4, RC on RA5/GP5
111 = EXTRC oscillator: CLKOUT function on RA4/GP4, RC on RA5/GP5
Note 1: Enabling Brown-out Reset does not automatically enable Power-up Timer.