Circuits that do a job, and the range they do it over

The lamp that has to be slow

A small lamp in a Wien oscillator's gain network adjusts the gain to whatever each unit needs, so the margin a limiter spends is no longer spent, and the price is an amplitude loop of its own. The envelope is an integrator and the filament is a lag, which makes a second-order loop that rings at the square root of 2ω₀m/τ and decays at (1 + m)/2τ. The filament's ripple at twice the carrier is the only distortion, 0.201/ω₀τ. So the slowness that lowers the distortion lengthens the settling in exact proportion: distortion times settling is 0.163 cycles at any time constant, and 0.01 per cent takes a second at 1.59 kHz and 82 seconds at 20 Hz.

Assumes: The gain that is exactly one · The loss that depends on what it causes

The gain a tolerance demands found that a Wien oscillator from 1 per cent parts must have its gain set to 3.072 for 999 units in a thousand to start, and the gain an amplifier asks for, squared added the amplifier’s share to the same margin. Both essays priced a margin that every unit carries for life, and both ended on the same alternative: put something in the gain network that adjusts the gain to whatever each unit needs, so that the margin is used at start-up and then stops being spent.

The classic thing to put there is a lamp. A small tungsten filament is a resistor whose value rises as it warms, and in the lower arm of the gain network it makes a loop: more amplitude, more heat, more resistance, less gain. The amplitude settles at the level where the filament has exactly the resistance the network asks for, and a limiter’s diodes are not needed at all. What the limiter charges for measured what those diodes cost in distortion, and it is a large number, because they are the only nonlinear thing in the loop and every harmonic is theirs. A filament is not nonlinear on the time scale of one cycle. It is a linear resistor whose value is being changed slowly.

The word slowly is the whole of what this essay measures. The arrangement replaces one limit, a waveform being bent, with a control loop that has dynamics of its own. Those dynamics turn out to be a resonance, and its two numbers are tied to the distortion by a law with no free parameter in it.

A Wien oscillator with a lamp for its lower gain arm, τ = 100 ms: the envelope rings 63.6 times in ten time constants at 63.6 Hz and settles at 1.000 Vcomputed by solving, not by drawing: three state equations marched through every cycle of the 1.59 kHz carrier. The peak at the network's node, over its settled value (solid), from a millivolt with a cold filament, against time in units of the filament's time constant τ = 100 ms. Cold, the 50 Ω filament asks for a gain of 11 and the output sits on the 12 V rail until the filament has warmed. It leaves the rail after 1.99 ms, falls through the operating point, overshoots and rings at 63.6 Hz with a damping ratio of 0.0225. The dashed bound is the linear loop's decay, exp(−(1 + m)t/2τ) with m = 0.8, and it contains neither the carrier's frequency nor the amplitude. The settled amplitude, 1.000 V at the node and 3.00 V at the output, is the one at which the filament is at 250 Ω.02460246810time since switch-on, in filament time constantspeak at the network's node, over the settled valuemarched envelopepeak 5.55 of settledthe loop's decay0.90 per τring63.6 Hzwithin 1% after639 mssolved, then checked — every cycle of the carrieran integrator and a lag
Fig. 1 The peak at the Wien network’s node, over its settled value, from a millivolt with a cold filament, against time in units of the filament’s time constant, marched through every cycle of the 1.59 kHz carrier. The output sits on the 12 V rail until the filament has warmed, falls through the operating point, overshoots and rings. At 100 ms the ring is at 63.6 Hz with ζ=0.0225\zeta = 0.0225; the dashed bound is the linear loop’s decay, and it does not change as the slider changes the time constant.

Three equations and no envelope

The network is the one the earlier measurements used: a series arm of ten kilohms and ten nanofarads, a shunt arm of the same, running at 1.59 kHz. The amplifier here is ideal, because the question is the lamp’s and because the gain an amplifier asks for, squared has already said how small the amplifier’s share of the gain is. The upper gain resistor is 500 Ω, and the lower arm is a filament modelled by the simplest law that is still a filament: its resistance is 50 Ω cold and rises in proportion to its power,

