A - bit set…… 47, A - bit set, Caution – Measurement Computing Digital488/80A User Manual
Page 53

A - Bit Set
SYNTAX
Abit
Set
bit
to logic 1, where
bit =
bit value from
1
to
40
.
A?
Returns
bit
of the last bit that was set.
DESCRIPTION
The Bit Set (
A
) command programs a logic 1 output to a bit described by the argument
bit
. Setting a bit may
represent either a +5 volt or a 0 volt output, depending on whether an Invert command (
I16
) has been sent. If data is
active high (default condition), then Bit Set outputs +5 volts. If multiple bits are to be set within the same command
string, then an Execute (
X
) command must follow every Bit Set (
A
) command.
To be valid, the bit being set must have been configured as an output bit, by the Configuration (
C
) command. The Data
Strobe output line is not pulsed when the Bit Set (
A
) command is sent.
CAUTION
Because the Configuration (C) command is used, the following programming
example(s) will not work properly if the HVCX1 option is installed with a conflicting
hardware configuration. To be safe, remove the HVCX1 board and replace it with the
jumper board to run the example(s).
EXAMPLE 1: Using Dual Primary addressing mode to communicate with Channel 0.
PRINT#1,"CLEAR08"
Line 1: Reset the Digital488/80A.
PRINT#1,"OUTPUT08;C5P0X"
Line 2: Configure all 5 ports as output; select all 5 ports.
PRINT#1,"OUTPUT08;A22X"
Line 3: Set Bit 22 to a logic 1 (+5 volts).
PRINT#1,"OUTPUT08;A23X A24X"
Line 4: Set Bits 23 and 24 to a logic 1 (+5 volts).
EXAMPLE 2: Using Secondary addressing mode to communicate with Channel 0.
PRINT#1,"CLEAR0800"
Line 1: Reset the Digital488/80A.
PRINT#1,"OUTPUT0800;C5P0X"
Line 2: Configure all 5 ports as output; select all 5 ports.
PRINT#1,"OUTPUT0800;A22X"
Line 3: Set Bit 22 to a logic 1 (+5 volts).
PRINT#1,"OUTPUT0800;A23X A24X"
Line 4: Set Bits 23 and 24 to a logic 1 (+5 volts).
Digital488/80A User’s Manual
967695
Digital488/80A Commands 47