An ADC takes time to convert, and a moving signal does not wait. If the input changes while the converter is still deciding, the answer is a blur of several different voltages — the classic aperture error. A sample-and-hold fixes this by grabbing the signal onto a capacitor in a few microseconds, then holding it rock steady while the ADC converts. It is three parts — a switch, a hold capacitor and a buffer — and one trade-off: the capacitor that holds best is the slowest to charge. This guide sizes one with the LF398, the classic sample-and-hold IC, for a 12-bit ADC running at 100 kS/s.
Figure 1: (a) The sample-and-hold — switch closed, the capacitor charges to Vin; switch open, the buffer holds the frozen voltage for the ADC. (b) The hold-capacitor trade-off for the LF398: bigger Ch means slower droop but slower acquisition. 10 nF is the sweet spot for 100 kS/s. (LF398 figures are from the TI datasheet.)
Why the ADC needs a frozen input
Take a 12-bit ADC on a 0–10 V range: one LSB is 10 V / 4096 = 2.44 mV. Suppose it converts a 10 V peak, 1 kHz sine wave and needs 4 µs per conversion. The sine's fastest slope is 2Ï€ × 1000 Hz × 10 V = 62.8 mV per µs, so during those 4 µs the input moves by 62.8 × 4 = 251 mV — 103 LSBs. The conversion is meaningless; the ADC was measuring a moving target. The LF398 solves it by sampling first: its datasheet guarantees an acquisition time of 6 µs to 0.01% with a 10 nF hold capacitor, so at 100 kS/s (a 10 µs period) the circuit spends 6 µs sampling and has 4 µs left to convert a frozen voltage. During the 4 µs hold, the capacitor droops by only 33 nV — about 0.00001 LSB. The hold step when the switch opens is 0.5 mV typical (the charge the switch injects into the capacitor), which is 0.2 LSB — fine for 12 bits, and worth knowing about if you ever chase 16 bits.
The hold capacitor — one number, two directions
The LF398 datasheet gives two anchor points: acquisition is 6 µs to 0.01% with Ch = 0.01 µF, and droop is 5 mV per minute with Ch = 1 µF. The droop comes from leakage into the capacitor: 5 mV per minute through 1 µF means a leakage current of 1 µF × 5 mV / 60 s = 83.3 pA, so droop rate = 83.3 pA / Ch. Acquisition time scales the other way — the charging current is roughly fixed, so doubling the capacitor doubles the time to charge it. The table tells the whole story: with Ch = 1 nF, acquisition is about 0.6 µs but droop is 83.3 mV/s; with 10 nF, 6 µs and 8.33 mV/s; with 100 nF, 60 µs and 0.833 mV/s; with 1 µF, 600 µs and 0.083 mV/s. The 10 nF choice is the sweet spot for this design: 6 µs fits the 10 µs sample period, and the droop over the 4 µs hold is 8.33 mV/s × 4 µs = 33 nV. Charging the 10 nF capacitor by 10 V in 6 µs needs a current of 10 nF × 10 V / 6 µs = 16.7 mA — that is why the LF398 has a beefy internal charging path, and why the source driving it must be able to deliver that current.
Second worked example — a slow system with a big capacitor
The same trade-off runs the other way for slow signals. Take a data-logger ADC that samples 10 times a second, using the LF398 with Ch = 1 µF: acquisition is about 600 µs, which is only 0.6% of the 100 ms sample period, and the droop over a 1 ms hold is 0.083 mV/s × 1 ms = 0.083 µV — 0.00003 LSB. Even if the conversion took the full 100 ms between samples, the droop would be just 8.3 µV, still 0.003 LSB. The big capacitor is a clear win here, and it is why slow precision instruments use microfarad hold capacitors. Two practical rules go with it: use a low-leakage film capacitor (polypropylene, not electrolytic — an electrolytic's own leakage would swamp the 83 pA), and guard the hold node on the PCB, because a fingerprint's worth of leakage across the board can be larger than the 83 pA the datasheet promises. Note also the LF398's other datasheet numbers that matter in practice: gain accuracy 0.002%, supplies from ±5 V to ±18 V, and an input impedance of 1010 Ω, so a high-impedance sensor can drive it directly.
Key points to remember
- Worked example: 12-bit ADC, 0–10 V, 100 kS/s, LF398 with Ch = 10 nF. LSB = 2.44 mV. Acquisition 6 µs to 0.01% leaves 4 µs to convert in each 10 µs period. Without the hold, a 10 V peak 1 kHz sine moves 251 mV (103 LSBs) during a 4 µs conversion; with it, droop is 33 nV and the hold step is 0.5 mV (0.2 LSB).
- Hold capacitor trade-off: droop rate = 83.3 pA / Ch (from the datasheet's 5 mV/min at 1 µF), acquisition time scales with Ch. 1 nF: 0.6 µs / 83.3 mV/s; 10 nF: 6 µs / 8.33 mV/s; 100 nF: 60 µs / 0.833 mV/s; 1 µF: 600 µs / 0.083 mV/s. Charging 10 nF by 10 V in 6 µs needs 16.7 mA.
- Second example: at 10 S/s with Ch = 1 µF, acquisition is 600 µs and droop over a 1 ms hold is 0.083 µV — a big capacitor wins for slow systems. Use a low-leakage film capacitor and guard the hold node; the LF398's gain accuracy is 0.002% and its input impedance is 1010 Ω.
