ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

Similar documents
1 PeZ: Introduction. 1.1 Controls for PeZ using pezdemo. Lab 15b: FIR Filter Design and PeZ: The z, n, and O! Domains

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

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

Digital Filtering: Realization

EE 422G - Signals and Systems Laboratory

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

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)

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

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

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

Lab S-9: Interference Removal from Electro-Cardiogram (ECG) Signals

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:

ELEC3104: Digital Signal Processing Session 1, 2013

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Advanced Digital Signal Processing Part 5: Digital Filters

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

4. Design of Discrete-Time Filters

Digital Signal Processing

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

Digital Filters FIR and IIR Systems

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

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

Discrete Fourier Transform (DFT)

Octave Functions for Filters. Young Won Lim 2/19/18

UNIVERSITY OF SWAZILAND

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

Review of Filter Types

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

Design of FIR Filters

ASN Filter Designer Professional/Lite Getting Started Guide

Interpolated Lowpass FIR Filters

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

Plot frequency response around the unit circle above the Z-plane.

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

ECE 4213/5213 Homework 10

Copyright S. K. Mitra

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

Digital Filter Design using MATLAB

Analog Lowpass Filter Specifications

Chapter 7 Filter Design Techniques. Filter Design Techniques

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

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

Experiment 4- Finite Impulse Response Filters

EE 470 Signals and Systems

EECE 301 Signals & Systems Prof. Mark Fowler

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

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

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

Signal Processing Toolbox

CS3291: Digital Signal Processing

8: IIR Filter Transformations

Graphical Design Of Frequency Sampling Filters For Use In A Signals And Systems Laboratory

Design IIR Filter using MATLAB

Electrical & Computer Engineering Technology

Filters. Phani Chavali

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

Signal processing preliminaries

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

ASC-50. OPERATION MANUAL September 2001

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

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

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

Keyword ( FIR filter, program counter, memory controller, memory modules SRAM & ROM, multiplier, accumulator and stack pointer )

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

Signals and Systems Lecture 6: Fourier Applications

Simulation Based Design Analysis of an Adjustable Window Function

Teaching Digital Filter Design Techniques Used in High-Fidelity Audio Applications

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

Multirate Digital Signal Processing

FIR FILTER DESIGN USING A NEW WINDOW FUNCTION

Digital Signal Processing ETI

EEM478-WEEK8 Finite Impulse Response (FIR) Filters

EECS 452 Midterm Closed book part Winter 2013

Design IIR Filters Using Cascaded Biquads

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

FIR Filter Design using Different Window Techniques

Signal Processing. Naureen Ghani. December 9, 2017

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau

Computing Tools in an Advanced Filter Theory Course

EEO 401 Digital Signal Processing Prof. Mark Fowler

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

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

3F3 Digital Signal Processing (DSP)

DIGITAL SIGNAL PROCESSING WITH VHDL

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

Outline. J-DSP Overview. Objectives and Motivation. by Andreas Spanias Arizona State University

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

DESIGN OF FIR AND IIR FILTERS

Digital Signal Processing ETI

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

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

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

Digital Filter Designer

Spring 2014 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #3 Solutions

Multirate DSP, part 1: Upsampling and downsampling

Signals and Systems Lecture 6: Fourier Applications

Electrical and Telecommunication Engineering Technology NEW YORK CITY COLLEGE OF TECHNOLOGY THE CITY UNIVERSITY OF NEW YORK

Transcription:

