ДонНТУ Портал магистров ДонНТУ Автобиография Автореферат Библиотека Ссылки Отчет о поиске Индивидуальное задание

Digital Filter Design

Paul R. Moffitt, Frequency Devices

Link to original : http://www.evaluationengineering.com/archive/articles/1103data.htm

Digital signal processors (DSPs) continue to receive a great deal of attention in new product design. For example, digital filter design reflects the importance of understanding and using this technology to provide precision, stand-alone digital or integrated analog/digital product solutions. By using DSPs capable of sequencing and reproducing hundreds to thousands of discrete elements, design models can be used to simulate large hardware structures at relatively low cost. DSP techniques perform functions such as fast Fourier transforms (FFT), delay equalization, programmable gain, modulation, encoding/decoding, and filtering.

Programs can be written where: Filter weighting functions (coefficients) can be calculated on the fly to reduce memory requirements. Algorithms can be dynamically modified as a function of signal input. DSP represents a subset of signal-processing activities that use analog-to-digital converters (ADCs) to turn analog signals into streams of digital data. A stand-alone digital filter requires an ADC with an associated anti-alias filter, a DSP chip, and a PROM or software driver. An extensive sequence of multiplications and additions then can be performed on the digital data. In some applications, the designer also may want to place a digital-to-analog converter (DAC), accompanied by a reconstruction filter, on the output of the DSP to create an analog equivalent signal. Digital filters process digitized or sampled signals. They perform an extended sequence of multiplications and additions carried out at a uniformly spaced sample interval. These signals are passed through structures that shift the clocked data into adders, delay blocks, and multipliers. These structures change the mathematical values in a predetermined way. The resulting data represents the filtered or transformed signal. Distortion and noise can be introduced into digital filters simply by the conversion of analog signals into digital data, the digital filtering process itself, and conversion of processed data back into analog. When fixed-point processing is used, additional noise and distortion may be added during the filtering process because the filter consists of large numbers of multiplications and additions that produce errors, creating truncation noise. Increasing the bit resolution beyond 16 b reduces this filter noise.

For most applications, as long as the ADCs and the DACs have high enough bit resolution, distortions introduced by the conversions are less of a problem. Theoretically, the ratio of the rms value of a full-scale sine wave to the rms value of the quantization noise expressed in decibels is SNR = 6.02N + 1.76 dB Where: N = the number of bits in the ideal ADC Although DSPs rarely serve exclusively as anti-alias filters, they can offer features that have no practical counterpart in the analog world. Some examples are a linear phase filter that provides steep rolloff characteristics or a programmable digital filter that allows the signal conditioning to be changed on the fly via software. Frequency response or filter shape can be altered by loading stored or calculated coefficients into a DSP program. Instead of using a commercial DSP with software algorithms, a digital hardware filter also can be constructed from logic elements such as registers and gates or an integrated hardware block such as a field programmable gate array (FPGA). Digital hardware filters are desirable for high bandwidth applications, but the trade-offs are limited design flexibility and higher cost. Fixed-Point DSP and FIR Implementations Fixed-point DSP processors account for most DSP applications because of their smaller size and lower cost. The fixed-point math requires programmers to pay significant attention to the number of coefficients used in each algorithm when multiplying and accumulating digital data to prevent distortion caused by register overflow and a decrease of the signal-to-noise ratio caused by truncation noise. Finite impulse response (FIR) filters are implemented using a finite number of delay taps (n) on a delay line and n computation coefficients to compute the filter function. The structure is nonrecursive, a repetitive delay-and-add format, and most often used to produce FIR filters. It depends upon each sample of new and present value data. FIR filters create transfer functions that have no equivalent in linear circuit technology. They offer shape-factor accuracy and stability equivalent to very high-order linear active filters that cannot be achieved in the analog domain. Unlike infinite impulse response (IIR) filters, FIR filters are formed with only the equivalent of zeros in the linear domain. This means that the taps depress or push down the amplitude of the transfer function. The amount of depression for each tap depends on the value of the multiplier coefficient. For this reason, the total number of taps determines the steepness of the slope. The number of taps and the values of the computation coefficients (h0, h1,..hn..) are selected to weight the data being shifted down the delay line to create the desired amplitude response of the filter. In this configuration, there are no feedback paths to cause instability. The calculation coefficients are not constrained to particular values and can be used to implement filter functions that do not have a linear system equivalent. More taps increase the steepness of the filter rolloff while increasing calculation time and, for high-order filters, limiting bandwidth. The filter delay is calculated for the structure as: Delay = (? ? taps)/sampling rate For example, a 300-tap filter with a sampling rate of 48 kHz yields a minimum 3.125-ms delay. Designers also must be aware of the trade-offs between phase delay and filter precision when designing FIR filters. The bad news is that high-order FIR filters have longer delay. The good news is that the phase response remains linear as a function of frequency. In applications where linear phase is critical and long phase delay cannot be tolerated, a linear active Bessel or a constant delay filter may be a better selection. Two very different design techniques are commonly used for digital FIR filters: windows and equiripple.

Summary

Complex digital filter functions involve millions of mathematical operations. The speed of these operations depends on a variety of factors: DSP chip speed, the number of taps, and the number of bits of accuracy in each computation. For example, a DSP chip with a 10-MHz clock rate can serve as a simple FIR filter with 16-b precision and a corner frequency as high as 100 kHz. That same circuit can attain 24-b precision with corner frequencies up to 10 kHz. Today, many DSP turnkey and application-specific platforms are available along with development systems for the savvy engineer who wishes to do his or her own design. Many computer programs also exist that can determine the number of taps and the values of computation coefficients required to implement a specific digital-filter performance function. In some cases, these programs output files directly to a PROM burner or flash memory, automatically loading algorithms into the actual DSP circuit. One such software program is MATLAB® by The MathWorks, which calculates coefficients for designated FIR filters and produces IIR filter programs. Many hardware and software design options and trade-offs are available for providing signal-processing solutions. For that reason, having the availability of analog and DSP design and programming expertise along with application-specific intellectual property (IP) from one source can provide a strong argument for the busy design engineer to seek a turnkey or custom solution. Examples include: Multirate FIR filters, which can significantly extend low-frequency bandwidth limits and shorten filter delay. Both are design limitations of single rate-sampled DSP filter algorithms. Ultra low noise and distortion anti-alias and reconstruction digital filters to 120 dB. Low distortion signal generators to 20 b. ADCs and DACs with -100 dB or better noise floors. As DSP sample rates continue to increase, the bandwidth and performance of DSP solutions also will grow. Digital filters primarily are used when transfer-function requirements have no counterpart in the analog world or when a DSP already resides on the circuit board to perform other functions. Digital-filter selection is the choice or trade-off between floating-point DSP IIR filters and fixed-point DSP FIR filters. Whether you decide on a fixed-point FIR or floating-point IIR solution, the world still is analog. In many applications, the conversion from analog to digital and back to analog is a requirement, often with limitations in bandwidth and design flexibility.

One example is range limitation, which is the maximum bandwidth imposed by the sampling rate when altering the digital filter frequency. The solution is to adjust the clock, which forces adjustments in the anti-alias and reconstruction filter, requiring multiple fixed-frequency or programmable filters that typically are not cost-effective. Another approach adjusts the clock within the DSP by decimation or interpolation so the filter shape can be modified within the filter algorithm. This is called multirate filtering, and several decimations can be implemented in series to reach very low frequencies.


ДонНТУ Портал магистров ДонНТУ Автобиография Автореферат Библиотека Ссылки Отчет о поиске Индивидуальное задание