Skip to content

Control basics

  • Model a pulse-width modulator (PWM) and compute its small-signal gain.
  • Compute the loop gain of a voltage-mode feedback loop at a given frequency.
  • Quantify how feedback suppresses disturbances, and recognise where it stops helping.

A voltage-mode controller compares a control voltage VctrlV_\mathrm{ctrl} with a sawtooth ramp of peak amplitude VMV_M. The switch is on while the ramp is below the control voltage, so the duty ratio is proportional to the control voltage:

D=VctrlVMD = \frac{V_\mathrm{ctrl}}{V_M}
DD
duty ratio
VMV_M
PWM ramp amplitude
VctrlV_\mathrm{ctrl}
PWM control voltage
Duty ratio set by a PWM comparator✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • trailing-edge PWM with a ramp from 0 to V_M
Notes
so the small-signal modulator gain is 1/VM1/V_M
Source
Erickson & Maksimović 2020, Ch. 7 (AC Equivalent Circuit Modeling)
Derivation
step-by-step sympy derivation
Equation id
pwm.d · equations.yaml entry

The modulator’s small-signal gain, from control voltage to duty ratio, is therefore 1/VM1/V_M [Erickson & Maksimović 2020, Ch. 7].

In a voltage-mode loop the output voltage is measured by a sensor of gain HH (often a resistive divider) and compared with a reference. The difference is amplified by the compensator GcG_c and turned into a duty ratio by the modulator, and the converter’s control-to-output transfer function GvdG_{vd} closes the loop. The loop gain is the product of the gains around the loop [Erickson & Maksimović 2020, Ch. 9]:

T=GcGvdHVMT = \frac{G_c G_{vd} H}{V_M}
TT
loop gain
GcG_c
compensator gain
GvdG_{vd}
control-to-output gain
HH
sensor (divider) gain
VMV_M
PWM ramp amplitude
Loop gain of a voltage-mode feedback loop✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • small-signal (linearised) model around a CCM operating point
Notes
magnitudes at one frequency; the phases of the factors add
Source
Erickson & Maksimović 2020, Ch. 9 (Controller Design)
Derivation
step-by-step sympy derivation
Equation id
loop.T · equations.yaml entry

At each frequency the magnitudes multiply and the phases add. For the buck, GvdG_{vd} is the transfer function of the small-signal page; for the boost and buck-boost it includes the right-half-plane zero.

A disturbance that enters the loop, from the input voltage or from the load, reaches the output divided by 1+T1 + T [Erickson & Maksimović 2020, Ch. 9]:

S=11+TS = \frac{1}{1 + T}
SS
share of a disturbance that remains
TT
loop gain
Disturbance suppression by feedback✓ verified by 7 tests
Assumptions, convention and source
Assumptions
  • small-signal (linearised) model around a CCM operating point
  • loop gain treated as a real magnitude (valid well below crossover)
Notes
at frequencies where T≫1T \gg 1 a disturbance is divided by roughly TT
Source
Erickson & Maksimović 2020, Ch. 9 (Controller Design)
Derivation
step-by-step sympy derivation
Equation id
loop.suppression · equations.yaml entry

Where the loop gain is large (at low frequencies), disturbances are suppressed by roughly the loop gain, and the output follows the reference divided by HH: it depends on the sensor and the reference, not on the converter’s gain. Where the loop gain is much smaller than 1 (above the crossover frequency), feedback has no effect. Near the crossover the loop gain is complex; with a small phase margin the magnitude of 1+T1 + T drops below 1, and disturbances there are amplified rather than suppressed [Erickson & Maksimović 2020, Ch. 9].

The voltage-mode buck loop example, evaluated at dc:

Voltage-mode loop example
SymbolValueHow it is obtained
VgV_g input voltage24 Vgiven
VMV_M PWM ramp amplitude2 Vgiven
VctrlV_\mathrm{ctrl} PWM control voltage1 Vgiven
GcG_c compensator gain10given
HH sensor (divider) gain0.2given
DD duty ratio0.5Duty ratio set by a PWM comparator
GvdG_{vd} control-to-output gain24 VBuck control-to-output dc gain, CCM
TT loop gain24Loop gain of a voltage-mode feedback loop
SS share of a disturbance that remains0.04Disturbance suppression by feedback

The modulator turns the control voltage into a duty ratio of 0.5. At dc the loop gain is 24, so a slow disturbance reaches the output scaled by 0.04 relative to its effect without feedback.

▶ Open in the equation explorer: Disturbance suppression by feedback
Preset from the example control-basic

Sweep the loop gain over several decades (logarithmic axis): each tenfold increase of a large loop gain buys another tenfold suppression.

