A short while back, I published a design idea (Ref. 1) that uses a single linear pot to control the gain of a high performance OP37 decompensated op-amp over an unusually wide (–30 dB to +60 dB) range.
Figure 1 shows the circuit.
Figure 1. | Grounded wiper makes R2 serve as both input attenuator and output gain set. |
Recently I started wondering whether a digital pot (Dpot) would work in place of Figure 1’s mechanical R2. Figure 2 shows what seemed like a likely Dpot topology.
Figure 2. | R2 has the same function as in Figure 1 with DC bias from R4R5C2 to accommodate bipolar signals. But what about RW wiper resistance effects? |
On closer inspection, it turned out not to be so very promising after all. This is due to wiper resistance interfering with the isolation of the two halves of R2 that made the original circuit work in the first place. Figure 3 shows the fix I eventually resorted to.
Figure 3. | Positive and negative feedback loops around A2 combine to create active negative resistance = –R4. |
A2 and its surrounding network are the basis of the trick. They generate an active negative resistance effect that subtracts from RW and, if adjusted so R4 = RW, can theoretically (the engineer’s least favorite word) cancel it out completely.
A quick method for dialing out RW is to write the Dpot setting to zero, provide a ~1 V rms input, then trim R4 for output null.
Here’s some negative resistance math. Note VP# = voltage signal present at A2 pin #.
Let IW = wiper signal current, then
VP6 = VP2 – R4·IW,
VP2 = VP3 (negative feedback),
VP3 = VP6/2 (positive feedback),
VP6 = –2·R4·IW.
If R4 = RW, then
IR4 = IRW,
–2·R4·IW = –(R4 + RW)IW,
VW = VP6 + (IW·R4 + IW·RW) = –IW(R4 + RW) + IW(R4 + RW).
VW = 0 (RW has been cancelled out!)
Figure 4. | Red curve plots uncompensated RW (~150 Ω), note the 20 dB loss from both ends of the span. Black curve plots the case where RW is compensated with negative resistance (R4 = RW = 150). |
Figure 4’s red curve compares Figure 2’s behavior with an (uncompensated) RW = 150 Ω (plausible for the Microchip Dpot illustrated), while the black curve shows what happens if R4 = RW = 150 Ω. Compare it to the performance of the original (Figure 1) circuit using a mechanical pot as shown in Figure 5.
Figure 5. | Gain curve using the mechanical pot is identical to Dpot with negative resistance RW compensation. |
Of course, how perfect RW cancellation over the full range of Dpot settings can be is no better than RW match over the Dpot’s 257 different taps at the 2.5 V DC bias provided by R5R6. Typical matching within a given pot’s resistor array seems good, but this is not the manufacturer’s promise, which only speaks to a factor of ±20% or so. But reducing RW by a factor of 5 is still useful.
Footnote: Subsequent to publishing the mechanical pot version of this idea, I learned that Mr T. Frank Ritter had anticipated it by more than 50 years in his “Controlling op amp gain with one potentiometer,” published in “Electronics Designer’s Casebook”, 1972, McGraw Hill.
So, I hereby offer a belated but enthusiastic tip of my hat to Mr. Ritter. I’ve always admired pioneers!