Академический Документы
Профессиональный Документы
Культура Документы
1
f (kT )
2
ECEN4002
F ( j ) e
jkT
Sampling (cont.)
After some manipulation, can show:
T
f ( kT )
2
1
2 n jkT
F j
e d
T n
T
2 n
1 1
DTFT F j
T
T n
ECEN4002
-N
S > 2 N
Fourier Transform of
continuous function
Fourier Transform of
sampled function
XS(j)
-2S
-S
-N
S < 2 N (aliasing)
2S
XS(j)
-2S -S
ECEN4002
2S
Reconstruction
Since spectrum of sampled signal consists of
baseband spectrum and spectral images shifted at
multiples of 2/T, reconstruction means isolating
the baseband image
Concept: lowpass filter to pass baseband while
removing images
XS(j)
-2S
ECEN4002
-S
-N
2S
Reconstruction (cont.)
Multiplication by rectangular pulse in
frequency domain (LPF) corresponds to
convolution by sinc( ) function in time
domain
Because sinc( ) is non-causal and of infinite
extent, practical reconstruction requires an
approximation to the ideal case
ECEN4002
Delay Lines
In order to create a frequency-selective
function, there must be a delay memory so
that the function is able to observe and
resolve the frequencies present in the signal
Digital filters used tapped delay lines to
create the z-1 (delay) terms in the ztransform
ECEN4002
h0
x[n1]
Z-1
h1
x[n2]
Z-1
h2
x[n-3]
y[n]
h3
3
H ( z ) hn z n
n0
ECEN4002
ECEN4002
Modulo Buffers
DSP supports modulo arithmetic in the
address generation unit
With modulo buffer, incrementing or
decrementing address register rolls over
automatically at beginning and ending of
buffer memory range
Modulo buffers are useful for delay stages
in filters and other FIFO queue structures
ECEN4002
10
Base Address + N -1
Modulo N
Buffer
Memory
Base Address
ECEN4002
11
12
13
FIR Filter
FIR filter coefficients are equal to the unit
sample response of the filter
Given filter specifications, we need to
choose a unit sample response that is
close to the desired response, yet within
the implementation constraints (memory,
computational complexity, etc.)
ECEN4002
14
15
1.2
1
0.8
0.6
0.4
0.2
0
ECEN4002
0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Frequency (fraction of fs)
16
0.25
0.2
0.15
0.1
0.05
0
-0.05
-0.1
-60
ECEN4002
-40
-20
0
20
Sample Index
40
60
17
Amplitude
0.8
Hamming
window
0.6
0.4
0.2
0
-0.2
-60
ECEN4002
-40
-20
0
20
Sample Index
40
60
18
0.25
0.2
0.15
0.1
0.05
0
-0.05
-0.1
ECEN4002
10
15
20
25
Sample Index
30
35
40
19
-10
-20
-30
-40
-50
-60
ECEN4002
0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
Frequency (fraction of fs)
20
Lab Assignment #2
Due at START of class in two weeks
Topics:
ECEN4002
21