Sample Programs Appendix C
GPIB-1014 User Manual C-14 © National Instruments Corporation
|
| * * * * * * * * * * * * * * * * * *
| * DATA SEND - DSEND *
| * * * * * * * * * * * * * * * * * *
|
| Summary:
| - Called directly from the main program if the
| GPIB-1014 is not CIC
|
| Assumptions on entry:
| - The GPIB-1014 is Standby or Idle Controller
| - GPIB-1014 is or will be addressed to talk
| - If the GPIB-1014 is Idle Controller, the current CIC
| will go to standby
| - The d0 register contains the byte count
| - The a0 register contains the address of the data
| buffer
| - The user specified variable veoi has been set
| properly
|
| Actions:
| - Configure DMA channel 0
| - Clear DMAC status registers
| - Configure channel 1 for carry cycle if END is to be
| sent with last byte
| - Start DMA channels
| - Set IMR2 to enable DMAs
| - Wait for DMA done or a GPIB error
| - Place in the d0 register the number of bytes
| transferred or -1 on an error
| - Disable further DMAs
|
| Status on return:
| - The d0 register contains the number of bytes
| transferred or a -1 to indicate an error