Back to the FRA tab SPD Knowledge Base

VZSol Technical Article · FRA

Frequency Response Analysis

Gain and phase of filters, amplifiers and power-supply control loops: how two channels give a transfer function, how loop gain is measured without opening the loop, what the stability margins mean, what the step response and the injection level have to do with them, and how to measure with VZSol

P. V. V. Jayaweera, SPD Laboratory, Inc.Draft, December 2026Reading time about 16 minutes

Key points

  • A frequency response analyser applies a sine, measures two points of a circuit at that one frequency and takes their ratio. The generator level and its source impedance cancel in the ratio.
  • The loop gain of a power supply is measured with the loop closed: a small voltage is injected across a 5 Ω resistor in the feedback path, and the signals on both sides give T.
  • Phase margin, gain margin and the modulus margin say how far the loop is from oscillation. Together with the loop gain they predict the step response, but a good phase margin alone does not guarantee a small overshoot.
  • The injection level is a trade-off: too small and the points far from crossover are noisy, too large and the loop leaves its linear range near crossover, where the error is not obvious from the margins.
  • For filters and amplifiers a second-order model gives f0 and Q, which tell Bessel, Butterworth and peaking responses apart better than the −3 dB points.
  • VZSol (model VK-ZFA10M) measures gain and phase from 0.1 Hz to 10 MHz, and loop gain from 10 Hz to 10 MHz with the OPT-INJ injection transformer (Section 8).

1. What a frequency response analyser measures

A linear circuit driven by a sine responds at the same frequency, with its own amplitude and phase. A frequency response analyser (FRA) measures this for one frequency after another. It records two signals, A at the input of the part of interest and B at its output, multiplies each by a sine and a cosine of the drive frequency, and averages over a whole number of cycles. That gives the complex amplitude of each signal at that frequency, and their ratio is the transfer function:

H(f) = BA,   B = 2tm ∫0tm vB(t) e−j2πft dt(1)

where tm is the measuring time, a whole number of periods, and A follows in the same way from vA. The correlation acts as a narrow band-pass filter centred on the drive frequency, with a width of about 1/tm. Noise and harmonics outside it average away, so a longer measurement gives a cleaner point [12]. Because A is measured rather than assumed, the generator level, its 100 Ω source impedance and the response of anything before point A cancel in the ratio.

The result is usually drawn as a Bode plot, gain in decibels and phase in degrees against log frequency. The Nyquist plot shows the same complex values in the plane, and the Nichols plot gain against phase. The group delay, the slope −dφ/dω of the phase, shows how long each frequency takes to pass through the circuit.

A swept sine takes one frequency at a time. A multisine applies many at once, with phases chosen so that the peak of their sum stays low [11], and is much faster. The price is that the drive power is shared between the tones, so each point is noisier for the same peak level, and a non-linear circuit mixes the tones with each other [12].

2. Loop gain with the loop closed

A power supply regulates its output with a feedback loop: a divider senses the output, an error amplifier and compensator compare it with a reference, and the modulator and power stage drive the output. The loop gain T is the gain once around this loop. It decides how well the output is held and whether the loop is stable. The loop cannot simply be opened for a measurement, because the output would drift away from its operating point.

Middlebrook's voltage-injection method measures T with the loop closed [3]. A small resistor is placed in the loop, here 5 Ω between the output and the top of the feedback divider, and a transformer injects a small voltage across it. The loop now carries the injected signal around, and the voltages on the two sides, A on the output side and B on the divider side, give the loop gain:

T = vAvB(2)

Middlebrook writes this with a minus sign, for the inversion of negative feedback; the tab, like most loop-gain instruments, leaves the sign out of the display so that the closed loop is T/(1 + T). The measured ratio is the true loop gain only when the impedance Zs looking back from the injection point towards the source is much smaller than the impedance ZL looking forward into the rest of the loop [3] [4]:

Tv = T (1 + ZsZL) + ZsZL(3)

The output of a regulator has milliohms to ohms, the divider kilohms, so this point satisfies the condition well. The transformer separates the generator's ground from the circuit, and its own frequency response cancels because only the ratio of A to B is used.

Figure 1. The first measurement of the FRA tab: the loop gain of its demo buck converter (500 kHz switching, peak-current mode, type-II compensator), 10 Hz to 1 MHz with 20 points per decade, shaped injection of 20 mV near crossover rising to at most 59 mV, normal speed. Grey circles mark points with more than 3 % noise. simulated

