Fault and mask registers, Serial poll – Agilent Technologies 6028A User Manual

Page 120

Advertising
background image

Programming the Agilent 603xA Power Supplies Using Basic

120

Fault and Mask Registers

Two additional registers provide the user with the ability to obtain selected subsets of the information available in the status
register. The fault register can then be read to determine which condition caused the interrupt.

Bits in both registers are assigned as in the present-status register. The mask register allows the user to select which bits in
the present status register can set bits in the fault register. A bit in the fault register is set on the rising edge of the
corresponding status register bit.

Any subset of the nine status register conditions may be programmed in the mask register using the status bit mnemonics.
For example, the following statement will set the CC, OR, OV and AC bits:

OUTPUT @PS;"UNMASK CC, OR, OV,AC"

The device query "FAULT?" instructs the power supply to output the contents of the fault register. This is the sum of the bit
weights of true bits as with the other status registers. Reading the fault register clears the register.

EXAMPLE 5: Program to illustrate syntax of fault and mask register commands. These program statements would be
similar in function to those in Example 4 with two differences: 1)OR mode could be detected only after enabling the
OR bit in the mask register, and 2) the delay time to recognize the OR bit would be in effect. This would prevent fast
transitions through OR mode from setting the OR bit by suitable adjustment of the delay time. Application programs
which change the power supply output would avoid transient setting of this bit on up and down programming as long
as delay time conditions are met.

10

ASSIGN @Ps TO 705

20

OUTPUT @Ps:"CLR:UNMASK OR’’

30

!

40

!

50

! D0 PROGRAM

60

!

70

!

80

OUTPUT @Ps:"FAULT?"

90

ENTER @Ps:Or_fault

100

IF Or_fault THEN

110

PRINT "SUPPLY ENTERED OR MODE"

120

END IF

130

END

Explanation:

10:

Assign I/O path name to power supply

20:

Initialize power supply, set OR bit in mask register

80, 90:

Read fault register

100-110:

Print message if ’OR’ bit was set in fault register

Serial Poll

Serial poll gives the programmer the capability of obtaining status information from the supply very
quickly. The Agilent603XA serial poll register is set up as follows:

Advertising
This manual is related to the following products: