Docsity

Sampling Theorem, Sample-and-Hold Non-Ideal Sampling | EECS 216, Study notes of Signals and Systems

Toggle sidebar
bg1
EECS 216 SAMPLING THEOREM
WHAT IT: A bandlimited continuous-time signal x(t)canbe
DOES: reconstructed perfectly from the samples x(nT )ofx(t)
IF the sampling rate exceeds twice the maximum frequency of x(t).
Claude Shannon, U-M alumnus and ”father of information theory.”
Let signal x(t) have spectrum X(ω)=F{x(t)}=0for|ω|>B.
Let x(t) be sampled every t=nT ↔sampling rate =S=2π
T
RADIAN
SECOND .
Then can reconstruct x(t)=∞
n=−∞ x(nT )2B
S
sin B(t−nT )
B(t−nT )
=[
∞
n=−∞ x(nT )δ(t−nT )] ∗sin(Bt)
πt TIF S>2B=Nyquist rate.
Note that F{sin(Bt)
πt T}=Tif |ω|<B
0if|ω|>B (low-pass filter=LPF).
So we can implement using: {x(nT )}×{δ(t−nT )}→|LPF| → x(t).
WHY THIS IS TRUE: Note F{δ(t−nT )}=2π
Tδ(ω−nS).
Fourie r series expansion: δ(t−nT )=1
Tej2πnt/T (ωo=S=2π
T).
Then F{ej2πnt/T }=2πδ(ω−nS) using modulation property of F.
Periodic AND discrete in time↔Periodic AND discrete in frequency.
F{sampled x(t)}=F{x(nT )δ(t−nT )}=F{x(t)δ(t−nT )}=
1
2πF{x(t)}∗F{δ(t−nT )}=1
2πX(ω)∗2π
Tδ(ω−nS)= 1
TX(ω−nS)
SIGNAL IN: TIME DOMAIN FREQUENCY DOMAIN
original spectrum
sampled aliased
recovered filtered
pf2

Partial preview of the text

Download Sampling Theorem, Sample-and-Hold Non-Ideal Sampling | EECS 216 and more Study notes Signals and Systems in PDF only on Docsity!

EECS 216 SAMPLING THEOREM

WHAT IT: A bandlimited continuous-time signal x(t) can be DOES: reconstructed perfectly from the samples x(nT ) of x(t) IF the samplingrate exceeds twice the maximum frequency of x(t). Claude Shannon, U-M alumnus and ”father of information theory.” Let signal x(t) have spectrum X(ω) = F{x(t)} = 0 for |ω| > B. Let x(t) be sampled every t = nT ↔ sampling rate = S = (^2) Tπ SECOND^ RADIAN.

Then can reconstruct x(t) =

n=−∞ x(nT^ )^

2 B S

sin B(t−nT ) B(t−nT ) = [

n=−∞ x(nT^ )δ(t^ −^ nT^ )]^ ∗

sin(Bt) πt T

IF S > 2 B=Nyquist rate.

Note that F{ sin( πtBt )T } =

T if |ω| < B 0 if |ω| > B (low-pass filter=LPF). So we can implement using: {x(nT )} × {δ(t − nT )} → |LPF| → x(t).

WHY THIS IS TRUE: Note F{

δ(t − nT )} =

∑ (^2) π T δ(ω^ −^ nS). Fourier series expansion:

δ(t−nT ) =

T e

j 2 πnt/T (^) (ωo = S = 2 π T ). Then F{ej^2 πnt/T^ } = 2πδ(ω − nS) usingmodulation property of F. Periodic AND discrete in time↔Periodic AND discrete in frequency. F{sampled x(t)} = F{

x(nT )δ(t − nT )} = F{x(t)

δ(t − nT )} = 1 2 π F{x(t)} ∗ F{

δ(t − nT )} = (^21) π X(ω) ∗

∑ (^2) π T δ(ω^ −^ nS) =^

1 T

X(ω − nS)

SIGNAL IN: TIME DOMAIN FREQUENCY DOMAIN

