Before the steady state

The half a switch keeps

The rung below found that charging a capacitor from a step loses half the delivered energy whatever the resistance, and that a ramp takes the loss down as 2τ/T with no floor. A staircase of N settled risers costs one Nth of the step, exact to four parts in a million, and the law ends at a dwell of 5.272 time constants. A switch is the other half of the same product and buys nothing at all: with the supply held at five volts and the channel conductance ramped over a thousand time constants, the loss is 1.00000000 of ½CV².

Assumes: The half that never arrives · One step, computed twice

The half that never arrives measured the energy account of a capacitor charge and found two things. Charging from a step loses exactly 12CV2\tfrac12CV^2 in the resistance, the same 12.50 microjoules through ten ohms and through a hundred kilohms; and driving the same network with a ramp instead takes the loss down as 2τ/T2\tau/T, with a fitted exponent of −0.994 and no floor beneath it at all.

It also recorded what it had not done. The result is a statement about the source, and the machinery it was measured on takes an arbitrary drive — which had only ever been given a step and a ramp. A switch is not a drive. The supply on the far side of a switch sits at five volts the whole time and what moves is the path: a channel conductance climbing from nothing to one over the on-resistance across the gate’s edge. Whether the charge-loss result survives that was left open.

It does, completely, and the completeness is the finding.

A staircase costs one Nth, computed rather than quoted. computed by solving, not by drawing, marched, with the energies rebuilt from the element laws. The charge is broken into N equal risers, each held for 16 time constants so that it completes. The measured losses are 1.00000, 0.500001, 0.250000, 0.125000, 0.0625000, 0.0312500 of ½CV² — which is 1.000004, 1.000002, 1.000001, 1.000001, 1.000000, 1.000000 times 1/N, so the law is exact to four parts in a million at the worst rather than approximately true. The fitted exponent is -1.00000 and the energy account closes to 2.17e-6 at the worst.
Fig. 1 The charge broken into N equal risers, each held for sixteen time constants so that it finishes. The measured losses are 1.00000, 0.500001, 0.250000, 0.125000, 0.0625000 and 0.0312500 of ½CV² — which is 1.000004, 1.000002, 1.000001, 1.000001, 1.000000 and 1.000000 times 1/N, so the classic law is exact to four parts in a million rather than approximately true. The fitted exponent is −1.00000 and the energy account closes to 2.17 × 10⁻⁶ at the worst.

The calibration, which is the rung below unchanged

The apparatus is one microfarad, five volts and a series resistance, marched forward in time with the current rebuilt from the element law and three energies integrated: i2Rdt\int i^2R\,dt into the resistance, 12Cv2\tfrac12Cv^2 into the capacitor, vsidt\int v_s i\,dt out of the supply. Nothing reads a formula, so the account closing is the whole check on the integration.

What a charge through 1 kΩ costs, against how long it is given. computed by solving, not by drawing, marched, with the energies rebuilt from the element laws. A step loses 1.00000 of ½CV² — 12.5 µJ here — and that number is the same through 10 Ω and through 100 kΩ, which is what the faint curves show. What the resistance decides is where the fall starts: the loss goes as 2τ/T once the ramp is long against τ = 1 ms, with a fitted exponent of -0.994 and no floor beneath it. The circles are marched; the line through them is a closed form that never sees a netlist.
Fig. 2 The result this rung is quoted against, unchanged. A step loses 1.00000 of ½CV² — 12.50 microjoules through a kilohm — and the same through the four other resistances drawn faintly behind it. What the resistance decides is where the fall starts: the loss goes as 2τ/T once the ramp is long against the time constant of 1 ms, with a fitted exponent of −0.994.

Everything below is quoted against that. When a new drive is tried, the first thing asked of it is that it reproduce the step, and every number here comes with the account gap that says whether it may be believed — the same discipline one step, computed twice applies to a waveform rather than to an energy.

The instrument, and the two routes it is checked by

A conductance that changes in time is the one thing the network assembly cannot hold. Every element it stamps is a constant, and the whole reason the poles of a circuit can be recovered from its own matrix is that the matrix is affine in s — which a channel resistance moving during the transient is not. So the switch is marched as a scalar equation instead, Cdv/dt=g(t)(vs(t)v)C\,dv/dt = g(t)(v_s(t) - v), with both gg and vsv_s taken as functions and the three energies integrated from the element laws exactly as before.

