eee 503 digital signal processing lecture #2 : eee 503 digital signal processing lecture #2 :...

67
EEE 503 Digital Signal Digital Signal Processing Processing Lecture #2 : Lecture #2 : Discrete- Time Signals & Systems Dr. Panuthat Boonpramuk Department of Control System & Instrumentation Engineering KMUTT

Upload: beryl-berry

Post on 17-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

EEE 503EEE 503 Digital Signal Processing Digital Signal Processing

Lecture #2 : Lecture #2 : Discrete-Time Signals & Systems

Dr. Panuthat BoonpramukDepartment of

Control System & Instrumentation Engineering

KMUTT

Page 2: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Analog Signal & Digital Signal

Analog Signalx(t)

Discrete Time Signalx(nT), x(n)

Digital SignalX(n)

Sampling

Quantization

Page 3: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Analog Signal & Digital Signal

Page 4: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Discrete-Time Signals : Sequences

Discrete-time (Digital) signals are represented mathematically as sequences of numbers.

x={x[n]}, −∞ < n < ∞where n is an integer.

In practice, such sequences can often arise from periodic sampling of an analog signal.

x[n] =xa[nT], −∞ < n < ∞

where T is called the sampling period, and fs=1/T is the sampling rate.

Page 5: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Basic Sequences (1)

Page 6: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Basic Sequences (2)

Page 7: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Basic Sequences (3)

Page 8: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Basic Sequences (4)

Page 9: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Periodicity of Sinusoidal Sequences and

Complex Exponential Sequence

Page 10: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Sinusoidal Sequences with Different Frequencies

Page 11: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Discrete-Time Systems (1)

A discrete-time system is defined mathematically as a transformation or operator that maps an input sequence x[n] into a unique output sequence y[n].

Page 12: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

The ideal delay system

Memoryless systemsA system is referred as memoryless system if the output y[n] at every value of n only depends on the input x[n] at the same value of n. For example,

Discrete-Time Systems (2)

Page 13: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Linear systems The class of linear systems is defined by the

principle of superposition. If

Discrete-Time Systems (3)

and a is an arbitrary constant, then the system is linear if and only if

(additivity property)

(homogeneity or scaling property)

Page 14: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Time-invariant systems A time-invariant system is a system for which

a time shift or delay of the input sequence causes a corresponding in the output sequence.

Discrete-Time Systems (4)

Page 15: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

CausalityA system is causal if, for every choice of n0, the output sequence value at the index n=n0 depends only on the input sequence value for n ≤ n0.

Discrete-Time Systems (5)

ExamplesForward difference system – not causal

y[n] = x[n+1] - x[n] Backward difference system - causal

y[n] = x[n] - x[n-1]

Page 16: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Discrete-Time Systems (6) Stability A system is in the bounded input, bounded

output (BIBO) sense if and only if every bounded input sequence produces a bounded output sequence. The input x[n] is bounded if there exists a fixed positive finite value Bx such that

|x[n]| ≤ Bx <∞ for all n.Stability requires that, for every bounded input, there exists a fixed positive finite value By such that

|y[n]| ≤ By <∞ for all n.

Page 17: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Linear Time-Invariant Systems

A particularly important class of systems consists of those that are linear and time-invariant (LTI).

If

Time-invariant

Linear

Impulse response

Page 18: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Convolution Sum (1) Convolution Sum

Example

Page 19: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Convolution Sum (2)

Method 11. For each k for which x[k] has a nonzero value, evaluate x[k] h[n–k] corresponding to the specific x[k]. It equals to the waveform of h[n] multiplied by x[k] and timeshifted by k (shift toward right if k>0, and shift toward left if k<0).

2. Add the resultant sequence values for all k’s to obtain the convolution sum corresponding to the full input sequence x[n].

Page 20: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Convolution Sum (3) Method 1Method 1

Page 21: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Convolution Sum (4) Method 2

1. For each value n (see *), producing h[n – k]. This is the mirror image of h[k] about the vertical axis shifted by n (shift toward right if n>0, and shift toward left if n<0).2. Multiply this shifted sequence h[n–k] and the input sequence x[k], and add the resultant sequence values to obtain the value of the convolution at n.3. Repeat steps 1-2 for different value of n.

