HP 61010A Owner's Manual page 64

Digital i/o
Table of Contents

Advertisement

Digital Output
The example programs that follow use the statements
Programs
described in this section to output data on your Digital
Output. They use the default label (DIG.OUT.Ol) and
assume that the default settings (see Table 1-1) are in
effect. The first example is with handshake disabled and
the second example is with handshake enabled.
Example 1
program shell
1010 CALL SET.DRIVER(DIG.OUT.01,TTL)
This statement sets the Digital Output to be compatible with
TTL logic levels.
1020 WXYZ -15
1030 CALL OUTPUT(DIG.OUT.01,WXYZ)
These statements load data from the variable WXYZ into the
data register. This instructs the data register to program output
bits 0 through 3 high.
1040 CALL ENABLE.OUTPUT(DIG.OUT.Ol)
The output driver sets bits 0 through 3 high only after this
statement is programmed.
1050 STOP
5*16
Programming with BASIC

Advertisement

Table of Contents
loading

Table of Contents