16LF84 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Oscillator Selection bits : RC oscillator
// Watchdog Timer : WDT enabled
// Power-up Timer Enable bit : Power-up Timer is disabled
// Code Protection bit : Code protection disabled
#pragma config FOSC = EXTRC, WDTE = ON, PWRTE = OFF, CP = OFF
#pragma config <setting>=<literal constant>
For example:
// Oscillator Selection bits : RC oscillator
// Watchdog Timer : WDT enabled
// Power-up Timer Enable bit : Power-up Timer is disabled
// Code Protection bit : Code protection disabled
#pragma config FOSC = 0x3, WDTE = 0x1, PWRTE = 0x1, CP = 0x3FF
#pragma config <register>=<literal constant>
For example:
// Oscillator Selection bits : RC oscillator
// Watchdog Timer : WDT enabled
// Power-up Timer Enable bit : Power-up Timer is disabled
// Code Protection bit : Code protection disabled
#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
; Watchdog Timer : WDT enabled
; Power-up Timer Enable bit : Power-up Timer is disabled
; Code Protection bit : Code protection disabled
config "FOSC" = "EXTRC", "WDTE" = "ON", "PWRTE" = "OFF", "CP" = "OFF"
config "<setting>"=<literal constant>
For example:
; Oscillator Selection bits : RC oscillator
; Watchdog Timer : WDT enabled
; Power-up Timer Enable bit : Power-up Timer is disabled
; Code Protection bit : Code protection disabled
config "FOSC" = 0x3, "WDTE" = 0x1, "PWRTE" = 0x1, "CP" = 0x3FF
config "<register>"=<literal constant>
For example:
; Oscillator Selection bits : RC oscillator
; Watchdog Timer : WDT enabled
; Power-up Timer Enable bit : Power-up Timer is disabled
; Code Protection bit : Code protection disabled
config "CONFIG" = 0x3FFF
For example:
; IDLOC @ 0x2000
config "IDLOC0" = 0x127

Configuration Registers & Settings

Register: CONFIG @ 0x2007
FOSC Oscillator Selection bits
EXTRC RC oscillator
HS HS oscillator
XT XT oscillator
LP LP oscillator
WDTE Watchdog Timer
ON WDT enabled
OFF WDT disabled
PWRTE Power-up Timer Enable bit
OFF Power-up Timer is disabled
ON Power-up Timer is enabled
CP Code Protection bit
OFF Code protection disabled
ON All program memory is code protected
Register: IDLOC0 @ 0x2000
Register: IDLOC1 @ 0x2001
Register: IDLOC2 @ 0x2002
Register: IDLOC3 @ 0x2003