- Oversampling
-
In signal processing, oversampling is the process of sampling a signal with a sampling frequency significantly higher than twice the bandwidth or highest frequency of the signal being sampled. Oversampling helps avoid aliasing, improves resolution and reduces noise.
Contents
Oversampling factor
An oversampled signal is said to be oversampled by a factor of β, defined as
or
- .
where:
- fs is the sampling frequency
- B is the bandwidth or highest frequency of the signal; the Nyquist rate is 2B.
Motivation
There are three main reasons for performing oversampling:
Anti-aliasing
It aids in anti-aliasing because realizable analog anti-aliasing filters are very difficult to implement with the sharp cutoff necessary to maximize use of the available bandwidth without exceeding the Nyquist limit. By increasing the bandwidth of the sampled signal, the anti-aliasing filter has less complexity and can be made less expensively by relaxing the requirements of the filter at the cost of a faster sampler. Once sampled, the signal can be digitally filtered and downsampled to the desired sampling frequency. In modern integrated circuit technology, digital filters are much easier to implement than comparable analog filters of high order.
Resolution
In practice, oversampling is implemented in order to achieve cheaper higher-resolution A/D and D/A conversion. For instance, to implement a 24-bit converter, it is sufficient to use a 20-bit converter that can run at 256 times the target sampling rate. Averaging a group of 256 consecutive 20-bit samples adds 4 bits to the resolution of the average, producing a single sample with 24-bit resolution. Number of samples required to get bits of additional data:
samples = 22n
The result in software from samples is then divided by 2n:
Note that this averaging is possible only if the signal contains perfect equally distributed noise (i.e. if the A/D is perfect and the signal's deviation from an A/D result step lies below the threshold, the conversion result will be as inaccurate as if it had been measured by the low-resolution core A/D and the oversampling benefits will not take effect).
Noise
If multiple samples are taken of the same quantity with uncorrelated noise added to each sample, then averaging N samples reduces the noise power by a factor of 1/N.[1] If, for example, we oversample by a factor of 4, the signal-to-noise ratio in terms of power improves by factor of 4 which corresponds to factor of 2 improvement in terms of voltage.
Certain kinds of A/D converters known as delta-sigma converters produce disproportionately more quantization noise in the upper portion of their output spectrum. By running these converters at some multiple of the target sampling rate, and low-pass filtering the oversampled down to half the target sampling rate, it is possible to obtain a result with less noise than the average over the entire band of the converter. Delta-sigma converters use a technique called noise shaping to move the quantization noise to the higher frequencies.
Example
For example, consider a signal with a bandwidth or highest frequency of B = 100 Hz. The sampling theorem states that sampling frequency would have to be greater than 200 Hz. Sampling at 200 Hz would result in β = 1. Sampling at four times that rate (β = 4) would result in a sampling rate of 800 Hz. This gives the anti-aliasing filter a transition band of 600 Hz ((fs−B) − B = (800 Hz−100 Hz) − 100 Hz = 600 Hz) instead of 0 Hz if the sampling frequency was virtually 200 Hz.
An anti-aliasing filter with a transition band of 600 Hz is much more realizable than that of 0 Hz (which would require a perfect filter). If the sampler went to eight times over then the transition band would increase to 1400 Hz, which means the anti-aliasing filter could be less expensive due to relaxation of the transition band requirements.
After being sampled at 800 Hz, the signal (ostensibly with a bandwidth of 400 Hz) could be digitally filtered to have a bandwidth of 100 Hz and then further downsampled to closer to 200 Hz.
References
- John Watkinson, The Art of Digital Audio, ISBN 0-240-51320-7
See also
- Nyquist-Shannon sampling theorem
- Downsampling, Upsampling
- Sampling frequency
- Undersampling
- Oversampling and undersampling in data analysis
Digital signal processing Theory Sub-fields Techniques Discrete Fourier transform (DFT) · Discrete-time Fourier transform (DTFT) · Impulse invariance · bilinear transform · pole–zero mapping · Z-transform · advanced Z-transformSampling oversampling · undersampling · downsampling · upsampling · aliasing · anti-aliasing filter · sampling rate · Nyquist rate/frequencyCategories:
Wikimedia Foundation. 2010.