line

Jake's Electronics

a place to document

line

Configuration Word for PIC12F629/675

Select Device:

   PIC12F629

   PIC12F675

Configuration Word Register(ADDRESS 2007h)
BG1
BG0
_
_
_
CPD
CP
BODEN
MCLRE
PWRTEN
WDTEN
FOSC2
FOSC1
FOSC0
bit 13
bit 0

bit 13-12:

BG1:BG0: Bandgap Calibration bits for BOD and POR voltage (1)

   00 = Lowest bandgap voltage

   11 = Highest bandgap voltage

bit 11-9:

Unimplemented: Read as '0'

bit 8:

CPD: Data Code Protection bit (2)

   1 = Data memory code protection is disabled

   0 = Data memory code protection is enabled

bit 7:

CP: Code Protection bit (3)

   1 = Program Memory code protection is disabled

   0 = Program Memory code protection is enabled

bit 6:

BODEN>: Brown-out Detect Enable bit (4)

   1 = BOD enabled

   0 = BOD disabled

bit 5:

MCLRE: GP3/MCLR Pin Function Select bit (5)

   1 = GP3/MCLR pin function is MCLR

   0 = GP3/MCLR pin function is digital I/O, MCLR internally tied to VDD

bit 4:

PWRTEN: Power-up Timer Enable bit

   1 = PWRT disabled

   0 = PWRT enabled

bit 3:

WDTE: Watchdog Timer Enable bit

   1 = WDT enabled

   0 = WDT disabled

bit 2-0:

FOSC2:FOSC0: Oscillator Selection bits

   111 = RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN

   110 = RC oscillator: I/O function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN

   101 = INTOSC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN

   100 = INTOSC oscillator: I/O function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN

   011 = EC: I/O function on GP4/OSC2/CLKOUT pin, CLKIN on GP5/OSC1/CLKIN

   010 = HS oscillator: High speed crystal/resonator on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN

   001 = XT oscillator: Crystal/resonator on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN

   000 = LP oscillator: Low-power crystal on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN

Notes
1:
The Bandgap Calibration bits are factory programmed and must be read and saved prior to erasing the device as specified in the PIC12F629/675 Programming Specification This is done automatically by the programmer! These bits are reflected in an export of the Configuration Word. Microchip Development Tools maintain all Calibration bits to factory settings.
 
2:
The entire data EEPROM will be erased when the code protection is turned off.
 
3:
The entire program memory will be erased, including OSCCAL value, when the code protection is turned off.
 
4:
Enabling Brown-out Detect does not automatically enable Power-up Timer.
 
5:
When MCLR is asserted in INTOSC or RC mode, the internal clock oscillator is disabled.

Complete Header with Configuration Word and Pin Diagram:

line