ASM30 Toolchain

A macro specified in the device include file is used to set Configuration bits:

config __reg, value

where

__reg Configuration register name macro.
value Expression representing the value to which the specified Configuration bits will be set. May be literal but usually represented by a macro or macros ANDed together.

Macros are specified in the device include file (*.inc) that is located in the Windows OS default directory:

C:\Program Files\Microchip\MPLAB ASM30 Suite\Support\device\inc

where device is the abbreviation of the selected 16-bit device, such as PIC24H or dsPIC33F.

Macro case should match what is in the relevant header. For example, config is correct but CONFIG is not.

In the “MPLAB® Assembler, Linker and Utilities for PIC24 MCUs and dsPIC® DSCs User’s Guide” (DS50001317), see “Output Sections in Configuration Memory.”

Example

.include "p30fxxxx.inc"
;Clock switching off, Fail-safe clock monitoring off,
; Use External Clock
config __FOSC, CSW_FSCM_OFF & XT_PLL16
;Turn off Watchdog Timer
config __FWDT, WDT_OFF