18F87J93 Support Information

XC8-CC #pragma config Usage

#pragma config <setting>=<named value>
For example:
// Watchdog Timer : Enabled
// Stack Overflow Reset : Enabled
// Extended Instruction Set Enable bit : Enabled
#pragma config WDTEN = ON, STVREN = ON, XINST = ON
#pragma config <setting>=<literal constant>
For example:
// Watchdog Timer : Enabled
// Stack Overflow Reset : Enabled
// Extended Instruction Set Enable bit : Enabled
#pragma config WDTEN = 0x1, STVREN = 0x1, XINST = 0x1
#pragma config <register>=<literal constant>
For example:
// Watchdog Timer : Enabled
// Stack Overflow Reset : Enabled
// Extended Instruction Set Enable bit : Enabled
#pragma config CONFIG1L = 0xE1

PIC-AS config Usage

config "<setting>"="<named value>"
For example:
; Watchdog Timer : Enabled
; Stack Overflow Reset : Enabled
; Extended Instruction Set Enable bit : Enabled
config "WDTEN" = "ON", "STVREN" = "ON", "XINST" = "ON"
config "<setting>"=<literal constant>
For example:
; Watchdog Timer : Enabled
; Stack Overflow Reset : Enabled
; Extended Instruction Set Enable bit : Enabled
config "WDTEN" = 0x1, "STVREN" = 0x1, "XINST" = 0x1
config "<register>"=<literal constant>
For example:
; Watchdog Timer : Enabled
; Stack Overflow Reset : Enabled
; Extended Instruction Set Enable bit : Enabled
config "CONFIG1L" = 0xE1

Configuration Registers & Settings

Register: CONFIG1L @ 0x1FFF8
WDTEN Watchdog Timer
ON Enabled
OFF Disabled-Controlled by SWDTEN bit
STVREN Stack Overflow Reset
ON Enabled
OFF Disabled
XINST Extended Instruction Set Enable bit
ON Enabled
OFF Disabled
Register: CONFIG1H @ 0x1FFF9
CP0 Code Protect
OFF Disabled
ON Enabled
Register: CONFIG2L @ 0x1FFFA
OSC Oscillator Selection bits
ECPLL EC Oscillator with PLL
EC EC Oscillator with clock out on RA6
HSPLL HS oscillator, PLL enabled
HS HS oscillator
INTOSCPLLO INTOSC with PLL enabled, CLKOUT on RA6 and port function on RA7
INTOSCO Internal oscillator, CLKOUT on RA6 and port function on RA7
INTOSCPLL INTOSC with PLL enabled, port function on RA6 and RA7
INTOSC Internal oscillator, port function on RA6 and RA7
T1DIG Secondary Clock Source T1OSCEN Enforcement
ON Secondary Oscillator clock source may be selected
OFF Secondary Oscillator clock source may not be selected
LPT1OSC Low-Power Timer1 Oscillator Enable bit
ON Timer1 oscillator configured for low-power operation
OFF Timer1 oscillator configured for higher power operation
FCMEN Fail-Safe Clock Monitor Enable bit
OFF Fail-Safe Clock Monitor disabled
ON Fail-Safe Clock Monitor enabled
IESO Two-Speed Start-up (Internal/External Oscillator Switchover) Control bit
OFF Two-Speed Start-up disabled
ON Two-Speed Start-up enabled
Register: CONFIG2H @ 0x1FFFB
WDTPS Watchdog Timer Postscaler Select bits
32768 1:32768
16384 1:16384
8192 1:8192
4096 1:4096
2048 1:2048
1024 1:1024
512 1:512
256 1:256
128 1:128
64 1:64
32 1:32
16 1:16
8 1:8
4 1:4
2 1:2
1 1:1
Register: CONFIG3L @ 0x1FFFC
RTCSOSC RTCC Reference Clock Select bit
T1OSCREF RTCC uses T1OSC/T1CKI as reference clock
INTOSCREF RTCC uses INTOSC/INTRC as reference clock
Register: CONFIG3H @ 0x1FFFD
CCP2MX CCP2 MUX
ALTERNATE RE7
DEFAULT RC1