Concept

Relaxation oscillator — where it appears

A comparator with hysteresis charging a capacitor through a resistor from its own output, so the two thresholds set a period rather than defending a decision. Its period is 2RC·ln((1+β)/(1−β)), and its decisions are taken where the charging curve is at its slowest.

Named by 6 essays across one field — each of them below, with the objects they name alongside it.

A comparator's delay, at a divider ratio of 0.50. Each nanosecond of comparator delay adds 2.650 nanoseconds to the period — measured as a slope between two delays, both exact multiples of the marching step — against the 2.667 that 4/(1+β) gives and the 2 that counting the delay twice gives. A 50 ns comparator therefore holds the frequency to one per cent only below 75.0 kHz.

The period a delay lengthens

Feed a comparator's output back through a resistor to the capacitor on its own input and the two thresholds stop defending a decision and start setting a period. The closed form is two RC times the log of one plus beta over one minus beta, and a marched circuit recovers it as the step shortens. A comparator that responds fifty nanoseconds late does not add fifty nanoseconds to each half cycle: it adds 4/(1+beta) times the delay to the period, 2.65 here against the 2 that counting it twice gives, because during the delay the capacitor keeps going the way it was going.

applied · Hysteresis
The period's spread is 1.20 times what counting two crossings gives. computed by solving, not by drawing. 19999 periods of a relaxation oscillator with 5 mV rms of noise on its thresholds, computed from the exact flip instants rather than marched, at β = 0.5. The measured standard deviation is 3.4 ns and the closed form — three partial derivatives of the period with respect to the three draws it depends on — gives 3.4 ns. The estimate that counts two threshold crossings and divides the noise by the slope at each gives 2.83 ns, which is 17 per cent low. The curve is the closed form's Gaussian, drawn on the measured histogram rather than fitted to it.

The decision taken where the ramp is slowest

A relaxation oscillator decides at its thresholds, and a threshold is the one place on a charging exponential where the slope is smallest. Noise there costs 3.399 units of period against the 2.828 that counting two crossings gives, because a draw moves the crossing it is armed for and the level the next ramp starts from. Consecutive periods share that draw, so they are positively correlated and the jitter accumulates at 3.771 per root period rather than at 3.399. And at a fixed frequency there is a best hysteresis: β = 0.648, where β·ln((1+β)/(1−β)) = 1.

applied · Hysteresis
At β = 0.5, the duty error scatters by 2.49 ns a period against the period's 3.39 ns — and consecutive duty errors are anticorrelated, −0.217. Seeded: forty thousand periods of the event map with 5 mV of threshold noise, β = 0.5. The period scatters by 3.39 ns against σ√(A² + (A+B)² + B²) = 3.4 ns; the high half less the low half scatters by 2.49 ns against σ√(A² + (B−A)² + B²) = 2.49 ns, with A = RC/V(1+β) and B = RC/V(1−β) — 0.667 and 2.000 in units of RC/V. The draw both halves share enters the period with A + B and the difference with B − A. Consecutive periods correlate by 0.107 (closed form 0.115); consecutive duty errors by −0.217 (closed form −0.214).

The walk the core sees

Threshold noise in a relaxation oscillator walks its timing at 3.77 nanoseconds per root period at β = 0.5, because the draw two half cycles share adds. A transformer driven by the same square wave sees the difference of the halves instead, where the shared draw subtracts, and that walks at 1.89 — exactly β times the timing, 18.3 ns against 35.9 after a hundred periods over six hundred seeded runs. The per-period duty error does not vanish with the hysteresis and the walk does, consecutive duty errors are anticorrelated where consecutive periods are not, a comparator skew outruns the walk after 2(σB/d)² periods, and at a fixed frequency the core wants less hysteresis than the clock does.

