Datasheet
Table Of Contents
- Features
- Applications
- Functional Block Diagram
- General Description
- Table of Contents
- Specifications
- Absolute Maximum Ratings
- Pin Configurations and Function Descriptions
- Typical Performance Characteristics
- Test Circuits
- Theory of Operation
- RDAC Register and EEPROM
- Input Shift Register
- SPI Serial Data Interface
- Advanced Control Modes
- EEPROM or RDAC Register Protection
- INDEP Pin
- RDAC Architecture
- Programming the Variable Resistor
- Programming the Potentiometer Divider
- Terminal Voltage Operating Range
- Power-Up Sequence
- Layout and Power Supply Biasing
- Outline Dimensions

AD5122/AD5142 Data Sheet
Rev. 0 | Page 20 of 32
THEORY OF OPERATION
The AD5122/AD5142 digital programmable potentiometers are
designed to operate as true variable resistors for analog signals
within the terminal voltage range of V
SS
< V
TERM
< V
DD
. The resistor
wiper position is determined by the RDAC register contents. The
RDAC register acts as a scratchpad register that allows unlimited
changes of resistance settings. A secondary register (the input
register) can be used to preload the RDAC register data.
The RDAC register can be programmed with any position setting
using the SPI interface (depending on the model). When a
desirable wiper position is found, this value can be stored in the
EEPROM memory. Thereafter, the wiper position is always
restored to that position for subsequent power-ups. The storing
of EEPROM data takes approximately 15 ms; during this time,
the device is locked and does not acknowledge any new command,
preventing any changes from taking place.
RDAC REGISTER AND EEPROM
The RDAC register directly controls the position of the digital
potentiometer wiper. For example, when the RDAC register is
loaded with 0x80 (AD5142, 256 taps), the wiper is connected to
half scale of the variable resistor. The RDAC register is a standard
logic register; there is no restriction on the number of changes
allowed.
It is possible to both write to and read from the RDAC register
using the digital interface (see Table 10).
The contents of the RDAC register can be stored to the EEPROM
using Command 9 (see Table 16). Thereafter, the RDAC register
always sets at that position for any future on-off-on power
supply sequence. It is possible to read back data saved into the
EEPROM with Command 3 (see Table 10).
Alternatively, the EEPROM can be written to independently
using Command 11 (see Table 16).
INPUT SHIFT REGISTER
For the AD5122/AD5142, the input shift register is 16 bits wide,
as shown in Figure 2. The 16-bit word consists of four control
bits, followed by four address bits and by eight data bits.
If the AD5122 RDAC or EEPROM registers are read from or
written to, the lowest data bit (Bit 0) is ignored.
Data is loaded MSB first (Bit 15). The four control bits determine
the function of the software command as listed in Table 10 and
Table 16.
SPI SERIAL DATA INTERFACE
The AD5122/AD5142 contain a 4-wire, SPI-compatible digital
interface (SDI,
SYNC
, SDO, and SCLK). The write sequence
begins by bringing the
SYNC
line low. The
SYNC
pin must be
held low until the complete data-word is loaded from the SDI
pin. Data is loaded in at the SCLK falling edge transition, as
shown in Figure 3 and Figure 4. When
SYNC
returns high, the
serial data-word is decoded according to the instructions in
Table 16.
To minimize power consumption in the digital input buffers
when the part is enabled, operate all serial interface pins close
to the V
LOGIC
supply rails.
SYNC
Interruption
In a standalone write sequence for the AD5122/AD5142,
the
SYNC
line is kept low for 16 falling edges of SCLK, and the
instruction is decoded when
SYNC
is pulled high. However, if
the
SYNC
line is kept low for less than 16 falling edges of SCLK,
the input shift register content is ignored, and the write sequence is
considered invalid.
SDO Pin
The serial data output pin (SDO) serves two purposes: to read
back the contents of the control, EEPROM, RDAC, and input
registers using Command 3 (see Table 10 and Table 16), and to
connect the AD5122/AD5142 to daisy-chain mode.
The SDO pin contains an internal open-drain output that needs an
external pull-up resistor. The SDO pin is enabled when
SYNC
is
pulled low, and the data is clocked out of SDO on the rising
edge of SCLK, as shown in Figure 3 and Figure 4.