Introduction to DSP Time Domain Representation of Signals and Systems

Similar documents
E : Lecture 1 Introduction

EE482: Digital Signal Processing Applications

Digital Signal Processing Lecture 4

Lecture 11 FIR Filters

Analog vs. discrete signals

Digital Signal Processing Lecture 5

Lecture 19 IIR Filters

Lecture 7 - IIR Filters

ECE 308 Discrete-Time Signals and Systems

Chap 2. Discrete-Time Signals and Systems

Digital Signal Processing Lecture 3 - Discrete-Time Systems

Universiti Malaysia Perlis EKT430: DIGITAL SIGNAL PROCESSING LAB ASSIGNMENT 3: DISCRETE TIME SYSTEM IN TIME DOMAIN


ELEG 305: Digital Signal Processing

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

Discrete-Time David Johns and Ken Martin University of Toronto

2. CONVOLUTION. Convolution sum. Response of d.t. LTI systems at a certain input signal

EEL3135: Homework #4

Discrete-time signals and systems

UNIT 1. SIGNALS AND SYSTEM

Discrete-Time Systems

DIGITAL SIGNAL PROCESSING LECTURE 1

NAME: 13 February 2013 EE301 Signals and Systems Exam 1 Cover Sheet

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

EE538 Final Exam Fall :20 pm -5:20 pm PHYS 223 Dec. 17, Cover Sheet

Review of Discrete-Time System

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

A.1 THE SAMPLED TIME DOMAIN AND THE Z TRANSFORM. 0 δ(t)dt = 1, (A.1) δ(t)dt =

EECE 301 Signals & Systems Prof. Mark Fowler

Cosc 3451 Signals and Systems. What is a system? Systems Terminology and Properties of Systems

LECTURE NOTES DIGITAL SIGNAL PROCESSING III B.TECH II SEMESTER (JNTUK R 13)

Convolution. Define a mathematical operation on discrete-time signals called convolution, represented by *. Given two discrete-time signals x 1, x 2,

CMPT 889: Lecture 5 Filters

Digital Filters. Linearity and Time Invariance. Linear Time-Invariant (LTI) Filters: CMPT 889: Lecture 5 Filters

Digital Signal Processing

Chapter 3 Convolution Representation

Linear Systems. ! Textbook: Strum, Contemporary Linear Systems using MATLAB.

DSP Laboratory (EELE 4110) Lab#3 Discrete Time Signals

Digital Signal Processing I Final Exam Fall 2008 ECE Dec Cover Sheet

Grades will be determined by the correctness of your answers (explanations are not required).

ECE-314 Fall 2012 Review Questions for Midterm Examination II

Shift Property of z-transform. Lecture 16. More z-transform (Lathi 5.2, ) More Properties of z-transform. Convolution property of z-transform

APPLIED SIGNAL PROCESSING

The Z transform (2) 1

Digital Filters Ying Sun

Ch. 7: Z-transform Reading

Examples. 2-input, 1-output discrete-time systems: 1-input, 1-output discrete-time systems:

Discrete Time Signals and Systems Time-frequency Analysis. Gloria Menegaz

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Digital Signal Processing, Homework 1, Spring 2013, Prof. C.D. Chung

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Digital Signal Processing:

ELEG 305: Digital Signal Processing

The Discrete-Time Fourier

Rui Wang, Assistant professor Dept. of Information and Communication Tongji University.

Lecture 2 Discrete-Time LTI Systems: Introduction

Discrete Time Systems

Chapter 1 Fundamental Concepts

EE538 Final Exam Fall 2007 Mon, Dec 10, 8-10 am RHPH 127 Dec. 10, Cover Sheet

COMP Signals and Systems. Dr Chris Bleakley. UCD School of Computer Science and Informatics.

EE 521: Instrumentation and Measurements

ECE503: Digital Signal Processing Lecture 6

Department of Electrical and Computer Engineering Digital Speech Processing Homework No. 6 Solutions

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

Discrete-Time Fourier Transform (DTFT)

Lecture 7 Discrete Systems

ECE538 Final Exam Fall 2017 Digital Signal Processing I 14 December Cover Sheet

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

George Mason University ECE 201: Introduction to Signal Analysis Spring 2017

Grades will be determined by the correctness of your answers (explanations are not required).

University Question Paper Solution

Digital Signal Processing Module 1 Analysis of Discrete time Linear Time - Invariant Systems

Review of Frequency Domain Fourier Series: Continuous periodic frequency components

Solution 10 July 2015 ECE301 Signals and Systems: Midterm. Cover Sheet

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

Problem Value Score No/Wrong Rec

Problem Value

Discrete-time Signals and Systems in

