Recent Posts
- Do absolute encoders need calibration?
- What’s the difference between accuracy and precision?
- How do you determine MTBF?
- What are large hadrons, and why should we make them collide?
- How does an RTD work?
- What’s the best way to sense electric current for control applications?
- Can SMP computing help predictive maintenance?
- Can smart instruments help predictive maintenance?
- What’s holding up use of hydrogen as a fuel?
- How do I find/choose a system integrator for a mechatronics project?
Recent Comments
- David Neal, P.E on Do absolute encoders need calibration?
- sillyblindharper on What’s the difference between accuracy and precision?
- Matt on How old is the RCA connector standard?
- Sen Can on What’s holding up use of hydrogen as a fuel?
- WILL DELSMAN on What’s the best way to sense electric current for control applications?
Most Commented On
- For a fail-safe 24 V dc auxilary supply, is it better to use 12 batteries of 2 V each, or two 12 V batteries? (3)
- How old is the RCA connector standard? (3)
- What is the ideal background for a mechatronics engineer? (2)
- What’s holding up use of hydrogen as a fuel? (2)
- What’s the best way to sense electric current for control applications? (2)
Archives
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
Blog
Link This | Email this | Blog This | Comments (0)
How does a digital filter work?
Digital filters capitalize on the fact that digital electronics looks at waveforms as a timed sequence of values, rather than instantaneous voltages. Digital filters start with an analog waveform, convert it to a digital waveform, perform operations on the digital values, then convert the waveform back to an analog waveform.
The figure below shows the steps in this process. The analog waveform is a time-varying voltage called the baseband signal. Passing this baseband signal through an analog-to-digital convertor (ADC) changes it to a series of voltage measurements, which are stored as an ordered set of numbers with a time interval associated with each. A digital signal processor (DSP), which may be an ASIC, FPGA, or even a fast microprocessor, performs a Fourier transform on the data streaming in. This changes it from a series of numbers associated with time intervals to another series of numbers associated with frequency intervals — a digital spectrum.
The digital filter is actually an ordered set of numbers representing the filter function. That is, they can take on any values from zero to one (inclusive) and each number is associated with a frequency interval. It is important that the frequency intervals match the frequency intervals associated with the digital spectrum.
Next, the DSP convolves the spectrum with the filter. Convolution is simply the process of taking the spectral value associated with each frequency interval and multiplying it by the associated filter value. The result is another set of numbers representing the filtered spectrum.
In the fourth step, the DSP performs an inverse Fourier transform, which recovers a digital representation of the filtered baseband signal. Finally, a digital-to-analog converter produces a time-varying voltage that closely matches the analog signal that would result from passing the analog baseband signal through an analog filter having the same filter function as the digital filter.
Digital filters have three major advantages over analog filters. First and foremost, digital filters can use any filter function. Unlike analog filters, digital filters are not limited to those functions attainable with resistor-capacitor-inductor networks. The filter function need not be continuous. It need not have definable derivatives. It’s just a bunch of numbers assigned to frequency intervals. This characteristic provides essentially limitless flexibility.
The second advantage is size. Analog filters are as big as the components needed to make them, which can be quite large for complex filters operating at low frequencies. Digital filters can be and have been completely integrated on a single IC.
Finally, reprogramming a digital filter is simply a matter of loading in a new set of numbers for the filter function. Reprogramming an analog filter generally means designing and building an entirely new filter.
Digital filtering’s main disadvantage is speed. The calculations, especially the Fourier transforms, are computationally intensive. The filter bandwidth can be only as wide as the speed of the processor(s) allow. This is why digital filters are often implemented with FPGAs or ASICs, which do the math in fast hardware rather than much slower software.
Also read: What’s an FPGA, and what’s it good for? and ASICs Versus FPGAs
How does a digital filter work?
June 30, 2008
Digital filters capitalize on the fact that digital electronics looks at waveforms as a timed sequence of values, rather than instantaneous voltages. Digital filters start with an analog waveform, convert it to a digital waveform, perform operations on the digital values, then convert the waveform back to an analog waveform. The figure below shows the steps in this process. The analog waveform is a time-varying voltage called the baseband signal. Passing this baseband signal through an analog-to-digital convertor (ADC) changes it to a series of voltage measurements, which are stored as an ordered set of numbers with a time interval associated with each. A digital signal processor (DSP), which may be an ASIC, FPGA, or even a fast microprocessor, performs a Fourier transform on the data streaming in. This changes it from a series of numbers associated with time intervals to another series of numbers associated with frequency intervals — a digital spectrum.
The digital filter is actually an ordered set of numbers representing the filter function. That is, they can take on any values from zero to one (inclusive) and each number is associated with a frequency interval. It is important that the frequency intervals match the frequency intervals associated with the digital spectrum.
Next, the DSP convolves the spectrum with the filter. Convolution is simply the process of taking the spectral value associated with each frequency interval and multiplying it by the associated filter value. The result is another set of numbers representing the filtered spectrum.
In the fourth step, the DSP performs an inverse Fourier transform, which recovers a digital representation of the filtered baseband signal. Finally, a digital-to-analog converter produces a time-varying voltage that closely matches the analog signal that would result from passing the analog baseband signal through an analog filter having the same filter function as the digital filter.
Digital filters have three major advantages over analog filters. First and foremost, digital filters can use any filter function. Unlike analog filters, digital filters are not limited to those functions attainable with resistor-capacitor-inductor networks. The filter function need not be continuous. It need not have definable derivatives. It’s just a bunch of numbers assigned to frequency intervals. This characteristic provides essentially limitless flexibility.
The second advantage is size. Analog filters are as big as the components needed to make them, which can be quite large for complex filters operating at low frequencies. Digital filters can be and have been completely integrated on a single IC.
Finally, reprogramming a digital filter is simply a matter of loading in a new set of numbers for the filter function. Reprogramming an analog filter generally means designing and building an entirely new filter.
Digital filtering’s main disadvantage is speed. The calculations, especially the Fourier transforms, are computationally intensive. The filter bandwidth can be only as wide as the speed of the processor(s) allow. This is why digital filters are often implemented with FPGAs or ASICs, which do the math in fast hardware rather than much slower software.
Also read: What’s an FPGA, and what’s it good for? and ASICs Versus FPGAs
![]() |
| Digital filters use a five-step process that starts and ends with an analog signal, but performs all the mathematical operations digitally. |
Posted by Charlie Masi on June 30, 2008 | Comments (0)
Advertisement
Advertisements




