---
title: Decoupling and hold-up
heading: Capacitors as local energy stores
eyebrow: C2 · Lesson 11 · Decoupling and hold-up
xp: 40
---

::: hook
A processor's current jumps by amps within nanoseconds, far faster than its power supply, a few centimeters of copper away, can respond: the wiring's inductance won't let the current change that quickly. The capacitors scattered around the chip supply the charge in the meantime. On a larger scale, a power supply that keeps running for a few milliseconds after the plug is pulled, or a memory that saves its data when power fails, is living off a capacitor's stored energy. Both designs come down to how much charge, or energy, a capacitor can give up before its voltage falls too far.
:::

::: play
- A capacitor charged to $V_1$ powers a load after its supply disappears. The solid curve is a constant-power load, like a switching converter; the dashed one draws a constant current equal to the starting current.
- The constant-power load drains faster and faster: as the voltage falls, it draws more current to keep its power.
- The readout gives how long the constant-power load runs before the voltage reaches $V_2$.
:::
:::

```sim plot
view: graph
x: t = 0..50 ms
y: V = 0..15 V
slider: C = 100..10000 = 470 µF log
slider: P = 0.5..20 step 0.5 = 5 W
slider: V1 = 5..15 step 0.5 = 12 V
slider: V2 = 1..12 step 0.5 = 9 V
plot: sqrt(abs(V1^2 - 2*P*t/1000/(C*1e-6)))*step(V1^2 - 2*P*t/1000/(C*1e-6)) | label: constant power | samples: 600
plot: (V1 - (P/V1)*t/1000/(C*1e-6))*step(V1 - (P/V1)*t/1000/(C*1e-6)) | label: constant current | dashed | color: ch2 | samples: 600
readout: hold-up to V2, ms = 1000*C*1e-6*(V1^2 - V2^2)/(2*P) | digits: 3
readout: share of stored energy usable, % = 100*(1 - (V2/V1)^2) | digits: 3
```

::: predict
## A 470 µF capacitor at 12 V feeds a 5 W converter that keeps working down to 9 V. About how long does it hold up?

- [ ] About 0.3 ms
- [x] About 3 ms
- [ ] About 30 ms
- [ ] As long as the capacitor has any charge

::: reveal
About 3 ms. The usable energy is $\frac12C(V_1^2 - V_2^2) = \frac12 \times 470\ \text{µF} \times (144 - 81) = 14.8$ mJ, and at 5 W that lasts 2.96 ms. Below 9 V the converter stops, so the energy left in the capacitor, more than half of it, can't be used.
:::
:::

::: nameit
## Supplying fast current

A chip draws an extra current $\Delta I$ for a time $\Delta t$ before anything farther away can respond. A local capacitor supplies the charge $\Delta I\,\Delta t$ and droops by

$$\Delta V = \frac{\Delta I\,\Delta t}{C}$$

so the capacitor needed for a droop budget is $C = \frac{\Delta I\,\Delta t}{\Delta V}$. Power-integrity engineers phrase the same thing as a **target impedance**: the supply network must stay below $Z = \frac{\Delta V}{\Delta I}$ at every frequency the chip's current contains, which takes capacitors of several sizes (lesson 4) placed close to the chip.

## Holding up a load

When the supply disappears, a capacitor feeding a load falls:

- **Constant current** $I$: linearly, $t = \frac{C(V_1 - V_2)}{I}$.
- **Constant power** $P$, as a switching regulator draws: from the energy, $\frac12C(V_1^2 - V_2^2) = Pt$, so

$$t = \frac{C(V_1^2 - V_2^2)}{2P}$$

Only the fraction $1 - (V_2/V_1)^2$ of the stored energy is usable above $V_2$, which is why hold-up capacitors are charged to as high a voltage as practical.

## Inrush

Charging a large capacitor from a supply through resistance $R$ draws a peak current $V/R$ at the first instant and dissipates $\frac12CV^2$ in the resistance, the same as the capacitor stores (lesson 10). Big capacitor banks charge through a resistor or a current limit, then bypass it.
:::