Lecture 14: Windowing

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Responses of Digital Filters Chapter Intended Learning Outcomes:

VU Signal and Image Processing

ECE503: Digital Signal Processing Lecture 5

LAB 6: FIR Filter Design Summer 2011

ELEG 5173L Digital Signal Processing Ch. 5 Digital Filters

Lecture 27 Frequency Response 2

Lecture 18: Stability

Discrete-Time Signals & Systems

Like bilateral Laplace transforms, ROC must be used to determine a unique inverse z-transform.

Chapter 4 Circuit Theorems: Linearity & Superposition

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Lecture 5 Frequency Response of FIR Systems (III)

Linear Convolution Using FFT

Very useful for designing and analyzing signal processing systems

New Mexico State University Klipsch School of Electrical Engineering. EE312 - Signals and Systems I Spring 2018 Exam #1

Module 1: Signals & System

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Discrete-Time Signals and Systems. The z-transform and Its Application. The Direct z-transform. Region of Convergence. Reference: Sections

Lecture 2 OKAN UNIVERSITY FACULTY OF ENGINEERING AND ARCHITECTURE

Computer Engineering 4TL4: Digital Signal Processing

Transcription:

Introduction to DSP Time Domain Representation of Signals and Systems Dr. Waleed Al-Hanafy waleed alhanafy@yahoo.com Faculty of Electronic Engineering, Menoufia Univ., Egypt Digital Signal Processing (ECE407) Lecture no. 1 July 6, 2011

Overview 1 Digital Signals and Systems Elementary Digital Signals Block Diagram Representation of Digital Systems 2 System Concepts Linear Time-Invariant Systems (LTI) Causality 3 Conclusions References: [1] S. M. Kuo, B. H. Lee, and W. Tian, Real-Time Digital Signal Processing Implementations and Applications, 2nd ed. John Wiley & Sons Ltd, 2006. [2] S. Haykin, Adaptive Filter Theory, 3rd ed. Prentice Hall, 1996.

