HP 61010A Owner's Manual page 60

Digital i/o
Table of Contents

Advertisement

These numbers correspond to a binary range represented
by the 16 output bits being programmed from all bits low
to all bits high. The ENABLE.OUTPUT statement must be
in effect for the output register to set the output bits
according to the data programmed by the OUTPUT
statement. If the handshake is disabled when the OUTPUT
statement is programmed, the ODAV control signal
strobes low for lO/ts to indicate when the output bits are
set. When the handshake is enabled, The OUTPUT
statement will set the output bits, but will wait for a
ODAC signal from the external device before
allowing the program to continue to the next instruction
(see Figure 3-6).
Example:
1010 CALL ENABLE.OUTPUT(DIG.OUT.Ol)
1020 VALUE = &HF
1030 CALL OUTPUT(DIG.OUT.Oi;VALUE)
In this example, line 1020 assigns a hexadecimal value of F
to the variable value. (Hexadecimal F corresponds to a
decimal value of 15 and a binary value of 1111.) In line
1030, the output register is programmed to set output bits
0 through 3 high. Note that the driver only activates the
output bits if an ENABLE.OUTPUT statement has
previously been programmed as shown in line 1010.
OUTPUT.NO.WAIT
(label,
value.) - same as OUTPUT
statement except that it does not wait for a ODAC signal
from the external device. Program execution continues as
soon as the output bits are set. This statement can be used
in synchronous operation to send new data to the output
bits without waiting for the ODAC signal to return (see
Figure 3-6).
Example:
1010 CALL ENABLE.OUTPUT(DIG.OUT.01)
1020 CALL ENABLE.HANDSHAKE(DIG.OUT.01)
1030 VALUE = 15
1040 CALL OUTPUT.NO.WAIT(DIG.OUT.01,VALUE)
Programming With BASIC
6-12

Advertisement

Table of Contents
loading

Table of Contents