Technical data
5
Set the enable mask in the Operation Status register on bit 8:
STATus:OPERation:ENABle 256
With this setting, any bit error (bit 8: BIT ERR) is reported in the Status Byte
register.
6
Program the Service Request Enable Register to generate a service request
when the Operation Status summary bit (OPER) is set in the Status Byte
Register:
*SRE 128
7
Now add an error to the bit stream:
SOURce1:PATTern:EADDition ONCE
As soon as the error is added to the bit stream, bit 8 in the Operation Status
register is set. Because positive transitions of bit BIT ERR are caught and
reported in the OPER bit of the Status Byte register, a service request is
generated.
The current program is left and the interrupt handler is started.
To handle the service request:
1
Read the status byte.
*STB?
The current value of the status byte is returned, which is 192.
(Because we just generated a bit error, the SRQ/MSS (bit 6) and the OPER (bit
7) of the status byte should be high.)
2
Check the bits in the returned value to see which bits are high.
The set OPER bit tells us that an event was detected within the Operation Status
register.
3
Now check the Operation Status event register.
STATus:OPERation:EVENt?
The current value of the Operation Status event register is returned, which is
256.
The active BIT ERR (bit 8) tells us that a bit error was detected.
Note that when you query the Operation Status event register, its value is
cleared (the second of two consecutive queries will return 0).
3 Recommended Programming Techniques
54 Agilent J-BERT N4903B High-Performance Serial BERT