Measurement, which is a circuit on a circuit

The temperature a cancelled input is best at

An amplifier that cancels its input current leaves a residue at each pin, and the residue is the difference of two currents that drift: the base current and the replica that cancels it. Matched to 2 per cent at 300 K and tracking temperature to an exponent 0.1 apart, the residue passes through zero at ln(T₀/300) = ln(1 + ε)/Δn — a ratio of two small numbers, so across 4000 seeded parts the crossing is Cauchy-distributed, 53.4 per cent of them inside 250 to 400 K against the law's 54.2, with no mean crossing temperature at all. Only 8 per cent of parts are best within 5 K of room temperature. A room-temperature reading predicts the worst over the range with a correlation of 0.64, and the best tenth at 300 K is only a third better over it. A trim at 300 K removes the error there and none of the drift: by 368 K the trimmed population is only √2 better than the untrimmed, where |ln(T/300)| = σε/σΔn.

Assumes: The current the instrument draws · Two millivolts a kelvin, and the wrong sign

The cure that needs one current found that balancing the resistances an amplifier’s inputs look into helps only when the two input currents share more than half of what they are. On a plain bipolar input they share nearly all of it, since both pins draw one base current through matched transistors, and the cure is worth a factor of ten. On a bias-cancelled input, where a matched current is injected back into each pin so that what flows is the residue of a cancellation, the two pins’ residues are nearly independent and the cure makes the error 38 per cent worse. All of that was measured at one temperature.

A residue is a difference, and a difference of two things that drift is a thing that can change sign. That essay closed on the consequence: over a temperature range a cancelled input’s error has a minimum that room-temperature data does not predict, and its location varies from part to part. This essay puts numbers on both halves of that sentence, and the second half turns out to be stronger than “varies”. The temperature at which a part is best has a distribution with no typical value.

Twelve bias-cancelled inputs from 250 to 400 K: 7 of them change sign inside the range, at temperatures no two share. computed by solving, not by drawing: the residue at one input of twelve seeded parts, I₀(T/300)^−1.5·[1 − (1 + ε)(T/300)^−Δn], with an uncancelled base current I₀ = 2 nA at 300 K, a cancellation accurate to ε (2% rms) at 300 K and a replica whose temperature exponent differs by Δn (0.1 rms). At 300 K the residues are −31 pA to 51 pA; 7 parts pass through zero between 250 and 400 K, at 258, 276, 287, 305, 310, 311, 345 K. A part's error in a 1 MΩ source is that current times a megohm — the solved stage agrees to two parts in a thousand — so each part has its own temperature of least error, and room temperature is not it.
Fig. 1 The residue at one input of twelve seeded bias-cancelled parts, from 250 to 400 K: an uncancelled base current of 2 nA at 300 K falling as T−1.5T^{-1.5}, cancelled to 2% rms at 300 K by a replica whose temperature exponent differs by 0.1 rms. At 300 K the residues run from −31 to 51 pA. Seven of the twelve pass through zero inside the range, at 258, 276, 287, 305, 310, 311 and 345 K.

A residue made of two currents

The model has one physical idea in it. A bipolar input draws a base current, the collector current divided by the transistor’s current gain, and the current gain rises with temperature — roughly as the absolute temperature to the 1.5 — so the base current falls as T−1.5T^{-1.5}. A cancelling circuit makes a copy of that current with a replica transistor and feeds it back into the pin. The copy is not perfect in two separate ways. At room temperature it is off by a fraction ε\varepsilon, a matching error; and its own temperature law is not quite the input transistor’s, because the replica sits at a different current density or a different place on the die, so it follows T−(1.5+Δn)T^{-(1.5 + \Delta n)}. Each pin’s residue is then

r(T)=I0(T300)−1.5[1−(1+ε)(T300)−Δn],r(T) = I_0\left(\frac{T}{300}\right)^{-1.5}\left[1 - (1 + \varepsilon)\left(\frac{T}{300}\right)^{-\Delta n}\right],

