Programming And Reading Registers; Programming Enable Registers; Figure 11-2 16-Bit Status Register - Keithley 6220 Reference Manual

Ac and dc current source measure unit
Table of Contents

Advertisement

Model 6220/6221 Reference Manual

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 11-3
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
For example, if you wish to sets bits B4, B3, and B1, the binary value would be
11010 (where B4=1, B3=1, B1=1, and all other bits are 0). When you use one of
the other formats, convert the binary number to its decimal, hexadecimal, or octal
equivalent:
Binary 11010 = Decimal 26 = Hexadecimal 1A = Octal 32
Note that
B4, B3, and B1, 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
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>
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176 - TestEquipmentDepot.com
through
Table
11-6).
(Figure
Figure 11-2
includes the decimal weight for each register bit. To set bits
Return to
11-1) indicate the binary parameter value.
Section 11 topics
Status Structure 11-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

6221

Table of Contents