Other directives

The built-in #defines are used to support the #IFDEF command set are as follows. The table also shows which #defines are supported as string in HSerPrint, SerPrint and other string related commands.

Directive Description Output Usage Returns

ChipADC

String

#IFDEF & Output commands

The number of A/D inputs on the current chip

ChipEEprom

Number

#IFDEF & Output commands

The number of Bytes in EEPROM memmory

ChipIO

String

#IFDEF & Output commands

The number of general purpose IO pins

ChipMHz

String

#IFDEF & Output commands

The microcontroller clock speed

ChipName

Number

#IFDEF Only

The microcontroller type

ChipNameStr

String

#IFDEF & Output commands

The microcontroller name

ChipPins

Number

#IFDEF & Output commands

The number of microcontroller pins.

ChipRAM

Number

#IFDEF & Output commands

The RAM size

ChipFamily

Number

#IFDEF & Output commands

12, 14 or 16 depending on instruction width

CHIPWORDS

Number

#IFDEF & Output commands

The number of WORDS in Flash memmory

Var()

Function

Not applicable

True if a variable or bit is declared/not declared in the currently selected microcontroller

NoVar()

Function

Not applicable

True if a variable or bit is declared/not declared in the currently selected microcontroller

Bit()

Function

Not applicable

True if a variable or bit is declared/not declared in the currently selected microcontroller

NoBit()

Function

Not applicable

True if a variable or bit is declared/not declared in the currently selected microcontroller

Allof

AllOf(define1, define2, …)

Not applicable

True if all of or one of the listed defines is declared:

OneOf

OneOf(define1, define2, …)

Not applicable

True if all of or one of the listed defines is declared: