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