Programming And Reading Registers; Programming Enable Registers - Keithley SourceMeter 2790 Reference Manual

Hide thumbs Also See for SourceMeter 2790:
Table of Contents

Advertisement

Model 2790 SourceMeter

Programming and reading registers

Programming enable registers

The only registers that can be programmed by the user are the enable registers. All other
registers in the status structure are read-only registers. The following explains how to
ascertain the parameter values for the various commands used to program enable registers.
The actual commands are covered later in this section
A command to program an event enable register is sent with a decimal parameter value
that determines the desired state (0 or 1) of each bit in the appropriate register. The bit
positions of the register
you wish to set bits B4, B3, and B1, the binary value would be 11010 (where B4=1, B3=1,
B1=1, and all other bits are 0).
The binary value is then converted to its decimal equivalent:
Binary 11010 = Decimal 26
Figure 11-2
the decimal parameter value would be the sum of the decimal weights for those bits
(16+8+2 = 26).
Figure 11-2
16-bit status register
A) Bits 0 through 7
B) Bits 8 through 15
®
Switch System Reference Manual
(Figure
includes the decimal weight for each register bit. To set bits B4, B3, and B1,
Bit Position
B7
Binary Value
0/1
Decimal
128
7
(2
)
Weights
Bit Position
B15
0/1
Binary Value
Decimal
32768 16384
15
Weights
(2
)
11-2) indicate the binary parameter value. For example, if
B6
B5
B4
0/1
0/1
0/1
64
32
16
6
5
4
(2
)
(2
)
(2
)
B14
B13
B12
B11
0/1
0/1
0/1
0/1
8192
4096 2048 1024
14
13
12
(2
)
(2
)
(2
)
(2
(Table 11-2
and
Table
B3
B2
B1
B0
0/1
0/1
0/1
0/1
8
4
2
2
3
(2
)
1
(2
)
(2
)
(2
B10
B9
B8
0/1
0/1
0/1
512
256
11
10
9
)
(2
)
(2
)
(2
11-5
11-5).
1
0
)
8
)

Advertisement

Table of Contents
loading

Table of Contents