Before the steady state

The energy two capacitors cannot share

Join a charged capacitor to an empty one and the charge is shared exactly while the energy is not: the pair loses C₂/(C₁ + C₂) of what the first one held, through 1 Ω or 10 kΩ, with an inductor ringing for hundreds of cycles or without one. An inductor and a diode turn the sharing into an exchange — equal capacitors swap 96.9% of the energy at a loop Q of 50. And a charge pump is the sharing loss billed once a cycle: a doubler's efficiency is its output voltage over twice its input, to four parts in ten million, at every load and every clock.

Assumes: The half that never arrives · A resistor made of a clock

The half that never arrives and the half a switch keeps measured the cost of charging a capacitor from a supply, and found it to be the mismatch between a source held at V and a capacitor that is not, dissipated somewhere along whatever path joins them. The swing a diode keeps found the one exception that path can make: an inductor and a diode, which stop the current at the top of its swing and leave the capacitor holding what a resistor would have burned.

All three had a supply in them. Take it away and the oldest puzzle in the subject is left: a charged capacitor, an empty one, and a wire. Charge is conserved, so the final voltage is fixed by arithmetic. Energy is not, and half of it goes missing even when the wire is given no resistance at all. This essay measures where it goes, what an inductor and a diode do to it, and why every switched-capacitor converter is that same missing energy charged for once a cycle.

A 1 µF capacitor at 5 V joined through 100 Ω to an empty one of the same sizecomputed by solving, not by drawing, from the netlist's poles. Charge is conserved and both settle at 2.500 V. Energy is not: the pair holds 50.0% of the 12.50 µJ the first one started with, and the resistor has taken 50.00% — C2/(C1 + C2), with no resistance in it.0240100200300time, µsvoltage, Vboth at 2.50 Vthe charged onethe empty onesolved, then checked — charge kept, energy not50.0% burned
Fig. 1 A 1 µF capacitor charged to 5 V joined through 100 Ω to an empty one. Charge is conserved and both settle at the shared voltage C1V/(C1+C2)C_1V/(C_1 + C_2). Energy is not: with equal capacitors the pair keeps half of the 12.50 µJ the first one held, and the resistor has taken the other half — C2/(C1+C2)C_2/(C_1 + C_2), with no resistance in it. The slider changes the size of the empty capacitor.

The arithmetic, and the two ways the network is solved

Charge first, because it is the one thing that cannot be argued with. A capacitor C1C_1 at voltage VV holds a charge C1VC_1V. Connect it to an empty C2C_2 and wait. The charge has nowhere else to go, so it divides between them until both sit at one voltage, and that voltage is

Vf=C1VC1+C2.V_f = \frac{C_1 V}{C_1 + C_2}.

The energy before is 12C1V2\tfrac12C_1V^2. The energy after is 12(C1+C2)Vf2\tfrac12(C_1+C_2)V_f^2, which works out to 12C1V2⋅C1/(C1+C2)\tfrac12C_1V^2 \cdot C_1/(C_1+C_2). The difference, the energy that has gone somewhere, is

Elost=12C1V2⋅C2C1+C2=12 C1C2C1+C2 V2,E_{\text{lost}} = \tfrac12 C_1 V^2 \cdot \frac{C_2}{C_1 + C_2} = \tfrac12\,\frac{C_1C_2}{C_1+C_2}\,V^2,

which is the energy of the two capacitors in series charged to the initial difference between them. Equal capacitors lose exactly half.

The measurement does not take that on trust. The circuit is built as a netlist — the charged capacitor represented by its standard equivalent, an empty capacitor in series with a step source of five volts — and solved from its own poles, exactly as the earlier charging measurements were. The current is the difference of the two solved node voltages across the resistance, divided by the resistance, and the heat is ∫i2R dt\int i^2R\,dt integrated over sixteen thousand samples. Nothing in that route knows the formula; it has to arrive at it.

It does. At equal capacitors the two voltages meet at 2.500 volts and the resistance has taken 50.00 per cent of the initial energy.

The resistance is not in the answer

The famous version of the puzzle asks what happens as the resistance goes to zero, since a perfect wire cannot dissipate anything and yet the arithmetic insists that half the energy leaves. The measurement can at least say what happens on the way there.

