HP 8112A Operating, Programming And Servicing Manual page 107

50 mhz programmable pulse generator
Table of Contents

Advertisement

510
PRINT
520
WAIT 2
530
!
540
PRINT "The following bits are set in the Status Byte:"
550
PRINT
560
WAIT 2
570
IF A=0 THEN PRINT II
580
IF BIT(A,7) THEN PRINT '
590
IF BIT(A,G) THEN PRINT fl
600
IF BIT(A,S) THEN PRINT '
610
IF BIT(A,4) THEN PRINT '
620
IF BIT(A,3) THEN PRINT '
630
IF BIT(A,2) THEN PRINT '
640
IF BIT(A,l) THEN PRINT '
650
IF BIT(A,O) THEN PRINT II
PRINT II,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---------------~~
660
670
!
680
! Use the IERR command to get more detailed information.
690
!
700
WAIT 2
710
PRINT "More detailed decription read with the IERR command:"
720
WAIT 2
730
!
740
DIM A$[2001
750
OUTPUT 712;"IERR"
760
ENTER 712;A$
770
PRINT A$
780
! NOTE: The HP8112A's Status Byte is updated after every command.
790
!
In this program the Status Byte was cleared by
800
!
reading it with SPOLL before the IERR command was conducted.
810
!
To restore the previous status, the Status Byte has to be
820
!
cleared again.
830
WAIT .I
840
850
!
860
WAIT 2
870
PRINT
880
890
!
900
RETURN
I
910
2 0
END
No bit is set."
! "Interrogate Error" command
! give HP8112A time to finish internal processing
Bit 7 --> Buffer Not Empty"
Bit 6 --> Service Request"
Bit 5 --> Input Error"
Bit 4 --> Duty Cycle Error"
Bit 3 --> Slope Error"
Bit 2 --> Syntax Error"
Bit 1 --> Timing Error"
Bit 0 --> Limit Error"
Programming Examples 7-15

Advertisement

Table of Contents
loading

Table of Contents