Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new

A converter spends almost all of its life in steady state, and that is where most design effort goes: ripple, losses, loop gain. But the few milliseconds after you plug it in are where many converters fail. In that time the capacitors are empty, the controller has no supply yet, and the feedback loop has nothing to regulate. A converter that is fine at full load can still blow its fuse, weld its relay, overshoot its output or switch itself off and on again during start-up.

This article walks through the start-up as a numbered timeline, from the plug to "power good". Each step has the reason it exists, the numbers that size it, and a Voltecx simulation that shows what happens with and without it. The examples use a 12 V to 5 V, 2 A synchronous buck built around an LM5145-class controller, a 400 V DC-link precharge, and the PLL of a grid-tied inverter.

The intuition: starting a car, not just driving it

Think of starting a car on a cold morning. You don't turn the key and floor the pedal. The battery first has to crank the engine, the engine needs a moment to run on its own, you wait until the oil pressure light goes out, and only then do you pull away gently. If you skip a step, nothing explodes at once, but you wear out something expensive.

A converter is the same:

  • the input capacitors are like the engine: they need a controlled push to get going (inrush and precharge);
  • the controller must have a healthy supply before it does anything (bias supply and UVLO);
  • the output must be brought up gently (soft start), without disturbing anything that is already there (pre-bias);
  • and the rest of the system waits for a signal that all is well (power good, PLL lock) before it draws power.

The timeline at a glance

  1. Plug in: inrush. The input capacitors charge from the source. Something must limit that current.
  2. Precharge and bypass. On a large DC link, a resistor charges the capacitor, then a relay or contactor shorts the resistor.
  3. Bias supply. The controller and gate drivers get their own low-voltage supply.
  4. UVLO. The controller waits until the input is high enough, with hysteresis, so a sagging input does not make it chatter.
  5. Enable the gate drivers. Switching starts at zero duty.
  6. Soft start. The reference ramps from zero, so the output and the inductor current rise in a controlled way.
  7. Pre-bias check. If the output already holds a voltage, the converter must not pull it down.
  8. Closed-loop takeover. At the end of the ramp the loop regulates against the fixed reference.
  9. Power good. Once the output is inside its window, a flag tells the downstream circuits they may start.
  10. For grid-tied and AC converters: the PLL locks to the grid and the DC link is precharged before the PFC or the inverter switches.

Shutdown runs the same list backwards: power good drops first, the load is told to stop, the switching stops, and the capacitors are discharged.

The first figure shows steps 4 to 9 in one Voltecx run of the 12 V to 5 V buck while its input ramps up from 0 to 12 V in 3 ms.

The 12 V to 5 V LM5145-class buck in Voltecx while its input ramps up: the input v(vin) and output v(out), the EN pin with its 1.2 V threshold, the soft-start capacitor v(ss) with the 0.8 V reference, and PGOOD.

Read it from top to bottom and left to right:

  • The input rises at 4 V/ms. The EN pin sees the input through a 65 kΩ over 10 kΩ divider, so it reaches the controller's 1.2 V threshold when the input is at 1.2×75/10=9.01.2 \times 75/10 = 9.0 V. In the run that happens at 2.25 ms.
  • The small step on EN right after it crosses is the hysteresis current switching on (more on that below).
  • The soft-start pin then charges at 10 μA/12.5 nF=0.810\ \mu\text{A} / 12.5\ \text{nF} = 0.8 V/ms. The error amplifier regulates to the lower of SS and the 0.8 V reference, so the output follows the ramp and arrives 1.06 ms later, without overshoot.
  • PGOOD goes high at 3.25 ms, when the output is at 4.71 V: the feedback pin has passed 94 % of the reference and the 25 µs filter has run.

The controller values (1.2 V EN threshold, 10 µA hysteresis current, 10 µA soft-start current, 0.8 V reference, the 92 % and 94 % power-good thresholds and the 25 µs filter) are the typical values of the TI LM5145 data sheet, SNVSAI4B, section 7.5, which is where the Voltecx model takes them from.