The energy two capacitors lose sharing a charge, against the resistance, for three size ratios. computed by solving, not by drawing. Dots: a resistance alone, from 1 Ω to 10 kΩ. Rings: 100 µH in series as well, from 0.3 Ω, where the pair rings for hundreds of cycles, to 30 Ω. Every loss is C2/(C1 + C2) — 0.200, 0.500, 0.800 — to within 3 × 10⁻⁴. The resistance decides how long the loss takes and the inductance how many swings; neither decides how large it is.
Fig. 2 The energy two capacitors lose sharing a charge, against the resistance between them, for empty capacitors a quarter of, equal to and four times the charged one. Dots: a resistance alone, from 1 Ω to 10 kΩ. Larger dots: 100 µH in series as well, from 0.3 Ω, where the pair rings for hundreds of cycles, to 30 Ω. Every loss is C2/(C1+C2)C_2/(C_1 + C_2) — 0.200, 0.500 and 0.800 — to within 3 × 10⁻⁴.

Across four decades of resistance the loss does not move. A tenfold smaller resistance makes the sharing ten times faster and the peak current ten times larger, so the instantaneous power is ten times larger for a tenth of the time, and the product is unchanged. This is the cancellation the supply-charging measurements found, with the supply removed: it was never a property of the source, only of a passive path joining two unequal voltages.

Putting an inductance in the path does not help either, and that is the result that dissolves the paradox rather than merely restating it. With 100 microhenries in series and 0.3 ohms of resistance the pair is an LC circuit with a quality factor near a hundred: the charge sloshes back and forth between the two capacitors for hundreds of cycles, each swing a little smaller than the last. When it finally settles, the resistance has taken 0.200, 0.500 or 0.800 of the energy, exactly as it did with no inductor. At zero resistance it would never settle at all. The energy that “goes missing” would oscillate between the capacitors and the inductor’s field for ever, and the textbook’s final state — both capacitors at VfV_f — would never be reached.

So the puzzle’s premise is the problem. A circuit with no resistance and no inductance is not a circuit with zero loss; it is a circuit whose equations have no solution, because a finite charge would have to move in zero time. Give the path any physical property at all — resistance, inductance, or the radiation a real loop of wire has — and the energy has somewhere to go. Make the path a pure inductance and it goes nowhere, but then the capacitors never come to rest at the shared voltage. Either way, the final state the arithmetic describes is reached only by dissipating the difference.

The size ratio is the whole of it

Since the resistance and the inductance have both left the answer, the only parameter remaining is the ratio of the two capacitances, and it decides everything.

Charge sharing: the share of the energy lost and the share kept, against the size of the empty capacitor. computed by solving, not by drawing, at 33 ratios over four decades, through 100 Ω. The lost share is C2/(C1 + C2) and the kept share C1/(C1 + C2): equal capacitors lose half, a capacitor ten times larger loses 90.9%, a capacitor a hundredth the size loses 0.99%. Topping up a big reservoir from a small one is cheap; filling an empty big one from a small charged one is nearly all loss.
Fig. 3 The share of the charged capacitor’s energy lost and the share kept, against the size of the empty capacitor, solved at 33 ratios over four decades through 100 Ω. The lost share is C2/(C1+C2)C_2/(C_1 + C_2); the kept share is C1/(C1+C2)C_1/(C_1 + C_2). Equal capacitors lose half; a capacitor ten times larger loses 90.9 per cent; a capacitor a hundredth the size loses 0.99 per cent.

The two curves cross at equal capacitances and swap their roles on either side. Emptying a small charged capacitor into a large empty one throws away almost everything: a capacitor ten times the size of the charged one ends up holding 9.1 per cent of the energy, at a tenth of the voltage. Emptying a large charged one into a small empty one costs almost nothing, because the voltage barely falls.

That asymmetry is the practical form of the result, and it is better stated in terms of voltages than sizes. The loss is half the series capacitance times the square of the initial voltage difference. So what is cheap is sharing between two capacitors whose voltages are already close, and what is expensive is sharing across a large difference — whatever the sizes. Topping up a reservoir that sits a tenth of a volt below a flying capacitor costs very little, and that observation, read the right way round, is the whole design rule for a charge pump.

