Before the steady state

The sample before the sample

A sample-and-hold whose capacitor has 0.2 per cent of dielectric absorption reads a 10 V step 109 parts per million wrong on the first sample after it, 46.7 on the tenth, and 4.5 on the hundredth, because every earlier sample is still in the dielectric. That error has been described as distortion, since it grows with the signal. It is not. The state is linear and one period is a single matrix, so the reading is a fixed weighted sum of earlier samples, a filter with a very long tail: a sine reads 28.1 parts per million low and its largest harmonic is 1.5 × 10⁻¹² of the fundamental. A filter can be undone. Subtracting fifty earlier samples takes a stepped signal from 51.6 parts per million to 1.61, and with the absorption known to 20 per cent it stops at 5.47.

Assumes: The capacitor that remembers · The floor a converter sets

The capacitor that remembers put a dielectric’s slow polarisation in a sample-and-hold and measured what comes back. Hold ten volts long enough for every branch to follow, acquire zero through a switch, open the switch, and the held voltage creeps towards where it was, by a fraction of the step. It said the error is zero for a constant input and proportional to the change since the last acquisition, and it drew a conclusion that has a natural sound: that makes it signal-dependent, and a signal-dependent error appears as distortion rather than as a line in a specification. Ten seconds, and fifteen minutes then showed that the test which defines the part is really a count of decades, with the reading set by a ratio of two durations.

That conclusion can be tested in one line, and it does not hold. An error proportional to a step in the signal is proportional to the signal. The whole circuit is resistors and capacitors. So the map from one sample to the next is linear in every state it holds, and a linear map has no harmonics to give. The memory is real and it can be large, but what a dielectric does to a train of samples is a filter, with a long and very small response. That changes what it is, how to specify it, and whether anything can be done about it. Something can.

A 0.2% part sampling 0 V after long at 10 V, holding 1 ms: the first reading is 109 ppm of the step, and the hundredth still 4.5 ppm, every one of them made from the same branchescomputed by solving, not by drawing: the reading at each sample, as a fraction of the step, when a sample-and-hold with a 1 µF part of 0.2% absorption samples 0 V after a long time at 10 V, acquiring for 100 µs and holding for 1 ms. The first reading agrees with a march of the netlist. It is 109 ppm, the tenth 46.7 ppm, the hundredth 4.5 ppm and the four-hundredth 0.904 ppm. The earlier samples are still being read, and for far longer than an acquisition suggests, because each acquisition can reach a branch only in proportion to the fraction of its time constant it lasts.readings since the input stepped from 10 V to 0reading at each sample, over the step (ppm)1101001101001000holding 1 ms109 ppmthe tenth reading46.7 ppmthe hundredth4.5 ppmsolved, then checked — and the first reading by a marcha memory, a long way back
Fig. 1 The reading at each sample, as a fraction of the step, when a sample-and-hold with a 1 µF part of 0.2% absorption samples 0 V after a long time at 10 V, acquiring for 100 µs and holding for 1 ms. The first reading is 109 ppm, agreeing with a march of the netlist; the tenth 46.7 ppm, the hundredth 4.5 ppm. The slider runs the hold from 0.1 ms, 11.3 ppm at first, to 100 ms, 0.178%.

One period is one matrix

The capacitor is the model of the earlier essays: a main capacitance with seven relaxation branches behind it, log-spaced in time constant from 10 ms to 10410^4 s, with equal capacitance a decade, and sized to read 0.2 per cent on the standard test. An acquisition forces the top node to the sample, so every branch relaxes towards it by a fraction 1−e−Ta/τk1 - e^{-T_a/\tau_k}. A hold opens the switch and the node exchanges charge with the branches, which is a linear system. So one period, acquisition and hold together, takes the state of the branches and the sample into a new state and a reading, by fixed matrices. They only need computing once for a given acquisition and hold, by marching each basis vector through the hold.

The second route is the march of the netlist from the earlier essay, with the same part and timings. For the first reading after the step they agree within 3 per cent; the difference is that the march has a real switch resistance. Everything after that is the matrices, and they make a long record cheap: 4,096 samples cost a few matrix-vector products per sample.

