Other Parts Discussed in Post: OPA211

SPICE is a useful tool to help check for potential circuit stability problems. Here is one simple way to do it:

Figure 1 shows a non-inverting amplifier using the OPA211 with a couple of minor variations that are common in many applications. R3-C1 is an input filter. R4 is an output resistor to protect against abuse when connected to the outside world. CL models a five-foot cable.

Checking the response to a small-signal step function or square wave is the quickest and easiest way to look for possible stability problems. Figure 2 shows the simulation circuit. Notice that the input terminal is connected to ground and the input test signal is connected directly to the non-inverting input. The input filter would slow the input edge of a step function. If you want to know how a bell rings, hit it with a hammer, not a rubber mallet.

The response is probed at the output of the op amp, not just the Vout node of the circuit. R4 and CL filter the output response so that Vout will not show the true overshoot of the op amp. To check stability, we want to know what the op amp is doing.

Notice that the amplitude of the applied step is 1mV (creating a 4mV step at the output). We want the small-signal step response. A large input step that induces slewing will have less overshoot and will not clearly reveal potential instability.

The simulation shows approximately 27% overshoot at the op amp’s output, too much to be comfortable that this circuit will be stable under all conditions.  Assuming a second-order stability system, this would indicate a phase margin of approximately 38°. Also, notice that the frequency response shows considerable amplitude peaking, another sign of potential instability. The peaking occurs at 14MHz, the inverse of the period of the ringing in the time domain. A commonly accepted guideline for reasonable stability is a phase margin of 45° (or greater) which translates to 20% (or less) overshoot.

There are fancier analyses that can be done with SPICE—Bode analysis by breaking the loop, finding phase and gain margins. But for most relatively simple circuits (feedback loop involving one op amp) this approach is a very good indicator of possible problems. Of course, any SPICE simulation relies on the accuracy of the op amp’s macro model. Our best SPICE models are excellent but not perfect. Furthermore, circuit variation, non-ideal components, circuit board layout parasitics, poor supply bypassing—all can affect the circuit. That’s why you build it, test it, compare with simulation and optimize. SPICE is a useful tool, valuable but not sufficient.

How would you improve the stability of this circuit? Comments welcome below below…

Thanks for reading,

Bruce        thesignal@list.ti.com

 

          Simulations are performed with the free version of TINA-TI.

          Index to all The Signal blogs.

Anonymous
  • My suggestion for improving the stability and for the same frequency bandwidth of this circuit is shunting the R2 concrete contractor resistor with 27pF capacitor and don't use the input R3, C1 filter.

  • Agreed Collin. I simply use a very large cap (Pspice doesn't care) in series with the inverting input and and a 100k feedback (think differentiator) and hit it with an AC. I can then see the dominant pole with any kind peaking.

  • The Harris app note is freely available on the Intersil website at www.intersil.com/.../an9536.pdf.

  • @ Otto:

    Hello, I see your concern with the RC filter on the input and agree that if you drive the input signal through the RC filter before it reached the non-inverting input then you would not effectively test the stability of the circuit because the RC filter will dampen the step input.  However, if you place the step input directly on the non-inverting input as shown in the second schematic in the blog then the input will see the actual step input and the overshoot of the output will provide a very accurate representation of the circuit phase-margin once you correlate the overshoot to phase-margin using the final image in the blog.  This is very effective in SPICE if you're interested in quickly determining if your circuit may have stability issues.  In the real world on the bench there will be some non-idealities due to the non-zero ramp time of your function generator (and perhaps even a bit of overshoot out of the function generator) but this test will still provide the easiest method to test the stability of your OPA design.