Specifications

TIMER
CONTROL
OF
AID
The
following
BASIC
program:
SETS
UP
COUNTER
5
OF
THE
TIMER
TO
PUT
OUT
A
PULSE
ONCE
PER
SECOND
AT
OUT
5.
AND
THEN
CONTINUOUSLY
CHECKS
THE
AID
STATUS
TO
CHECK
FOR
A
"DONE"
(END
OF
CONVERSION)
TO
USE
THIS
OPTION.
A
jumper
must
be
connected
between
OUT
5 (Pin 4. connector
P3)
and
the external trigger input (Pin 3. connector
P3)
located
on
the
mother
board.
The
source
of
counter 5
;s
selected
as
F5.
a
100
Hz.
square
wave.
Counter
5 counts
from
an
initial
value
of
0099
down
to
0000
which
takes exactly
one
second sioce
it
is
set
up
for
BCD
count.
At
0000.
OUT
5 goes
active.
triggering a conversion
of
the input
at
channel
O.
The
counter
then
automatically reloads
itself
with
a 0099
and
starts
the process over.
66
BASIC:
HEX
10
OUT(3D)=23
17
20
DUT(2B)=255
FF
30
OUT(2B)=13B
BA
40
OUT(30)=05
05
50
OUT(2B)=49
31
60
OUT(2B)=31
IF
70
OUT(2B)=153
99
BO
OUT(2B)=DO
00
90
DUT(30)=112
70
100
OUT(lB)=OD
00
110
OUT(16)=12
OC
300
IF
IN(16)/12B=0
GOTO
300
310
A=IN(lB)
320
B:IN(2D)
330
PRINTU.B.A
340
GOTD
300
Set
Data
Pointer
to
Master
Mode
Register
Set
Master
Mode
Register to:
BCD
Scaler.
Data
Pointer
Increment
Set
Data
Pointer to
Counter
Mode
Register 5
Set
Counter
Mode
Register 5 to:
Source:F5.
Reload
from
Load.
BCD
Count.
Active
HI
Te.
Count
Down
Set
Load
Register 5
to
0099
load
and
Arm
Counter
5
Set
Channel
to 0
Enable
External Trigger
Input
Wait
for
"DONE"
bit
INPUT
and
PRINT
Lo
and
Hi
byte of
Value
just
Converted
Go
Back
and
Wait
for
Another