The gain falls through 0 dB at the crossover, 9.14 kHz, where the phase is −119°, a phase margin of 60.8°. The phase reaches −180° at 164 kHz, where the gain is −37.7 dB, the gain margin. The points below 20 Hz and from 630 kHz up are noisy, with 10 % at 10 Hz and 12 % at 1 MHz: there the loop gain is 70 dB or −77 dB, so one side carries very little signal, and OPT-INJ cannot inject more (Section 5).

3. Stability margins

Nyquist's criterion decides stability from the loop gain alone: for a loop that is stable when opened, the closed loop is stable if the plot of T in the complex plane does not encircle the point −1 [1]. Bode turned this into readings on the Bode plot [2], and four margins are in common use:

PM = 180° + ∠T(fc),   GM = −20 log10 |T(f180)|,   MM = min |1 + T|,   td = PM360° · fc(4)

The phase margin PM is the extra phase lag at crossover that would bring the loop to oscillation, and the gain margin GM the extra gain at the frequency f180 where the phase is −180°. The modulus margin MM is the shortest distance from the Nyquist curve to −1, and covers both at once: MM ≥ 0.5 guarantees a gain margin of at least 6 dB and a phase margin of at least 29° [7]. The delay margin td is the extra time delay that would use up the phase margin [7]. It matters for digitally controlled supplies, where the computation adds delay.

Figure 2. The two demo buck converters of the tab in the complex plane. They differ only in the gain of the compensator, by a factor of 6.5 (16.3 dB). The dotted lines join −1 to the nearest point of each curve. calculated

The well-tuned converter keeps a modulus margin of 0.78 (at 15.8 kHz) and a delay margin of 18.5 µs. With the higher gain, the crossover moves to 33.6 kHz, where the phase lag is larger: the phase margin falls to 35.7°, the gain margin to 21.4 dB, the modulus margin to 0.55 and the delay margin to 2.95 µs. The tab calls this "Stable, but with little margin".

The tab checks five rules of thumb: a phase margin of at least 45° (60° ideal), a gain margin of at least 10 dB, a crossover at most one fifth of the switching frequency, only one 0 dB crossing, and no conditional stability, in which the phase passes −180° at a frequency where the gain is still above 0 dB. A conditionally stable loop can oscillate when its gain drops, for example during start-up or in current limit. The fifth-of-fsw rule comes from the sampling of the modulator: in peak-current mode it adds a double pole at half the switching frequency [5]. In the demo buck this term alone costs 37° of phase at 100 kHz but only 3.3° at the 9.14 kHz crossover. These are guides, not laws, and a design can have good reasons to depart from them.

The demo LDO regulator crosses over at 67 kHz with a phase margin of 52.8°. Its phase never reaches −180° below 1 MHz, so the tab shows no gain margin. That does not mean the gain margin is infinite: the phase may still cross −180° above the measured range. The stability of an LDO depends strongly on the load current and on the output capacitor and its series resistance [6], so it is worth measuring at more than one load.

4. From the loop gain to the step response

The closed loop passes T/(1 + T) from the reference to the output. Its step response follows from the measured loop gain alone, without a model, through a sine transform of its real part:

s(t) = 2π ∫0∞ Re [T1 + T] sin ωtω dω(5)

Below the first measured frequency the tab takes T/(1 + T) as 1, which is right while the loop gain is high, and above the last frequency as 0. A widely used shortcut treats the closed loop as a two-pole system whose Q follows from the phase margin φm [4]:

Q = √cos φmsin φm,   overshoot = exp (− π ζ√(1 − ζ²)),   ζ = 12Q(6)

A phase margin of 52° gives Q = 1, and 76° gives Q = 0.5, the boundary of overshoot.

Figure 3. Step responses of the two buck converters, computed by the tab's method from their loop gain between 10 Hz and 1 MHz. calculated

The well-tuned loop overshoots by 11 % and settles within 2 % after 175 µs. The loop with the higher gain is faster to rise but overshoots by 35 % and rings at about the crossover frequency. Equation (6) predicts 34 % for its phase margin of 35.7°, close to the tab's result.

Figure 4. The demo buck loop with its compensator gain changed in 1 dB steps from −12 to +20 dB. Each point is the phase margin and the overshoot of equation (5); the dashed line is the two-pole rule of equation (6). calculated

Below a phase margin of about 55° the two agree within a few per cent. Above 60° they part: at 67.7° the two-pole rule predicts 3 % overshoot, but the loop gives 11 %, and lowering the gain further makes it worse, not better. The cause is the zero of the type-II compensator at 1.2 kHz, well below crossover, which leaves a slow pole and zero pair in the closed loop. A large phase margin therefore does not by itself guarantee a small overshoot. The shape of the loop gain below crossover matters too.

