SMAC
LAC-26 Technical Reference Manual
4/29/2013 51
4.8 Input / Output (I/O) Commands
The user is able to manipulate the LAC-26's I/O channels via the use
of
several
commands.
These include setting or clearing outputs, reading inputs and altering the logic type of both.
Command:
BIn
-- Bulk Input from I/O Port 'n' --
Argument:
0 <= n <= 7
This command reads the value at the 8-bit
digital
input
port and
copies
it
to the
low
8-bits
of the
accumulator
with the lower
channel
being
the lowest
bit
in
the
accumulator.
The
unused
bits of the accumulator will be set to 0.
The
state of
the
inputs
will
be
determined
by
the
Channel
High (CH) and Channel Low (CL) commands and the inputs
will
have
been
debounced
if
the
Input
Debounce (ID) command is in effect.
Related Commands: BO
Command:
BOn
-- Bulk Output to I/O Port 'n' --
Argument:
0 <= n <= 7
This command copies the low 8-bits of the accumulator to the digital output port.
The
state
of the
outputs
will
be
determined
by
the
Channel
High
(CH)
and
Channel
Low
(CL)
commands.
Unused bits in the accumulator are ignored.
Related Commands: BI
Command:
CFn
-- Turn I/O Channel 'n' "Off" --
Argument:
0 <= n <= 63
Default:
"Off"
This command will cause I/O channel 'n' to assume
the
"off"
state.
The
actual
output
state
will depend on whether the channel is set active "on" (CH command) or active "off" (CL command).
Related Commands: CH, CL, CN
Command:
CHn
-- Make I/O Channel 'n' Active High --
Argument:
0 <= n <= 63
Default:
Active high or active "on"
This command causes I/O channel 'n' to assume an active "on" mode.
Related Commands: CL