Measurement, which is a circuit on a circuit

The rejection the parts have

Two essays measured the architecture: four resistors decide an instrumentation amplifier's rejection, two do not, and the answer is the one-amplifier figure plus twenty log of the first stage's gain — exactly, with amplifiers of infinite rejection. Give each amplifier its own and something unobvious happens: two matched but individually mediocre parts cost nothing at all, because their error is a common-mode signal at the difference stage and is rejected there. What costs is the difference between them, and it sets a ceiling with no gain in it.

Assumes: The rejection four resistors decide · What a pair cancels, and what it only halves

Two essays in this field have measured how well an instrumentation amplifier rejects what is common to both its inputs, and both were about the arrangement.

The first found that a one-amplifier difference stage’s rejection is (1+G)/4t(1+G)/4t and contains nothing of the amplifier at all: four resistors decide it, and one-tenth-per-cent parts give 54 decibels — a factor of five hundred rather than a removal. The second found that putting a two-amplifier stage in front works for a reason that is not the obvious one. The input stage passes a common-mode voltage at exactly unity and a differential one at 1+2Rf/Rg1 + 2R_f/R_g, so the difference stage’s common-mode gain is untouched — 2.00 millivolts per volt at every gain — and the whole improvement is the differential signal being larger when it arrives. Rejection is therefore the one-amplifier figure plus 20logG120\log G_1, exactly, and the two resistors that set the gain need not match at all.

Every number in both was computed with amplifiers whose own rejection is infinite. That is a statement about an arrangement. This essay puts the parts in.

Matched parts cost nothing; a 2 dB difference between them sets a 112 dB ceilingcomputed by solving, not by drawing. The common-mode rejection of a three-amplifier instrumentation amplifier against the gain of its input stage, with each amplifier's own rejection in the netlist as an input-referred error of the common-mode voltage over the rejection. The architecture's own figure rises decibel for decibel with the gain, because the difference stage sees a larger differential signal beside the same common-mode one. The parts' contribution does not rise with anything, and the part of it that matters is not their rejection but the difference between their rejections: two amplifiers of 98 dB that are identical cost 0.000 dB, while 100 dB against 98 dB leaves a ceiling of 111.7 dB with no gain in it. The two mechanisms cross: below a gain of 1903 the four resistors decide everything, and above it more gain buys no more rejection at all — 111.9 dB at a gain of 100000, where the arrangement alone would have been worth 148. The one place the instrument beats its own floor is a gain of 1000, where the two errors cancel; that is a coincidence of signs and not something a design can hold.4060801001201401101001k10k100kgain of the input stagecommon-mode rejection (dB)the parts' floor: 111.7 dB3 dB short at a gain of 1903the arrangement, and the instrumentresistor tolerance0.10%amplifier 1100 dBamplifier 298 dBmatched pair costs-0.000 dBthe mismatch leaves111.7 dBgain of 1074.0 dBbest, at a gain of1000…which is125.1 dB3 dB short ata gain of 1903…and flat above it111.7 dBsolved, then checked — the amplifiers' own rejection, in the netlistnothing above 112 dB, at any gain
Fig. 1 The rejection of the whole instrument against the gain of its input stage, with each amplifier’s own rejection in the netlist. The architecture’s contribution rises decibel for decibel; the parts’ does not rise with anything, and above a gain of about two thousand it is all there is.

Where an amplifier’s own rejection goes in a netlist

A real amplifier’s output is not A(v+v)A(v_+ - v_-). It is A(v+v)+AcmvcmA(v_+ - v_-) + A_\mathrm{cm}\,v_\mathrm{cm}, and the ratio A/AcmA/A_\mathrm{cm} is what a data sheet calls its common-mode rejection.

