National Instruments Corporation GPIB-1014P User Manual page 134

Table of Contents

Advertisement

Sample Programs
|
68000
Code
------------------------------------------------------------------------------------------------------------------------------------------------
CMD: movb #TCA,AUXMR.L
movl
movw
bsr
rts
GPIB-1014P User Manual
|
* * * * * * * * * * * * * * **
| * COMMAND - CMD*
| * * * * * * * * * * * * * * *
|
| Summary:
|
- Send GPIB interface or command messages
|
| Assumptions on entry:
|
- The GPIB-1014P is Controller-In-Charge
|
- The commands to be sent are in cmdbuf
|
- The variable cmdct contains the number of
|
commands to be sent, which must be less than 256
|
- Interruption of any data transfer in progress is
|
acceptable
|
| Actions:
|
- Issue TCA command to assert ATN in case the
|
GPIB-1014P is at standby
|
- Load the d0 register with the address of cmdbuf
|
- Load a0 with the number of commands
|
- Call CSEND to transmit the bytes
|
| Status on return:
|
- GPIB-1014P is Active Controller
|
- GPIB devices are programmed as implied by
|
command bytes
|
|
|
Comments
|
| Take control in case at standby
#cmdbuf,a0
#cmdct,d0
CSEND
|
C-18
*
| Set up registers for CSEND call
|
|
© National Instruments Corporation
Appendix C

Advertisement

Table of Contents
loading

Table of Contents