Experiment No.: Aim:-Apparatus: - MATLAB. Theory of Pulse Code Modulation & Demodulation
Experiment No.: Aim:-Apparatus: - MATLAB. Theory of Pulse Code Modulation & Demodulation
Experiment No.: Aim:-Apparatus: - MATLAB. Theory of Pulse Code Modulation & Demodulation
BVGOITC
EXPERIMENT NO.
Aim:- Experimental Study of PCM Modulation & Demodulation.
Apparatus:- MATLAB.
(i) PCM
The essential operations on the transmitter of a PCM system are sampling, quantising and encoding, as
shown in Fig. 1. The quantising and encoding operations are usually performed in the same circuit. The encoded
output is the PCM signal. The PCM pulses get distorted & corrupted with noise in the transmission. The receiver
regenerates these impaired signal pulses, decodes and filters to reproduce the message signal.
(ii) Sampling
The incoming message wave is sampled with a train of narrow rectangular pulses so as to closely
approximate the instantaneous sampling process. In order to ensure perfect reconstruction of the message at the
receiver, the sampling rate must be greater than twice the highest frequency component wm of the message wave.
In practice, a low-pass filter is used at the front end of the sampler in order to exclude frequencies greater than
wm before sampling.
(iii) Quantising
A continuous signal, such as voice, has within its finite amplitude range, an infinite number of amplitude
levels. However, in PCM one retains only a finite number of discrete levels by using quantisation. This
introduces some error in the signal. This is called quantisation error or quantisation noise. This means that the
original continuous signal may be approximated by a signal constructed of discrete amplitudes selected on a
minimum error basis from an available set. Clearly if one assigns the discrete amplitude levels with sufficiently
close spacing, one can make the approximated signal practically indistinguishable from the original continuous
signal.
Graphically, the quantising process means that a straight line representing the relation between input and
output of a linear continuous system is replaced by a staircase characteristic as in Fig.2. The quantising error
consists of the difference between the input and output signals of the quantizer. It is apparent that the maximum
instantaneous value of this error is half of the separation between two adjacent permissible amplitude levels.
(iv) Encoding
The quantised sample values are coded. Any plan for representing each of this discrete set of values as a
particular arrangement of discrete event in a code is called a code One of the discrete events in a code is called a
code element or symbol. In a binary code, each symbol may be either of two distinct values or kinds, such as the
presence or absence of a pulse. The two symbols of a binary code results in the maximum advantage over the
effects of noise in a transmission medium. It is also easy to regenerate.
With an n bit (binary digit) binary code, one can represent a total of 2n distinct numbers. There are several
ways by which binary symbols 1 and 0 can be represented by electrical signals. These constitute the PCM signal.
(v) Decoding
At the receiver, the received PCM pulses may be reshaped. The reshaped clean pulses are regrouped into
code words in the receiver and decoded into a quantised PCM signal. The decoding process involves generating a
pulse the amplitude of which is the linear sum of all the pulses in the code word, each pulse weighted by its
place-value (20, 21,22,23,....for a binary code) in the code.
(vi) Filtering
The final operation in the receiving is to recover the signal wave by passing the decoder output through a
low-pass reconstruction filter whose cut off frequency is equal to the message bandwidth wm. Assuming that the
transmission path is error free, the recovered signal includes no noise with the exception of the initial distortion
introduced by the quantisation process.
Quantization Process:
Quantization is process of approximation or rounding off.
The sampled signal in PCM transmitted is applied to the quantizer block.
Quantizer converts the sampled signal into an approximate quantized signal, which consists of only a finite
number of predecided voltage levels.
Each sampled value at the input of the quantizer is approximated or rounded off to the nearest standard
predecided voltage level.
2
This standard levels are known as the “quantization levels” refer figure, to understand the process of
quantization.
The quantization Process takes place as follows:
The input signal X (t) is assumed to have a peak-to-peak swing of VL to VH volts. This entire voltage range
has been divided into “Q” equal intervals of step size “S”.
“S” is called as the step size and its value is given as, S = VH-VL/Q.
In figure the value of Q=8.
At the center of these steps, the quantization levels q0, q1, q3…q7 are located.
Xq (t) represents the quantized version of X (t). We obtain Xq (t) at the output of the quantizer. When X (t)
is in the range 0, then corresponding to each value of X (t), the quantizer output will be equal to “q0”.
Similarly for all the values of X (t) on the range 1, the quantizer output is constant equal to “q1”. Thus in
each range from 0 to 7, the signal X (t) is rounded off to the nearest quantization level and quantized
signal is produced.
The quantized signal Xq (t) is thus approximation of X (t). The difference between them is called
quantization error or quantization noise. This error should be as small as possible. To minimize the
quantization error we need to reduce the step size “S” by increasing the number of quantization levels Q.
3
Quantization Error OR Quantization Noise “ ”:
The difference between the instantaneous values of the quantized signal and input is called as quantization
error or quantization noise.
= Xq (t) – X (t).
Shaded portions of the waveform shown in figure show the quantization error.
The maximum value of quantization error is + S/2 where S is step size. Therefore to reduce the quantization
error we have to reduce the step size by increasing the number of quantization levels.
The mean square value of the quantization is given by,
Mean square value of quantization error = S2 / 12.
The relation between the number of quantization levels Q and the number of bits per word (N) in the
transmitted signal can be found as follows.
Because each quantized level is to be converted into unique N bit digital word, assuming a binary coded
output signal,
The number of quantization levels Q = Number of combination of bits / word.
That is Q = 2N.
Thus if N=4 i.e 4 bits per word then the number of quantization levels will be 16.
4
Signal to Quantization noise ratio (SNRq):
The ratio is the figure of merit for the PCM systems. The signal to quantization noise ratio with a
sinusoidal input signal to the PCM system is expressed as,
Si / Nq =[1.8 + 6N] db for sinusoidal signal.
This equation shows that the signal to quantization noise ration is solely dependent on the number of bits
per word i.e N. This ratio should be as high as possible, which can be achieved by increasing N. But this
increase the bit rate and hence bandwidth of the PCM system. Therefore the number of bits per word is a
compromise between high SNRq and bandwidth requirements.
Application of PCM:
In telephony with (with advent of fiber optic cables).
In space communication where a spacecraft transmits signal to earth. Here the transmitted power is very
low (10 to 15W) and the distances are huge, (a few million km.). Still due to high noise immunity, only
PCM systems can be used in such applications.
Advantages of PCM:
Very high noise immunity.
Due to digital nature of signal, repeaters can be placed between the transmitter and the receivers. The
repeaters actually regenerate the received PCM signal. This is not possible in analog systems. Repeaters
further reduce the effect of noise.
It is possible to store the PCM signal due to its digital nature.
It is possible to use various coding techniques so that only desired person can decode the received signal.
Disadvantage of PCM:
The encoding, decoding and quantising circuitry of PCM is very complex.
PCM requires a large bandwidth as compared to the systems.
5
RESULT:-