next up previous
Next: Lab 3 Up: EEE 407/591 - Digital Previous: Part 2: Discrete Time Main: Main Lab Page

Lab 2 - The Z-Transform and the Frequency Responses


Objectives

The objective of this lab is to provide hands-on experiences on z-domain representations of Signals and LTI systems and to expose students to relationships of pole/zero locations with the frequency response. Once the relationship between the pole-zero plot and magnitude response is understood, a filter with a desired magnitude response can be designed by appropriately  placing its poles and zeros in the Z-plane. Finally, a system in which the effects of the poles and zeros cancel each other will be examined.

For each problem you should save the required graphs in gif format. Make a note of the filter coefficients that you use in each problem so you can answer the questions at the end of this lab. It may be a good idea to look at the quiz for this lab before getting started to know what is required.

Introduction

For this lab, you are required to use a new Java progam called J-DSP. To become familiar with it, we recommend that you first work through the Introduction on J-DSP.

The z-transform of the impulse response of a LTI system can be written in the following form:

displaymath311

This is also known as the transfer function of the system. The ai's and the bi's are called the filter coefficients of the system with a0 always being equal to one. To create an LTI system with J-DSP, first, determine the z-transform of the system's impulse response h[n] and then determine the filter coefficients from this z-domain function and enter them into a coefficient block in the J-DSP program. If the input to a filter block is x[n], then the output will be
 

displaymath313

where * denotes convolution. If the input to the filter block is an impulse, the output will be the inverse z-transform of the transfer function, i.e., h[n]. Besides the filter block, other J-DSP blocks that will be useful to you in this lab include the Signal Generator Block, the coeff. block, the plot block , the FFT block, the PZ placement block, the Freq-Resp block. For all frequency responses in this lab, you can either use a Fast Fourier Transform of size 256 on the time domain impulse response of the filter followed by a plot block to visualize the response in the frequency domain or you can directly use Freq-Resp block in conjunction with the coefficients block to visualize the frequency response. Use linear scaling of the plot if it is not stated otherwise.

You can get the usage of each block from the help dialog box provided in each block interface. Here we are providing the descriptions of three blocks those can be found in "Filter Blocks" menu in the "EXISTING FUNCTIONS" list of J-DSP editor.

o The PZ Placement. This block can be used to create a pole-zero plot. The PZ Placement block can be connected to either the bottom of a filter block or to a Freq-Resp block. Connecting the PZ Placement block to the bottom of a filter block will automatically set the filter coefficients of that filter block so that its poles and zeros are at the locations specified in the PZ Placement block. Connecting the PZ Placement block to a Freq-Resp block will display, in the Freq-Resp window, the frequency response of the filter having poles and zeros specified in the PZ Placement block.

Poles and zeros can be placed on the plot by using either the mouse or the keyboard. To place them using the mouse, select "graphical" from the pop-down menu, press the "Add Pole" or "Add Zero" button and then click on the plot in the desired location of the zero or pole. To place poles and zeros using the keyboard, select one of the manual options from the pop-down menu, choose either the pole or zero radio button, enter the location using the keyboard and press the enter button on the right edge of the window. Please note that because of the graphical interface the positions of poles and zeros are on a grid and hence the entered values may change according to the grid values If you want to avoid changes in manually entered roots, then avoid switching from manual to graphical and vice versa. To delete pole(s) or zero(s), select the pole(s) or zero(s) to be deleted on the plot by clicking on it and then press the delete button at the bottom of the window. To move a pole or zero, click on the pole(s) or zero(s) in the plot and while holding the mouse button down drag it to a new location. The reset button will erase all the poles and zeros from the plot.

oThe Freq-Resp block. The Freq-Resp block can be connected to the top of a filter block, to a PZ Placement block as explained above, or to a filter design block such as IIR Fltr, FIR Fltr or Kaiser. The Freq-Resp block will show the frequency response of the filter to which it is connected or if connected to the PZ Placement block, the frequency response of a filter having poles and zeros specified in the PZ Placement block.

oThe PZ-Plot block. Connect the PZ-Plot block to the top of a filter block to see a plot of the poles and zeros of that filter or to any of the filter design blocks to see a plot of their poles and zeros. The filter design blocks include FIR Design, IIR Design, Kaiser Design, Parks-McClellan, Freq. Sampling, LMS.

For this lab, use the J-DSP program.Click the link below

Run J-DSP

Problems

o Problem 1: Exponential Sequences

o Problem 2: Digital Oscillator

Design and simulate a digital oscillator where the impulse response has the form

displaymath323

with

displaymath310

Obtain a graph of the frequency response using a linear scale. (Save the graph as graph6.gif)

o Problem 3:

Consider a system whose impulse response is:

displaymath327

The input signal to the system is

displaymath329

Do the following which will include 3 graphs.

o Problem 4: Pole-Zero Plots

The figure below shows the pole-zero configuration of two causal linear time-invariant systems.



Do the following:

o Problem 5: Cascaded and Parallel Configurations of Systems

(a) Consider the following sequence, y[n], which is the convolution of two casual sequences.

displaymath337

(b) Consider a system that has the following impulse response:

displaymath339

In all problems, with the exception of number 3, use linear scaling for the magnitude.

oProblem 6: Pole-Zero Plots

Find the poles and zeros of the following transfer functions. Use the PZ Placement block in J-DSP to place the poles and zeros and the Freq-Resp block to view the system's frequency response. Plot the frequency response of each one using linear scaling.

 

 

o Problem 7: Varying the magnitude of poles and zeros.

Consider a system which has poles at
displaymath347
and a zero at
displaymath349
where

 

 

o Problem 8: Lowpass Filter/ Highpass Filter Design by Pole-Zero Placement

For this problem, you will design filters by pole and zero placement using J-DSP's PZ Placement block. You may want to use the following set-up to do the design.

Double click on the PZ Placement and then Freq-Resp block so you can see each block's respective window at the same time. Place the poles and zeros on the pole-zero plot at the desired locations. When all poles and zeros have been placed, move the poles and zeros around by clicking them and dragging them to new locations. 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.

For this problem, plot the magnitude responses in decibels.

 

 

 

o Problem 9: An interesting frequency response

Consider the following system:
displaymath361
 

 

 


next up previous
Next: Lab 3 Up: EEE 407/591 - Digital Previous: Part 2: Discrete Time Main: Main Lab Page

Copyright 2004 Andreas Spanias, MIDL, Arizona State University JDSP and Report Submission Software Developed by ASU-MIDL For questions contact Prof. Spanias spanias@asu.edu.