PIC18C658 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.
CONFIG1L · 0x300000 0xFF default 0xFF CP Code Protection bits All of program memory code protected Program memory code protection off CONFIG1H · 0x300001 0xE7 default 0xE7 OSCS Oscillator System Clock Switch Enable bit Oscillator system clock switch option is enabled (Oscillator switching is enabled) Oscillator system clock switch option is disabled (Main oscillator is source) OSC Oscillator Selection bits LP oscillator XT oscillator HS oscillator RC oscillator EC oscillator w/ OSC2 configured as divide by 4 clock output EC oscillator w/ OSC2 configured as RA6 HS4 oscillator with PLL enabled/Clock frequency = (4 x Fosc) RC oscillator w/ OSC2 configured as RA6 CONFIG2L · 0x300002 0x0F default 0x0F BORV Brown-out Reset Voltage bits VBOR set to 4.5V VBOR set to 4.2V VBOR set to 2.7V VBOR set to 2.5V BOR Brown-out Reset Enable bit Brown-out Reset disabled Brown-out Reset enabled PWRT Power-up Timer Enable bit PWRT enabled PWRT disabled CONFIG2H · 0x300003 0x0F default 0x0F WDTPS Watchdog Timer Postscale Select bits 1:1 1:2 1:4 1:8 1:16 1:32 1:64 1:128 WDT Watchdog Timer Enable bit WDT disabled (control is placed on the SWDTEN bit) WDT enabled CONFIG4L · 0x300006 0x03 default 0x03 STVR Stack Full/Underflow RESET Enable bit Stack Full/Underflow will not cause RESET Stack Full/Underflow will cause RESET