Elementary Digital Signals Signals can be classified as deterministic or random. Deterministic signals are used for test purposes and can be described mathematically while random signals are information-bearing signals such as speech. A digital signal is a sequence of numbers x(n), < n <, where n is the time index. Examples: The unit-impulse sequence, with only one nonzero value at n = 0, is defined as: { 1, n = 0 δ(n) = 0, n 0, (1) where δ(n) is also called the Kronecker delta function. This unit-impulse sequence is very useful for testing and analysing the characteristics of DSP systems. The unit-step sequence is defined as: { 1, n 0 u(n) = 0, n < 0. (2)

Elementary Digital Signals Sinusoidal signals (sinusoids, tones, or sinewaves) can be expressed in a simple mathematical formula. An analog sinewave can be expressed as: x(t) = A sin(ωt + φ) = A sin(2πft + φ), (3) where A is the amplitude of the sinewave. Ω = 2πf is the frequency in radians per second (rad/s), f is the frequency in cycles per second (Hz), and φ is the phase in radians. The digital signal corresponding to the analog sinewave defined in (3) can be expressed as: x(n) = A sin(ωnt + φ) = A sin(2πfnt + φ), (4) where T is the sampling period in seconds. This digital sequence can also be expressed as x(n) = A sin(ωn + φ) = A sin(πfn + φ), (5)

Elementary Digital Signals where ω = ΩT = 2πfT = 2πf f s (6) is the digital frequency in radians per sample and F = ω π = f (f s/2) (7) is the normalised digital frequency in cycles per sample. The units, relationships, and ranges of these analog and digital frequency variables are summarised in Table below

Elementary Digital Signals A MATLAB Example Example: Generate 32 samples of a sinewave with A = 2, f = 1000 Hz, and f s = 8 khz using MATLAB program. Solution: Since F = f (f s = 0.25, we have ω = πf = 0.25 π. From (5), we /2) can express the generated sinewave as x(n) = 2 sin(ωn), n = 0, 1,, 31. The generated sinewave samples are plotted below n = [0:31]; omega = 0.25*pi; xn = 2*sin(omega*n); plot(n, xn, -o ); xlabel( Time index, n ); ylabel( Amplitude ); axis([0 31-2 2]); % Time index n % Digital frequency % Sinewave generation % Samples are marked by o

Elementary Digital Signals MATLAB Example (cont d) 2 1.5 1 0.5 Amplitude 0 0.5 1 1.5 2 0 5 10 15 20 25 30 Time index, n

Block Diagram Representation of Digital Systems Block Diagram Representation of Digital Systems Block diagram of an adder: Block diagram of a multiplier: y(n) = x 1(n) + x 2(n) Block diagram of a unit delay: y(n) = αx(n) y(n) = x(n 1)

Block Diagram Representation of Digital Systems Implementation Example Example: Consider a simple DSP system described by the difference equation y(n) = αx(n) + αx(n 1) (8) Solution: y(n) can be computed using two multiplications and one addition. A simple algebraic simplification of (8) may be used to reduce computational requirements to one multiplication and one addition as: Both schemes are represented below y(n) = α[x(n) + x(n 1)], (9)

Linear Time-Invariant Systems (LTI) Linear Time-Invariant Systems (LTI) If the input signal to an LTI system is the unit-impulse sequence δ(n) defined in (1), then the output signal is called the impulse response of the system, h(n). Example: Consider a digital system with the I/O equation y(n) = b 0x(n) + b 1x(n 1) + b 2x(n 2) (10) Applying the unit-impulse sequence δ(n) to the input of the system, the outputs are the impulse response coefficients and can be computed as follows: h(0) = y(0) = b 0 1 + b 1 0 + b 2 0 = b 0 h(1) = y(1) = b 0 0 + b 1 1 + b 2 0 = b 1 h(2) = y(2) = b 0 0 + b 1 0 + b 2 1 = b 2 h(3) = y(3) = b 0 0 + b 1 0 + b 2 0 = 0. Therefore, the impulse response of the system defined in (10) is {b 0, b 1, b 2, 0, 0, }.

Linear Time-Invariant Systems (LTI) LTI (cont d) The I/O equation given in (10) can be generalised with L coefficients, expressed as: y(n) = b 0x(n) + b 1x(n 1) + + b L 1 x(n L + 1) = L 1 b l x(n l). (11) l=0 Substituting x(n) = δ(n) into (11), the output is the impulse response expressed as: h(n) = = L 1 b l δ(n l) l=0 { b n, n = 0, 1,, L 1 0, otherwise Therefore, the length of the impulse response is L for the system defined in (11). Such a system is called a finite impulse response (FIR) filter.

Linear Time-Invariant Systems (LTI) LTI (cont d) The coefficients, b l, l = 0, 1,, L 1, are called filter coefficients (also called as weights or taps). For FIR filters, the filter coefficients are identical to the impulse response coefficients. The signal-flow diagram of the system described by the I/O equation in (11) is illustrated below. The string of z 1 units is called a tapped-delay line. The parameter, L, is the length of the FIR filter. Note that the order of filter is L 1 for the FIR filter with length L since they are L 1 zeros.

Causality A Causal System The output of an LTI system in the time-domain as illustrated below can be expressed as y(n) = x(n) h(n) = h(n) x(n) = x(l)h(n l) = h(l)x(n l), (12) l= l= where denotes the linear convolution. A digital system is called a causal system if and only if h(n) = 0, n < 0.

Causality Causality (cont d) A causal system does not provide a zero-state response prior to input application; that is, the output depends only on the present and previous samples of the input. This is an obvious property for real-time DSP systems since we simply do not have future data. For a causal system, the limits on the summation of (12) can be modified to reflect this restriction as y(n) = h(l)x(n l) l=0

Causality IIR filter Exercise (IIR system): Consider a digital system with the I/O equation y(n) = bx(n) ay(n 1), assuming that the system is causal, i.e., y(n) = 0 for n < 0 and let x(n) = δ(n), prove that: y(n) = ( 1) n a n b, n = 0, 1, 2,,. This system has infinite impulse response h(n) if the coefficients a and b are nonzero. A digital filter can be classified as either an FIR filter or an infinite impulse response (IIR) filter, depending on whether or not the impulse response of the filter is of finite or infinite duration. The I/O equation of the IIR system can be generalised as: L 1 M y(n) = b l x(n l) + a my(n m) (13) l=0 This IIR system is represented by a set of feedforward coefficients {b l, l = 0, 1,, L 1} and a set of feedback coefficients {a m, m = 1, 2,, M}. Since the outputs are fed back and combined with the weighted inputs, IIR systems are feedback systems. Note that when all a m are zero, (13) is identical to (11). m=1

Causality IIR (cont d) Therefore, an FIR filter is a special case of an IIR filter without feedback coefficients. Exercise (IIR system): Using MATLAB to implement both FIR and IIR filters. Answer: For FIR, yn=filter(b, 1, xn), and for IIR, yn=filter(b, a, xn)

Conclusion Concluding remarks Digital signals are firstly introduced with the main deterministic examples. Digital systems are then modelled with the emphasis of LTI system. System causality is defined for such systems. Examples of both finite and infinite impulse response systems or filters (FIR & IIR) are studied. Graphical representations of these systems are illustrated. MATLAB examples of both digital signals and systems are given..