2003-10-28Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 7: Filter types and structures 1.Some filter types 2.Minimum and maximum phase 3.Filter.

Slides:



Advertisements
Similar presentations
Signal Processing in the Discrete Time Domain Microprocessor Applications (MEE4033) Sogang University Department of Mechanical Engineering.
Advertisements

ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
2/17/2007DSP Course-IUST-Spring Semester 1 Digital Signal Processing Electrical Engineering Department Iran University of Science & Tech.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
ELEN 5346/4304 DSP and Filter Design Fall Lecture 7: Z-transform Instructor: Dr. Gleb V. Tcheslavski Contact:
AMI 4622 Digital Signal Processing
LINEAR-PHASE FIR FILTERS DESIGN
MM3FC Mathematical Modeling 3 LECTURE 6 Times Weeks 7,8 & 9. Lectures : Mon,Tues,Wed 10-11am, Rm.1439 Tutorials : Thurs, 10am, Rm. ULT. Clinics : Fri,
1 Copyright © 2001, S. K. Mitra Polyphase Decomposition The Decomposition Consider an arbitrary sequence {x[n]} with a z-transform X(z) given by We can.
Implementation of Basic Digital Filter Structures R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
IIR Filters and Equalizers R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Z-Transform Fourier Transform z-transform. Z-transform operator: The z-transform operator is seen to transform the sequence x[n] into the function X{z},
Relationship between Magnitude and Phase (cf. Oppenheim, 1999)
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 6: Filters - Introduction 1.Simple Filters 2.Ideal Filters 3.Linear Phase and FIR filter.
Lecture 9: Structure for Discrete-Time System XILIANG LUO 2014/11 1.
Unit III FIR Filter Design
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
1 Diagramas de bloco e grafos de fluxo de sinal Estruturas de filtros IIR Projeto de filtro FIR Filtros Digitais.
DSP-CIS Chapter-5: Filter Realization Marc Moonen Dept. E.E./ESAT-STADIUS, KU Leuven
DISCRETE-TIME SIGNALS and SYSTEMS
Chapter 6 Digital Filter Structures
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Copyright © 2001, S. K. Mitra Digital Filter Structures The convolution sum description of an LTI discrete-time system be used, can in principle, to implement.
Husheng Li, UTK-EECS, Fall  Study how to implement the LTI discrete-time systems.  We first present the block diagram and signal flow graph. 
UNIT I. SIGNAL ► Signal is a physical quantity that varies with respect to time, space or any other independent variable Eg x(t)= sin t. Eg x(t)= sin.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 4: The Z Transform 1.The Z Transform 2.Inverse Z Transform.
Professor A G Constantinides 1 Interpolation & Decimation Sampling period T, at the output Interpolation by m: Let the OUTPUT be [i.e. Samples exist at.
Infinite Impulse Response Filters
EE513 Audio Signals and Systems Complex Oscillator Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 8: Filter Design: IIR 1.Filter Design Specifications 2.Analog Filter Design 3.Digital.
Z TRANSFORM AND DFT Z Transform
Transform Analysis of LTI systems 主講人:虞台文. Content The Frequency Response of LTI systems Systems Characterized by Constant- Coefficient Difference Equations.
CHAPTER 2 Discrete-Time Signals and Systems in the Time-Domain
Digital Signal Processing
1 Lecture 4: March 13, 2007 Topic: 1. Uniform Frequency-Sampling Methods (cont.)
Signal and Systems Prof. H. Sameti Chapter 10: Introduction to the z-Transform Properties of the ROC of the z-Transform Inverse z-Transform Examples Properties.
More On Linear Predictive Analysis
Finite Precision Numerical Effects
Structures for Discrete-Time Systems
Digital Filter Structures
DEPARTMENTT OF ECE TECHNICAL QUIZ-1 AY Sub Code/Name: EC6502/Principles of digital Signal Processing Topic: Unit 1 & Unit 3 Sem/year: V/III.
Copyright ©2010, ©1999, ©1989 by Pearson Education, Inc. All rights reserved. Discrete-Time Signal Processing, Third Edition Alan V. Oppenheim Ronald W.
Structures for Discrete-Time Systems 主講人:虞台文. Content Introduction Block Diagram Representation Signal Flow Graph Basic Structure for IIR Systems Transposed.
Lecture 8: Transform Analysis of LTI System XILIANG LUO 2014/10 1.
Chapter 6 Discrete-Time System. 2/90  Operation of discrete time system 1. Discrete time system where and are multiplier D is delay element Fig. 6-1.
EKT430/4 DIGITAL SIGNAL PROCESSING 2007/2008 CHAPTER 2 DISCRETE TIME SIGNAL AND SYSTEMS.
Generalized Linear Phase Quote of the Day The mathematical sciences particularly exhibit order, symmetry, and limitation; and these are the greatest forms.
Chapter 5. Transform Analysis of LTI Systems Section
Relationship between Magnitude and Phase Quote of the Day Experience is the name everyone gives to their mistakes. Oscar Wilde Content and Figures are.
Chapter 4 Structures for Discrete-Time System Introduction The block diagram representation of the difference equation Basic structures for IIR system.
Application of digital filter in engineering
IIR Filter design (cf. Shenoi, 2006)
Structures for Discrete-Time Systems
EEE4176 Applications of Digital Signal Processing
EE Audio Signals and Systems
Infinite Impulse Response Filters
لجنة الهندسة الكهربائية
لجنة الهندسة الكهربائية
Lect5 A framework for digital filter design
UNIT V Linear Time Invariant Discrete-Time Systems
Quantization in Implementing Systems
Chapter 6 Discrete-Time System
Tania Stathaki 811b LTI Discrete-Time Systems in Transform Domain Simple Filters Comb Filters (Optional reading) Allpass Transfer.
Zhongguo Liu Biomedical Engineering
Chapter 9 Advanced Topics in DSP
Zhongguo Liu Biomedical Engineering
Fixed-point Analysis of Digital Filters
Digital Signal Processing II Lecture 3: Filter Realization
Presentation transcript:

Dan Ellis 1 ELEN E4810: Digital Signal Processing Topic 7: Filter types and structures 1.Some filter types 2.Minimum and maximum phase 3.Filter implementation structures

Dan Ellis 2 1. Some Filter Types We have seen the basics of filters and a range of simple examples Now look at a couple of other classes: Comb filters - multiple pass/stop bands Allpass filters - only modify signal phase

Dan Ellis 3 Comb Filters Replace all system delays z -1 with longer delays z -L  System that behaves ‘the same’ at a longer timescale x[n]x[n]y[n]y[n] + z-Lz-L z-Lz-L z-Lz-L z-Lz-L

Dan Ellis 4 Comb Filters ‘Parent’ filter impulse response h[n] becomes comb filter output as: g[n] = {h[0] h[1] h[2]..} Thus, L-1 zeros

Dan Ellis 5 Comb Filters Thus, frequency response: High-pass response  pass  =  /L, 3  /L, 5  /L... cut  = 0, 2  /L, 4  /L... parent frequency response compressed & repeated L times H(ej)H(ej)G(ej)G(ej) L copies of H(e j  ) useful to remove a harmonic series

Dan Ellis 6 Allpass Filters Allpass filter has  A(e j  )  2 = K   i.e. spectral energy is not changed Phase response is not zero (else trivial) phase correction special effects e.g.

Dan Ellis 7 Allpass Filters Allpass has special form of system fn: A M (z) has poles  where D M ( ) = 0  A M (z) has zeros  = 1/  = -1 mirror-image polynomials =

Dan Ellis 8 Allpass Filters Any (stable) D M can be used: Phase is always decreasing:  -M  at  poles from 1/D M (z) reciprocal zeros from D M (z -1 ) M peak group delay

Dan Ellis 9 Why do mirror-img poly’s give const gain? Conj-sym system fn can be factored as: z = e j   z -1 = e -j  also on u.circle... Allpass Filters ejej e -j  ZP i o + complex conjugate p/z

Dan Ellis Minimum/Maximum Phase In AP filters, reciprocal roots have.. same effect on magnitude (modulo const.) different effect on phase In normal filters, can try substituting reciprocal roots reciprocal of stable pole will be unstable X reciprocals of zeros?  Variants of filters with same magnitude response, different phase

Dan Ellis 11 Minimum/Maximum Phase Hence: reciprocal zero.... added phase lag.. same mag..

Dan Ellis 12 Minimum/Maximum Phase For a given magnitude response All zeros inside u.circle  minimum phase All zeros outside u.c.  maximum phase (greatest phase dispersion for that order) Otherwise, mixed phase i.e. for a given magnitude response several filters & phase fns are possible; minimum phase is canonical, ‘best’

Dan Ellis 13 Minimum/Maximum Phase Note: Min. phase + Allpass = Max. phase o o o o o o x= pole- zero cancl’n

Dan Ellis 14 Inverse Systems h i [n] is called the inverse of h f [n] iff Z-transform: i.e. H i (z) recovers x[n] from o/p of H f (z) Hf(z)Hf(z)Hi(z)Hi(z) x[n]x[n]y[n]y[n]w[n]w[n]

Dan Ellis 15 What is H i (z) ? H i (z) is reciprocal polynomial of H f (z) Just swap poles and zeros: Inverse Systems poles of fwd  zeros of bwd zeros of fwd  poles of bwd o o o Hf(z)Hf(z)Hi(z)Hi(z)

Dan Ellis 16 Inverse Systems When does H i (z) exist? Causal+stable  all H i (z) poles inside u.c.  all zeros of H f (z) must be inside u.c.  H f (z) must be minimum phase H f (z) zeros outside u.c.  unstable H i (z) H f (z) zeros on u.c.  unstable H i (z)  only invert if min.phase,  H f (e j  ) ≠ 0  lose...

Dan Ellis 17 System Identification Inverse filtering = given y and H, find x System ID = given y (and ~ x ), find H Just run convolution backwards?  H(z)H(z) x[n]x[n]y[n]y[n] but: errors accumulate deconvolution

Dan Ellis 18 System Identification Better approach uses correlations; Cross-correlate input and output: If r xx is ‘simple’, can recover h ? [n]... e.g. (pseudo-) white noise: H?(z)H?(z) x[n]x[n]y[n]y[n]

Dan Ellis 19 System Identification Can also work in frequency domain: x[n] is not observable  S xy unavailable, but S xx (e j  ) may still be known, so: Use e.g. min.phase to rebuild H(e j  )... make a const.

Dan Ellis Filter Structures Many different implementations, representations of same filter Different costs, speeds, layouts, noise performance,...

Dan Ellis 21 Block Diagrams Useful way to illustrate implementations Z-transform helps analysis: Approach Output of summers as dummy variables Everything else is just multiplicative G1(z)G1(z) + G2(z)G2(z) x[n]x[n]y[n]y[n]

Dan Ellis 22 Block Diagrams More complex example: x[n]x[n] + y[n]y[n] + z -1 --   + --  w1w1 w2w2 w3w3 + stackable 2nd order section

Dan Ellis 23 Delay-Free Loops Can’t have them! At time n = 0, setup inputs x and v ; need u for y, also y for u  can’t calculate Algebra: x + y  +  u v x y + u v + can simplify...

Dan Ellis 24 Equivalent Structures Modifications to block diagrams that do not change the filter e.g. Commutation H = AB = BA Factoring AB+CB = (A+C)·B ABBA  A(z)B(z)A(z)B(z) + C(z)B(z)C(z)B(z) x1x1 x2x2 y A(z)A(z) + x1x1 x2x2 y C(z)C(z) B(z)B(z) fewer blocksless computation

Dan Ellis 25 Equivalent Structures Transpose reverse paths adders  nodes input  output + z -1 yxb1b1 b2b2 b3b3 + xy b1b1 b2b2 b3b3 + 

Dan Ellis 26 FIR Filter Structures Direct form “Tapped Delay Line” Transpose Re-use delay line if several inputs x i for single output y ? z x h0h0 h1h1 h2h2 h3h3 h4h4 y x h4h4 h3h3 h2h2 h1h1 h0h0 y

Dan Ellis 27 FIR Filter Structures Cascade factored into e.g. 2nd order sections + z -1 y -2Re{  1 } 11 z -1 xh0h0 00 +

Dan Ellis 28 FIR Filter Structures Linear Phase: Symmetric filters with h[n] = (-)h[N - n] Also Transpose form: gains first, feeding folded delay/sum line n z -1 + x b0b0 b1b1 b2b y... half as many multiplies

Dan Ellis 29 IIR Filter Structures IIR: numerator + denominator + z -1 p0p0 p1p1 p2p2 + -d 1 -d 2 FIR all-pole IIR

Dan Ellis 30 IIR Filter Structures Hence, Direct form I Commutation  Direct form II (DF2) + z -1 p0p0 p1p1 p2p2 -d 1 -d 2 + p0p0 p1p1 p2p2 + z -1 -d 1 -d 2 same signal  delay lines merge “canonical” = min. memory usage

Dan Ellis 31 IIR Filter Structures Use Transpose on FIR/IIR/DF2 “Direct Form II Transpose” -d 1 -d 2 + z -1 xy p0p0 p1p1 p2p2 + +

Dan Ellis 32 Factored IIR Structures Real-output filters have conjugate-symm roots: Can always group into 2nd order terms with real coefficients:    real root

Dan Ellis 33 Cascade IIR Structure Implement as cascade of second order sections (in DFII) Second order sections (SOS): modular - any order from optimized block well-behaved, real coefficients (sensitive?) + -2  2 + z -1 222 p0p0 -1-1 + 11 xy 22+2222+22   2 2 ) fwd gain factored out

Dan Ellis 34 Second-Order Sections ‘Free’ choices: grouping of pole pairs with zero pairs order of sections Optimize numerical properties: avoid very large values (overflow) avoid very small values (quantization) e.g. Matlab’s zp2sos attempt to put ‘close’ roots in same section intersperse gain & attenuation?

Dan Ellis 35 Second Order Sections Factorization affects intermediate values Original System (2 pair poles, zeros) Factorization 1Factorization 2 

Dan Ellis 36 Parallel IIR Structures Can express H(z) as sum of terms (IZT) Or, second-order terms: Suggests parallel realization...

Dan Ellis 37 Parallel IIR Structures Sum terms become parallel paths Poles of each SOS are from full TF System zeros arise from output sum Why do this? stability/sensitivity reuse common terms +  01  11 + z -1 -  11 -  21 + 00 +  02  12 + z -1 -  12 -  22 x y