![Keithley 2651A Reference Manual Download Page 771](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729771.webp)
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Appendix E: Status model
2651A-901-01 Rev. A / March 2011
E-13
Programming and reading registers
Programming enable and transition registers
The only registers that can be programmed by the user are the enable and transition registers. All
other registers in the status structure are read-only registers. The following explains how to determine
the parameter values for the various commands used to program enable registers. The actual
commands are summarized in
(on page D-1) and
(on
A command to program an event enable or transition register is sent with a parameter value that
determines the desired state (0 or 1) of each bit in the appropriate register. The bit positions of the
register (see the following figure) indicate the binary parameter value and decimal equivalent. To
program one of the registers, send the decimal value for the bits to be set. The registers are
discussed further in
Enable and transition registers
Figure 138: 16-bit status register
(2
7
)
(2
6
)
(2
5
)
(2
4
)
(2
3
)
(2
2
)
(2
1
)
(2
0
)
(2
15
)
(2
14
)
(2
13
)
(2
12
)
(2
11
)
(2
10
)
(2
9
)
(2
8
)
32768 16384
Bit position
Binary value
Decimal
Weights
B7
B6
B5
B4
B3
B2
B1
B0
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
128
64
32
16
8
4
2
1
B15
B14
B13
B12
B11
B10
B9
B8
8192
4096
2048
1024
512
256
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
Bit position
Binary alue
Decimal
Weights
B. Bits 8 through 15
A. Bits 0 through 7
When using a numeric parameter, registers are programmed by including the appropriate
<mask>
value, for example:
*ese 1169
status.standard.enable = 1169
To convert from decimal to binary, use the information shown in the above figure. For example, to set
bits B0, B4, B7, and B10, a decimal value of 1169 would be used for the mask parameter (1169 = 1 +
16 + 128 + 1024).