Reading the same step for a long time

The picture on the opening figure is the one the earlier essay measured, carried on past its first sample. With a 1 ms hold, the first reading after the input steps from 10 V to 0 is 109 ppm of the step. The tenth is 46.7. The hundredth is 4.5, and the four-hundredth is 0.904. That is a slow decline, and the reason for it is what an acquisition can and cannot do. A 100 µs acquisition reaches a branch of 100 s time constant by a millionth of the distance per sample. So the slow branches keep nearly all of their ten volts through hundreds of samples, and each hold they leak a little of it back.

The longer the hold, the larger the first reading, as the earlier essay’s law says. But look at the later readings on the slider: 9.64 ppm on the tenth at a 0.1 ms hold, 46.7 at 1 ms, 50.2 at 10 ms and 50.6 at 100 ms. The tenth reading stops depending on the hold. By then the amount of time that has passed is large against the fast branches, which have given up what they had. So a reading of a settled zero is limited at each stage by whichever branches have not yet given up, and on a long enough record the early hold’s advantage has gone. A converter using a shorter hold gets a better first reading, and it does not get a much better later one for very long.

The half that never arrives looked at another reading that does not get where it is going in the time available, and in both cases a time scale in the part far exceeds the time scale of the measurement.

The filter’s weights

A linear system with one input is completely described by its response to a unit impulse, and that response is a set of weights.

The memory is a set of weights: holding 1 ms, this reading contains 10.3 ppm of the last sample and 3.87 ppm of the one ten back, and the weights of all earlier samples together reach 109 ppm. computed by solving, not by drawing: the response of the sample-and-hold's reading to a single nonzero sample, as weights on the samples before the current one, for holds of 100 µs, 1 ms and 10 ms with a 100 µs acquisition. 100 µs hold: one back 0.204 ppm, ten back 0.171 ppm, a hundred back 0.0296 ppm, a thousand back 0.000297 ppm; all earlier samples together 11.3 ppm. 1 ms hold: one back 10.3 ppm, ten back 3.87 ppm, a hundred back 0.0391 ppm, a thousand back 0.000391 ppm; all earlier samples together 109 ppm. 10 ms hold: one back 421 ppm, ten back 3.95 ppm, a hundred back 0.0394 ppm, a thousand back 0.000394 ppm; all earlier samples together 757 ppm. The sum of all the weights, the current sample's included, is the reading of a constant input, and it is one to within what has not yet been counted beyond the last sample shown. The weights fall slowly across several decades of samples, since the branches have time constants across several decades of seconds.
Fig. 2 The reading’s response to a single nonzero sample, as weights on the samples before the current one, for holds of 100 µs, 1 ms and 10 ms with a 100 µs acquisition. At 1 ms: 10.3 ppm one back, 3.87 ppm ten back, 0.0391 ppm a hundred back. All earlier samples together: 11.3, 109 and 757 ppm at the three holds.

With a 1 ms hold this reading contains 10.3 ppm of the last sample, 3.87 ppm of the one ten back and 0.0391 ppm of the one a hundred back. Those are very small numbers, but there are thousands of them and they all have the same sign, so all earlier samples together come to 109 ppm. That is, not by coincidence, the first reading after a step. A step from a long-held ten volts to zero has a first reading equal to the sum of all of those weights times ten volts, and that is what the first figure’s 109 ppm measured all along.

So the error the standard description called “a fraction of the step” is really the sum of a filter’s tail. A reader who wants a sharper statement has it: the reading is yn=h0xn+∑k≥1hkxn−ky_n = h_0x_n + \sum_{k\ge 1}h_kx_{n-k}, and a part with a stated absorption and a stated timing has a stated set of hkh_k. That is exactly how anyone would describe an audio delay effect or a converter’s memory, and its small size does not change its form. The tail falls off as the inverse of the lag at long lags, a direct consequence of the equal capacitance per decade of relaxation time: the three holds all converge to about 0.04 ppm a hundred back and 0.0004 a thousand back, in a way that has nothing to do with the hold. The dielectric’s spectrum of relaxation times is what sets that shape.

