Page 16
Input Connections
Page 16
Blue Chip Technology Ltd.
01271014.doc
The card is set to 0-10V output. Thus, 10 volts full scale output = 2.5mV per
bit.
e.g. For an output voltage of say 10 volts then a value of 10/2.5mV or 4000
decimal is required.
Thus:
Low byte load value = A0 Hex
High byte load value = 0F Hex
4.2.1 Example Program
The following program outputs a specified value to both channels a and B.
10
INPUT “DECIMAL BASE ADDRESS”; BASE
20
INPUT “PLEASE ENTER OUTPUT VALUE (0-4095)”; VALUE
30
UP = INT (VALUE/256)
40
R = VALUE-INT (VALUE/256)*256
50
PRINT VALUE “DECIMAL IS “HEX$ (VALUE)” HEXADECIMAL”
60
OUT BASE +4,R
70
OUT BASE +5,UP
80
OUT BASE + 6,R
90
OUT BASE + 7,UP
100
OUT BASE + 3,0
120
GOTO 20
The output voltage is a linear scale between 0-4095, scaled at 2.5mV/bit e.g. for
an output voltage of say 5 volts the value of 2000 decimal (07D0 Hex) is
required.
4.3
Programmable Digital I/O
This feature provides 24 programmable digital I/O channels. It is suitable for
sensing the presence of or driving TTL connections only.
The digital I/O appears to the PC as four ports. The first three can be set as
input or output by writing suitable code to the Control Port.