with I0=2I_0 = 2 nanoamperes the uncancelled current at 300 kelvin. Across a population ε\varepsilon is drawn with a spread of 2 per cent and Δn\Delta n with a spread of 0.1, independently and from a seeded generator so the parts are the same parts every time. At room temperature that gives residues of about 40 picoamps rms, a fiftieth of the base current and of either sign, which is what a bias-cancelled data sheet typically quotes.

The hero figure draws twelve of them. At 300 kelvin they run from −31 to 51 picoamps. Across the range they fan out, some growing, some shrinking, and seven of the twelve pass through zero somewhere between 250 and 400 kelvin, each at its own temperature. Through a megohm source each picoamp is a microvolt of error — the solved stage agrees with that product to two parts in a thousand — so each of those seven parts has a temperature at which it puts no error into the source at all, and for none of them is that room temperature.

Where each part changes sign

The residue is zero where (T/300)Δn=1+ε(T/300)^{\Delta n} = 1 + \varepsilon, which is

ln⁡T0300=ln⁡(1+ε)Δn≈εΔn.\ln\frac{T_0}{300} = \frac{\ln(1 + \varepsilon)}{\Delta n} \approx \frac{\varepsilon}{\Delta n}.

The crossing temperature is set by the ratio of the two mismatches: the room-temperature error over the temperature-law error. That is a ratio of two independent quantities each centred on zero, and the ratio of two independent zero-mean normal variables is not a normal variable. It is a Cauchy variable, with a scale equal to the ratio of the two spreads.

Where 4000 bias-cancelled parts change sign: 53.4% of them between 250 and 400 K, spread as a Cauchy law that has no typical value. computed by solving, not by drawing: the temperature at which each of 4000 seeded parts' residue passes through zero, bisected on the residue (bars, 10 K wide), against the density of ln(T*/300) = ε/Δn for ε and Δn independent zero-mean normals — a Cauchy law of scale σε/σΔn = 0.20 (line). 53.4% of the parts cross between 250 and 400 K, where the law says 54.2%; half the parts cross between 246 and 366 K (the law's 50%), and the rest are spread over a tail so wide that a mean crossing temperature does not exist. Every crossing sits at ln(1 + ε)/Δn exactly. The crossing is a ratio of the two things a data sheet would quote separately, and the ratio of two small numbers is not small.
Fig. 2 The temperature at which each of 4000 seeded parts’ residue changes sign, bisected on the residue (bars, 10 K wide), against the Cauchy law for ln⁡(T0/300)\ln(T_0/300) with scale σε/σΔn = 0.20 (line). 53.4% of the parts cross between 250 and 400 K, where the law says 54.2%; half of them cross between 246 and 366 K, and the rest are spread over tails too wide to have a mean.

Four thousand parts, each crossing found by bisecting its own residue, fill the histogram, and the Cauchy law with scale 0.20 sits on it. Of the 4000, 53.4 per cent cross between 250 and 400 kelvin, where the law says 54.2. Half of them cross between 246 and 366 kelvin. Every bisected crossing sits at ln⁡(1+ε)/Δn\ln(1 + \varepsilon)/\Delta n to six figures, which is the check that the bisection and the closed form are describing the same parts.

The Cauchy law is the part worth carrying. It has no mean and no variance: its tails fall so slowly that the average crossing temperature of a sample does not settle down as the sample grows. There is no “typical” temperature at which these parts are best, and a data sheet that quoted one would be quoting the median of a distribution whose spread cannot be summarised by a standard deviation. The parts whose temperature mismatch happens to be very small have crossings far outside any operating range; the parts whose room-temperature match happens to be very good cross close to room temperature; and both kinds come out of the same production line in proportions the ratio of spreads decides.

The law also says how rare it is for a part to be best where it is tested. Its probability of a crossing within ten kelvin of room temperature, from 290 to 310, is [arctan⁡(ln⁡310300/0.2)−arctan⁡(ln⁡290300/0.2)]/π[\arctan(\ln\tfrac{310}{300}/0.2) - \arctan(\ln\tfrac{290}{300}/0.2)]/\pi, about 10.5 per cent. One part in ten is at its best near the bench; the other nine have their zero somewhere else, or nowhere in the range at all, and the room-temperature reading of each of them is a sample from the slope of its residue rather than from its floor.