That is a second implementation of the same physics, and a second implementation is only worth having if it is made to agree with the first where both apply. Held at a constant conductance it must reproduce the network solved as a matrix, and there is no arithmetic in common beyond the trapezoidal rule itself: one inverts a five-by-five system once per step, the other divides two scalars. On a step they give 1.00000002 and 1.00000009 of ½CV² — 7.4 parts in a hundred million apart. On a ramp they agree to eight figures at one, ten and a hundred time constants of duration, and both agree with the closed form 2(τ/T)[1(τ/T)(1eT/τ)]2(\tau/T)[1 - (\tau/T)(1 - e^{-T/\tau})], which sees neither a netlist nor a marcher: 0.735758884 against 0.735758882 at one time constant, 0.0198000000 against 0.0198000000 at a hundred.

Two routes that agree establish the assembly. Three, where the third is an expression derived on paper, establish the marching as well — and the switch result below is a number no third route exists for, which is precisely why the two that do exist are pinned to one that is not negotiable. It is the same arrangement what a network answers makes for a solved circuit, moved from a steady state to an integral over a transient.

The staircase, computed rather than argued

Charge the capacitor in N equal risers instead of one, letting each settle. The usual argument is two lines: each riser is a charge of V/NV/N from a source held constant, so each costs 12C(V/N)2\tfrac12C(V/N)^2, and there are N of them, so the total is 12CV2/N\tfrac12CV^2/N.

The argument is right and it is worth having the measurement anyway, because the argument’s hidden premise is the whole of the next section. Marched, with sixteen time constants of dwell, N times the loss comes out 1.000004, 1.000002, 1.000001, 1.000001, 1.000000, 1.000000 for one, two, four, eight, sixteen and thirty-two risers. That is a law rather than a trend: the fitted exponent over the six is −1.00000, and the residual four parts in a million is the trapezoidal rule’s, not the circuit’s.

The premise is the word settle. Each riser costs 12C(ΔV)2\tfrac12C(\Delta V)^2 only if the capacitor actually reaches the level it was raised to before the next riser arrives. It never quite does, and how nearly it does is the only free parameter in the whole scheme.

The 1/N law is a statement about the dwell, and it ends at 5.27 τ. computed by solving, not by drawing, marched. How far a staircase's loss exceeds one Nth of a step's, against how long each riser is held. The two curves are eight steps and thirty-two and lie almost on top of each other, which says the departure belongs to the dwell rather than to the step count. The faint line is twice the fraction of a riser left unfinished, over the N − 1 risers that start from a capacitor already short — a closed form this never evaluates — and the marched points follow it to two per cent from 6 τ to 12 τ. A dwell of 5.272 time constants is where the law is a hundredth below the truth, bisected rather than read off; at one time constant the real loss is 2.106 times what 1/N predicts, which is not a correction but a different answer.
Fig. 3 How far a staircase’s loss exceeds one Nth of a step’s, against how long each riser is held. Eight risers and thirty-two lie almost on top of each other, which says the departure belongs to the dwell rather than to the count. The faint line is twice the fraction of a riser left unfinished, over the N − 1 risers that start from a capacitor already short of its level — a closed form the marching never evaluates.

What the dwell has to be

A riser held for d time constants leaves the capacitor short of its level by ed/τe^{-d/\tau} of the riser. The next riser therefore has to move that much further, and a charge transfer costs the square of the distance it moves, so the excess is twice ed/τe^{-d/\tau} to first order. The first riser starts from a capacitor that is genuinely empty and the last dwell is a settling rather than a dwell, so N − 1 of the N carry it:

loss12CV2/N1    N1N2ed/τ\frac{\text{loss}}{\tfrac12CV^2/N} - 1 \;\approx\; \frac{N-1}{N}\,2e^{-d/\tau}

That expression never sees a netlist and the marching never sees the expression, and they agree to better than two per cent from six time constants of dwell to twelve. Which puts a number on the word settle: the 1/N law is a hundredth below the truth at a dwell of 5.272 time constants, bisected on the marched runs rather than read off the sweep, against ln(23132/0.01)=5.267\ln(2\cdot\tfrac{31}{32}/0.01) = 5.267 from the expression.

At one time constant of dwell the real loss is 2.106 times what 1/N predicts. That is not a correction to a law, it is a different law, and the reason is that a staircase whose risers do not finish is not a staircase at all — it is a coarse ramp, and it obeys the ramp’s arithmetic instead.

