Professional Documents
Culture Documents
November 8, 2011
1
Mid-term Examination #3
Wednesday, November 16, 7:30-9:30pm, No recitations on the day of the exam. Coverage: Lectures 118 Recitations 116 Homeworks 110
Homework 10 will not be collected or graded. Solutions will be posted. Closed book: 3 pages of notes (8 1 2 11 inches; front and back). No calculators, computers, cell phones, music players, or other aids. Designed as 1-hour exam; two hours to complete. Review session Monday at 3pm and at open oce hours. Prior term midterm exams have been posted on the 6.003 website. Conict? Contact before Friday, Nov. 11, 5pm.
2
Such problems are increasingly solved with DT signal processing: MP3 JPEG MPEG
3
driver
reex port
driver
passive radiator
Magnitude (dB)
100
90
80
70
10
10
10
10
10
Frequency (Hz)
Small speakers (4 inch): eight facing wall, one facing listener. Electronic equalizer compensated for limited frequency response.
6
Signal Processing
Modern audio systems process sounds digitally.
x(t)
A/D
x[n]
DT lter
y [n]
D/A
y (t)
Signal Processing
Modern audio systems process sounds digitally.
AVSS(REF) VREFM VREFP VRFILT AVDD DVDD AINRP AINRM RINA RINB Voltage Reference Analog Supplies Digital Supplies DVSS AVSS
AINRP
AINRM Output AINLP AINLM LINA LINB AINLP 24Bit Stereo ADC Format Control Logic SDOUT0
AINLM
ALLPASS
L+R SDOUT2
I2C Control
CS1
SDA SCL
SDOUT1
Control
SDATA Control
OSC/CLK Select
PLL
LRCLK/O
SCLK/O
XTALI/ MCLK
SDIN1
SDIN2
IFM/S
CAP_PLL
CLKSEL
MCLKO
XTALO
h[k ]z nk = z n
0 k=
h[k ]z k = H (z ) z n .
zn
h[n]
H (z ) z n
est
h(t)
H (s) est
10
11
DT Vector Diagrams
Factor the numerator and denominator of the system function to make poles and zeros explicit. H (z0 ) = K (z0 q0 )(z0 q1 )(z0 q2 ) (z0 p0 )(z0 p1 )(z0 p2 )
z0 z0 q0 z0 q q0 0
z -plane
Each factor in the numerator/denominator corresponds to a vector from a zero/pole (here q0 ) to z0 , the point of interest in the z -plane. Vector diagrams for DT are similar to those for CT.
12
DT Vector Diagrams
Value of H (z ) at z = z0 can be determined by combining the contributions of the vectors associated with each of the poles and zeros. H (z0 ) = K (z0 q0 )(z0 q1 )(z0 q2 ) (z0 p0 )(z0 p1 )(z0 p2 )
The magnitude is determined by the product of the magnitudes. |H (z0 )| = |K | |(z0 q0 )||(z0 q1 )||(z0 q2 )| |(z0 p0 )||(z0 p1 )||(z0 p2 )|
The angle is determined by the sum of the angles. H (z0 ) = K + (z0 q0 ) + (z0 q1 ) + (z0 p0 ) (z0 p1 )
13
DT Frequency Response
Response to eternal sinusoids. Let x[n] = cos 0 n (for all time): x[n] = 1 j 0 n 1 n n e + ej 0 n = z + z1 2 2 0
where z0 = e j 0 and z1 = ej 0 . The response to a sum is the sum of the responses: 1 n n y [n] = H (z0 ) z0 + H (z1 ) z1 2 1 = H (e j 0 ) e j 0 n + H (ej 0 ) ej 0 n 2
14
Conjugate Symmetry
For physical systems, the complex conjugate of H (e j ) is H (ej ). The system function is the Z transform of the unit-sample response: 0 H (z ) = h[n]z n
n=
h[n]ej n h[n]e j n H (e j )
15
DT Frequency Response
Response to eternal sinusoids. Let x[n] = cos 0 n (for all time), which can be written as 1 j 0 n + ej 0 n . x[n] = e 2 Then y [n] = 1 H (e j 0 )e j 0 n + H (ej 0 )ej 0 n 2 = Re H (e j 0 )e j 0 n = Re |H (e j 0 )|e j H (e
j 0 ) j n 0
= |H (e j 0 )|Re e j 0 n+j H (e
j 0 )
y [n] = H (e j 0 ) cos 0 n + H (e j 0 )
16
DT Frequency Response
The magnitude and phase of the response of a system to an eternal cosine signal is the magnitude and phase of the system function evaluated on the unit circle.
cos(n)
H (z )
|H (e j )| cos n + H (e j )
H (e j ) = H (z )|z =e j
17
1 z -plane 0 H (e j ) /2
/2
18
1 z -plane 0 H (e j ) /2
/2
19
1 z -plane 0 H (e j ) /2
/2
20
1 z -plane 0 H (e j ) /2
/2
21
1 z -plane 0 H (e j ) /2
/2
22
1 z -plane 0 H (e j ) /2
/2
23
1 z -plane 0 H (e j ) /2
/2
24
1 z -plane 0 H (e j ) /2
/2
25
1 z -plane 0 H (e j ) /2
/2
26
1 z -plane 0 H (e j ) /2
/2
27
|H (j )|
H (e j )
5
28
DT Periodicity
DT frequency responses are periodic functions of , with period 2 . If 2 = 1 + 2k where k is an integer then H (e j 2 ) = H (e j (1 +2k) ) = H (e j 1 e j 2k ) = H (e j 1 ) The periodicity of H (e j ) results because H (e j ) is a function of e j , which is itself periodic in . Thus DT complex exponentials have many aliases. e j 2 = e j (1 +2k) = e j 1 e j 2k = e j 1 Because of this aliasing, there is a highest DT frequency: = .
29
|H (j )|
H (e j )
5
30
Check Yourself
Consider 3 CT signals: x1 (t) = cos(3000t) ; x2 (t) = cos(4000t) ; x3 (t) = cos(5000t)
Each of these is sampled so that x1 [n] = x1 (nT ) where T = 0.001. Which list goes from lowest to highest DT frequency? 0. x1 [n] x2 [n] x3 [n] 2. x2 [n] x1 [n] x3 [n] 4. x3 [n] x1 [n] x2 [n] 1. x1 [n] x3 [n] x2 [n] 3. x2 [n] x3 [n] x1 [n] 5. x3 [n] x2 [n] x1 [n] ; x2 [n] = x2 (nT ) ; x3 [n] = x3 (nT )
31
Check Yourself
The discrete signals are x1 [n] = cos[3n] x2 [n] = cos[4n] x3 [n] = cos[5n] and the corresponding discrete frequencies are = 3, 4 and 5, represented below with marking e j and o marking ej ).
5 4 3 3 4 5
32
Check Yourself
= 0.25
x[n] = cos(0.25n)
33
Check Yourself
= 0.5
x[n] = cos(0.5n)
34
Check Yourself
=1
x[n] = cos(n)
35
Check Yourself
=2
x[n] = cos(2n)
36
Check Yourself
=3
x[n] = cos(3n)
37
Check Yourself
=4
38
Check Yourself
=5
39
Check Yourself
=6
40
Check Yourself
The discrete signals are x1 [n] = cos[3n] x2 [n] = cos[4n] x3 [n] = cos[5n] and the corresponding discrete frequencies are = 3, 4 and 5, represented below with marking e j and o marking ej ).
5 4 3 3 4 5
41
Check Yourself
Consider 3 CT signals: x1 (t) = cos(3000t) ; x2 (t) = cos(4000t) ; x3 (t) = cos(5000t)
Each of these is sampled so that x1 [n] = x1 (nT ) where T = 0.001. Which list goes from lowest to highest DT frequency? 0. x1 [n] x2 [n] x3 [n] 2. x2 [n] x1 [n] x3 [n] 4. x3 [n] x1 [n] x2 [n] 1. x1 [n] x3 [n] x2 [n] 3. x2 [n] x3 [n] x1 [n] 5. x3 [n] x2 [n] x1 [n] 5 ; x2 [n] = x2 (nT ) ; x3 [n] = x3 (nT )
42
Check Yourself
z -plane
43
Check Yourself
z -plane
44
DT Fourier Series
DT Fourier series represent DT signals in terms of the amplitudes and phases of harmonic components. 0 x[n] = ak e jk0 n The period N of all harmonic components is the same (as in CT).
45
DT Fourier Series
There are (only) N distinct complex exponentials with period N . (There were an innite number in CT!) If y [n] = e j n is periodic in N then y [n] = e j n = y [n + N ] = e j (n+N ) = e j n e j N and e j N must be 1, and ej must be one of the N th roots of 1. Example: N = 8
z -plane
46
DT Fourier Series
There are N distinct complex exponentials with period N . These can be combined via Fourier series to produce periodic time signals with N independent samples.
4 complex exponentials
DT Fourier Series
DT Fourier series represent DT signals in terms of the amplitudes and phases of harmonic components.
N 1 0 k=0
x[n] = x[n + N ] =
ak e jk0 n
; 0 =
2 N
N equations (one for each point in time n) in N unknowns (ak ). Example: N = 4 j 2 00 x[0] e N 01 x[1] e j 2 N = 2 x[2] e j N 02 2 x[3] e j N 03 e j N 10 2 e j N 11 2 e j N 12 2 e j N 13
2
e j N 20 2 e j N 21 2 e j N 22 2 e j N 23
2 a0 e j N 30 31 j2 e N a1 2 e j N 32 a2 2 a3 e j N 33
48
DT Fourier Series
DT Fourier series represent DT signals in terms of the amplitudes and phases of harmonic components.
N 1 0 k=0
x[n] = x[n + N ] =
ak e jk0 n
; 0 =
2 N
N equations (one for each point in time n) in N unknowns (ak ). Example: N = 4 x[0] 1 x[1] 1 = x[2] 1 x[3] 1 1 j 1 j 1 1 1 1 1 a0 j a1 1 a2 j a3
49
Orthogonality
DT harmonics are orthogonal to each other (as were CT harmonics).
N 1 0 n=0 j 0 kn j 0 ln 1 N 0 n=0
e j 0 (kl)n ; k=l =
j 2 (kl)N 1e N j 2 (kl) 1e N
1e j 0 (kl)N 1e j 0 (kl)
=0
; k= l
= N [k l ]
50
Sifting
Use orthogonality property of harmonics to sift out FS coecients. Assume x[n] =
N 1 0 k=0
ak e jk0 n
Multiply both sides by the complex conjugate of the lth harmonic, and sum over time.
N 1 0 n=0
x[n]e
jl0 n
ak e
jk0 n jl0 n
N 1 0 k=0
ak
N 1 0 n=0
e jk0 n ejl0 n
a k N [ k l ] = N al
ak =
N 1 1 0 x[n]ejk0 n N n=0
51
DT Fourier Series
Since both x[n] and ak are periodic in N , the sums can be taken over any N successive indices. Notation. If f [n] is periodic in N , then N 1 N N +1 0 0 0 0 f [n] = f [n] = f [n] = =
n=0 n=1 n=2 n=<N >
f [n]
x[n]ejk0 n ; 0 = ak e jk0 n
2 N
(analysis equation)
x[n]= x[n + N ] =
0
k=<N >
(synthesis equation)
52
DT Fourier Series
DT Fourier series have simple matrix interpretations. x[n] = x[n + 4] = x[0] 1 x[1] 1 = x[2] 1 x[3] 1 1 j 1 j 0
k=<4>
ak e jk0 n =
0
k=<4>
ak e jk
2 n 4
0
k=<4>
ak j kn
1 1 1 1
1 a0 j a1 1 a2 j a3
ak = ak+4 =
1 0 1 0 jk 2 n 1 0 N x[n]ejk0 n = e = x[n]j kn 4 4 4
n=<4> n=<4> n=<4>
a0 1 a 1 1 1 = a2 4 1 a3 1
1 j 1 j
1 1 1 1
54
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.