Hints for solving
Problems that might
occur
Reading the Status Byte
When programming the HP 81 12A it must be considered that the
instrument needs some time to:
•
receive the commands
•
interpret the commands
•
update the Status Byte.
The hardware settling time must also be considered. (See Chapter 2
Specifications
for more details).
When a command is sent to the HP 81 12A, the device places all
received characters into a buffer. Interpretation of the command( s)
starts as soon as a valid terminator is received.
To determine if the buffer is empty or not, read the Status Byte by
conducting a SPOLL. If bit 7 is set (decimal value of the STB is
bigger than 127) then the buffer is not yet empty.
Whenever the status byte is read directly after sending a command,
the HP 81 12A should be given sufficient time to update the status
byte. The time needed, varies with the type and number of the
commands sent. For single commands 100 to 200 ms should be
adequate.
Example:
10
CLEAR 712
20
A = SPOLL (712)
30
40
OUTPUT "WID 10 MS "
!
causes error
50
WAIT . 2
!
give HP 8 1 12A t ime to update the STB
60
PRINT " Status Byte : " ; A
70
END
If the wait period in line 50 is too low, the value of the Status Byte
printed in line 60 will be 128. This indicates tlhat the buffer is not
yet empty. An adequate wait period (here 200 ms) will give the HP
81 12A enough time to process the command and update the status
byte. As expected, the value of the status byte printed in line 60 will
therefore be 7
4.
Programming
6-19
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: ......