Specifications
A(D
OF
SINGLE
CHANNEL
The
following
BASIC
program
will:
CONTINUOUSLY
CONVERT
CHANNEL
ZERO
AND
PRINT
THE
RESULTS
ON
THE
TERMINAL.
BASIC:
10
OUT(16)=04
o"i"
(
','f
Set
Command
to
Load
Enable,
No
Auto
Incrementing
20
OUT(l8)=00
0'
Ii
}O
Set
Channel
to
0
30
OUT(20)=00
0
} 0
Start Conversion
p
40
IF
IN(16)(128=0~GOTO
40
Wa
it
for
"DONE"
bit
<~HoJ
50
A=IN(l8)
INPUT
La
Byte
60
B=IN(20)
INPUT
Hi
Byte
70
PRINTX~·Ii.A
PRINT
ih
Hex
80
GOTO
30
Go
Back
and
Repeat
Note:
Line
40
makes
special
use
of
INTEGER
BASIC
to isolate the
"OONE"
Bi
t.
64