Cutting a fixed time into more steps stops paying at two time constants of dwell. computed by solving, not by drawing, marched. The same 100 time constants of total time cut into N equal steps. The falling line is 1/N and the circles are the measurement: they agree to 7.07e-6 while the dwell is long, and part company as it shortens. At 256 steps 1/N predicts 3.906e-3 and the answer is 0.020056, because a staircase with no dwell left in it is a ramp — and the ramp of the same duration loses 0.0198000, which the family is flattening onto. The two answers cross at 50.51 steps, which is a dwell of 1.980 time constants — two, less the ramp's own end correction of one part in 100.
Fig. 4 The same hundred time constants of total time cut into N steps. The falling line is 1/N; the circles agree with it to 7.07 × 10⁻⁶ while the dwell is long and leave it as the dwell shortens. At 256 steps 1/N predicts 3.906 × 10⁻³ and the answer is 0.020056, because the ramp of the same duration loses 0.0198000 and no staircase inside a fixed time can beat it. The two answers cross at 50.51 steps.

Where the two laws cross, which is the design number

Put the total time on a budget instead — a switched-capacitor stage has a clock period and a precharge sequence has a contactor rating, and neither has an unlimited number of stages — and the two arithmetics meet.

Inside a fixed T, the staircase promises 12CV2/N\tfrac12CV^2/N and the ramp of the same duration delivers 12CV22τ/T\tfrac12CV^2 \cdot 2\tau/T. Those are equal when the dwell T/NT/N is two time constants, and the measurement lands at 1.980, which is two less the ramp’s own end correction of one part in the hundred time constants budgeted. Below fifty steps in that budget the staircase is doing better than the ramp and the extra step is worth building; above it the staircase has become the ramp and every further step buys nothing, arriving at 0.020056 against the ramp’s 0.0198000 — a per cent and a quarter apart, entirely.

The shape of the family is worth reading as well as its crossing. Every curve in it starts on the 1/N line and leaves it downward-flattening, and none of them ever goes below the ramp: no arrangement of risers inside a fixed time beats the drive that fills the same time smoothly, which is asserted at every step count drawn. A staircase is an approximation to a ramp made out of parts a switch can produce, and the arithmetic says it is a good approximation exactly while its risers finish and a redundant one afterwards.

That is the answer to “how many stages”, and it is the sort of number that is normally chosen by custom. A precharge sequence has three stages because three is a common number of stages. The arithmetic says the useful count is the total time divided by two time constants, and past it the right move is to stop adding switches and lengthen the drive.

The switch, which is the other half of the same product

Now the question the rung below left open. Every drive above moves the source voltage. A switch does not: the supply is at V before the gate moves, during, and after, and the thing that ramps is the conductance of the path.

Both are factors of the same current — i=g(t)(vs(t)v)i = g(t)\,(v_s(t) - v) — so it is not obvious that they should behave differently at all, and the whole essay turns on the fact that they do.

A switch's edge buys nothing, and a source's ramp buys everything. computed by solving, not by drawing, marched, with a conductance that is a function of time. The upper line is a switch: the supply sits at 5 V throughout and the channel conductance rises to 1/1000 Ω over the edge. It costs 1.00000000 of ½CV² with an edge of 0.01 time constants and 1.00000000 with one of 1000 — the same number to nine figures across five decades of edge rate. The lower curve is a source ramped over the identical time through the identical resistance, and it falls to 1.998e-3. Same transition time, a factor of 500.5 in what it costs.
Fig. 5 Two drives with the identical transition time. The upper line is the switch: the supply held at five volts and the channel conductance ramped to one over a kilohm across the edge. It costs 1.00000000 of ½CV² with an edge of a hundredth of a time constant and 1.00000000 with one of a thousand — the same number to nine figures across five decades. The lower curve is a source ramped over the identical time through the identical resistance and it falls to 1.998 × 10⁻³.

A switch’s edge buys nothing whatever. Not a little; nothing measurable at nine figures across five decades of edge rate. Against a source ramped over the identical thousand time constants through the identical kilohm, which costs 1.998 × 10⁻³ of ½CV², that is a factor of 500.5 for the same transition time — and the transition time is the only thing the two drives have in common. And the on-resistance does not appear in the switch’s answer either: with an edge of a hundred time constants the loss is 1.000000000 of ½CV² through ten ohms, through a kilohm and through a hundred kilohms, with the energy account closing to seven parts in 101410^{14}.