::: example
## A chip pulls an extra 0.5 A for 20 ns before the regulator can respond. How much does a local 1 µF capacitor droop?

::: solution
1. **Droop from the charge drawn.**
   $$\begin{aligned} \Delta V &= \frac{I\,\Delta t}{C} \\ &= \frac{0.5 \times 20 \times 10^{-9}}{10^{-6}}\ \text{V} \\ &= 10\ \text{mV} \end{aligned}$$
2. **In practice.** Its ESL and ESR (lesson 4) add to that, which is why several capacitors share the job.

**Answer:** it droops about 10 mV, plus what its ESL and ESR add.
:::
:::

::: example
## A 1 F supercapacitor at 5 V backs up a 2 W load that works down to 3 V. How long does it last?

::: solution
1. **Hold-up time.**
   $$\begin{aligned} t &= \frac{C(V_1^2 - V_2^2)}{2P} \\ &= \frac{1 \times (25 - 9)}{2 \times 2}\ \text{s} \\ &= 4\ \text{s} \end{aligned}$$
2. **Energy used.** That uses 64% of the stored 12.5 J.

**Answer:** it lasts 4 s, using 64% of its stored 12.5 J.
:::
:::

::: example
## A load steps by 3 A, and the regulator takes 10 µs to respond. How much bulk capacitance keeps the droop under 50 mV, and how small must its ESR be?

::: solution
1. **Capacitance.** Until the regulator responds, the capacitor supplies the step, with $\Delta V = \frac{I\Delta t}{C}$, so
   $$\begin{aligned} C &\ge \frac{3 \times 10 \times 10^{-6}}{0.05}\ \text{F} \\ &= 600\ \mu\text{F} \end{aligned}$$
2. **ESR.** The current also flows through the capacitor's ESR at once, dropping $I \times ESR$, so the ESR must be well under
   $$\frac{0.05\ \text{V}}{3\ \text{A}} = 17\ \text{m}\Omega$$
   really less, since both drops add.
3. **In practice.** Several capacitors in parallel are usually the answer: their capacitances add and their ESRs divide.

**Answer:** at least 600 µF of bulk capacitance, with an ESR well under 17 mΩ.
:::
:::

::: check
given: dI = 0.2 | 1 | 3; dt = 5 | 50; C = 0.1 | 10
answer: dI*dt*1e-9/(C*1e-6)*1000
unit: mV
tolerance: 0.5%

## A {C} µF capacitor supplies an extra {dI} A for {dt} ns. How much does it droop?

::: right
Right. $\frac{\Delta I\Delta t}{C}$ = {answer}.
:::

::: misses
- [any] Not yet. The charge $\Delta I\Delta t$ over $C$.
:::
:::

::: check
given: dI = 0.5 | 2; dt = 10 | 100; dV = 10 | 30
answer: dI*dt*1e-9/(dV/1000)*1e6
unit: µF
tolerance: 0.5%

## A load step of {dI} A must be held for {dt} ns with no more than {dV} mV of droop. What capacitance does that take?

::: right
Right. $\frac{\Delta I\Delta t}{\Delta V}$ = {answer}.
:::

::: misses
- [any] Not yet. Solve $\Delta V = \Delta I\Delta t/C$ for $C$.
:::
:::

::: check
given: dV = 10 | 30 | 50; dI = 1 | 5 | 20
answer: dV/dI
unit: mΩ
tolerance: 0.5%

## A chip's supply may move by {dV} mV when its current changes by {dI} A. What is the target impedance?

::: right
Right. $\Delta V/\Delta I$ = {answer}.
:::

::: misses
- [any] Not yet. Allowed voltage change over current change.
:::
:::

::: check
given: C = 100 | 1000; V1 = 12 | 24; V2 = 8 | 10; P = 1 | 10
answer: C*1e-6*(V1^2 - V2^2)/(2*P)*1000
unit: ms
tolerance: 0.5%

## A {C} µF capacitor at {V1} V feeds a {P} W constant-power load that works down to {V2} V. How long does it hold up?

