Appendix C
Sample Programs
© National Instruments Corporation
C-21
GPIB-1014 User Manual
|
| * * * * * * * * * * * * * * * * * * * * * *
| * PASS CONTROL - PASSC *
| * * * * * * * * * * * * * * * * * * * * * *
|
| Summary:
| - Passes GPIB Controller-In-Charge status to another
|
device
|
| Assumptions on entry:
|
- The GPIB-1014 is Controller-In-Charge
|
- The primary GPIB address of the new controller is placed
|
in tctadr
|
| Actions:
|
- Send TCA command to take control in case the GPIB-1014
|
is at standby
|
- Set up the command buffer and command count
|
- Call CMD to send the command bytes
|
| Status on return:
| - The GPIB-1014 is Idle Controller
|
|
68000 Code
| Comments
--------------------------------------------------------------------------------------------------------------------------------------------
|
PASSC: movb #TCA,AUXMR
| Take control in case at standby
|
movb #UNT,cmdbuf
| Set up the command buffer
movb #UNL,1 |
movb #tctadr,2
|
movb #TCT,3
| The GPIB-1014 automatically releases
movw #4,cmdct
| control when TCT is sent
|
bsr
CMD
| Call CMD to send commands
|
rts
|
|