VL-1225/6 Analog Input/Output Board
6-5
Analog Output
The following example outputs zero volts to D/A channel 1. It is assumed that the board is addressed at
I/O location 0300H, and the output channel is jumpered for two’s complement format.
The key program section is:
WRITE
Outputs the value 80h (zero volts) to D/A channel number 1.
;VL-1225 REGISTER ADDRESSES
= 0300
istat
equ
00300h
;Interrupt Status Register
= 0300
ictrl
equ
00300h
;Interrupt Control Register
= 0303
select
equ
00303h
;Input Channel Select Register
= 0304
idlow
equ
00304h
;Input Data Low Register
= 0305
idhigh
equ
00305h
;Input Data High Register
= 0306
od0
equ
00306h
;Channel 0 Output Data Register
= 0307
od1
equ
00307h
;Channel 1 Output Data Register
0000
code
segment para public ‘CODE’
assume
cs:code
0000
write:
;OUTPUT ZERO VOLTS ON CHANNEL 1
0000 BA 0307
mov
dx,od1
;Select channel 1
0003 B0 80
mov
al,80h
;80h = Zero volts in 2’s complement mode
0005 EE
out
dx,al
;Output data to D/A converter
0006
code
ends
end
write
Software Examples – Analog Output
Содержание STD32 VL-1225
Страница 3: ...ii VL 1225 6AnalogInput OutputBoard ...
Страница 29: ...2 22 VL 1225 6AnalogInput OutputBoard ...
Страница 47: ...4 14 VL 1225 6AnalogInput OutputBoard ...
Страница 55: ...6 6 VL 1225 6AnalogInput OutputBoard ...
Страница 69: ...7 14 VL 1225 6AnalogInput OutputBoard VL 1225 Schematic 03 09 93REV3 Reference VL 1225Schematic ...
Страница 70: ...VL 1225 6AnalogInput OutputBoard 7 15 VL 1225 Schematic 03 09 93REV3 Reference VL 1225Schematic ...
Страница 71: ...7 16 VL 1225 6AnalogInput OutputBoard VL 1225 Schematic 03 09 93REV3 Reference VL 1225Schematic ...
Страница 75: ...7 20 VL 1225 6AnalogInput OutputBoard VL 1226 Schematic 03 09 93REV3 Reference VL 1226Schematic ...
Страница 76: ...VL 1225 6AnalogInput OutputBoard 7 21 VL 1226 Schematic 03 09 93REV3 Reference VL 1226Schematic ...
Страница 77: ...7 22 VL 1225 6AnalogInput OutputBoard VL 1226 Schematic 03 09 93REV3 Reference VL 1226Schematic ...