Download presentation
Presentation is loading. Please wait.
Published bySybil Beatrice Horton Modified over 9 years ago
2
Department of Electrical and Computer Engineering Brian M. McCarthy Department of Electrical & Computer Engineering Villanova University ECE8231 Digital Signal Processing
3
Digital Signal Processing… Application of DSP - cell phone (2G and after), modem - CD, DVD - computer, simulation… Advantages of using DSP - data compression - undistorted signal transmission - security of data communications - … - representation of signals in discrete-time format - fast & convenient implementation of signal processing systems
5
Digital Signal Processing … How to use a digital signal to represent an analog signal? How many samples are necessary? What happen if there are no enough samples?
6
Digital Signal Processing … If the signal is contaminated, how to remove or mitigate the undesired signal component?
7
Course Arrangement Text Book: A. V. Oppenheim, R. W. Schafer, and J. R. Buck, Discrete-Time Signal Processing, 2nd Ed., Prentice Hall, 1999. Ch. 2 Discrete-Time Signals & Systems Ch. 3 The z-Transform Ch. 4 Sampling of Continuous-Time Signals Ch. 5 Transform Analysis of Linear Time-Invariant Systems Ch. 7 Filter Design Techniques Ch. 8 The Discrete Fourier Transform Ch. 9 Computation of the Discrete Fourier Transform
8
Chapter 2 Discrete-Time Signals & Systems
9
Analog Signal & Digital Signal
10
Discrete-Time Signals : Sequences Discrete-time signals are represented mathematically as sequences of numbers. where n is an integer. In practice, such sequences can often arise from periodic sampling of an analog signal. where T is called the sampling period, and f s =1/T is the sampling rate.
11
Basic Sequences (1) Unit sample sequence (Kronecker Delta function) Unit step sequence Relationships
12
Basic Sequences (2) Sinusoidal sequence or Complex exponential sequence
13
Basic Sequences (3) Exponential sequence When and A are real: A>0, 0< <1 – decrease with n -1< <0 – alternative in sign | grows in magnitude
14
When and A are complex: Let A=|A|e j and =| e j Specifically, when | x[n] becomes a complex exponential sequence. Basic Sequences (4)
15
A periodic sequence is a sequence for which For the underlying sinusoidal sequence, it implies Periodicity of Sinusoidal Sequences and Complex Exponential Sequence Therefore, we need only consider frequencies in an interval of length 2 , such as – < 0 ≤ , or 0 ≤ 0 <2 . which requires 0 N=2 k, for integers N and k. Therefore, the period N is not necessarily equal to 2 / 0. Similar properties hold for complex exponential sequences. A sinusoidal sequence is always periodic (with period 2 ) with respect to the frequency. That is, for any integer r,
16
Sinusoidal Sequences with Different Frequencies
17
Discrete-Time Systems (1) T{} 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].
18
Discrete-Time Systems (2) The ideal delay system Memoryless systems A 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,
19
Discrete-Time Systems (3) Linear systems The class of linear systems is defined by the principle of superposition. If and a is an arbitrary constant, then the system is linear if and only if (additivity property) (homogeneity or scaling property)
20
Discrete-Time Systems (4) 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. T{}
21
Discrete-Time Systems (5) Causality A system is causal if, for every choice of n 0, the output sequence value at the index n=n 0 depends only on the input sequence value for n ≤ n 0. Examples: Forward difference system – not causal y[n] = x[n+1] – x[n] Backward difference system - causal y[n] = x[n] – x[n-1]
22
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 B x such that |x[n]| ≤ B x <∞ for all n. Stability requires that, for every bounded input, there exists a fixed positive finite value B y such that |y[n]| ≤ B y <∞ for all n.
23
Discrete-Time Systems - Examples
25
Linear Time-Invariant Systems A particularly important class of systems consists of those that are linear and time-invariant (LTI). T If T Time-invariant T Linear Impulse response
26
Convolution Sum (1) Convolution Sum Example
27
Convolution Sum (2) Method 1 1.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 time- shifted 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].
28
Method 1 Convolution Sum (3)
29
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 x 1 and x 2, and h[n] has nonzero values between h 1 and h 2, then x[n]*h[n] has nonzero value between x 1 +h 1 and x 2 +h 2.]
30
Method 2 Convolution Sum (5)
31
Properties of LTI Systems (1) The impulse response is a complete characterization of the properties of a specific LTI system. Convolution operation is commutative x[n]*h[n] = h[n]*x[n] Parallel combination of LTI systems x[n]*(h 1 [n]+h 2 [n]) = x[n]*h 1 [n]+x[n]*h 2 [n]) h 1 [n]+ h 2 [n] h1[n]h1[n] h2[n]h2[n]
32
Properties of LTI Systems (2) Cascade connection of LTI systems h[n]= h 1 [n]*h 2 [n] h 1 [n]*h 2 [n] h1[n]h1[n] h2[n]h2[n] h2[n]h2[n] h1[n]h1[n]
33
Properties of LTI Systems (3) Stability LTI systems are stable if and only if the impulse response is absolutely summable, i.e, if Causality LTI systems are causal if and only if h[n]=0 n<0.
34
Impulse Responses of Some LTI Systems Ideal delay (stable, causal when n d ≥ 0) h[n]= [n – n d ] Accumulator (unstable, causal) Forward difference system (stable, noncausal) h[n] = [n+1] – [n] Backward difference system (stable, causal) h[n] = [n] – [n –1]
35
Inverse System If a LTI system has impulse response h[n], then its inverse system, if exists, has impulse response h i [n] defined by the relation h[n]*h i [n] = h i [n]*h[n] = [n]. Example Accumulator system Backward difference system
36
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 a 0 =1, then
37
Linear Constant-Coefficient Difference Equations (2) Recursive filter At least one a k ≠0 (k = 1, …, N). h[n] has infinite support. Also known as infinite impulse response (IIR) filter. Non-recursive filter a 1, …, a N =0 (no feedback). h[n] has finite support. Also known as finite impulse response (FIR) filter. Example - accumulator One sample delay
38
Recursive Computation of Difference Equations (1) Consider a system y[n]=ay[n–1]+x[n] with input x[n]=K [n] where K is an arbitrary number, and the auxiliary condition y[–1]=c. For n > –1, y[0] = ac + K, y[1] = a 2 c + aK, … y[n]=a n+1 c + a n K For n < –1 y[–2]=a –1 c, y[–3]=a –2 c, … y[n]=a n+1 c In general, y[n]=a n+1 c+Ka n u [n].
39
Recursive Computation of Difference Equations (2) In general, it is Noncausal & Nonlinear When K=0, i.e., there is no input, the output y[n] has to be 0 for the system to be causal and linear. However, y[n]=a n+1 c ≠ 0, unless c=0. In general, It is not time-invariant When x 1 [n]=K [n–n 0 ], y 1 [n]=a n+1 c + a n Ku[n–n 0 ] ≠ y[n–n 0 ] When additional initial-rest conditions are satisfied, the system can become LTI and causal. In this example, the initial-rest condition could be c=0.
40
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.
41
Summary Discrete-time signal/system representation Linear time-invariant (LTI) systems Impulse response and convolution sum Stability, causality Linear constant-coefficient difference equations
42
Homework Assignments (1) 2.1, 2.4, 2.15, 2.20, 2.22
43
Analog Signals and Discrete-Time Signals In this example, T=0.025sec, and f s =40Hz.
44
Discrete-Time Systems (4) Example of linear systems (accumulator system) Examples of nonlinear systems
45
Discrete-Time Systems (6) Example of time-invariant system - accumulator
46
Discrete-Time Systems (7) Example of time-variant system - compressor
47
Discrete-Time Systems - Examples Testing for stability or instability y[n]=(x[n]) 2 is stable because for any |x[n]| ≤ B x, |y[n]| =|x[n]| 2 ≤ B x 2. So we can choose B y = B x 2. y[n]=log 10 (|x(n)|) is unstable because when x[n] = 0, y[n]= – ∞. (accumulator) is unstable because when x[n] = u[n], y[n]=(n+1)u[n] which is not bounded.
48
Summary Discrete-time signal/system representation Linear time-invariant (LTI) systems Impulse response and convolution sum Stability, causality Linear constant-coefficient difference equations Frequency-domain representation of signals/systems
49
Frequency-Domain Representation of Discrete-Time Signals and Systems (1) Consider the cases that the input signals are sinusoidal or complex exponential sequences. Complex exponential sequences are eigenfunctions of LTI systems and the response to a sinusoidal input is sinusoidal with the same frequency as the input and with amplitude and phase determined by the system. Let x[n]=e j n for – ∞ < n < ∞, the corresponding output of an LTI system with impulse response h[n] is
50
Frequency-Domain Representation of Discrete-Time Signals and Systems (3) Example – ideal delay y[n] = x (n – n d ), h[n] = (n – n d ) If x[n]=e j n, Alternatively,
51
Frequency-Domain Representation of Discrete-Time Signals and Systems (2) The frequency response H(e j ) of discrete-time LTI system is always a periodic function of the frequency variable with period 2 . As will be seen later, a broad class of signals can be represented as a linear combination of complex exponentials in the form The corresponding output of a LTI system is
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.