R=R0(1+P^P0),τ dP^dt=v2R−P^,R = R_0\left(1 + \frac{\hat P}{P_0}\right), \qquad \tau\,\frac{d\hat P}{dt} = \frac{v^2}{R} - \hat P,

with P^\hat P the power after the filament’s thermal time constant τ\tau has low-passed it. A real filament’s resistance is a power law in its temperature, and its time constant moves as it heats; a straight line is what the argument needs, and every result below is stated through the one number the law reduces to at the operating point.

The virtual earth makes the circuit simple in a useful way. The inverting input follows the non-inverting one, so the voltage across the filament is the network’s own node voltage. Two capacitors and one filament are three states, and the march steps those three states through every cycle of the carrier with fourth-order Runge–Kutta, thousands of cycles at a time. Nothing about an envelope, an average or a slowly varying amplitude goes into it. The envelope is read from the peaks afterwards, and an analysis then has to agree with it.

Where it settles

The operating point needs no march. The network asks for a gain of three, the upper arm is fixed, and so the filament must settle at Rf/(k−1)=250R_f/(k - 1) = 250 Ω. The filament’s law then gives its power, 2 mW, and the power gives the voltage: a peak of exactly 1.000 V at the node, 3.00 V at the output. The march arrives at that number to four figures, and no diode, rail or device parameter is in it. Those were what set the amplitude in the amplitude nothing linear predicts, where a linear model’s poles could say how fast the envelope grew and never where it stopped.

Getting there is less tidy. Cold, the filament is 50 Ω and the stage asks for a gain of eleven, so the poles are nowhere near the axis, the output hits the 12 V rail within a few cycles and stays there. For as long as it stays there the filament is being heated by far more than its settled power, and with a time constant of 100 ms the output comes off the rail after about 2 ms. By then the filament is on its way to more heat than the operating point wants, and the amplitude falls through its settled value and keeps going, reaching within 1 per cent of it only after 639 ms.

So a lamp oscillator’s switch-on is violent. The waveform that should be 3 V begins as a clipped 12 V wave, and the node reaches 5.55 times its settled peak. The filament that was meant to be gentle has a thermal mass, and a cold thermal mass is an open loop.

An integrator and a lag

Why the amplitude rings at all takes two lines, and they are the essay’s main result. An oscillator’s envelope does not respond to a gain, it integrates one. With the poles near the axis, the logarithm of the amplitude changes at a rate set by the excess gain,

dln⁡Adt=ω02 (k−3),\frac{d\ln A}{dt} = \frac{\omega_0}{2}\,(k - 3),

which is the growth rate two exponentials, and where they meet measured, read in the small-excess limit. An excess of one part in a thousand does not move the amplitude by one part in a thousand and stop. It keeps moving it for as long as it is there. The filament then lags that integrator by its own time constant. Write aa for the fractional change in amplitude and pp for the fractional change in filament power, and let m=1−R0/Rhotm = 1 - R_0/R_{hot}, which is how strongly the resistance follows the power at the operating point. Here it is 0.8. Linearising the two laws about the operating point gives

τs2+(1+m) s+2ω0m=0.\tau s^2 + (1 + m)\,s + 2\omega_0 m = 0.

That is a second-order loop, an integrator and a lag, and it is the shape of every control loop whose plant is an integrator. It has a natural frequency and a damping ratio, and neither was designed.

