Professional Documents
Culture Documents
THEORY:
PURPOSE:
The purpose of this experiment is to introduce PCM by approaching this technique
with two methods:sampling and quantization. It is widely used in communication
systems,which is used in conversion of analog signals to their digital
representation.
REGENERATIVE
AUDIO SAMPLER QUANTIZER ENCODER
REAPEATER
O/P
LPF ENCODER REGENERATIVE REGENERATIVE
DECODER
REAPEATER REAPEATER
FIG 7.1
1. Sampler: A continuos time signal converted to descrete time signal,but
signal should be oversampled.
2. Quantizer: Each sample is rounded of to the nearest quantization level.
3. Encoder: It converts each sample into binary data.
4. Regenarative Reapeater: It is used to eliminate the noise present at i/p of
receiver.
5. Decoder: It converts binary data back to sample.
6. LPF: It is used to reconstruct message signal from sample.
PROGRAMM:
clc;
clear all;
t=0:0.0005:20;
partition=-1:0.1:1;
codebook=-1:0.1:1.1;
x=sin(t);
[index,quants] = quantiz(x,partition,codebook);
subplot(4,1,1);
plot(t,x);
title('msg signal');
subplot(4,1,2);
plot(t,quants);
title('quantized signal');
subplot(4,1,3);
y=uencode(quants,2);
plot(t,y);
title('PCM plot');
ADVANTAGES OF PCM:
DISADVANTAGES:
APPLICATION:
In compact disk
Digital telephony
Digital audio application
RESULT:
PCM has been simulated in MATLAB and graphs are plotted accordingly.