10F220 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Internal Oscillator Frequency Select bit : 8 MHz
// Master Clear Pull-up Enable bit : Pull-up disabled
// Watchdog Timer Enable bit : WDT enabled
// Code protection bit : Code protection off
// GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
#pragma config IOSCFS = 8MHZ, MCPU = OFF, WDTE = ON, CP = OFF, MCLRE = ON
#pragma config <setting>=<literal constant>
For example:
// Internal Oscillator Frequency Select bit : 8 MHz
// Master Clear Pull-up Enable bit : Pull-up disabled
// Watchdog Timer Enable bit : WDT enabled
// Code protection bit : Code protection off
// GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
#pragma config IOSCFS = 0x1, MCPU = 0x1, WDTE = 0x1, CP = 0x1, MCLRE = 0x1
#pragma config <register>=<literal constant>
For example:
// Internal Oscillator Frequency Select bit : 8 MHz
// Master Clear Pull-up Enable bit : Pull-up disabled
// Watchdog Timer Enable bit : WDT enabled
// Code protection bit : Code protection off
// GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
#pragma config CONFIG = 0xFFF
For example:
// IDLOC @ 0x100
#pragma config IDLOC0 = 0x4095

PIC-AS config Usage

config "<setting>"="<named value>"
For example:
; Internal Oscillator Frequency Select bit : 8 MHz
; Master Clear Pull-up Enable bit : Pull-up disabled
; Watchdog Timer Enable bit : WDT enabled
; Code protection bit : Code protection off
; GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
config "IOSCFS" = "8MHZ", "MCPU" = "OFF", "WDTE" = "ON", "CP" = "OFF", "MCLRE" = "ON"
config "<setting>"=<literal constant>
For example:
; Internal Oscillator Frequency Select bit : 8 MHz
; Master Clear Pull-up Enable bit : Pull-up disabled
; Watchdog Timer Enable bit : WDT enabled
; Code protection bit : Code protection off
; GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
config "IOSCFS" = 0x1, "MCPU" = 0x1, "WDTE" = 0x1, "CP" = 0x1, "MCLRE" = 0x1
config "<register>"=<literal constant>
For example:
; Internal Oscillator Frequency Select bit : 8 MHz
; Master Clear Pull-up Enable bit : Pull-up disabled
; Watchdog Timer Enable bit : WDT enabled
; Code protection bit : Code protection off
; GP3/MCLR Pin Function Select bit : GP3/MCLR pin function is MCLR
config "CONFIG" = 0xFFF
For example:
; IDLOC @ 0x100
config "IDLOC0" = 0x4095

Configuration Registers & Settings

Register: CONFIG @ 0xFFF
IOSCFS Internal Oscillator Frequency Select bit
8MHZ 8 MHz
4MHZ 4 MHz
MCPU Master Clear Pull-up Enable bit
OFF Pull-up disabled
ON Pull-up enabled
WDTE Watchdog Timer Enable bit
ON WDT enabled
OFF WDT disabled
CP Code protection bit
OFF Code protection off
ON Code protection on
MCLRE GP3/MCLR Pin Function Select bit
ON GP3/MCLR pin function is MCLR
OFF GP3/MCLR pin function is digital I/O, MCLR internally tied to VDD
Register: IDLOC0 @ 0x100
Register: IDLOC1 @ 0x101
Register: IDLOC2 @ 0x102
Register: IDLOC3 @ 0x103