Chapter 14Finite Impulse Response (FIR) Filter Implementation TI C5000官方课件.ppt

Chapter 14Finite Impulse Response (FIR) Filter Implementation TI C5000官方课件.ppt

Chapter 14Finite Impulse Response (FIR) Filter Implementation TI C5000官方课件

Copyright ? 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 14 Finite Impulse Response (FIR) Filter Implementation Outline Outline of FIR Filters Generalities on Digital Filters FIR Filters with Matlab Implementation of FIR Filters Digital Filters Linear, Time-Invariant Digital Systems Linearity Impulse Response Input-Output Relationship, Convolution Input-Output Relationship, Convolution Using linearity and time invariance: Output for a Single Frequency Input Single frequency input ? Single frequency output Frequency Transfer Function For a digital filter the frequency transfer function is periodic. Relationship Between Fourier Transforms of Input and Output Z Transfer Function Basic Relationships of a Digital Filter Rational z Transfer Function Linear equation with constant coefficients. IIR and FIR Filters IIR = Infinite Impulse Response FIR = Finite Impulse Response FIR and IIR FIR: output yn is a linear combination of a finite number of input samples. Causality and Stability A filter is causal if hn=0 for n 0 A filter is stable if the output is bounded for any bounded input. Condition for stability is: All the poles of H(z) are inside the unit circle FIR are always stable. Or: Representation of Poles and Zeroes of H(z) in the Complex Plane Some Useful Matlab Functions Example for a FIR filter: Some Useful Matlab Functions Plot impulse response: stem(b) Plot amplitude and phase of transfer function: plot(f,HfA) and plot(f,Hfphi) Some Useful Matlab Functions Generate a test signal = sum of cosines: x=cos(2*pi*[0:99]*0.25)+2*cos(2*pi*[0:99]*0.1); Apply the filter to x. Output is y: y=filter(b,a,x); Plot the results: plot(x); plot(y) Calculation of a FIR using Matlab For given attenuation and frequency response characteristics, the transfer function can be calculated using different methods: Mean square error, miniMax (Chebychev) Empirical window method Corresponding Matlab functions firls and remez. fir and fir1. Example using Matlab Design

文档评论(0)

1亿VIP精品文档

相关文档