What a room-temperature reading says

A part’s room-temperature residue is the number anyone can measure cheaply, and the natural hope is that a small one predicts a small error over the range. It predicts some of it.

What a room-temperature measurement says about the worst over 250–400 K, for 600 parts: a correlation of 0.64, and the best tenth at room temperature is only 33% better over the range. computed by solving, not by drawing: for each of 600 seeded bias-cancelled parts, the size of its residue at 300 K against the largest size it reaches between 250 and 400 K. The correlation is 0.643. A part screened to the best tenth at 300 K has a mean worst residue of 46 pA against 68 pA for all parts, 33% lower. Only 8.0% of the parts have their least error within 5 K of room temperature. The worst over a range is set by the replica's temperature mismatch Δn, which a single-temperature measurement cannot see, and the parts that read nearly zero at 300 K are often the ones crossing there — on their way to an error of the other sign.
Fig. 3 For 600 seeded parts, the size of the residue at 300 K against the largest size it reaches between 250 and 400 K. The correlation is 0.643. Parts in the best tenth at 300 K have a mean worst residue of 46 pA against 68 pA for all parts. Only 8.0% of parts have their least error within 5 K of room temperature.

The correlation between the two is 0.643. A part screened to the best tenth at room temperature has a mean worst residue over the range of 46 picoamps, against 68 for the population: a third better, where a screen at the operating extremes would have done far more. And only 8.0 per cent of the parts have their least error within five kelvin of room temperature, so for more than nine in ten the room-temperature reading is not even the best the part does.

The reason is that the worst over a range is set mostly by the temperature mismatch Δn\Delta n, which a single-temperature reading cannot see at all. A part that reads nearly zero at 300 kelvin is either a part with a very small ε\varepsilon — which says nothing about its Δn\Delta n — or a part crossing zero near room temperature on its way to an error of the other sign. What a ratio does not see found the same blindness in a resistor divider: a measurement that cancels the shared part of an error is blind to exactly that part, and a single-temperature measurement cancels every temperature-dependent part by holding the temperature still.

What a trim at room temperature buys

The engineering response to a room-temperature error is to trim it. A trim at 300 kelvin sets each part’s ε\varepsilon to zero, so its residue there vanishes, and the question is what is left across the range.

A trim at room temperature removes the cancellation's error there and none of its drift: by 368 K the trimmed population is only √2 better, and at 400 K 1.23 times. computed by solving, not by drawing: the rms residue over 2000 seeded parts, untrimmed (dashed) and after a trim at 300 K that sets each part's ε to zero (solid), against temperature. Untrimmed the rms is 40 pA at 300 K and 47 pA at 400 K; trimmed, zero at 300 K and 38 pA at 400 K. The trim's advantage falls to √2 at 248 and 368 K, where |ln(T/300)| = σε/σΔn = 0.20 predicts 246 and 366: beyond those temperatures the replica's temperature mismatch is the larger of the two errors, and a trim cannot reach it.
Fig. 4 The rms residue over 2000 seeded parts, untrimmed (dashed) and after a trim at 300 K that sets each part’s matching error to zero (solid). Untrimmed, 40 pA at 300 K and 47 at 400 K; trimmed, zero at 300 K and 38 at 400. The trimmed population is only 2\sqrt2 better than the untrimmed at 248 and 368 K, where |ln(T/300)| = σε/σΔn predicts 246 and 366.

What is left is the temperature mismatch alone: I0(T/300)−1.5[1−(T/300)−Δn]I_0(T/300)^{-1.5}[1 - (T/300)^{-\Delta n}], zero at room temperature and growing either way. Untrimmed, the population is 40 picoamps rms at 300 kelvin and 47 at 400; trimmed, zero at 300 and 38 at 400. The trim’s advantage, infinite at the trim temperature, falls to a factor of 2\sqrt2 at 248 and 368 kelvin — the temperatures at which the two mismatches contribute equally, ∣ln⁡(T/300)∣=σε/σΔn|\ln(T/300)| = \sigma_\varepsilon/\sigma_{\Delta n}, which predicts 246 and 366. At 400 kelvin it is a factor of 1.23.

