12CE674 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Oscillator selection bits : EXTRC, Clockout on OSC2
// Watchdog Timer Enable bit : WDT enabled
// Power Up Timer : Disabled
// Code Protection bits : code protection off
// Master Clear Enable : Master Clear enabled
#pragma config FOSC = EXTRCCLK, WDTE = ON, PWRTE = OFF, CP = OFF, MCLRE = ON
#pragma config <setting>=<literal constant>
For example:
// Oscillator selection bits : EXTRC, Clockout on OSC2
// Watchdog Timer Enable bit : WDT enabled
// Power Up Timer : Disabled
// Code Protection bits : code protection off
// Master Clear Enable : Master Clear enabled
#pragma config FOSC = 0x7, WDTE = 0x1, PWRTE = 0x1, CP = 0x1FB, MCLRE = 0x1
#pragma config <register>=<literal constant>
For example:
// Oscillator selection bits : EXTRC, Clockout on OSC2
// Watchdog Timer Enable bit : WDT enabled
// Power Up Timer : Disabled
// Code Protection bits : code protection off
// Master Clear Enable : Master Clear 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 : EXTRC, Clockout on OSC2
; Watchdog Timer Enable bit : WDT enabled
; Power Up Timer : Disabled
; Code Protection bits : code protection off
; Master Clear Enable : Master Clear enabled
config "FOSC" = "EXTRCCLK", "WDTE" = "ON", "PWRTE" = "OFF", "CP" = "OFF", "MCLRE" = "ON"
config "<setting>"=<literal constant>
For example:
; Oscillator selection bits : EXTRC, Clockout on OSC2
; Watchdog Timer Enable bit : WDT enabled
; Power Up Timer : Disabled
; Code Protection bits : code protection off
; Master Clear Enable : Master Clear enabled
config "FOSC" = 0x7, "WDTE" = 0x1, "PWRTE" = 0x1, "CP" = 0x1FB, "MCLRE" = 0x1
config "<register>"=<literal constant>
For example:
; Oscillator selection bits : EXTRC, Clockout on OSC2
; Watchdog Timer Enable bit : WDT enabled
; Power Up Timer : Disabled
; Code Protection bits : code protection off
; Master Clear Enable : Master Clear enabled
config "CONFIG" = 0x3FFF
For example:
; IDLOC @ 0x2000
config "IDLOC0" = 0x127

Configuration Registers & Settings

Register: CONFIG @ 0x2007
FOSC Oscillator selection bits
EXTRCCLK EXTRC, Clockout on OSC2
EXTRCIO EXTRC, OSC2 is I/O
INTRCCLK INTRC, Clockout on OSC2
INTRCIO INTRC, OSC2 is I/O
HS HS oscillator
XT XT oscillator
LP LP oscillator
WDTE Watchdog Timer Enable bit
ON WDT enabled
OFF WDT disabled
PWRTE Power Up Timer
OFF Disabled
ON Enabled
CP Code Protection bits
OFF code protection off
50 0400h-07FEh code protected
75 0200h-07FEh code protected
ALL All memory is code protected
MCLRE Master Clear Enable
ON Master Clear enabled
OFF Master Clear disabled
Register: IDLOC0 @ 0x2000
Register: IDLOC1 @ 0x2001
Register: IDLOC2 @ 0x2002
Register: IDLOC3 @ 0x2003