Written that way it is a property of the amplifier’s transfer function, which is awkward to put in a netlist. Written the other way it is an input quantity: the same behaviour is produced exactly by a perfect amplifier with an error voltage of vcm/CMRRv_\mathrm{cm}/\mathrm{CMRR} in series with its non-inverting input. That is where it goes here — a dependent source whose control is the very input it is in series with, which keeps the netlist linear, keeps the amplifier model untouched, and means the error is solved along with everything else rather than added to the answer afterwards.

It is the same move the instruments field makes with every other instrument it measures: the thing that does the measuring goes into the circuit as an element, and every reading is a reading of the circuit that includes it. A probe is a capacitance with a bandwidth; an ammeter is a resistance; an amplifier’s imperfect rejection is a source in series with its input.

Two probes on a 2.0 kΩ source. computed by solving, not by drawing twice per frequency: the node alone, and the node with the probe's elements across it. The one-to-one probe's 115.0 pF makes the reading one per cent wrong at 6.79 kHz. The ten-to-one probe puts 12.8 pF in series with the cable, so its tip sees 11.5 pF and the same error arrives at 69.2 kHz — 10 times further up, bought with a factor of ten in signal — the two edges stand in the ratio of the tip capacitances, 10.00. At direct current neither probe is capacitive at all and the ten-to-one still reads 0.02% low, because 10 MΩ across 2.0 kΩ is a divider.
Fig. 2 The field’s founding move, applied to a different instrument: the probe goes into the netlist and every reading is a reading of the circuit that includes it.
A first stage of 100 buys 40.0 dB of rejection, and gives it back above 10.0 kHz. computed by solving, not by drawing. The rejection of a three-amplifier instrumentation amplifier against frequency, beside the one-amplifier difference stage it is built around. At low frequency the two differ by 39.99 dB against 20 log 100 = 40.00 dB, and the reason is that the input stage passes a common-mode voltage at exactly unity: the common-mode gain of the whole instrument is 1.998 mV/V, which is the difference stage's own. So the four resistors around the last amplifier decide the rejection and the two that set the gain do not — ten per cent between them moves it by less than a hundredth of a decibel. What ends it is bandwidth: above 10.0 kHz, which is the amplifier's gain–bandwidth divided by the gain that bought the rejection, the differential gain falls and the rejection falls with it at twenty decibels a decade.
Fig. 3 The rung below, on the same netlist: rejection against frequency at one gain, where what ends it is the input stage running out of loop gain above the gain–bandwidth divided by the gain that bought the rejection.

Matched parts cost nothing at all

The first result is the one that is not obvious from the data sheet, and it is worth stating before any numbers.

Give both input amplifiers the same finite rejection and the instrument’s rejection does not change. Not “changes by a negligible amount”: the measured figure with two 98-decibel parts is 93.971 decibels, and with two perfect ones it is 93.971 decibels.

The reason is in the arrangement rather than in the parts. An error of vcm/CMRRv_\mathrm{cm}/\mathrm{CMRR} at the input of the upper amplifier appears at its output; the identical error at the input of the lower one appears at its output; the two outputs have therefore both moved by the same amount, which is a common-mode signal at the input of the difference stage — and rejecting common-mode signals is what the difference stage is for. It removes them with its own (1+G)/4t(1+G)/4t, exactly as it removes the original common-mode voltage.

So the specification a designer reads on the data sheet of the input amplifiers is not, by itself, in the answer at all. What is in the answer is the difference between the two, and a monolithic instrumentation amplifier has both input amplifiers on one piece of silicon a few hundred microns apart, made in the same process minutes apart, at the same temperature — which is the whole reason such a part exists rather than being assembled from three separate amplifiers.