The amplitude loop's two numbers against the filament's time constant: its decay goes as 1/τ and its ring as 1/√τ, so a slower lamp rings more before it stops. computed by solving, not by drawing: for each time constant the envelope is kicked off the operating point by about one per cent and its ring frequency and decay rate are read from the marched peaks (dots), against the linear loop τs² + (1 + m)s + 2ω₀m = 0 (lines). 3 ms: decay 297.2 against 300.0, ring 2283 against 2290 rad/s; 10 ms: decay 89.9 against 90.0, ring 1260 against 1262 rad/s; 30 ms: decay 30.0 against 30.0, ring 729 against 730 rad/s; 100 ms: decay 9.0 against 9.0, ring 400 against 400 rad/s; 300 ms: decay 3.0 against 3.0, ring 231 against 231 rad/s. The damping ratio is (1 + m)/2√(2ω₀mτ), 0.130 at 3 ms and 0.0130 at 300 ms, because the decay falls faster than the ring. The decay rate contains no ω₀: an oscillator's amplitude settles in filament time constants at any frequency.
Fig. 2 The amplitude loop’s ring frequency and decay rate against the filament’s time constant, read from the marched peaks after a kick of about one per cent (dots), against the linear pair τs2+(1+m)s+2ω0m=0\tau s^2 + (1 + m)s + 2\omega_0 m = 0 (lines). 100 ms: decay 9.0 against 9.0 per second, ring 400 against 400 rad/s. The decay goes as 1/τ1/\tau and the ring as 1/τ1/\sqrt{\tau}, so the damping ratio falls from 0.130 at 3 ms to 0.0130 at 300 ms.

The march is kicked off its operating point by about one per cent and the ring and decay are read from the peaks. At 100 ms the decay is 9.0 per second against the pair’s 9.0, and the ring is 400 rad/s against 400. At 3 ms, where the ring has only about four carrier cycles in each of its own and an envelope is barely a meaningful idea, they still agree to one per cent: 297 against 300, and 2,283 against 2,290. The kick has to be small for this. A kick of a tenth of the filament’s power puts the envelope twenty per cent out at 100 ms, and the ring comes back 6.6 per cent low, as a softening spring’s does. The linear loop is a small-signal statement and the march knows it.

The decay has no frequency in it

Read the pair’s two roots apart and they say something odd. The decay rate is

σ=1+m2τ,\sigma = \frac{1 + m}{2\tau},

which contains the filament and not the oscillator. An amplitude disturbance dies at the same rate in seconds on a 20 Hz oscillator and a 20 kHz one that share a lamp. The ring frequency, 2ω0m/τ\sqrt{2\omega_0 m/\tau}, does contain the carrier, so the faster oscillator rings faster and for more swings over the same decay. For this lamp at 100 ms the damping ratio is 0.0225: a Q of about 22 in a loop nobody meant to be a resonator.

There is a practical reason for that to matter, and it is the disturbance itself. Any change in anything the oscillator cares about, a step in the supply or in the load, or a frequency range switched, moves the gain the loop needs by a small amount, and the amplitude answers with a decaying wobble at sixty-odd hertz that lasts half a second. On an audio test oscillator that is the bounce a user sees on a level meter after changing frequency, and it is not a defect of any part. The best damping is not the one to build found settling exquisitely sensitive to damping near an optimum; this loop is nowhere near an optimum and cannot be taken there by choosing τ\tau, since slowing the filament reduces the damping as 1/τ1/\sqrt{\tau}.

The distortion is a ripple

A filament is not perfectly slow. Its power is v2/Rv^2/R, and for a sine wave at the node that power has a large component at twice the carrier. The thermal mass low-passes it by a first-order factor, 1/(2ω0τ)1/(2\omega_0\tau) when that is small, and what gets through moves the resistance by a fraction mm of itself and the gain by twice that, since k−1=Rf/Rk - 1 = R_f/R and the operating point sits at k−1=2k - 1 = 2. A gain moving at 2ω02\omega_0 multiplying a carrier at ω0\omega_0 produces a term at 3ω03\omega_0, and the loop then closes around it, so the Wien network’s response at three times its centre decides how much of it stands at the output. That response is exact: ∣1−3β(3jω0)∣=(8/3)/∣3+j8/3∣|1 - 3\beta(3j\omega_0)| = (8/3)/|3 + j8/3|, or 0.664.

