Effects of Sampling and Aliasing On The Conversion of Analog Signals To Digital Format
Effects of Sampling and Aliasing On The Conversion of Analog Signals To Digital Format
Amplitude
0.6 Sampling
Frequency
A key step in any digital processing of Nyquist frequency and above. Unfortu- (51.2 kHz)
real world analog signals is converting nately, perfect filters are not physically 0.4
Nyquist
the analog signals into digital form. We realizable in analog or digital form. Frequency
0.2 (25.6 kHz)
sample continuous data and create a dis- Physically realizable filters must have
crete signal. Unfortunately, sampling can variation in the passband, a smooth tran-
0
introduce aliasing, a nonlinear process sition from the passband to the stopband, 0 5 10 15 20 25 30 35 40 45 50
which shifts frequencies. Aliasing is an and finite attenuation in the stopband. Frequency, kHz
inevitable result of both sampling and Therefore, we must design a filter with
Figure 1. Frequency components above the
sample rate conversion. It can be ad- unity gain and low variation in the pass- Nyquist frequency of 25.6 kHz will create
dressed with a properly designed anti- band and with the lowest tolerable at- aliases.
aliasing filter (AAF). An analog AAF tenuation in the stopband.
must be applied before the initial sam- Note that finite attenuation means that out signals over time. Channel to channel
pling process. If any sample rate conver- you cannot eliminate aliasing, only re- match is important when making cross
sion, such as decimation, is performed, a duce it. Suppose you sample a signal that channel measurements. Low variation
digital AAF must also be applied. An contains a 1 V tone at 1 kHz and a 1 V and low dispersion are both desirable,
AAF is one of the limiting factors in sys- tone at 39.9 kHz. You wish to analyze the but are hard to achieve with high order
tem performance. An improperly de- data to 20 kHz, so the sampling frequency analog filters. Channel to channel match
signed AAF, or improper application of fs is 40 kHz. If the AAF gain is –80 dB in is compromised by analog component
one, can introduce distortion artifacts the stopband (above 20 kHz) then the variations. In the above example, sam-
that may interfere with certain types of sampled signal will appear as a 1 V, 1 kHz pling at 51.2 kHz and keeping 20 kHz of
analysis. Modern AAF architectures tone and a 0.1 mV, 100 Hz tone (the 39.9 information required an 8th order ellip-
eliminate these artifacts. kHz tone aliases to 100 Hz and is attenu- tic filter. This filter has high variation and
The Nyquist sampling theorem defines ated 80 dB). The amplitude of the alias is dispersion across the passband and is dif-
the minimum sampling frequency to dependant on the original amplitude of ficult to fabricate.
completely represent a continuous signal the out-of-band components and the If we could increase the sampling rate,
with a discrete one. If the sampling fre- amount of attenuation in the AAF. The we could make the filter less aggressive,
quency is at least twice the highest fre- effect is harder to analyze in the more thus reducing the variation and disper-
quency in the continuous baseband sig- realistic case of broadband energy that sion and making it easier to manufacture.
nal, the samples can be used to exactly must be rejected. All of the broadband We could even sample at a very high rate,
reconstruct the continuous signal. A sine energy will fold back into the analysis then perform digital filtering (Figure 2).
wave can be described by at least two band. In general, the AAF attenuation It is much easier to make low variation
samples per cycle (consider drawing two must be chosen considering the desired filters digitally, and dispersion can be
dots on a picture of a single cycle, then noise floor and the frequency content of essentially eliminated. Digital filters are
try and draw a single cycle of a different the energy that needs to be rejected. trivially duplicated across channels. This
frequency that passes through the same The next consideration is the width of technique is used in a class of analog to
two dots). Sampling at slightly less than the transition band. Consider designing digital converters called delta-sigma
two samples per cycle, however, is indis- a system with a useful frequency band- ADCs. For a 51.2 kHz sample rate, these
tinguishable from sampling a sine wave width of 20 kHz and 80 dB of alias pro- converters often sample at 3.2768 MHz,
close to but below the original frequency. tection. If the sampling frequency is 40 making the Nyquist frequency 1.6384
This is aliasing – the transformation of kHz, the AAF gain must change from 0 dB MHz. A 3 rd order Butterworth filter pro-
high frequency information into false low at 20 kHz to –80 dB at just over 20 kHz. vides sufficient anti-alias protection in
frequencies that were not present in the We must increase the sampling frequency this situation. A Butterworth filter is
original signal. The Nyquist frequency, to make the filter realizable. Consider a maximally flat in the passband, has maxi-
also called the folding frequency, is equal sampling frequency f s = 51.2 kHz. The mally low dispersion, and is easier to fab-
to half the sampling frequency fs and is Nyquist frequency is 25.6 kHz, which ricate than an elliptic filter. Additionally,
the demarcation between frequencies that means that frequencies above 31.2 kHz the lower order means there are fewer
are correctly sampled and those that will will fold back into the band of interest. parts, improving the channel to channel
cause aliases. Aliases will be ‘folded’ Therefore, the AAF gain must go from 0 match. The rest of the filtering and
from the Nyquist frequency back into the dB at 20 kHz down to –80 dB at 31.2 kHz sample rate conversion is performed digi-
useful frequency range. Thus a tone 1 kHz (see Figure 3). The region between the tally inside the ADC with digital filters
above the Nyquist frequency will fold highest useful frequency and the Nyquist that can be designed with essentially zero
back to 1 kHz below, while a tone 1 kHz frequency is known as the guard band. dispersion.
below the sampling frequency will ap- Frequencies in this range will be attenu- The advantage of the Butterworth anti-
pear at 1 kHz as shown in Figure 1. Fre- ated and may suffer from aliasing, and are alias filter in dispersion performance is
quencies above the sampling frequency usually discarded in the presentation of significant. Dispersion corresponds to fil-
are also folded back. spectral results. ter delay that varies with respect to fre-
Aliasing is irreversible. There is no So far we have considered the rejection quency. For instance, a pure delay corre-
way to examine the samples and deter- band attenuation and guardband width as sponds to a linear phase shift. If the phase
mine which content to ignore because it performance limits in AAF design. Three is not a straight line, the delay will be
came from aliased high frequencies. more error sources are passband varia- different for different frequencies. Thus,
Aliasing can only be prevented by attenu- tion, dispersion, and channel to channel broadband signals, like transients, will be
ating high frequency content before the match. These error sources are in the spread in time, or dispersed. The deriva-
sampling process as shown in Figure 2. passband, and are thus very important in tive of the phase with respect to fre-
To prevent aliasing completely, we must determining the overall performance of quency provides a measure of the delay.
apply a perfect filter that passes all en- the system. Passband variation creates If we examine this function for the two
ergy from DC to the highest frequency of absolute accuracy errors, while disper- proposed AAFs shown in Figure 4, we see
interest and rejects all energy at the sion, or nonconstant group delay, spreads that the 8 th order elliptic filter has over
0
plify analog design and manufacturing,
Region between folding
frequency and stopband
the ADC can be used at a fixed sample
–20 folds onto region between rate. Then digital filters are implemented
passband and folding
frequency. in a DSP (Digital Signal Processor) for fur-
Stopband (31.2 kHz)
Amplitude, dB