One exponential and one pair, both driven 20.0 mV. computed by solving, not by drawing. The pair's characteristic is odd, so its even harmonics vanish: the second comes out at 1.5e-16 of the fundamental against 18.88% for the single stage. It is not a small residue but the floor of the arithmetic. The price is the third harmonic, 1.202% against 2.404%, and total distortion of 1.202% against 19.03%.
Fig. 4 The same cancellation in the semiconductor field, where a differential pair removes every even harmonic exactly — one arrangement making two identical imperfections invisible.
Matched parts cost nothing; a 6 dB difference between them sets a 100 dB ceiling. computed by solving, not by drawing. The common-mode rejection of a three-amplifier instrumentation amplifier against the gain of its input stage, with each amplifier's own rejection in the netlist as an input-referred error of the common-mode voltage over the rejection. The architecture's own figure rises decibel for decibel with the gain, because the difference stage sees a larger differential signal beside the same common-mode one. The parts' contribution does not rise with anything, and the part of it that matters is not their rejection but the difference between their rejections: two amplifiers of 94 dB that are identical cost 0.000 dB, while 100 dB against 94 dB leaves a ceiling of 100.0 dB with no gain in it. The two mechanisms cross: below a gain of 488 the four resistors decide everything, and above it more gain buys no more rejection at all — 100.1 dB at a gain of 100000, where the arrangement alone would have been worth 148. The one place the instrument beats its own floor is a gain of 200, where the two errors cancel; that is a coincidence of signs and not something a design can hold.
Fig. 5 A hundred decibels against ninety-four. The floor the mismatch leaves is 100.0 dB and the arrangement is three decibels short of it at a first-stage gain of 488. Matched parts cost nothing at all: two amplifiers with the same finite rejection produce a common-mode error that is itself a common-mode signal at the difference stage, and the difference stage rejects it.

The ceiling the mismatch sets

What the difference between the two amplifiers leaves is a floor, and it is a clean expression:

CMRRfloor=11CMRR11CMRR2\mathrm{CMRR}_\mathrm{floor} = \frac{1}{\left|\dfrac{1}{\mathrm{CMRR}_1} - \dfrac{1}{\mathrm{CMRR}_2}\right|}

with no gain in it, no resistor tolerance, and no frequency. Two parts specified at 100 and 98 decibels — a two-decibel difference, which is nothing at all on a data sheet — give 111.7 decibels and no arrangement of the six resistors around them will do better.

Measured against the netlist, the expression is exact to the ninth decimal place, which is what one expects of a statement that is really about superposition. And it has the shape that makes mismatch specifications so unforgiving: two parts at 80 decibels that differ by one per cent give 120 decibels, while two parts at 120 decibels that differ by a factor of two give 126. Matching matters more than magnitude, by a wide margin, and it is the quantity no discrete amplifier’s data sheet gives.

The consequence for the architecture is a corner. The four resistors’ term rises decibel for decibel with the input stage’s gain; the parts’ term does not rise at all; so the two cross, and above the crossing more gain buys nothing. For the parts here the instrument is 3 decibels short of what the arrangement alone would give at a gain of 1903, and by a gain of 10510^5 it is at 111.9 decibels where the arrangement alone would have been worth 148.