It also explains a family of effects elsewhere in this subject that look unrelated. The noise a clock does not make and the sampled-data measurements around it lean on charge redistribution between a sampling capacitor and its load; the charge injected by a switch, which the capacitance a third switch moves measures, is charge shared between a channel and a hold capacitor. In each case the voltage that results is fixed by conservation of charge, and the energy is something the circuit pays without being asked.

An inductor and a diode make it an exchange

The inductor that rang for hundreds of cycles did not reduce the loss, because it was allowed to ring. The swing a diode keeps showed what happens when it is not: a diode in series stops the current at its first zero, and the energy that was in flight is kept rather than returned.

The energy moved into the second capacitor: through a resistor, and through 100 µH and a diode at a loop Q of 50. computed by solving, not by drawing, the inductor's runs cut at the current's first zero. Through a resistor the second capacitor ends with C1C2/(C1 + C2)² of the energy — a quarter at best. Through the inductor and a diode it ends with up to 4C1C2/(C1 + C2)² at no resistance (upper line), and measured at Q = 50: 62.0% at C2/C1 = 0.25, 96.9% at C2/C1 = 1, 62.0% at C2/C1 = 4. Equal capacitors swap: the first falls to 0.08 V and the second rises to 4.92.
Fig. 4 The energy that ends up in the second capacitor, as a fraction of the first one’s. Lower line: through a resistor, C1C2/(C1+C2)2C_1C_2/(C_1 + C_2)^2 — a quarter at best. Upper line: through an inductor and a diode with no resistance, 4C1C2/(C1+C2)24C_1C_2/(C_1 + C_2)^2. Dots: measured through 100 µH and a diode at a loop Q of 50 for every ratio, cut at the first current zero — 62.0% at C2/C1C_2/C_1 = 0.25, 96.9% when equal, 62.0% at 4.

In the two-capacitor circuit the first half-swing of current carries the charge from the full capacitor to the empty one and then past the shared voltage, because the inductor’s stored energy keeps pushing after the voltages have met. At the top of that swing the current is zero, and with a diode in series it stays zero. With no resistance the second capacitor ends at 2C1V/(C1+C2)2C_1V/(C_1+C_2) and the first at V(C1−C2)/(C1+C2)V(C_1-C_2)/(C_1+C_2), and no energy has been lost at all — it has only moved.

Equal capacitors are the striking case. The first ends at zero and the second at the full five volts: the charge has been handed over entirely, not shared. At a loop Q of fifty the measured exchange leaves the first capacitor at 0.08 volts and the second at 4.92, with 96.9 per cent of the energy moved. A resistor alone could never move more than a quarter of the energy into the second capacitor, and only at equal sizes; the inductor and diode move all of it at equal sizes and still most of it at a ratio of four, where the transfer falls to 64 per cent in the ideal case and 62.0 per cent at Q = 50.

This is the principle of the bucket-brigade and of every resonant switched-capacitor converter: the charge is moved between capacitors through an inductance timed by the circuit’s own resonance, and the switch opens at the current’s zero. What it buys is the difference between a quarter and almost all.

A charge pump is the sharing loss, billed every cycle

The most common circuit made of shared charge has no inductor at all. A charge-pump doubler charges a flying capacitor to the supply voltage in one phase, then stacks it on top of the supply and connects it to an output reservoir in the next. Every phase is a sharing event between two capacitors at unequal voltages, and the loss measured above is paid on every one of them.

A charge-pump doubler from 5 V with a 1 µF flying capacitor: efficiency against load, at 10 kHz and 100 kHz. computed by solving, not by drawing — two switch phases marched, every joule counted where it goes. The dots are output energy over supply energy; the lines are the output voltage over twice the input, which is a different number computed from different samples. They agree to 4.1e-7. At 10 kHz, 30 mA gives 70.0%; at 100 kHz the same load gives 97.0%. The pump is a linear regulator: what it drops it burns.
Fig. 5 A charge-pump doubler from 5 V with a 1 µF flying capacitor, 0.1 Ω switches and a 100 µF output, marched through both switch phases to its periodic steady state. Dots: output energy over supply energy. Lines: the output voltage over twice the input — a different number, from different samples. They agree to 4.1 × 10⁻⁷. At 10 kHz a 30 mA load gives 70.0 per cent; at 100 kHz the same load gives 97.0.

