HP (Hewlett-Packard) E1459A Network Router User Manual


 
HP E1459A Register Definitions 93
150 !
160 REPEAT
170 OUTPUT Vxi_address;"SYST:ERR?"
180 ENTER Vxi_address;Error
190 PRINT "E1406 Reports Error: ";Error
200 UNTIL (Error=0)
210 !
220 OUTPUT Vxi_address;"VXI:WRITE 128,4,1"
! reset E1459A
230 WAIT .1
240 OUTPUT Vxi_address;"VXI:WRITE 128,4,0"
! un-reset E1459A
250 WAIT .1
260 !
265 ! unmask all 16 pos bits for port 0
270 OUTPUT Vxi_address;"VXI:WRITE 128,24,-1"
275 ! unmask all 16 neg bits for port 0
280 OUTPUT Vxi_address;"VXI:WRITE 128,26,-1"
285 ! unmask all 16 pos bits for port 1
290 OUTPUT Vxi_address;"VXI:WRITE 128,40,-1"
295 ! unmask all 16 neg bits for port 1
300 OUTPUT Vxi_address;"VXI:WRITE 128,42,-1"
310 !
315 ! set debounce to 16 uS (250KHz) for ports 0/1
320 OUTPUT Vxi_address;"VXI:WRITE 128,30,2"
330 !
340 OUTPUT Vxi_address;"VXI:WRITE 128,4,16"
! port 2/3 select
350 !
355 ! unmask all 16 pos bits for port 2
360 OUTPUT Vxi_address;"VXI:WRITE 128,24,-1"
365 ! unmask all 16 neg bits for port 2
370 OUTPUT Vxi_address;"VXI:WRITE 128,26,-1"
375 ! unmask all 16 pos bits for port 3
380 OUTPUT Vxi_address;"VXI:WRITE 128,40,-1"
385 ! unmask all 16 neg bits for port 3
390 OUTPUT Vxi_address;"VXI:WRITE 128,42,-1"
400 !
405 ! set debounce to 16 uS (250KHz) for ports 2/3
410 OUTPUT Vxi_address;"VXI:WRITE 128,46,2"
420 !
430 OUTPUT Vxi_address;"*SRE 128"
440 OUTPUT Vxi_address;"STAT:OPER:ENAB 256"
450 OUTPUT Vxi_address;"DIAG:INT:SET1 ON"
460 OUTPUT Vxi_address;"DIAG:INT:ACT ON"
470 !
480 OUTPUT Vxi_address;"*OPC?"
490 ENTER Vxi_address;Done
500 !
510 ON INTR 7 GOSUB Service
520 !
530 OUTPUT Vxi_address;"VXI:WRITE 128,16,1"
! edge enable, port 2
540 OUTPUT Vxi_address;"VXI:WRITE 128,32,1"
! edge enable, port 3
550 !
560 OUTPUT Vxi_address;"VXI:WRITE 128,4,0"
! port 0/1 select
570 !
580 OUTPUT Vxi_address;"VXI:WRITE 128,16,1"
! edge enable, port 0
590 OUTPUT Vxi_address;"VXI:WRITE 128,32,1"
! edge enable, port 1
600 !
610 ENABLE INTR 7;2
615 ! int enable, port 0/1 select