So a trim at room temperature is worth having over a band about as wide as the Cauchy law’s scale, roughly 250 to 365 kelvin for these spreads, and nearly worthless beyond it. It is a trim at one temperature in the most literal sense. A part used across a wide range would need a second trim at a second temperature to remove Δn\Delta n, which is exactly what precision references and some precision amplifiers do, and is why a two-temperature trim costs more than twice a one-temperature one.

How many parts cross, and why it is not a defect

The share of parts crossing inside the range depends on one number, the ratio of the two spreads.

How many parts change sign inside 250–400 K, against how good the cancellation is at room temperature compared with how well it tracks: the better the trim, the more parts cross. computed by solving, not by drawing: for 3000 seeded parts at each of six ratios σε/σΔn, the share whose residue passes through zero between 250 and 400 K (dots), against the Cauchy law (atan(ln(400/300)/γ) − atan(ln(250/300)/γ))/π with γ the ratio (line). 0.05: 86.3%, 0.1: 74.2%, 0.2: 53.9%, 0.4: 32.2%, 0.8: 18.2%, 1.6: 9.3%. A cancellation that is very accurate at room temperature but tracks poorly — a small ratio — puts nearly every part's zero inside the range, 92% at 0.03; one that tracks well and is trimmed loosely puts few there. A crossing is not a defect: it is where a part is best. What it costs is that the part's error has opposite signs at the two ends of the range.
Fig. 5 For 3000 seeded parts at each of six ratios σε/σΔn, the share whose residue changes sign between 250 and 400 K (dots), against the Cauchy law (line): 86.3% at 0.05, 74.2 at 0.1, 53.9 at 0.2, 32.2 at 0.4, 18.2 at 0.8, 9.3 at 1.6. A cancellation accurate at room temperature that tracks poorly puts nearly every part’s zero inside the range.

The better the room-temperature match is compared with the temperature tracking, the more parts cross inside the range: 86.3 per cent at a ratio of 0.05, 74.2 at 0.1, 53.9 at 0.2, down to 9.3 per cent at 1.6, each on the Cauchy law’s [arctan⁡(ln⁡400300/γ)−arctan⁡(ln⁡250300/γ)]/π[\arctan(\ln\tfrac{400}{300}/\gamma) - \arctan(\ln\tfrac{250}{300}/\gamma)]/\pi. That runs against intuition only until the crossing is seen for what it is. A crossing is not a defect; it is the temperature at which a part is best. What it costs is that the part’s error has opposite signs at the two ends of its range, so an offset compensation fitted at one end is wrong in sign at the other, and a system that calibrates its offset once and expects it to drift monotonically will be surprised by about half the parts it is built with.

The ratio is also a design choice. A cancellation that is trimmed very accurately at room temperature and whose replica tracks poorly — a small ratio — produces parts nearly all of which cross somewhere in the range, at Cauchy-scattered temperatures. One that tracks well and is left untrimmed produces parts whose residues mostly keep one sign. Neither is better in every respect: the first is better at room temperature and the second is more predictable across it.

An integrator that drifts both ways

The case in which this matters most is the one where a current is integrated rather than dropped across a resistance. The current a capacitor adds up found an amplifier’s input current in an integrator’s capacitor becoming a rate, with time as the gain: a microfarad turns each picoamp into a microvolt a second at the output, and a few tens of picoamps into a drift that fills the output in hours rather than days. A bias-cancelled input is chosen for exactly that circuit, because its residue is a fiftieth of a plain input’s.

With the residue crossing zero, the integrator’s drift rate crosses zero too, at the part’s own crossing temperature. A system that measures its integrator’s drift at power-up and subtracts it — a common way to extend an integration — has measured it at whatever temperature the instrument was switched on at, and the correction is wrong by the change in residue since. For the parts whose crossing lies inside the operating range, the correction changes sign within the range: a drift subtracted at 290 kelvin can be a drift of the other sign at 330. A correction that is linear in temperature does better, because the residue’s main temperature term is Δnln⁡(T/300)\Delta n\ln(T/300) and a linear correction removes it to first order, leaving its curvature.

