Agilent Technologies 667xA Status Byte Register, Service Request Enable Register, Output Queue

Models: 668xA 669xA 667xA 664xA 665xA

1 67
Download 67 pages 46.05 Kb
Page 52
Image 52
Status Byte Register

Status Byte Register

This register summarizes the information from all other status groups as defined in the "IEEE 488.2 Standard Digital Interface for Programmable Instrumentation" standard. The bit configuration is shown in Table 4-1. The register can be read either by a serial poll or by *STB?. Both methods return the same data, except for bit 6. Sending *STB? returns MSS in bit 6, while poring the register returns RQS in bit 6.

The RQS Bit

Whenever the power supply requests service, it sets the SRQ interrupt line true and latches RQS into bit 6 of the Status Byte register. When the controller services the interrupt, RQS is cleared inside the register and returned in bit position 6 of the response. The remaining bits of the Status Byte register are not disturbed.

The MSS Bit

This is a real-time (unlatched) summary of all Status Byte register bits that are enabled by the Service Request Enable register. MSS is set whenever the power supply has at least one reason (and possibly more) for requesting service. Sending *STB? reads the MSS in bit position 6 of the response. No bits of the Status Byte register are cleared by reading it.

Determining the Cause of a Service Interrupt

You can determine the reason for an SRQ by the following actions:

Use a serial poll or the *STB? query to determine which summary bits are active.

Read the corresponding Event register for each summary bit to determine which events caused the summary bit to be set. When an Event register is read, it is cleared. This also clears the corresponding summary bit.

The interrupt will recur until the specific condition that caused each event is removed. If this is not possible, the event may be disabled by programming the corresponding bit of the status group Enable register or NTRPTR filter. A faster way to prevent the interrupt is to disable the service request by programming the appropriate bit of the Service Request Enable register.

Service Request Enable Register

This register is a mask that determines which bits from the Status Byte register will be ORed to generate a service request (SRQ). The register is programmed with the *SRE common command. When the register is cleared, no service requests can be generated to the controller.

Output Queue

The Output Queue is a first-in, first-out (FIFO) data register that stores power supply-to-controller messages until the controller reads them. Whenever the queue holds one or more bytes, it sets the MAV bit (4) of the Status Byte register. If too many unread error messages are accumulated in the queue, a system error message is generated (see Table 5-1 in "Chapter 5 - Error Messages"). The Output Queue is cleared at power on and by *CLS.

Initial Conditions At Power On

Status Registers

When the power supply is turned on, a sequence of commands initializes the status registers. For the factory-default *RST power-on state, Table 4-4 shows the register states and corresponding power-on commands.

54 Status Reporting

Page 52
Image 52
Agilent Technologies 667xA Status Byte Register, Service Request Enable Register, Output Queue, The RQS Bit, The MSS Bit