Objectives DSP Exercise The objective of this exercise is to provide hands-on experiences on ijdsp. It consists of three parts covering frequency response of LTI systems, pole/zero locations with the frequency response, filter designs, and Fast Fourier Transform. Introduction All the DSP functions are represented in ijdsp as graphical blocks that are also capable of handling user gestures. form: Double tap: Open a block to see its property dialog. Long hold: Delete a specific block. Single tap on a pin: Make a connection between blocks. Hold and drag on a block: move blocks with your fingers. Swipe down/up: hide/show the bottom bar. Tap "+" button: Add blocks. Tap trash button: Delete all the blocks at one time. The z-transform of the impulse response of a LTI system can be written in the following H() z 0 l0 l 0 This is also known as the transfer function of the system. The a m 's and the b l 's are called the m bz l a z filter coefficients of the system with a 0 always being equal to one. This part will explain how ijdsp works through a simple. Open the ijdsp application on your device. When the welcome page appears press "Start". Press the "+" button on the left corner of the navigation bar. Then select Signal Generator, and a list of parameters about the signal will appear. Tap the "Add" button on the right corner of the navigation bar to use the default settings for the block. Similarly, add a Filter block, a Filter Coeff block and a Plot block on your main canvas. You can then move the established block by placing your finger over it and dragging it to a new location. To delete a block, place your finger over the block and hold for 3 seconds. When the pop-up menu appears, select "Delete". To link blocks, tap once inside the blue dot on the right side of the signal generator box, then tap once the blue dot on the left side of the filter box. A line will be drawn. Please make the connections in the direction of the signal flow, otherwise you will m m

get an alert or fail on making connections. Now, connect the Filter Coeff block and the Plot block to the Filter block so that your screen looks like Figure. 0 Figure ijdsp example of a filter simulation Double tap on the Filter Coeff block, and type in the following filter coefficients: b0, a, a 0.8. Note that to save your current settings, you need to tap the Update button on the upper right corner. Similarly, double tap on the Sig Gen block. Change the signal type to Delta, and then Update the block. Double tap on the Plot block, and choose Amplitude. You will see the impulse response of a first-order causal IIR filter defined by the difference equation y( n) x( n) 0.8 y( n ). The closed-form expression for the impulse response is n h( n) 0.8 u( n). In the Plot block, a list of specific values is shown by tapping View Values button. 2

Part : Frequency Response of LTI System Problem.. Given the following transfer functions, 0.45z 0.55z H () z.7 z + 0.6z 2 2 H ( z ) 0.06 0.0876 z 0.3 z 0.375 z 0.3 z 0.0876 z 0.06 z 2 0.8.62z.8z z H () z.8z.62z 0.8z 2 3 4 5 6 2 3 3 2 3 Establish the block diagram shown in Figure 2: Figure 2. Block diagram for ijdsp Prob... Type the corresponding filter coefficients in the Filter Coeff block. To see the poles and zeros in the z-plane, double-tap the PZ Plot block. To see the impulse response of the system, set Delta signal in the Sig Gen block, and double tap on the Plot block to see the simulation result. Specify the values of the poles and zeros of H () z. Pole = Zero= Pole2= Zero2= Sketch the impulse response h( n) corresponding to H () z. 3

Place the poles and zeros in the z-plane for H () z and H () z. 2 3 H () z 2 H () z 3 Sketch the frequency response magnitude (linear scale) of H () 3 z. What is the type of this filter (High-pass, Low-pass or All-pass filter)? Problem.2. Consider the following sequence, which is the convolution of two causal sequences. y( n) n k n k a b n z Hint: a u( n) z a k0 az 4

(a) Implement the cascaded system using one Sig Gen block, two Filter blocks, two Filter Coeff blocks, and one Plot block for a=0.5 and b=0.25. Save the screenshot of the impulse response of the system. Save the screenshot of the block diagram of the system. (b) Now create a system using only one filter block such that the impulse response is also yn. ( ) Again use a = 0.5 and b = 0.25. Verify that the impulse response of this system is the same as the impulse response of the system in the previous part. Problem.3. For this problem, you will design a filter by placing poles and zeros in the z-plane. The PZ Placement block enables the user to place poles and zeros graphically in the z-plane and analyze the corresponding frequency response in real time. Poles and zeros are added as conjugate pairs, and no more than 5 pairs can be entered. Graphical manipulation of poles and zeros is achieved through Add Pole, Add Zero and Reset buttons on the left part of the screen. Users can place and move poles and zeros pairs. As you move the poles and zeros, the frequency response will be immediately updated. Adjust the location of the poles and zeros until the desired response is obtained. Note that poles near the unit circle give rise to spectral peaks and zeros near the unit circle create spectral valleys in the magnitude of the frequency response. For this problem, keep all plots in db scale. Design a lowpass filter using with approximate cutoff frequency of c /4. Use two sets of zero pairs and one pole pair. This can be a rough approximation. Save the screenshot of the PZ Placement block. 5

