Professional Documents
Culture Documents
Lab 12 Bni Hui
Lab 12 Bni Hui
Experiment # 12
Experiment Title
To Study the Sampling and Quantization Process of the PCM Encoder Circuit
Performed on
Student Name
Roll No. Group
Semester Session
Marks Obtained
Experiment evaluated by
Date Signature
Department of Electrical Engineering
Rubric for Assessment of Communication system Laboratory Experiments
Course Code: EL-321 Course Title: Communication system Course Credits: 3+1 Session: Spring 2022
Rubrics of assessment criteria to perform experiment number 12.
Marks / Criteria 0 UNSATISFACTORY (1) COMPETENT (2) PROFICIENT (3) DISTINGUISHED (4) Marks
unable to write code and to make the acceptable coding skill in Simulink. Always able to
Software has no ability to identify logic most of the times and make the logics for given
Simulation and remove the coding produce code with desired output MATLAB coding problems and X
(03) errors even with results for a given problem. produce a high quality code with
instructor’s help. Unable to desired output results.
produce the output results.
Ability of the student to Responses and Information
Responses and Responses and information
correlate the theoretical given are very reasonable
information given are given are reasonable/ relevant
Absent
Remarks/ Totals
COMMUNICATION SYSTEMS (EL321) | EXPERIMENT # PAGE 3 OF 8
12
Objective 1
To Study the Sampling and Quantization Process of the PCM Encoder Circuit
Required Apparatus
1. Power Supply
2. Pulse-Code Modulation Trainer
3. AF Generator
4. DMM
Theory
Sampling occurs in the sample/hold circuit. The sample/hold circuit stores the value of the
intelligence signal sample until the circuit is commanded to store a new value. Quantization
occurs at the ADC circuit. The total range that the intelligence signal amplitude covers is
divided by the ADC into an n umber of standard levels, called quantum. The ADC determines
the quantum of the sampled value of the intelligence signal and assigns the voltage of that
quantum to the sampled amplitude of the intelligence signal. The Coding process occurs in the
ADC circuit and the parallel-to-serial converter. The voltage of the quantized signal is
converted into digital data by the ADC and sent to a transmitter serially (one bit at a time) by
the parallel-to-serial converter. The serial data stream represents the PCM signal. The timing
signal generator supplies clock signals to the ADC and parallel-to-serial converter and pulses
to the sample/hold circuit, ADC and parallel-to-serial converter. The clock signals and pulses
are used to synchronize the PCM encoder circuit.
In PCM, the sampling signal frequency (fs) is twice the maximum intelligence signal frequency
(fm). This is called the Nyquist rate. The sampling signal frequency of the sample/hold circuit
must be equal to or greater than the Nyquist rate. This is expressed in the equation:
fs ≥ 2
fm
Determine the minimum sampling frequency of 4 kHz message signal, so that the message
signal will reproduce accurately.
Copyright © Department of Electrical Engineering – Usman Institute of
Technology
COMMUNICATION SYSTEMS (EL321) | EXPERIMENT # PAGE 4 OF 8
12
Procedure
1. Switch ON the Power of the trainer and test the power supply inputs on the trainer to be
sure the proper voltages and polarities are applied to the trainer and now turn off the
power.
2. Connect the circuit shown in figure using jumper wires to interconnect the jacks on the
trainer. Apply power to the trainer
3. Set the SYMM ADJ control on the PCM encoder circuit fully clockwise.
4. Connect the channel 1 probe to J39. Adjust the SCALE ADJ control so that a 5Vp-p,
18 quantum signal is displayed. Set the ZERO ADJ control at the center of rotation. Set
the SYMM ADJ control so there are 7 steps in the quantum signal at J39.
5. Connect the AF generator to J 37. Adjust AF generator frequency to 800Hz and set the
AF level control to produce a 3Vp-p sine wave at J37. Use the frequency counter and
the channel 1 probe of the oscilloscope to observe the signal. What does the signal at
J37 represent?
The signal at J37 represent the message signal.
7. Remove the channel 1 probe and frequency counter from J37 and connect them to
J43. Set the intensity of the oscilloscope to maximum. Record the frequency of the
signal at J43.
f = KHz
8. Trigger the scope on channel 2. What is the relationship between the sampling signal
(on channel 1) and the sampled intelligence signal (on channel 2)?
The relationship between sampling signal and sampled intelligence signal is fs=12fm.
Objective 2
To Study the Quantization process of the PCM encoder circuit
Theory
The ADC divides the total range of the intelligence signal into a number of quanta. The
number of quantum depends on the number of bits output by the ADC circuit. The formula is:
L = 2n
where L is the number of quantum n is the number of bits. For example, if a 2-bit ADC (n = 2)
is used the number of quantum is four. The voltage difference between quanta is called the
step size. The step size depends on the total range of the sampled amplitude and the number of
quantum. The equation for finding the step size of the quantum is:
Vss = Vf s r / (L – 1)
where, Vss = Step size voltage, Vf s r = Full scale range voltage, L = Number of quantum
Observation
2. Connect the channel 1 probe to J38 and the channel 2 probe to J39. Set the SYMM ADJ
control full y clockwise. Adjust the SCALE ADJ for a 5Vp-p, 16 quantum staircase.
Observe the signal at J39. What does the signal at J39 show?
The signal J39 shows the numbers of quantum level which is 16 quantum staircase.
3. Observe the quantized signal with a total range of 5Vp-p and 16 quantum on the graph
pro-vided in
V
Vss= fsR =
L−1
5
16−1
4. The total range voltage of the PCM encoder circuit is 5Vp-p. Calculate the step size.
1 0.333 9 2.997
2 0.666 10 3.330
3 0.999 11 3.663
4 1.332 12 3.996
5 1.665 13 4.329
6 1.998 14 4.662
7 2.331 15 4.995
6. Compare the signal at J39 with the signal drawn in above figure. Are the signals the
same?
By comparing both signal we observed that both signal are same.
7. Connect an AF generator to J37. Adjust the SYMM ADJ control for 7 quantum steps at
J39. Apply power to the AF generator. Adjust the AF generator frequency to 800Hz and
the AF level control to produce a 3Vp-p sine wave. Use the channel 1 probe and
frequency counter to observe the signal at J 37. What does the signal at J37 represent?
The signal J37 represents the message signal.
8. Move the channel 1 probe to J38. Using the channel 1 position control the sampled
intelligence signal at J38 to cover the quantized signal at J39. Compare the signals and
develop relationship between the steps of the sampled intelligence and quantized signals?
By comparing the signal the relationship determined it is the output of the sampled
and hold circuit.
clear all;
close all;
clc;
%% Sampling
figure, stairs(t,sig,'-k')
title ('Sample and Hold (Sampling)')
xlabel('Time')
ylabel('Amplitude')
%% Quantization
partition=[-0.8 -0.4 0.4 0.8];
codebook=[-1 -0.6 0 0.6 1];
[index,quantiz_sig] = quantiz(sig,partition,codebook);
figure;
plot(t,quantiz_sig,'-k');
ylim([-1.2 1.2]);
title('Quantization');
xlabel('Time')
ylabel('Amplitude')
PROCEDURE
1. Is it possible to recover sampled signal using filter? If yes, then what type of filter
would it be?
Yes, it is possible to receive sampled signal by passing it through low pass filter which
drop all higher frequency components.