Professional Documents
Culture Documents
T T
Haa(jΩ)
T T
Hr(jΩ)
• we use lowest sampling rate possible to reduce computation complexity, e.g., speech for up to 4kHz required for
intelligibility, in ISDN telephone line fs = 64kHz with bit rate of 8k Bytes per second.
• we remove wide-band noise which could lead to aliasing.
•
π
|Ω| < Ωc =
1, T
Haa ( jΩ) =
0, else
11-1
11-2
since Haa ( jΩ) in real life will color the signal somewhat and Haa ( jΩ) rolls off before π/T in a real filter.
Oversampling samples at a higher than needed to ease analog filter design. The reason is that an analog filter can be
Therefore, we design the oversampling system in Fig. 11.3. The oversampling scheme only needs cheaper filters, and
Sharp
xc(t) Simple xa(t) ^x[n] xd[n]
Anti-alias
Anti-alias C/D M
DT Filter
Filter
Cuttoff π/M
T'=(1/M) (π/ΩΝ)
the phase distortion is linear. That is, rather design the filter shown in Fig. 11.4, we do filters shown in Fig. ??(a) and
(b) instead.
Ω
π/T=ΩN
1 1
Ω ω
π/T=ΩN π/T' π/Μ π
We can even alias any noise above ΩN , which is the highest frequency of interest. Ωc is overall bandwidth. We only
need to choose T 0 such that
2π
− Ωc > ΩN
T0
An example is shown in Fig. 11.6.
ADC converts a voltage value into a numerical representation of that values, every T seconds. It needs the sample-
and-hold and A to D conversion components.
Sample and hold takes snap shots of input signal and hold the value since APC must have steady and constant signal
to“read” the value. Fig. 11.7 shows a simple circuit for sample and hold.
11-3
Continuous time
anti-alias filter
Ω
−Ωc −ΩN Ωc ΩN
Discrete time
anti-alias filter
ω
−π −π/Μ π/Μ π
T
xa(t) xD(t)
Figure 11.7: A simple sample and hold circuit. The circuit switches on/off every T seconds. The capacitor holds value
measured until not needed.
1. Finite aperture time: amount of time needed to capture the signal. Want this to be small so that signal won’t
vary very much during the time the aperture is open.
2. Signal feedthrough: even when switches is open, some signal can feed through.
3. Signal droop: capacitor voltage starts to decreases over time.
Τ 2Τ 3Τ 4Τ
−3Τ −2Τ −Τ 0
ADC
ADC takes output of S&H, and quantizes it into digital numeric representation. The diagram of ADC is shown in
Fig. 11.9. We use x̂[n] = Q(x[n]) to denote the quantization step. For a B-bit quantizer, there are 2B possible values.
Figure 11.9: The A/D Converter. x̂[n] is still voltage values. −1 ≤ x̂B [n] < 1.
Ex: bi-polar ADC. ∆ is voltage quantization step. See Fig 11.10. Bi-polar quantization is good for
3∆
2∆
∆
−8∆/2 −7∆/2 −5∆/2 −3∆/2 −∆/2
∆/2 3∆/2 5∆/2 7∆/2
−∆
−2∆
−3∆
−4∆
a0 .a1 a2 · · · aB ai ∈ {0, 1}
represents
−a0 · 20 + a1 · 2−1 + a2 · 2−2 + · · · + aB · 2−B
It is just like the decimal number system
6. Full-scale level. Let Xm be width of voltage values that are represented without clipping. We have
2Xm Xm
∆= = B
2B+1 2
as the quantization step, and
x̂B · Xm = x̂[n],
recall −1 ≤ x̂B < 1. So x̂B [n] can be used directly in computer arithmetic, i.e.,
Quantization Error
2. if x[n] is not in this range, sample are clipped to the maximum or minimum value, so error grows linearly with
x[n] in that case.
Quantization can also be represented equivalently as shown in Fig. 11.11. So, we are just adding error signal to original
x[n] Q ^x[n]=Q(x[n])
x[n] + ^x[n]=x[n]+e[n]
e[n]
Reasonable assumptions for natural signals. (music, speech). One possible probability density function is uniform
distribution probability density function shown in Fig. 11.12 In the uniform distribution case, we have
p(e)
1/∆
−∆/2 0 ∆/2
Figure 11.12: The probability density function of the uniform distribution. ∆ = Xm
2B
.
mean: E[e[n]] = 0
2−2B Xm2
σ2e =
12
Let σ2x be the signal power. Then the signal to noise ratio in dB of B + 1 bit quantization is
σx
2
Xm
SNR(B + 1) = 10 log10 = 6.02B + 10.8 − 20 log10
σ2e σx
Good fact to remember: for each bit used, SNR increase about 6 dB. Each extra bit doubles the number of quantization
levels.
Relation between full-scope amplitude Xm and average (rms) signal amplitude Σx (last term on the right of the above
equation):
1. (make the term small) If σx is too large relative to Xm , then we get lots of clipping, and error analysis is no longer
valid (since errors are not uniform, etc.) When this happens, we get clipping distortion (very bad noise.)
2. (make the term large) If σx is small, then the term is large making SNR much lower.
Suppose Xm ≈ 4σx . Under Gaussian distortion, 0.064% of samples would be clipped with this Xm . The SNR is about
6B−1.25 dB. Good SNR should be between 90 and 96 dB (CD quality audio). 16 bits are enough if Xm is appropriately
chosen.