HP 8112A Operating, Programming And Servicing Manual page 107

50 mhz programmable pulse generator
Table of Contents

Advertisement

5 1 0
PRINT
520
WAIT 2
530
540
PRINT " The following bits are set in the Status Byt e : "
550
PRINT
WAIT 2
560
570
IF A=O THEN PRINT
580
IF B I T ( A , 7) THEN PRINT
590
I F BIT (A , 6 ) THEN PRINT
600
I F B IT ( A , 5 ) THEN PRINT
6 1 0
IF B I T ( A , 4) THEN PRINT
620
IF B I T ( A , 3 ) THEN PRINT
630
IF B IT (A , 2 ) THEN PRINT
640
IF B I T ( A , 1 ) THEN PRINT
650
IF B I T ( A , O ) THEN PRINT
1 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 1
660
PRINT
670
680
Use the !ERR command t o get more detailed informat ion .
690
700
WAIT 2
7 1 0
PRINT " More detailed decript ion read with the !ERR command : "
720
WAIT 2
730
740
DIM A$ [200]
OUTPUT 7 1 2 ; 1 1 IERR 11
750
760
ENTER 7 1 2 ; A$
770
PRINT A$
780
NOTE : The HP8 1 12A ' s St atus Byt e i s updat ed after every command .
790
In this program the Status Byt e was cleared by
800
reading it with SPOLL b efore the !ERR command was conduct ed .
8 1 0
T o restore the previous status , the St atus Byt e has to b e
820
cleared again .
830
WAIT . 1
840
A=SPOLL ( 7 1 2 )
850
860
WAIT 2
870
PRINT
' ' ============================================ ============= = ' '
880
PRINT
890
900
RETURN
9 1 0
2 0
END
1 1
No bit i s s et . "
1 1
1 1
11
11
11
11
11
1 1
" Interrogate Error" command
!
give HP8 1 12A t ime t o f inish internal pro c e s s ing
clear the St atus Byte
-->
Bit 7
Buffer Not Empty "
Bit 6 --> Servi c e Requ e s t "
-->
Bit 5
Input Error"
-->
Bit 4
Duty Cycle Error"
- - >
B it 3
Slope Error"
- - >
Bit 2
Syntax Error"
- - >
Bit 1
Timing Error"
-->
Bit 0
L imit Error"
Programming Examples 7-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents