Sunteți pe pagina 1din 2

9/22/13

Chapter 1: Basic concepts of digital filtering and types of digital filters - Digital Filter Design - mikroElektronika
Products Solutions Store Distributors Libstock C ontact Us
se arch he re

Login | C art (0)

Digital Filter Design


TOC Chapter 1 Chapter 2 Chapter 3

Featured Development Tools dsPICPRO4 Development System

Chapter 1: Introduction
1.1. Basic concepts of digital filtering 1.2. Types of digital filters

1.1 Basic concepts of digital filtering


Digital filtering has specific characteristics that you need to pay special attention to. The analog input signal must satisfy certain requirements. Furthermore, on converting an output digital signal into analog form, it is necessary to perform additional signal processing in order to obtain the appropriate result. Figure 1-1 shows the block diagram of digital filtering process.
The dsPICPRO4 supports the latest 64and 80-pin dsPIC30F microcontrollers from Microchip. It comes w ith a dsPIC30F6014A. The system includes an USB 2.0 programmer, mikroICD (In-Circuit Debugger), touch panel controller, CAN, RS485, DAC and RTC. [more info]

Figure 1-1. Digital filtering

EasydsPIC4A Development System

The process of converting an analog signal into digital form is performed by sampling with a finite sampling frequency fs. If an input signal contains frequency components higher than half the sampling frequency (fs/2), it will cause distortion to the original spectrum. This is the reason why it is first necessary to perform filtering of an input signal using a low-pass filter that eliminates high-frequency components from input frequency spectrum. This filter is called anti-aliasing filter as it prevents aliasing. After the process of filtering and sampling, a digital signal is ready for further processing which, in this case, is filtering using the appropriate digital filter. The output signal is also a digital signal which, in some cases, needs to be converted back into analog form. After digital-to-analog conversion, signal contains some frequency components higher than fs/2 that must be eliminated. Again, it is necessary to use a low-pass filter with the sampling frequency fs/2. The specific characteristics of conversion affecting the signal are beyond the scope of this book. Digital filter attenuation is usually expressed in terms of the logarithmic decibel scale (dB). The attenuation measured in decibels can be found using the following expression: a = 20 * log(H(f)) Cut-off frequencies are used for filter specification, which will be discussed later. The cut-off frequency of the passband is a frequency at which the transition of the passband to the transition region occurs. The cut-off frequency of the stopband is a frequency at which the transition of the transition region to the stopband occurs. These two frequencies are equivalent only for the ideal filter which is not possible to realize in practice. In other words, they are always different.

EasydsPIC4A is a full-featured development system that supports the latest 18-, 28- and 40-pin dsPIC30F MCUs. It comes w ith the dsPIC30F4013 microcontroller. The board features a USB 2.0 programmer, mikroICD (In-Circuit Debugger), touch panel controller etc. [more info]

1.2.Types of digital filters


Filters can be classified in several different groups, depending on what criteria are used for classification. The two major types of digital filters are finite impulse response digital filters (FIR filters) and infinite impulse response digital filters (IIR). Both types have some advantages and disadvantages that should be carefully considered when designing a filter. Besides, it is necessary to take into account all fundamental characteristics of a signal to be filtered as these are very important when deciding which filter to use. In most cases, it is only one characteristic that really matters and it is whether it is necessary that filter has linear phase characteristic or not. Speech signal, for example, can be processed in the systems with non-linear phase characteristic. The phase characteristic of a speech signal is not of the essence and as such can be neglected, which results in the possibility to use much wider range of systems for its prosessing. There are also signals for which the phase characteristic is of the essence. A typical example are signals obtained from various sensors in industry. Therefore, it is necessary that a filter has linear phase characteristic to prevent loosing important information. When a signal to be filtered is analysed in this way, it is easy to decide which type of digital filter is best to use. Accordingly, if the phase characteristic is of the essence, FIR filters should be used as they have linear phase characteristic. Such filters are of higher order and more complex, therefore. Otherwise, when it is only frequency response that matters, it is preferable to use IIR digital filters which have far lower order, i.e. are less complex, and thus much easier to realize. The basic characteristics of Finite Impulse Response (FIR) filters are:

linear phase characteristic; high filter order (more complex circuits); and stability.
The basic characteristics of Infinite Impulse Response (IIR) are:

www.mikroe.com/chapters/view/71/chapter-1-basic-concepts-of-digital-filtering-and-types-of-digital-filters/

1/2

9/22/13

Chapter 1: Basic concepts of digital filtering and types of digital filters - Digital Filter Design - mikroElektronika
non-linear phase characteristic; low filter order (less complex circuits); and resulting digital filter has the potential to become unstable.
table of contents | next chapter

MikroElektronika Embedded Solutions


PIC Solution
PIC De ve lopm e nt Boards PIC C om pile rs PIC Program m e rs/De bugge rs PIC Kits PIC Book s

Follow us on
PIC32 Solution
PIC 32 De ve lopm e nt Boards PIC 32 C om pile rs PIC 32 Program m e rs/De bugge rs PIC 32 Kits

dsPIC Solution
dsPIC De ve lopm e nt Boards dsPIC C om pile rs dsPIC Program m e rs/De bugge rs dsPIC Kits dsPIC Book s

Add-on boards
C lick Boards m ik rom e dia shie lds C om m unication boards Storage boards R e al Tim e C lock boards Display boards Me asure m e nt boards Audio & Voice boards Powe r Supply boards GPS boards GSM/GPR S boards

Additional Software
Visual TFT Visual GLC D Pack age Manage r GLC D Font C re ator

8051 Solution
8051 De ve lopm e nt Boards 8051 C om pile rs 8051 Program m e rs/De bugge rs 8051 Book s 8051 Kits

AVR Solution
AVR De ve lopm e nt Boards AVR C om pile rs AVR Program m e rs/De bugge rs AVR Kits

ARM Solution
AR M De ve lopm e nt Boards AR M C om pile rs AR M Program m e rs/De bugge rs AR M Kits

Support

Forum

m ik roBUS

Le ts m ak e

Pre ss

Le gal Inform ation

Product Archive

About Us

C opyright 1998 - 2013. MikroElektronika. All rights reserved. All trade and/or services marks mentioned are the property of their respective owners.

www.mikroe.com/chapters/view/71/chapter-1-basic-concepts-of-digital-filtering-and-types-of-digital-filters/

2/2

S-ar putea să vă placă și