Op-amp (or any feedback amplifier) stability and source impedance

Hi all,

On the thread https://www.diyaudio.com/community/...citor-for-a-fet-input-amp.419886/post-7843781 there was an off-topic discussion about source impedance and op-amp stability. It is obvious to me that for an amplifier with series feedback at the input and shunt feedback at the output, a too high source impedance with the wrong phase has the same kind of impact as too low load impedance with the wrong phase, because they are in the loop gain equation in a similar way, but apparently everyone else disagrees. In order not to contaminate the other thread too much, I start this one.

Attached is an explanation of my point of view, which was also posted in the other thread. As I wrote it in the middle of the night and wanted to get some sleep, I took a couple of shortcuts. I'll try to fix that over the next couple of days.

The replies to it were:



Best regards,
Marcel

Edit: the latest and hopefully greatest version of the report is here: https://www.diyaudio.com/community/attachments/sourceimpedance-pdf.1382244/
 

Attachments

Last edited:
  • Like
Reactions: Masca64
When the non-inverting input is basically unterminated (high-Z) at the wrong frequency the intrinsic differential capacitance of the opamp has no "mass" to work against and thus it creates a lot of noise gain. And a rising slope of noise gain intersecting a falling circuit gain is bound to cause instability.

But the initial schematic is weak. You always place some shunt EMC capacitance (and ESD catch diodes) on a non-inverting input, actually even better two of them (one right at the connector, the other at the opamp pins, separated by some small series resistance or ferrite bead). If the capacitance is affecting the audio response, bootstrap it in that range.

And if there is a long cable which needs to be terminated to behave properly at RF then an AC terminator is a good option. Actually the snubbing resistance can be made a series element so we can have some filtering alongside with the termination.

Overall, I would basically agree to your analysis, @MarcelvdG. Source impedance matters on both input pins of an opamp, not only on the inverting input. Both want to see low impedance at RF, the non-inverting refering to the supplies (AC ground) and the inverting refering to the output.
 
Input impedance is always at some level a function of load impedance and gain loop behavior (much less so if you buffer your input). Source impedance is rarely so high that this is a problem, usually a 100pF-1nF input shunt is enough to prevent step response issues. I used an RC shunt on the Kuartlotron to ensure stability, it works analogously to the L//R output network on power amplifiers.
 
Quick sim to illustrate the above, using datasheet spec of Cin_diff of 9.1pF for OPA1656:

1731833034446.png


1731833067822.png

So, when the unterminated cable had an impedance peak in the region around 4Mhz that is near or even above the 47k local resistor the circuit might oscillate.

Alternate view from noise gain perspective:
1731833673790.png


Without the "terminator", the noise gain explodes to 40dB. With the "terminator", it is reduced to the gain coming from the capacitance ratio (15p+9.1p)/15p = ~4dB.
Only at very high frequencies (>100Mhz) the 220R resistor causes a rise of noise gain again as it then starts to dominate the lower leg of the divider.
 
Quick sim to illustrate the above, using datasheet spec of Cin_diff of 9.1pF for OPA1656:

View attachment 1381659

View attachment 1381660
So, when the unterminated cable had an impedance peak in the region around 4Mhz that is near or even above the 47k local resistor the circuit might oscillate.

Alternate view from noise gain perspective:
View attachment 1381661

Without the "terminator", the noise gain explodes to 40dB. With the "terminator", it is reduced to the gain coming from the capacitance ratio (15p+9.1p)/15p = ~4dB.
Only at very high frequencies (>100Mhz) the 220R resistor causes a rise of noise gain again as it then starts to dominate the lower leg of the divider.
Quick question here, why did you put the 47k in series with the source? I’m thinking of an equivalent cart sourced impedance of 1.5k + 1.3H shunted by the 47k load.

On a separate but related topic, I consider the input filter on a power amp part of the compensation because the rise/fall time the front end sees means you can ensure the diff smp resins in the linear portion of its operating range and avoid it switching which leads to slewing. This of course has to be considered as part of the total compensation design, but the main point here is these things are are interlinked.
 
Quick question here, why did you put the 47k in series with the source? I’m thinking of an equivalent cart sourced impedance of 1.5k + 1.3H shunted by the 47k load
This was to estimate the worst case input impedance the circuit would see when the attached cable has an impedance peak, appearing as open circuit.

I could be all wrong with this, of course.
 
  • Like
Reactions: Bonsai
A step response anomaly may be obvious on an oscilloscope but invisible in a response chart. 1% overshoot is easily visible on an oscilloscope but is only 0.1db. If an amp has a gain of 40 but rises to 41 at 100KHz, you may see overshoot on the step response but it might not look bad on the response chart.

Similarly, even though the effect of input impedance is usually tiny, if your goal is perfect square waves then this might actually become an issue. Whether that is audible is someone else's call, but if your amp only has overshoot when there is a high or mild source impedance, this is worth looking at if it means you don't have to overcompensate the amplifier.
 
I agree with your point that the input network is part of the feedback due to the capacitance between the differential inputs.

My Dual turntable has a shorting switch. My experience is that the switch opening/closing being audible is usually caused by DC across the cartridge. Also, the Dual's motor damping capacitor is prone to failure, which leads to a loud pop when the power switch opens.
Ed
 
Quick sim to illustrate the above, using datasheet spec of Cin_diff of 9.1pF for OPA1656:

View attachment 1381659

View attachment 1381660
So, when the unterminated cable had an impedance peak in the region around 4Mhz that is near or even above the 47k local resistor the circuit might oscillate.

Alternate view from noise gain perspective:
View attachment 1381661