The lamp's distortion against its time constant: 0.671% at ω₀τ = 30, 0.0669% at 300, 0.00669% at 3000. computed by solving, not by drawing: the third harmonic of the marched output over its fundamental, by a Hann-windowed correlation at the measured period (dots), against the closed form (line): the filament's power ripples at twice the carrier, its low-pass passes 1/(2ω₀τ) of it, the resistance follows by m and the gain by twice that, and the product with the carrier appears at three times the frequency, closed through the Wien network at 3ω₀. ω₀τ = 3: 6.69% against 6.6%; ω₀τ = 10: 2.02% against 2%; ω₀τ = 30: 0.671% against 0.669%; ω₀τ = 100: 0.201% against 0.201%; ω₀τ = 300: 0.0669% against 0.0669%; ω₀τ = 1000: 0.0201% against 0.0201%; ω₀τ = 3000: 0.00669% against 0.00669%. It falls in proportion to the time constant, 0.201/ω₀τ. Unlike a diode limiter's, this harmonic owes nothing to the waveform's being clipped: the filament is a linear resistor over one cycle and its value is what moves.
Fig. 3 The third harmonic of the marched output over its fundamental, from a Hann-windowed correlation at the measured period (dots), against the filament’s ripple mixed with the carrier and closed through the network at 3ω03\omega_0 (line). 2.02% at ω0τ=10\omega_0\tau = 10, 0.201% at 100, 0.0201% at 1000. It falls as 0.201/ω0τ0.201/\omega_0\tau, and the march and the closed form agree to better than a part in a hundred from ω0τ=30\omega_0\tau = 30 upward.

Put together, the third harmonic over the fundamental is 0.2509 m/ω0τ0.2509\,m/\omega_0\tau, which for this lamp is 0.201/ω0τ0.201/\omega_0\tau. Measured on the marched output with a window at the oscillator’s own measured period, it is 0.671 per cent at ω0τ=30\omega_0\tau = 30 against 0.669, 0.0669 at 300 against 0.0669 and 0.00669 at 3,000 against 0.00669. Three significant figures over three decades is a good deal better than an analysis this short has a right to expect, and the reason is that the filament really is doing what the analysis says.

The contrast with the limiter is in kind and not only in size. Two diodes across the feedback resistor make harmonics by bending the wave, and their level depends on how hard they are working, which is the excess gain. The filament bends nothing. Over one cycle the circuit is linear with a time-varying coefficient, and the harmonic is a modulation product. That is also why there is no fifth harmonic to speak of: it would need the ripple at 4ω04\omega_0, which is a product of a product.

The time constant cancels

Now the two results can be multiplied. The envelope settles within one per cent in ln⁡(100)/σ=9.21τ/(1+m)\ln(100)/\sigma = 9.21\tau/(1 + m). The distortion is 0.2509 m/ω0τ0.2509\,m/\omega_0\tau. In the product τ\tau disappears, and if settling is counted in carrier cycles rather than seconds ω0\omega_0 disappears too:

D3×Nsettle=0.2509×9.212π m1+m=0.368 m1+m.D_3 \times N_{settle} = \frac{0.2509 \times 9.21}{2\pi}\,\frac{m}{1 + m} = 0.368\,\frac{m}{1 + m}.

For this lamp that is 0.163 of a cycle. The figure is a designer’s whole choice with a lamp in it, drawn on one line.

What the lamp's two virtues cost each other: distortion times settling time is 0.163 carrier cycles, so 0.01% takes 1634 cycles to settle at any time constant. computed by solving, not by drawing: the third harmonic and the cycles to settle within one per cent, both marched, at six filament time constants (dots), against the product of the two closed forms (solid), 0.1634 for this lamp, m = 0.8. ω₀τ = 10: 2.02%, 8 cycles; ω₀τ = 30: 0.671%, 25 cycles; ω₀τ = 100: 0.201%, 82 cycles; ω₀τ = 300: 0.0669%, 244 cycles; ω₀τ = 1000: 0.0201%, 814 cycles; ω₀τ = 3000: 0.00669%, 2442 cycles. The time constant cancels between the two, and so does the carrier's frequency when settling is counted in its cycles. A cooler filament, m = 0.5 (dashed), has a product of 0.1226; a hotter one, m = 0.95, of 0.1792. In seconds the product is what a low-frequency oscillator pays: 0.01% takes 1.03 s at 1.59 kHz and 82 s at 20 Hz.
Fig. 4 Cycles of the carrier to settle within one per cent against the third harmonic, both marched, at six filament time constants (dots), against the product of the two closed forms for this lamp, 0.163 (solid), and for a cooler filament with m=0.5m = 0.5, 0.123 (dashed). 0.0201% and 798 cycles at ω0τ=1000\omega_0\tau = 1000. Sliding along the line changes the time constant; nothing a designer can buy moves the line far.

