![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750780.webp)
Appendix E: Status model
Model 2657A High Power System SourceMeter® Instrument Reference Manual
E-14
2657A-901-01 Rev. B/December 2012
Programming and reading registers
Programming enable and transition registers
The only registers that you can program 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 page E-4).
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 155: 16-bit status register
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).
(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
Содержание 2657A
Страница 3: ......