User Manual
2400 Series SourceMeter
®
User’s Manual Status Structure 15-5
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
(Table 15-3 and Table 15-6).
A command to program an event enable register is sent with a parameter value
that determines the desired state (0 or 1) of each bit in the appropriate register. An
enable register can be programmed using any of the following data formats for the
parameter value; binary, decimal, hexadecimal, or octal.
The bit positions of the register (Figure 15-2) indicate the binary parameter value
and decimal equivalent.
Figure 15-2
16-bit status register
The <NDN> (non-decimal numeric) parameter type is used to send non-decimal
values. These values require a header (#B, #H or #Q) to identify the data format
being sent. The letter in the header can be upper or lower case. The <NRf>
(numeric representation format) parameter type is used to send decimal values,
and does not use a header. The following examples show the proper parameter
syntax for setting Bits B5, B3, and B2:
(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/10/10/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/10/10/1
Bit Position
Binary Value
Decimal
Weights
B. Bits 8 through 15
A. Bits 0 through 7