A designer can have 0.01 per cent of distortion, and then the amplitude takes 1,634 cycles to settle. At 1.59 kHz that is 1.03 seconds, which is tolerable. At 20 Hz it is 82 seconds, which is what the slow-settling low ranges of real audio generators are, and now there is a reason to expect it rather than a complaint to make. The figure’s dots lie on the product within a few per cent across the whole range where the ripple is small, 0.163 at ω0τ\omega_0\tau of 100 and of 3,000 alike. Choosing the lamp barely helps: running the filament cooler, m=0.5m = 0.5, brings the product down only to 0.123, and it weakens the control the filament has over the amplitude to do it.

So a thermally slow element in a gain network is not a free lunch with a long delay in it. It is a fixed exchange rate. The rate is low enough that the bargain is excellent at audio and above, and this is the reason a lamp in a Wien bridge became the standard circuit for a low-distortion source, which two diodes never could.

The margin that stops being spent

The argument for the lamp was the margin, and that has to be checked as well. A Wien network whose series resistor is off nominal asks for a gain of 3+e3 + e, and the gain a tolerance demands showed what a fixed gain then does: each unit runs at its own excess, and the limiter’s working point differs in every one.

A lamp takes whatever gain each unit asks for: across ±0.1 of required gain its amplitude moves 4.69%, and a limiter set at 3.15 moves 17.3% and its distortion by 3.51 times. computed by solving, not by drawing: the settled output amplitude, over the nominal unit's, for networks whose series resistor is off nominal so that they ask for a gain from 2.9 to 3.1. With a lamp (dots, marched; solid, the operating point) the filament simply settles at Rf/(k − 1), and the output's amplitude moves 4.69% across the range. With two diodes and the gain fixed at 3.15 (dashed, marched) each unit has a different excess, from 0.05 to 0.25, so its amplitude moves 17.3% and its distortion from 1.93% to 6.76%. The lamp's own distortion is nearly unmoved, a ratio of 1.025 over the range, because it depends on the unit only through m. Neither curve is free: the lamp's price is the settling, and the diodes' is the waveform.
Fig. 5 The settled output amplitude, over the nominal unit’s, for networks asking for a gain from 2.9 to 3.1. With a lamp (dots, marched; solid, the operating point) the amplitude moves 4.69% across the range. With two diodes and the gain fixed at 3.15 (dashed, marched), each unit has a different excess, and its amplitude moves 17.3% while its distortion runs from 1.93% to 6.76%.

With the lamp, each unit simply finds a different filament resistance, Rf/(k−1)R_f/(k - 1), and the amplitude follows from it. Across ±0.1 of required gain, well outside anything 1 per cent parts produce, the marched output moves 4.69 per cent end to end, matching the operating point to half a per cent at every setting. The same range with the gain fixed at 3.15 and two diodes doing the limiting moves the amplitude 17.3 per cent and the distortion from 1.93 to 6.76 per cent, because the diodes are being asked to absorb an excess that ranges from 0.05 to 0.25.

The lamp’s own distortion barely notices. It depends on the unit only through mm, which moves from 0.800 by a little at either end, so its third harmonic changes by 2.5 per cent over the whole range. So the distortion stops depending on the tolerance at all, which is the thing no choice of fixed margin could achieve: the gain a tolerance demands could only set the margin’s size and take the result.

