Analog To Digital Conversion (A/D) : Engr. Francis B. Malit
Analog To Digital Conversion (A/D) : Engr. Francis B. Malit
(A/D)
The practical implementation of PCM uses
three processes:
Sampling
Quantizing
Binary Encoding
Pulse Code Modulation
Was developed by AT&T in 1937 at their Paris laboratories.
It is the only one of digitally encoded modulation technique
that is used for digital transmission.
The term pulse code modulation is somewhat of a
misnomer as it is not really a modulation form, but rather a
form of source coding.
With PCM, the pulses are of fixed length and amplitude.
It is a binary system where a pulse or a lack of a pulse within
a prescribed time slot represents either logic 1 or a logic 0
condition.
Signal Sampling
• Sampling is converting a continuous time
signal into a discrete time signal
fs > 2fa
fs < 2fa
Sampling Rate
The Nyquist sampling theorem establishes the
minimum sampling rate (fs) that can be used for a
given PCM system.
Where:
Quantizatio
Sampling
Mappin
Discrete Discrete
g
Time Time &
n
Analog Binary
Cont. Discrete
Signal Sequence
Ampl. Ampl
Signal Signal
Quantization and encoding of a sampled signal
The result of PAM is a series of pulses with amplitude values
between the maximum and minimum amplitudes of the
signal( with real values).
These values cannot be used in the encoding process.
Quantization: is a method of assigning integer values in a
specific range to sampled instances
Folded Binary Code:
The PCM code shown in Table 1 is called folded binary
code. Except for the sign bit, the codes on the bottom half
of the table are a mirror of the codes on the top half.
there are two codes assigned to zero volts: 100 (+0) and
000 (-0)
for this example, the magnitude of the minimum step size
is 1 V.
then, the maximum voltage that can be encoded with this
scheme is +3 V (111) or – 3 V (011).
if the magnitude of a sample exceeds the highest
quantization interval, overload distortion (also called peak
limiting) occurs.
Table 1: Three bit PCM Code
Three - Bit PCM code
Folded Binary code ...
Assigning PCM codes to absolute magnitudes is called
Quantizing.
in dB :
NOTE!
the dynamic range is independent of resolution. If the
resolution is reduced by a factor of 2, to maintain the
same maximum input amplitude, the dynamic range must
double.
Dynamic Range . . .
the number of bits used for a PCM code depends on
the dynamic range.
DR is simply the maximum binary number for a
system
- the number of bits for a PCM code is:
Where:
n = number of PCM bits, excluding sign bit
DR = absolute value of dynamic range
Question???
Why
“It is because one PCM code is used for 0V, which is not
considered for a dynamic range.”
Therefore,
In dB:
mathematically:
Signal-to-quantization Noise Ratio
2. Determine the SQR for the following input signal and quantization
noise magnitudes.
Vs Vn (V)
1 V rms 0.01
2 Vrms 0.02
3 Vrms 0.01
4 V rms 0.2
Activity
3. Determine the resolution and quantization noise for an
8-bit linear sign-magnitude PCM code for the following
maximum decoded voltages:
Vmax = 3.06 Vp, 3.57 Vp, 4.08 Vp, and 4.59 Vp.
a. 0110101
b. 0000011
c. 1000001
d. 0111111
e. 1000000
Liner Vs. Nonlinear PCM Codes
Linear
Nonlinear
• the step size increases with the amplitude of the
input signal.
Liner Vs. Nonlinear PCM Codes
Nonlinear
• Level-at-a-time coding
– this type of coding compares the PAM signal to a ramp
waveform while binary counter is being advanced at a
uniform rate.
- requires a very fast clocking if the number of PCM code
is larger.
- generally limited to a low speed applications.
Coding Methods:
WHERE:
b. Vin Vo
Vmax = 4 4
0.75 Vmax = 3 3.78
0.50 Vmax = 2 3.5
0.25 Vmax 3
(a)0.05 V
(b) 0.32 V
(c) 10.23 V
Percentage error
Example