Appendix C
Sample Programs
© National Instruments Corporation
C-19
GPIB-1014P User Manual
|
| * * * * * * * * * * * * * * * * * * * * * *
*
| * PASS CONTROL - PASSC*
| * * * * * * * * * * * * * * * * * * * * * *
*
|
| Summary:
| - Passes GPIB Controller-In-Charge status to another
|
device
|
| Assumptions on entry:
|
- The GPIB-1014P 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-1014P
|
is at standby
|
- Set up the command buffer and command count
|
- Call CMD to send the command bytes
|
| Status on return:
| - The GPIB-1014P is Idle Controller
|
|
68000 Code
| Comments
------------------------------------------------------------------------------------------------------------------------------------------------
|
PASSC: movb #TCA,AUXMR.L
| Take control in case at standby
movb #UNT,cmdbuf.L
| Set up the command buffer
movb #UNL,cmdbuf.L+1
|
movb #tctadr,cmdbuf.L+2 |
movb #TCT,cmdbuf.L+3
| The GPIB-1014P automatically releases
|
movw #4,cmdct
| control when TCT is sent
bsr
CMD
|
rts
|