The predicted response is for a step of the reference. A load step has the same denominator 1 + T, so it rings at the same frequency with the same damping, but its size and shape also depend on the output impedance of the power stage, which the loop gain does not contain.

5. How large the injection should be

The injected voltage divides between the two sides: B carries vinj/(1 + T) and A carries T·vinj/(1 + T). Well below crossover, where |T| is large, B is small; well above it, A is small. With an input noise en on each channel, the relative noise of the measured T is about

σ ≈ envinj |1 + T| (1 + 1|T|)(7)

which is smallest near crossover and grows on both sides. The tab's noise model uses this expression.

Figure 5. Relative noise of each point of the buck converter's loop gain at normal speed, from the noise model of the tab, for three injection settings. Points above 3 % are marked noisy. calculated

With a fixed 20 mV, the noise is 15 % at 10 Hz, where the loop gain is 70 dB, and 36 % at 1 MHz, where it is −77 dB. A larger injection lowers the noise, but OPT-INJ gives at most 59 mV: Hcur swings ±1.24 V through its 100 Ω, and the 1:1 transformer puts that across the 5 Ω resistor, a division by 21. Below 20 Hz the tab also keeps the injection under 3 mV per hertz (30 mV at 10 Hz), so that the transformer core does not saturate; this limit is an estimate until the transformer is chosen. Shaped injection follows equation (7) within these limits. The tab sets each point from the loop gain it has just measured: 20 mV where |T| is about 1, rising with the square root of |T| or of 1/|T| away from crossover, up to 59 mV. Far from crossover it gives the same noise as a fixed 59 mV, 10 % at 10 Hz and 12 % at 1 MHz, but within 12 dB of crossover it stays at 40 mV or less, where a fixed 59 mV overdrives the loop (Figure 6). In Figure 1 the points below 20 Hz and from 630 kHz up are still marked noisy. The Precise speed averages four times as many cycles and halves the noise, and a sweep that starts at 20 Hz avoids the core limit. Above 1 MHz the drive is fixed, about 49 mV of injection (Section 8), so the shaping stops there.

Too large an injection does harm near crossover. There the output itself moves by about the injected voltage, and the error amplifier, the modulator or the current limit may leave their linear range. The tab warns when the injection exceeds 40 mV within about 7 dB of crossover.

Figure 6. The buck converter measured with fixed injection of 20 mV and 59 mV, 1 to 100 kHz. In the tab's model, injection above 40 mV compresses the loop near crossover. simulated

At 59 mV the measured crossover moves from 9.15 kHz (at 20 mV) down to 6.59 kHz, while the phase margin hardly changes (61.2° against 60.8°): the error does not show in the margin. The practical test is to measure at two levels and compare the curves. Where they differ, the smaller level is the right one, or the circuit is not linear at either.

6. Filters and amplifiers

For a filter or an amplifier the generator drives the input directly. V-sense measures the input as A and CH2 the output as B, so the 100 Ω source of the generator and the input impedance of the circuit do not enter the result. Many filters are built from second-order sections, such as the Sallen–Key circuit [8], and a low-pass section is

H(f) = K1 − (f/f0)² + j f/(Q f0)(8)

The quality factor Q sets the shape near f0. Q = 0.707 is the Butterworth response, the flattest gain without peaking [9]. Q = 0.577 is the second-order Bessel (Thomson) response, with the flattest group delay [10], which keeps the shape of pulses. Above 0.707 the gain peaks before it falls.

Figure 7. Second-order low-pass sections of equation (8) with K = 1, against frequency normalised to f0. calculated

The tab fits equation (8), or its band-pass or high-pass form, to the measured data and names the alignment from Q. For its demo devices at 20 points per decade it gives:

  • Low-pass, 10 kHz (Sallen–Key). −3 dB at 9.985 kHz, roll-off −40 dB per decade, group delay 22.5 µs in the pass band. The fit gives f0 = 10.00 kHz and Q = 0.707, Butterworth.
  • Band-pass, 1 kHz, Q 5. Peak gain 6.02 dB at 1 kHz, −3 dB points at 910 and 1099 Hz, a bandwidth of 188 Hz. The true width is f0/Q = 200 Hz. The 6 % error comes from interpolating between points 12 % apart; the fit uses all the points and gives Q = 5.00. For narrow resonances, use the fit or more points per decade.
  • Audio amplifier ×10. Gain 20.0 dB from 20 Hz to 330 kHz, with 1.8 dB of peaking at 200 kHz from an upper section with Q = 1.1.

