Digital Signal Processing Lecture 1 - Introduction

Similar documents
ECE 201: Introduction to Signal Analysis

DSP First Lab 03: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: k=1

Linear Frequency Modulation (FM) Chirp Signal. Chirp Signal cont. CMPT 468: Lecture 7 Frequency Modulation (FM) Synthesis

Spectrum. Additive Synthesis. Additive Synthesis Caveat. Music 270a: Modulation

Music 270a: Modulation

ECE 201: Introduction to Signal Analysis. Dr. B.-P. Paris Dept. Electrical and Comp. Engineering George Mason University

CMPT 468: Frequency Modulation (FM) Synthesis

ECE 201: Introduction to Signal Analysis

DSP First. Laboratory Exercise #2. Introduction to Complex Exponentials

Lecture 3 Complex Exponential Signals

Sinusoids. Lecture #2 Chapter 2. BME 310 Biomedical Computing - J.Schesser

Lab S-7: Spectrograms of AM and FM Signals. 2. Study the frequency resolution of the spectrogram for two closely spaced sinusoids.

Lecture 7 Frequency Modulation

DSP First. Laboratory Exercise #4. AM and FM Sinusoidal Signals

Lab S-8: Spectrograms: Harmonic Lines & Chirp Aliasing

Introduction to signals and systems

Signals Arthur Holly Compton

Problem Set 1 (Solutions are due Mon )

Lab P-4: AM and FM Sinusoidal Signals. We have spent a lot of time learning about the properties of sinusoidal waveforms of the form: ) X

Solution to Chapter 4 Problems

CSC475 Music Information Retrieval

1 Introduction and Overview

Circuit Analysis-II. Circuit Analysis-II Lecture # 2 Wednesday 28 th Mar, 18

Synthesis: From Frequency to Time-Domain

CMPT 368: Lecture 4 Amplitude Modulation (AM) Synthesis

Basic Signals and Systems

Complex Sounds. Reading: Yost Ch. 4

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

Signals and Systems EE235. Leo Lam

1 Introduction and Overview

Project 2 - Speech Detection with FIR Filters

Signal Processing First Lab 02: Introduction to Complex Exponentials Multipath. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt }

Chapter 1. Electronics and Semiconductors

Aliasing. Consider an analog sinusoid, representing perhaps a carrier in a radio communications system,

Signals A Preliminary Discussion EE442 Analog & Digital Communication Systems Lecture 2

Here are some of Matlab s complex number operators: conj Complex conjugate abs Magnitude. Angle (or phase) in radians

Principles of Communications ECS 332

Communications II. Professor Kin K. Leung EEE Departments Imperial College London

Lab S-3: Beamforming with Phasors. N r k. is the time shift applied to r k

