Discrete-Time Signal Processing (DTSP) v14

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

EE 422G - Signals and Systems Laboratory

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

Multirate Digital Signal Processing

Sampling and Reconstruction of Analog Signals

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

Experiment 2 Effects of Filtering

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

Chapter 9. Chapter 9 275

Laboratory Assignment 5 Amplitude Modulation

Laboratory Assignment 1 Sampling Phenomena

Experiment 6: Multirate Signal Processing

ADC, FFT and Noise. p. 1. ADC, FFT, and Noise

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

Multirate DSP, part 1: Upsampling and downsampling

EE 215 Semester Project SPECTRAL ANALYSIS USING FOURIER TRANSFORM

Lecture 17 z-transforms 2

Brief Introduction to Signals & Systems. Phani Chavali

EE 470 Signals and Systems

Signal Characteristics

Electrical & Computer Engineering Technology

Lecture 3 Complex Exponential Signals

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

ECEGR Lab #8: Introduction to Simulink

Lab 0: Introduction to TIMS AND MATLAB

The quality of the transmission signal The characteristics of the transmission medium. Some type of transmission medium is required for transmission:

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Figure 1: Block diagram of Digital signal processing

EE 421L Digital Electronics Laboratory. Laboratory Exercise #9 ADC and DAC

System analysis and signal processing

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation

Sampling of Continuous-Time Signals. Reference chapter 4 in Oppenheim and Schafer.

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

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

Experiment 4 Sampling and Aliasing

AUDL Final exam page 1/7 Please answer all of the following questions.

Module 3 : Sampling and Reconstruction Problem Set 3

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

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

Experiment 8 Frequency Response

Filter Banks I. Prof. Dr. Gerald Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany. Fraunhofer IDMT

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

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

DIGITAL SIGNAL PROCESSING WITH VHDL

Chapter 2: Digitization of Sound

ELEC3104: Digital Signal Processing Session 1, 2013 LABORATORY 3: IMPULSE RESPONSE, FREQUENCY RESPONSE AND POLES/ZEROS OF SYSTEMS

EE 210: CIRCUITS AND DEVICES

Signal Processing Toolbox

Implementation of CIC filter for DUC/DDC

Presentation Outline. Advisors: Dr. In Soo Ahn Dr. Thomas L. Stewart. Team Members: Luke Vercimak Karl Weyeneth. Karl. Luke

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

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

Lab 4 An FPGA Based Digital System Design ReadMeFirst

Noise removal example. Today s topic. Digital Signal Processing. Lecture 3. Application Specific Integrated Circuits for

Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

Advanced Audiovisual Processing Expected Background

ECEN Network Analysis Section 3. Laboratory Manual

Sampling and Signal Processing

Laboratory Project 4: Frequency Response and Filters

Lecture Fundamentals of Data and signals

SCUBA-2. Low Pass Filtering

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

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

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

Laboration Exercises in Digital Signal Processing

EECS 452 Midterm Exam (solns) Fall 2012

List and Description of MATLAB Script Files. add_2(n1,n2,b), n1 and n2 are data samples to be added with b bits of precision.

Integrators, differentiators, and simple filters

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

SIGMA-DELTA CONVERTER

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

Experiment 8: Sampling

Basic Signals and Systems

Data Transmission. ITS323: Introduction to Data Communications. Sirindhorn International Institute of Technology Thammasat University ITS323

The University of Queensland School of Information Technology and Electrical Engineering. ELEC3004/7312: Signals, Systems and Controls

Digital Processing of Continuous-Time Signals

EE 210 Lab Exercise #4 D/A & A/D Converters

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

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

EE 233 Circuit Theory Lab 3: First-Order Filters

!"!#"#$% Lecture 2: Media Creation. Some materials taken from Prof. Yao Wang s slides RECAP

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Digital Processing of

L A B 3 : G E N E R A T I N G S I N U S O I D S

EMBEDDED DOPPLER ULTRASOUND SIGNAL PROCESSING USING FIELD PROGRAMMABLE GATE ARRAYS

When you have completed this exercise, you will be able to relate the gain and bandwidth of an op amp

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

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

System on a Chip. Prof. Dr. Michael Kraft

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Advanced Digital Signal Processing Part 5: Digital Filters

Assist Lecturer: Marwa Maki. Active Filters

Part I - Amplitude Modulation

EE477 Digital Signal Processing Laboratory Exercise #13

Experiment One: Generating Frequency Modulation (FM) Using Voltage Controlled Oscillator (VCO)

Adaptive Filters Application of Linear Prediction

C.11 Sampling and Aliasing Solution

Transcription:

EE 392 Laboratory 5-1 Discrete-Time Signal Processing (DTSP) v14 Safety - Voltages used here are less than 15 V and normally do not present a risk of shock. Objective: To study impulse response and the filtering effect of networks with delay elements. To study decimation and upsampling techniques used in digital signal processing. Notes: This experiment uses continuous-time delay elements. Signals are not sampled so there is no aliasing and filter response is repetitive at intervals of f = 1/". Equivalent sampled systems have sampling rate F s = 1/" and input signals should not exceed F s /2 in frequency. Outcomes: Students will observe impulse response and frequency response of delay element networks Students will experience the sounds of reverberation associated with lengthy delay elements. Students will gain experience in MATLAB audio file I/O and signal processing of.wav files. Students experience the sounds, spectra and waveforms associated with downsampling/upsampling. This includes the rattling sound of aliasing, and the muffled sound when bandwidth is reduced. Equipment: Part I uses a signal delay (Blackfin) module, summing amplifier module, an oscilloscope, and a function generator. Procedure - Part I: (~3 hours) 1. Obtain the summing ampifier board and use the Blackfin ADSP-BF533 EZ-KIT as an external delay unit. On connection to power, the EZ-KIT will self-program and give two 4 ms delay elements and two 85 ms delay units. (Right channel delays are same as the Left). Figure 1. Summing Amplifier Board Revised Mar. 11, 2013

EE 392 Laboratory 5-2 Figure 2. Audio connections to the Blackfin EZ-KIT processor board 2. Use two stereo RCA audio cables to connect the both 4 ms audio delays to the summing amplifier board. Use an oscilloscope to verify the delays. 3a. Using one delay unit with build the finite impulse response (FIR) network illustrated in Fig. 3a. Use the B summing amplifier as illustrated in Fig. 1. This type of feed-forward network is also called non-recursive or transversal. Set b 0 =b 1 =1. i) display and record the impulse response (suggest: 0.5 volt, 0.5 ms pulse, 20 ms period). ii) the network equation and the z-domain transfer function are given, sketch a z-plane representation of the poles and zeros. Zero will be at z = -1, where is the pole? zero gain and the gain at zero hertz and at frequency. iv) measure the gain vs frequency response of the network using a 100 mvrms sinusoid. Do not spend much time here you only need a rough sketch noting the frequency of the zero and the gain at zero hertz and. The Blackfin module has a low-end cut-off at 20 Hz and this will cause a deviation from theory at low frequencies. Figure 3. Finite impulse response (FIR) networks 3b. Using two delay units with build the finite impulse response (FIR) network illustrated in Fig. 3b. Set b 0 =b 1 =b 2 =1. i) display and record the impulse response (suggest: 0.5 volt, 0.5 ms pulse, 20 ms period). ii) determine the network equation and the z-domain transfer function. The z-plane representation of the poles and zeros is given. zero gain and the gain at zero hertz and at frequency. iv) observe the gain vs frequency response of the network using a 100 mvrms sinusoid.

EE 392 Laboratory 5-3 4a. Using one delay unit with build the infinite impulse response (IIR) network illustrated in Fig. 4a. The feed-back network is also called recursive. Use the A summing amplifier and select a 1 = 0.5 (i.e. 20 kω). i) display and record the impulse response (suggest: 0.5 volt, 0.5 ms pulse, 50 ms period). ii) the network equation and the z-domain transfer function are given, sketch a z-plane representation of the poles and zeros. zero gain and the gain at zero hertz and at frequency. iv) observe the gain vs frequency response of the network using a 100 mvrms sinusoid. Figure 4. Infinite impulse response (IIR) networks 4b. Using two delay units with build the infinite impulse response (IIR) network illustrated in Fig. 4b. Set a 1 = +0.83 and a 2 = -0.66 by setting the summing resistors to 12.0 kω and 15.0 kω and note that the negative summing input must be used. i) display and record the impulse response (suggest:0.5 volt, 0.5ms pulse, 100 ms period). ii) Determine the network equation and the z-domain transfer function. Also determine the z-plane representation of the poles and zeros. zero gain, maximum gain and the gain at zero hertz and at frequency. iv) observe the gain vs frequency response of the network using a 100 mvrms sinusoid.

Procedure - Part II: (~3 hours) EE 392 Laboratory 5-4 Equipment: For Part II, the preparation part will need a computer running MATLAB software. The experimental study needs all the equipment from part I. In addition, the reverberation study needs earphones and an audio file. A spectrum anaylzer is needed for one of the optional parts. 6. Prior to the laboratory period: From the course website, use the web-based downsamping and updsampling demonstration using an audio file. Do this in advance to avoid unnecessary disturbance to other students in the lab. Review MATLAB code and complete the following: a) What method is used to filter the upsampled audio file? b) What is the peak-peak amplitude reduction when the 8x file is filtered? c) What is the highest audio frequency when the 40 ks/s file is downsampled to 5 ks/s? d) Modify the MATLAB code to produce a 50-sample stem plot of a different section of data. You may substitute your own audio file (44.1 ks/s is close enough to 40 ks/s). Include the plot in your report. (use space bar to advence through program) 7. Direct Form Type II Filter for the filter section in Fig. 5 with a 1 = +0.83, a 2 = -0.66 and b 0 =b 1 =b 2 =1, calculate and mark the poles and zeros on the z-plane plot using the method of Appendix C. Calculate the magnitude response of the filter using the method of Appendix D. (this is best done in advance). 8. Direct Form Type II Filter section Using the summing amplifier board (Fig. 2) merge the networks illustrated in Fig. 3b and Fig. 4b to form the filter section illustrated in Fig. 5. Using a 100 mvrms sinusoid, measure the magnitude response of this filter and compare to Part 7. Figure 5. Direct-form type II filter. 9. Reverberation If time permits, connect one 85 ms unit to build the recursive (feedback) network illustrated in Fig. 1 of Appendix B. Using a microphone or other audio input and an earphone for output, observe the sound of reverberation. 10. Simulink If time permits, determine the frequency response of this delay element network using Simulink. 11. White noise If time permits, determine the frequency response of this network by using a white noise or long sequence pseudonoise input and displaying the output spectrum (display averaging is helpful here).

EE 392 Laboratory 5-5 Appendix A Downsampling & Upsampling In signal processing, the required memory and processing requirments can be reduced by reducing the signal s data rate through decimation. Decimation consists of two steps, filtering and down-sampling. Down-sampling is simple. For example, to down-sample by a factor of 3, one keeps every 3 rd sample and throws the rest away. The data rate is thereby reduced by a factor of 3. However there is a down-side to down-sampling; since the sampling rate is reduced by 3, the Nyquist frequency (Fs/2) is also reduced by a factor of 3. Prior to downsampling, the signal must first be filtered to remove the frequencies above the new Nyquist frequency retaining only signal components up to about 80% of the new Nyquist frequency. The finite impulse response (FIR) filter is one of several practical lowpass filters that can be used to limit the signal bandwidth. Fig. A1 Decimator Fig. A2 Interpolator Once the decimated signal has passed through storage and/or signal processing, the data rate needs to be restored to the original value. Increasing the data rate is done using an interpolator. Interpolation consists of two steps: up-sampling and filtering. Up-sampling by k increases the sample rate by a factor of k. It consists of inserting k " 1 samples between every two samples of the input stream. It is common practice to first insert zeros (this is known as zero stuffing) and to calculate the intermediate values by lowpass filtering the zero-stuffed sequence. Up-sampling produces spectral images at multiples of the incoming data rate. A low-pass filter with a cut-off below the Nyquist frequency of the input stream is necessary to remove the unwanted images. Appendix B - Reverberation A reverberation circuit basically adds-in delayed versions of a signal to produce an echo effect. A simple reverberator is shown in Fig. B1 where the output is delayed by N samples, multiplied by a gain (that should be less than one), and added into the input signal. A problem with this simple design is that the amplitude response changes with frequency. The more sophisticated design, shown in Fig. B2, still uses a single delay but produces a flat response and is called an all-pass reverberator. For this experiment, we will consider only the simple reverberator. " = 0.66 Fig, B1. Simple Reverberator Fig, B2. All-Pass Reverberator

EE 392 Laboratory 5-6 Appendix C: Z-Plane Pole Locations and Frequency of Maximum Gain As an example, consider an IIR filter with sampling rate of F s = 500 Hz and z-domain transfer function of: 1 H(z) = 1 " z "1 + 0.8z "2 = z 2 z 2 " z 1 + 0.8 To calculate the frequency of maximum gain, solve for the pole positions and determine where they are closest to the unit circle in the z-domain. For the denominator, z = "b ± b2 " 4ac 2a = 1 ± 1 " 4 # 0.8 2 So we have two poles, z = 0.5 + j0.7416 and z = 0.5 " j0.7416. = 1± "2.2 2 = 0.5 ± j0.7416 If we convert to polar notation, the angle of the pole will be angle for maximum gain. 0.7416 tan(" ) = 0.7416 = 1.483 0.5 " = tan #1 (1.483) = 0.976 radians 0.5 and r = 0.5 2 + 0.7416 2 = 0.8944 The frequency corresponding to radians around the unit circle would be So the frequency corresponding to the pole (and maximum gain) = 0.976 " F s 2 = 250 Hz ( 250 Hz) = 77.7 Hz Appendix D: Calculating Magnitude Response from Poles and Zeros As an example, consider athe direct-form type-ii filter with sampling rate of F s = 500 Hz and z-domain transfer function: H(z) = 1+ z"1 + z "2 1" z "1 + 0.8z "2 We have two zeros z z = "0.5 ± j0.866 (on the unit circle) and two poles z p = 0.5 ± j0.7416. The magnitude vs frequency response is calculated for values of z on the unit circle using the following complex calulation: H(z) = (z " z z1 )(z " z z2 ) (z " z p1 )(z " z p2 )