Download GPIB-1014 User Manual - National Instruments

Transcript
Appendix C
Sample Programs
RCV4: btst
bne
movw
subw
btst
beq
subw
bra
#COC,CSR0
RCV5
MTC0,d1
d1,d0
#ECC,CFG1
RCV6
#1,d0
RCV6
RCV5: btst
bne
movw
subw
addw
#ECC, CFG1
RCV6
MTC1,d1
d1,d0
#1,d0
RCV6: movb
movb
movb
#0,IMR2
#STOP,CCR1
#STOP,CCR0
rts
© National Instruments Corporation
|
| Calculate number of bytes transferred
|
|
|
| If carry cycle, MTC0 was initialized to (d0)-1
|
|
|
|
| If no carry cyle, leave d0 as is
|
|
|
|
|
| Disable DMAs and stop DMA channels
|
|
|
|
|
C-11
GPIB-1014 User Manual