The march here is not the residue route: the switches change the circuit twice a cycle, so the two phases are marched as two coupled equations with the trapezoidal rule, every joule counted as it leaves the supply, enters the load or heats a switch. The pump is run until a whole cycle moves its output by less than a part in a hundred billion, and the energy account is then taken over forty cycles.

The result is an identity that holds to four parts in ten million at every load and both clocks: the efficiency is the output voltage divided by twice the input. The reason is charge conservation, once more. For every unit of charge the load takes, the supply delivers exactly two — one to fill the flying capacitor and one more while that capacitor is stacked on top of it — and it delivers both at the full input voltage. So the input energy is 2Vinq2V_{\text{in}}q and the output energy is VoutqV_{\text{out}}q, and their ratio is Vout/2VinV_{\text{out}}/2V_{\text{in}} however the losses are distributed.

That makes a charge pump, in the one respect that matters for efficiency, a linear regulator: whatever voltage it drops below its ideal output, it burns. A doubler delivering 7 volts from a 5-volt supply is 70 per cent efficient, exactly as a series-pass regulator from a 10-volt rail would be. The only question left is how much it drops, and that is where the clock comes in.

The clock decides the drop, until the switches do

At a slow clock each phase runs to completion, so each phase is a full charge-sharing event, and the energy it loses is half the series capacitance times the voltage difference squared. Per cycle the flying capacitor carries a charge q=I/fq = I/f, its voltage moves by q/Cq/C, and the loss works out to make the pump look like a resistance of 1/(fC)1/(fC) in series with an ideal doubler.

A doubler's output resistance against its switching frequency, with 0.1 Ω switches and a 1 µF flying capacitor. computed by solving, not by drawing, the drop from 2Vin at a 1 mA load. At a slow clock it is 1/(f·C) — 1000.0 Ω at 1 kHz against 1000.0 — which is charge sharing billed per cycle. Past the corner it flattens at 0.80 Ω, the switches' own resistance, and no clock can take it lower. The efficiency is (2Vin − I·R)/2Vin at every point, so the corner is where a faster clock stops buying efficiency.
Fig. 6 The doubler’s output resistance against its switching frequency, from the drop below twice the input at a 1 mA load. At a slow clock it is 1/(f·C) — 1000.0 Ω at 1 kHz against 1000.0 — which is charge sharing billed per cycle. Past the corner, near 1.25 MHz, it flattens at 0.80 Ω, the switches’ own resistance, and no clock can take it lower.

The measurement follows 1/(fC)1/(fC) to four figures at a kilohertz, which is the same law a resistor made of a clock uses to make a resistance out of a capacitor and two switches. It is not a coincidence: a switched capacitor between two voltages is a sharing event per cycle, and its average current is fCfC times the voltage difference, which is a resistance by definition. The charge pump’s output resistance is the same element, seen from its output.

Raise the clock and the phases stop completing. The flying capacitor’s voltage then moves very little in each phase, the sharing loss falls with it, and what is left is the resistance of the switches the charge has to pass through. In this doubler each phase carries the whole cycle’s charge through two switches, at a current of about 2q/T2q/T, so the heat is 4q2⋅2Rsw/T4q^2 \cdot 2R_{\text{sw}}/T per cycle and the output sees 8Rsw8R_{\text{sw}} — 0.80 ohms for 0.1-ohm switches. The measured plateau is 0.80 ohms. The two limits cross near 1.25 megahertz, and above that a faster clock buys nothing but switching loss of a kind this model does not include.

So the design rule reads straight off the figure. A charge pump’s efficiency is set by its drop, its drop is set by whichever is larger of 1/(fC)1/(fC) and the switches’ resistance, and a designer chooses the clock to sit near the corner — fast enough that sharing is cheap, no faster than the switches justify.

A pump sized from the two laws

The two measured laws are enough to size a pump without any further simulation, and doing it once shows how little freedom there actually is. Suppose a circuit needs 9 volts at 20 milliamps from a 5-volt rail. An ideal doubler gives 10, so the pump may drop one volt, which at 20 milliamps is an output resistance of 50 ohms at most.

The efficiency is fixed before any part is chosen: 9 volts out of an ideal 10 is 90 per cent, by the identity measured above, and no choice of capacitor, switch or clock will change it. A designer who wants better than 90 per cent from this specification does not want a better pump; they want a pump with a different ideal ratio, or an inductor.

