National Instruments 320030-01 Printer Accessories User Manual


 
Sample Programs Appendix C
GPIB-1014 User Manual C-6 © National Instruments Corporation
|
68000 Code | Comments
|
--------------------------------------------------------------------------------------------------------------------------------------------
INIT: movb #SLMR,CFG2 | Pulse Local Master Reset
movb #CLMR,CFG2 |
|
movb #CRST,AUXMR | Chip Reset
|
movb #0,IMR1 | Disable TLC interrupts
movb #0,IMR2 |
|
tstb ISR1 | Clear status bits by reading registers
tstb ISR2 |
|
movb #MODE1+TRM,ADMR | Set address mode, Talker/Listener inactive, and proper
| T/R signal mode
|
movb #MA+SEL0,ADR | Set GPIB address (mode 1 primary only), with
| Talker/Listener enabled
|
movb #DT1+DL1+SEL1,ADR | Disable secondary address recognition
|
movb #ICR+8,AUXMR | Set clock divider for 8 MHz, low speed
|
movb #ADMC,MFC0 | Set DMA address modifier codes
movb #ADMC,MFC1 |
movb #ADMC,BFC1 |
|
movb #SC,CFG2 | By default be System Controller
|
movb #IEPON,AUXMR | Execute pon to bring TLC online
|
rts |