The
directive allows the configuration bits,
or fuses, to be specified in the assembly source file.config
The directive has the following forms:
CONFIG setting = value
CONFIG register = literal_value
Here, setting
is a configuration setting descriptor,
e.g., WDT
and value
can be either a textual
description of the desired state, e.g., OFF
or a numerical value.
Numerical values are subject to the same constraints as other numerical constant
operands.
The register
field is the name of a configuration or id-location
register.
The available setting
, register
and
value
fields are documented in the chipinfo file
relevant to your device (i.e. pic_chipinfo.html and
pic18_chipinfo.html).
; PIC18F67K22
; VREG Sleep Enable bit : Enabled
; LF-INTOSC Low-power Enable bit : LF-INTOSC in High-power mode during Sleep
; SOSC Power Selection and mode Configuration bits : High Power SOSC circuit selected
; Extended Instruction Set : Enabled
config RETEN = ON, INTOSCSEL = HIGH, SOSCSEL = HIGH, XINST = ON
; Alternatively
config CONFIG1L = 0x5D
; IDLOC @ 0x200000
config IDLOC0 = 0x15