Digital Signal Processing Lecture 9 - Design of Digital Filters - FIR

Similar documents
Digital Signal Processing Lecture 8 - Filter Design - IIR

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

EE 521: Instrumentation and Measurements

Transform Analysis of Linear Time-Invariant Systems

Lecture 7 Discrete Systems

Filter Design Problem

-Digital Signal Processing- FIR Filter Design. Lecture May-16

Digital Signal Processing

Review of Fundamentals of Digital Signal Processing

Digital Signal Processing Lecture 3 - Discrete-Time Systems

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

Discrete-Time Fourier Transform (DTFT)

Stability Condition in Terms of the Pole Locations

EE482: Digital Signal Processing Applications

DISCRETE-TIME SIGNAL PROCESSING

Review of Fundamentals of Digital Signal Processing

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

2. Typical Discrete-Time Systems All-Pass Systems (5.5) 2.2. Minimum-Phase Systems (5.6) 2.3. Generalized Linear-Phase Systems (5.

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. Forslag til fasit, versjon-01: Problem 1 Signals and systems.

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Filter Analysis and Design

EEL3135: Homework #4

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science. Fall Solutions for Problem Set 2

UNIT - 7: FIR Filter Design

Signals and Systems. Spring Room 324, Geology Palace, ,

Digital Signal Processing

Discrete Time Systems

(Refer Slide Time: 01:28 03:51 min)

LAB 6: FIR Filter Design Summer 2011

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science Discrete-Time Signal Processing Fall 2005

EE123 Digital Signal Processing. M. Lustig, EECS UC Berkeley

INF3440/INF4440. Design of digital filters

Computer-Aided Design of Digital Filters. Digital Filters. Digital Filters. Digital Filters. Design of Equiripple Linear-Phase FIR Filters

Chap 2. Discrete-Time Signals and Systems

Digital Signal Processing. Midterm 1 Solution

ECE 8440 Unit 17. Parks- McClellan Algorithm

Multirate Digital Signal Processing

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Optimal Design of Real and Complex Minimum Phase Digital FIR Filters

Discrete-Time Signals and Systems. Frequency Domain Analysis of LTI Systems. The Frequency Response Function. The Frequency Response Function

Efficient algorithms for the design of finite impulse response digital filters

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Lecture 19 IIR Filters

Discrete-time signals and systems

Your solutions for time-domain waveforms should all be expressed as real-valued functions.

Digital Signal Processing IIR Filter Design via Bilinear Transform

On the Frequency-Domain Properties of Savitzky-Golay Filters

ECE 410 DIGITAL SIGNAL PROCESSING D. Munson University of Illinois Chapter 12

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Digital Signal Processing

Very useful for designing and analyzing signal processing systems

ELEG 305: Digital Signal Processing

APPLIED SIGNAL PROCESSING

Department of Electrical and Computer Engineering Digital Speech Processing Homework No. 6 Solutions

LABORATORY 3 FINITE IMPULSE RESPONSE FILTERS

Filter structures ELEC-E5410

Review of Discrete-Time System

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

EC Signals and Systems

DSP. Chapter-3 : Filter Design. Marc Moonen. Dept. E.E./ESAT-STADIUS, KU Leuven

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

ELC 4351: Digital Signal Processing

ECE4270 Fundamentals of DSP Lecture 20. Fixed-Point Arithmetic in FIR and IIR Filters (part I) Overview of Lecture. Overflow. FIR Digital Filter

Lecture 5 - Assembly Programming(II), Intro to Digital Filters

2.161 Signal Processing: Continuous and Discrete Fall 2008

Multirate signal processing

Digital Control & Digital Filters. Lectures 21 & 22

EE 225D LECTURE ON DIGITAL FILTERS. University of California Berkeley

Multidimensional digital signal processing

Solutions: Homework Set # 5

Z Transform (Part - II)

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

2.161 Signal Processing: Continuous and Discrete Fall 2008

Chapter 7: The z-transform

ECE503: Digital Signal Processing Lecture 5

DSP-CIS. Chapter-4: FIR & IIR Filter Design. Marc Moonen

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

Use: Analysis of systems, simple convolution, shorthand for e jw, stability. Motivation easier to write. Or X(z) = Z {x(n)}

ELEG 5173L Digital Signal Processing Ch. 5 Digital Filters

# FIR. [ ] = b k. # [ ]x[ n " k] [ ] = h k. x[ n] = Ae j" e j# ˆ n Complex exponential input. [ ]Ae j" e j ˆ. ˆ )Ae j# e j ˆ. y n. y n.

Analog vs. discrete signals

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Frequency-Domain C/S of LTI Systems

DIGITAL SIGNAL PROCESSING UNIT III INFINITE IMPULSE RESPONSE DIGITAL FILTERS. 3.6 Design of Digital Filter using Digital to Digital

EFFICIENT REMEZ ALGORITHMS FOR THE DESIGN OF NONRECURSIVE FILTERS

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF INFORMATION TECHNOLOGY. Academic Year

Digital Filter Structures. Basic IIR Digital Filter Structures. of an LTI digital filter is given by the convolution sum or, by the linear constant

Digital Signal Processing Lecture 5

UNIT - III PART A. 2. Mention any two techniques for digitizing the transfer function of an analog filter?

Fourier Series Representation of

X (z) = n= 1. Ã! X (z) x [n] X (z) = Z fx [n]g x [n] = Z 1 fx (z)g. r n x [n] ª e jnω

Introduction to Digital Signal Processing

There are two main classes of digital lter FIR (Finite impulse response) and IIR (innite impulse reponse).

Chapter 7: IIR Filter Design Techniques

Signals and Systems Lecture 8: Z Transform

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

Signals & Systems Handout #4

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

Lecture 3 - Design of Digital Filters

Transcription:

Digital Signal Processing - Design of Digital Filters - FIR Electrical Engineering and Computer Science University of Tennessee, Knoxville November 3, 2015

Overview 1 2 3 4

Roadmap Introduction Discrete-time signals and systems - LTI systems Unit sample response h[n]: uniquely characterizes an LTI system Linear constant-coefficient difference equation Frequency response: H(e jω ) Complex exponentials being eigenvalues of an LTI system: y[n] = H(e jω )x[n] Fourier transform z transform The z-transform, X(z) = n= x[n]z n Region of convergence - the z-plane System function, H(z) Properties of the z-transform The significance of zeros The inverse z-transform, x[n] = 1 2πj C X(z)zn 1 dz: inspection, power series, partial fraction expansion Relationships between the n, ω, and z domains

Review - Design structures Different representations of causal LTI systems LCDE with initial rest condition H(z) with z > R + and starts at n = 0 Block diagram vs. Signal flow graph and how to determine system function (or unit sample response) from the graphs Design structures Direct form I (zeros first) Direct form II (poles first) - Canonic structure Transposed form (zeros first) IIR: cascade form, parallel form, feedback in IIR (computable vs. noncomputable) FIR: direct form, cascade form, parallel form, linear phase Metric: computational resource and precision Sources of errors: coefficient quantization error, input quantization error, product quantization error, limit cycles Pole sensitivity of 2nd-order structures: coupled form Coefficient quantization examples: direct form vs. cascade form

Review - Filter Design - IIR Design guidelines mapping of the good behavior of jω axis to the unit circle z = 1 mapping of the stable poles CT > DT Impulse invariance Bilinear transformation

FIR filters with generalized linear phase General FIR filters y[n] = M 1 k=0 h[k]x[n k], H(z) = M 1 k=0 All poles are at z = 0 ROC is the entire z-plane except for z = 0 FIR filters with generalized linear phase h[k]z k H(e jω ) = A(e jω )e j(β αω) arg[h(e jω )] = β ωα, 0 < ω < π grd[h(e jω )] = d dω {arg[h(ejω )]} = α Necessary condition on h[n] to have constant group delay h[n] sin[ω(n α) + β] = 0 for all ω n=

Four types of causal FIR systems with generalized linear phase Sufficient condition: h[n] satisfies the symmetry and antisymmetry conditions h[n] = ±h[m n], n = 0, 1,, M Type 1: h[n] = h[m n], M even. β = 0 or π. Delay is even as α = M/2. M/2 H(e jω ) = e jωm/2 (h[m/2] + 2 h[m/2 k] cos ωk) k=1 Type 2: h[n] = h[m n], M odd. β = 0 or π. Delay is integer plus a half. (M+1)/2 H(e jω ) = e jωm/2 (2 h[(m+1)/2 k] cos[ω(k 1/2)]) k=1

Four types of causal FIR systems (cont ) Type 3: h[n] = h[m n], M even. β = π/2 or 3π/2. Delay is integer. Type 4: h[n] = h[m n], M odd. β = π/2 or 3π/2. Delay is integer plus a half.

Examples h[n]

Examples H(e jω ), α, and group delay

Zeros filters with generalized linear phase The roots of H(z) must occur in reciprocal pairs, and If h[n] is real, the complex-valued roots must occur in complex-conjugate pairs

Zeros of the four types systems Type I and II: z = 1 Type III and IV: z = ±1

Design techniques Windows Equiripple design

FIR filter design by windowing Desired frequency response, H d (e jω ) vs. the impulse response, h d [n] H d (e jω ) = h d [n]e jωn, h d [n] = 1 π H d (e jω )e jωn dω 2π n=0 The need for applying a window function { hd [n] n = 0, 1,, M 1 h[n] = h d [n]w[n] = 0 otherwise H(e jω ) = 1 π 2π π H d(e jθ )W (e j(ω θ) )dθ H(e jω ) is the periodic convolution of the desired ideal frequency response with the Fourier transform of the window, a smeared version of H d (e jω ) What kind of window function, w[n], will make H(e jω ) = H d (e jω )? π

FIR filter design by windowing (cont ) W (e jω ) = M 1 k=0 e jωn = 1 e jωm 1 e jω = e jω(m 1)/2 sin(ωm/2) sin(ω/2)

FIR filter design by windowing (cont ) Width of the main lobe, ω m = 4π/(M + 1)

Different windows

Different windows (cont )

The Kaiser window filter design method w[n] = { I0 [β(1 [(n α)/α] 2 ) 1/2 ] I 0 (β), 0 n M 0, otherwise

The Kaiser window filter design method (cont ) Getting a trade-off between the main-lobe width and side-lobe area If the window is tapered more, the side lobes of the FT become smaller, but the main lobe becomes wider If holding β constant while increasing M, the width of the main lobe is smaller but the peak amplitude of side load does not change. Through extensive numerical experimentation, Kaiser obtained a pair of formula to meet a given frequency-selective filter specification

The Kaiser window filter design method (cont ) A = 20 log 10 δ, δ : the peak approximation error 0.1102(A 8.7), A > 50 β = 0.5842(A 21) 0.4 + 0.07886(A 21), 21 A 50 0.0, A < 21 M = A 8 2.285 ω, ω = ω s ω p

Relationship of the Kaiser window to other windowes

Examples

Limitations Potential problems in linear-phase FIR filter design The error is greatest on either side of a discontinuity of the ideal frequency response and becomes smaller for frequencies away from the discontinuity Approximately equal errors in the passband and stopband No control over the exact location of ω p and ω s Intuitive solutions Design the best for a given value of M Make the approximation error spread out uniformly in frequency Separately adjust passband and stopband ripples The minmax strategy (or frequency-weighted error criterion): minimize the maximum error

Parks-McClellan algorithm Reformulating the filter design problem as a problem in polynomial approximation h e [n] = h e [ n] A e (e jω ) = h e [0] + L n=1 2h e[n] cos(ωn) h[n] = h e [n M/2] = h[m n] H(e jω ) = A e (e jω )e jωm/2 A e (e jω ) = L k=0 a k(cos ω) k = P(x) x=cos ω Parks and McClellan showed that with M, ω p, ω s fixed, the filter design problem becomes a problem in Chebyshev approximation over disjoint sets

The Chebyshev approximation problem and the minmax (or Chebyshev) criterion E(ω) = W (ω)[h { d (e jω ) A e (e jω )] 1, 0 ω H d (e jω ωp ) = { 0, ω s ω π 1/K, 0 ω ωp W (ω) = 1, ω s ω π, K = δ 1/δ 2 min (max E(ω) ) {h e[n]:0 n L}

Alternation theorem Let F P denote the closed subset consisting of the disjoint union of closed subsets of the real axis x. Then P(x) = r a(k)x k k=0 is an rth-order polynomial. Also, D P (x) denotes a given desired function of x that is continuous on F P ; W P (x) is a positive function, continuous on F P, and E P (x) = W P (x)[d P (x) P(x)] is the weighted error. The maximum error is defined as E = max x F P E P (x)

Alternation theorem (cont ) A necessary and sufficient condition that P(x) be the unique r th-order polynomial that minimizes E is that E P (x) exhibits at least (r + 2) alternations; i.e., there must exist at least r + 2 values x i in F P such that x 1 < x 2 < < x r+2 and such that E P (x i ) = E P (x i+1 ) = ± E for i = 1, 2,, (r + 1)

Example

Equiripple approximations - type I lowpass filters x = cos ω, L = M/2, P(cos ω) = L { k=0 a k(cos ω) k 1, cos ωp cos ω 1, D P (cos ω) = { 0, 1 cos ω cos ω s 1/K, cos ωp cos ω 1 W P (cos ω) = 1, 1 cos ω cos ω s E P (cos ω) = W P (cos ω)[d P (cos ω) P(cos ω)] F P : 0 ω ω p and ω s ω π The alternation theorem states that a set of coefficients a k will correspond to the filter representing the unique best approximation to the ideal lowpass filter with the ratio δ 1 /δ 2 fixed at K and with passband and stopband edges ω p and ω s if and only if E P (cos ω) exhibits at least (L + 2) alternations on F P. Such approximations are called equiripple approximations.

Equiripple approximations - example

Properties of type I lowpass filters The maximum possible number of alternations of the error is (L + 3) Alternations will always occur at ω p and ω s All points with zero slope inside the passband and all points with zero slope inside the stopband will correspond to alternations, except possibly at ω = 0 and ω = π equiripple

Examples - Possible optimum lowpass filter approximations for L = 7

The Parks-McClellan algorithm - polynomial interpolation W (ω i )[H d (e jω i ) A e (e jω i )] = ( 1) i+1 δ, i = 1, 2,, (L + 2)

Example, ω p = 0.4π, ω s = 0.6π, δ 1 = 0.01, δ 2 = 0.001 M = 10 log 10 (δ 1δ 2 ) 13 2.324 ω