Page 14
Input Connections
Page 14
Blue Chip Technology Ltd.
01271014.doc
For +/- 5V Input
LKC
+/- 5V Selection
2.5
5
10
For +/-10V Input
LKC
+/- 10V Selection
2.5
5
10
4.1.2 Example Program
The following example in BASIC reads a specified channel from the analogue
input section of the ADC. * Remember if you have selected differential mode
you only have channels 0-7 available.
FILE NAME-ADRD.BAS ON DISK
10 INPUT “DECIMAL BASE ADDRESS”; BASE
‘Card address
20 INPUT “CHANNEL (0-15)”; CHAN
‘Select Mux channel
30 OUT BASE+12,CHAN
40 A=INP (BASE+2)
‘Start conversion
50 A=INP (BASE+1)
‘Read high byte
60 B=INP (BASE+2)
‘Read low byte
70 RESULT=(A*256)+B
‘Combine results
80 PRINT RESULT
‘Display value to screen
90 GOTO 40