ECE503: Digital Signal Processing Lecture 5

Similar documents
ECE503: Digital Signal Processing Lecture 6

Stability Condition in Terms of the Pole Locations

Digital Signal Processing

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

Quadrature-Mirror Filter Bank

ECE503: Digital Signal Processing Lecture 4

Review of Fundamentals of Digital Signal Processing

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

Digital Signal Processing:

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

EEL3135: Homework #4

EECE 301 Signals & Systems Prof. Mark Fowler

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

Review of Discrete-Time System

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

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

EE 313 Linear Signals & Systems (Fall 2018) Solution Set for Homework #7 on Infinite Impulse Response (IIR) Filters CORRECTED

Z Transform (Part - II)

Digital Signal Processing IIR Filter Design via Bilinear Transform

Review of Fundamentals of Digital Signal Processing

Responses of Digital Filters Chapter Intended Learning Outcomes:

z-transform Chapter 6

Digital Signal Processing. Midterm 1 Solution

Lecture 7 Discrete Systems

Solutions: Homework Set # 5

LAB 6: FIR Filter Design Summer 2011

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

EE538 Final Exam Fall 2007 Mon, Dec 10, 8-10 am RHPH 127 Dec. 10, Cover Sheet

University of Illinois at Urbana-Champaign ECE 310: Digital Signal Processing

Transform Analysis of Linear Time-Invariant Systems

Optimum Ordering and Pole-Zero Pairing of the Cascade Form IIR. Digital Filter

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

EE 521: Instrumentation and Measurements

INF3440/INF4440. Design of digital filters

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

Grades will be determined by the correctness of your answers (explanations are not required).

Digital Filters Ying Sun

Discrete Time Systems

The Discrete-Time Fourier

UNIT - 7: FIR Filter Design

# 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.

Lecture 14: Minimum Phase Systems and Linear Phase

Grades will be determined by the correctness of your answers (explanations are not required).

EE482: Digital Signal Processing Applications

Discrete Time Systems

ECSE 512 Digital Signal Processing I Fall 2010 FINAL EXAMINATION

University of Waterloo Department of Electrical and Computer Engineering ECE 413 Digital Signal Processing. Spring Home Assignment 2 Solutions

ECGR4124 Digital Signal Processing Exam 2 Spring 2017

VI. Z Transform and DT System Analysis

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

LTI Discrete-Time Systems in Transform Domain Ideal Filters Zero Phase Transfer Functions Linear Phase Transfer Functions

LINEAR-PHASE FIR FILTERS DESIGN

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

Signals & Systems Handout #4

Course and Wavelets and Filter Banks. Filter Banks (contd.): perfect reconstruction; halfband filters and possible factorizations.

Discrete-Time Fourier Transform (DTFT)

Exercises in Digital Signal Processing

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Lecture 04: Discrete Frequency Domain Analysis (z-transform)

Recursive, Infinite Impulse Response (IIR) Digital Filters:

ECE 350 Signals and Systems Spring 2011 Final Exam - Solutions. Three 8 ½ x 11 sheets of notes, and a calculator are allowed during the exam.

Chap 2. Discrete-Time Signals and Systems

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

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

Multirate signal processing

z-transforms Definition of the z-transform Chapter

ELEG 305: Digital Signal Processing

Ch. 7: Z-transform Reading

Cast of Characters. Some Symbols, Functions, and Variables Used in the Book

GATE EE Topic wise Questions SIGNALS & SYSTEMS

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

The Z transform (2) 1

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 )

Very useful for designing and analyzing signal processing systems

PS403 - Digital Signal processing

Digital Signal Processing Lecture 8 - Filter Design - IIR

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

Z-TRANSFORMS. Solution: Using the definition (5.1.2), we find: for case (b). y(n)= h(n) x(n) Y(z)= H(z)X(z) (convolution) (5.1.

Digital Signal Processing

E : Lecture 1 Introduction

Optimum Ordering and Pole-Zero Pairing. Optimum Ordering and Pole-Zero Pairing Consider the scaled cascade structure shown below

EE102B Signal Processing and Linear Systems II. Solutions to Problem Set Nine Spring Quarter

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

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

Problem Value

Each problem is worth 25 points, and you may solve the problems in any order.

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

IT DIGITAL SIGNAL PROCESSING (2013 regulation) UNIT-1 SIGNALS AND SYSTEMS PART-A

Transform analysis of LTI systems Oppenheim and Schafer, Second edition pp For LTI systems we can write

EECE 301 Signals & Systems Prof. Mark Fowler

Computer Engineering 4TL4: Digital Signal Processing

Filter Design Problem

Lecture 3 Matlab Simulink Minimum Phase, Maximum Phase and Linear Phase Systems

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Linear Convolution Using FFT

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

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Lecture 14: Windowing

NAME: ht () 1 2π. Hj0 ( ) dω Find the value of BW for the system having the following impulse response.

Transcription:

ECE53: Digital Signal Processing Lecture 5 D. Richard Brown III WPI 3-February-22 WPI D. Richard Brown III 3-February-22 / 32

Lecture 5 Topics. Magnitude and phase characterization of transfer functions 2. Linear phase FIR filters 3. Simple FIR and IIR filtering 4. Complementary transfer functions 5. Inverse systems and equalization 6. System identification WPI D. Richard Brown III 3-February-22 2 / 32

Magnitude Response Characterization of Transfer Function Definition A causal stable system H with real-coefficient transfer function H(z) is called bounded real (BR) if its DTFT satisfies H(ω) for all ω. Note that causal stable transfer functions have all poles inside the unit circle, hence they must have a bounded magnitude response H(ω) K for all ω. The TF can be scaled by /K to make the system BR. Definition A stable system H with IIR transfer function H(z) is called allpass if its DTFT satisfies H(ω) = for all ω. Definition A causal stable system H with real-coefficient allpass transfer function is called lossless bounded real (LBR). WPI D. Richard Brown III 3-February-22 3 / 32

Allpass Delay Equalizer Example It is not possible to design a stable causal IIR filter with linear phase. So what we can do instead is cascade an allpass filter with an IIR filter to get approximately linear phase over a desired range of frequencies. Example: magnitude response.5.5 LPF APF cascade LPF >APF.5.5 2 2.5 3 3.5 phase response (rad) 5 5.5.5 2 2.5 3 3.5 group delay (samples) 6 4 2.5.5 2 2.5 3 3.5 normalized freq (rad/sample) WPI D. Richard Brown III 3-February-22 4 / 32

Allpass Filter Poles and Zeros Mirrored Across Unit Circle 2.5.5 Imaginary Part.5.5 2 2.5.5.5.5 2 2.5 3 Real Part WPI D. Richard Brown III 3-February-22 5 / 32

Phase Response Characterization of Transfer Function Definition A stable system H is called zero-phase if it has a DTFT satisfying H(ω) = for all ω where H(ω) >. Remark: A zero-phase dynamic system can not be implemented causally. Matlab filtfilt is an example of a non-causal zero-phase filtering technique. Definition A linear phase system H is a system with phase response θ(ω) = H(ω) = cω for all ω and any constant c. An affine phase system (also called a generalized linear phase system) H is a system with phase response θ(ω) = H(ω) = cω +β for all ω and any constants c and β. It is always possible to design an FIR filter with linear-phase response. It is not possible to design a stable causal IIR filter with linear phase response. WPI D. Richard Brown III 3-February-22 6 / 32

Phase Response Characterization of Transfer Function Definition A causal stable system H with transfer function H(z) with all zeros inside the unit circle is called minimum phase. Definition A causal stable system H with transfer function H(z) with all zeros outside the unit circle is called maximum phase. Definition A causal stable system H with transfer function H(z) with at least one zero inside the unit circle and at least one zero outside the unit circle is called mixed phase. Minimum phase systems are important because they have a stable inverse G(z) = /H(z). You can convert between min/max/mixed-phase systems by cascading allpass filters. WPI D. Richard Brown III 3-February-22 7 / 32

Phase Response Characterization Example H (z) = 6+z z 2 H 3 (z) = 2 5z 3z 2 H 2 (z) = z 6z 2 H 4 (z) = 3+5z 2z 2 As shown below, all four of these causal stable systems have the same magnitude response. Which are minimum, maximum, and mixed phase? magnitude response 7.5 7 6.5 6 5.5 5 4.5 H(z) H2(z) H3(z) H4(z) 4.5.5 2 2.5 3 3.5 phase response (rad) 2 2 4 6 8.5.5 2 2.5 3 3.5 normalized freq (rad/sample) WPI D. Richard Brown III 3-February-22 8 / 32

Four Types of Linear-Phase FIR Filters ( of 2) Type Impulse response symmetry Impulse response length I symmetric N odd (order is even) II symmetric N even (order is odd) III antisymmetric N odd (order is even) IV antisymmetric N even (order is odd) Symmetric length-n impulse response: h[n] = h[n n]. Antisymmetric length-n impulse response: h[n] = h[n n]. All of these types will have frequency response of the form H(ω) = e j(n )ω/2 e jβ H(ω) where H(ω) : R R is called the amplitude response. Note N is the order of the system (this can be confusing). Also note these filters all have the same constant group delay: τ g (ω) = (N ) 2. WPI D. Richard Brown III 3-February-22 9 / 32

Four Types of Linear-Phase FIR Filters (2 of 2) Type LPF HPF BPF BSF Comment I Y Y Y Y Most versatile. II Y N Y N Zero at z =. III N N Y N Zeros at z = ±. IV N Y Y N Zero at z =. WPI D. Richard Brown III 3-February-22 / 32

Simple Filtering I: Lowpass FIR Length N = 2 moving average filter just takes the average of the last two inputs: H(z) = 2 (+z ) = z + 2z Since this is an FIR filter, it has ROC everywhere except z =. Linear phase? Type? H(ω) = 2 (+e jω ) = e jω/2 cos(ω/2) Cutoff frequency is defined as the value of ω such that H(ω) 2 = 2. This is easy to compute: cos 2 (ω c /2) = /2 ω c = π/2. Can cascade to decrease width of passband. WPI D. Richard Brown III 3-February-22 / 32

Simple Filtering I: Lowpass FIR impulse response.5.5 magnitude resp.8.6.4.2 2 3 4 5 sample index n 2 3 Imaginary Part.5.5 phase resp.5.5.5 Real Part.5 2 3 WPI D. Richard Brown III 3-February-22 2 / 32

Simple Filtering II: Highpass FIR Length N = 2 moving difference filter just takes the difference of the last two inputs: H(z) = 2 ( z ) = z 2z Since this is an FIR filter, it has ROC everywhere except z =. Linear phase? Type? H(ω) = 2 ( e jω ) = je jω/2 sin(ω/2) Cutoff frequency is easy to compute: sin 2 (ω c /2) = /2 ω c = π/2. Can cascade to decrease width of passband. WPI D. Richard Brown III 3-February-22 3 / 32

Simple Filtering II: Highpass FIR impulse response.5.5 2 3 4 5 sample index n magnitude resp.8.6.4.2 2 3 Imaginary Part.5.5.5.5 Real Part phase resp 4.8 5 5.2 5.4 5.6 5.8 6 6.2 2 3 WPI D. Richard Brown III 3-February-22 4 / 32

Simple Filtering III: Notch FIR You can t get a notch with a length-2 FIR filter. We need at least length N = 3. This transfer function will work: H(z) = 2cos(ω )z +z 2 = z2 2cos(ω )z + z 2 (note book eq (7.74) is wrong). Not difficult to confirm z = e ±jω are the zeros. Since this is an FIR filter, it has ROC everywhere except z =. H(ω) = 2cos(ω )e jω +e j2ω = e jω (2cos(ω) 2cos(ω )) Easy to see H(ω) = when ω = ±ω. Linear phase? Type? Cascading may not be a good idea for this filter. WPI D. Richard Brown III 3-February-22 5 / 32

Simple Filtering III: Notch FIR impulse response 2 magnitude resp 3 2.5 2.5.5 2 2 3 4 5 sample index n 2 3 Imaginary Part.5.5.5.5 Real Part 2 phase resp 4 4.5 5 5.5 6 6.5 7 2 3 WPI D. Richard Brown III 3-February-22 6 / 32

Simple Filtering IV: Lowpass IIR Intuition: We want a zero at z = to block the high frequencies. We want a pole somewhere near z = (but inside the unit circle if our filter is to be causal & stable) to provide gain to the low frequencies. Candidate transfer function with real < α < : H(z) = K(+z ) αz = α +z 2 αz where in the second equality we ve selected K so that the maximum magnitude (which occurs at z = ) is one. We can find( the cutoff frequency with a bit of algebra to be ω c = cos 2α ), or we can solve for α in terms of the cutoff frequency +α 2 as α = sinω c. cosω c What happens if we set ω c = π/2? WPI D. Richard Brown III 3-February-22 7 / 32

Simple Filtering IV: Lowpass IIR impulse response.5.4.3.2. magnitude resp.8.6.4.2 5 5 2 sample index n 2 3 Imaginary Part.5.5 phase resp.5.5.5 Real Part.5 2 3 WPI D. Richard Brown III 3-February-22 8 / 32

Simple Filtering V: Highpass IIR Using the intuition you now have about the effect of poles and zeros on the frequency response, how would you construct a simple IIR highpass filter? WPI D. Richard Brown III 3-February-22 9 / 32

Simple Filtering V: Highpass IIR impulse response.5.5 magnitude resp 2.5.5 5 5 2 sample index n 2 3 Imaginary Part.5.5.5.5 Real Part phase resp 4.8 5 5.2 5.4 5.6 5.8 6 6.2 2 3 WPI D. Richard Brown III 3-February-22 2 / 32

Simple Filtering V: Bandpass IIR impulse response.5..5.5..5.2 2 4 6 sample index n magnitude resp.8.6.4.2 2 3 Imaginary Part.5.5 phase resp 5 5.5 6 6.5 7.5.5 Real Part 7.5 2 3 WPI D. Richard Brown III 3-February-22 2 / 32

Simple Filtering VI: Bandstop/Notch IIR impulse response.2.8.6.4.2 magnitude resp.8.6.4.2.2 2 3 4 5 sample index n 2 3 Imaginary Part.5.5.5.5 Real Part phase resp 5 5.5 6 6.5 7 7.5 2 3 WPI D. Richard Brown III 3-February-22 22 / 32

Simple Filtering VII: IIR Comb Filter impulse response.3.2...2.3.4 2 4 6 8 sample index n magnitude resp.8.6.4.2 2 3 Imaginary Part.5.5 phase resp 5 5.5 6 6.5 7.5.5 Real Part 7.5 2 3 WPI D. Richard Brown III 3-February-22 23 / 32

Delay-Complementary Transfer Functions Definition A set of L transfer functions {H (z),...,h L (z)} are called delay-complementary if their sum is equal to a scaled integer delay, i.e. L H k (z) = cz n k= for c and any n {,,...}. x[n] H (z) y[n] If H (z) and H 2 (z) are delay complementary, then y[n] = cx[n n ]. H 2 (z) When might something like this be useful? WPI D. Richard Brown III 3-February-22 24 / 32

Allpass-Complementary Transfer Functions Definition A set of L stable transfer functions {H (z),...,h L (z)} are called allpass-complementary if their sum is equal to an allpass transfer function, i.e. where A(ω) = for all ω. L H k (z) = A(z) k= Delay complementary transfer functions with c = are also allpass complementary. Some allpass complementary transfer functions are also delay complementary. x[n] H (z) H 2 (z) y[n] If H (z) and H 2 (z) are allpass complementary, then Y(ω) = X(ω)e jf(ω) for some phase function f(ω). WPI D. Richard Brown III 3-February-22 25 / 32

Power-Complementary Transfer Functions Definition A set of L stable transfer functions {H (z),...,h L (z)} are called power-complementary if their squared magnitude sum is a constant for all ω, i.e. L H k (ω) 2 = c > for all ω. k= See Matlab function iirpowcomp..2 IIR BPF power complementary filter total squared mag x[n] H (z) H 2 (z) y[n] squared magnitude resp.8.6.4.2.5.5 2 2.5 3 WPI D. Richard Brown III 3-February-22 26 / 32

Magnitude and Doubly-Complementary Transfer Functions Definition A set of L stable transfer functions {H (z),...,h L (z)} are called magnitude-complementary if their magnitude sum is a constant for all ω, i.e. L H k (ω) = c > for all ω. k= Same idea as power-complementary except we are adding magnitudes here, not squared magnitudes. Definition A set of L stable transfer functions {H (z),...,h L (z)} satisfying the allpass-complementary property and the power-complementary property are called doubly-complementary. WPI D. Richard Brown III 3-February-22 27 / 32

Power-Complementary vs. Magnitude Complementary omega = pi/4; % bandpass filter center frequency beta = cos(omega); alpha =.8; % controls bandwidth of BPF b = (-alpha)/2*[ -]; % numerator a = [ -beta*(+alpha) alpha]; % denominator [bp,ap] = iirpowcomp(b,a); % compute power complementary filter squared-magnitude plot magnitude plot.2 IIR BPF power complementary filter total squared mag.2 IIR BPF power complementary filter total mag squared magnitude resp.8.6 magnitude resp.8.6.4.4.2.2.5.5 2 2.5 3.5.5 2 2.5 3 WPI D. Richard Brown III 3-February-22 28 / 32

Inverse Systems and Equalization x[n] H (z) H 2 (z) y[n] The system H 2 (z) is the inverse of H (z) if y[n] = x[n]. This is equivalent to saying H (z)h 2 (z) = or h [n] h 2 [n] = δ[n]. Remarks:. When might something like this be useful? 2. Note that the zeros of H (z) become the poles of H 2 (z). 3. Note that the inverse system usually does not have a unique impulse response unless you further constrain the inverse system to be causal and/or stable (which identifies the ROC). 4. It is often the case that a causal stable inverse can not be found. One workaround is to find a causal stable generalized inverse such that H (z)h 2 (z) = z n for some integer n. WPI D. Richard Brown III 3-February-22 29 / 32

Equalization of Nonminimum Phase Channel Suppose H (z) = (z 4)(z+5) (z+.5)(z.3) with ROC z >.5. We form the inverse system H 2 (z) = (z+.5)(z.3) (z 4)(z+5). What are the possible ROCs? Is there a causal stable inverse? One approach in this case is to factor H (z) into a causal stable minimum phase filter and a causal stable allpass filter, i.e. H (z) = H min (z)a(z) = (4z )(5z +) (z +.5)(z.3) } {{ } minimum phase (z 4)(z +5) (4z )(5z +) } {{ } allpass ROC : z >.5 and invert just the minimum phase component, i.e. H 2 (z) = (z+.5)(z.3) (4z )(5z+). Then H (z)h 2 (z) but rather H (z)h 2 (z) = A(z). Hence, the equalizer H 2 (z) corrects the magnitude/power distortion, but leaves some residual phase distortion. WPI D. Richard Brown III 3-February-22 3 / 32

Deterministic System Identification Problem: We wish to determine the impulse response and/or transfer function of a causal LTI unknown system H. It is assumed that we can measure (but do not control) the input x[n] and the output y[n]. Methods:. Deconvolution (x[] ): h[] = y[] x[] and h[n] = y[n] n k= h[k]x[n k] x[] for n 2. Ratio of z-tranforms. Measure input x[n] and compute its z-transform X(z). Measure output y[n] and compute its z-transform Y(z). H(z) = Y(z)/X(z). 3. Energy density spectrum Measure input x[n] and compute autocorrelation rxx [l] DTFT S xx (ω). Measure output y[n] and compute cross-correlation ryx [l] DTFT S yx (ω). H(ω) = Syx (ω)/s xx (ω) for all ω where S xx (ω). WPI D. Richard Brown III 3-February-22 3 / 32

Conclusions. This concludes Chapter 7. You are responsible for all of the material in this chapter except Sections 7.8 (Digital Two-Pairs) and 7.9 (Algebraic Stability Test), even if it wasn t covered in lecture. 2. Please read Chapter 8 before the next lecture and have some questions prepared. 3. The next lecture is on Monday 2-Feb-22 at 6pm. Part of that lecture will be reserved for review. 4. The midterm exam is scheduled for Monday 27-Feb-22 and is based on Chapters -7 of your textbook. No homework will be due on Monday 27-Feb-22. WPI D. Richard Brown III 3-February-22 32 / 32