Why the tails decide the specification

A data sheet that quotes a typical and a maximum input current is describing a distribution with two numbers, and the shape a tolerance does not print found how much of a circuit’s behaviour hangs on the shape behind those numbers. Here the shape is a Cauchy law in the logarithm of the crossing temperature, and the part of it a specification cares about is its tails. A part with a tiny temperature mismatch is a perfectly good part — its residue barely changes across the range — and it is also the part whose crossing is far outside any range. A part with a tiny room-temperature mismatch is also good, and crosses near room temperature. The parts that are bad over a range are the ones with a large Δn\Delta n, and they are bad whatever their ε\varepsilon.

So a maximum residue quoted at 25 °C screens the wrong variable, and a maximum quoted over the full temperature range screens the right one but cannot be measured at one temperature. The tolerance that is not on any part found a divider whose worst case, spread and root-sum-square were three different numbers; a cancelled input has a fourth, the worst over temperature, and it is the only one of the four a room-temperature test cannot bound.

The balancing resistor, across temperature

The earlier essay’s result applies at every temperature separately: with the two pins’ residues nearly independent, balancing the source resistances makes the error worse by about 2\sqrt2. Across temperature it does something more awkward. Each pin’s residue has its own crossing, so the difference between the pins — which is what a balanced stage sees — crosses at a third temperature, set by the difference of the two pins’ mismatches rather than by either. A balanced stage is best where the two residues happen to be equal, an unbalanced one where the non-inverting pin’s happens to be zero, and the two temperatures are unrelated. The cure that becomes a different circuit found the balancing resistor changing what the circuit is; across temperature it changes when the circuit is at its best.

That is one more reason the balancing resistor belongs with plain bipolar inputs. On those, the two pins share one base current and one temperature law, the difference between them drifts in proportion to the current itself, and the classical rule that the current the instrument draws measured holds at every temperature by the same factor. A cancelled input is two separate cancellations, each with its own temperature of least error.

What the model leaves out

The residue has two mechanisms: a matching error and a difference in temperature exponent. A real cancelled input has others. The protection diodes at each pin leak, and their leakage roughly doubles every ten kelvin — the same kind of current the current that does not reach the input guarded against on the board side of the pin — so above some temperature a leakage current of fixed sign takes over and every part’s residue turns the same way; that would add a third, exponential term and make the hot end of the range more predictable rather than less. The base current’s own law is taken as a pure power of temperature, which is a fit. The residue is taken as independent of the input’s common-mode voltage, where a real one depends on it. And the population’s two mismatches are taken as uncorrelated, which a production process need not honour: if a part’s room-temperature error and its temperature error come from one physical cause, the ratio is no longer a ratio of independent normals and the Cauchy tails shrink.

The number to keep

A bias-cancelled input’s residue is the difference of two drifting currents, and it changes sign where ln⁡(T0/300)=ln⁡(1+ε)/Δn\ln(T_0/300) = \ln(1 + \varepsilon)/\Delta n, the room-temperature mismatch over the temperature-law mismatch. Across a population that ratio is Cauchy-distributed, with scale σε/σΔn\sigma_\varepsilon/\sigma_{\Delta n}: at 2 per cent and 0.1, half of all parts cross between 246 and 366 K, 53.4 per cent between 250 and 400, and the mean crossing does not exist. Only 8 per cent are best within 5 K of room temperature. A room-temperature reading predicts the worst over the range with a correlation of 0.64, and a room-temperature trim is worth only 2\sqrt2 beyond ∣ln⁡(T/300)∣=σε/σΔn|\ln(T/300)| = \sigma_\varepsilon/\sigma_{\Delta n}.

Still open: the leakage that takes over, the common-mode voltage, and the noise of a cancelled input

