ECE 421 Introduction to Signal Processing

Similar documents

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

4. Design of Discrete-Time Filters

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

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

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

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

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

b) discrete-time iv) aperiodic (finite energy)

F I R Filter (Finite Impulse Response)

Design of FIR Filters

Experiment 4- Finite Impulse Response Filters

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

EE 470 Signals and Systems

FIR Filter Design using Different Window Techniques

ECE503: Digital Filter Design Lecture 9

Digital Filters FIR and IIR Systems

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

EE 422G - Signals and Systems Laboratory

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

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

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

Advanced Digital Signal Processing Part 5: Digital Filters

EE 464 Short-Time Fourier Transform Fall and Spectrogram. Many signals of importance have spectral content that

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

Final Exam Practice Questions for Music 421, with Solutions

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

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

Electrical & Computer Engineering Technology

Digital Filtering: Realization

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

EE 311 February 13 and 15, 2019 Lecture 10

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

Design of FIR Filter for Efficient Utilization of Speech Signal Akanksha. Raj 1 Arshiyanaz. Khateeb 2 Fakrunnisa.Balaganur 3

6.02 Fall 2012 Lecture #13

Signals and Systems Lecture 6: Fourier Applications

Digital Signal Processing

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

CS3291: Digital Signal Processing

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

EE228 Applications of Course Concepts. DePiero

FIR window method: A comparative Analysis

1.5 The voltage V is given as V=RI, where R and I are resistance matrix and I current vector. Evaluate V given that

Continuous-Time Analog Filters

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

CDS 101/110: Lecture 8.2 PID Control

Final Exam. EE313 Signals and Systems. Fall 1999, Prof. Brian L. Evans, Unique No

Final Exam Solutions June 14, 2006

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

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

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

Infinite Impulse Response Filters

Signals and Systems Lecture 6: Fourier Applications

Chapter 7 Filter Design Techniques. Filter Design Techniques

Understanding the Behavior of Band-Pass Filter with Windows for Speech Signal

Signal Processing Toolbox

Digital Signal Processing

Digital Filters - A Basic Primer

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

Design and comparison of butterworth and chebyshev type-1 low pass filter using Matlab

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Upconversion 3 30 Filter Design 4 18 Potpourri Total 100

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

Performance Analysis of FIR Digital Filter Design Technique and Implementation

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

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

PROBLEM SET 5. Reminder: Quiz 1will be on March 6, during the regular class hour. Details to follow. z = e jω h[n] H(e jω ) H(z) DTFT.

FIR FILTER DESIGN USING A NEW WINDOW FUNCTION

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

SAMPLING THEORY. Representing continuous signals with discrete numbers

Diode Circuits Recent GATE Problems

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

Digital Signal Processing for Audio Applications

A Comparative Performance Analysis of High Pass Filter Using Bartlett Hanning And Blackman Harris Windows

UNIT II IIR FILTER DESIGN

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

FIR FILTER DESIGN USING NEW HYBRID WINDOW FUNCTIONS

Departmentof Electrical & Electronics Engineering, Institute of Technology Korba Chhattisgarh, India

ECE 421 Introduction to Signal Processing Project 1 - Solutions

FIR Filters Digital Filters Without Feedback

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

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

Performance Analysis on frequency response of Finite Impulse Response Filter

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Improving Signal Quality 3 24 Filter Bank Design 4 24 Potpourri Total 100

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

INF4420 Switched capacitor circuits Outline

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

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

Microphonics. T. Powers

1. In the command window, type "help conv" and press [enter]. Read the information displayed.

Digital Filter Design using MATLAB

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

CDS 101/110: Lecture 9.1 Frequency DomainLoop Shaping

8: IIR Filter Transformations

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

A comparative study on main lobe and side lobe of frequency response curve for FIR Filter using Window Techniques

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

INF4420. Switched capacitor circuits. Spring Jørgen Andreas Michaelsen

Window Functions And Time-Domain Plotting In HFSS And SIwave

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis

Transcription:

ECE 421 Introduction to Signal Processing Dror Baron Assistant Professor Dept. of Electrical and Computer Engr. North Carolina State University, NC, USA

Digital Filter Design [Reading material: Chapter 10]

Big picture We ve discussed different types of filters Finite impulse response (FIR) Only zeros (no poles) Hopefully causal & stable Will use windowing techniques to convert ideal (infinitely long, noncausal) filter to practical Infinite impulse response (IIR) Uses poles for feedback Inspired by analog filter design 3

Linear Phase [Reading material: Section 10.1]

What and why? Recall HH ωω = + nn= h(nn)ee jjωωωω Phase Θ(ω)=<{H(ω)} Linear phase means Θ(ω)=a+bω Linear filter delays input by b samples Non-linear input will be distorted Will see what properties of h(n) correspond to linear phase 5

Active learning 1) Derive frequency response of h 1 (n)={+1,0,+1} 2) Explain why H 1 (ω) has linear phase 3) Ditto for h 2 (n)={-1,0,+1} 6