::: right
Right. $\frac{C(V_1^2 - V_2^2)}{2P}$ = {answer}.
:::

::: misses
- [C*1e-6*(V1 - V2)^2/(2*P)*1000] Subtract the squares, not the square of the difference.
- [C*1e-6*(V1 - V2)/(P/V1)*1000] That treats the load as a constant current; a constant-power load draws more as the voltage falls.
- [any] Not yet. Energy available over power.
:::
:::

::: check
given: V1 = 12 | 48; V2 = 6 | 36
answer: 100*(1 - (V2/V1)^2)
tolerance: 0.5%

## A capacitor discharged from {V1} V to {V2} V gives up what percentage of its stored energy?

::: right
Right. $1 - (V_2/V_1)^2$ = {answer}%.
:::

::: misses
- [100*(1 - V2/V1)] Energy goes as $V^2$.
- [any] Not yet. Compare $\frac12CV^2$ at the two voltages.
:::
:::

::: check
given: V = 12 | 48 | 325; R = 0.1 | 10
answer: V/R
unit: A
tolerance: 0.5%

## A discharged capacitor is connected to {V} V through {R} Ω. What is the peak inrush current?

::: right
Right. At the first instant the capacitor looks like a short: $V/R$ = {answer}.
:::

::: misses
- [any] Not yet. An empty capacitor has no voltage across it.
:::
:::

::: check
kind: parts
given: I = 1 | 3 | 10; t = 2 | 10; v = 30 | 100

## A load steps by {I} A, and the regulator takes {t} µs to respond. The droop must stay under {v} mV.

::: part
answer: I*t/v*1000
unit: µF
tolerance: 0.5%

### How much capacitance does that need, ignoring ESR?

::: misses
- [any] $C = \frac{I\Delta t}{\Delta V}$.
:::
:::

::: part
answer: v/I
unit: mΩ
tolerance: 0.5%

### What's the most ESR the capacitors could have even with infinite capacitance?

::: misses
- [any] $\frac{\Delta V}{I}$.
:::
:::
:::

::: check
kind: derivation
vars: I = 0.1..20, t = 0.000001..0.0001, C = 0.00001..0.01, R = 0.001..0.1

## A step I is supplied for time t by a capacitor C with ESR R.

::: step
answer: I*t/C

### What's the droop from discharge?
:::

::: step
answer: I*R

### What's the immediate drop across the ESR?
:::

::: step
answer: I*t/C + I*R

### What's the total droop, roughly?
:::

::: right
Right. Both terms matter: ESR sets the instant drop, capacitance the slope.
:::
:::

::: explain
## Why does a constant-power load drain a capacitor faster and faster as it discharges?

::: model
A constant-power load, such as a switching regulator, adjusts its current to keep its output power the same. As the capacitor's voltage falls, the same power needs more current, $I = P/V$, and more current pulls the voltage down faster still. A resistive or constant-current load does the opposite or stays steady. Counted in energy, the capacitor gives up energy at a constant rate, so its stored energy, which goes as $V^2$, falls linearly while the voltage drops ever more steeply.
:::
:::

::: practice

::: check
given: C = 10 | 470; V = 5 | 25
answer: 0.5*C*V^2/1000
unit: mJ
tolerance: 0.5%

## How much energy does {C} µF hold at {V} V?

::: misses
- [any] $\frac12CV^2$.
:::
:::

::: check
given: C = 100 | 1000; dV = 1 | 2; I = 0.1 | 1
answer: C*dV/I/1000
unit: ms
tolerance: 0.5%

## A {C} µF capacitor feeds a constant {I} A. How long until it has fallen by {dV} V?

::: misses
- [any] $t = C\Delta V/I$.
:::
:::

::: check
given: C = 1 | 100; V = 5 | 12
answer: 0.5*C*V^2/1000
unit: mJ
tolerance: 0.5%

## A {C} µF capacitor is charged to {V} V through a resistor from a fixed supply. How much energy does the resistor dissipate?

::: misses
- [any] The same as the capacitor ends up storing.
:::
:::
:::
