MCV28A Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Oscillator selection bits : RC oscillator
// Watchdog timer enable bit : WDT enabled
// Code protection bit : Code protection off
#pragma config OSC = RC, WDT = ON, CP = OFF
#pragma config <setting>=<literal constant>
For example:
// Oscillator selection bits : RC oscillator
// Watchdog timer enable bit : WDT enabled
// Code protection bit : Code protection off
#pragma config OSC = 0x3, WDT = 0x1, CP = 0x1
#pragma config <register>=<literal constant>
For example:
// Oscillator selection bits : RC oscillator
// Watchdog timer enable bit : WDT enabled
// Code protection bit : Code protection off
#pragma config CONFIG = 0xFFF
For example:
// IDLOC @ 0x800
#pragma config IDLOC0 = 0x4095

PIC-AS config Usage

config "<setting>"="<named value>"
For example:
; Oscillator selection bits : RC oscillator
; Watchdog timer enable bit : WDT enabled
; Code protection bit : Code protection off
config "OSC" = "RC", "WDT" = "ON", "CP" = "OFF"
config "<setting>"=<literal constant>
For example:
; Oscillator selection bits : RC oscillator
; Watchdog timer enable bit : WDT enabled
; Code protection bit : Code protection off
config "OSC" = 0x3, "WDT" = 0x1, "CP" = 0x1
config "<register>"=<literal constant>
For example:
; Oscillator selection bits : RC oscillator
; Watchdog timer enable bit : WDT enabled
; Code protection bit : Code protection off
config "CONFIG" = 0xFFF
For example:
; IDLOC @ 0x800
config "IDLOC0" = 0x4095

Configuration Registers & Settings

Register: CONFIG @ 0xFFF
OSC Oscillator selection bits
RC RC oscillator
HS HS oscillator
XT XT oscillator
LP LP oscillator
WDT Watchdog timer enable bit
ON WDT enabled
OFF WDT disabled
CP Code protection bit
OFF Code protection off
ON Code protection on
Register: IDLOC0 @ 0x800
Register: IDLOC1 @ 0x801
Register: IDLOC2 @ 0x802
Register: IDLOC3 @ 0x803