The group delay of the low-pass is a quick check of equation (8): at low frequency it is 1/(2π f0 Q).

7. Tuning from the measured loop

A change in the compensator, such as a different gain resistor or an extra zero or pole, multiplies the loop gain by the transfer function of the change. The new loop can therefore be predicted from the measured one without a new measurement:

T′ = T · 10ΔG/20 · 1 + jf/fz1 + jf/fp(9)

This holds as long as the change leaves the rest of the loop alone. A new output capacitor or a different load changes the power stage, and then the loop has to be measured again. To find the gain for a target phase margin, the tab looks for every frequency at which the measured phase is −180° plus the target. It takes the highest one whose loop still keeps the rules of thumb: one 0 dB crossing, a gain margin of at least 10 dB, a crossover at most a fifth of the switching frequency, and, where the phase never reaches −180° in the data, a crossover at least a decade below the last measured point, so that the phase beyond it is known. For the demo LDO and a 60° target, the phase passes −120° at 37, 257 and 588 kHz. The two higher choices would put the crossover too close to the end of the data, so the tab suggests −7.5 dB, for a crossover at 37.9 kHz and a phase margin of 59.7°.

Figure 8. The buck converter with too much compensator gain, as first measured by the tab (shaped injection), and the prediction for the gain change that the tab suggests for a 60° phase margin, rounded to 0.5 dB. simulated

The measured loop has a phase margin of 35.7° and an overshoot of 35 %. The tab suggests a gain change of −15.5 dB (it works in 0.5 dB steps), which predicts a crossover of 9.60 kHz, a phase margin of 59.7°, a gain margin of 36.9 dB and an overshoot of 12 %. The two demo compensators differ by 16.3 dB, so the suggestion, found from the measured phase alone, lands close to the well-tuned design. After the change is made, a new measurement confirms it.

8. What the instrument can resolve

VZSol measures A on V-sense (Hpot and Lpot) and B on CH2, and drives with Hcur. For gain and phase the result is B/A. For loop gain, OPT-INJ passes both sides of the injection point through AC-coupled sense outputs that block up to 400 V DC: SENSE A, on the output side, goes to Hpot and SENSE B, on the divider side, to CH2, so the loop gain is A/B. The supply's DC voltage reaches neither input, and both come by BNC cable, without a probe. For gain and phase, V-sense is AC-coupled (time constant 22 s), while CH2 is DC-coupled with 1 MΩ and about 15 pF and has a range of ±2.4 V. A circuit whose output sits above that needs a 10:1 probe (±24 V) or an external coupling capacitor on CH2. The probe also divides the signal by ten, so the noise of B rises tenfold. The tab's noise model includes this, and a higher level or the Precise speed makes up for it.

The two inputs differ in coupling, cable and probe. A thru calibration, both inputs on the same point, measures that difference and removes it. In the tab's model an uncalibrated 10:1 probe reads 0.4 dB high and lags by 1.5° per 100 kHz. On the demo 10 kHz low-pass filter the pass-band gain then reads +0.40 dB instead of 0.00 dB, and at 1 MHz the phase is 15° off. The phase error grows with frequency, so it matters most for wide-band circuits. With OPT-INJ both sense outputs come by cable and differ much less: without calibration the demo buck's phase margin reads 60.9° instead of 60.8°.

Each point takes its cycles plus two settling periods, and at least 4 ms. From 10 Hz to 1 MHz with 20 points per decade, a sine sweep takes 5.7 s at Fast (4 cycles), 16.7 s at Normal (16) and 61 s at Precise (64). A multisine covers everything above 2 kHz in 0.1 s and brings the sweep down to 5.6 s, with about 1.4 times the noise. Low frequencies dominate: the same sweep from 0.1 Hz takes 28 minutes.

