290
300
SUB Service_srq
3 1 0
PRINT " ------------------- - - - - - ---------------------- "
320
PRINT 11SRQ from HP81 12A - -> Main Program interrupted . "
330
340
Print _ spoll
!
read the Status Byte and print the results
350
360
PRINT "End of the interrupt rout ine . "
370
PRINT " ----------- - - -- -,---- - - -- - - - - - ----------------- "
380
ENABLE
!
Enable interrupts again .
390
SUBEND
400
410
SUB Print_spoll
420
The subrout ine Print _ spoll conducts a SPOLL to read the Status Byte .
430
Errors as indicated by the set bits are print ed .
440
A=SPOLL (7 12)
450
PRINT "Value of the Status Byte (read with SPOLL ) : " ; A
460
470
PRINT " Service requested because of : "
480
IF BIT (A , 5) THEN PRINT 11 - Input Error"
490
IF BIT ( A , 4) THEN PRINT 11 - Duty Cycle Error"
500
IF BIT (A , 3) THEN PRINT 11 - Slope Error "
5 1 0
I F BIT (A , 2) THEN PRINT 11 - Syntax Error"
520
IF BIT (A , 1 ) THEN PRINT 11 - Timing Error"
530
IF BIT ( A , O) THEN PRINT 11 - L imit Error"
540
SUBEND
ERROR_DEMO
Purpose
This program demonstrates how to determine which error bit
(
s
)
are
set in the HP81 12 Status Byte. Also it is shown how to get a more
detailed description of an error with the interrogate error command
IERR. Both functions are performed by the subroutine PrinLerrors.
Important program lines
and their function
Comments
Note
750
760
OUTPUT 7 1 2 ; 11 IERR11
ENTER 7 12 ; A$
Interrogate error
Read the response and store it
After an interrogate error command IERR the HP81 12A returns a
more detailed description of errors. The different error descriptions
are separated by commas. If no error is active then the string "NO
ERROR" is returned.
The WAIT 2 statements in the program are only used to emphasize
the functions of the program.
Programming Examples
7-13
Summary of Contents for 8112A
Page 6: ......
Page 24: ......
Page 36: ......
Page 44: ......
Page 70: ......
Page 92: ......
Page 144: ...8 32 Testing Performance ...
Page 176: ......
Page 190: ......
Page 194: ...10 2 4 Servicing the Power Supply ...
Page 196: ......
Page 197: ......
Page 216: ......
Page 240: ...10 4 16 Servicing the Shaper and Output Amplifier ...
Page 242: ...A R l BD RY MR I N 1 2 7 I I IJt 51 CR1 B e i 1 _ _ _ _ 20 ...
Page 244: ......
Page 251: ......
Page 262: ...A B A2 ED RY CONTROL ...
Page 270: ......
Page 290: ...R B c R3 BD RY M I CROPROCESSOR 1 2 3 FIGURE 1 0 7 8 ...
Page 294: ... 8 X2l 2 X2 Figure A 1 Mechanical Parts 1 A 2 Replaceable Parts ...
Page 295: ...MP MP3 MP MP2 MP4 MPS MP 1 2 MPS MP MP I B ElElElEl Replaceable Parts A 3 ...
Page 334: ......
Page 378: ...Figure B 14 Mechanical Parts 1 B 44 Backdating ...
Page 380: ......
Page 382: ......
Page 402: ......