68

General Purpose I/O (GPIO) commands

There are 5 user programmable general purpose output signals available on each
radio control board (RCB). These signals are available on the DB15 aux I/O
connector. Each signal is an open collector output with and active pull to ground.
The output buffer can sink up to 500 ma and will pull to approximately 0.6v
when active. When inactive, the signal will float. This works well to control
external DC relays.
C370 (u) Set GPIO word
Syntax is C370rnn
Sets all 5 general purpose output pins on a specific RCB board
specified by r based on the value of nn.
A set bit (logic 1) will actively pull that bit to ground.
r is radio number 0..7
nn is a number from 0..31 to define the state of the 5 pins.
C371 (u) Set individual GPIO bit
Sets or resets one general purpose output pin on a specific RCB board.
Syntax is C371rbv
r is the radio (0..7)
b is the bit (0..4)
v is the value (0 or 1)
A value of 1 will set the output bit meaning that it will pull the bit to
ground.
Example:
C371 0 0 1 Set radio port 0, user bit 0 to ground (active low on state)
C371 0 0 0 Sets radio port 0, user bit 0 to float (off state)