National Instruments Corporation GPIB-1014P User Manual page 118

Table of Contents

Advertisement

Sample Programs
68000 Code
BASE
=
0xFF1000
DIR
=
BASE + 0x1
CDOR
=
BASE + 0x1
ISR1
=
BASE + 0x3
IMR1
=
BASE + 0x3
ISR2
=
BASE + 0x5
IMR2
=
BASE + 0x5
SPSR
=
BASE + 0x7
SPMR
=
BASE + 0x7
ADSR
=
BASE + 0x9
ADMR
=
BASE + 0x9
CPTR
=
BASE + 0xB
AUXMR =
BASE + 0xB
ADR0
=
BASE + 0xD
ADR
=
BASE + 0xD
ADR1
=
BASE + 0xF
EOSR
=
BASE + 0xF
GPIB-1014P User Manual
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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)
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
| Base address of GPIB-1014P interface
| Data In Register (read)
| Control/Data Out Register (write)
| Interrupt Status Register 1 (read)
| Interrupt Mask Register 1 (write)
| Interrupt Status Register 2 (read)
| Interrupt Mask Register 2 (write)
| Serial Poll Status Register (read)
| Serial Poll Mask Register (write)
| Address Status Register (read)
| Address Mode Register (write)
| Command Pass Thru Register (read)
| Auxiliary Mode Register (write)
| Address Register 0 (read)
| Address Register (write)
| Address Register 1 (read)
| End Of String Register (write)
C-2
Appendix C
;
;
;
;
;
;
;
;
;
;
;
;
© National Instruments Corporation

Advertisement

Table of Contents
loading

Table of Contents