Symmetric filters Consider x(n)=x(-n) XX ωω = + nn= xx(nn)ee jjωωωω = xx 0 ee jjωω0 + + ll= xx(ll) ee jjωωωω + ee jjωω( ll) = xx 0 + 2 + ll= xx ll cos(ωωωω) Fourier response purely real-valued & symmetric (even) Phase 0 or π Example: h 1 ={+1,0,+1} H(ω)=2cos(ω) Phase linear with zero-slope 7

Anti-symmetric filters Consider x(n)=-x(-n) Note that x(0)=0 XX ωω = xx 0 ee jjωω0 + + ll= xx(ll) ee jjωωωω ee jjωω( ll) = 2jj + ll= xx ll ssin(ωωωω) Fourier response purely imaginary & anti-symmetric (odd) Phase -π/2 or π/2 Example: h 2 (n)={-1,0,+1} H(ω)= -2j sin(ω) 8

Finite Impulse Response Filters [Reading material: Section 10.2]

Symmetric vs. anti-symmetric Want FIR with linear phase M taps at times n=0, 1,, M-1 Symmetric: h(n)=h(m-1-n) H(ω)=H r (ω)e -jω(m-1)/2 Magnitude H r (ω) superposition of cosines Phase Θ ωω = ωω MM 1, HHHH ωω > 0 2 ωω MM 1 + ππ, HHHH ωω < 0 Asymmetric: h(n)=-h(m-1-n) Magnitude superposition of sines M odd middle tap @ (M-1)/2 contains zero 2 10

Highpass / lowpass / other? Asymmetric H r (ω) superposition of sines H r (0)=H r (π)=0 Bad for lowpass / highpass Feasible for bandpass Symmetric H r (ω) superposition of cosines H r (0), H r (π) could be nonzero Example: averaging filters They are symmetric and lowpass 11

FIR Design with Windowing

Key idea Start with desired freq response H d (ω) Convert to h d (n) Multiply by window w(n) Evaluate quality of resulting finite-duration h(n)=h d (n)w(n) Iterate (use different window) as needed H d (ω) F -1 h d (n) h(n) Evaluate w(n) reconsider window 13

Design criteria Choice of window involves: Symetric or anti-symmetric? Odd or even M? Trade-off between large M (many taps storage, computation, delay) and closeness to H d (ω) H d (ω) F -1 h d (n) h(n) Evaluate w(n) reconsider window 14

Impact of window structure Recall time domain product, h(n)=h d (n)w(n) Frequency domain convolution, H(ω)=H d (ω)*w(ω) HH ωω = 1 +ππ 2ππ HH dd νν WW ωω νν ddνν νν= ππ Note: will evaluate W(ω) at freqs outside (-π,+π); fine because it s periodic-2π 15

Example 1, nn {0,1,, MM 1} Start w/rectangular window, ww nn = 0, eeeeeeee Effect merely to truncate infinitely long h d (n) This is simplest possible window However Frequency response MM 1 WW ωω = ee jjωωωω = 1 ee jjωωωω sin(ωωωω/2) = ee jjωω(mm 1)/2 1 ee jjωω sin(ωω/2) nn=0 Magnitude response, WW ωω = sin(ωωωω/2) sin(ωω/2) Piecewise linear phase depends on sign of sin(ωωωω/2) sin(ωω/2) 16

Example continued (Matlab) Let s examine rectangular window numerically M1=31; % shorter window M2=61; % longer window w=1e-4:1e-3:pi; % frequencies being evaluated H1=sin(w*M1/2)./sin(w/2); H2=sin(w*M2/2)./sin(w/2); plot(w,log(abs(h1)),w,log(abs(h2))) 6 4 Does larger M help? Main lobe narrower/taller Main lobe same area But side lobes same height 2 0-2 -4-6 -8-10 -12 0 0.5 1 1.5 2 2.5 3 3.5 17

Considerations in window selection Want narrow main lobe quick transitions Want side lobes much lower clean transitions (less Gibbsstyle overshoots) Want side lobes to decay quickly 18

Some popular windows 1) Rectangular (no window) 2) Bartlett (triangular in time) Triangle = convolution of rectangles Each rectangle: width=(m+1)/2 Triangle: width=m Squared Dirichlet response Lower side lobes (2X in log scale) Main lobe 2X width 3) Hamming window Same 2X main lobe width Lower side lobes (3X in log scale) than rectangular 19

More windows 4) Hann Side lobes taper nicely But start higher (2X in log scale) Same 2X main lobe width 5) Blackman Wider main lobe (3X) Low side lobes (4X in log scale) 6) Kaiser: parametric family w/optimal trade-off between main lobe width & side lobe height 20

Design example Will design ideal LPF, HH dd ωω = ee jjωω(mm 1)/2, ωω < ωω cc 0, eeeeeeee Exponent term provides delay of (M-1)/2 samples, corresponding to middle of filter Time response, h dd nn = sin(ωω cc ππ(nn MM 1 2 )) ππ(nn MM 1 ωω cc ππ, nn MM 1 2 ) 2, nn = MM 1 2 Traditional rectangular window truncates to range n=0,, M-1 Suffers from Gibbs-style overshoots Larger M reduces width of overshoot but not amplitude 21