Step 1: plugging in, and the inrush current

At the moment you connect the source, the input capacitor is empty. An empty capacitor behaves like a short circuit, so the only things limiting the current are the resistances in the path: the source, the cable, the connector, the capacitor's ESR. Those add up to tenths of an ohm, sometimes less.

Ipeak=VinRpathI_{peak} = \frac{V_{in}}{R_{path}}

For an off-line supply that is hundreds of amperes; the inrush current and NTC sizing article works through that case and shows how an NTC thermistor limits it. For a DC input with a large link capacitor (a battery feeding a motor inverter, a 400 V bus) the usual answer is a precharge circuit.

A precharge circuit puts a resistor RpreR_{pre} in series with the link capacitor CC during start-up and shorts it with a relay or contactor once the capacitor is nearly charged. The capacitor charges with the time constant

τ=Rpre C\tau = R_{pre}\, C

and reaches 95 % after 3τ3\tau.

A worked example

A 400 V source with 0.1 Ω of wiring charges a 470 µF link through Rpre=47R_{pre} = 47 Ω:

  • Peak current: 400/47.1=8.49400 / 47.1 = 8.49 A, instead of 400/0.15=2.67400 / 0.15 = 2.67 kA if the link were connected through the contact alone (0.1 Ω of wiring plus the contact's 50 mΩ).
  • Time constant: 47×470 μF=22.147 \times 470\,\mu\text{F} = 22.1 ms, so 95 % (380 V) is reached after 66.3 ms.
  • Energy in the resistor: charging a capacitor through a resistor always wastes as much energy as it stores, 12CV2=12×470 μ×4002=37.6\tfrac{1}{2} C V^2 = \tfrac{1}{2} \times 470\,\mu \times 400^2 = 37.6 J, in about 70 ms.
  • Peak power in the resistor: 4002/47=3.4400^2 / 47 = 3.4 kW at the first instant.

The last two lines are why precharge resistors are chosen from their pulse-energy rating, not their continuous power rating. A 5 W resistor can be fine if its data sheet allows 40 J in a single pulse; a 50 W resistor without a pulse rating may not be.

Precharge of a 470 µF link from 400 V through 47 Ω in Voltecx: the link voltage v(bus) with the 380 V threshold, the input current, and the relay's close command and contact. The comparator energises the coil at 66.3 ms; the contact closes 10.7 ms later.

In the run, a comparator energises the relay coil when the link passes 380 V, at 66.3 ms. The relay in this example is assumed to close 10 ms after its coil is energised; take the real operate time from your relay's data sheet. Counting the coil's own L/R rise, the contact closes at 77.0 ms, with the link at 387.7 V. The last 12.3 V then drop across only 0.15 Ω of wiring and contact, and the input current jumps to 82 A for a fraction of a millisecond. That pulse is the one the relay contacts must survive every time. Waiting longer before closing makes it smaller, at the cost of a longer start-up. The simulated resistor energy is 37.5 J, the formula's 37.6 J less the bit left uncharged when the contact closes.

The order matters too: the load (the inverter, the downstream converter) must not start until the bypass has closed. Started earlier, its current flows through the precharge resistor, the link sags and the resistor overheats.

Step 3: the bias supply

The controller, the gate drivers and the sensing amplifiers need a stable low-voltage supply, typically 5 V to 15 V. In a small DC-DC converter this is a linear regulator inside the controller. In an off-line supply it is often a start-up resistor that slowly charges the controller's supply capacitor from the bulk voltage, until an auxiliary winding takes over once the converter switches. In larger systems it is a separate auxiliary converter.

Whatever it is, two rules hold:

  • The gate drivers must hold the switches off until their own supply is valid. A gate driver with half its supply voltage drives a MOSFET into its linear region, where it heats up fast.
  • The bias supply must start before the power stage and stop after it.

That is why gate drivers have their own UVLO, separate from the controller's.

Step 4: UVLO, and why it needs hysteresis

An undervoltage lockout (UVLO) keeps the converter off until the input is high enough to run it properly. Below that the duty cycle would saturate, the input current would be too large, and the output would not regulate.

The catch is that a converter that starts draws current from its source, and every real source has some resistance. When the converter starts, the input voltage drops. If the turn-off threshold is the same as the turn-on threshold, that drop switches the converter off again, the input recovers, the converter starts again, and so on. This is called chattering or motorboating, and it can go on for as long as the input stays near the threshold.

The fix is hysteresis: the converter starts at VonV_{on} and only stops below a lower VoffV_{off}. On the LM5145 the EN pin does both jobs. A divider R1R_1 (top) and R2R_2 (bottom) sets the start, and a 10 µA current that flows out of EN once the controller is on sets the hysteresis:

Von=1.2 V×(1+R1R2),Voff=Von−Ihys R1V_{on} = 1.2\ \text{V} \times \left(1 + \frac{R_1}{R_2}\right), \qquad V_{off} = V_{on} - I_{hys}\, R_1

The hysteresis is set by R1R_1 alone, so a larger divider gives a wider window for the same start voltage:

Divider VonV_{on} Hysteresis IhysR1I_{hys} R_1 VoffV_{off}
65 kΩ / 10 kΩ 9.0 V 0.65 V 8.35 V
250 kΩ / 38.3 kΩ 9.03 V 2.5 V 6.53 V

The run

The source rises slowly, at 0.5 V/ms, behind 1.5 Ω (a long cable or a weak supply). The converter delivers 10 W into its load once it is up.

The same buck fed from a slowly rising source behind 1.5 Ω, with two EN dividers that both start at 9 V. With 0.65 V of hysteresis the input dips below 8.35 V at each start and the converter restarts four times; with 2.5 V it starts once.

  • 0.65 V of hysteresis: each start pulls the input below 8.35 V, the controller stops, its soft-start capacitor is discharged, the input recovers above 9 V and it starts again. The run counts four soft starts; the output only stays up at 5.74 ms, when the source has risen far enough to carry the load.
  • 2.5 V of hysteresis: one start. The input sags to 7.2 V while the output comes up, still above the 6.53 V turn-off point, and the output is regulating at 3.16 ms.

How much hysteresis you need follows from the source: at least the drop IinRsourceI_{in} R_{source} at full load and the lowest start voltage, plus margin for the input ripple.

Step 5: enabling the gate drivers

Once UVLO releases, the controller starts switching, but at zero duty and with the soft-start capacitor empty. Two details matter here:

  • Bootstrap capacitors. A high-side driver fed from a bootstrap capacitor needs the low-side switch to turn on first to charge it. Many controllers do this with a few low-side pulses before the first high-side pulse.
  • Digital controllers. In firmware, the PWM outputs must be configured as off (or high-impedance with pull-downs on the gates) before the timers start, and the duty must start at zero, not at the last value the code computed.

Step 6: soft start

Why not just let the loop run against the full reference from the start? Because the output capacitor is empty and the loop asks for full output voltage at once. The error amplifier saturates, the duty goes to its maximum, and the inductor current rises until something stops it.

During a linear soft start of length tsst_{ss}, the output capacitor needs a charging current on top of the load:

Icharge=CoutVouttssI_{charge} = C_{out} \frac{V_{out}}{t_{ss}}

For the 100 µF output at 5 V and tss=1t_{ss} = 1 ms, that is 0.5 A. The run measures 0.49 A halfway up. The inductor peaks at 2.71 A (the load, the 0.5 A charging current and half the ripple) and the input current at 1.01 A.

The buck started with a 1 ms soft start and with a 10 µs one (in effect none): the output, the inductor current and the input current averaged over each switching period.

With the soft start shortened to 10 µs, in effect none:

  • The valley current limit (3 A, 1.5 times the load current) holds the inductor current, which still peaks at 5.35 A because the limit only acts at the valley of each cycle.
  • While the limit holds the current, the integrator of the compensator winds up. When the output reaches 5 V the loop is far from where it should be, and the output overshoots to 6.43 V, 29 % above its setpoint.
  • The input current averaged over each period reaches 3.06 A, three times the 1 ms case. That is the "input current hump" a weak source or an input filter sees.

With the current limit raised to 20 A the overshoot is smaller (5.34 V), but the inductor current reaches 16.4 A and the input current 13.0 A: enough to saturate an inductor sized for this converter's 3 A limit and to trip the upstream supply.

The lesson: a current limit is not a soft start. The current limit protects the parts; the soft start is what keeps the output and the input well-behaved. A good soft start time is long enough that CoutVout/tssC_{out} V_{out} / t_{ss} is a fraction of the load current, and short enough to meet the start-up time in your specification. If the load draws its full current from the start, add it: the inductor carries Iload+IchargeI_{load} + I_{charge}.

Step 7: pre-biased outputs

Sometimes the output is not at zero when the converter starts. A rail may be held up through the ESD diodes of a chip powered from another rail, or the converter may restart after a short interruption before its output capacitor has discharged. This is called a pre-biased output.

A synchronous buck has a problem with that. At the start of the soft start the reference is near zero, so the loop asks for a duty near zero, and the low-side switch is on for almost the whole period. It connects the output to ground through the inductor, and current flows backwards, out of the output capacitor.

A start into an output held at 3 V, at a light 0.1 A load: synchronous from the start (blue), and with the low-side switch held off so only its body diode conducts (red).

In the run, the output starts at 3 V at a light 0.1 A load:

  • Synchronous from the first cycle: the inductor current goes to −7.4 A and the output collapses to 0.32 V before the soft start brings it back. A processor on that rail would see a brown-out; a battery or a supercapacitor on the output would be discharged into the converter; and the reverse current can trip the converter's own limit.
  • Low-side switch held off: only its body diode can conduct, so no current can flow backwards. The output sags only through its own load, to 2.66 V, until the soft-start ramp reaches it at about 0.6 ms, and then rises smoothly.

Controllers with pre-bias support do the second: they keep the low-side switch off (or run it in diode emulation) until the soft-start reference has caught up with the output. The LM5145 is one of them; the Voltecx model leaves this feature out, which is why the first run shows what a controller without it would do. In the second run the low-side MOSFET is disabled and a diode stands in for its body diode for the whole run.

Step 8: closed-loop takeover

At the end of the ramp, the soft-start voltage keeps rising past the reference, and the error amplifier now regulates to the fixed reference. If the ramp was slow compared with the loop's bandwidth, the loop was regulating all along, and the handover is invisible: in the timeline figure, the output simply stops at 5 V.

If the loop is slow or the compensator was saturated during the ramp, the takeover shows up as an overshoot or a small dip at the end of the ramp. A digital controller should start its integrator from the value that matches the present output, or hold it until the ramp ends, rather than from zero or from a stale value.

Step 9: power good

Power good (PGOOD, PG) is an open-drain output that is released when the output is inside its window. On the LM5145 it is released when the feedback pin rises past 94 % of the reference, and pulled low again below 92 % or above 108 %, each after a 25 µs filter. Downstream circuits use it:

  • as the enable of the next regulator (the rail sequencing article builds a chain of them);
  • as the reset of a processor, which must not run code on a rail that is still rising;
  • as a "ready" input of a system controller, which only then enables the load.

The filter time matters: without it, a load step that dips the output for a few microseconds would reset the whole system.

Step 10: grid-tied and AC converters

A converter connected to the grid has two extra steps before its power stage may switch:

  1. DC-link precharge. The DC link of a PFC stage or an inverter is precharged as in step 2, through a resistor or an NTC, and the bypass closes before the stage starts. In a boost PFC, the link charges to the peak of the line through the boost diode even before the PFC switches; the PFC then boosts it to its regulated voltage under soft start.
  2. PLL lock. An inverter that feeds current into the grid must know the grid's phase. A phase-locked loop (PLL) measures it, and the inverter's gates stay off until the PLL reports lock. A grid-forming or PFC stage that synchronises to the line works the same way.

The PLL of the gridTieInverter example in Voltecx: its frequency estimate settling at 50 Hz, and the locked flag rising after 107 ms.

In the gridTieInverter example the PLL starts at 50 Hz, swings to 54.7 Hz while it pulls in the phase, and reports lock (a phase error below 0.02 rad) after 107 ms, about five and a half line cycles. The example lets the inverter run from the first instant; in a product, the gate drivers would be enabled only after that flag.

Shutdown: the same list, backwards

Shutting down is start-up in reverse, and it deserves the same care:

  1. Power good goes low as soon as a fault or a turn-off command is seen, so the loads stop first.
  2. The converter stops switching, or ramps its reference down if the output must not drop abruptly.
  3. Relays open with no current flowing (opening a contactor under DC load draws an arc).
  4. The capacitors are discharged, by a bleeder resistor or by an active discharge, so that nobody touches a charged 400 V link.

Common mistakes

  • Choosing the precharge resistor by its continuous power. It sees 12CV2\tfrac{1}{2} C V^2 in one pulse at every start, and kilowatts at the first instant. Check its pulse-energy rating, and what happens if the bypass relay never closes and the load starts anyway.
  • Closing the bypass too early. In the example, closing at 95 % still drove an 82 A pulse through the contacts. The pulse is the remaining voltage over milliohms.
  • UVLO without enough hysteresis. The hysteresis must exceed the input drop when the converter starts at full load, or the converter chatters on a weak source.
  • Relying on the current limit as a soft start. The run above overshoots by 29 % with the current limit active, and draws three times the input current.
  • Forgetting the load in the soft-start current. The inductor carries the load current plus CV/tssC V / t_{ss}; at full load that sum, not the charging current alone, must stay below the current limit.
  • Ignoring pre-bias. A synchronous converter without pre-bias support discharges whatever sits on its output.
  • Starting a digital loop from a stale integrator. Reset the integrator and start the reference ramp from the measured output, or from zero with the output known to be empty.
  • Enabling the inverter before the PLL locks. The first current pulses go into the grid at the wrong phase.

For the lab side of start-up (how to power a new board for the first time, current-limited supplies, what to probe first), see the companion article on bench-testing tips.

The converter analysis follows R. W. Erickson and D. Maksimović, Fundamentals of Power Electronics, 3rd ed., and Mohan, Undeland and Robbins, Power Electronics. Controller thresholds and currents are from the TI LM5145 data sheet (SNVSAI4B), section 7.5.

Try it in Voltecx

  • The buck in this article is the LM5145-class synchronous buck application circuit: circuit.applicationCircuit with ic = syncBuckController and topology = syncBuck. Its tSs sets the soft-start capacitor, vinOn the EN divider, and iLimit the valley current limit. Change Ren1 and Ren2 to try the hysteresis table above, and set the source's pwl to ramp the input.
  • Check a start-up against a spec. spec.verify with startup: {maxTime, maxOvershootPct} measures the start-up time into the output band and the overshoot. Simulation › Test Bench lists a start-up case, an inrush case (the peak input current into a discharged input) and an under-voltage start case from your spec, and draws the limits on the scope.
  • Size the protection. design.protection (Design › Design Steps › Protection) takes startup.maxTime as the soft-start time and adds the charging current CVout/tssC V_{out} / t_{ss} to the current trip; it also sets the UVLO start and over-voltage trip thresholds from the input and output range, allowing for the tolerance of the divider resistors. design.inputProtection (Design › Design Steps › Input Protection) sizes the inrush limiter, the fuse and the hold-up capacitance.
  • Automatic design. For a flyback, design.auto simulates the power-on at the highest input and full load, with the soft start sized from startup.maxTime, and rates every switch and diode over that start-up as well as over the steady state.
  • Precharge and PLL. The relay is a part of its own, with operate and release times, and the pll control block has a locked output you can wire to the enable of your gate logic.

See also the design tools and analyses pages.