ADC Sampling and Analog Front-End Design
notePractical reference for sampling analog signals: aliasing arithmetic, resolution and ENOB, choosing the sample rate, anti-alias filter design, the analog-plus-digital filter strategy, input drive, multiplexed channels, and a worked design.
Scope: single-ended and differential voltage inputs into SAR, delta-sigma, and pipeline ADCs, from DC to a few MHz. The op-amp circuits referenced here (filters, drivers, level shifters) are covered in the op-amp cheat sheet; this document covers how to specify them and where to put them.
Figure 1. Analog input chain. The analog stages fix bandwidth, noise, and alias protection; the digital stages set the final passband edge and output rate.
Sampling fundamentals
A signal sampled at rate is represented without ambiguity only if its spectrum is confined to a band of width less than . Any content at frequency outside that band appears in the sampled data at the alias frequency
and is indistinguishable from a real signal at . No later processing can separate them.
| Input frequency, = 10 kHz | Appears at |
|---|---|
| 4 kHz | 4 kHz (no alias) |
| 6 kHz | 4 kHz |
| 9.9 kHz | 100 Hz |
| 10.1 kHz | 100 Hz |
| 24 kHz | 4 kHz |
| 50 kHz | 0 Hz (DC) |
Three points follow from the equation that are often missed:
- Bandwidth, not highest frequency, sets the requirement. The signal band includes every source of energy that reaches the ADC: the signal, the sensor's and amplifier's noise out to their own bandwidths, switching supply ripple, and radio-frequency pickup. An amplifier with a 1 MHz noise bandwidth sampled at 10 kHz with no filter folds its noise 200 times over, raising the floor by 23 dB. The anti-alias filter defines the noise bandwidth as well as the signal bandwidth.
- The first frequency that folds onto the passband edge is , not . Content between and folds into the transition band, which lies outside the passband. This matters whenever a digital filter follows the ADC, because that content can still be removed. It is the basis of the oversampling strategy below.
- The ADC's analog input bandwidth is separate from its sample rate. A SAR converter's track-and-hold may have a 50 MHz bandwidth at a 1 MSPS sample rate. That permits bandpass sampling of signals above , and it also means high-frequency interference reaching the input aliases with full amplitude.
The oversampling ratio is defined relative to the signal bandwidth :
Resolution, noise, and ENOB
The number of bits in the part number describes the code width, not the accuracy. The quantities that describe what the converter delivers are:
| Term | Definition | Use |
|---|---|---|
| Quantization noise | Uniformly distributed error of ±LSB/2, rms value LSB/√12 | Sets the ideal SNR |
| SNR | Signal power to noise power, excluding harmonics, for a full-scale sine | Noise floor |
| THD | Harmonic power to signal power | Linearity, distortion at large signals |
| SINAD | Signal to noise plus distortion | Combined figure of merit |
| ENOB | Bits actually delivered at a stated input frequency and amplitude | |
| SFDR | Signal to the largest spur | Detectability of small signals next to large ones |
| INL, DNL | Deviation of the transfer function from a straight line, and of each code width from 1 LSB | DC accuracy, missing codes |
| Offset and gain error, drift | Endpoint errors of the transfer function | DC accuracy, calibration requirement |
Ideal SNR for a full-scale sine with only quantization noise:
| Bits | Ideal SNR | LSB at 3.3 V FS | LSB at 5 V FS |
|---|---|---|---|
| 8 | 49.9 dB | 12.9 mV | 19.5 mV |
| 10 | 62.0 dB | 3.22 mV | 4.88 mV |
| 12 | 74.0 dB | 806 µV | 1.22 mV |
| 14 | 86.0 dB | 201 µV | 305 µV |
| 16 | 98.1 dB | 50.4 µV | 76.3 µV |
| 18 | 110.1 dB | 12.6 µV | 19.1 µV |
| 20 | 122.2 dB | 3.15 µV | 4.77 µV |
| 24 | 146.2 dB | 0.20 µV | 0.30 µV |
Noise sources in a real channel. The measured SNR is set by the root-sum-square of the following, referred to the ADC input:
- Quantization noise, LSB/√12 rms.
- ADC transition noise, specified as rms LSBs or as a code histogram width. High-resolution SAR and delta-sigma parts have several LSBs of transition noise; their effective resolution is what the datasheet's noise table says, not the code width.
- Sampling capacitor thermal noise, : 20 µV rms at 10 pF, 6.4 µV at 100 pF, 2.0 µV at 1 nF. It is inherent to the sampling operation and is why small-capacitor SAR inputs cannot reach 20-bit noise floors.
- Driver amplifier and filter resistor noise integrated over the noise bandwidth of the anti-alias filter.
- Reference noise, which multiplies the signal and appears as noise proportional to input amplitude.
- Sampling clock jitter, which converts to voltage noise proportional to input slew rate.
Clock jitter. For a full-scale sine at and rms jitter :
Maximum rms jitter for jitter noise to equal the ideal quantization noise:
| Bits | = 1 kHz | 10 kHz | 100 kHz | 1 MHz |
|---|---|---|---|---|
| 12 | 32 ns | 3.2 ns | 318 ps | 32 ps |
| 16 | 2.0 ns | 199 ps | 20 ps | 2.0 ps |
| 20 | 124 ps | 12 ps | 1.2 ps | 0.12 ps |
A microcontroller timer or PLL output has jitter in the range of 100 ps to several ns. For inputs above a few kHz at 16 bits, the sampling clock must come from a low-jitter source, and the conversion start must be triggered by hardware, not by software in an interrupt handler.
Noise-free resolution. With rms noise of LSBs, the effective resolution is bits and the noise-free (flicker-free) resolution, using the 6.6σ peak-to-peak convention, is bits. A 24-bit converter with 20 LSB rms noise delivers 19.7 effective bits and 17 noise-free bits.
Averaging and oversampling gain. Averaging samples reduces white noise by , adding bits: 2 bits for 16 samples, 4 bits for 256. This requires the noise to be at least about 1 LSB rms and uncorrelated between samples. Below 1 LSB of noise the quantizer is deterministic and averaging returns the same code; dither (added noise of about 1 LSB rms, or the ADC's own noise) restores the gain. DNL and 1/f noise set the limit.
DC accuracy is a separate budget. Offset, gain error, INL, and their temperature drift are not reduced by averaging or by oversampling. They are reduced by calibration against a reference, by ratiometric measurement, and by choosing a converter with the required INL. A 16-bit converter with 4 LSB INL is a 14-bit converter for absolute measurements and a 16-bit converter for detecting small changes.
ADC architectures
| Architecture | Sample rate | Resolution | Latency | Multiplexing | Anti-alias requirement |
|---|---|---|---|---|---|
| SAR | 10 kSPS to 10 MSPS | 8 to 20 bits | One conversion, no pipeline | Direct; input settles per sample | Full: everything above must be attenuated externally |
| Delta-sigma | 1 SPS to 10 MSPS output; modulator at 64 to 1024 times that | 16 to 32 bits | Several output periods (digital filter) | Poor; the digital filter must settle after each channel change | Relaxed: single RC at 10 to 100 times the output rate; the internal filter rejects the rest, but not around the modulator rate |
| Pipeline | 10 MSPS to several GSPS | 8 to 16 bits | Several clock cycles | Not applicable | Full, at RF-style bandwidths |
SAR and pipeline converters sample instantaneously and the anti-alias problem is entirely external. Delta-sigma converters oversample internally and include a decimating digital filter, which moves most of the alias rejection into the part, but the modulator still samples at its own rate and the analog RC in front of it must attenuate content near multiples of that rate.
Sample rate and filter strategy
Three strategies exist. The choice determines the anti-alias filter order more than any other decision.
Nyquist-rate sampling. is 2.2 to 3 times the signal bandwidth. The transition band from to is narrow, and the analog filter alone must reach the full required attenuation inside it.
Figure 2. Nyquist-rate frequency plan. The analog filter must reach the required attenuation by the first frequency that folds onto the passband edge.
Oversampling with a digital filter. is 8 to 64 times the signal bandwidth. The transition band is wide and a second-order or fourth-order analog filter reaches the required attenuation by . A digital filter then sets the sharp passband edge, removes the content between and , and the data is decimated to the final rate. The digital filter has no component tolerance, no drift, linear phase if FIR, and a transition band as narrow as the computation budget permits.
Figure 3. Oversampled frequency plan. The analog filter handles only the image around the sample rate. The digital filter removes the bands that would fold into the passband after decimation.
Delta-sigma. The converter implements the oversampling strategy internally. The external filter is a single RC, and the design work moves to choosing the output data rate, understanding the internal filter's droop and settling, and handling multiplexed channels.
| Strategy | Analog filter order at 96 dB | Analog component sensitivity | Digital cost | Latency | Best for |
|---|---|---|---|---|---|
| Nyquist-rate, SAR | 8 to 12, often impractical; elliptic or switched-capacitor filter | High: 1% parts shift the corner and ripple | None | Lowest | Wideband signals where is limited by the converter or the bus |
| Oversampled SAR plus digital filter | 2 to 4 | Low | FIR or CIC in a microcontroller, DSP, or FPGA | Filter group delay, typically tens of output samples | Most instrumentation and data acquisition |
| Delta-sigma | 1 (RC) | Lowest | Internal | Several output periods | Precision DC and low-frequency measurement, single or few channels |
Selection rules:
- Below about 100 kHz bandwidth with a single channel and 16 bits or more, delta-sigma is the default.
- Multiple channels that must be sampled simultaneously, or a bandwidth above 100 kHz, favor SAR with oversampling and a digital filter.
- Nyquist-rate sampling is the choice only when the converter's maximum rate is the constraint, and then the filter is usually an integrated switched-capacitor or elliptic design rather than discrete op-amp stages.
Anti-alias filter design
Attenuation requirement
The filter must attenuate, at and above, everything that would fold into the passband at a level above the noise floor or the required dynamic range:
When the out-of-band content is unknown, is set equal to the ideal SNR of the converter: 74 dB at 12 bits, 98 dB at 16 bits. When it is known to be small, for example a sensor whose own bandwidth is 10 times lower than , can be reduced accordingly. Interferers with known frequencies (switching supplies, mains harmonics, radio transmitters) are budgeted individually: their amplitude at the filter input minus at their frequency must fall below the noise floor.
Filter order
For a Butterworth response with -3 dB frequency :
Required Butterworth order (rounded up) against the transition ratio :
| 60 dB | 80 dB | 100 dB | |
|---|---|---|---|
| 1.5 | 18 | 23 | 29 |
| 2 | 10 | 14 | 17 |
| 3 | 7 | 9 | 11 |
| 5 | 5 | 6 | 8 |
| 10 | 3 | 4 | 5 |
| 20 | 3 | 4 | 4 |
| 50 | 2 | 3 | 3 |
Each op-amp stage provides two poles. Above fourth order, component sensitivity and op-amp GBW requirements grow quickly, and the practical limit for discrete active filters is about eighth order. The table shows why a transition ratio below 3 is avoided: it requires an order that cannot be built accurately with discrete parts.
Passband edge placement
The -3 dB frequency must sit above so that the droop at meets the flatness requirement. For a Butterworth response, the ratio that gives a stated droop:
| Droop at | n = 2 | n = 4 | n = 6 | n = 8 |
|---|---|---|---|---|
| 0.1 dB | 0.39 | 0.63 | 0.73 | 0.79 |
| 0.5 dB | 0.59 | 0.77 | 0.84 | 0.88 |
| 1.0 dB | 0.71 | 0.85 | 0.89 | 0.92 |
A second-order filter with 0.1 dB flatness needs at 2.6 times , which consumes most of the transition band. This is another reason oversampling favors low-order filters: the wide transition band leaves room for the passband margin. With a digital filter following, the analog filter's droop inside the passband can be corrected in the digital filter's coefficients.
Response type
| Response | Passband | Roll-off at 2 , 4th order | Step response | Group delay | Use |
|---|---|---|---|---|---|
| Butterworth | Maximally flat | 24 dB | Overshoot about 11% at 4th order | Moderate variation | General purpose, spectral measurement |
| Bessel | Gentle droop | About 14 dB | No overshoot, no ringing | Flat across the passband | Time-domain waveforms, pulses, multi-channel phase matching |
| Chebyshev (0.5 dB ripple) | Ripple | 31 dB | Large overshoot, ringing | Peaks near | Steep cutoff where passband ripple is tolerable |
| Elliptic | Ripple | Highest for a given order; depends on ripple and stopband specification | Ringing | Poor | Nyquist-rate sampling, narrowest transition band |
Selection: Butterworth unless there is a reason otherwise. Bessel when the data will be examined in the time domain or when several channels must agree in phase. Chebyshev or elliptic only when the transition band is too narrow for Butterworth and the ripple and phase distortion are acceptable or will be corrected digitally.
Phase and group delay
A filter delays the signal, and the delay varies with frequency unless the response is Bessel. For a second-order Butterworth stage, the group delay at low frequency is , which is 225 µs at = 1 kHz, and the phase lag at is 8.1°. Consequences:
- In a control loop, the anti-alias filter is part of the loop and its phase lag reduces the phase margin. Place at least 10 times the loop crossover frequency, or account for the lag in the compensator design.
- In multi-channel measurement (power metering, impedance, vibration), channel-to-channel phase mismatch comes from component tolerance in the filters. With 1% resistors and 5% capacitors, two nominally identical second-order filters differ by up to about 3° at . Use 1% C0G capacitors, or match the filters digitally after measurement, or move the filter corner well above the measurement band.
- Simultaneous-sampling converters remove the inter-channel time skew of a multiplexed converter but not the filter mismatch.
Implementation
| Implementation | Order per stage | Notes |
|---|---|---|
| Passive RC | 1 | Loaded by the following stage; depends on source and load impedance. Adequate before a delta-sigma converter or as a pre-filter ahead of a gain stage |
| Passive RLC | 2 | For high frequency (above about 1 MHz) where op-amp filters are impractical |
| Sallen-Key, unity gain | 2 | Simple, non-inverting, exact unity gain. Stopband attenuation limited by op-amp output impedance at high frequency (feedthrough); not suitable for Q above about 3 or attenuation beyond about 40 dB per stage |
| Multiple feedback (MFB) | 2 | Inverting; no feedthrough; preferred for Q above 1 and for attenuation beyond 40 dB. Gain set independently |
| Integrated active filter IC | 4 to 8 | Fixed response types, corner set by one resistor or clock; small footprint; higher noise |
| Switched-capacitor filter IC | 4 to 8 | Corner set by clock; corner tracks if clocked from the same source; adds clock feedthrough and itself samples, so it needs a simple RC before it |
Component and op-amp selection for active filters:
- Capacitors: C0G/NP0 ceramic, polypropylene, or PPS film. X7R and other class 2 dielectrics have a voltage coefficient of tens of percent, temperature dependence, and piezoelectric microphonics, and produce distortion and corner shift.
- Resistors: 1% or better, 100 ppm/°C or better. Keep values between about 1 kΩ and 100 kΩ. Lower values raise the load on the driving amplifier; higher values add thermal noise and interact with op-amp input capacitance.
- Corner accuracy: with 1% resistors and 5% capacitors, the -3 dB frequency varies by about ±6%. With 1% capacitors, ±2%. Place with this margin against both the droop requirement and the attenuation requirement.
- Op-amp gain-bandwidth product: at least 20 times per stage, and at least 100 times for the passband to match the design to within 0.1 dB. A 10 kHz filter with Q of 2 needs 400 kHz minimum and 1 MHz for accuracy.
- Op-amp noise and offset are in the signal path; the filter's amplifier has the same requirements as the gain stage.
Position in the signal chain
- Relative to gain. Out-of-band interferers large enough to saturate the gain stage must be attenuated before it, with a passive RC or a low-order stage at the input. The main anti-alias filter is placed after the gain so that its noise and offset are not amplified. When a single filter must serve both purposes, it goes before the gain and the gain stage must have enough bandwidth to avoid adding its own roll-off inside the passband.
- Relative to a multiplexer. The anti-alias filter must be on each channel, ahead of the multiplexer. A filter after the multiplexer sees a step at every channel change and must settle to the converter's resolution within the acquisition time, which forces its corner so high that it no longer provides alias protection. The only component after the multiplexer is the small RC that handles the converter's charge kickback.
- Relative to the ADC input RC. The RC at the ADC pin is not part of the anti-alias filter. Its corner is set by the settling requirement (below) and is usually 10 to 100 times higher than the anti-alias corner.
Verification
- Apply a full-scale tone at and at and confirm the alias in the FFT is below the noise floor.
- Sweep a tone through the passband and confirm droop and ripple.
- Apply the largest expected out-of-band interferer and confirm the gain stage does not clip.
- Measure the channel noise floor with the input shorted and compare it with the budget.
Digital filtering and decimation
The digital filter after an oversampled converter has three jobs: set the passband edge, attenuate the bands that will fold into the passband when the data is decimated, and correct droop introduced by the analog stages or by a preceding CIC stage.
Fold bands after decimation. Decimating by to folds every band for = 1 to into the passband. The digital filter must attenuate all of them to the required level before decimation. The band around itself is the analog filter's responsibility. A filter designed only for the passband edge, without checking its stopband at those fold bands, is the most common error in this stage.
| Filter type | Phase | Cost | Droop | Use |
|---|---|---|---|---|
| FIR, windowed or equiripple | Linear | One multiply-accumulate per tap per output sample; taps scale with divided by the transition width | None | General purpose; the standard choice when a multiplier is available |
| IIR (Butterworth, Chebyshev, elliptic) | Non-linear | Few multiplies | None | Low latency, small computation, when phase linearity is not required |
| CIC (cascaded integrator-comb) | Linear | Adders only | Sinc droop, several dB at the passband edge | First decimation stage by a large factor in FPGAs and converters |
| Half-band FIR | Linear | Half the taps are zero | None | Decimation by 2 in stages |
| Moving average | Linear | Adders only | Sinc droop; nulls at multiples of | Rejecting mains harmonics by placing nulls on them |
Practical rules:
- Estimate FIR length with the Kaiser formula , where is the transition width in radians per sample. A narrow transition band at a high sample rate produces long filters; decimate in stages (CIC or half-band first, then a short FIR at the lower rate) to keep computation low.
- A CIC stage's droop at the passband edge is compensated by an inverse-sinc term in the following FIR.
- Group delay of a linear-phase FIR is half its length in samples. For a control loop this latency must be counted in the loop.
- The internal filters of delta-sigma converters are sinc filters of order 3 to 5, with nulls at multiples of the output data rate. Their droop at the passband edge is significant: for a sinc³ filter, -0.17 dB at , -0.67 dB at , -2.7 dB at , and -11.8 dB at . Either the output rate is set well above twice the signal bandwidth, or a droop-compensating filter follows, or the part is configured for a wideband (flat) filter mode.
- Sinc filter nulls are used to reject mains interference: an output rate of 10 SPS places nulls at 50 Hz and 60 Hz and their harmonics.
- After a step change in the input, or a channel change, a sinc filter of order needs output periods to settle fully. Multiplexed delta-sigma channels therefore run at of the nominal rate unless the part has a fast-settling mode.
Input structure and driver
The converter's input must be driven by a source that settles to the required resolution within the acquisition time. For a SAR converter, the sampling capacitor (typically 5 to 50 pF) connects to the input at the start of acquisition and draws a charge step. The RC network at the input supplies that charge and isolates the driver:
- so the voltage step when the capacitor connects is below 1 LSB.
- Settling to bits requires , with : 9.0τ at 12 bits, 11.8τ at 16 bits, 14.6τ at 20 bits.
- between 10 and 50 Ω for most SAR converters. The converter's input current is non-linear with input voltage, and a larger resistor converts that into distortion.
- The driver amplifier must be stable with through , and its bandwidth must be high enough to recover from the kickback within the acquisition time. Datasheets specify this combination; the converter's recommended driver takes precedence over these rules.
Differential inputs. A differential input rejects common-mode interference, cancels even-order distortion, and doubles the full-scale range for a given supply. The input filter uses a differential capacitor across the pins with a smaller capacitor from each pin to ground:
Figure 4. Differential ADC input filter. The differential capacitor is at least ten times the common-mode capacitors so that mismatch between the two common-mode capacitors does not convert common-mode noise into a differential signal.
The common-mode capacitors are matched to each other and are small enough that their tolerance does not matter, because the differential capacitor dominates the differential corner. The corner frequencies are for the differential signal and for common mode. The driver, usually a fully differential amplifier, sets the output common-mode voltage to the converter's required value through its VOCM pin, which is fed from the converter's common-mode output or from the reference divided by two.
Single-ended converters accept the signal on one pin against ground and lose the common-mode rejection. Pseudo-differential converters sample the signal pin against a sense pin that carries the signal ground, which removes ground offset between the source and the converter but not common-mode noise above DC.
Reference. The reference sets the full-scale voltage, and its noise, drift, and load response appear directly in the result. A SAR converter draws a current pulse from the reference at each conversion; the reference decoupling capacitor (typically 1 to 22 µF, per the datasheet) must supply it without droop, and the reference must recover between conversions. Reference noise is measured as a fraction of full scale, so it matters most for large signals. For ratiometric sensors (bridges, potentiometers), the sensor excitation and the converter reference come from the same source so that reference drift cancels.
Multiplexed and multi-channel systems
- Each channel has its own anti-alias filter ahead of the multiplexer, as stated above. The per-channel filter's output impedance and the multiplexer's on-resistance together must drive the post-multiplexer RC within the acquisition time.
- The multiplexer's charge injection produces a voltage step on the selected channel's filter capacitor. A larger capacitor reduces the step but lengthens settling; the usual compromise is a capacitor of a few nF and a settling time constant of a few hundred ns.
- Crosstalk: with the multiplexer off, an adjacent channel couples through the off-capacitance and the shared post-multiplexer node. Specify the multiplexer's off-isolation at the highest frequency present on any channel, after that channel's filter.
- Channel sequencing: a channel that switches from a full-scale signal to a small one exposes the settling error; measure settling with the worst-case step, not with similar signals on adjacent channels.
- Multiplexing a delta-sigma converter: each channel change requires the digital filter to settle, which takes several output periods. The effective per-channel rate is the output rate divided by the channel count and by the filter settling count. Parts with per-channel settling modes or with multiple converters on one die avoid this.
- Simultaneous sampling: applications that compare phase or timing between channels (power measurement, motor current sensing, arrays of sensors) require converters with one track-and-hold per channel, or one converter per channel with a shared clock. A single multiplexed converter introduces a time skew of one conversion period per channel, which is 3.6° at 50 Hz for a 200 µs skew.
Design errors
- Filtering to instead of to . The alias requirement is at the fold frequency. Filtering to leaves the band between and underattenuated, which folds into the transition band and, in a Nyquist-rate design, into the passband edge.
- Bandwidth defined by the signal alone. The amplifier noise bandwidth and the sensor's own bandwidth fold into the passband and raise the noise floor. Correction: set the anti-alias filter as the element that defines the channel noise bandwidth, and budget the folded noise.
- Anti-alias filter after the multiplexer. The filter cannot both settle within the acquisition time and provide alias rejection. Correction: per-channel filters before the multiplexer.
- Class 2 ceramic capacitors in the filter. Voltage coefficient, temperature coefficient, and piezoelectric effects produce distortion and corner shift. Correction: C0G, polypropylene, or PPS.
- Insufficient op-amp bandwidth for the filter stage. The response departs from the design near , with peaking or premature roll-off. Correction: GBW at least 20 times .
- Sallen-Key used for high attenuation. The op-amp's rising output impedance lets high-frequency content feed through the feedback capacitor. Correction: MFB topology, or an RC after the Sallen-Key stage.
- Input RC sized as the anti-alias filter. A large RC at the converter pin cannot settle in the acquisition time and produces a signal-dependent settling error, which appears as gain error and distortion. Correction: separate the anti-alias filter from the settling RC.
- Input RC omitted. The driver sees the sampling capacitor's charge step directly, rings, and does not settle. Correction: the RC per the converter datasheet.
- Reference decoupling per a generic rule rather than the datasheet. The reference droops during conversion and the result acquires a code-dependent gain error. Correction: the capacitor value and placement from the datasheet, and a reference with adequate transient response.
- Software-triggered conversions. Interrupt latency adds jitter of hundreds of nanoseconds to microseconds. At 16 bits this limits the usable input frequency to a few hundred Hz. Correction: hardware timer trigger and DMA.
- Digital filter stopband not checked at the fold bands. The filter passes the wanted band and attenuates the transition band but not the bands at multiples of the output rate. Correction: verify attenuation at for all up to .
- Averaging with noise below 1 LSB. The converter returns the same code repeatedly and averaging adds nothing. Correction: dither, or use a converter with noise at or above 1 LSB rms so that averaging is effective.
- Sinc filter droop ignored. A delta-sigma converter run with the output rate at only twice the signal bandwidth attenuates the passband edge by more than 10 dB. Correction: output rate at least 8 to 16 times the bandwidth, or droop compensation, or the part's flat filter mode.
- Multiplexed delta-sigma without settling. Data after a channel change is a blend of the previous and current channels. Correction: discard the settling conversions or use a part with per-channel settling.
- Phase mismatch between channels neglected. Filter component tolerance produces channel-to-channel phase differences that corrupt power or impedance measurements. Correction: tighter tolerance, higher filter corner, or digital calibration.
- Filter capacitor grounds returned to a noisy ground. The filter's ground reference is the converter's analog ground; a capacitor returned elsewhere injects the difference voltage into the signal. Correction: capacitor returns at the converter's analog ground pin.
- Overload recovery not considered. An out-of-band interferer that saturates the filter op-amp produces a recovery transient inside the passband. Correction: a passive pre-filter before the active stages, and an amplifier with specified overload recovery.
- Mains interference handled only by filtering. Mains harmonics inside the passband cannot be filtered without removing signal. Correction: sinc nulls at the mains frequency, sampling synchronous with the mains period and averaging over whole periods, or differential inputs with high common-mode rejection.
- Undersampling without a bandpass filter. Bandpass sampling requires that everything outside the wanted band be attenuated, including the baseband. A low-pass filter does not achieve this. Correction: bandpass anti-alias filter, and a converter with track-and-hold bandwidth and jitter adequate for the carrier frequency, not just the signal bandwidth.
- Test with a clean signal generator only. A laboratory signal source has no out-of-band content, so aliasing is not exercised. Correction: verification with tones placed at the fold frequencies, and with the real sensor and cabling.
Design procedure
- Signal specification. Bandwidth , amplitude range, and whether the information is in the DC value, the time-domain waveform, or the spectrum. This determines flatness, phase, and settling requirements.
- Dynamic range. Required SNR and DC accuracy, separately. Convert SNR to a converter resolution with 2 to 4 bits of margin for transition noise, driver noise, and reference noise.
- Out-of-band inventory. The amplifier and sensor noise bandwidth, known interferers with their frequencies and amplitudes, and the largest signal that can appear at the input under fault conditions.
- Architecture. Delta-sigma for precision at low bandwidth on few channels; SAR with oversampling and a digital filter for multi-channel or wideband; pipeline above about 10 MSPS.
- Sample rate. Choose from the strategy table. Compute and .
- Analog filter. Choose from the droop table, compute the order from the transition ratio, choose the response type from the application, and select the topology. Check op-amp GBW.
- Digital filter. Passband edge, stopband at the fold bands, decimation factor, structure (CIC plus FIR, half-band chain, or single FIR), and latency.
- Input drive. Input RC from the converter datasheet, driver amplifier stability and settling, differential or single-ended, common-mode voltage.
- Reference and clock. Reference noise and decoupling per the datasheet; sampling clock jitter against the jitter table; hardware triggering.
- Multi-channel. Per-channel filters, multiplexer settling and crosstalk, simultaneous sampling where phase matters.
- Budget. Root-sum-square of the noise sources; separate sum of the DC error sources; comparison with the requirement.
- Verification. Fold-frequency tone test, passband sweep, noise floor with shorted input, overload test, and a test with the real source.
Worked example
Requirement: a sensor with 1 kHz bandwidth, 16-bit dynamic range (98 dB), time-domain waveform fidelity, four channels sampled simultaneously.
Nyquist-rate SAR. = 2.5 kHz. = 1.5 kHz. With = 1.27 kHz for 0.1 dB droop at eighth order, the transition ratio is 1.18 and the Butterworth order required for 96 dB is 66. Not feasible with discrete stages. An elliptic filter of tenth order or a switched-capacitor filter could approach it, at the cost of ripple, phase distortion, and component sensitivity incompatible with waveform fidelity. Rejected.
Oversampled SAR with digital filter. = 40 kHz per channel, four-channel simultaneous-sampling SAR. = 39 kHz. Fourth-order Butterworth with = 1.6 kHz: droop at 1 kHz is 0.1 dB, transition ratio is 24.4, attenuation at 39 kHz is 111 dB, exceeding the 96 dB requirement. Implementation: two MFB stages with Q of 0.54 and 1.31 (fourth-order Butterworth), 1% resistors, 1% C0G capacitors, op-amp GBW above 1 MHz. Digital filter: decimate by 4 with a CIC, then a linear-phase FIR at 10 kHz with passband to 1 kHz, stopband from 1.5 kHz at 96 dB with inverse-sinc droop correction, then decimate by 4 to a 2.5 kHz output rate. FIR length is about 120 taps at 10 kHz, compared with about 490 taps if implemented directly at 40 kHz. Oversampling by 16 adds 12 dB of processing gain against white converter noise. Group delay is about 60 output samples, 24 ms; acceptable for recording, to be evaluated if the data feeds a control loop. Selected.
Delta-sigma. Four-channel simultaneous-sampling delta-sigma with a 16 kHz output rate and a sinc³ filter, modulator at 1 MHz. Droop at 1 kHz is 0.17 dB, acceptable. External filter: single RC at 50 kHz per channel, per the datasheet. Simplest analog design, but with a 16 kHz output rate the data must still be filtered and decimated digitally to reach the 2.5 kHz rate, and the sinc³ group delay of about 190 µs plus the decimation filter must be counted. Also acceptable; the choice between this and the SAR design is made on the converter's cost and availability and on the digital resources.
Limitations of this document
- The filter order and droop tables are for Butterworth responses. Other responses require their own tables or a filter design tool.
- Noise and jitter figures assume full-scale sine inputs and white noise. Signals with lower amplitude or 1/f-dominated noise require their own analysis.
- Converter input models vary. The settling rules here are first-order approximations; the converter datasheet's driver recommendations and the manufacturer's tools (TI Precision Labs, ADI's analog filter and driver tools) take precedence.
- Values quoted for typical parts (sampling capacitance, reference decoupling, jitter of clock sources) are representative ranges and must be confirmed against the actual parts.