applied · Hysteresis
With a leak of a hundred periods the flux settles to a spread of 1.22% of the swing at β = 0.5 — 0.759 of what independent duty errors would give. Seeded: three runs of sixty thousand periods of the event map, 5 mV of threshold noise, β = 0.5, driving a magnetising branch whose flux leaks with τ = L/R. The stationary spread of the period-end flux in volt-nanoseconds against τ in periods, quoted here as a percentage of one half cycle's swing V·T/2 = 5493 V·ns: 1 → 0.146% (closed form 0.145%), 3 → 0.233% (closed form 0.232%), 10 → 0.401% (closed form 0.397%), 30 → 0.685% (closed form 0.673%), 100 → 1.25% (closed form 1.22%), 300 → 2.16% (closed form 2.10%). The closed form linearises one period, keeping the leak inside each half and the covariance −AB between consecutive periods' imbalances; dropping that covariance gives the upper curve, 1.61% at a hundred periods. For a slow leak the spread is V·σ·|B − A|·√(τ/T), the drawn asymptote.

The spread a winding resistance holds

A relaxation oscillator's threshold noise walks an ideal core's flux without limit. Put the winding's resistance back and the walk stops at a spread: 1.22% of a half cycle's swing when L/R is a hundred periods, growing as the square root of L/R, while a comparator skew's offset grows as L/R itself. The anticorrelation between consecutive duty errors is worth 24% of that spread at β = 0.5 and 62% at β = 0.2 — but only in a core slow enough to remember several periods. And the resistance that bounds the walk is a boundary in its own right: with a millihenry and a fifth of the swing to spare, an ohm tolerates 12.9 mV of noise, and a hundred picoseconds of skew needs at least 0.14 Ω.

applied · Hysteresis
With a 300 ps skew and 5 mV of noise a core with 100 ns of headroom saturates after 502 periods on average — the 500 the skew alone gives — and one drive in a hundred by 184. Seeded: 2,000 drives of an ideal core by the event map at β = 0.5, 5 mV of threshold noise and a comparator skew of 300 ps, each run until the summed high-minus-low time leaves ±100 ns. A histogram of the counts on logarithmic bins, against the closed-form first-passage distribution, between two barriers, of a walk with drift 0.200 ns a period and spread 1.89 ns per root period. Mean 501.9 against 499.9; quantiles 1% 184, 10% 275, 50% 463; the empirical and closed-form cumulative distributions differ by at most 0.014.

The count a core survives

A relaxation oscillator with a 300 ps comparator skew and 5 mV of threshold noise saturates an ideal core with 100 ns of volt-second headroom after 502 periods on average — the 500 the skew alone gives — and one drive in a hundred by 184. The mean does not see the noise at all until the noise is large enough to saturate the core the other way first; the early tail sees nothing else. Every skew and noise level falls on one curve in one ratio, the skew's count over the count at which its ramp overtakes the walk. Read as a burst, a thousand periods with one failure in a thousand allows 150 ps of skew with no noise, 93.5 ps at a millivolt, and none at all above 2.41 mV.

applied · Hysteresis
Forty thousand periods at β = 0.5: each period's error against the same period's duty error, correlated by 0.008. Seeded: forty thousand periods of the event map, β = 0.5, 5 mV of threshold noise; one in twenty is drawn, each scaled by its own standard deviation (3.4 ns for the period, 2.49 ns for the high-minus-low time). A period is three draws with coefficients A, A + B, B and its duty error the same three with A, B − A, −B, so their covariance is σ²[A² + (A + B)(B − A) − B²], which is zero at every β. Measured, the correlation is 0.0080, inside the ±0.0100 that forty thousand samples resolve. With normal draws, uncorrelated is independent: the cloud is round.

Every draw shared, and nothing in common

A relaxation oscillator's period error and its volt-second error are made of the same threshold draws, and they are exactly uncorrelated. A period weighs its three draws A, A + B and B; the high half less the low weighs the same three A, B − A and −B; the products sum to A² + B² − A² − B², which is zero at every hysteresis. Over forty thousand periods the measured correlation is 0.008 against a resolution of 0.010. What the two do share is one draw with the period on either side, ±0.157 at β = 0.5, and over any whole burst those two lags cancel term for term. Four thousand bursts judged against twenty-five pairs of limits fail both ways exactly as often as the product of the two rates says: the margins specified separately double-count nothing.

applied · Hysteresis

Named alongside it

The objects these essays reach for when they reach for this one.

Seeded generatorVolt-secondsDesign tradeoffDuty cycleHeadroomHysteresisPeriod jitterRandom walkComparatorMonte carloCharging exponentialClosed form

All concepts