Digital Comunication 3
Digital Comunication 3
Experiment no .3
Pulse code modulation (PCM)
Student:
1-Kaso Baxtiar
2-zhiwar awat
3-shangeen baqi
4-rayan jamal
n sampling we are using PAM sampler that is Pulse Amplitude Modulation Sampler which converts
continuous amplitude signal into Discrete-time- continuous signal (PAM pulses).
To get a pulse code modulated waveform from an analog waveform at the transmitter end
(source) of a communications circuit, the amplitude of the analog signal samples at regular time
intervals. The sampling rate or number of samples per second is several times the maximum
frequency. The message signal converted into binary form will be usually in the number of levels
which is always to a power of 2. This process is called quantization.
Basic Elements of PCM System
At the receiver end, a pulse code demodulator decodes the binary signal back into pulses with
same quantum levels as those in the modulator. By further processes we can restore the original
analog waveform.
This above block diagram describes the whole process of PCM. The source of continuous time
message signal is passed through a low pass filter and then sampling, Quantization, Encoding
will be done. We will see in detail step by step.
Sampling
Quantization
In quantization, an analog sample with an amplitude that converted into a digital sample with an
amplitude that takes one of a specific defined set of quantization values. Quantization is done by
dividing the range of possible values of the analog samples into some different levels, and
assigning the center value of each level to any sample in quantization interval. Quantization
approximates the analog sample values with the nearest quantization values. So almost all the
quantized samples will differ from the original samples by a small amount. That amount is called
as quantization error. The result of this quantization error is we will hear hissing noise when play
a random signal. Converting analog samples into binary numbers that is 0 and 1.
In most of the cases we will use uniform quantizers. Uniform quantization is applicable when the
sample values are in a finite range (Fmin, Fmax). The total data range is divided into 2n levels,
let it be L intervals. They will have an equal length Q. Q is known as Quantization interval or
quantization step size. In uniform quantization there will be no quantization error.
As we know,
L=2n, then Step size Q = (Fmax – Fmin) / L
Interval i is mapped to the middle value. We will store or send only index value of quantized
value.
Coding
The encoder encodes the quantized samples. Each quantized sample is encoded into a sequence
of bits by the encoding process.
Pulse Code Demodulation
Pulse Code Demodulation will be doing the same modulation process in reverse. Demodulation
starts with decoding process, during transmission the PCM signal will effected by the noise
interference. So, before the PCM signal sends into the PCM demodulator, we have to recover the
signal into the original level for that we are using a comparator. The PCM signal is a series pulse
wave signal, but for demodulation we need wave to be parallel.
By using a serial to parallel converter the series pulse wave signal will be converted into a
parallel digital signal. After that the signal will pass through n-bits decoder, it should be a Digital
to Analog converter. Decoder recovers the original quantization values of the digital signal. This
quantization value also includes a lot of high frequency harmonics with original audio signals.
For avoiding unnecessary signals we utilize a low-pass filter at the final part.
Procedure
TestA case1 :
Note: passband edge =2*pi*2000 rad/s because the frequency of LPF should be twice of the
message signal
Result
Test A case 1:
Case 2:
Case 3:
Test B:
Discussion
In this experiment which we experimented with PCM, the signal first undergoes pulse amplitude
modulation which results in having sampled signal with their original amplitude at their
instantaneous time. We can notice in the first scope that we got the sine wave as sampled signal.
The sampled signal is then quantized in the quantize according to its step size, in our result we
observe that the quantized signal has reduced the amplitude of the sampled signal, then the signal
has been encoded to binary (0’s and 1’s) ,however this uniform encoder does not show the
encoded signal in binary, instead it displays the decimal correspondent. The encoded signal is
pulse code modulated signal.
To reconstruct the analog signal, the encoded signal goes into the decoder to regain the sampled
signal. The low pass filter reconstruct the analog signal ,however this reconstructed signal is not
as smooth as desired which is why we use an amplifier to regain the original amplitude along
with the desired smooth analog signal.
The reconstructed signal has shifted with the respect to the analog signal due to the
reconstruction filter ,and this results in delay in the reconstructed signal.