PIC16F628A configuration bits The configuration words set the oscillator, the watchdog, the power-up timer, brown-out reset, low-voltage programming and code protection. Pick a setting and the word below updates; the starting values are the defaults in Microchip's device file. In XC8 each setting is a #pragma config NAME = SETTING line.
CONFIG · 0x2007 0x3FFF default 0x3FFF CP Flash Program Memory Code Protection bit 0000h to 07FFh code-protected Code protection off CPD Data EE Memory Code Protection bit Data memory code-protected Data memory code protection off LVP Low-Voltage Programming Enable bit RB4/PGM pin has digital I/O function, HV on MCLR must be used for programming RB4/PGM pin has PGM function, low-voltage programming enabled BOREN Brown-out Detect Enable bit BOD disabled BOD enabled MCLRE RA5/MCLR/VPP Pin Function Select bit RA5/MCLR/VPP pin function is digital input, MCLR internally tied to VDD RA5/MCLR/VPP pin function is MCLR FOSC Oscillator Selection bits LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN INTOSC oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN RC oscillator: I/O function on RA6/OSC2/CLKOUT pin, Resistor and Capacitor on RA7/OSC1/CLKIN RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, Resistor and Capacitor on RA7/OSC1/CLKIN PWRTE Power-up Timer Enable bit PWRT enabled PWRT disabled WDTE Watchdog Timer Enable bit WDT disabled WDT enabled