The reason is two sentences and neither of them mentions the path. The capacitor ends at V, so it holds 12CV2\tfrac12CV^2 however it got there. The charge delivered is CVCV and the source was at V for every instant of the delivery, so the source gave CV2CV^2 — and the difference of two quantities that do not depend on g(t)g(t) cannot depend on g(t)g(t). A time-varying conductance changes the shape of the current and the duration of the transfer, and neither is in the answer.

It is worth watching the same thing instant by instant, because the total is the memorable part and the distribution is what explains it. At the first moment the capacitor is empty and the whole supply stands across the switch, whatever the channel is doing. The power there is gV2g V^2, so a channel that has barely opened dissipates very little — and takes correspondingly longer to move the charge, in exactly the proportion that leaves the product alone. That is the same cancellation the rung below found across four decades of fixed resistance, arriving now within a single transient as the conductance sweeps through those decades on its way up. A ramped source has no such cancellation available to it, because it never lets the voltage across the resistance be large in the first place: with a drive of twenty time constants the capacitor tracks the source about five per cent behind, so the resistance sees a twentieth of the supply and dissipates a four-hundredth of the step’s peak power for twenty times as long.

So the free parameter is the source voltage and only the source voltage. Slowing a gate edge, widening a switch, choosing a better part, adding a series resistor: all of these move where the heat appears and how long it takes to appear, and none of them changes how much there is. Only a drive that is somewhere other than V while the charge is moving does that — which is what a ramp is, and what a staircase is, and what a switch by itself can never be.

The on-resistance, which comes back the moment the drive is finite

There is a reading of the rung below that says the resistance is simply absent from this subject, and it is wrong in a way that only shows up when the time axis stops being measured in time constants.

With a drive that always takes a millisecond, the on-resistance is back in the answer. computed by solving, not by drawing, marched. The same capacitor charged by a drive that always takes 1 millisecond, against the resistance it charges through. Below 100.0 Ω the loss is proportional to the resistance — fitted exponent 0.9961 — because a slow drive's loss is 2RC/T and every term of that is now a constant except R. Above 33.08 kΩ the drive is fast compared with the charge, the answer is ½CV² again to a hundredth, and the resistance has left it. The rung below measured the right-hand end and reported that the resistance does not appear; it does, over two and a half decades in the middle.
Fig. 6 The same capacitor charged by a drive that always takes one millisecond, against the resistance it charges through. Below 100.0 Ω the loss is proportional to the resistance — fitted exponent 0.9961 — because a slow drive costs 2RC/T and every term of that is a constant except R. Above 33.08 kΩ the drive is fast compared with the charge, the answer is ½CV² again to a hundredth, and the resistance has left it.

A ramp of duration T costs 12CV22RC/T\tfrac12CV^2 \cdot 2RC/T once T is long, and R is right there in the numerator. The rung below’s sweep held T in units of τ\tau, so a change of resistance moved the axis by exactly as much as it moved the answer and the dependence cancelled out of the picture. Held in seconds it does not cancel: at one ohm the millisecond drive costs 1.998 × 10⁻³ of ½CV², at a hundred ohms 0.180, and the proportionality holds with a fitted exponent of 0.9961 across the decades below the knee. Both edges are bisected — 100.0 Ω where the proportionality is a tenth out, 33.08 kΩ where the answer is within a hundredth of the step’s — so the band the resistance is visible in is two and a half decades wide and has an edge at each end, in the way a band rather than an edge collects.

Which reconciles the two halves. The resistance is absent from a step’s loss and from a switch’s, because in both cases the source is at V throughout. It is present, linearly, in the loss of any drive whose duration is fixed independently of the circuit — and a real design’s durations are fixed by a clock, so that is the usual case rather than the exception.

What the model does not contain

A switch that is only a conductance. The channel here goes from zero to 1/Ron1/R_\text{on} and has nothing else in it. A real one has an off-capacitance across it that conducts when the channel does not, and an off-resistance that does the same more slowly.

Where a switch is a switch: a band, and the 6.43 MHz at which it closes. computed by solving, not by drawing. A switch of 0.5 Ω closed, 100 MΩ open and 5 pF across it is within 1.0% of being ideal only for loads between 49.5 Ω and 1.01 MΩ — 4.31 decades, and both edges are the same part. The upper edge is a frequency as well as a resistance, because the off-capacitance shunts the open switch: it falls a decade per decade above 318 Hz and meets the lower edge at 6.43 MHz, where the band closes and no load at all will do. Checked by scanning every load at 1.3 times that frequency and finding the best possible error to be 1.17%.
Fig. 7 The part this essay models as a conductance, drawn as the three numbers it actually has. A switch of 0.5 Ω closed, 100 MΩ open and 5 pF across it is within one per cent of ideal only for loads between 49.5 Ω and 1.01 MΩ, and the upper edge is a frequency as well as a resistance — the band shuts at 6.43 MHz. Every loss on this page assumes the switch is inside that band.

