Programming And Reading Registers; Programming Enable And Transition Registers - Keithley 2657A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2657A:
Table of Contents

Advertisement

Appendix E: Status model

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
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
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).
E-14
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Common commands
(on page D-1) and
Enable and transition registers
Figure 155: 16-bit status register
Bit position
B7
Binary value
0/1
Decimal
128
7
(2
)
Weights
A. Bits 0 through 7
Bit position
B15
0/1
Binary alue
Decimal
32768 16384
15
Weights
(2
)
B. Bits 8 through 15
Status function summary
(on page E-19).
B6
B5
B3
B4
0/1
0/1
0/1
0/1
64
32
16
8
6
5
4
3
(2
)
(2
)
(2
)
(2
)
B14
B13
B12
B11
0/1
0/1
0/1
0/1
8192
4096 2048 1024
14
13
12
11
(2
)
(2
)
(2
)
(2
)
(on page E-4).
B2
B1
B0
0/1
0/1
0/1
4
2
1
2
1
0
(2
)
(2
)
(2
)
B10
B9
B8
0/1
0/1
0/1
512
256
10
9
8
(2
)
(2
)
(2
)
2657A-901-01 Rev. B/December 2012

Advertisement

Table of Contents
loading

Table of Contents