ItemVK-ZFA10MWhat it means
Frequencygain and phase 0.1 Hz to 10 MHz; loop gain 10 Hz to 10 MHz with OPT-INJAbove 1 MHz the drive is a square wave of fixed level, about ±0.8 V, one frequency at a time. The correlation takes only its fundamental, so the injection level cannot be set there: with OPT-INJ about 49 mV.
DriveHcur, 10 mV to 1 V peak, 100 Ω sourceCancels in the ratio. With OPT-INJ it drives the transformer, for at most 59 mV of injection.
A inputV-sense (Hpot/Lpot), differential, AC-coupled (22 s)For loop gain, SENSE A (output side). The supply's DC voltage is blocked.
B inputCH2, DC-coupled, 1 MΩ, about 15 pF, ±2.4 V; 53 MHz from 50 ΩFor loop gain, SENSE B (divider side) by cable. For gain and phase above 2.4 V, a 10:1 probe, at ten times the noise.
InjectionOPT-INJ: 1:1 transformer and 5 Ω resistor, 10 Hz to 10 MHz, at most 59 mV; sense outputs AC-coupled, blocking up to 400 V DCInsert between the output and the feedback divider. The transformer's response cancels in T = A/B. Below 20 Hz the tab keeps the injection under 3 mV per hertz for the core.
Calibrationthru: A and B on the same pointRemoves the probe, cable and coupling difference. Repeat when the probe changes.

OPT-INJ and the front end are still being built. All data in this article and in the tab are simulated.

9. Using the VZSol FRA tab

The FRA tab measures gain and phase or loop gain, and has four steps:

  • Measure. Gain / phase or loop gain, start and stop frequency, points per decade, sine or multisine, the drive level, or fixed injection or shaped injection that follows the measured loop gain, speed, the CH2 probe (gain and phase only) and the thru calibration. Bode, Nyquist, Nichols and group-delay views, with noisy points marked, a warning for too much injection near crossover, and notes on the injection limits: at most 59 mV, less below 20 Hz, fixed above 1 MHz.
  • Analyse. For a loop: crossover, phase, gain, modulus and delay margins, the rules of thumb, a verdict in plain words and the predicted step response with overshoot and settling time. For a filter or amplifier: the type, pass-band or peak gain, −3 dB points, bandwidth, peaking, roll-off, group delay and a second-order fit with f0, Q and the alignment.
  • Tune loop. A gain change and an extra zero or pole applied to the measured loop, with the new margins and step response, and a suggested gain for a target phase margin that keeps the rules of thumb.
  • Compare. Up to six stored traces overlaid, including predictions, with the difference in gain and phase to a reference trace.

The data table, an analysis report and all stored traces can be saved.

Open the FRA tab

References

  1. H. Nyquist, “Regeneration theory”, Bell Syst. Tech. J. 11, 126–147 (1932). doi:10.1002/j.1538-7305.1932.tb02344.x
  2. H. W. Bode, Network Analysis and Feedback Amplifier Design (D. Van Nostrand, New York, 1945).
  3. R. D. Middlebrook, “Measurement of loop gain in feedback systems”, Int. J. Electron. 38, 485–512 (1975). doi:10.1080/00207217508920421
  4. R. W. Erickson, D. Maksimović, Fundamentals of Power Electronics, 3rd ed. (Springer, Cham, 2020). doi:10.1007/978-3-030-43881-4
  5. R. B. Ridley, “A new, continuous-time model for current-mode control”, IEEE Trans. Power Electron. 6, 271–280 (1991). doi:10.1109/63.76813
  6. G. A. Rincón-Mora, P. E. Allen, “Optimized frequency-shaping circuit topologies for LDOs”, IEEE Trans. Circuits Syst. II 45, 703–708 (1998). doi:10.1109/82.686689
  7. S. Skogestad, I. Postlethwaite, Multivariable Feedback Control: Analysis and Design, 2nd ed. (Wiley, Chichester, 2005).
  8. R. P. Sallen, E. L. Key, “A practical method of designing RC active filters”, IRE Trans. Circuit Theory 2, 74–85 (1955). doi:10.1109/TCT.1955.6500159
  9. S. Butterworth, “On the theory of filter amplifiers”, Experimental Wireless and the Wireless Engineer 7, 536–541 (1930).
  10. W. E. Thomson, “Delay networks having maximally flat frequency characteristics”, Proc. IEE Part III 96, 487–490 (1949). doi:10.1049/pi-3.1949.0101
  11. M. R. Schroeder, “Synthesis of low-peak-factor signals and binary sequences with low autocorrelation”, IEEE Trans. Inf. Theory 16, 85–89 (1970). doi:10.1109/TIT.1970.1054411
  12. R. Pintelon, J. Schoukens, System Identification: A Frequency Domain Approach, 2nd ed. (Wiley-IEEE Press, Hoboken, 2012). doi:10.1002/9781118287422

This article is part of the VZSol technical article series. Figures marked “simulated” come from the model of the FRA tab and figures marked “calculated” from its equations; they show the behaviour described in the cited literature and are not measurements. © 2026 SPD Laboratory, Inc.