National Instruments Corporation GPIB-1014P User Manual page 132

Table of Contents

Advertisement

Sample Programs
68000
Code
------------------------------------------------------------------------------------------------------------------------------------------------
WRITE: movw #4,cmdct.L
movb #UNT,cmdbuf.L
movb #UNL,cmdbuf.L+1
movb #MA+100,cmdbuf.L+2 |
movb #ola,cmdbuf.L+3
bsr
CMD
movb #GTS,AUXMR.L
movw #datct,d0
movl
#datbuf,a0
bsr
DSEND
WRITE1: btst
#DO,ISR1.L
beq
WRITE1
movb #TCA,AUXMR.L
subw #2,cmdct.L
bsr
CMD
rts
GPIB-1014P User Manual
|
|
Comments
|
| Put Untalk, Unlisten, MTA, and OLA
| commands in the buffer
|
|
| Call CMD to address GPIB devices
| Go to standby and drop ATN
| Preset d0 register with byte count
| Preset a0 register with address of buffer
| Source Handshake-Data will write data
| Wait until last byte has been sent
|
| Then take control
| Prepare to unaddress all Talkers and Listeners
|
|
C-16
Appendix C
© National Instruments Corporation

Advertisement

Table of Contents
loading

Table of Contents