Sampling and Reconstruction: Reading: Chapter 5 Section 5.2 Sampling - Pp. 237 To 242
Sampling and Reconstruction: Reading: Chapter 5 Section 5.2 Sampling - Pp. 237 To 242
Flat-top sampling
https://sipdtdevelopers.wordpress.com/tag/sampling/
1
Practical Sampling Process (Uniform Sample Interval)
Sample, Quantize & Encode
Allowed
g(t) or m(t) values
https://en.wikipedia.org/wiki/Audio_bit_depth
2
Remember this basic principle
f
t
https://www.quora.com/What-is-the-difference-between-Nyquist’s-
signalling-theorem-and-Shannon’s-sampling-theorem
3
Using The “Fourier Transform” To Construct a “Sampling Function”
n+ 1
2
n is an integer
Ш (t ) dt = 1
n− 1
2
1
Ш(t) Ш(f) fS =
Period = TS TS
1
TS
4
Sampling Theorem
Sampling Theorem: A band-limited signal g(t) of bandwidth B (Hz)
can be reconstructed exactly from data samples taken at a sampling
rate fS if fS is greater than or equal to 2B (Hz).
g(t ) Ш (t ) = g(t ) (t − nT ) = g(nT ) (t − nT )
n =−
S
n =−
S S
5
Fourier Transform of a Sampled Signal
6
Fourier Transform of Sampled Signal (in pictures)
Baseband
g(t ) ( or m(t )) G(f)
“band-limited”
FT spectra of
bandwidth B
t
Ш(t)
G(f) consists of G(f), scaled by the
constant 1/TS , repeated periodically
with period fS = (1/TS) as shown here.
TS
g(t) Multiple
Impulse G(f)
spectra
Sampling FT
t
Lowest frequency
http://www.wikiwand.com/en/Nyquist–Shannon_sampling_theorem
8
Sampling Exactly at the Nyquist (Critical) Rate
Single
Sinusoidal
Waveforms
Results in
nonunique
solutions
A family of sinusoids at the critical frequency, all having the same sample
sequences of alternating +1 and –1. That is, they all are aliases of each
other, even though their frequency is not above half the sample rate.
http://www.wikiwand.com/en/Nyquist–Shannon_sampling_theorem
9
Recall the Fourier Transform of a Single Pulse
G1 ( f )
T1 G2 ( f )
1 1 T2
−
T1 T1
f f
−1 1
g 1 (t ) T2 g2 (t ) T2
−T1 T1 t −T2 T2 t
2 2 G3 ( f ) 2 2
T3
1 f
1
−
T1 > T2 > T3 T3 g3 (t ) T3
−T3 T3 t
2 2
Narrower spectrum corresponds to wider pulse. 10
Remember: Fourier Series for a Periodic Pulse Train
g(t )
−T − /2 0 /2 T t
G( f )
sinc function envelope
( −2 / )
(2/ )
( −1 / )
(1 / )
0 f
f S = (1 / T )
11
Fourier Transform of Sampled Signal (in pictures)
Ш(t)
12
Important Question: Can g(t) be reconstructed from samples?
Interpolation:
Signal reconstruction is called Interpolation. We can recover
g(t) by sending the samples through a band-limited filter of
bandwidth B (Hz).
13
Ideal Interpolation (Illustrated Diagrammatically)
Pass the samples through band-limited filter:
h(t) Note: A
H(f) FT noncausal
Ideal Unit impulse impulse
band-limited response h(t) response
filter −1 1
2B 2B
f
t
g(t) A collection
g(t)
of sinc (t)
1
functions
2B
h(t ) = sinc(2 Bt )
15
Practical Reconstruction For Non-ideal Samples – I
g(t ) =
n g ( nTS ) p( t − nTS ) = p( t )
n
g ( nTS ) ( t − nT )
S
= p(t ) g(t )
g(t )
g(t ) p(t )
g(t ) = n g ( nTS ) p( t − nTS ) = p( t )
n
g ( nTS ) ( t − nT )
S
= p(t ) g(t )
This relationship shows that the equalizer must remove all the shifted
replicas G(f – nfS) in the summation except for the low-pass term at n = 0.
g(t ) g(t )
Equalizer
G( f ) G( f )
17
Signal Recovery Observations
g(t )
Generally we use short pulses of duration
Tp to sample a function g(t). This does a Tp
better job of signal interpolation without
excessive demands upon an equalizer
filter. In fact, often the equalizer can be t
omitted.
TS
The sampling theorem rests upon the signal being strictly band-limited.
All practical signals are time-limited, they therefore can’t be precisely
band-limited.
g(t)
g(t)
Tp t
TS
TS = 1/fS
19
Example of a Practical Circuit For “Sample and Hold”
Output
Input Buffer
Buffer
S1 A2
A1 + +
+
+ R C
VG1 S2 g(t)
g(t)
Sampling VG2
Pulse
http://www.electro-tech-online.com/attachments/samplehold-jpg.16101/
20
The Problem of Aliasing (or Spectral Folding)
Because signals are not band-limited, they have long tails in the frequency
domain as shown in G(f). Sampling at higher rates does not eliminate spectral
overlapping of repeated spectral cycles as shown in (b).
G( f )
Fourier transform
of waveform g(t)
0 f
(a) Note the spectra cross at
Reconstruction filter G( f ) Frequency fS /2 = (1/2TS) Hz.
H(f) Sample signal
spectrum
0
−-sS -s /2 Lost tail is s /2 sS
folded back Lost tail
- fs - fs /2 fs /2 fs f
After Lathi & Ding, 4th ed., 2009; p. 311. (b) 21
1. What Can We Do to Reduce the Problem of Aliasing?
We can oversample, that is, we can sample at a rate exceeding the Nyquist
rate. This is illustrated below:
G( f )
Filter Sampled at Nyquist rate
-B B f f
S
G( f )
Filter Sampled above Nyquist rate
fS f
22
2. What Can We Do to Reduce the Problem of Aliasing?
We can place an anti-aliasing filter in front of the sampler.
Reconstructed filter
II(f)
Folded tail distorts
lower frequencies
Reconstructed spectrum
Gaa(f) Lost tail results in loss
of higher frequencies
Anti-aliasing filter
Haa(f) Sampler
g(t ) gaa (t ) gaa (t )
T (t )
Reconstructed filter
II(f) Gaa(f)
Sample signal
spectrum
Reconstructed spectrum
(no distortion of lower frequencies
24
Digital Multiplexing & Demultiplexing – TDM
Time sharing a transmission medium.
Time
Division
Multiplexed
(TDM) Output
MUX DEMUX
25
Example: Time Division Multiplexing of Two Signals
g 1 (t )
g 2 (t )
t
26
TDM Can Be Realized Using NAND Gates
Four inputs
Select Lines
http://www.electronics-tutorials.ws/combination/comb_2.html
27
Example of TDM in Operation
https://rotechproject.wordpress.com/2014/04/13/time-division-multiplexing/
28
Advantages of Digital Over Analog For Communications
29
30
Definition of Fourier Transform
31
Sampling Theorem
Sampling Theorem:
A physical waveform may be represented over the interval - < t < + by
sin f S (t − ( n f S )
g(t ) = an
n =− f S (t − ( n f S )
where
sin f S (t − ( n f S )
an = f S g(t ) dt
− f S (t − ( n f S )
and fS is the sampling rate parameter (fS > 0). If g(t) is bandlimited to
B Hz, and fS is greater than or equal to 2B Hz, then the equation becomes
the sampling function representation with
n
an = g
fS
For fS > 2B Hz, the orthogonal series coefficients are the values of the
waveform when sampled every 1/fS seconds.
https://slideplayer.com/slide/5274806/
33
1-to-8 FET Multiplexer/Demultiplexer
https://electronics.stackexchange
.com/questions/47279/difference
s-between-a-fet-multiplexer-and-
regular-digital-multiplexer
http://www.ti.com/lit/ds/symlink/sn74cbt3251.pdf
34
Aliasing in Sampling
S( f )
Aliasing 1
TS
2W
1
TS
2W
https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Book%3
A_Electrical_Engineering_(Johnson)/5%3A_Digital_Signal_Processing/
5.03%3A_The_Sampling_Theorem
35
https://slideplayer.com/slide/5261494/
36