It is not distortion

And now the check. Distortion produces frequencies that are not in the input, and a filter cannot.

It is not distortion: a sine sampled through the absorbing part reads 28.1 ppm low in amplitude and 0.0023° in phase at every amplitude, and its largest harmonic is 1.5e-12 of the fundamental, which is the arithmetic's floor. computed by solving, not by drawing: a 64-cycle sine sampled 8,192 times through the sample-and-hold, holding 1 ms, read at its first five harmonics after the transient, at 0.1, 1 and 10 V. Gain 0.999972, 0.999972, 0.999972; worst harmonic 1.5e-12, 1.5e-12, 1.5e-12. Ten times the input gives ten times the output, sample by sample, to 7.1e-15 V. An error proportional to the step since the last acquisition is signal-dependent in the sense that a large signal has a large error, and it scales with the signal exactly. That is a filter, and it has no harmonic to contribute. The distortion this part does make on an AC signal comes from a capacitance that depends on the voltage, which is a different defect.
Fig. 3 A 64-cycle sine sampled 8,192 times through the sample-and-hold, holding 1 ms, read at its first five harmonics after the transient, at 0.1, 1 and 10 V. Amplitude error 28.1 ppm at all three. Largest harmonic 1.5×10−121.5 \times 10^{-12} of the fundamental at all three. Ten times the input is ten times the output, sample by sample, to 7×10−157 \times 10^{-15} V.

A sine at 64 cycles in 8,192 samples comes out 28.1 ppm low in amplitude and with 0.0023° of phase. Its largest harmonic, read after the transient, is 1.5×10−121.5 \times 10^{-12} of the fundamental. That is the arithmetic’s own floor. And the output for 10 V is ten times the output for 1 V, sample by sample, to seven parts in 101510^{15} of a volt. So there is no signal dependence in the sense that distortion means: a large signal has a proportionally large error, the same fraction of itself. This is exactly the sense in which a capacitor’s reactance is “signal-dependent”, and no one calls that distortion.

This needs saying because the earlier sentence is a tempting one and it has practical consequences. A distortion needs a linearisation to fix it, and it has no simple inverse. A designer who believes this is distortion will look for a better capacitor as the only cure. A filter has an inverse, which the next section measures. It also sets where to look when a real converter does show harmonics: a capacitor’s voltage coefficient, measured in the capacitance that is not one number, is a true nonlinearity, and it is what will actually produce them. Those two defects are different in kind, and a real capacitor has both, so a measured harmonic on a real part is that second effect. Separating them is a matter of checking whether the error is proportional to the amplitude, or to its square.

The response

Being a filter, the memory has a frequency response, and it is the transform of the weights.

The filter's response: at the sample rate of 909 Hz this part reads 36.5 ppm low at a hundredth of the rate and 114 ppm low at half of it, which is a gain error, and a sine has no harmonic. computed by solving, not by drawing: the magnitude of the transform of the reading's weights, as a shortfall in parts per million against the input's frequency over the sample rate, holding 1 ms and acquiring 100 µs, against a sine sampled through the model directly at four frequencies (dots). At 0.010: 36.6 ppm, against 36.6 ppm; At 0.050: 103 ppm, against 103 ppm; At 0.200: 114 ppm, against 114 ppm; At 0.450: 114 ppm, against 114 ppm. Since the weights are a low-pass on earlier samples, it is a small gain error at a low frequency and a larger one where the samples alternate, and a much more slowly varying signal is read with hardly any error because each sample differs little from the last.
Fig. 4 The magnitude of the transform of the reading’s weights, as a shortfall in parts per million against the input’s frequency over the sample rate, holding 1 ms and acquiring 100 µs, against a sine run through the model directly at four frequencies (dots). 36.6 ppm at 0.010 of the sample rate, 103 at 0.050, 114 at 0.200 and 114 at 0.450, each agreeing with the transform.