Matched parts cost nothing; a 10 dB difference between them sets a 93 dB ceiling. computed by solving, not by drawing. The common-mode rejection of a three-amplifier instrumentation amplifier against the gain of its input stage, with each amplifier's own rejection in the netlist as an input-referred error of the common-mode voltage over the rejection. The architecture's own figure rises decibel for decibel with the gain, because the difference stage sees a larger differential signal beside the same common-mode one. The parts' contribution does not rise with anything, and the part of it that matters is not their rejection but the difference between their rejections: two amplifiers of 90 dB that are identical cost 0.000 dB, while 100 dB against 90 dB leaves a ceiling of 93.3 dB with no gain in it. The two mechanisms cross: below a gain of 224 the four resistors decide everything, and above it more gain buys no more rejection at all — 93.3 dB at a gain of 100000, where the arrangement alone would have been worth 148. The one place the instrument beats its own floor is a gain of 100, where the two errors cancel; that is a coincidence of signs and not something a design can hold.
Fig. 6 A ten-decibel difference between the two input amplifiers instead of two. The floor drops to 93 decibels and the corner arrives at a gain of about fifty — which is inside the range anybody uses.
Matched parts cost nothing; a 20 dB difference between them sets a 81 dB ceiling. computed by solving, not by drawing. The common-mode rejection of a three-amplifier instrumentation amplifier against the gain of its input stage, with each amplifier's own rejection in the netlist as an input-referred error of the common-mode voltage over the rejection. The architecture's own figure rises decibel for decibel with the gain, because the difference stage sees a larger differential signal beside the same common-mode one. The parts' contribution does not rise with anything, and the part of it that matters is not their rejection but the difference between their rejections: two amplifiers of 80 dB that are identical cost 0.000 dB, while 100 dB against 80 dB leaves a ceiling of 80.9 dB with no gain in it. The two mechanisms cross: below a gain of 54 the four resistors decide everything, and above it more gain buys no more rejection at all — 80.9 dB at a gain of 100000, where the arrangement alone would have been worth 148. The one place the instrument beats its own floor is a gain of 20, where the two errors cancel; that is a coincidence of signs and not something a design can hold.
Fig. 7 A hundred against eighty — a twenty-decibel mismatch. The floor collapses to 80.9 dB and the arrangement reaches within three decibels of it by a gain of 54. The ceiling the mismatch sets is 1/|1/CMRR₁ − 1/CMRR₂| and has no gain in it, so past that gain more of it buys nothing.

What a decibel of rejection is actually worth

The numbers above are large and abstract, so it is worth converting one of them into the quantity a measurement actually loses.

An instrumentation amplifier reading a strain gauge bridge sees perhaps ten millivolts of differential signal sitting on two and a half volts of common mode, which is the bridge’s own excitation divided by two. At 111.7 decibels of rejection the common mode contributes 2.5/3.85×105=6.52.5/3.85\times10^{5} = 6.5 microvolts of apparent differential signal — 650 parts per million of the ten-millivolt full scale, or about ten counts of a fourteen-bit reading.

At the 94 decibels the arrangement alone gives at a gain of a hundred, it contributes 50 microvolts: five thousand parts per million, and eighty counts. At the 54 decibels a bare difference stage manages, it contributes five millivolts — half the signal.

So the ladder this essay ends has taken a measurement from unusable, to usable, to limited by something else. That last part is the point of computing the floor: at 111.7 decibels the rejection has stopped being the thing that decides the reading, and the next term in the error budget — the amplifier’s own offset drift, the bridge’s own excitation stability, the reference — is where the next decibel has to come from.

A number that has stopped mattering is a useful thing to have established, and it cannot be established without knowing where the ceiling is.

The gain at which it beats its own floor, which is a coincidence

There is one feature of the measured curve that is not in the algebra above, and it is worth pointing at because it would otherwise look like a result.

At one particular gain the instrument’s rejection goes above the floor — 125 decibels at a gain of a thousand, against a floor of 111.7 — and stays above it for about a decade of gain before settling back down onto it from above.

That is a cancellation, not a mechanism. The resistors’ error and the parts’ error are two independent contributions with independent signs, and at one gain they are equal and opposite. It is real, it is repeatable for that exact set of components, and it is worth nothing to a designer: the gain at which it happens depends on the sign and size of a resistor mismatch nobody controls to a decade, and building a production run on it would give a spread of rejections from the floor to a hundred and twenty-five decibels with no way to sort them but measurement.

This collection has met the same shape before, in the same field: the two-wire ohmmeter whose lead error and voltmeter loading cancel exactly at one point on a grid. The right response is to name it as a coincidence and to make the claim about the asymptote instead — which is what the figure’s own assertions do.

The two ways a common mode becomes a difference

It is worth separating the two mechanisms that this figure holds in one number, because they fail differently and are fixed differently.

The first is a gain mismatch. The four resistors of the difference stage form two dividers, and if the two ratios are not identical, a voltage applied equally to both inputs arrives at the amplifier’s two inputs unequally. That error is proportional to the common-mode voltage, is flat with frequency until the amplifier runs out of loop gain, and is what (1+G)/4t(1+G)/4t measures.

