![background image](http://html.mh-extra.com/html/national-instruments-corporation/gpib-1014p/gpib-1014p_user-manual_710257118.webp)
Sample Programs
Appendix C
GPIB-1014P User Manual
C-2
© National Instruments Corporation
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;
|
GPIB-1014P Sample Functions for Driver:
;
|
;
|
INIT
(Initialize the GPIB-1014P) ;
|
IFC
(Send Interface Clear)
;
|
REN
(Set/Clear Remote Enable) ;
|
RCV
(Receive)
;
|
READ
(Read Data)
;
|
DSEND
(Data Send)
;
|
WRITE
(Write Data)
;
|
CSEND
(Command Send)
;
|
CMD
(Write Commands)
;
|
PASSC
(Pass Control)
;
|
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
68000 Code
|
|
BASE
=
0xFF1000
| Base address of GPIB-1014P interface
DIR
=
BASE + 0x1
| Data In Register (read)
CDOR
=
BASE + 0x1
| Control/Data Out Register (write)
ISR1
=
BASE + 0x3
| Interrupt Status Register 1 (read)
IMR1
=
BASE + 0x3
| Interrupt Mask Register 1 (write)
ISR2
=
BASE + 0x5
| Interrupt Status Register 2 (read)
IMR2
=
BASE + 0x5
| Interrupt Mask Register 2 (write)
SPSR
=
BASE + 0x7
| Serial Poll Status Register (read)
SPMR
=
BASE + 0x7
| Serial Poll Mask Register (write)
ADSR
=
BASE + 0x9
| Address Status Register (read)
ADMR
=
BASE + 0x9
| Address Mode Register (write)
CPTR
=
BASE + 0xB
| Command Pass Thru Register (read)
AUXMR =
BASE + 0xB
| Auxiliary Mode Register (write)
ADR0
=
BASE + 0xD
| Address Register 0 (read)
ADR
=
BASE + 0xD
| Address Register (write)
ADR1
=
BASE + 0xF
| Address Register 1 (read)
EOSR
=
BASE + 0xF
| End Of String Register (write)