At a very low frequency there is almost no error, because each sample differs little from the last and the weighted sum of earlier samples is nearly the current sample. Up at a tenth of the sample rate the samples have decorrelated over the lags that matter, the shortfall has reached about 114 ppm, and it stays there. Four sines through the model agree with the transform to a few parts in a hundred thousand of amplitude, which is the check that the whole description is sound. That 114 ppm is close to the 109 ppm the opening figure gave for a step, since a signal that decorrelates fast looks like a step at every sample. And here, the weights at lag one, which are 10 ppm, can make the top of the band a little different from what the rest of the weights are doing. They are too small for that to show at this scale.

A designer can read a specification from this. A gain error, with a shelf at about a twentieth of the sample rate, is what a part with this absorption presents for a signal. An instrument that calibrates its gain on a signal at the top of its band has removed most of that shelf, and one that calibrates with a direct voltage has not. It is a small version of what a calibration at the carrier removes, since the reading’s shortfall is a function of frequency and a calibration is at one frequency.

A filter can be undone

If the reading is a known weighted sum of earlier samples, then each earlier sample’s contribution can be subtracted from the current reading, and the earlier corrected values stand in for the true samples. It is a recursion and it costs one multiply per weight per sample, which is nothing on any modern processor.

A filter can be undone: on a stepped signal the reading's error is 51.6 ppm of full scale, and subtracting 50 earlier samples leaves 1.61 ppm; with the absorption known only to 20% it stops at 5.47 ppm. computed by solving, not by drawing: the rms error of a held reading, on a seeded signal of random steps every 64 samples, holding 1 ms, against how many earlier samples are subtracted using the weights, with the absorption known exactly (solid) and with it 20% out (dashed). 0: 51.6 ppm, 62.9 ppm; 1: 46.4 ppm, 56.4 ppm; 2: 41.7 ppm, 50.5 ppm; 5: 30.4 ppm, 36.5 ppm; 10: 18.2 ppm, 21.3 ppm; 20: 7 ppm, 8.25 ppm; 50: 1.61 ppm, 5.47 ppm; 100: 0.863 ppm, 5.76 ppm; 200: 0.302 ppm, 5.67 ppm; 500: 0.0374 ppm, 5.66 ppm; 1000: 0.0169 ppm, 5.66 ppm. What the error means in bits: 14.2 uncorrected, 17.5 with an imperfect correction. The improvement stops where the knowledge of the part stops, and that is the fraction it is known to, applied to the uncorrected error. A capacitor's absorption depends on its temperature and its age, and so a stored value is an estimate.
Fig. 5 The rms error of a held reading, on a seeded signal of random steps every 64 samples, holding 1 ms, against how many earlier samples are subtracted using the weights, with the absorption known exactly (solid) and known to 20% (dashed). None: 51.6 ppm. Fifty: 1.61 ppm and 5.47 ppm. A thousand: 0.0169 ppm and 5.66 ppm. The second line stops where the knowledge stops.

On a signal of random steps every 64 samples, the uncorrected reading is 51.6 ppm of full scale in rms. Subtracting one earlier sample barely matters: 46.4. Twenty take it to 7.0, fifty to 1.61, two hundred to 0.302 and a thousand to 0.0169. Each extra sample is working on a slower branch. With about fifty, most of the error has gone, a factor of 32, or from 14.2 bits to 19.2.

The real limit on this is the second line. With the absorption known only to 20 per cent, which is a reasonable statement about a production capacitor at an unknown temperature, the corrected error falls to about 5.5 ppm by fifty samples and then stays there, however many more are subtracted. That is about what a correction 20 per cent out should leave: 0.2 times the uncorrected error would be 10 ppm, and the actual figure is about half that because the signal’s own spectrum helps. So a software correction buys about three and a half bits in this application, from a part known only to 20 per cent, for no cost in hardware. Better knowledge of the part buys more.

The temperature matters because the absorption has one, as ten seconds, and fifteen minutes measured, and the spread between parts is at least that large. A stored coefficient is an estimate. In principle a converter could measure its own coefficient at start-up, since a calibrated step and the readings that follow it are exactly the opening figure, and the weights can be read from it directly. That is the same trick the two generators with one cause looks for in another setting: an error with a known form can be measured once by something that knows the form.

