AN-1206: Variable Gain Inverting Amplifier Using the AD5292 Digital Potentiometer and the OP184 Op Amp

Circuit Function and Benefits

This circuit provides a low cost, high voltage, variable gain inverting amplifier using the AD5292 digital potentiometer in conjunction with the OP184 operational amplifier.

The circuit offers 1024 different gains, controllable through an SPI-compatible serial digital interface. The ±1% resistor tolerance performance of the AD5292 provides low gain error over the full resistor range, as shown in Figure 2.

Figure 1. Variable Gain Inverting Amplifier (Simplified Schematic: Decoupling and All Connections Not Shown).
Figure 2. Gain and Gain Error vs. Decimal Code.

The circuit supports input and output rail to rail for both single supply operation at +30 V and dual supply operation at ±15 V; and is capable of delivering up to ±6.5 mA output current.

In addition, the AD5292 has an internal 20-times programmable memory that allows a customized gain setting at power-up. The circuit provides accuracy, low noise, low THD, and is well suited for signal instrumentation conditioning.

Circuit Description

Table 1. Devices Connected/Referenced
Product Description
AD5292 10-bit, 1% resistor tolerance digital potentiometer
OP184 Rail-to-rail input and output, low noise, high slew rate operational amplifier

This circuit employs the AD5292 digital potentiometer in conjunction with the OP184 operational amplifier, providing a low cost variable gain noninverting amplifier

The input signal VIN is amplified by the OP184. The op amp offers low noise, high slew rate, and rail-to-rail input and output.

The maximum circuit gain is defined in Equation 1.

Equation 1

The maximum current through the AD5292 is ±3 mA, which limits the maximum input voltage, VIN, based on the circuit gain, as Equation 2 describes.

Equation 2

When the input signal connected to VIN is higher than the theoretical maximum value from Equation 2, R2 should be increased, and the new gain can be recalculated using Equation 1. The ±1% internal resistor tolerance of the AD5292 ensures a low gain error, as shown in Figure 2.

The circuit gain equation is:

Equation 3

where D is the code loaded in the digital potentiometer.

When the circuit input is an ac signal, the parasitic capacitances of the digital potentiometer can cause undesirable oscillation in the output. This can be avoided, however, by connecting a small capacitor, C1, between the inverter input and its output. A value of 10 pF was used for the gain and phase plots shown in Figure 3.

Figure 3. Gain and Phase vs Frequency for AC Input Signal.

A simple modification of the circuit provides a logarithmic gain function, as shown in Figure 4. In this case, the digital potentiometer is configured in the ratiometric mode.

Equation 4

  
Figure 4. Logarithmic Gain Circuit.

where D is the code loaded in the digital potentiometer. A gain plot versus code is shown in Figure 5.

Figure 5. Logarithmic Gain Function.

The circuit gain is defined in Equation 4.

The AD5292 has a 20-times programmable memory, which allows presetting the output voltage in a specific value at power-up.

Excellent layout, grounding, and decoupling techniques must be utilized in order to achieve the desired performance from the circuits discussed in this note (see MT-031 Tutorial and MT-101 Tutorial). As a minimum, a 4-layer PCB should be used with one ground plane layer, one power plane layer, and two signal layers.

Excellent layout, grounding, and decoupling techniques must be utilized in order to achieve the desired performance from the circuits discussed in this note (see MT-031 Tutorial and MT-101 Tutorial). As a minimum, a 4-layer PCB should be used with one ground plane layer, one power plane layer, and two signal layers.

Common Variations

The AD5291 (8-bits with 20-times programmable power-up memory) and the AD5293 (10-bits, no power-up memory) are both ±1% tolerance digital potentiometers that are suitable for this application.

Learn More

MT-031 Tutorial, Grounding Data Converters and Solving the Mystery of "AGND" and "DGND", Analog Devices.

MT-032 Tutorial, Ideal Voltage Feedback (VFB) Op Amp, Analog Devices.

MT-087 Tutorial, Voltage References, Analog Devices.

MT-091 Tutorial, Digital Potentiometers, Analog Devices.

MT-101 Tutorial, Decoupling Techniques, Analog Devices.