ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

Similar documents
DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

EE 470 Signals and Systems

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

Digital Signal Processing

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

4. Design of Discrete-Time Filters

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

LECTURER NOTE SMJE3163 DSP

Advanced Digital Signal Processing Part 5: Digital Filters

Signals and Systems Using MATLAB

ECE503: Digital Filter Design Lecture 9

EELE 4310: Digital Signal Processing (DSP)

F I R Filter (Finite Impulse Response)

Digital Processing of Continuous-Time Signals

Digital Filtering: Realization

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Chapter 7 Filter Design Techniques. Filter Design Techniques

Digital Signal Processing

Digital Processing of

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

Digital Filters FIR and IIR Systems

EE 422G - Signals and Systems Laboratory

Copyright S. K. Mitra

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING


Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

Multirate Digital Signal Processing

ECE 429 / 529 Digital Signal Processing

Design of FIR Filters

Aparna Tiwari, Vandana Thakre, Karuna Markam Deptt. Of ECE,M.I.T.S. Gwalior, M.P, India

ELEC3104: Digital Signal Processing Session 1, 2013

Brief Introduction to Signals & Systems. Phani Chavali

Filters. Phani Chavali

Digital Signal Processing

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

Design IIR Filters Using Cascaded Biquads

UNIT-II MYcsvtu Notes agk

Digital Filters IIR (& Their Corresponding Analog Filters) 4 April 2017 ELEC 3004: Systems 1. Week Date Lecture Title

Corso di DATI e SEGNALI BIOMEDICI 1. Carmelina Ruggiero Laboratorio MedInfo

UNIT II IIR FILTER DESIGN

Analog Lowpass Filter Specifications

Lecture 17 z-transforms 2

Department of Electrical and Electronics Engineering Institute of Technology, Korba Chhattisgarh, India

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Understanding Digital Signal Processing

Final Exam Practice Questions for Music 421, with Solutions

CS3291: Digital Signal Processing

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

UNIVERSITY OF SWAZILAND

Discretization of Continuous Controllers

1. Find the magnitude and phase response of an FIR filter represented by the difference equation y(n)= 0.5 x(n) x(n-1)

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

Signals and Systems Lecture 6: Fourier Applications

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

8: IIR Filter Transformations

DSP Filter Design for Flexible Alternating Current Transmission Systems

Rahman Jamal, et. al.. "Filters." Copyright 2000 CRC Press LLC. <

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

DESIGN OF FIR AND IIR FILTERS

Signal processing preliminaries

Experiment 4- Finite Impulse Response Filters

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

DIGITAL SIGNAL PROCESSING (Date of document: 6 th May 2014)

FIR Filter Design using Different Window Techniques

GUJARAT TECHNOLOGICAL UNIVERSITY

Signals and Systems Lecture 6: Fourier Applications

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

Digital Signal Processing for Audio Applications

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

SKP Engineering College

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Signal Processing Summary

Frequency-Response Masking FIR Filters

CHAPTER -2 NOTCH FILTER DESIGN TECHNIQUES

EE 403: Digital Signal Processing

Bibliography. Practical Signal Processing and Its Applications Downloaded from

ECE 5650/4650 Exam II November 20, 2018 Name:

Introduction to Digital Signal Processing Using MATLAB

Final Exam Solutions June 14, 2006

FIR Filters Digital Filters Without Feedback

Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

APPLIED SIGNAL PROCESSING

3F3 Digital Signal Processing (DSP)

Electrical & Computer Engineering Technology

Transcription:

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet Lecture 10: Summary Taneli Riihonen 16.05.2016

Lecture 10 in Course Book Sanjit K. Mitra, Digital Signal Processing: A Computer-Based Approach, 4th Edition, McGraw-Hill, 2011. 1 Signals and Signal Processing 1 2 Discrete-Time Signals in the Time Domain 41 3 Discrete-Time Signals in the Frequency Domain 89 4 Discrete-Time Systems 143 5 Finite-Length Discrete Transforms 199 6 z-transform 277 7 LTI Discrete-Time Systems in the Transform Domain 333 8 Digital Filter Structures 417 9 IIR Digital Filter Design 489 10 FIR Digital Filter Design 527 ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet; Mitra, 4th Edition, Chapters 1-10 2