What this says about choosing a capacitor

The standard advice is correct and it stays correct: use a low-absorption dielectric. Polypropylene and polystyrene have absorption well below a tenth of a per cent, against the several per cent of a high-permittivity ceramic, and every number here scales with the absorption. A part ten times better has all these errors ten times smaller. That is usually the cheapest step and the first one to take. A filter correction is what comes after, and it opens a different option: a part chosen for some other virtue, with a modest absorption, can be used if its memory is characterised and subtracted. It also sets the size of what a better capacitor could still buy, since a small remaining absorption is easier to subtract than a large one.

It also matters what the circuit does with the reading. On a slowly varying signal, the opening figure’s large numbers do not appear at all, since each reading differs little from the last; the shelf in the response is what such a signal sees. A multiplexed converter, which goes from channel to channel with unrelated voltages, is the worst case. Its readings are all effectively steps, and the sample before the sample is another channel entirely. So what looks like crosstalk between channels in a multiplexed system, a small trace of one channel in the next that does not go away with more settling time, is often this. The current a capacitor adds up looks at a related memory of the current through the part, and the relevant test of a multiplexed front end is to read a grounded channel straight after a full-scale one.

What the matrix leaves out

The switch here is ideal in acquisition, with the node forced exactly to the sample. A real switch has a resistance, so the acquisition’s own settling mixes into this, and the first sample’s real error includes a settling term; a first-order fix is to treat it as one more linear element in the same matrix. Charge injection from the switch is absent, which adds a fixed offset that a calibration can remove. The acquisition and hold are constant, where a real converter’s may depend on its code. And the model has equal capacitance per decade down to 10 ms, so at much faster holds it has no branches to speak of and the error falls too sharply. A real dielectric has relaxation at much shorter times, and the figures at a 100 µs hold are therefore lower bounds. Whether a real part’s weights at a one-sample lag are as small as these depends on that.

The linearity itself is a fact about this model. A real dielectric’s absorption has some dependence on the field, and it is not exactly proportional at a high field. So at very high fractions of rated voltage some of this could become a true distortion. On a film capacitor well below its rating it is linear to a very good approximation, and that is a claim worth checking on a particular part: that is where the amplitude test above is useful.

The number to keep

A 0.2 per cent part holding for 1 ms reads a 10 V step 109 ppm wrong on the first sample, 46.7 on the tenth and 4.5 on the hundredth. The reading is a linear weighted sum of earlier samples, with weights of 10.3 ppm one back and 0.0391 ppm a hundred back, summing to the 109. A sine through it reads 28.1 ppm low with no harmonic above 10−1210^{-12}, so the earlier description of this as distortion was wrong. The response has a shelf of 114 ppm above a twentieth of the sample rate. And a filter can be undone: fifty earlier samples subtracted take 51.6 ppm to 1.61 ppm, and with the part known to 20 per cent the correction stops at 5.47, a gain of about three and a half bits for no hardware at all.

Still open: a start-up calibration, a temperature, and a multiplexer

The part measuring itself. A calibrated step and the readings that follow it are the weights. A converter could run this at start-up, with noise on its readings. How many steps it takes to know the weights to a stated accuracy, given that the small ones lie well under one code, sets whether such a calibration can reach the 20 per cent figure here or do better.

The weights across temperature. Absorption has a temperature coefficient, and its relaxation times move as well, which in a log-time model is a shift along the lag axis rather than a scale of the weights. A correction with a single stored set would then leave a residue with a particular shape, and whether scaling alone captures it or a shift is needed decides how much of the correction survives a warm-up.

A multiplexer’s crosstalk. With several channels in rotation, a reading’s weights fall on samples of other channels, with the same numbers. A correction is then per channel, and the matrix is a block. How much of a multiplexed system’s channel-to-channel error is this rather than its switches is a question a single grounded channel can answer on a bench, and the model here says what to expect.

Part 3 on dielectric absorption

One argument about Dielectric absorption, and one of 3 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.

Dielectric absorptionMarchingMeasurement conditionModel rangeReal capacitorRelaxation timeSample-and-hold