Datasheet

PIC12F508/509/16F505
DS41236B-page 40 Preliminary © 2005 Microchip Technology Inc.
REGISTER 7-2: CONFIGURATION WORD FOR PIC16F505
(1)
MCLRE CP WDTE FOSC2 FOSC1 FOSC0
bit 11 bit 0
bit 11-6 Unimplemented: Read as ‘0
bit 5 MCLRE: RB3/MCLR
Pin Function Select bit
1 = RB3/MCLR
pin function is MCLR
0 = RB3/MCLR pin function is digital I/O, MCLR internally tied to VDD
bit 4 CP: Code Protection bit
1 = Code protection off
0 = Code protection on
bit 3 WDTE: Watchdog Timer Enable bit
1 = WDT enabled
0 = WDT disabled
bit 2-0 FOSC<1:0>: Oscillator Selection bits
111 = External RC oscillator/CLKOUT function on RB4/OSC2/CLKOUT pin
110 = External RC oscillator/RB4 function on RB4/OSC2/CLKOUT pin
101 = Internal RC oscillator/CLKOUT function on RB4/OSC2/CLKOUT pin
100 = Internal RC oscillator/RB4 function on RB4/OSC2/CLKOUT pin
011 = EC oscillator/RB4 function on RB4/OSC2/CLKOUT pin
010 = HS oscillator
001 = XT oscillator
000 = LP oscillator
Note 1: Refer to the “PIC16F505 Memory Programming Specifications” (DS41226) to determine how to
access the Configuration Word. The Configuration Word is not user addressable during device
operation.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = bit is set ‘0’ = bit is cleared x = bit is unknown