Design example continued To reduce oscillations of finite-duration filter, will use window: 1) Hamming: 2X wider main lobe, 3X side lobes ( smaller oscillations) 2) Hann: 2X wider, 2X lower side lobes, taper off better ( clean stop band) 3) Blackman: 3X wider, 4X lower side lobes The best solution depends on application Example1: want superb rejection of far-away (in freq) low-amplitude sinusoids in filtering application Hann Example2: want OK rejection of nearby sinuosoids Hamming Example3: want solid rejection of nearish sinusoids Blackman 22

Infinite Impulse Response Filters [Reading material: Section 10.3]

Main idea Design of analog filters (resistors, capacitors, inductors, ) has been around for decades Common approach to designing infinite impulse response (IIR) filters involves Design analog filter Convert to digital How to convert from analog to digital? 24

Rationale for filter conversion Recall (ECE 301 & 308) Laplace transfer function H(s) HH ss = BB(ss) AA(ss) = kk=0 MM bb kk ss kk NN aa kk ss kk kk=0 Corresponds to differential equation (continuous time) NN dd kk aa kk dddd kk yy tt = dd kk bb kk xx tt ddddkk kk=0 kk=0 Analogous to difference equation MM Stability requires poles on left hand side of s-plane Want jω-axis of s-plane to map to unit circle Want LHS of s-plans to map into unit circle 25

Conversion #1: approximating derivatives Time derivatives dddd dddd dddd dddd tt=nnnn xx nn xx(nn 1) TT and ddyy dddd approximated (using calculus) (sampling time T) Can show that s maps to 1 zz 1 TT HH zz = HH(ss = 1 zz 1 ) TT Good news: this conversion technique seems reasonable Bad news: jω-axis in s-plane mapped to circle of radius 0.5 centered around z=0.5 26

Conversion #2: sampling h(t) The analog filter s impulse response is h a (t) Let s sample, h(n)=h a (t=nt) Good news: also seems reasonable Bad news: aliasing-like artifacts 27

Conversion #3: bilinear transformation In study of functions of complex variables, bilinear transformations map circles to circles From jω-axis in s-plane (think of jω-axis as infinitely big circle) To unit circle in z axis Appropriate complex mapping is ss = 2 TT T is design parameter 1 zz 1 1+zz 1 1 ΩTT Can be computed using ωω = 2 tan 2 Analogous to how quickly we move along jω-axis Good news: LHS of s-axis maps to interior of unit circle in z 28

Example 10.3.4 ss+0.1 Consider analog filter HH aa ss = (ss+0.1) 2 +16 This is LPF whose resonance frequency (a.k.a. natural frequency in ECE 308) is Ω r =16 0.5 =4 Want to map resonance frequency to ω r =π/2 We do so by properly selecting T ωω rr = 2 tan 1 Ω rr TT 2 ππ 2 = 2 tan 1 4TT 2 tan ππ 4 = 1 = 4TT 2 = 2TT TT = 1 2 29

Example 10.3.4 continued Want to convert HH aa ss = Recall ss = 2 TT 1 zz 1 1+zz 1 = 4 1 zz 1 1+zz 1 ss+0.1 (ss+0.1) 2 +16 to H(z) Let s substitute: HH zz = HH aa ss = 4 1 zz 1 1+zz 1 = 4 1 zz 1 1+zz 1 +0.1 4 1 zz 1 2 1+zz 1 +0.1 +16 Can simplify this and turn into difference equation Extra credit challenge: do so on Moodle message board 30

Administrative Stuff

The final Midterms covered Chapters 1-5 Will cover 6-8, and 10 Material in chapters 8 & 10 only covered with easy questions Material covered in midterms will be de-emphasized Will try to put together interesting cross-cutting question Example: 2014 final showed fast algorithm for high precision multiplication via FFT Will plan final to require about as much work as Midterm #2 With 3 hours you should be OK Will likely have 2 questions similar to old tests / HW / Projects 32

Related courses Undergraduate ECE402 communication engineering; reliable transmission in presence of noise ECE420 wireless communication systems; applications of DSP & comm to wireless systems ECE492 special topics course highlighting applications of DSP Graduate ECE513 graduate level signal processing ECE514 random processes ECE515 digital communications ECE582 wireless communications ECE592 intro to data science (details in next slide) Several advanced 700-level courses 33

ECE 592 Newish graduate course (by Dror Baron) First offered fall 2016 Main theme: topics in data science Specific topics: Data structures & scientific programming Optimization Machine learning 101 Sparse signal processing Dimensionality reduction Individual project allows students to dig into topic of interest 34

Undergraduate research You perform research with faculty member & graduate student(s) Provides exposure to graduate-school style with reasonable time commitment Good for students potentially interested in graduate school yet unsure; or want to begin without diving into thesis research Makes sense for students who want to understand more or really master the material 35

The end 36