Analog and Digital Signal Sampling, Nyquist rate

Digital Signals ELEC-C5230 is the basic DSP course given in Aalto The assumption was that you were already familiar with analog systems: ELEC-A7200 Signaalit ja järjestelmät (Signals and Systems) Here you learnt just the digital equivalents ELEC-A7200 ELEC-C5230 a) Analog signal: Continuous in both time and amplitude b) Digital signal: Discrete in both time and amplitude 4

Simplified (Ideal) System Model We had roughly the system below in mind digital analog analog x a (t) ideal A/D conversion x[n] DSP y[n] ideal D/A conversion y a (t) We only considered DSPs that were LTI finite (FIR) and infinite (IIR) impulse response filters 5

Ideally Sampled Signal with Ω T > 2Ω m the Fourier transform of the analog signal x a (t) 1 X a (jω) the highest frequency in analog signal x a (t) -Ω m 0 Ω Ω m P(jΩ) sampling pulse train -Ω T 0 Ω T Ω 1 T X p (jω) -Ω T -Ω m 0 Ω m Ω T Ω Ω T - Ω m 6

Ideally Sampled Signal with Ω T < 2Ω m 1 X a (jω) the highest frequency in x a (t) -Ω m 0 Ω Ω m P(jΩ) -2Ω T -Ω T 0 Ω T 2Ω T Ω 1 T X p (jω) causes aliasing -2Ω T -Ω T -Ω m 0 Ω m Ω T 2Ω T Ω T - Ω m Ω 7

LTI Systems Linearity, time-invariance, causality, stability, time-domain representation, convolution

LTI Systems (1) input sequence x[n] discrete-time system T( ) output sequence LTI systems satisfy: a general operator on sequences 1) Linearity: 2) Time-invariance: (linear) convolution x[n] LTI system h[n] impulse response: 9

LTI Systems (2) LTI system is often required to be also: 1) Causal: 2) BIBO stable: Output does not depend on future inputs Bounded inputs stay bounded at output The output of many causal LTI systems can alternatively be written using a fixed-coefficient difference equation fixed constants (past) outputs (past) inputs 10

LTI Systems (3) It turned out that: 1) If, the system was FIR; - Output is a weighted sum of current and past inputs 2) and otherwise IIR - Output is computed recursively by weighting and summing current and past inputs, and past (only) outputs Filter design: Choose the coefficients {d k } and {p k } so that the output satisfies the desired specification 11

LTI Systems (4) For LTI systems, the impulse response h[n] fully describes the transformation from inputs x[n] to outputs y[n] via convolution: Convolution satisfies the following properties: (commutative) (distributive) (associative) 12

LTI Systems in Transform Domain Fourier transforms z-transform

Frequency Domain Characterization (1) All BIBO stable LTI systems have an equivalent frequency-domain characterization via DTFT: time-domain: frequency-domain: x[n] h[n] Frequency response tells how the amplitude and phase of the input are scaled at each (normalized angular) frequency ω 14

Frequency Domain Characterization (2) There are two components in the filter specification: 1) Magnitude response 2) Phase response (we mainly considered this) For FIR filters, linear phase was also examined Even length Odd length Positive symmetry h[n] n h[n] n Negative symmetry h[n] n h[n] n 15

Frequency Domain Characterization (3) Analysis equation, with operator Synthesis equation, with operator If the DTFT exists, then and we write 16

17

z-domain Characterization (1) The DTFT could be generalized to z-transform that also provided a transform-domain characterization: time-domain: z-domain: x[n] X(z) h[n] H(z) DTFT vs. z-transform Transfer function is a common way to describe filters: If the LTI system is described by a difference equation then H(z) is a ratio of polynomials 18

z-domain Characterization (2) Rational transfer function could be written as: zeros poles The locations of poles determine the region of convergence, which also gives the stability conditions - FIR always stable, IIR if all poles are within unit circle 19

z-domain Characterization (3) Constant-coefficient IIR filter via difference equation The transfer function H(z) reads 20

Filter Design Structures, specifications, FIR vs. IIR filters