Measure the loop gain of a closed-loop converter by injection. Insert a small resistor in the feedback path, between the output and the sensing divider, and inject a small sinusoidal signal across it through an isolation transformer. The ratio of the signals on the two sides of the resistor, measured with a frequency response analyzer, is the loop gain [Erickson & Maksimović 2020, Ch. 9]. Find the crossover frequency and the phase margin, then compare how the output responds to an input-voltage step with the loop’s suppression at low frequency.

  • The modulator gain depends on the ramp amplitude. A controller whose ramp amplitude scales with the input voltage makes the buck’s loop gain independent of the input voltage, since the buck’s dc gain equals the input voltage (Buck control-to-output dc gain, CCM).
  • Use the complex loop gain away from dc. The real-valued form above is exact only where TT is real. Elsewhere, divide by the magnitude of the complex sum 1+T1 + T; where the loop gain is large, the two agree closely.
  • A saturated modulator opens the loop. Once the control voltage leaves the ramp’s range, the duty ratio is clamped and the loop gain collapses; the equations on this page no longer apply.
  • Book chapter Controller Design (Ch. 9) — R. W. Erickson, D. Maksimović · retrieved 2026-09-23
    Loop gain, crossover frequency, phase margin and the design of PD/PI compensators.
  • Book chapter AC Equivalent Circuit Modeling (Ch. 7) — R. W. Erickson, D. Maksimović · retrieved 2026-09-23
    Averaging, perturbation and linearisation of converter equations, and the small-signal model of the PWM modulator.
  • Course Converter Control — University of Colorado Boulder (Coursera) · retrieved 2026-09-23
    Averaged small-signal models, converter transfer functions and feedback loop design.
  1. A PWM modulator uses a sawtooth of peak amplitude 2 V2\,\mathrm{V}. What duty ratio does a control voltage of 0.6 V0.6\,\mathrm{V} produce?

    1. 0.12
    2. 0.3
    3. 0.6
    4. 3.3
    Answer and explanation

    Correct answer: B The switch is on while the ramp is below the control voltage, so the duty ratio is the control voltage divided by the ramp amplitude.

  2. A voltage-mode loop has Gc=5G_c = 5, Gvd=12 VG_{vd} = 12\,\mathrm{V}, H=0.25H = 0.25 and VM=1.5 VV_M = 1.5\,\mathrm{V} at some frequency. What is the loop-gain magnitude there?

    1. 2.5
    2. 10
    3. 40
    4. 60
    Answer and explanation

    Correct answer: B The magnitudes multiply around the loop, and the modulator contributes 1/VM1/V_M: five times 12 times 0.25, divided by 1.5.

  3. At dc a loop gain of 19 is measured. What fraction of its effect without feedback does a slow input-voltage disturbance still have at the output?

    1. 19
    2. 20
    3. 1/19
    4. 1/20
    Answer and explanation

    Correct answer: D The disturbance is divided by 1+T1 + T, that is by 20; it reaches the output at a twentieth of its effect without feedback.

  4. How much does feedback suppress a disturbance at frequencies well above the crossover frequency?

    1. Almost not at all, because the loop gain is much smaller than 1
    2. By the dc loop gain
    3. By the phase margin
    4. Completely
    Answer and explanation

    Correct answer: A Where the loop gain magnitude is much smaller than 1, 1+T1 + T is close to 1, so the disturbance passes as if there were no feedback.

  5. A loop has a small phase margin. What happens to disturbances near the crossover frequency?

    1. They are suppressed more strongly
    2. They are unaffected
    3. They can be amplified, because the magnitude of 1+T1 + T drops below 1
    4. They are shifted to the switching frequency
    Answer and explanation

    Correct answer: C Near crossover the loop-gain magnitude is about 1, and with a phase close to −180∘-180^\circ the complex sum 1+T1 + T becomes small, so dividing by it amplifies the disturbance.

  6. Why does scaling the PWM ramp amplitude with the input voltage keep the loop gain of a buck constant over the input range?

    1. Because it keeps the duty ratio constant
    2. Because the buck control-to-output gain is proportional to the input voltage, and the ramp amplitude divides it
    3. Because it changes the switching frequency
    4. Because it removes the right-half-plane zero
    Answer and explanation

    Correct answer: B The buck dc gain Gd0G_{d0} equals VgV_g, and the modulator contributes 1/VM1/V_M. If VMV_M is proportional to VgV_g, their product, and with it the loop gain, no longer depends on VgV_g.

The numbers in the examples, presets and exercises on this site are synthetic: round teaching values, not data from any real design.