The leakage that takes over at the hot end. A pin’s protection diodes leak a current of fixed sign that roughly doubles every ten kelvin. Added to the residue, it gives every part a temperature above which its error has the leakage’s sign whatever its cancellation did, and that temperature has a distribution of its own. Where it lands against the Cauchy crossings would say whether a hot-end specification is set by the cancellation or by the diodes.

A residue that depends on the input voltage. A cancelled input’s residue usually varies with the common-mode voltage, because the replica sits at a different collector-base voltage from the input transistor. In a follower that turns the offset into a nonlinearity, and with a crossing in it the nonlinearity has a zero at an input voltage that moves with temperature.

The noise currents’ correlation. A bipolar input’s two noise currents share part of the tail current’s shot noise; a cancelled input’s do not, and the cancelling current adds shot noise of its own. The population method applied to noise rather than offset would say whether cancellation, which removes most of the mean current, removes any of its noise — or doubles it.

Part 5 on input bias current

One argument about Input bias current, and one of 6 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What balancing the source resistances is worth, against how correlated the two input currents are, for a bias-cancelled input. computed by solving, not by drawing; 400 seeded parts at each correlation, each solved unbalanced and balanced at a 1 MΩ source, input currents of zero mean and 1 nA spread. The ratio of rms errors (dots) follows 1/√(2(1 − ρ)) (line): 0.72 for independent currents — balancing makes it 38% worse — one at ρ = ½, and 6.5 at 0.99. The cure removes what the two currents share, and is a cure only if they share more than half. The cure that needs one current Part 4 — Balancing the resistances an amplifier's inputs look into removes whatever its two input currents have in common and leaves their difference. On a plain bipolar input the two are one current at two pins, correlated at 0.991, and the cure is worth ten. On an input whose bias current has been cancelled they are two residues of either sign, correlated at 0.10, and over 400 seeded parts the cure makes the error 38 per cent worse. It is worth 1/√(2(1 − ρ)) for a zero-mean current, nothing at ρ = ½, and in general exactly the input current over the offset current. Cancelled from 20 nA to 1.0 nA, a pin carries 112 fA/√Hz of current noise — √2 more than before cancelling, and 6.2 times a pin that truly draws 1.0 nA. computed by solving, not by drawing: the shot-noise density of a bipolar input whose 20 nA base current is cancelled by a replica, against the net current left at the pin, beside an uncancelled pin drawing that net current (line). The two streams are independent, so their noise adds in power while their means subtract: 0.40 nA net, 113 fA/√Hz; 1.0 nA net, 112 fA/√Hz; 2.0 nA net, 110 fA/√Hz; 4.0 nA net, 107 fA/√Hz; 10 nA net, 98.0 fA/√Hz; 20 nA net, 80.1 fA/√Hz, against √(2qI) of 11.3 fA/√Hz, 17.9 fA/√Hz, 25.3 fA/√Hz, 35.8 fA/√Hz, 56.6 fA/√Hz, 80.1 fA/√Hz. Held against differenced Poisson counts of the two streams over 40,000 windows of 1 µs (dots), which agree to three per cent at every point. Cancellation takes away the mean and leaves the noise of twice the base current. The noise a cancelled input keeps Part 6 — A bias-cancelled input supplies its transistor's base current from a replica, so the pin draws only the difference — 1 nA out of 20, on the datasheet. The two currents are independent streams of charge, so their means subtract and their shot noises add: the pin carries 112 fA/√Hz, √2 more than the same transistor uncancelled and 6.2 times a pin that truly draws 1 nA. Seeded counts of the two streams, differenced, give the same density to three per cent. Behind a megohm the cancelled input reads 169 nV/√Hz, the noisiest of the three, and its current noise overtakes the source's own Johnson noise at 1.28 MΩ, where the 1 nA its bias suggests would take 50. The comparison that fits is with the older cure: an uncancelled input balanced by a resistor on its other pin also sets a second stream of the base current against the first, carries almost exactly the same current noise, and adds the resistor's Johnson noise besides.

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.

Device mismatchInput bias currentMeasurement conditionMonte carloOffset voltageSeeded generatorTemperature coefficient