Sinusoids and Phasors (Chapter 9 - Lecture #1) Dr. Shahrel A. Suandi Room 2.20, PPKEE

NEGATIVE FREQUENCIES AND THROUGH-ZERO FREQUENCY MODULATION

Lab10: FM Spectra and VCO

Wireless Communication

Signal Processing First Lab 02: Introduction to Complex Exponentials Direction Finding. x(t) = A cos(ωt + φ) = Re{Ae jφ e jωt }

Laboratory Assignment 4. Fourier Sound Synthesis

Signals. Periodic vs. Aperiodic. Signals

Introduction to Digital Signal Processing (Discrete-time Signal Processing)

Phase demodulation using the Hilbert transform in the frequency domain

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Signal Processing. Introduction

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

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

Interfacing a Microprocessor to the Analog World

SAMPLING THEORY. Representing continuous signals with discrete numbers

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

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING

4.1 REPRESENTATION OF FM AND PM SIGNALS An angle-modulated signal generally can be written as

Real Analog Chapter 10: Steady-state Sinusoidal Analysis

Physics 115 Lecture 13. Fourier Analysis February 22, 2018

DSP First, 2/e. LECTURE #1 Sinusoids. Aug , JH McClellan & RW Schafer

Fall Music 320A Homework #2 Sinusoids, Complex Sinusoids 145 points Theory and Lab Problems Due Thursday 10/11/2018 before class

HW 6 Due: November 3, 10:39 AM (in class)

Trigonometric Identities. Copyright 2017, 2013, 2009 Pearson Education, Inc.

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

Lecture 10. Digital Modulation

Chapter 2. Signals and Spectra

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

The Formula for Sinusoidal Signals

THE SINUSOIDAL WAVEFORM

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

Weaver SSB Modulation/Demodulation - A Tutorial

1 Trigonometry. Copyright Cengage Learning. All rights reserved.

Signal Characteristics

G(f ) = g(t) dt. e i2πft. = cos(2πf t) + i sin(2πf t)

Spectrogram Review The Sampling Problem: 2π Ambiguity Fourier Series. Lecture 6: Sampling. ECE 401: Signal and Image Analysis. University of Illinois

DISCRETE FOURIER TRANSFORM AND FILTER DESIGN

Lab S-5: DLTI GUI and Nulling Filters. Please read through the information below prior to attending your lab.

2. Pre-requisites - CGS 2425 and MAC 2313; Corequisite - MAP 2302 and one of: EEL 3105, MAS 3114 or MAS 4105

EE4601 Communication Systems

ME scope Application Note 01 The FFT, Leakage, and Windowing

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

Sinusoids and Sinusoidal Correlation

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

THE STATE UNIVERSITY OF NEW JERSEY RUTGERS. College of Engineering Department of Electrical and Computer Engineering

Power Electronics Single Phase Uncontrolled Half Wave Rectifiers. Dr. Firas Obeidat

Music 171: Amplitude Modulation

DSP First, 2/e. This Lecture: LECTURE #1 Sinusoids. Appendix B: MATLAB

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

Fourier Methods of Spectral Estimation

Data Acquisition Systems. Signal DAQ System The Answer?

Lab 4 Fourier Series and the Gibbs Phenomenon

Spring 2018 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #1 Sinusoids, Transforms and Transfer Functions

Handout 2: Fourier Transform

EEE - 321: Signals and Systems Lab Assignment 3

Experiment 7: Frequency Modulation and Phase Locked Loops

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

Communication Channels

ECE5713 : Advanced Digital Communications

EE42: Running Checklist of Electronics Terms Dick White

Signal Processing. Naureen Ghani. December 9, 2017

Transcription:

Digital Signal Processing - Electrical Engineering and Computer Science University of Tennessee, Knoxville August 20, 2015

Overview 1 2 3 4

Basic building blocks in DSP Frequency analysis Sampling Filtering

Clarification of terminologies Discrete vs. Digital Continuous-time vs. Discrete-time signal Continuous-valued vs. Discrete-valued signal Digital signal Deterministic vs. Random signal (a) Analog signal. (b) Discrete-time signal. (c) Digital signal.

Signal processing courses at UT ECE 315 - Signals and Systems I ECE 316 - Signals and Systems II ECE 505 - Digital Signal Processing ECE 406/506 - Real-Time Digital Signal Processing ECE 605 - Advanced Topics in Signal Processing

Examples Automatic target recognition Bio/chemical agent detection in drinking water

Sinusoid or where A: amplitude x a (t) = A cos(ωt + θ), < t < x a (t) = A cos(2πft + θ), < t < θ: phase (radians) or phase shift Ω = 2πF: radian frequency (radians per second, rad/s) F: cyclic frequency (cycles per second, herz, Hz) T p = 1/F: fundamental period (sec) such that x a (t + T p ) = x a (t)

More on frequency 10 x(t)=10cos(2pi(440)t) 0 10 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 10 0 x(t)=10cos(2pi(880)t) Amplitude 10 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 10 0 x(t)=10cos(2pi(236)t) 10 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 Time t (sec) Figure : Sinusoids with different frequencies. What if F = 0?

More on frequency - How does it sound? 1 A440 A880 C236 A tuning fork demo 1 The multimedia materials are from McClellan, Schafer and Yoder, DSP FIRST: A Multimedia Approach. Prentice Hall, Upper Saddle River, New Jersey, 1998. Copyright (c) 1998 Prentice Hall.

More on frequency - The MATLAB code 1 % - Sinusoid 2 % plot a sinusoidal signal and listen to it 3 % 440Hz is the frequency of A above middle C on a musical scale 4 % it is often used as the reference note for tuning purpose 5 % 6 clear buffer 7 clear all; 8 clf; 9 10 % specify parameters 11 F =440; 12 t = 0:1/F/30:1/F*5; 13 x = 10*cos(2*pi*F*t - 0.4*pi); 14 15 % plot the signal 16 plot(t,x); 17 title( Sinusoidal signal x(t) ); 18 xlabel( Time t (sec) ); 19 ylabel( Amplitude ); 20 grid on; 21 22 % play the signal 23 sound(x)

Complex exponential signals According to Euler s formula x a (t) = A cos(ωt + θ) = R{Ae j(ωt+θ) } = R{Ae jθ e jωt } = R{Xe jωt } The rotating phasor interpretation Complex amplitude (or Phasor): X = e jθ Rotating phasor: multiplying the fixed phasor X by e jωt causes the phasor to rotate. If Ω is positive, the direction of rotation is counterclockwise; when Ω is negative, clockwise. The phase shift θ defines where the phasor is pointing when t = 0 A rotating phasor demo 2 2 The multimedia materials are from McClellan, Schafer and Yoder, DSP FIRST: A Multimedia Approach. Prentice Hall, Upper Saddle River, New Jersey, 1998. Copyright (c) 1998 Prentice Hall.

Spectrum and Time-frequency spectrum Spectrum: frequency domain representation of the signal that reveals the frequency content of the signal Two-sided spectrum: According to inverse Euler s formula x a (t) = A cos(ωt + θ) = A 2 ejθ e jωt + A 2 e jθ e jωt such that the sinusoid can be interpreted as made up of 2 complex phasors {( 1 2 X, F), (1 2 X, F)} Spectrogram: frequency changes over time

Application 1: Phasor addition When adding several sinusoids having the same frequency but different amplitudes and phases, the resulting signal is a complex exponential signal with the same frequency N A k cos(ωt + θ k ) = A cos(ωt + θ) k=1 Proof Exercise: 1.7 cos(2π(10)t+70π/180)+1.9 cos(2π(10)t+200π/180)

Application 2: Producing new signals from sinusoids Additive linear combination x a (t) = A 0 + N k=1 A k cos(2πf k t + θ k ) = X 0 + N k=1 R{X ke j2πf k t } = X 0 + N k=1 { X k 2 e j2πf k t + X k 2 e j2πf k t } where X k = Ae jθ k. 2N + 1 complex phasors {(X 0, 0), ( 1 2 X 1, F 1 ), ( 1 2 X 1, F 1), ( 1 2 X 2, F 2 ), ( 1 2 X 2, F 2), } Exercise x a (t) = 10 + 14 cos(200πt π/3) + 8 cos(500πt + π/2)

Application 3: Adding two sinusoids with nearly identical frequencies - Beat notes Adding two sinusoids with frequencies, F 1 and F 2, very close to each other x a (t) = cos(2πf 1 t) + cos(2πf 2 t) where F 1 = F c F and F 2 = F c + F. F c = 1 2 (F 1 + F 2 ) is the center frequency F = 1 2 (F 2 F 1 ) is the deviation frequency In general, F << F c Two-sided spectrum representation, {( 1 2, F 1), ( 1 2, F 1), ( 1 2, F 2), ( 1 2, F 2)}

Adding two sinusoids with nearly identical frequencies - Beat notes (cont ) Rewrite x a (t) as a product of two cosines x a (t) = R{e j2πf1t } + R{e j2πf2t } = R{e j2π(fc F )t + e j2π(fc+f )t } = R{e j2πfct (e j2πf t + e j2πf t )} = R{e j2πfct (2 cos(2πf t))} = 2 cos(2πf t) cos(2πf c t) Adding two sinusoids with nearly identical frequencies = Multiplying two sinusoids with frequencies far apart What is the effect of multiplying a higher-frequency sinusoid (e.g., 2000 Hz) by a lower-frequency sinusoid (e.g., 20 Hz)? The beating phenomenon.

Adding two sinusoids with nearly identical frequencies - Beat notes (cont ) 2 Components of a beat note Amplitude 1 0 1 2 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 2 Waveform of a beat note 1 Amplitude 0 1 2 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 Time t (sec) A demo

Adding two sinusoids with nearly identical frequencies: Beat notes (cont ) 0.5 0 0.5 Beat signal with fc=2000, fdel=2 1 1 0 0.2 0.4 0.6 0.8 1 0.5 0.5 Beat signal with fc=2000, fdel=200 1 0 1 0 0.2 0.4 0.6 0.8 1 Time Time 1400 1200 1000 800 600 400 200 0 0.2 0.4 0.6 0.8 1 Normalized Frequency ( π rad/sample) 1400 1200 1000 800 600 400 200 0 0.2 0.4 0.6 0.8 1 Normalized Frequency ( π rad/sample) Figure : Beat notes and the spectrogram.

Application 4: Multiplying sinusoids - Amplitude modulation Modulation for communication systems: multiplying a low-frequency signal by a high-frequency sinusoid x a (t) = v a (t) cos(2πf c t) v a (t): the modulation signal to be transmitted, must be a sum of sinusoids cos(2πf c t): the carrier signal F c : the carrier frequency F c should be much higher than any frequencies contained in the spectrum of v a (t). Exercise: v a (t) = 5 + 2 cos(40πt), F c = 200 Hz Difference between a beat note and an AM signal?

Multiplying sinusoids - Amplitude modulation (cont ) 8 Waveform of the AM signal 6 4 2 Amplitude 0 2 4 6 8 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2 Time t (sec) A demo

Application 5: Adding cosine waves with harmonically related frequencies - Periodic waveforms Fourier Series Theorem: Any periodic signal can be approximated with a sum of harmonically related sinusoids, although the sum may need an infinite number of terms. x a (t) = A 0 + N k=1 A k cos(2πkf 0 t + θ k ) = X 0 + R{ N k=1 X ke j2πkf0t } F k = kf 0 : the harmonic of F 0 F 0 : the fundamental frequency Estimate interesting waveforms by clever choice of X k = A k e jθ k

Adding cosine waves with harmonically related frequencies - Periodic waveforms (cont ) Fourier analysis: starting from x a (t) and calculate X k. X k can be calculated using the Fourier integral X k = 2 T0 x a (t)e j2πkt/t 0 dt, X 0 = 1 T0 x a (t)dt T 0 T 0 0 0 T 0 : the fundamental period of x a (t) X 0 : the DC component Fourier synthesis: starting from X k and calculate x a (t) Demo: synthetic vowel ( ah ), F 0 = 100 Hz x a (t) = R{X 2 e j2π2f0t + X 4 e j2π4f0t + X 5 e j2π5f0t + X 16 e j2π16f0t + X 17 e j2π17f0t } Exercise: How to approximate a square wave?

Application 6: Frequency modulation - the Chirp signal A chirp signal is a swept-frequency signal whose frequency changes linearly from some low value to a high one. How to generate it? concatenate a large number of short constant-frequency sinusoids, whose frequencies step from low to high time-varying phase ψ(t) as a function of time x a (t) = R{Ae jψ(t) } = A cos(ψ(t)) instantaneous frequency: the derivative (slope) of the phase Ω(t) = d dt ψ(t), F(t) = Ω(t)/(2π) Frequency modulation: frequency variation produced by the time-varying phase. Signals of this class are called FM signals

Frequency modulation - the Chirp signal (cont ) Linear FM signal: chirp signal Exercise: quadratic phase ψ(t) = 2πµt 2 + 2πF 0 t + θ, F(t) = 2µt + F 0 Reverse process: If a certain linear frequency sweep is desired, the actual phase can be obtained from the integral of Ω(t). Exercise: synthesize a frequency sweep from F 1 = 220 Hz to F 2 = 2320 Hz over the time interval t = 0 to t = T 2 = 3 sec.

Frequency modulation - the Chirp signal 1 A linear FM chirp signal with f1=200 Hz, f2=2000 Hz amplitude 0 1 0 0.2 0.4 0.6 0.8 1 time 1.2 1.4 1.6 1.8 2 x 10 4 1 0 1 0 1000 2000 3000 4000 5000 6000 7000 8000 9000 Time 2500 2000 1500 1000 500 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Normalized Frequency ( π rad/sample) A demo

Euler s formula and Inverse Euler s formula Euler s formula Inverse Euler s formula e jθ = cos θ + j sin θ cos θ = ejθ + e jθ 2 sin θ = ejθ e jθ 2j

Basic trignometric identities sin 2 θ + cos 2 θ = 1 cos 2θ = cos 2 θ sin 2 θ sin 2θ = 2 sin θ cos θ sin(α ± β) = sin α cos β ± cos α sin β cos(α ± β) = cos α cos β sin α sin β

Basic properties of the sine and cosine functions Equivalence Periodicity sin θ = cos(θ π/2) or cos θ = sin(θ + π/2) cos(θ + 2kπ) = cos θ, when k is an integer Evenness of cosine cos( θ) = cos θ Oddness of sine sin( θ) = sin θ

Basic properties of the sine and cosine functions (cont ) Zeros of sine sin(πk) = 0, when k is an integer Ones of cosine cos(2πk) = 1, when k is an integer Minus ones of cosine cos[2π(k + 1 )] = 1, when k is an integer 2 Derivatives d sin θ dθ = cos θ, d cos θ dθ = sin θ