The second is an amplifier error, and it is not a divider at all: the part responds to the average of its two inputs as well as to their difference, by an amount that is a property of its input stage’s own symmetry — the tail current source’s output impedance, in a bipolar pair, which is exactly the quantity the semiconductor field’s cascode essay is about.

The two enter the answer at different points, which is why they scale differently with gain, and they are both called “common-mode rejection” in the literature — one of a network, one of a device. An instrumentation amplifier’s specification is the combination, measured on the assembled part, and the useful thing about separating them is that only one of the two can be improved without changing parts.

There is a third mechanism that this netlist does not contain and that is often the real one: the source impedances are not identical either, and a common-mode current flowing through unequal source impedances produces a differential voltage before the instrument has seen anything at all. That belongs to the circuit being measured rather than to the instrument, which is why it is not here — but it is the reason a real bridge is driven from a low impedance on both sides.

Which of the three amplifiers matters, and by how much

There are three amplifiers in the arrangement and they do not enter equally.

The difference stage’s own rejection is divided by the first stage’s gain, exactly as the resistor mismatch is, because everything at that stage’s input is being compared with a differential signal that is G1G_1 times larger than it was. An 80-decibel difference amplifier behind a gain of a hundred contributes as an 120-decibel one would alone: measured, it takes the instrument from 93.97 to 93.55 decibels, four tenths of a decibel.

The input amplifiers’ rejection is not divided by anything, because their error is amplified by exactly the gain the signal is. Only their mismatch survives, and it survives in full.

So the design rule that falls out is short and is not what a parts list would suggest. Buy matching in the input stage and magnitude in the difference stage: the input pair must be matched and need not be individually excellent, and the difference amplifier can be an ordinary part because its own error is attenuated by all the gain in front of it. Which is exactly how monolithic instrumentation amplifiers are built, and this is the measurement that says why.

Matched parts cost nothing; a 1 dB difference between them sets a 125 dB ceiling. computed by solving, not by drawing. The common-mode rejection of a three-amplifier instrumentation amplifier against the gain of its input stage, with each amplifier's own rejection in the netlist as an input-referred error of the common-mode voltage over the rejection. The architecture's own figure rises decibel for decibel with the gain, because the difference stage sees a larger differential signal beside the same common-mode one. The parts' contribution does not rise with anything, and the part of it that matters is not their rejection but the difference between their rejections: two amplifiers of 99.5 dB that are identical cost 0.000 dB, while 100 dB against 99.5 dB leaves a ceiling of 124.5 dB with no gain in it. The two mechanisms cross: below a gain of 8889 the four resistors decide everything, and above it more gain buys no more rejection at all — 125.2 dB at a gain of 100000, where the arrangement alone would have been worth 148. The one place the instrument beats its own floor is a gain of 5000, where the two errors cancel; that is a coincidence of signs and not something a design can hold.
Fig. 8 Half a decibel of difference between the two input amplifiers. The floor rises to 124 decibels and the corner moves out past a gain of ten thousand — matching, and not magnitude, is the whole axis.

Why this is the rung that ends the ladder

Three rungs on one instrument, and each measured a different owner of the same number.

The first belonged to the resistors: four of them decide the rejection of a difference stage, one part in a thousand of mismatch gives 54 decibels, and no amplifier appears in the expression. The second belonged to the architecture: putting gain in front multiplies the rejection by exactly that gain, and identifies which two resistors are in the answer and which two are not. This one belongs to the parts, and it is where the sequence has to stop, because what it finds is a term that nothing about the arrangement can reach.

The resistor mismatch can be improved by buying better resistors or by trimming one of them, and the site of the improvement is on the board. The architecture’s term can be improved by moving gain from the difference stage into the input stage, and the site of the improvement is in the schematic. The input amplifiers’ mismatch can be improved only by choosing a different pair of amplifiers, and there is nothing a designer can do at the board or the schematic level that touches it.

