The threshold that is noisier
Assumes: Two thresholds because there is a floor · A boundary in volt-seconds
Every draw shared, and nothing in common found that a relaxation oscillator’s two ways of failing during a burst are independent. The timing walk and the volt-second walk are built from the same threshold draws, but each draw enters one as part of a sum and the other as part of a difference, and with two halves of equal variance a sum and a difference share nothing. That essay named the one assumption the result leaned on hardest: that the two thresholds are equally noisy. It is the assumption a real comparator is most likely to break, and it is worth knowing how badly the independence fails when it does.
The answer turns out to have a shape the symmetric case gave no hint of. With unequal thresholds the coupling is no longer confined to the edges of a burst — it grows with the burst, exactly as fast as the two variances grow, and settles at a correlation set by the two noise levels alone. The hysteresis, the time constant and the rails all drop out of it. What keeps the practical damage small is not the size of that correlation but the shape of the failures it couples: both are two-sided, and a two-sided joint tail feels a correlation only through its square.
Three draws, weighed against two noises
The oscillator is the one this family of essays has used from the start: a comparator with thresholds at ±β of its rails, a resistor from its output to a capacitor on its input, and a fresh normal draw added to each threshold when it is armed and held until it is crossed. A draw moves the crossing it was armed for by the draw over the ramp’s slope there, which is per volt, and it leaves the capacitor at the wrong level, so the next half cycle runs long or short by per volt. The decision taken where the ramp is slowest derived both; at β = 0.5, RC = 1 µs and 5 V rails they are 0.133 and 0.400 nanoseconds a millivolt.
A period is a high half and then a low half. It begins at a crossing of the lower threshold, contains one crossing of the upper, and ends at the next crossing of the lower — three draws, of which the outer two come from the lower threshold and the middle one from the upper. Their weights in the period are A, A + B and B, and in the high half less the low half they are A, B − A and −B. Nothing about those weights changes when the thresholds’ noises differ. What changes is the variance each weight multiplies: for the outer draws and for the middle one. The covariance is the sum of the weights’ products, each times its own draw’s variance:
The symmetric result was the special case , where the middle draw’s was paid back exactly by the outer two. With a noisier upper threshold the middle draw outweighs them, and a long period comes with a long high half: the correlation is positive. A noisier lower threshold makes it negative by the same amount.
To hold everything else fixed, the figures here keep at twice (5 mV)², the total of the comparator the earlier essays used, and vary only the ratio . The walks’ own spreads then barely move, since each is a sum over many draws of both kinds. At k = 1.5 the upper threshold carries 5.88 mV and the lower 3.92 mV, and the hero figure’s cloud of three thousand bursts leans at a correlation of 0.375.
Where the noise on one threshold comes from
It is fair to ask whether a comparator ever has two thresholds of different noise, since an integrated comparator’s input noise does not know which threshold it is being compared with. Three mechanisms give it one.
Two thresholds because there is a floor set the hysteresis as a multiple of the noise without asking where the noise lived. The first and most common place is the rails. The thresholds of this oscillator are β times the output’s two rails, so any noise on the positive rail enters the upper threshold scaled by β, and the negative rail’s noise enters the lower. A circuit whose positive rail comes from a quiet linear regulator and whose negative rail comes from a charge pump has two thresholds whose noises can differ by a factor of several, and nothing in the comparator itself is asymmetric.
The second is the input stage. A comparator’s input noise depends on its common-mode voltage, and the two thresholds sit at opposite ends of the input range — often one close to a rail where the input pair is near the end of its headroom. The third is the hysteresis network: a threshold set by a resistor to one rail and another to ground has two different Thévenin resistances, and the Johnson noise of each sets its own floor. None of these needs a defective part.
The coupling grows with the burst
The per-period covariance is only the beginning, because a burst-level failure is a walk. Summed over N periods, the timing contains every draw, the first with A, the last with B and every interior one with A + B; the imbalance contains the first with A, the last with −B, every interior upper draw with B − A and every interior lower one with A − B. Weighing each by its own variance, the covariance after N whole periods is
exactly, with the end draws included. In the symmetric case the per-period lags, +AB and −AB, cancelled term for term and the walks shared nothing however long they ran. Here nothing cancels. Every period adds the same covariance, and the two variances also grow as N, so the correlation settles at a constant.
The figure shows the approach. A single period’s correlation depends strongly on the hysteresis: 0.192 at β = 0.2, 0.338 at β = 0.5, 0.380 at β = 0.8. Over a few dozen periods all three converge on one number, 0.385, and stay there. The seeded bursts follow the exact curve at every length checked, from one period to a hundred.
Why the hysteresis cancels out
The limiting value can be read straight off the weights, and the reading explains why β leaves it. In a long burst every draw but the two at the ends is interior. In the timing each interior draw carries A + B, whichever threshold it came from, so the summed timing is times the sum of all draws. In the imbalance each interior upper draw carries B − A and each interior lower draw A − B, so the summed imbalance is times the upper draws less the lower ones. The two walks are, to within the end draws, scaled copies of a sum and a difference:
The scale factors that carry β, the rails and RC appear once in the numerator and once under the square root in each spread, and leave together. The walk the core sees found that the imbalance walk is β times the timing walk because ; that ratio sets how large the two walks are relative to each other, and the correlation, which is scale-free, does not see it.
The short-burst dependence on β is the end draws’ doing. At small hysteresis A and B are nearly equal, and the middle draw of a period — the only upper draw in it — has weight B − A in the imbalance, which is nearly nothing. A single period’s imbalance is then almost entirely the two lower draws, and it can hardly correlate with an asymmetry that lives in the upper one. That is why one period reads only 0.192 at β = 0.2. With wide hysteresis B dwarfs A, the outer draws’ A-weights fade, and a single period already looks like the long burst. In every case the interior draws come to dominate as the burst lengthens, and with them the limit.
How the coupling scales with the asymmetry
The law is simple enough to tabulate. A tenth more noise on the upper threshold than on the lower gives ; a quarter gives 0.220; half again 0.385; twice 0.600; three times 0.800.
For small asymmetries it is close to linear: writing , the correlation is to first order, so a ten per cent difference in the spreads is a ten per cent correlation and a two per cent difference is a two per cent one. That is a useful rule for reading a supply’s noise specification. Two rails whose noise densities differ by a quarter, both of them perfectly respectable, couple the timing and the core by a fifth.
The lower line, a single period at β = 0.5, sits under the upper one everywhere, and the seeded dots — taken at two hundred periods — sit on the upper. Anyone measuring the correlation cycle by cycle on a time-interval analyser and reading it as the burst’s would underestimate it, by a factor of two at the light hysteresis a low-jitter design tends to choose.
Forty thousand bursts that fail together
The question that matters is the one the symmetric essay settled in the negative: whether a burst that fails one way is more likely to fail the other. It was answered there by running bursts against twenty-five pairs of limits and comparing the share failing both against the product of the shares failing each. The same test at k = 1.5 is no longer null.
The five pairs with equal percentiles all sit above the diagonal, and the departure grows proportionally where both limits are tight. Where half of all bursts fail each way the excess is a modest share of a large rate; at the 98th percentiles 0.14% do, three and a half times the 0.04% a designer who treated the two as independent would budget. The joint tail is where a correlation shows, because a burst that has wandered far in one walk has done so mostly through its sum of draws, and that sum is also most of the other walk when one threshold dominates.
The burst length here is a hundred periods where the symmetric test used two hundred, which changes nothing that matters: the coupling has reached its limit by then, as the count figure showed, and the shorter burst lets forty thousand of them be run at the same cost.
Why the damage is squared
At a small asymmetry the coupling is small, but it does not follow that the joint failure rate moves in proportion. Both failures are two-sided. A timing walk that leaves its band low counts the same as one that leaves high, and so does the core. A positive correlation makes “both high” and “both low” more likely, and it makes “one high, one low” less likely by the same amount to first order. Summed over the four corners, the first-order terms cancel, and the joint rate moves with the square of the correlation.
The lines are a clean calculation: two normal variables, correlated by , each judged against a two-sided limit set at the stated rate. With 5% failing each way the joint rate is 1.095 times the product at a tenth’s asymmetry and 2.57 times at half again. With 1% failing each way the tail is further out and the lift larger: a tenth’s asymmetry adds 25% to the joint rate, rather than 9.5%.
The dots are the real thing — the peaks of the two walks, not their end values — and they sit below the lines, measurably so at k = 1.5 and 2. A peak is set at whatever moment a walk is furthest out, and the two walks need not be furthest out at the same moment; the correlation of two peaks is weaker than the correlation of the two end values from which the line is computed. The endpoint calculation is therefore a ceiling on the lift, and a convenient one: it needs no simulation, and it errs on the side a margin budget should.
The data sheet a designer would need
This was the question the symmetric essay left: how large must the asymmetry be before the joint failure departs measurably from the product, for a burst of stated length? The arithmetic has three parts. The excess joint rate is ; its standard error over N bursts is about ; and to see it at three standard errors needs
At 5% failing each way and a tenth’s asymmetry that is about 438,000 bursts; at 1% each, 1.8 million. At half again it is 3,700. The square law is what makes the gap so wide: a correlation four times smaller gives an excess some sixteen times smaller and needs over a hundred times as many bursts to see.
Read as a specification, the result is reassuring in the same way the symmetric one was, with a stated limit. A comparator whose two thresholds carry noise within ten or fifteen per cent of each other — which covers most designs where both rails come from the same kind of regulator — couples its two failures by a correlation of the same size, and the margin that coupling double-counts is a few per cent of a few per cent. Budgeting the two failures separately remains right. A design that takes its positive rail from a linear regulator and its negative rail from a charge pump with three times the noise is a different design: at k = 3 the two walks are correlated by 0.8, the joint failures are eight times the product at 5% each, and the failure budget should be written as one event with two faces.
Asymmetry of another kind
The other asymmetry the symmetric essay named is in the ramps rather than the noise. Unequal rails give the two halves different slopes at their thresholds, and with them different A and B in each half. The calculation is the same one with four sensitivities instead of two, and it leaves the same structure: every interior draw weighed by the sum of its two sensitivities in the timing and by their difference in the imbalance. The long-burst correlation is then the covariance of with over the two kinds of draw, and in general it is non-zero even with equal noise, because the two kinds of draw now carry different ratios of difference to sum.
A comparator skew of the kind the delay that is two delays measured is not this. It shifts each half by a constant and adds no variance, so it ramps the imbalance walk, as the count a core survives found, and leaves the covariances untouched. The drift and the coupling are two separate effects, and a burst can have both.
What the leak does to the coupling
A real core has a winding resistance, and the spread a winding resistance holds showed that it turns the imbalance walk into a stationary spread: the flux forgets an imbalance after a few L/R times. Under that leak the imbalance is an exponentially weighted sum of recent draws, while the timing is still a plain sum of all of them. The covariance between the two then stops growing once the burst outlasts the leak’s memory, and the correlation, divided by a timing spread that keeps growing, falls as one over the square root of the burst length.
So the coupling found here is strongest exactly where the symmetric result was most comfortable: an ideal or nearly ideal core, whose imbalance remembers the whole burst. With a short leak the asymmetry still couples each L/R window’s worth of the timing to the flux, but a long burst’s timing failure is decided mostly by periods the flux has forgotten. How quickly that dilutes the joint tail is a march with the leak and the asymmetry together, and is the natural next measurement.
The numbers worth keeping
The per-period covariance is , and over N periods it is exactly N times that. The long-burst correlation is with , the same at every hysteresis: 0.095 at a tenth, 0.385 at half again, 0.600 at twice. One period reads less, by a factor that depends on β — 0.192, 0.338 and 0.380 at β = 0.2, 0.5 and 0.8 for k = 1.5. Forty thousand bursts at k = 1.5 fail both ways 2.05 times as often as the product at 5% each, against a ceiling of 2.57 from the end values, and at the 98th percentiles 0.14% against 0.04%. The excess joint rate grows as the square of the asymmetry, so seeing a tenth’s asymmetry at 5% would take some 438,000 bursts, and 3,700 at half again. The window the square-root law has made the general point: what the long run sees is decided by which covariances grow with the count, and here, unlike in the symmetric oscillator, one of them does.
Still open: the leaking core, a noise with memory, and the rails measured
The coupling under a leak. With winding resistance the imbalance forgets and the timing does not, so the burst-level correlation should fall as the burst outruns L/R. The rate at which the joint failure tail returns to the product, as a function of L/R in periods, would say which cores can ignore a comparator’s asymmetry and which cannot. The walk that stops has the leak’s own arithmetic.
A noise with memory. A comparator whose input noise is correlated over more than a half cycle carries part of each draw into the next, so consecutive draws from opposite thresholds are no longer independent. That couples the sum and the difference even with equal spreads, and whether its effect on the burst grows with the count, as the asymmetry’s does, or stays bounded, as the symmetric lags did, is the next comparison on the same weights.
The rails as measured. The rail mechanism puts the asymmetry on a supply’s noise density, integrated over the comparator’s input bandwidth and scaled by β. Taking a linear regulator’s and a charge pump’s real spectra would put a number on k for a common pair of supplies, and say whether the joint tail of a typical burst-mode drive is an independent pair of failures or one failure seen twice.
Part 9 on hysteresis
One argument about Hysteresis, and one of 9 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.
ComparatorDuty cycleMonte carloPeriod jitterRandom walkRelaxation oscillatorSeeded generatorVolt-seconds
- The average an integrator can hold monte carlo, random walk, seeded generator
- A jitter that grows with the look period jitter, seeded generator
- How many relaxations a settling curve holds monte carlo, seeded generator
- The average that is not N times quieter monte carlo, seeded generator
- The average the noisy parts rule monte carlo, seeded generator
- The cure that needs one current monte carlo, seeded generator