DatasheetsPDF.com

AN540

Microchip Technology

Implementing IIR Digital Filters

www.DataSheet4U.com Implementing IIR Digital Filters AN540 Implementing IIR Digital Filters INTRODUCTION This applicat...


Microchip Technology

AN540

File Download Download AN540 Datasheet


Description
www.DataSheet4U.com Implementing IIR Digital Filters AN540 Implementing IIR Digital Filters INTRODUCTION This application note describes the implementation of various digital filters using the PIC17C42, the first member of Microchip’s 2nd generation 8-bit microcontrollers. The PIC17C42 is a very high speed 8-bit microcontroller with an instruction cycle time of 250ns (@ 16 MHz input clock). Even though PIC17C42 is an 8-bit device, it’s high speed and efficient instruction set allows implementation of digital filters for practical applications. Traditionally digital filters are implemented using expensive Digital Signal Processors (DSPs). In a system the DSP is normally a slave processor being controlled by either an 8- or 16-bit microcontroller. Where sampling rates are not high (esp. in mechanical control systems), a single chip solution is possible using the PIC17C42. This application note provides a few examples of implementing digital filters. Example code for 2nd order Infinite Impulse Response (IIR) filters is given. The following type of filters are implemented: Low Pass High Pass Band Pass Band Stop (notch) filter THEORY OF OPERATION Digital filters in most cases assume the following form of relationship between the output and input sequences. y(n) = - ∑ aiy(n - i) + ∑ bjx(n - j) i=o j=o M N The above equation basically states that the present output is a weighted sum of the past inputs and past outputs. In case of FIR filters, the weighted constants ai=0 ...




Similar Datasheet




@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site. (Privacy Policy & Contact)