Appendix C
Sample Programs
© National Instruments Corporation
C-7
GPIB-1014P User Manual
|
| * * * * * * * * * * * * * * * * * * * * * *
*
| * INTERFACE CLEAR - IFC*
| * * * * * * * * * * * * * * * * * * * * * *
*
|
| Summary:
|
- Initialize the interface function of other GPIB
|
devices
|
| Assumptions on entry:
|
- GPIB-1014P has been initialized
|
| Actions:
|
- Assert GPIB IFC
|
- Wait at least 100 microseconds
|
- Unassert IFC
|
| Status on return:
|
- GPIB-1014P is Active Controller
| - Interface functions of other GPIB devices are reset
|
to their idle states
|
68000 Code
| Comments
----------------------------------------------------------------------------------------------------------------------------------------------
IFC:
link
a6,-4
|Link
movl
d1,a6@(-4)
|Save d1
movb #SIFC,AUXMR
| Set the IFC signal
movb #50,d1
| Wait at least 100 microseconds (18 clock cycles)
IFC1: subb #1,d1
|
bne IFC1
|
movb #CIFC,AUXMR
| Clear IFC
movl a6@(-4),d1
|Restore d1
unlk a6
|
rts
|