Sample Programs Appendix C
GPIB-1014 User Manual C-4 © National Instruments Corporation
| CSR Bits
CLRS = 0377 | Clear all status bits
COC = 0200 | Channel operation complete
CERR = 020 | Error in channel operation
ACT = 010 | Channel active
PCT = 002 | PCL transition occurred
| CFG1 Bits
ECC = 004 | Enable Carry Cycle feature
IN = 001 | Accepting data from GPIB
OUT = 000 | Sending data to GPIB
| CFG2 Bits
SLMR = 012 | Set Local Master Reset bit
CLMR = 010 | Clear Local Master Reset bit
GPIB Commands
TCT = 011 | Take control
UNL = 077 | Universal unlisten
UNT = 0137 | Universal untalk
| User Specified Constants
SEL0 = 0 | Select ADR0
SEL1 = 0200 | Select ADR1
MA = 0 | GPIB address of GPIB-1014
SC = 011 | System Controller (set to 010 if not Sys. Con.)
ROR = 002 | Release on Request feature (set to 0 if not used)
TMODE = 0240 | Cycle Steal DMA transfer mode (set to 340 if Cycle Steal
| with Hold is desired)
BRG = 030 | Bus Request BR3* selected, other options are:
| (BR2*=020,BR1*=010,BR0*=000)
ADMC = 06 | Address Modifiers set to 24 bit, supervisor access of
| data area
| Program Variables/Buffers
.even
cmdbuf: .= .+100 | Command buffer for interface messages
cmdct: .word 0 | Number of commands to be sent
datbuf: . = .+100 | Data buffer for device-dependent messages
count: .word 0 | Current number of commands transferred
datct: .word 0 | Number of data bytes to be sent
ccary: .word 0,0,1,0,0,2 | Carry Cycle Array
ola: .byte 0 | Listen address passed to WRITE
sre: .byte 0 | REN flag (zero to not set REN, non-zero to set REN)
tctadr: .byte 0 | TCT address of new Active Controller
vecc: .byte 0 | ECC flag (set appropriately by RCV)
vseoi: .byte 0 | SEOI flag (zero to not send, non-zero to send
| END message with last DSEND byte)
cic: .byte 0 | Controller-In-Charge flag (non-zero if CIC)
HLDA: .byte 0x81 | Holdoff on all command AUXMR
SEOI: .byte 0x06 | Send END command to AUXMR