Direct-Form I Straightforward concatenation: Direct Form I This form is, in general, not canonic The transfer function here is of order 3, so a canonic structure should have only three delays (here are 6). Direct Form I can be converted to a canonic structure which is called here Direct Form II. 22

Cascade Realizations (SOS) Usually, a cascade realization is such that P k (z) and D k (z) are at most of 2 nd order and for 1 st order sections Example: second order sections (SOS) model 23

Filter Design and Specifications Example: specification for an ideal zero-phase lowpass filter 1 0 Example: magnitude specification for a practical lowpass filter with ripples minimum attenuation 24

Selection of the Filter Type FIR filters: + Linear phase response possible + Stability with quantized coefficients + Always possible to make them causal - Higher order required than using IIR filters IIR filters: + Better attenuation properties + Closed-form approximation formulas - Nonlinear phase response - Instability with finite wordlength computation Oftentimes, N FIR /N IIR is of the order of ten(s) 25

Bilinear Transform Method We learnt the substitution Plugging into the above expression gives left half-plane Ł inside unit circle imaginary axis Ł on unit circle right half-plane Ł outside unit circle so-that the left-hand side of the s-plane maps to unit disc in the z-plane as required 26

Basic IIR Filter Design ELEC-A7200 1) Prewarp the digital frequency specifications using relation 2) If the desired filter is not of lowpass-type, convert the analog filter specifications (Appendix B in book) 3) Design the analog filter H(s) (Butterworth, elliptic, ) 4) Convert the analog transfer function to digital G(z) using bilinear transformation 5) Use spectral transformation to convert the IIR digital lowpass filter into the desired one (if needed) 27

Example: IIR via Bilinear Transform Lowpass digital IIR filter ( good design) After prewarping, analog prototype filter is converted to an IIR digital filter via bilinear transform using Matlab. Prewarping before analog design matches both frequencies Note Butterworth order = 13, so IIR order is also 13 Remark: Here we first prewarp, then design analog prototype with prewarped edge frequencies and then convert it to IIR The edge frequencies are now where we wanted Butterworth has lower order since the correct transition band is used Matlab hints: >> doc bilinear 28

FIR Filter Design with Windowing Recipe: 1) Let the filter specifications be given and assume that the minimum stopband attenuation is db while the passband and stopband edges are 2) Set the cutoff frequency 3) Examine which windows satisfy the requirement for stopband attenuation 4) Estimate the number of coefficients N and compute the impulse response by windowing the ideal filter 29

Example: Lowpass Filter Gain, [db] Lowpass Filter Designed Using Hann window 0-50 -100 0 0.2 0.4 0.6 0.8 1 w/p Lowpass Filter Designed Using Hamming window 0 Filter length N = 2M + 1 = 51 Cutoff frequency Hann has narrowest main lobe shortest transition band Blackman has greatest sidelobe level biggest stopband attenuation Lowpass Filter Designed Using Blackman window 0 Gain, db [db] -50 Gain, db [db] -50-100 -100 0 0.2 0.4 0.6 0.8 1 w/p 0 0.2 0.4 0.6 0.8 1 w/p 30

Example: Matlab FIR Filter Design Fpass = 0.37; Fstop = 0.43; FIR filter with designfilt Ap = 6; Ast = 30; Compare to IIR filter in Slide 28 Matlab code d = designfilt('lowpassfir', 'PassbandFrequency', Fpass,... 'StopbandFrequency', Fstop, 'PassbandRipple', Ap,... 'StopbandAttenuation', Ast, 'DesignMethod', 'equiripple'); fvtool(d); FIR filter Parks-McClellan algorithm Least possible maximum deviation from ideal filter given its length is N Here N = 23 (minimum to satisfy the specification) Linear phase Matlab hints: >> info(d) >> designfilt(d) >> doc signal/firpm 31

Summary What is the minimum you should know? What an LTI system is; how to represent and analyze it in time-, frequency- and z-domains How to compute (linear) convolution, D(T)FT and z-transforms; the main properties of above What ideal filters are and why they are unrealizable Able to interpret and express frequency specifications Know how to design, at least in principle, realizable FIR and IIR filters given frequency-domain specifications Recognize the pros and cons of the designs 32