Effects of sampling and aliasing on the conversion of analog signals to digital format
暂无分享,去创建一个
SOUND AND VIBRATION/DECEMBER 2002 A key step in any digital processing of real world analog signals is converting the analog signals into digital form. We sample continuous data and create a discrete signal. Unfortunately, sampling can introduce aliasing, a nonlinear process which shifts frequencies. Aliasing is an inevitable result of both sampling and sample rate conversion. It can be addressed with a properly designed antialiasing filter (AAF). An analog AAF must be applied before the initial sampling process. If any sample rate conversion, such as decimation, is performed, a digital AAF must also be applied. An AAF is one of the limiting factors in system performance. An improperly designed AAF, or improper application of one, can introduce distortion artifacts that may interfere with certain types of analysis. Modern AAF architectures eliminate these artifacts. The Nyquist sampling theorem defines the minimum sampling frequency to completely represent a continuous signal with a discrete one. If the sampling frequency is at least twice the highest frequency in the continuous baseband signal, the samples can be used to exactly reconstruct the continuous signal. A sine wave can be described by at least two samples per cycle (consider drawing two dots on a picture of a single cycle, then try and draw a single cycle of a different frequency that passes through the same two dots). Sampling at slightly less than two samples per cycle, however, is indistinguishable from sampling a sine wave close to but below the original frequency. This is aliasing – the transformation of high frequency information into false low frequencies that were not present in the original signal. The Nyquist frequency, also called the folding frequency, is equal to half the sampling frequency fs and is the demarcation between frequencies that are correctly sampled and those that will cause aliases. Aliases will be ‘folded’ from the Nyquist frequency back into the useful frequency range. Thus a tone 1 kHz above the Nyquist frequency will fold back to 1 kHz below, while a tone 1 kHz below the sampling frequency will appear at 1 kHz as shown in Figure 1. Frequencies above the sampling frequency are also folded back. Aliasing is irreversible. There is no way to examine the samples and determine which content to ignore because it came from aliased high frequencies. Aliasing can only be prevented by attenuating high frequency content before the sampling process as shown in Figure 2. To prevent aliasing completely, we must apply a perfect filter that passes all energy from DC to the highest frequency of interest and rejects all energy at the Nyquist frequency and above. Unfortunately, perfect filters are not physically realizable in analog or digital form. Physically realizable filters must have variation in the passband, a smooth transition from the passband to the stopband, and finite attenuation in the stopband. Therefore, we must design a filter with unity gain and low variation in the passband and with the lowest tolerable attenuation in the stopband. Note that finite attenuation means that you cannot eliminate aliasing, only reduce it. Suppose you sample a signal that contains a 1 V tone at 1 kHz and a 1 V tone at 39.9 kHz. You wish to analyze the data to 20 kHz, so the sampling frequency fs is 40 kHz. If the AAF gain is –80 dB in the stopband (above 20 kHz) then the sampled signal will appear as a 1 V, 1 kHz tone and a 0.1 mV, 100 Hz tone (the 39.9 kHz tone aliases to 100 Hz and is attenuated 80 dB). The amplitude of the alias is dependant on the original amplitude of the out-of-band components and the amount of attenuation in the AAF. The effect is harder to analyze in the more realistic case of broadband energy that must be rejected. All of the broadband energy will fold back into the analysis band. In general, the AAF attenuation must be chosen considering the desired noise floor and the frequency content of the energy that needs to be rejected. The next consideration is the width of the transition band. Consider designing a system with a useful frequency bandwidth of 20 kHz and 80 dB of alias protection. If the sampling frequency is 40 kHz, the AAF gain must change from 0 dB at 20 kHz to –80 dB at just over 20 kHz. We must increase the sampling frequency to make the filter realizable. Consider a sampling frequency fs = 51.2 kHz. The Nyquist frequency is 25.6 kHz, which means that frequencies above 31.2 kHz will fold back into the band of interest. Therefore, the AAF gain must go from 0 dB at 20 kHz down to –80 dB at 31.2 kHz (see Figure 3). The region between the highest useful frequency and the Nyquist frequency is known as the guard band. Frequencies in this range will be attenuated and may suffer from aliasing, and are usually discarded in the presentation of spectral results. So far we have considered the rejection band attenuation and guardband width as performance limits in AAF design. Three more error sources are passband variation, dispersion, and channel to channel match. These error sources are in the passband, and are thus very important in determining the overall performance of the system. Passband variation creates absolute accuracy errors, while dispersion, or nonconstant group delay, spreads out signals over time. Channel to channel match is important when making cross channel measurements. Low variation and low dispersion are both desirable, but are hard to achieve with high order analog filters. Channel to channel match is compromised by analog component variations. In the above example, sampling at 51.2 kHz and keeping 20 kHz of information required an 8th order elliptic filter. This filter has high variation and dispersion across the passband and is difficult to fabricate. If we could increase the sampling rate, we could make the filter less aggressive, thus reducing the variation and dispersion and making it easier to manufacture. We could even sample at a very high rate, then perform digital filtering (Figure 2). It is much easier to make low variation filters digitally, and dispersion can be essentially eliminated. Digital filters are trivially duplicated across channels. This technique is used in a class of analog to digital converters called delta-sigma ADCs. For a 51.2 kHz sample rate, these converters often sample at 3.2768 MHz, making the Nyquist frequency 1.6384 MHz. A 3rd order Butterworth filter provides sufficient anti-alias protection in this situation. A Butterworth filter is maximally flat in the passband, has maximally low dispersion, and is easier to fabricate than an elliptic filter. Additionally, the lower order means there are fewer parts, improving the channel to channel match. The rest of the filtering and sample rate conversion is performed digitally inside the ADC with digital filters that can be designed with essentially zero dispersion. The advantage of the Butterworth antialias filter in dispersion performance is significant. Dispersion corresponds to filter delay that varies with respect to frequency. For instance, a pure delay corresponds to a linear phase shift. If the phase is not a straight line, the delay will be different for different frequencies. Thus, broadband signals, like transients, will be spread in time, or dispersed. The derivative of the phase with respect to frequency provides a measure of the delay. If we examine this function for the two proposed AAFs shown in Figure 4, we see that the 8th order elliptic filter has over Effects of Sampling and Aliasing on the Conversion of Analog Signals to Digital Format