12F615 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
// Watchdog Timer Enable bit : WDT enabled
// Power-up Timer Enable bit : PWRT disabled
// MCLR Pin Function Select bit : MCLR pin function is MCLR
// Code Protection bit : Program memory code protection is disabled
// Internal Oscillator Frequency Select : 8 MHz
// Brown-out Reset Selection bits : BOR enabled
#pragma config FOSC = EXTRCCLK, WDTE = ON, PWRTE = OFF, MCLRE = ON, CP = OFF, IOSCFS = 8MHZ, BOREN = ON
#pragma config <setting>=<literal constant>
For example:
// Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
// Watchdog Timer Enable bit : WDT enabled
// Power-up Timer Enable bit : PWRT disabled
// MCLR Pin Function Select bit : MCLR pin function is MCLR
// Code Protection bit : Program memory code protection is disabled
// Internal Oscillator Frequency Select : 8 MHz
// Brown-out Reset Selection bits : BOR enabled
#pragma config FOSC = 0x7, WDTE = 0x1, PWRTE = 0x1, MCLRE = 0x1, CP = 0x1, IOSCFS = 0x1, BOREN = 0x3
#pragma config <register>=<literal constant>
For example:
// Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
// Watchdog Timer Enable bit : WDT enabled
// Power-up Timer Enable bit : PWRT disabled
// MCLR Pin Function Select bit : MCLR pin function is MCLR
// Code Protection bit : Program memory code protection is disabled
// Internal Oscillator Frequency Select : 8 MHz
// Brown-out Reset Selection bits : BOR enabled
#pragma config CONFIG = 0x3FFF
For example:
// IDLOC @ 0x2000
#pragma config IDLOC0 = 0x127

PIC-AS config Usage

config "<setting>"="<named value>"
For example:
; Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
; Watchdog Timer Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; MCLR Pin Function Select bit : MCLR pin function is MCLR
; Code Protection bit : Program memory code protection is disabled
; Internal Oscillator Frequency Select : 8 MHz
; Brown-out Reset Selection bits : BOR enabled
config "FOSC" = "EXTRCCLK", "WDTE" = "ON", "PWRTE" = "OFF", "MCLRE" = "ON", "CP" = "OFF", "IOSCFS" = "8MHZ", "BOREN" = "ON"
config "<setting>"=<literal constant>
For example:
; Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
; Watchdog Timer Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; MCLR Pin Function Select bit : MCLR pin function is MCLR
; Code Protection bit : Program memory code protection is disabled
; Internal Oscillator Frequency Select : 8 MHz
; Brown-out Reset Selection bits : BOR enabled
config "FOSC" = 0x7, "WDTE" = 0x1, "PWRTE" = 0x1, "MCLRE" = 0x1, "CP" = 0x1, "IOSCFS" = 0x1, "BOREN" = 0x3
config "<register>"=<literal constant>
For example:
; Oscillator Selection bits : RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
; Watchdog Timer Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; MCLR Pin Function Select bit : MCLR pin function is MCLR
; Code Protection bit : Program memory code protection is disabled
; Internal Oscillator Frequency Select : 8 MHz
; Brown-out Reset Selection bits : BOR enabled
config "CONFIG" = 0x3FFF
For example:
; IDLOC @ 0x2000
config "IDLOC0" = 0x127

Configuration Registers & Settings

Register: CONFIG @ 0x2007
FOSC Oscillator Selection bits
EXTRCCLK RC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
EXTRCIO RCIO oscillator: I/O function on GP4/OSC2/CLKOUT pin, RC on GP5/OSC1/CLKIN
INTOSCCLK INTOSC oscillator: CLKOUT function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN
INTOSCIO INTOSCIO oscillator: I/O function on GP4/OSC2/CLKOUT pin, I/O function on GP5/OSC1/CLKIN
EC EC: I/O function on GP4/OSC2/CLKOUT pin, CLKIN on GP5/OSC1/CLKIN
HS HS oscillator: High-speed crystal/resonator on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN
XT XT oscillator: Crystal/resonator on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN
LP LP oscillator: Low-power crystal on GP4/OSC2/CLKOUT and GP5/OSC1/CLKIN
WDTE Watchdog Timer Enable bit
ON WDT enabled
OFF WDT disabled and can be enabled by SWDTEN bit of the WDTCON register
PWRTE Power-up Timer Enable bit
OFF PWRT disabled
ON PWRT enabled
MCLRE MCLR Pin Function Select bit
ON MCLR pin function is MCLR
OFF MCLR pin function is digital input, MCLR internally tied to VDD
CP Code Protection bit
OFF Program memory code protection is disabled
ON Program memory code protection is enabled
IOSCFS Internal Oscillator Frequency Select
8MHZ 8 MHz
4MHZ 4 MHz
BOREN Brown-out Reset Selection bits
ON BOR enabled
NSLEEP BOR enabled during operation and disabled in Sleep
OFF BOR disabled
Register: IDLOC0 @ 0x2000
Register: IDLOC1 @ 0x2001
Register: IDLOC2 @ 0x2002
Register: IDLOC3 @ 0x2003