Objective:: Analyze Pulse Code Modulation System
Objective:: Analyze Pulse Code Modulation System
Objective:: Analyze Pulse Code Modulation System
Brief History
Regenerative Regenerative
Repeater Repeater
Serial to
Hold
Parallel DAC LPF
Ckt
Converter
Sampling pulse
Sample-and-Hold circuit
Figure 5b shows the input analog signal, the sampling pulse,
and the waveform developed across C1. It is important that
the output impedance of voltage follower Z1 and the on
resistance of Q1 be as small as possible. This ensures
that the RC charging time constant of the capacitor is kept
very short, allowing the capacitor to charge or discharge
rapidly during the short acquisition time. The rapid drop in the
capacitor voltage immediately following each sample pulse is
due to the redistribution of the charge across C1. The
interelectrode capacitance between the gate and drain of the
FET is placed in series with C1 when the FET is off, thus acting
as a capacitive voltage-divider network. Also, note the gradual
discharge across the capacitor during the conversion time. This
is called droop and is caused by the capacitor discharging
through its own leakage resistance and the input impedance
of voltage follower Z2. Therefore, it is important that the input
impedance of Z2 and the leakage resistance of C1 be as high
as possible. Essentially, voltage followers Z1 and Z2 isolate
the sample-and-hold circuit (Q1 and C1) from the input and
output circuitry.
aperture time – the time that Q1 (FET) is “ON” and the capacitor charges
(or discharges)
conversion time – the storage time of the capacitor during which the
ADC converts the sampling voltage to a PCM code
aperture distortion – the distortion that results if the input to the ADC is
changing while it is performing the conversion
cdv idt
i c
dt dv
Where:
C – max capacitance
i – max current
dv – maximum change in voltage across C1
dt – charge time on aperture time
Example
fs 2 fa
o If fs is less than two times fa, distortion will
result. This distortion is called aliasing or
foldover distortion.
Nyquist sampling rate for low-pass and bandpass signals
18
Recovery of a sampled sine wave for different sampling rates
Sampling at the
Nyquist rate can create
a good approximation
of the original sine
wave.
20
Examples
An example of under-sampling is the seemingly
backward rotation of the wheels of a forward-moving car
in a movie.
A movie is filmed at 24 frames per second.
If a wheel is rotating more than 12 times per second, the
under-sampling creates the impression of a backward
rotation.
Solution
The bandwidth of a low-pass signal is between 0 and f,
where f is the maximum frequency in the signal.
Therefore, we can sample this signal at 2 times the
highest frequency (200 kHz).
The sampling rate is therefore 400,000 samples per
second.
fs - fa 2fs - fa
3fs - fa
3fs + fa
Audio
0 fa 2fs
No aliasing
Audio
0 fa fs 2fs 3fs
Aliasing distortion
Quantization
Overload Distortion
o occurs if the magnitude of the sample exceeds the
highest quantization interval
Quantizing
o assigning PCM codes to absolute magnitudes
Resolution
o also called the step size, is the minimum voltage other
than zero volt that can be decoded by the DAC in the
receiver
o equal to the voltage of the least significant bit of the PCM
code
o indicates how many divisions the ADC conversion process
uses
o The smaller the magnitude of the minimum step size the
better the resolution and the more accurately the
quantization interval will resemble the actual analog
sample.
Quantization Error(Qe) or Quantization Noise(Qn)
1
Qe max Vlsb
2
Qe – maximum Quantization error
Vlsb – magnitude of the least significant bit or the step size
Coding
o Dynamic Range (DR) is the ratio of the largest
possible magnitude to the smallest possible
magnitude that can be decoded by the DAC
(Digital-to-Analog Converter)
Vmax V max V max
DR DR DR 20 log
resolution V min V min
o The number of bits used for a PCM code is
n
2 DR 1
Coding Efficiency
o numerical indication of how efficiently a PCM code is utilized
o ratio of the minimum bits required to achieve a certain
dynamic range to the actual number of bits used
v
SQR (dB) 10 .8 20 log
q
◦ v = rms signal voltage
◦ q = quantization interval
Example
For a PCM system with the following parameters,
determine (a) minimum sample rate (b) minimum
number of bits used in the PCM code (c) actual
dynamic range (d) resolution (e) quantization error (f)
coding efficiency
Maximum analog input frequency = 4kHz
Maximum decoded voltage at the receiver = ±2.55V
Minimum DR = 46 dB
Vmax x ln 1
Vin
Vout V max
ln 1
o Vmax = max. uncompressed analog input amplitude
o Vin = amplitude of the input signal at a particular instant
of time
o = parameter used to defined the amount of
compression
o Vout = compressed output amplitude
slightly flatter SQR than μ-law but μ-law is
better in terms of small signal quality (idle
channel noise)
Example
Example
samples bits
line speed x
second sample
Where:
o line speed – transmission rate in bps
o samples/second – sample rate (fs)
o bits/sample – number of bits in the compressed PCM code
Example
For a single-channel PCM system with a sample rate fs= 6000 samples
per second and a seven-bit compressed PCM code, determine the line
speed.
o Uses a single-bit PCM code to achieve
digital transmission of analog signals
o If the current sample is smaller than the
previous sample, a logic 0 is transmitted
o If the current sample is larger than the
previous sample, a logic 1 is transmitted
DAC
Slope overload noise
Analog output
input
occurs when the step size
∆ is too small for the
accumulator output to
follow quick changes in
Slope overload the input waveform.
distortion Granular noise occurs for any step size,
Original Signal Reconstructed
but is smaller for a small step size.
Signal
If ∆ is decreased, the granular noise will
decrease, however the slope overload noise
will increase.
Granular Noise Thus there should be an optimum value
for the step size ∆.
o Adaptive delta modulation is a delta
modulation system where the step size of the
DAC is automatically varied, depending on
the amplitude characteristics of the analog
input signal.
o A simple algorithm – when the output is a
string of consecutive 1‟s or 0‟s, the step size
is increased (for string of 1‟s) or decreased
(for string of 0‟s).