lecture 4

advertisement
Husheng Li, UTK-EECS, Fall 2012
DISCRETE-TIME SIGNAL PROCESSING
LECTURE 4 (SAMPLING)
PERIODIC SAMPLING
οƒ’
Sampling: π‘₯ 𝑛 = π‘₯𝑐 (𝑛𝑇), where T is the
sampling period. In practice, it is done by A/D
converter. The sampling operation is generally
invertible.
TWO STAGE REPRESENTATION
We represent the sampling
procedure in two stages:
• Multiplication with an impulse
train 𝑠 = ∞
−∞ 𝛿(𝑑 − 𝑛𝑇) with
output π‘₯𝑠 𝑑 = π‘₯𝑐 𝑑 𝑠 𝑑 .
• Conversion from impulse train
to discrete time sequence
Note: this is a mathematical
formulation, not a physical circuit
implementation
FREQUENCY-DOMAIN REPRESENTATION
οƒ’
The frequency domain of the
post-sampling signal is given
by
𝑋𝑠 𝑗𝑀
∞
1
=
𝑋𝑐 (𝑗(𝑀 − π‘˜π‘€π‘  ))
𝑇
π‘˜=−∞
οƒ’
οƒ’
Assume that the signal has a
limited band −𝑀𝑁 , 𝑀𝑁 .
If the sampling frequency
satisfies 𝑀𝑠 ≥ 2𝑀𝑁 , there will
be no overlap.
EXACT RECOVERY
οƒ’
An ideal low pass
filter can be used to
obtain the exact
original signal.
ALIASING
If the inequality 𝑀𝑠
≥ 2𝑀𝑁 is not valid,
the frequency copies
of signal will overlap,
which incurs a
distortion called
aliasing.
οƒ’ See the example of
cosine function.
οƒ’
NYQUIST-SHANNON THEOREM
οƒ’
Theorem: For a band limited signal within band
−𝑀𝑁 , 𝑀𝑁 , it is uniquely determined by its
samples π‘₯𝑐 (𝑛𝑇), if 𝑀𝑠 ≥ 2𝑀𝑁 .
EXAMPLE OF SINUSOIDAL SIGNAL
RECONSTRUCTION OF A BANDLIMITED SIGNAL
οƒ’
The reconstruction is given
by
π‘₯π‘Ÿ 𝑑
∞
=
𝑛=−∞
sin(πœ‹ 𝑑 − 𝑛𝑇 /𝑇)
π‘₯(𝑛)
πœ‹ 𝑑 − 𝑛𝑇 /𝑇
INTUITIVE EXPLANATION
It can be used for D/C
converter:
π‘‹π‘Ÿ 𝑗𝑀 = π»π‘Ÿ 𝑗𝑀 𝑋(𝑗𝑀)
οƒ’
DISCRETE-TIME PROCESSING
οƒ’
We can use C/D converter to convert a
continuous-time signal to a discrete-time one,
process it in a discrete-time system, and then
convert it back to continuous time domain.
EXAMPLE: LTI AND LPF
οƒ’
We can use a discrete-time low pass filter (LPF)
to do the low pass filtering for continuous time
signal.
EXAMPLE: LTI AND LPF
οƒ’
The ideal low pass
discrete-time filter
with discrete-time
cutoff frequency w
has the effect of an
ideal low pass filter
with cutoff
frequency w/T.
CONTINUOUS-TIME PROCESSING OF DISCRETETIME SIGNALS
οƒ’
We can also use continuous-time system to
process discrete-time signals.
RESAMPLING: DOWNSAMPLING
οƒ’
The downsampling π‘₯𝑑 𝑛 = π‘₯(𝑛𝑀) implies
1
𝑋𝑑 𝑗𝑀 =
𝑀
𝑀−1
𝑖=0
𝑀
𝑋(𝑗( − 2πœ‹π‘–/𝑀))
𝑀
INTUITION IN THE FREQUENCY DOMAIN
With
aliasing
Without
aliasing
DECIMATOR
οƒ’
A general system for downsampling by a factor
of M is the one shown above, which is called a
decimator.
UPSAMPLING
οƒ’
The upsampling is given by π‘₯𝑖 𝑛 = π‘₯(𝑛/𝐿),
where L is the integer factor.
EXPANDER
The output of
expander is given
by π‘₯𝑒 𝑛
= ∞
−∞ π‘₯(π‘˜)𝛿(𝑛 − π‘˜πΏ
.
οƒ’ In the frequency,
we have 𝑋𝑒 𝑀
= 𝑋 𝑀𝐿 .
οƒ’
INTERPOLATOR
οƒ’
It can be shown that the above structure realizes the
upsampling and interpolates the signals between samples:
∞
sin(πœ‹(𝑛 − π‘˜πΏ)/𝐿)
π‘₯𝑖 𝑛 =
π‘₯(π‘˜)
πœ‹(𝑛 − π‘˜πΏ)/𝐿
−∞
SIMPLE AND PRACTICAL INTERPOLATION
οƒ’
The ideal interpolator is impossible to implement.
In practice, we can use a linear interpolator:
𝑛
β„Ž 𝑛 = 1 − 𝐿 , |𝑛| ≤ 𝐿
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
TIME AND FREQUENCY OF LINEAR
INTERPOLATOR
CHANGING SAMPLING RATE BY A NON-INTEGER
FACTOR
οƒ’
The change of sampling rate by a non-integer factor can be
realized by the cascade of interpolator and decimator.
THE FREQUENCY INTUITION
MULTIRATE SIGNAL PROCESSING
οƒ’
Multirate techniques refer in general to utilizing
upsampling, downsampling, compressors and
expanders in a variety of ways to improve the
efficiency of signal processing systems.
INTERCHANGE OF FILTERING WITH
COMPRESSOR / EXPANDER
οƒ’
The operations of linear filtering and
downsampling / upsampling can be exchanged
if we modify the linear filter.
MULTISTAGE DECIMATION
οƒ’
οƒ’
The two stage implementation is often much more
efficient than a single-stage implementation.
The same multistage principles can also be applied to
interpolation
DIGITAL PROCESSING OF ANALOG SIGNALS
οƒ’
In practice, continuous time signals are not
precisely band limited, ideal filters cannot be
realized, ideal C/D and D/C converters can only be
approximated by A/D and D/A converters.
PREFILTERING TO AVOID ALIASING
οƒ’
We can use oversampled A/D to simplify the
continuous-time antialiasing filter.
FREQUENCY DOMAIN INTUITION
οƒ’
Key point: the
noise is aliased;
but the signal is
not. Then, the
noise can be
removed using a
sharp-cutoff
decimation filter.
A/D CONVERSION
SAMPLE-AND-HOLD
The zero-order-hold
system has the
impulse response
given by
1, 0 < 𝑑 < 𝑇
β„Ž0 𝑑 =
0, π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
οƒ’
QUANTIZATION
This quantizer
is suitable for
bipolar signals.
οƒ’ Generally, the
number of
quantization
levels should be
a power of tow,
but the number
is usually much
larger than 8.
οƒ’
ILLUSTATION
D/A CONVERSION
οƒ’
The ideal D/A is given by
∞
sin(πœ‹ 𝑑 − 𝑛𝑇 /𝑇)
π‘₯π‘Ÿ 𝑑 =
π‘₯(𝑛)
πœ‹ 𝑑 − 𝑛𝑇 /𝑇
𝑛=−∞
In practice, we need to use the above structure.
OVERSAMPLING
οƒ’
οƒ’
Oversampling can make it possible to implement sharp cutoff
antialiasing filtering by incorporating digital filtering and decimation.
Oversampling and subsequent discrete-time filtering and
downsampling also permit an increase in the step size of the
quantizer, or equivalently, a reduction in the number of bits required
in the A/D conversion.
Download