16C773 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
// Power-up Timer Enable bit : PWRT disabled
// Code Protection bits : Code protection off
// Brown-out Reset Enable bit : BOR enabled
// Brown Out Voltage : VBOR set to 2.5V
#pragma config FOSC = RC, WDTE = ON, PWRTE = OFF, CP = OFF, BOREN = ON, BODENV = 25
#pragma config <setting>=<literal constant>
For example:
// Oscillator selection bits : RC oscillator
// Watchdog Timer Enable bit : WDT enabled
// Power-up Timer Enable bit : PWRT disabled
// Code Protection bits : Code protection off
// Brown-out Reset Enable bit : BOR enabled
// Brown Out Voltage : VBOR set to 2.5V
#pragma config FOSC = 0x3, WDTE = 0x1, PWRTE = 0x1, CP = 0x333, BOREN = 0x1, BODENV = 0x3
#pragma config <register>=<literal constant>
For example:
// Oscillator selection bits : RC oscillator
// Watchdog Timer Enable bit : WDT enabled
// Power-up Timer Enable bit : PWRT disabled
// Code Protection bits : Code protection off
// Brown-out Reset Enable bit : BOR enabled
// Brown Out Voltage : VBOR set to 2.5V
#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 Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; Code Protection bits : Code protection off
; Brown-out Reset Enable bit : BOR enabled
; Brown Out Voltage : VBOR set to 2.5V
config "FOSC" = "RC", "WDTE" = "ON", "PWRTE" = "OFF", "CP" = "OFF", "BOREN" = "ON", "BODENV" = "25"
config "<setting>"=<literal constant>
For example:
; Oscillator selection bits : RC oscillator
; Watchdog Timer Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; Code Protection bits : Code protection off
; Brown-out Reset Enable bit : BOR enabled
; Brown Out Voltage : VBOR set to 2.5V
config "FOSC" = 0x3, "WDTE" = 0x1, "PWRTE" = 0x1, "CP" = 0x333, "BOREN" = 0x1, "BODENV" = 0x3
config "<register>"=<literal constant>
For example:
; Oscillator selection bits : RC oscillator
; Watchdog Timer Enable bit : WDT enabled
; Power-up Timer Enable bit : PWRT disabled
; Code Protection bits : Code protection off
; Brown-out Reset Enable bit : BOR enabled
; Brown Out Voltage : VBOR set to 2.5V
config "CONFIG" = 0x3FFF
For example:
; IDLOC @ 0x2000
config "IDLOC0" = 0x127

Configuration Registers & Settings

Register: CONFIG @ 0x2007
FOSC Oscillator selection bits
RC RC oscillator
HS HS oscillator
XT XT oscillator
LP LP oscillator
WDTE Watchdog Timer Enable bit
ON WDT enabled
OFF WDT disabled
PWRTE Power-up Timer Enable bit
OFF PWRT disabled
ON PWRT enabled
CP Code Protection bits
OFF Code protection off
50 0800h-0FFFh code protected
75 0400h-0FFFh code protected
ALL All memory is code protected
BOREN Brown-out Reset Enable bit
ON BOR enabled
OFF BOR disabled
BODENV Brown Out Voltage
25 VBOR set to 2.5V
27 VBOR set to 2.7V
42 VBOR set to 4.2V
45 VBOR set to 4.5V
Register: IDLOC0 @ 0x2000
Register: IDLOC1 @ 0x2001
Register: IDLOC2 @ 0x2002
Register: IDLOC3 @ 0x2003