





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























k
k
k
k
k =
k
Uniform (periodic) sampling.Sampling frequency f
S
= 1/ t
S
vs
vs
ANALOG INPUTANALOG INPUT DIGITAL OUTPUTDIGITAL OUTPUT
What to use for processing?See slide “DSPing aim & tools”
Ex: train wheels in a movie. 25 frames (=samples) per second.
Train starts
wheels ‘go’ clockwise.
Train accelerates
wheels ‘go’ counter-clockwise.
Sampling: independent variable (ex: time) continuous
→
discrete.
Quantisation: dependent variable (ex: voltage) continuous
→
discrete.
Here we’ll talk about uniform sampling
.
MAX
S
MAX
Condition on f
S
?
f
S
300 Hz
t)
cos(
π
t) π
sin(
10
t)
π
cos(
3
s(t)
− ⋅ + ⋅ = F
1
=25 Hz, F
2
= 150 Hz, F
3
= 50 Hz
Example
Multiple proposers: Whittaker(s), Nyquist, Shannon, Kotel’nikov.
Nyquist frequency (rate) f
N
= 2 f
MAX
or
f
MAX
or
f
S,MIN
or
f
S,MIN
/
Naming getsconfusing!
-^ •
-^ •
Ear^ Ear
split into many narrow bands
low-power sounds
detected out of loud background.
-B
0
B
f
Signal of interest
Out of band
noise
Out of band
noise
-B
0
B f
S
/
f
Out-of-band
noise can alias
into band of interest. Filter it before!
Filter it before!
-B
0
B
f
Antialiasing
filter
: depends on bandwidth of
: depends on
A
MIN, dB
~ 6.02 N + 1.
N
(^3210) -1 -2 -3 -
-**
0
1
2
3
4
(^111010001000)
V
V
FSR
Uniform, bipolar transfer function (N=3)Uniform, bipolar transfer function (N=3)
Quantization step q =^ Quantization step
V
FSR 2
N
FSR
LSBLSB
Voltage ( = q)Scale factor (= 1 / 2
N
)
Percentage (= 100 / 2
N
)
- -0.
0 0.
1
-**
0
1
2
3
4
q / 2 - q / 2
Quantisation errorQuantisation error
n
n k π 2 j
e
s[n]
k ~c
Discrete
Discrete
Periodic (period T)
Continuous
Aperiodic
Discrete
n f π 2 j
e
n
s[n]
S(f)
2.5^2 1.5^1 0.5^00
2
4
6
8
10
12
time, t
k
2.5^2 1.5^1 0.5^00
1
2
3
4
5
6
7
8
time, t
k
n
n k π 2 j
e
s[n]
k ~c
Calculated via FFT
dt t f π j
e
s(t)
S(f)
dt
t ω kj
e
s(t)
k c
Periodic (period T)
DiscreteContinuous
Aperiodic
Continuous
2.5^2 1.5^1 0.5^00
1
2
3
4
5
6
7
8
time, t
2.5^2 1.5^1 0.5^00
2
4
6
8
10
12
time, t
Note: j =
√
-1,
ω
= 2
π
/T, s[n]=s(t
n
), N = No. of samples
¾¾
(^1919)
thth
/ 20/ 20
thth
centurycentury
: two paths for Fourier analysis
two paths for Fourier analysis -
Continuous & Discrete.
CONTINUOUSCONTINUOUS →
Fourier extends the analysis to arbitrary function (Fourier Transform).
→
Dirichlet, Poisson, Riemann, Lebesgue address FS convergence.
→
Other FT variants born from varied needs (ex.: Short Time FT - speech analysis).
DISCRETE: Fast calculation methods (FFT)DISCRETE: Fast calculation methods (FFT) →
18051805
Published 1866).
→
19651965
“An algorithm for
the machine calculation of complex Fourier series”
).
→
Other DFT variants for different applications (ex.: Warped DFT - filter design &signal compression).
→
FFT algorithm refined & modified for most computer platforms.
see next slidesee next slide
A periodic^ A
periodic function s(t) satisfying
function s(t) satisfying Dirichlet
Dirichlet’
’ss conditions
conditions
can be expressedcan be expressed
as a Fourier series, with harmonically related sine/cosine terms.as a Fourier series, with harmonically related sine/cosine terms
.
∞
=
⋅
−
⋅
=
1
k
t)
ω
(k
sin
k b
t)
ω
(k
cos
k a
0 a
s(t)
a
0
, a
k
, b
k
: Fourier coefficients.
k
: harmonic number, T
: period,
ω
= 2
π
/T
Note: {cos(k
ω
t), sin(k
ω
t) }
k
form orthogonal base offunction space.
⋅
=
T 0
s(t)dt
(^1) T
0 a
⋅
⋅
=
T^0
dt t)
ω
sin(k
s(t)
(^2) T
k b
⋅
⋅
=
T 0
dt t)
ω
cos(k
s(t)
(^2) T
k a
(signal average over a period, i.e. DC term &zero-frequency component.)
analysis analysis
synthesissynthesis
*** Even & Odd functions Odd :**
s(-x) = -s(x)
x
s(x) s(x)
x
Even :
s(-x) = s(x)
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
2 π
π^0
π π
1)dt (
dt
1 π
a
∫
∫
π^0
π π
dt kt
cos
dt kt
cos
(^1) π
k a
∫
∫
{
}
∫
∫
k
π
cos
1
π k
π^0
π π
dt kt
sin
dt kt
sin
(^1) π
k b
even k ,
0
odd k ,
π k
ω
π
(zero average)^ (zero average)
(odd function)(odd function)
...
t
5
sin
π
5
4
t
3
sin
π
3
4
t
sin
(^4) π
sw(t)
=
⋅
=
7
1
k
sin(kt)
k b
(t) 7
sw
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
=
⋅
=
5
1
k
sin(kt)
k b
(t) 5
sw
=
⋅
=
3
1
k
sin(kt)
k b
(t) 3
sw
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
=
⋅
=
1
1
k
sin(kt)
k b
(t) 1
sw
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
=
⋅
=
9
1
k
sin(kt)
k b
(t) 9
sw
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
-1.
- -0.
0 0.
1 1.
0
2
4
6
8
10
t
square signal, sw(t)
=
⋅
=
11
1
k
sin(kt)
k b
(t)
11
sw
Convergence may be slow (~1/k) - ideally need infinite terms. Practically
, series truncated when remainder below computer tolerance
(
⇒
errorerror
).
BUT^ BUT
… Gibbs’ Phenomenon.