Jump back to chapter selection.
Table of Contents
7.1 The Sampling Theorem
7.2 Reconstruction and Interpolation
7.3 Aliasing
7.4 Discrete-Time Processing of Continuous-Time Signals
7.5 Discrete-Time Sampling, Decimation, and Interpolation
7.6 Quantization and Practical Conversion
7 Sampling
Sampling is the bridge between continuous-time and discrete-time signal processing. The surprising result is that a continuous-time signal can be represented exactly by equally spaced samples if it is bandlimited and if the sampling rate is high enough.
The exact theorem is idealised. Real systems need anti-aliasing filters, sample-and-hold circuits, quantizers, clocks with finite jitter, and reconstruction filters. The ideal theorem is still the right starting point because it tells us what the unavoidable failure mode is: overlapping spectral replicas, or aliasing.
7.1 The Sampling Theorem
Sampling a continuous-time signal at period
The sampled impulse train is
The sampling angular frequency is
Multiplication in time corresponds to convolution in frequency. Since the Fourier transform of the impulse train is another impulse train, the sampled spectrum is
Thus sampling creates shifted replicas of the original spectrum at integer multiples of
If
then the replicas do not overlap if
This is the sampling theorem. The frequency
7.2 Reconstruction and Interpolation
If the sampling theorem is satisfied, the original signal is recovered by an ideal lowpass filter that selects the central spectral replica and rejects all others. The required reconstruction filter has gain
with
Choosing
Each sample multiplies a shifted sinc function. The continuous-time reconstruction is the superposition of these interpolation functions.
In practice, impulse trains are not generated directly. A zero-order hold keeps each sample value constant until the next sample. This can be modelled as impulse-train sampling followed by a rectangular pulse:
Its frequency response is
The magnitude has a sinc droop, so perfect reconstruction after a zero-order hold would require an equalising reconstruction filter. Often the droop is small enough over the signal band that it is treated as part of the analogue output-stage design.
7.3 Aliasing
If the shifted spectral replicas overlap, the original spectrum cannot be recovered by lowpass filtering. This overlap is aliasing.
For a sinusoid
sampling at
appears after ideal reconstruction as a sinusoid at
The phase can also be reversed by this folding.
Aliasing is not just a mathematical nuisance. It is the reason a stroboscope can make a rotating wheel appear slower or even reversed. It is also why every practical A/D converter needs an anti-aliasing filter before sampling. Once aliasing has occurred, the overlapped frequency components are added together and cannot be separated by later digital processing.
7.4 Discrete-Time Processing of Continuous-Time Signals
A common processing chain is
where the first arrow is sampling, the middle operation is a discrete-time system, and the final arrow is reconstruction.
If the input is bandlimited and the sampling theorem is satisfied, there is a direct mapping between continuous-time frequency
The discrete-time frequency response
This is the central idea behind digital filtering of analogue signals: design a discrete-time system that has the desired response after the frequency-axis mapping.
There are three important practical caveats:
- analogue prefiltering is needed to suppress frequencies above
before sampling; - the discrete-time filter only controls the sampled baseband, not aliased components already present;
- reconstruction introduces analogue output filtering and often sample-and-hold distortion.
7.5 Discrete-Time Sampling, Decimation, and Interpolation
Sampling ideas also apply entirely within discrete time. Downsampling by an integer factor
Its DTFT is
Thus downsampling compresses and overlaps spectral replicas. To avoid aliasing, one should lowpass filter before downsampling so that the retained bandwidth is at most
Upsampling by an integer factor
Its DTFT is
This creates spectral images. A lowpass interpolation filter is then used to remove the images and fill in the missing sample values.
Changing a sampling rate by a rational factor
7.6 Quantization and Practical Conversion
An A/D converter does not only sample in time; it also quantizes amplitude. If the quantization step is
where
This model is not exact for every signal, but it gives a useful noise-floor estimate.
Oversampling spreads quantization noise over a larger bandwidth. If the signal occupies only a small part of the sampled bandwidth, digital lowpass filtering can remove much of the out-of-band quantization noise. Noise-shaping converters go further by feeding quantization error back so that more of the noise is pushed outside the signal band.
For practical conversion, the ideal sampling theorem becomes a design checklist:
- choose a sample rate high enough for the signal bandwidth and transition bands;
- use an anti-aliasing filter before the ADC;
- ensure clock jitter is small enough for the highest input frequencies;
- choose enough quantization bits for the desired signal-to-noise ratio;
- use reconstruction and anti-imaging filters after the DAC.