Without the "terminator", the noise gain explodes to 40dB. With the "terminator", it is reduced to the gain coming from the capacitance ratio (15p+9.1p)/15p = ~4dB.
Only at very high frequencies (>100Mhz) the 220R resistor causes a rise of noise gain again as it then starts to dominate the lower leg of the divider.

I think this is the resonance of the 47 kohm with the frequency-dependent negative resistance of the op-amp. The frequency should be proportional to 1/√R, so you get twice the frequency with a four times smaller resistance. A bit of shunt capacitance can damp it.
 
Attached is a new version of my report. I tried not to cut too many corners this time, I hope the result is more to @tomchr 's liking.

It doesn't answer all his questions, nor all the questions and remarks in this thread. I will come back to those later. It's close to 1 AM here now, and I really have to get some sleep.
 

Attachments

Last edited:
  • Like
Reactions: Bonsai
Marcel, as always an interesting analysis. Thank you for posting.

In the case of high input capacitance opamps - probably mosfet which you allude to in your analysis - would it not be easier to look at this analysis by considering the inverting input in conjunction with the feedback network as a bootstrapping arrangement wrt the non inverting input? For low Z sources the bootstrapping effect would be minimal, but with high Z sources (maybe for example a MM cart at HF?) it could be significant.

I'm sure you can analyse it in terms of bootstrapping. In fact, I think I'm implicitly doing that when I calculate the input impedance, now in section 3.1. I calculated the input impedance because I found it easier to calculate the effect of a resonating source impedance that way than via loop gain analysis.

All in all, I think I agree.
 
  • Like
Reactions: Bonsai
I appreciate your explanation, but you still weren't dealing with loop instability.

Thanks for your comments. I have made the stability analysis a bit more explicit in version 2 of the report.

In your writeup you state that you suspected that the phono cable formed a quarter-wave resonator that acted as an oscillator.

The combination of the resonator and the amplifier appears to form an oscillator, of course not the resonator on its own.

That's outside of the feedback loop, so not related to loop stability.

I disagree with that. The source impedance affects loop gain just like load impedance does, so it is also quite capable of affecting stability.

You also didn't show anything to support your suspicion other than the notion that an RC snubber helped. Your scope pictures in the posts linked to above show a lot of switch bounce but no oscillation, so I'm curious why you'd bark up that tree.

They are not my scope pictures, they are @JRA 's. JRA set the timescale such that you could see the entire bang, so too far zoomed out to see a 50 MHz or so oscillation. I don't know how wideband the scope was.

Another possibility for the loud bang could be that the input stage had some DC offset that got nulled out by the mute switch. It wouldn't take much offset to create a loud bang given the 50-60 dB gain of a typical phono stage at LF.

What effect is supposed to make offset voltage sensitive to shorting switches, why is it much worse for a fast CMOS op-amp than for a slower op-amp and why does an RC series network across the input solve it?
The bias current of the OPA1656 is much too small to cause a bang. I calculated that somewhere on the other thread.


It could also be that the mute switch is a double-throw switch that connects the phono cable to either the cartridge output or to ground. While it switches there'll be a brief moment where the input to your phono stage is floating.

The source impedance is not included in the loop gain. I agree that Zs reduces the signal at the input to the opamp, so V(a,b) in your writeup, but that has nothing to do with the loop gain.

I don't know what loop gain definition you use, but in section 2 of version 2 of my report, I use all circuit loop gain definitions I know of, and give or take a minus sign, they all give the same answer as I put in version 1 of the report.

Also, the input impedance of an opamp is extremely high. For the OPA1656 the input impedance is 100 MΩ || 9.1 pF (differential) and 6 TΩ || 1.9 pF. Yes. Tera-ohm. 10^12 ohm. So the source impedance would have to be extremely high for it to have even a minuscule impact on the differential voltage experienced by the opamp.

Yes, 9.1 pF, also known as -350 j ohm at 50 MHz.

You can see that pretty easily in your math:
View attachment 1381596
Zin,ol >> Zs makes the last term equal to 1, i.e., the source impedance has no effect on the loop gain, even if it wasn't already excluded by definition.

It isn't excluded by any of the definitions I know, and 350 ohm isn't all that much.

I'm also not sure where you get ZLt from. Do you have a reference for this or is it your work? I mean... I can see it in your writeup just fine, but I'm not sure where it came from.

I introduced it to make the equation a bit simpler.

The reason capacitive loading of an opamp tends to lead to instability is that the load capacitance forms a pole with the output impedance of the opamp. That adds extra phase change in the feedback loop, which causes instability.

In section 2 of the new report, I show that a resistive source causes an extra negative real pole in the loop gain when the open-loop input impedance is capacitive, just like a capacitive load causes an extra negative real pole in the loop gain when the open-loop output impedance is resistive.
 
Actually, my claim is simply that source impedance can affect stability and that an input filter or an RC branch from the positive input to ground can therefore improve stability for certain source impedances. Whether that is true is independent of what loop gain definition you like to use.
 
I think this is the resonance of the 47 kohm with the frequency-dependent negative resistance of the op-amp. The frequency should be proportional to 1/√R, so you get twice the frequency with a four times smaller resistance. A bit of shunt capacitance can damp it.
Looks like this nails it.

Input impedance, with no shunt capacitance (green) vs 15pF (blue), and no parallel 47k:
1732003262530.png

Without the shunt the input impedance slope is second order and phase peaks near 180deg around the problem frequency, so effectively negative.

Alternate look at it, with the load resistor in place, and 200k (4x) this time, and stepping the shunt capacitance .01f 33f 100f 330f 1p 3p 10p 33p:
1732003977017.png

Frequency has halved and we see the negative'ish input impedance is pretty much cancelling the 200k completely.
 
Last edited: