Problem Set #1 Problem Set Due: Friday, April 12

Similar documents
Course Web site:

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Signals and Systems. Spring Room 324, Geology Palace, ,

10:15-11 am Digital signal processing

Problem Weight Total 100

EE 261 The Fourier Transform and its Applications Fall 2007 Problem Set Two Due Wednesday, October 10

Multirate Digital Signal Processing

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING SEMESTER 2 EXAMINATION 2016/2017

Dr. David A. Clifton Group Leader Computational Health Informatics (CHI) Lab Lecturer in Engineering Science, Balliol College

Laboratory Assignment 3. Digital Music Synthesis: Beethoven s Fifth Symphony Using MATLAB

FFT Laboratory Experiments for the HP Series Oscilloscopes and HP 54657A/54658A Measurement Storage Modules

Multirate Signal Processing: Graphical Representation & Comparison of Decimation & Interpolation Identities using MATLAB

Experiment 2: Sampling and Quantization

Adaptive Resampling - Transforming From the Time to the Angle Domain

חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור קורס גרפיקה ממוחשבת 2009/2010 סמסטר א' Image Processing

Fourier Transforms 1D

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

Sampling. Sampling. CS 450: Introduction to Digital Signal and Image Processing. Bryan Morse BYU Computer Science

Digital Image and Fourier Transform

Lab 5 Linear Predictive Coding

ZONE PLATE SIGNALS 525 Lines Standard M/NTSC

ECE 45 Homework 2. t x(τ)dτ. Problem 2.2 Find the Bode plot (magnitude and phase) and label all critical points of the transfer function

Intro to DSP: Sampling. with GNU Radio Jeff Long

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2016 Lab #6: Sampling: A/D and D/A & Aliasing

Sampling Issues in Image and Video

Module 8 : Numerical Relaying I : Fundamentals

1 Overview. 1.1 Digital Images GEORGIA INSTITUTE OF TECHNOLOGY. ECE 2026 Summer 2018 Lab #5: Sampling: A/D and D/A & Aliasing

with - < n < +. There are two types of approximations associated with the sampling process. finite precision of the ADC finite sampling frequency.

International Journal of Engineering Research-Online A Peer Reviewed International Journal

Discrete-time equivalent systems example from matlab: the c2d command

DDC and DUC Filters in SDR platforms

AN INTEGRATED MATLAB SUITE FOR INTRODUCTORY DSP EDUCATION. Richard Radke and Sanjeev Kulkarni

Design and VLSI Implementation of Oversampling Sigma Delta Digital to Analog Convertor Used For Hearing Aid Application

A review on the design and improvement techniques of comb filters

Digital Audio: Some Myths and Realities

Upgrading E-learning of basic measurement algorithms based on DSP and MATLAB Web Server. Milos Sedlacek 1, Ondrej Tomiska 2

USING MICROPHONE ARRAYS TO RECONSTRUCT MOVING SOUND SOURCES FOR AURALIZATION

Getting Started with the LabVIEW Sound and Vibration Toolkit

4. ANALOG TV SIGNALS MEASUREMENT

KTVN Silver Springs DTV Translator. K29BN D in KTVN Shop

DESIGN OF INTERPOLATION FILTER FOR WIDEBAND COMMUNICATION SYSTEM

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Spectrum Analyser Basics

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

Errata to the 2nd, 3rd, and 4th printings, A Technical Introduction to Digital Video

An Introduction to the Sampling Theorem

Experiment 13 Sampling and reconstruction

GG450 4/12/2010. Today s material comes from p in the text book. Please read and understand all of this material!

CHAPTER 3 COLOR TELEVISION SYSTEMS

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

The Effect of Time-Domain Interpolation on Response Spectral Calculations. David M. Boore

Digitizing and Sampling

Suverna Sengar 1, Partha Pratim Bhattacharya 2

Hello, welcome to the course on Digital Image Processing.

Linear Time Invariant (LTI) Systems

Techniques for Extending Real-Time Oscilloscope Bandwidth

/$ IEEE

Chapter 6: Real-Time Image Formation

Handout 1 - Introduction to plots in Matlab 7

EE369C: Assignment 1

A Programmable, Flexible Headend for Interactive CATV Networks

NON-UNIFORM KERNEL SAMPLING IN AUDIO SIGNAL RESAMPLER

FPGA Realization of Farrow Structure for Sampling Rate Change

MUSIC TRANSCRIPTION USING INSTRUMENT MODEL

EE 200 Problem Set 3 Cover Sheet Fall 2015

ON THE INTERPOLATION OF ULTRASONIC GUIDED WAVE SIGNALS

Hugo Technology. An introduction into Rob Watts' technology

Chapter 3. Basic Techniques for Speech & Audio Enhancement

DIGITAL COMMUNICATION

Removal of Decaying DC Component in Current Signal Using a ovel Estimation Algorithm

Fourier Integral Representations Basic Formulas and facts

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

DIRECT DIGITAL SYNTHESIS AND SPUR REDUCTION USING METHOD OF DITHERING

Politecnico di Torino HIGH SPEED AND HIGH PRECISION ANALOG TO DIGITAL CONVERTER. Professor : Del Corso Mahshid Hooshmand ID Student Number:

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

ECE438 - Laboratory 1: Discrete and Continuous-Time Signals

OCTAVE C 3 D 3 E 3 F 3 G 3 A 3 B 3 C 4 D 4 E 4 F 4 G 4 A 4 B 4 C 5 D 5 E 5 F 5 G 5 A 5 B 5. Middle-C A-440

Midterm Review. Yao Wang Polytechnic University, Brooklyn, NY11201

1732 IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL. 45, NO. 9, SEPTEMBER 2010

Supplementary Course Notes: Continuous vs. Discrete (Analog vs. Digital) Representation of Information

Voice Controlled Car System

High Performance Real-Time Software Asynchronous Sample Rate Converter Kernel

Fundamentals of DSP Chap. 1: Introduction

Filterbank Reconstruction of Bandlimited Signals from Nonuniform and Generalized Samples

PS User Guide Series Seismic-Data Display

UNIVERSAL SPATIAL UP-SCALER WITH NONLINEAR EDGE ENHANCEMENT

Single Channel Speech Enhancement Using Spectral Subtraction Based on Minimum Statistics

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

Experiment # 5. Pulse Code Modulation

Musical Sound: A Mathematical Approach to Timbre

ECE 5765 Modern Communication Fall 2005, UMD Experiment 10: PRBS Messages, Eye Patterns & Noise Simulation using PRBS

Introduction to Computers and Programming

UNIVERSITY OF BAHRAIN COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING

DATA COMPRESSION USING THE FFT

Analog TV Systems: Monochrome TV. Yao Wang Polytechnic University, Brooklyn, NY11201

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

OPTIMIZED DIGITAL FILTER ARCHITECTURES FOR MULTI-STANDARD RF TRANSCEIVERS

Transcription:

1 EE102B Pring 2018-19 Signal Processing and Linear Systems II Pauly Problem Set #1 Problem Set Due: Friday, April 12 In the following problems, assume that δ T (t) = δ(t nt ) n = is an infinite array of impulses separated by a time T. sampling function. It s Fourier transform is This is a shorthand notation for the F{δ T (t)} = ω s δ ωs (ω) where ω s = 2π T is the sampling frequency. This is an array of impulses in frequency, separated by the sampling frequency. 1. Demodulation with an Ideal Sampler Multiplying a signal f(t) with cos(ω c t) produces a modulated signal z(t) = f(t) cos(ω c t) where ω c is the carrier frequency. One way to demodulate this signal and recover f(t) is to multiply z(t) by cos(ω c t), and lowpass filter the result. In this problem you will show that you can achieve the same effect with an ideal sampler. The block diagram of the receiver is H(jω) z(t) r(t) y(t) t = nt 2πB 2πB ω Sampler Lowpass where the ideal sampler is drawn as a switch that closes instantaneously every T seconds to acquire a new sample. Assume that the signal f(t) is bandlimited, with F (jω) = 0 for ω > 2πB, and that the carrier frequency ω c 2πB. Other than that F (jω) is unspecified (plot it as a bandlimited triangle in the plots below). (a) Show that we can recover f(t) if the ideal sampler operates at a frequency ω c (i.e. samples at a rate of ω c /2π samples/s). Draw the spectrum of the input signal Z(jω), and the spectrum of the signal right before the lowpass filter R(jω).

2 (b) What is the lowest frequency at which the sampler can operate, and still recover f(t)? Draw the spectrum of R(jω). 2. Sampling Timing Errors Imperfections in a sampler cause characteristic artifacts in the sampled signal. In this problem we will look at the case where the sample timing is non-uniform, as shown below τ f (t) 3 2 1 0 1 2 3 t The sampling function f(t) has its odd samples delayed by a small time τ. a) Write an expression for f(t) in terms of two uniformly spaced sampling functions. b) Find F (jω), the Fourier transform of f(t). Express the impulse trains as sums, and simplify. c) Find F (jω) for the case where τ = 0, and show that this is what you expect. d) Assume the signal we are sampling has a Fourier transform 1 G( jω) π π ω Sketch the Fourier transform of the sampled signal. Include the baseband replica, and the replicas at ω = ±π. Assume that τ is small, so that e jωτ 1 + jωτ. e) If we know g(t) is real and even, can we recover g(t) from the non-uniform samples g(t)f(t)? (f) Recall how we argued that the sinc is a perfect interpolator for a uniformly sampled signal at the Nyquist rate. The sinc is one at the sample, and zero at all of the other samples. There are also perfect interpolators for this case. Sketch what they would look like. You can actually solve for them explicitly, but you don t need to do that. We are just looking for qualitative answers here. 3. Reconstruction of the Derivative of a Signal a) Assume we have a sampled signal f s (t) = f(t)δ 1 (t) where f(t) is bandlimited, and is sampled exactly at the Nyquist rate which is 1 sample/second. Find the transfer function H(jω) of a system that takes the sampled signal, and reconstructs the derivative of the original signal.

3 f s (t) h(t) d dt f(t) Hint: Think of this as two systems, one to reconstruct the signal, and a second to take the derivative. Then combine them. b) Find the impulse response h(t) for this system. You don t have to explicitly differentiate in your answer. c) An approximate solution is to note that f (t) 1 T (f(t) f(t T )) If we let T = 1, our sampling period, we can just subtract adjacent samples, and then reconstruct the result with an ideal lowpass filter. f s (t) h d (t) + + 1 f d (t) Delay by 1! Here f d (t) is the approximation to the derivative of f(t), and h d (t) is the impulse response of this system. Find the transfer function H d (jω). d) Find the impulse response h d (t). e) The transfer functions of these two systems differ. Use the small angle approximation e jω = cos ω j sin ω 1 jω to show how these two are related.

4 Laboratory In this lab we will look at some effects of signal aliasing, and one of the reasons for using an antialiasing filter. Task 1: Aliasing In this task we will examine the property of discrete time sinusoids with frequencies above the Nyquist rate to appear as lower frequencies. We will use a signal that has quadratic phase, sampled at 16384 Hz. >> t = [0:16383]/16384; >> y = cos(2*pi*4096*(t.*t)) A continuous time signal with a quadratic phase as a function of time is known as a chirp, and has a linear sweep in frequency. Listen to y using >> sound(y,16384) Does is sound like you expect? Draw a plot of frequency verses time. Frequency is the derivative of the phase. If f(t) is a continuous sinusoid cos(θ(t))), the frequency is f(t) = 1 dθ(t) 2π dt where f(t) is in Hz, and θ(t) is in radians. In this case the phase is θ(t) = 2π(4096)t 2 radians. Note that since this is a real cosine, there will be positive and negative frequencies. Now, make a subsampled version (downsampled by a factor of 2) >> y2 = y(1:2:end); and listen to it. >> sound(y2,8192) Does this sound like you expect? Why is this different than the previous case? Again, draw a plot frequency verses time. Task 2: Anti-Aliasing Filter As we described in class, it is common practice to put a lowpass filter right before a sampler, to ensure that no aliasing occurs. This is also highly recommended when downsampling a signal, as will be demonstrated here. Conceptually, downsampling a signal by a factor of N simply means taking every N th sample. For example, assume we have a sinusoid of frequency 500 Hz, sampled at 256 khz. We d like to reduce the sampling rate to 8 khz (typical land-line phone quality), or a factor of N=32, >> t = [1:256000]/256000; >> x = cos(2*pi*500*t);

5 where x will be one second of the sinusoid. In practice, the signal will also contain broadband noise that covers the spectrum xn = 0.5 *x + 0.125* randn(1,256000) ; where the scale factors are chosen so that the result will be between -1 and 1, so it doesn t clip when played with sound(). If we are going to downsample by a factor of N=32 we should lowpass filter first. A possible filter is a truncated (time limited) sinc. Next week we ll talk about better options, but this is a reasonable choice. How do we design this sinc? The key is to think about the sinc interpolators from Wednesday s class. These were 1 at the sample, and zero at the other samples. That is what we want here. The sinc zeros should be spaced by 32 samples. There are tradeoffs with different filter lengths that we will also talk about next week. However, four zeros on either side is a reasonable choice. Then >> th = [-32*4:32*4]/32; >> h = sinc(th); >> h = h/sum(h); Plot this, and check that it does what you want it to do (zero spacing, number of samples). The last step sets the DC gain to 1, so that filtered and unfiltered signals will have the sample amplitude, and can be compared. The sinc value at time zero will not be 1. If you don t have the signal processing toolbox, you don t have the sinc() function. In this case, define an m-file function [y] = mysinc(t) % sinc(t) = sin(pi*t)./(pi*t) t(find(t==0)) = eps; y = sin(pi*t)./(pi*t); This avoids divide by zero by replacing zero with the machine precision eps, which is the closest number to zero that it can represent. The downsampled signals are >> xnd = xn(1:32:end); if we don t use an anti-aliasing filter h and >> xnh = conv(xn,h, same ); >> xnhd = xnh(1:32:end); The matlab function conv() does the convolution, and the argument same makes the length of the result equal to the length of the first argument. This eliminates the time delay introduced by the convolution, making it easier to compare the two signals. Compare xnd and xnhd. You can compare a segment of each on the same plot, plot the difference, look at the mean squared error between each of these and the ideal signal,

6 xi = 0.5*x[1:32:end] mse1 = sum((xnd - xi).ˆ2)/8000; mse2 = sum((xnhd - xi).ˆ2)/8000; or listen to how they sound >> sound(xnd,8000); >> sound(xnhd,8000); Describe what the anti-aliasing filter has done for the quality of the reconstruction. For future reference, matlab has a function decimate() that designs and applies a filter, and then subsamples a signal. The FIR option is recommended >> xd = decimate(x,32, FIR ) They actually recommend you don t decimate by more than 13, so you d first decimate by 8, and then 4.