PIC16LF818 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 All memory locations code-protected Code protection off CCPMX CCP1 Pin Selection bit CCP1 function on RB3 CCP1 function on RB2 DEBUG In-Circuit Debugger Mode bit In-Circuit Debugger enabled, RB6 and RB7 are dedicated to the debugger In-Circuit Debugger disabled, RB6 and RB7 are general purpose I/O pins WRT Flash Program Memory Write Enable bits 0000h to 03FFh write-protected 0000h to 01FFh write-protected, 0200h to 03FFh may be modified by EECON control Write protection off CPD Data EE Memory Code Protection bit Data EE memory locations code-protected Code protection off LVP Low-Voltage Programming Enable bit RB3/PGM pin has digital I/O function, HV on MCLR must be used for programming RB3/PGM pin has PGM function, Low-Voltage Programming enabled BOREN Brown-out Reset Enable bit BOR disabled BOR enabled MCLRE RA5/MCLR/VPP Pin Function Select bit RA5/MCLR/VPP pin function is digital I/O, MCLR internally tied to VDD RA5/MCLR/VPP pin function is MCLR FOSC Oscillator Selection bits LP oscillator XT oscillator HS oscillator EXTCLK; port I/O function on RA6/OSC2/CLKO pin INTRC oscillator; port I/O function on both RA6/OSC2/CLKO pin and RA7/OSC1/CLKI pin INTRC oscillator; CLKO function on RA6/OSC2/CLKO pin and port I/O function on RA7/OSC1/CLKI pin EXTRC oscillator; port I/O function on RA6/OSC2/CLKO pin EXTRC oscillator; CLKO function on RA6/OSC2/CLKO pin PWRTE Power-up Timer Enable bit PWRT enabled PWRT disabled WDTE Watchdog Timer Enable bit WDT disabled WDT enabled