The Commander core has 32 general-purpose configurable digital I/O available. The IO command can be used to access the current configurable I/O status. The value must be a 32-bit integer. 

Configurable digital I/O can also be accessed one bit at a time using the IO[1-32] commands. Note that the indexes are 1-based for the bit references. For example, IO1 refers to bit 0, not bit 1. 

In order to set a configurable digital I/O as an input or output, use the IOCFG command. If a bit in the 32-bit IOCFG value is set to 0, the corresponding configurable digital I/O will be defined as an input. If the bit is 1, the configurable digital I/O will be defined as an output.

The initial state of the configurable digital I/O can be defined by setting the 32-bit IOBOOT register to the desired initial configured output value. The IOBOOT value will only be applicable to configurable I/O defined as outputs by the IOCFG command. The IOBOOT value must be a 32-bit value. The value is stored to flash memory once the STORE command is issued.  The settings take effect on the next power cycle.

The 2-bit IOP command can be used to toggle the polarity of the configurable I/O. See table IOP command below.

Bit

Description

Setting

0

Logic of input setting

0  -  Negative logic Active Low

1  -  Positive logic Active High

1

Logic of output setting

0  -  Negative logic Active Low

1  -  Positive logic Active High

IOP command

ASCII

IO

IO[1-32]

IOBOOT

IOCFG

IOP

STORE

Standalone

IO

IO[1-32]

STORE


<  Section Home | Home | Next SubSection >