Sample Programs
Appendix C
GPIB-1014P User Manual
C-6
© National Instruments Corporation
|
68000 Code
| Comments
|
---------------------------------------------------------------------------------------------------------------------------------------------
INIT: movb #IEPON,AUXMR
|Initialize and Enable TLC Functions
|
movb #0,IMR1.L
| Disable TLC interrupts
movb #0,IMR2.L |
|
tstb
ISR1.L
|
Clear status bits by reading registers
tstb
ISR2.L
|
|
movb #MODE1+TRM,ADMR.L | Set address mode, Talker/Listener inactive, and proper
| T/R signal mode
|
movb #MA+SEL0,ADR.L | Set GPIB address (mode 1 primary only), with
| Talker/Listener enabled
|
movb #DT1+DL1+SEL1,ADR.L | Disable secondary address recognition
|
movb #ICR+8,AUXMR.L | Set clock divider for 8MHz, low speed
|
rts
|