The resistance budget then divides between the two terms. With 0.1-ohm switches the plateau is 0.80 ohms, which is negligible against 50, so the whole budget can go to the sharing term: 1/(fC)≤501/(fC) \le 50 ohms, or fC≥0.02fC \ge 0.02. A one-microfarad flying capacitor needs a 20-kilohertz clock; a 100-nanofarad one needs 200 kilohertz. Both sit far below the 1.25-megahertz corner, so both are in the region where the clock buys efficiency directly, and either is a reasonable design — the choice between them is a choice between a larger capacitor and more switching events.

The output reservoir is decided separately, by ripple. During the phase in which the flying capacitor is being recharged the output capacitor carries the load alone, so its voltage falls by about I/(2fCo)I/(2fC_o) each cycle — five millivolts for a 100-microfarad reservoir at 20 kilohertz. That is a sawtooth on a direct voltage of exactly the kind the direct voltage that is a sawtooth measured on a rectifier, with the clock in place of the mains, and a reservoir’s own series resistance adds a step to it in the way two capacitors that are one found. The difference is that a pump’s clock is a free choice, so its ripple is a design parameter rather than a consequence of the mains frequency.

What the model leaves out

Every switch here is a resistance that turns on and off instantly, and that leaves out the cost that dominates a real pump at high frequency: the energy to charge each switch’s own gate electrode and the parasitic capacitance at every switched node, paid once a cycle and so rising in proportion to the clock. That is a charge-from-a-supply loss of exactly the kind the half that never arrives measured, and it is why a real pump’s efficiency peaks at some clock and then falls, rather than flattening at the plateau drawn here.

The capacitors are ideal. A real flying capacitor has series resistance, which adds to the switches’ and raises the plateau, and a ceramic one loses capacitance under bias, which raises 1/(fC)1/(fC) at exactly the voltage it is being asked to hold. The second effect is the subject of the capacitance that is not one number.

And the two-capacitor exchange used an ideal diode. The voltage a real junction drops was measured for the supply-charging case in the swing a diode keeps, and it matters more here, because there is no supply voltage to make it small against: two capacitors at a few volts exchanging charge through a silicon junction lose most of the advantage to the junction itself.

The number to keep

Two capacitors joined by any passive path lose 12⋅C1C2/(C1+C2)\tfrac12 \cdot C_1C_2/(C_1+C_2) times the square of their initial difference, which is C2/(C1+C2)C_2/(C_1+C_2) of what the charged one held — through a resistance of 1 ohm or 10 kilohms, with or without an inductor ringing between them. An inductor and a diode turn the sharing into an exchange, and equal capacitors then swap 96.9 per cent of their energy at a loop Q of fifty. A charge pump is the sharing loss billed once a cycle, so its efficiency is Vout/2VinV_{\text{out}}/2V_{\text{in}} exactly and its output resistance is 1/(fC)1/(fC) until the switches’ own 8Rsw8R_{\text{sw}} takes over.

Still open: the gate electrode charge, the ladder network of capacitors, and the resonant pump

The gate electrode charge as a fourth term. Adding each switch’s gate capacitance as a charge drawn from the supply every cycle would put a rising line under the plateau drawn above, and the clock at which the two cross is the optimum a real pump is designed for. It is computable on the same marched circuit.

A pump of several stages. A Dickson or series-parallel converter shares charge through a ladder network of flying capacitors, and the slow-switching resistance becomes a sum over the stages weighted by the square of the charge each carries. Whether the measured output resistance matches that weighting, and which topology wins at a given ratio, is a measurement rather than an argument.

The resonant pump. The exchange measured above is what a resonant switched-capacitor converter does deliberately: a small inductance in each charge path, the switches opened at the current’s zero. Its output resistance should fall below the plateau a resistive pump reaches, and how far it falls at a given Q is the number that decides whether the inductor is worth its size.

Part 4 on switching energy

One argument about Switching energy, and one of 4 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

The objects named here

The third axis, after the field and the idea: the things themselves, and every essay that touches each one.

Charging exponentialClosed formEnergy-storageEquivalent resistanceOn-resistanceOutput impedanceReal powerResiduesSwitched-capacitorSwitching loss