Application Note When Bode Plot Fails Us When Bode Plots Fail Us By Steve Sandler, Paul Ho, and Charles Hymowitz, AEi Systems Two case studies show how and why output impedance testing is more reliable It may come as a surprise to some that a control loop’s Bode plot does not always depict the loop stability and that the output impedance measurement, obtained non‐invasively, always does. Challengers of the non‐invasive phase margin measurement approach believe that the method is not always an accurate representation of loop phase margin. While this can be true for transfer functions that are more than first order, the Bode plot does not always accurately depict the control loop stability in these cases either, while the non‐invasive output impedance measurement does. It is important to note, however, that the impedance must be measured at the feeback points, since downstream filters can impact the results. This is not to say that the downstream impedance is unimportant, it certainly is for Power Distribution Network (PDN) evaluations, however the filters (and trace impedances) can mask the loop stability. The phase margin and gain margin do not necessarily provide an accurate assessment of the control loop stability. Let’s look at one case study of a five output winding flyback converter, where the Bode plot leads to an incorrect conclusion of stability. The Bode plot for the converter, in Figure 1, indicates a bandwidth of 650Hz and a phase margin of 50 degrees. The small signal step load, Figure 2, and the output impedance measurement, Figure 3, indicate otherwise. The small signal step load shows ringing at a frequency of 850Hz, which is higher than the 650 Hz bandwidth. The small signal output impedance measurement indicates an impedance peak coinciding with the 850 Hz ringing frequency seen in the small signal step load response. Both the small signal step load and the non‐invasive output impedance measurement predict a phase margin of approximately 20 degrees, which is significantly worse than the 50 degree phase margin indicated by the Bode plot. The Bode plot includes markers for the gain and phase at both the 658Hz crossover frequency and also at the ringing frequency of 850Hz. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 1 of 9 Application Note When Bode Plot Fails Us 12 gain 15 phase BW = 658 hertz, PM = 50.2 degrees 180 40.0 0 20.0 gain in dB(volts) Plot2 phase in degrees 90.0 frequency = 851 hertz phase = 21.3 degrees 0 frequency = 851 hertz gain = -3.85 dB(volts) -90.0 -20.0 -180 -40.0 10 15 x = 1.09k hertz, GM = 8.70 dB(volts) 20 50 100 200 500 frequency in hertz 1k 2k 5k 12 10k Figure 1 Bode plot of a five output winding flyback converter with markers at both the crossover frequency and the ringing frequency. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 2 of 9 Application Note When Bode Plot Fails Us Figure 2 Small signal step load response of the converter at the feedback winding. There are 3 or 4 cycles of ringing visible at 860Hz. Figure 3 Small signal output impedance and group delay measurement at the feedback winding output. The OMICRON Lab Bode 100 VNA and Picotest J2111A Current Injector are used to calculate the Q and phase margin using the output impedance and group delay measurements using a similar equation from Reference 1. Why are the various measurements in disagreement? In fact, maybe they are not; its possible the tests are simply measuring different performance aspects. The Bode plot reports the phase margin at the gain crossover frequency and the gain margin at the phase crossover frequency. These two margins do not necessarily provide a complete assessment of the control loop’s stability. This revelation is not new and is supported by the seldom used Nichols chart. The Nichols chart is used to determine the peak response (most unstable point) from an open loop transfer function plot, as well as the crossover frequency, phase margin and gain margin. The peak response does not necessarily coincide with the gain crossover frequency. This can also be evident when using Nyquist plots and RF gain circles. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 3 of 9 Application Note When Bode Plot Fails Us The goals of the small signal step load (indirectly) and output impedance measurements (directly) are to determine the stability of the control loop. These measurements are easily acquired using the Picotest J2111A Current Injector and a vector network analyzer (“VNA”). The J2111A is minimally invasive, presenting a significantly lower capacitance load compared with normal electronic loads while enabling load transition edge speeds as fast as 20nSec and repetition rates above 10MHz. The output impedance plot is captured, in this case, using an OMICRON‐Lab Bode 100 VNA along with the J2111A. Looking at a Nyquist plot representation of the control loop in Figure 4 reveals why the stability is worse at a frequency other than the crossover frequency. Figure 4 shows that the distance from the open loop frequency response is closer to the singular unstable point (1, 0) at (0.598, 0.232) than the unity gain circle crossover point, with an associated phase lower than indicated by the phase margin. 16 imag 17 distance 1.00 Nyquist imag 500m 0 16 frequency = 851 hertz real = 598m imag = 232m -500m -1.00 -2.00 -1.00 0 real 2.00 y (min) = 464.318m x= 851.138 hertz 1.80 Dist1 distance 1.00 1.40 1.00 17 600m 200m 100 200 500 1k frequency in hertz 2k 5k 10k Figure 4 Nyquist assessment of the control loop stability and the distance from (1, 0). The closest distance from (1, 0) occurs at 850Hz, which is the frequency at which the ringing is seen in the small signal step load response and also coincides with the peaking seen in the output impedance measurement. This distance measurement is also similar to the stability circles used by RF engineers to determine the stable regions of RF amplifiers. The second case study utilizes a simple op‐amp circuit. The Bode plot, output impedance, and small signal step load are all simulated as shown in Figure 5. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 4 of 9 Application Note When Bode Plot Fails Us CoL 1G R2 1k P15 1 2 V4 AC = 1 4 V5 15 U1 LF156L P15 LoL 1G VCC N15 VEE V6 -15 Bodeplot N15 Figure 5 LF156 Opamp buffer configured for Bode plot generation. CoL, LoL, and V4 serve to inject the AC input signal stimulating the loop. This network is removed and replaced with a current source from the output to ground in order to simulate the AC output impedance and small signal step load transient. 80.0 90.0 40.0 45.0 0 -40.0 ph_v(bodeplot) in degrees Plot1 db_v(bodeplot) in db(volts) 1 ph_v(bodeplot) 2 db_v(bodeplot) BW = 3.92Meg hertz, PM = 46.3 degrees 1 0 2 x = 5.50Meg hertz, y = 34.4 degrees -45.0 x = 5.50Meg hertz, y = -4.35 db(volts) -80.0 -90.0 100 1k 10k 100k frequency in hertz 1Meg 10Meg Figure 6 Bode plot of LF156 Opamp buffer shown in Figure 5. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 5 of 9 Application Note When Bode Plot Fails Us The Bode plot shown above in Figure 6 has a phase margin of 46 degrees at a crossover frequency of 3.92MHz. The minimum distance from (1, 0) occurs at 5.50MHz with a phase of 34 degrees. 5 distance 6 imag Plot1 distance 4.00 frequency = 5.50Meg hertz distance = 606m 2.00 5 0 -2.00 -4.00 100 1k 10k 100k frequency in hertz 1Meg 10Meg Nyquist imag 4.00 2.00 0 6 frequency = 5.50Meg hertz real = 500m imag = 343m -2.00 -4.00 -8.00 -4.00 0 real 4.00 8.00 Figure 7 Nyquist plot and distance from (1,0) for the LF156 buffer. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 6 of 9 Application Note When Bode Plot Fails Us 1 ph_v(out) 2 db_v(out) y (max) = 4.64698 db(volts) x= 5.49541Meg hertz 120 10.0 2 80.0 -30.0 ph_v(out) in degrees Plot1 db_v(out) in db(volts) -10.0 40.0 -50.0 0 -70.0 -40.0 100 1 1k 10k 100k frequency in hertz 1Meg 10Meg Figure 8 LF156 Opamp buffer output impedance. The output impedance plot in Figure 8 shows that there is a peak at 5.5MHz and not at the gain crossover frequency of 3.92MHz. The resonant peak can be converted to a characteristic resistance which along with the effective inductance and capacitance can determine the Q. Zo peak: 4.65 Ro := 10 20 Ro = 1.708 Effective inductance: − 34 10 20 5 2⋅ π ⋅ 10 ⋅ L 3 L := 10 10 20000000π ⋅ −8 L = 3.176× 10 Effective capacitance: Fres 1/20/12 1 2⋅ π ⋅ L⋅ C 6 Fres := 5.5⋅ 10 Copyright © 2012 Picotest.com, All Rights Reserved Page 7 of 9 Application Note When Bode Plot Fails Us 1 C := 2 −8 2 C = 2.637× 10 4⋅ L⋅ Fres ⋅ π Q := L C Ro L = 1.097 C Q = 1.556 The equation to convert Q into phase margin can be found in Reference 1. PM( Q) := atan ⎛ 4⎞ ⎜ 1 + 1 + 4⋅ Q ⎟ ⋅ 180 ⎜ ⎟ π 4 2⋅ Q ⎝ ⎠ 1 v(out) 4.00m 3.20m 3.00m 2.20m PM( Q) = 35.444 2 ii1 Delta x = 225n seconds, Frequency = 4.44Meg hertz 2.00m v(out) in volts Plot1 ii1 in amperes 1 1.20m 1.00m 200u 0 -800u 2 8.00u 9.00u 10.0u time in seconds 11.0u 12.0u Figure 9 Opamp buffer small signal step load response The small signal step load response in Figure 9 shows that the ringing frequency is 4.44MHz with a Q more indicative of 35 degrees rather than 45 degrees. Many examples of misleading Bode plots and the distance between the Nyquist plot and the unstable (critical) point can be found in literature (see References 2 and 3). While the Bode plot can be used to determine the phase margin and gain margin of a control loop, it is not always the best indicator of the overall stability. The two case studies shown in 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 8 of 9 Application Note When Bode Plot Fails Us this article both result in acceptable phase margins, while the small signal step load and output impedance measurements indicate performance that is worse than expected based on the measured phase margin and may not be acceptable for some applications. The least stable point does not necessarily coincide with the 0dB gain crossover frequency as the open loop transfer function can be closer to the unstable point (1, 0) at other frequencies and gains. This can be seen in the Nyquist plot, Nichols chart and also using gain circles. The significant outcome is that while the Bode plot, small signal output impedance and small signal step load response are generally in agreement this is not always the case. In those cases where the bode plot and output impedance measurements do not agree, it is generally the Bode plot that fails to indicate the overall system stability. An additional consideration is that that the interest in assessing stability is not an interest in the phase margin as a number, but of the effect it has on the closed loop performance, as seen in PSRR, reverse transfer, step load and output impedance. The assessment of these closed loop characteristics includes the stability indicators, while offering a more direct measure of the closed loop performance. These are generally better assessed through output impedance, small signal step load response, or PSRR testing or analysis. References 1. Erickson, Robert W. and Dragan Maksimovic. Fundamentals of Power Electronics. Second Edition. Springer, 2001. 2. Åström, Karl Johan and Murray, Richard M. Feedback Systems: An Introduction for Scientists and Engineers. Princeton University Press, 2008. 3. Doyle, Francis and Tannenbaum. Feedback Control Theory. Macmillan Coll Div, 1992. About the Authors: Steve Sandler is the founder and CTO of AEi Systems, LLC. He is responsible for worst case circuit analysis of power, RF, and linear systems as well as the design of AEi Systems line of rad-hard dc-dc converters. Paul Ho is an engineering scientist at AEi Systems, LLC. He is responsible for their reliability engineering related analyses. Charles Hymowitz is the Managing Director of AEi Systems where he is responsible for overall company operation. Previously Mr. Hymowitz was the COO of Intusoft. 1/20/12 Copyright © 2012 Picotest.com, All Rights Reserved Page 9 of 9