A gate that is a voltage rather than a schedule. The conductance here is ramped linearly in time because that is the simplest statement of a finite edge. A real channel’s conductance is a function of the gate voltage, which is itself the output of a driver charging a gate capacitance — this same circuit, one level down — so the true g(t)g(t) is neither linear nor independent of the load. None of that matters to the result, which is the useful part: the argument never uses the shape of gg, only that it is positive and that the charge finishes. A linear ramp is drawn because something has to be drawn.

No overlap loss. The energy measured here is what the capacitor’s charge costs. A switch carrying a load current while its voltage falls dissipates that as well, and that loss does grow with the edge — so a slower edge is free in the accounting on this page and expensive in the accounting next to it. The two are added, not traded, and the whole practical content of “buys nothing” is that the first term does not fall to pay for the second rising. The heat a recovery leaves behind is the same sum taken over a diode’s turn-off and finds nine tenths of it in the transistor rather than the diode, which is the general lesson: the place a switching loss is named after is often not the place it is dissipated.

No inductance. The path is purely dissipative, so every result here belongs to a charge that crosses a resistance rather than one that resonates through an inductor. A resonant transfer moves the energy into a magnetic field and back, and what is left in the resistance is then set by the quality factor — a different mechanism with a different answer, and the one the energy is in the gap accounts for from the storage side.

And a linear capacitor. A ceramic’s capacitance falls with the voltage across it, so 12CV2\tfrac12CV^2 is not what one holds; the honest quantity is vdq\int v\,dq over the actual curve, and the ratio of loss to stored is no longer exactly one.

Where these numbers are spent

A switched-capacitor stage. Every clock edge charges a sampling capacitor from one voltage to another and pays 12CΔV2\tfrac12C\Delta V^2, whatever the switch is made of — which is why a resistor made of a clock has a dynamic dissipation set by the clock rate and the capacitor ratio and by nothing in the switch at all. The measurement above says a bigger switch buys nothing there and a slower one buys nothing either.

A gate driver. A power device’s gate is a capacitance charged from a step, so the driver dissipates as much as the gate stores on every turn-on. The result on this page says that the fashion for slowing the gate edge — done for other and good reasons, among them the emission that a millimetre and a half of skew turns into common mode — recovers none of it, and that the schemes which do recover it all move the drive rather than the switch: a staircase of intermediate supply rails, or a resonant transfer.

And a precharge. A capacitor bank charged through a contactor loses as much as it stores, in the contactor, and the first cycle, which no steady state contains is that event at scale — a reservoir charged from a mains peak, with 32.4 amperes in the first conduction against a repetitive 1.23. Staging it is the standard answer and this page prices the staging: one Nth for N stages while each stage settles, and nothing further once the dwell is under two time constants. That is also why the inductance that limits, and lifts finds series resistance limiting the peak without reducing the energy, while the inductive repair reduces both — it changes the drive rather than the path.

The pattern across all three is the one the total that has no resistor in it draws from the noise side. A resistance that sets how fast and not how much cancels out of every total taken over the whole event, and it comes back the moment something else fixes the duration.

The number worth carrying

One Nth for N risers, exactly, while each is held longer than 5.272 time constants; the ramp’s 2τ/T2\tau/T below that; and a switch’s edge worth 1.00000000 of ½CV² however slowly it is made to move.

The habit that goes with it is a question to ask of any energy result with a component missing from it, and it is the question the half that never arrives asked about a resistor and did not ask about a switch. Ask which factor of the current the component is in. The loss of a charge is decided by the voltage the source held while the charge crossed, and a resistance — or a conductance, or a switch, or a wire — is the other factor. Changing it changes how long and how hot and never how much. The only repair that reduces the energy is one that puts the source somewhere other than its final value while the charge is moving, and the whole of the design space is the shape of that drive.

Part 2 on switching energy

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

The objects named here

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

Charging exponentialEnergy-storageMarchingModel rangeOn-resistancePower law fitReal powerSwitching lossVerification