[* Note the range of n: if x[n] has its nonzero value between x1 and x2, and h[n] has nonzero values between h1 and h2, then x[n]*h[n] has nonzero value between x1+h1 and x2 +h2.]

Page 22: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Convolution Sum (5) Method 2Method 2

Page 23: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Properties of LTI Systems (1)

The impulse response is a complete characterization of the properties of a specific LTI system.

Convolution operation is commutativex[n]*h[n] = h[n]*x[n]

Parallel combination of LTI systemsx[n]*(h1[n]+h2[n]) = x[n]*h1[n]

+x[n]*h2[n])

Page 24: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Properties of LTI Systems (2)

Cascade connection of LTI systemsh[n]= h1[n]*h2[n]

Page 25: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Properties of LTI Systems (3)

StabilityLTI systems are stable if and only if the impulse response is absolutely summable, i.e, if

CausalityLTI systems are causal if and only if

Page 26: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Impulse Responses of Some LTI Systems

Ideal delay (stable, causal when nd ≥ 0)

Accumulator (unstable, causal)

Forward difference system (stable, noncausal)

Backward difference system (stable, causal)

Page 27: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Inverse SystemIf a LTI system has impulse response h[n], then its inverse system, if exists, has impulse response hi[n] defined by the relation

Example

Page 28: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Linear Constant-Coefficient Difference Equations (1)

An important subclass of LTI systems consists of those systems for which the input x[n] and the output y[n] satisfy an Nth-order linear constant-coefficient difference equation of the form

If a0=1, then present & past inputs

present output

pastoutputs

present & past inputs

Page 29: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Linear Constant-Coefficient Difference Equations (2)

Recursive filterAt least one ak≠0 (k = 1, …, N). h[n] has infinite support. Also known as infinite impulse response (IIR) filter.

Non-recursive filtera1, …, aN =0 (no feedback). h[n] has finite support. Also known as finite impulse response (FIR) filter.

Example - accumulator

Page 30: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Recursive Computation of Difference Equations (1)

Page 31: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Recursive Computation of Difference Equations (2)

Page 32: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Recursive Computation of Difference Equations (3)

For a system defined by an Nth-order linear constant-coefficient difference equation, the output for a given input is not uniquely specified. Auxiliary information or conditions are required.

If the auxiliary information is in the form of N sequential values of the output, then the output of the system is uniquely specified.

Linearity, time-invariance, and causality of the system depend on the auxiliary conditions. If an additional condition is that the system is initially at rest, then the system will be LTI and causal.

Page 33: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (1)

Page 34: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (2)Eigenfunction and eigenvalue

A signal for which the system output is just a (possibly complex) constant times the input is referred to as an eigenfunction of the system, and the constant factor is referred to as the eigenvalue.

Consider the cases that the input signals are complex exponential sequences. Complex exponential sequences are eigenfunctions of LTI systems. The response to a complex exponential sequence input is complex exponential sequence with the same frequency as the input and with amplitude and phase determined by the system.

Page 35: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (3)

Page 36: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (4)

Page 37: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (5)

Page 38: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Frequency-Domain Representation of

Discrete-Time Signals and Systems (6)

Page 39: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation Fourier transform

Inverse Fourier transform

X(ejω) is in general a complex function of ω.

Page 40: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (1) Fourier transform (real and imaginary parts)

Page 41: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (2)

Fourier transform (magnitude and phase)

Page 42: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (3) Fourier transform using normalized frequency (fs=22 kHz)

Page 43: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (4)

Fourier transform using actual frequency (fs=22 kHz)

Page 44: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (5)

Fourier transform using normalized frequency

Page 45: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department

Fourier Representation – Examples (6)

Fourier transform using actual frequency

Page 46: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 47: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 48: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 49: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 50: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 51: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 52: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 53: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 54: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 55: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 56: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 57: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 58: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 59: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 60: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 61: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 62: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 63: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 64: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 65: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 66: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department
Page 67: EEE 503 Digital Signal Processing Lecture #2 : EEE 503 Digital Signal Processing Lecture #2 : Discrete-Time Signals & Systems Dr. Panuthat Boonpramuk Department