original (^) spectrum

sampled (^) aliased

recovered filtered

SAMPLE-AND-HOLD NON-IDEAL SAMPLING

But: An ideal impulse train

δ(t − nT ) doesn’t exist in the real world! So: Use pulse train

p(t − nT ) where p(t) is a short pulse: p(t)=rect( t^ ). Then: Convolvingwith p(t) and using δ(t − nT ) ∗ p(t) = p(t − nT ) g ives F{

x(nT )p(t − nT )} = (^) T^1 P (ω)

X(ω − nS): Just previous×P (ω).

So: Reconstruct x(t) from weighted pulse train using H(ω)= rect( Pω/ (ω(2) B)). Also: Usingsample-and-hold interpolation→Spectrum P (ω)

X(ω − nS). COMPUTING SIGNAL BANDWIDTH EX #1: x(t)= 3 t+7 t sin(2π 5 t): x(t)=3 sin(2π 5 t)+7π sin(2 πtπ 5 t). EX #2: x(t)=sin(2π 3 t) sin(2π 2 t): x(t)= 12 [cos(2π 1 t)–cos(2π 5 t)]. EX #3: x(t)= sin(2π^3 t) sin(2 t 2 π^2 t): X(ω) = (^21) π [rect( ω 6 ) ∗ rect( ω 4 )]= (^21) π tri( 10 ω ). Huh? Convolve length=6 with length=4→length=10. So: In all three cases, max freq=5 Hz→Nyquist rate=10 Hz→T= 101.

If S < 2 B? Reconstructed x(t) is aliased (see previous page).

EX #1: x(t)=sin(2π 50 t) → B = 100π. T=0.01→S= (^02). 01 π =200π=2B=Nyquist. But: x(nT)=sin(2π50(0. 01 n))=sin(nπ)=0! (0 crossings) What’s going on? This: X(f )= j 2 δ(f + 50)– j 2 δ(f − 50) →

X(f − n T ) = 0! Everythingcancels! So: We need S > 2 B, not S ≥ 2 B, to ensure reconstruction from samples. EX #2: x(t)=cos(2πt)+cos(10πt) (1 Hz & 5 Hz)→B=2π(5 Hz)=10π. Let: T= 17 →S= (^12) /π 7 =14π < 2 B = 20π (7 Hz samplingrate: undersampled). Then: X(ω) = πδ(ω − 2 π) + πδ(ω − 10 π) + πδ(ω + 2π) + πδ(ω + 10π). Sample: (^) T^1

X(ω − nS) = 7

X(ω − 14 πn) =periodic extension of this: 7 πδ(ω − 2 π) + 7πδ(ω − 10 π + 14π) + 7πδ(ω + 2π) + 7πδ(ω + 10π − 14 π) = 7πδ(ω − 2 π) + 7πδ(ω − 4 π) + 7πδ(ω + 2π) + 7πδ(ω + 4π). Get: Cosines at 1 Hz & 2 Hz, NOT 1 Hz & 5 Hz! 2 Hz is aliased 5 Hz. So: Original 5 Hz folded across 7/2=3.5 Hz becomes an aliased 2 Hz. Folding: S/2=folding frequency since freqs. above it are folded alongit. Q: How can you tell whether a sampled signal is aliased? A: Increase the samplingrate as much as possible. Then:

  • If the form of the signal doesn’t change, it is not aliased.
  • If reduce samplingrate, at some ω = 2B the form of the signal changes.
  • Often a good idea to oversample by choosing S >> 2 B=Nyquist rate. EX #3: X(ω=2πf )=0 unless 800< |f | <1200 Hz. Minimum reconstruct rate? Seems: 2(1200)=2400 (^) SECONDSAMPLE → T = 24001. But: 800 SAMPLE SECOND suffices! Why? Positive freq part has support: [-800,-400],[0,400],[800,1200]... And: Negative freq part has support: [-1200,-800],[-400,0],[400,800]... So: Both parts of spectrum are preserved after samplingat 800 Hz!