Programming the DC Source - 5
Programming the Status Registers
Status register programming lets you determine the operating condition of the dc source at any time. For example, you may program the dc source to generate an interrupt (SRQ) when an event such as a current limit occurs. When the interrupt occurs, your program can act on the event in the appropriate fashion.
Figure 5-5 shows the status register structure of the dc source. Table 5-1 defines the status bits. The Standard Event, Status Byte, and Service Request Enable registers and the Output Queue perform standard GPIB functions as defined in the IEEE 488.2 Standard Digital Interface for Programmable Instrumentation. The Operation Status and Questionable Status registers implement functions that are specific to the dc source.
QUESTIONABLE STATUS (IDENTICAL REGISTERS FOR EACH CHANNEL)
CONDITION PTR/NTR EVENT ENABLE
OV+ 0 1 OV - 1 2
PCLR 2 4
OT 4 16
UNR 10 1024
OSC 12 4096 Meas Ovld 14 16384
1
2
4
16
1024
4096
16384
1
2
4
16
1024
4096
16384
1
2
4
16
1024
4096
16384
LOGICAL
OR
| CHAN 1QSUM |
| |
| QSUM | LOGICAL | |
| CHAN 2 | OR | |
SAME | QSUM | ||
| |||
AS | CHAN 3 |
| |
QSUM |
| ||
CHAN 1 |
| ||
CHAN 4 |
|
|
|
|
|
|
|
| STANDARD EVENT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| SERVICE |
|
| |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| STATUS BYTE REQUEST |
|
| ||||||||||||||||||||||||
|
|
|
|
|
|
|
| STATUS |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||
|
|
|
|
| 0 | EVENT |
| ENABLE |
|
|
| OUTPUT QUEUE |
|
|
|
|
| WTG |
| 2 |
|
|
|
|
|
|
| ENABLE |
|
| ||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
| OPC | 1 |
|
|
| 1 |
|
|
|
|
|
|
|
|
|
| DATA |
|
| QUEUE | QUES | 3 |
|
| 8 |
|
|
|
|
| 8 |
|
|
|
|
| |||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| DATA |
|
| NOT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
| QYE | 2 | 4 |
|
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| EMPTY | MAV | 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| DATA |
|
| 16 |
|
|
|
| 16 |
|
|
| LOGICAL |
| ||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||
|
|
|
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
| DDE | 8 |
|
|
| 8 |
|
|
|
| LOGICAL |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ESB | 5 |
|
| 32 |
|
|
|
| 32 |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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
| (IDENTICAL REGISTERS FOR EACH CHANNEL) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||||||
|
| CONDITION PTR/NTR |
| EVENT | ENABLE |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| SERVICE |
|
|
|
|
|
| ||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
CV | 0 |
| 1 |
|
|
|
|
| 1 |
|
|
| 1 |
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| REQUEST |
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
CL+ | 1 |
| 2 |
|
|
|
|
| 2 |
|
|
| 2 |
|
|
|
| 2 |
|
|
|
| LOGICAL |
| CHAN 1OSUM |
|
|
|
|
|
|
|
|
|
| GENERATION |
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
CL - 2 |
|
|
|
|
|
| 4 |
|
|
| 4 |
|
|
|
| 4 |
|
|
|
| OR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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