
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-302
2606B-901-01 Rev. B / May 2018
Details
These attributes are used to read or write to the operation status user registers. Reading a status
register returns a value. The binary equivalent of the value indicates which register bits are set. In the
binary equivalent, the least significant bit is bit B0, and the most significant bit is bit B15. For example,
if a value of
1.02
(which is 129) is read as the value of the condition register, the binary
equivalent is 0000 0000 1000 0001. This value indicates that bits B0 and B7 are set.
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
**
>
>
>
>
>
>
>
>
>
>
>
>
>
>
*
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
* Least significant bit
** Most significant bit
For information about .condition, .enable, .event, .ntr, and .ptr registers, refer to
Enable and transition registers
(on page E-16). The individual bits of this
register are defined in the following table.
Bit
Value
Description
B0
status.operation.user.BIT0
Bit B0 decimal value: 1
B1
status.operation.user.BIT1
Bit B1 decimal value: 2
B2
status.operation.user.BIT2
Bit B2 decimal value: 4
B3
status.operation.user.BIT3
Bit B3 decimal value: 8
B4
status.operation.user.BIT4
Bit B4 decimal value: 16
B5
status.operation.user.BIT5
Bit B5 decimal value: 32
B6
status.operation.user.BIT6
Bit B6 decimal value: 64
B7
status.operation.user.BIT7
Bit B7 decimal value: 128
B8
status.operation.user.BIT8
Bit B8 decimal value: 256
B9
status.operation.user.BIT9
Bit B9 decimal value: 512
B10
status.operation.user.BIT10
Bit B10 decimal value: 1,024
B11
status.operation.user.BIT11
Bit B11 decimal value: 2,048
B12
status.operation.user.BIT12
Bit B12 decimal value: 4,096
B13
status.operation.user.BIT13
Bit B13 decimal value: 8,192
B14
status.operation.user.BIT14
Bit B14 decimal value: 16,384
B15
Not used
Not applicable
As an example, to set bit B0 of the operation status user enable register, set
status.operation.user.enable
= status.operation.user.BIT0
.
In addition to the above constants,
operationRegister
can be set to the numeric equivalent of the
bit to set. To set more than one bit of the register, set
operationRegister
to the sum of their
decimal weights. For example, to set bits B11 and B14, set
operationRegister
to 18,432 (which
is the sum of 2,048 + 16,384).