Professional Documents
Culture Documents
Reference: Sections 1.1 - 1.4 of John G. Proakis and Dimitris G. Manolakis, Digital Signal Processing: Principles, Algorithms, and Applications, 4th edition, 2007.
1 / 34
2 / 34
Chapter 1: Introduction
Chapter 1: Introduction
x(t)
2
x(t)
2
System:
a physical device that performs an operation on a signal Examples: analog amplier, noise canceler, communication channel, transistor, . . . (t ) dx (t ) y (t ) = 4x (t ), dy dt + 3y (t ) = dt + 6x (t ), 1 y (n) 2 y (n 2) = 3x (n) + x (n 2)
continuous-time
-4 -3 -2 -1 1 2 3 4 -2
1 0.5
-4 -3 -2 -1 0.5 1 1.5 2 2.5 3 4
-2
x[n]
discrete-time
-3 -2 -1 0
x[n]
2
1
-3 -2 -1 0 1 2 3
3 / 34
4 / 34
Chapter 1: Introduction
Chapter 1: Introduction
analog system = Analog signals are fundamentally signicant because we must interface with the real world which is analog by nature. Digital signals are important because they facilitate the use of digital signal processing (DSP) systems, which have practical and performance advantages for several applications. analog signal input + analog signal output
advantages: easy to interface to real world, do not need A/D or D/A converters, speed not dependent on clock rate
5 / 34
6 / 34
Chapter 1: Introduction
Chapter 1: Introduction
xa (t ) = A cos(t + ) = A cos(2 Ft + ), t R analog signal, A xa (t ) A and < t < A = amplitude = frequency in rad/s F = frequency in Hz (or cycles/s); note: = 2 F = phase in rad
Random signal:
any signal that lacks a unique and explicit mathematical expression and thus evolves in time in an unpredictable manner it may not be possible to accurately describe the signal the deterministic model of the signal may be too complicated to be of use.
7 / 34
8 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Continuous-time Sinusoids
xa (t ) = A cos(t + ) = A cos(2 Ft + ), t R 1. For F R, xa (t ) is periodic
i.e., there exists Tp R+ such that xa (t ) = xa (t + Tp )
Discrete-time Sinusoids
x (n) = A cos( n + ) = A cos(2 fn + ), n Z discrete-time signal (not digital), A xa (t ) A and n Z A = amplitude = frequency in rad/sample f = frequency in cycles/sample; note: = 2 f = phase in rad
9 / 34
10 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Discrete-time Sinusoids
Discrete-time Sinusoids
x (n) = A cos( n + ) = A cos(2 fn + ), n Z
x (n) = A cos( n + ) = A cos(2 fn + ), n Z 1. x (n) is periodic only if its frequency f is a rational number
1 Note: rational number is of the form k k2 for k1 , k2 Z periodic discrete-time sinusoids: x (n) = 2 cos( 4 7 n), x (n) = sin( 5 n + 3) aperiodic discrete-time sinusoids: x (n) = 2 cos( 4 7 n), x (n) = sin( 2 n + 3)
3. lowest rate of oscillation is achieved for = 2k and highest rate of oscillation is achieved for = (2k + 1) , for k Z
subsequently, this corresponds to lowest rate for f = k (integer) +1 and highest rate for f = 2k2 (half integer), for k Z; see Figure 1.3.4 of text .
11 / 34
12 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Complex Exponentials
Complex Exponentials
where j
13 / 34
14 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Periodicity: Continuous-time
Periodicity: Discrete-time
x (t ) = j (2 Ft +) Ae = j 2 Ft j e e = 1 = j 2 k e =1 =
x (n ) = j (2 fn+) Ae = j 2 fn j e e = 1 = j 2 k e =1 = f N0
x (n + N ), N Z+ A e j (2f (n+N )+) e j 2fn e j 2fN e j e j 2fN e j 2fN , k Z k = k Z N k k = , min |k | Z such that Z+ f f
15 / 34
16 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Uniqueness: Continuous-time
Uniqueness: Discrete-time
Let f1 = f0 + k where k Z,
x1 ( n ) = = = =
17 / 34
18 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Uniqueness: Discrete-time
Therefore, dst-time sinusoids are unique for f [0, 1). For any sinusoid with f1 [0, 1), f0 [0, 1) such that x1 (n) = A e j (2f1 n+) = A e j (2f0 n+) = x0 (n). Example: A dst-time sinusoid with frequency f1 = 4.56 is the same as a dst-time sinusoid with frequency f0 = 4.56 4 = 0.56. Example: A dst-time sinusoid with frequency f1 = 7 is the 8 same as a dst-time sinusoid with frequency f0 = 7 + 1= 1 . 8 8
Figure 1.4.5 of text
19 / 34
20 / 34
Chapter 1: Introduction
Chapter 1: Introduction
1 1 = cyclic frequency kF0 period: Tk = any integer multiple of T0 1 common period: T = k T0,k = F0 fund. period: T0,k =
C8
C1
C2
C3
C4
C5
C6
C7
21 / 34
22 / 34
Chapter 1: Introduction
Chapter 1: Introduction
where N Z:
Harmonically related sk (n) = e j 2kf0 n = e j 2kn/N , (dts-time) k = 0, 1, 2, . . . There are only N distinct dst-time harmonics: sk (n), k = 0, 1, 2, . . . , N 1.
sk +N (n) = = = =
23 / 34
24 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Analog-to-Digital Conversion
A/D converter xa(t) x(n) Sampler Quantizer Discrete-time signal xq(n) 01011... Coder Digital signal
Analog-to-Digital Conversion
A/D converter xa(t) x(n) Sampler Quantizer Discrete-time signal xq(n) 01011... Coder Digital signal
Analog signal
Quantized signal
Analog signal
Quantized signal
Sampling: conversion from cts-time to dst-time by taking samples at discrete time instants E.g., uniform sampling: x (n) = xa (nT ) where T is the sampling period and n Z
25 / 34
26 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Analog-to-Digital Conversion
A/D converter xa(t) x(n) Sampler Quantizer Discrete-time signal xq(n) 01011... Coder Digital signal
Analog-to-Digital Conversion
A/D converter xa(t) x(n) Sampler Quantizer Discrete-time signal xq(n) 01011... Coder Digital signal
Analog signal
Quantized signal
Analog signal
Quantized signal
Quantization: conversion from dst-time cts-valued signal to a dst-time dst-valued signal quantization error: eq (n) = xq (n) x (n) for all n Z
Coding: representation of each dst-value xq (n) by a b -bit binary sequence e.g., if for any n, xq (n) {0, 1, . . . , 6, 7}, then the coder may use the following mapping to code the quantized amplitude:
27 / 34
28 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Analog-to-Digital Conversion
A/D converter xa(t) x(n) Sampler Quantizer Discrete-time signal xq(n) 01011... Coder Digital signal
Sampling Theorem
If the highest frequency contained in an analog signal xa (t ) is Fmax = B and the signal is sampled at a rate Fs > 2Fmax = 2B then xa (t ) can be exactly recovered from its sample values using the interpolation function g (t ) = sin(2 Bt ) 2 Bt
Analog signal
Quantized signal
Example coder: 0 1 2 3
Dr. Deepa Kundur (University of Toronto)
4 5 6 7
30 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Sampling Theorem
Sampling Period = T = 1 1 = Fs Sampling Frequency
Digital-to-Analog Conversion
original/bandlimited interpolated signal
x(n)
1
xa (t ) =
n=
xa (nT )g (t nT )
xa (t ) =
n=
x (n) g (t nT )
where xa (nT ) = x (n); called bandlimited interpolation. See Figure 1.4.6 of text .
Dr. Deepa Kundur (University of Toronto) Introduction to Discrete-Time Systems 31 / 34
Common interpolation approaches: bandlimited interpolation, zero-order hold, linear interpolation, higher-order interpolation techniques, e.g., using splines In practice, cheap interpolation along with a smoothing lter is employed.
Dr. Deepa Kundur (University of Toronto) Introduction to Discrete-Time Systems 32 / 34
Chapter 1: Introduction
Chapter 1: Introduction
Digital-to-Analog Conversion
original/bandlimited interpolated signal
Digital-to-Analog Conversion
original/bandlimited interpolated signal
linear interpolation
T 2T 3T
zero-order hold
-3T -2T -T
2T
3T
-3T -2T -T
Common interpolation approaches: bandlimited interpolation, zero-order hold, linear interpolation, higher-order interpolation techniques, e.g., using splines In practice, cheap interpolation along with a smoothing lter is employed.
Dr. Deepa Kundur (University of Toronto) Introduction to Discrete-Time Systems 33 / 34
Common interpolation approaches: bandlimited interpolation, zero-order hold, linear interpolation, higher-order interpolation techniques, e.g., using splines In practice, cheap interpolation along with a smoothing lter is employed.
Dr. Deepa Kundur (University of Toronto) Introduction to Discrete-Time Systems 34 / 34