What a smaller excess would have cost

A fair comparison asks what the limiter could do if it were given the same spread with less excess, and what the limiter charges for already answers it: the distortion falls as the 0.74 power of the excess gain, so a fixed gain close to three is quiet in a typical unit and fails to start in an unlucky one. The lamp breaks that coupling, since its start-up margin is the cold filament’s gain of eleven, which no tolerance threatens, while its running distortion is set elsewhere. Start-up certainty and running purity were one number with diodes. With the lamp they are two, and the second has moved to a different axis, which is time.

What the filament’s law left out

Three simplifications are worth stating, because each one moves a number here and none moves the shape. The filament’s resistance is taken as linear in its power, where a real tungsten filament runs closer to a low power law, and the time constant is taken as fixed where a real filament’s falls as it gets hot and radiates more. Both change the value of mm and of τ\tau at the operating point without changing the structure: an integrator, a lag and a ripple. Since every law above is stated in those two numbers, a measured lamp can be put straight into them.

The amplifier is ideal. The frequency that is not the formula showed that a real one moves the frequency by several per cent and the required gain by a much smaller amount, and here the required gain is simply what the filament settles at, so its share appears as a small change of operating point rather than a spent margin. And the rail is a hard clip, which decides how the switch-on looks and how long it spends on the rail but not the loop’s behaviour once it is off it. Real switch-on transients are not gentler; an amplifier recovering from saturation adds its own delay.

The thermal model has one state where a real filament has several: the filament and its supports cool with different time constants, and a thermistor bead has its own distribution. A second thermal state would add a second lag to a loop already short of damping, which only makes the ring worse. How much worse is not computed here, and it is the one result that could change the qualitative picture: with enough lag in the filament’s thermal path, the amplitude loop itself would go unstable, and the oscillator would squeg.

The number worth carrying

A lamp in a Wien oscillator’s gain network turns the margin problem into a control loop: the envelope integrates, the filament lags, and they ring at 2ω0m/τ\sqrt{2\omega_0 m/\tau} while decaying at (1+m)/2τ(1 + m)/2\tau. The filament’s ripple at twice the carrier is the distortion, 0.2509 m/ω0τ0.2509\,m/\omega_0\tau. Multiply the two and the time constant cancels: distortion times settling is 0.163 of a cycle for a filament running at 250 Ω, and 0.01 per cent takes 1,634 cycles to settle. That is one second at 1.59 kHz and eighty-two at 20 Hz. The amplitude moves under 5 per cent across any network the parts can make. All of it agrees with a march of every carrier cycle, and no number in the law was fitted.

Still open: the second thermal state, a detector instead of a filament, and the loop that can be compensated

A filament with two thermal paths. A second, slower thermal state adds lag inside a loop whose damping is already 0.02. A real lamp’s supports and envelope supply one, and the point at which the extra lag makes the amplitude ring forever, so that the oscillator squegs, is a stability boundary this model cannot reach. It is the margin question reappearing in the loop that was meant to remove it.

A peak detector and a field-effect transistor. Replace the filament with a rectifier, a capacitor and a channel resistance, and the lag and the ripple are separately chosen for the first time. The ripple is then at twice the carrier through the detector’s capacitor, and a second time constant can filter it without slowing the loop’s main lag so much. Whether that breaks the fixed exchange rate above, or only moves it, is the measurement that would say what the electronic versions of this circuit actually buy.

A zero in the amplitude loop. A control loop with an integrator and a lag is ordinarily cured with a lead. A small proportional path around the filament, a resistor in parallel with it, adds a zero and changes mm at the same time. How much damping a parallel resistor can buy, and what it costs in the amplitude’s regulation against the required gain, is a one-parameter march on this circuit.

Part 8 on oscillator

One argument about Oscillator, and one of 8 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.

Amplitude stabilisationBarkhausen criterionDamping ratioDesign tradeoffLimit cycleLoop gainTotal harmonic distortionWien bridge