That is what makes it a floor in this collection’s sense rather than a term in a budget: it is the quantity that remains when every variable the design controls has been set to its best value, and it is the number a specification should be written against.

Where the floor is met, and what it is spent on

A rejection floor set by the mismatch between two amplifiers is the ceiling on the arrangement measured next door. The four resistors that decide, and the two that do not is that arrangement, where the rejection rises with the first stage’s gain until it meets this floor. The rejection four resistors decide is where the rejection is spent, against a shared return’s common-mode error. The millivolts in the wire is where that error comes from. What a pair cancels, and what it only halves is the same symmetry argument on a single device pair, where the cancellation is exact rather than limited by matching, and The ammeter that is a resistor is the measurement that most often needs all of it.

What is checked

The matched-parts result is asserted as an equality rather than as an inequality: the instrument with two identical finite amplifiers must give the same rejection as one with two perfect ones, to a part in a thousand. The floor is asserted against its closed form to the ninth decimal. The instrument is asserted to have settled onto that floor at the largest gain drawn, whatever the arrangement alone would have given there. The excursion above the floor is asserted to exist and is described as the coincidence it is. And at unity gain the parts are asserted to be invisible, which is the case the rung below measured and is the check that the new elements do nothing where they should do nothing.

What is not measured here: the frequency dependence of a real amplifier’s own rejection, which falls with frequency as its loop gain does and would put a corner on this essay’s floor as well as on the architecture’s; and the input bias currents, whose mismatch flowing in the source impedance is a second mechanism that turns a common-mode voltage into a differential one and which has nothing to do with any amplifier’s rejection at all.

The last of those is not a footnote

The bias-current mechanism named at the end of that list is worth separating from the rest, because it is not a smaller version of what this essay measures — it is a second route from a common-mode voltage to a differential one, with no rejection in front of it at all.

The current the instrument draws is where its size is established, and the framing there is the one this essay needs: an amplifier’s input current is not an idealisation of a small quantity but an idealisation of one whose size is decided by something outside the part. Fifty nanoamps is nothing until it flows in a megohm, and then it is fifty millivolts. What matters here is the mismatch of two such currents flowing in two source impedances that differ, and that essay’s classical cure — balancing the two resistances — removes the bias current and leaves the offset current, worth a factor of ten rather than a thousand, at a cost of forty per cent of the noise density.

Read against the 111 decibels this essay reaches, the arithmetic is uncomfortable. A hundred and eleven decibels is a factor of 350 000, so on a one-volt common-mode signal it leaves under three microvolts. A nanoamp of offset current in a kilohm of source imbalance is a microvolt, arriving as a differential signal that the architecture has no view of — so on any source with an imbalance, the term that this ladder spent three rungs improving is comparable with a term none of the three rungs contains.

The corner the instrument has no part in is the same conclusion arrived at in the frequency domain rather than in the offset budget, and the pairing is worth noticing: the imbalance a source has is the quantity that limits the instrument at direct current through the bias currents and at frequency through the capacitances. It is the one number a data sheet cannot carry, and it decides both ends.

Which puts the three architecture results of this ladder in their place. The rejection four resistors decide establishes what four tenth-per-cent resistors are worth — 53.99 decibels against a closed form’s 53.98, a factor of five hundred and not a removal — and the four resistors that decide, and the two that do not establishes what an input stage adds, exactly twenty times the log of its gain. Both are exact, both are about the instrument, and both are ceilinged by the mismatch measured here and floored by a source imbalance neither of them contains.

Part 3 on Common-mode rejection

One argument about Common-mode rejection, and one of 5 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 10.

The objects named here

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

Common-mode rejectionComponent toleranceDesign tradeoffDevice matchingDifference amplifierGain–bandwidth productInput offsetModel range