Part 2: Filter Design Problem 2.. We will use a Sig Gen block, a Window block, and an FFT block to design a causal n lowpass filter from the ideal impulse response hd ( n) 0.2sinc 5, i.e., L hfir ( n) w( n) hd ( n ), 0 n L 2 Set parameters in the Sig Gen block as shown in Table : Table Settings in the Sig Gen block Signal Type Amplitude Pulsewidth Periodic Period Time Shift Freq Sinc 0.2 20 NO 0 30 0.2 Take 256-point FFT of the impulse response. Set the size of window to be 60. Tapered windows have better behaved sidelobes and hence better behaved ripple effect relative to the rectangular window. Verify this property by checking FFT magnitude of Rectangular window and Bartlett (Triangular) window respectively. The ijdsp block diagram should look like Figure 3. Figure 3 Block diagram for ijdsp Prob. 2. Problem 2.2. Use the Parks-McClellan block and the Kaiser block to design FIR filters with the following specifications: Filter Type: low-pass filter Cut-off frequencies: Passband ( W ) cutoff frequency: W 0.25 p Stopband ( W ) cutoff frequency: W 0.4 s s p 6

Tolerances: PB = db; SB = 40 db A sample of the block diagram is shown in Figure 4. Figure 4 Block diagram for filter design problems Sketch the magnitude and phase plots in db scale (using the Freq Resp block). ) Parks-McClellan Mag Phase 2) Kaiser Mag Phase Which of two methods has the lower order? (To see the order of the filter, tap the Update button in the corresponding filter design block.) 7

Problem 2.3. Design an IIR Filter with the following specifications, IIR filter: Butterworth Filter type: Low-pass Cutoff frequencies: W 0.4, Ws 0.6 p Tolerance in passband: PB =.0 db Tolerance (rejection) in stopband: SB = 45.0 db. The design can be done using the IIR Design block under the list of functions in ijdsp. Connect the output of the IIR block to the Freq Resp block to plot the frequency response. Compare the frequency response of the IIR filter using four design techniques respectively. (Change IIR filter to Butterworth, Chebyshev I, Chebyshev II, and Elliptic). Note down the order of each design. Which one will give the lowest order? Sketch the frequency response magnitudes in linear scale. ) Butterworth 2) Chebyshev I 3) Chebyshev II 4) Elliptic Is the phase response linear? 8

Part 3: FFT Problem 3.. Set up the two signals as shown in Figure 6 using the block diagram in Figure 5. Examine the FFTs of the following two signals. Choose user-defined signal type in the Sig Gen block (Pulsewidth = 8). Take 8-point FFT to the output of the Sig Gen, then plot the signal (Choose Real to see the real part of the signal, and Imag to the imaginary part. Tap View Values in the Plot block to see the exact values). Figure 5. Block diagram in Prob. 3.. X X 2 Figure 6 The signals to be set up using the Sig Gen block Tabulate and compare the real and imaginary parts of the two signals above (linear scale). Keep three digits after the decimal point. 9

) X Real Imag x y x y 2) X 2 Real Imag x y x y 0

Problem 3.2. Generate a signal x[ n] 0.4sin(0.25 n) sin(0.22 n) with the length of 28 samples using two Sig Gen blocks and one Adder block. Use a rectangular window that has length 28 samples to truncate the signal. Take 28-point FFT after truncating the signal. Double tap the Plot block to see the FFT magnitude in db scale. Set the length of the rectangular window to be 64 samples. Still take 28-point FFT. Check whether it takes effect on the FFT magnitude. Change the window to a Hanning window that has length 28 samples, and check the FFT magnitude again. Is the signal resolved precisely?