Appendix C Sample Programs
© National Instruments Corporation C-5 GPIB-1014 User Manual
|
| * * * * * * * * * * * * * * * *
| * INITIALIZE - INIT *
| * * * * * * * * * * * * * * * *
|
| Summary:
| - Initialize the GPIB-1014 hardware
|
| Assumptions on entry:
| - User-specified constants MA, ADMC, and SC have
| been initialized
| - Mode 1 primary addressing is used
| - Low-speed timing is used
| - Interrupts are not used
| - Status byte will be set elsewhere
| - Remote Parallel Poll configuration will be used
|
| Actions:
| - Pulse LMR to put hardware in known reset state
| - Disable interrupts and clear status
| - Set hardware registers to desired values
|
| Status on return:
| - The following registers are cleared: SR1/2, IMR1/2,
| SPMR, SPSR, BCR, ACR, PPR, AUXRA, AUXRB,
| AUXRE
| - Other registers are configured as described
| - The GPIB-1014 interface functions are reset to idle
| and are enabled