Digital Communication Laboratory Manual - Ec592
Digital Communication Laboratory Manual - Ec592
Version 2
(b) Problem Analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
(c) Design/development of solutions: Design solutions for complex engineering
problems and design system components or processes that meet the specified needs with
appropriate consideration for the public health and safety, and the cultural, societal, and
environmental considerations.
(d) Conduct investigations of complex problems: Use research-based knowledge and
research methods including design of experiments, analysis and interpretation of data, and
synthesis of the information to provide valid conclusions.
(e) Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modeling to complex engineering
activities with an understanding of the limitations.
(f) The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.
(g) Environment and sustainability: Understand the impact of the professional
engineering solutions in societal and environmental contexts, and demonstrate the
knowledge of, and need for sustainable development.
(h) Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
(i) Individual and team work: Function effectively as an individual, and as a member or
leader in diverse teams, and in multidisciplinary settings.
PEO 1: The graduates shall have a good understanding of the Electronics and
Communication Engineering fundamentals for identifying and analyzing real-life
engineering problems in communication, automation, and VLSI industries.
PEO 2: The graduates will be encouraged in research and innovative approaches for
successful career growth in VLSI, communication, embedded and automation industries
and blossom into entrepreneurs, scientists, and technocrats.
PEO4: The graduates shall be inculcated with professional ethics, and managerial
and communication skills to develop ingenious solutions for the benefit of society and the
environment
DIGITAL COMMUNICATION LABORATORY
DO’S
DON’ TS
1. Do not exceed the voltage Rating.
2. Do not inter change the components while doing the experiment without consent of
the lab-in charge.
3. Avoid loose connections and short circuits.
4. Do not throw the connecting wires on the floor.
5. Do not come late in the laboratory.
6. Do not make noise if you don’t get the output or result. Concern Faculty/TA will
guide you.
RULES AND REGULATIONS FOR DIGITAL COMMUNICATION
LABORATORY
1. Students should not enter in the lab without the permission of lab
In-Charge.
2. Every student/faculty should mention their name, time and
computer/Equipment no. in the log book before accessing the lab.
3. Students may use the lab in their allotted classes only. In other
cases they can also use the lab with prior permission.
4. Do not access the lab in absence of the faculty member.
5. Cleanliness and disciplines should be maintained properly.
All of you are advised to follow the above mentioned rules.
MEGHNAD SAHA INSTITUTE OF TECHNOLOGY
Department of Electronics and Telecommunication Engineering
LIST OF EXPERIMET
Experiment No: 1
Name of the Experiment:
PART –A) Study of Pulse Amplitude Modulation (PAM) technique By the Hardware
PART –B) Study of Pulse Amplitude Modulation (PAM) technique By the Software
1. A. Course Outcome: CO592. 2: The students will be able to demonstrate Pulse code and pulse
amplitude modulation techniques
3. Requirement:
A.
Sl.no
Frequency Amplitude Frequency Amplitude Frequency Amplitude
MSIT/ECE/Digital Communication Lab/ EC592
PART –B
PAM MATLAB CODE
fm = 30;
fc = 1000;
mamp = 1;
camp =1;
clock = 1/(10* fc);fs
= 1/clock;
D =[0.5:10:5* fc]*1/ fc ;
t = 0:clock:1;w
= 1/ fc ;
c=pulstran(t,D,@rectpuls,w);m=
mamp*cos(2*pi*fm*t); s1 = m.*c;
subplot(311);
plot(t , m);
title(‗PAM MODULATION‘);
xlabel (‗Time(sec)‘);
ylabel (‗Message‘) ;
axis([0 0.05 -2*amap 2*mamp]);
MSIT/ECE/Digital Communication Lab/ EC592
subplot(312);
plot(t , c);
xlabel (‗Time(sec)‘);
6.Area of applications:
7.Question Banks:
1. What is PAM?
2. What are the draw backs of PAM?
3. What is guard band and why it is necessary?
4. What is Nyquist rate?
5. Explain TDM of PAM ?
8.References:
6. Communication System by Singh and Sapre.
7. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No: 2
Name of the Experiment: Study of PCM modulation technique.
Course Outcome :CO592.2 : The students will be able to demonstrate Pulse code and pulse
amplitude modulation techniques
3.Requirement:
A.
2 Function Generator 01
3 Power Supply 01
4 PCM kit 01
7. Area of applications:
8. Question Banks:
1. Define modulation.
2. What are three different processing steps in PCM?
3. Define signal – to – noise ratio.
4. Define quantization error.
5. Define overload level.
6. What is ternary code?
7. What are advantages of PCM?
8. Define White Gaussian noise.
9. Define channel and Quantization noise.
10. What are three basic functions of Regenerative repeaters?
8. References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No: 3
Name of the Experiment: Line Coding and Decoding Techniques
Course Outcome :CO592.5: The students will be able to analyze the performance of digital
communication systems in term of bit error rate and spectral efficiency.
Objective: To study the different line coding techniques with the communication trainer kit
2. Theory: Line coding refers to the process of representing the bit stream (1‘s and 0‘s) in the
form of voltage or current variations optimally tuned for the specific properties of the physical
channel being used. The selection of a proper line code can help in so many ways: One
possibility is to aid in clock recovery at the receiver.
Some common types of line encoding nowadays are unipolar, polar, bipolar, Manchester
encoding. These codes are explained here:
BIPOLAR CODE:
bipolar encoding is a type of return-to-zero (RZ) line code, where two nonzero values are used,
so that the three values are +ve, −ve, and zero. Such a signal is called a duobinary signal.
Standard bipolar encodings are designed to be DC-balanced, spending equal amounts of time in
the +ve and −ve states.
MSIT/ECE/Digital Communication Lab/ EC592
The reason why Bipolar encoding is classified as a return to zero (RZ) is because when a bipolar
encoded channel is idle the line is held at a constant "zero" level; and when it is transmitting bits
the line is either in a +V or -V state corresponding to the binary bit being transmitted. Thus, the
line always returns to the "zero" level to denote optionally a separation of bits or to denote
idleness of the line.
MANCHESTER ENCODING:
In Manchester code each bit of data is signified by at least one transition. Manchester encoding is
therefore considered to be self-clocking, which means that accurate clock recovery from a data
stream is possible. In addition, the DC component of the encoded signal is zero.
Although transitions allow the signal to be self-clocking, it carries significant overhead as there
is a need for essentially twice the bandwidth of a simple NRZ or NRZI encoding.
3. Requirement:
A.
1 Unipolar RZ 1KHz
MSIT/ECE/Digital Communication Lab/ EC592
6. Area of application:
7. Question Banks:
A) What are the common schemes of line coding?
B) Which line coding technique is best in terms of band width?
C) Why line coding is required?
D) What is the difference between Line coding & encoding?
8.References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No: 4
Name of the Experiment: Study of delta modulator and demodulator.
1. A. Course Outcome:CO592.3: The students will be able to apply different line coding in digital
communication systems and adaptive delta modulation and delta modulation techniques.
1. B. Objective: To study of Delta modulation and demodulation
2. Theory: Delta modulation can be thought as one bit PCM. In this, only one bit is
transmitted per sample just to indicate whether the present sample is larger or smaller than the
previous one. The encoding, decoding and quantizing process become extremely simple but this
system cannot handle rapidly varying samples. This techniques introduces a lot quantization
noise.
MSIT/ECE/Digital Communication Lab/ EC592
3. Requirement
A.
Sl.NO ITEM QUANTITY
1 Storage Oscilloscope 01
DM Modulator &
2 Demodulator trainer. 01 each
6. Area of applications:
Delta modulation is used in high resolution A/D and D/A converters.
7. Question Banks:
1. Define Delta modulation.
3. What are two unique features of Delta modulation?
4. What are the applications of Delta modulation?
5. What is the purpose of accumulator in DM?
6. What are differences between DM and DPCM?
7. What is the purpose of low pass filter?
8. Define bandwidth.
9. Define quantization noise.
10. Define slope overload distortion
8. References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No:5
Name of the Experiment: Study of Adaptive delta modulator and demodulator.
1. A. Course Outcome: CO592.3: The students will be able to adaptive delta modulation and delta
modulation techniques.
1. B.Objective: To study of the basic techniques of Adaptive Delta modulation and
demodulation
2. Theory: Adaptive delta modulation (ADM) reduces the slope-overload and granular
distortions encountered in delta modulators (DM) to a greater extent. It is done by making the
step size of the modulator assume a time-varying form. In particular, during a steep segment of the
input signal the step size is increased. Conversely, when the input signal is varying slowly, the step size is
reduced. In this way, the size is adapted to the level of the input signal. The resulting method is called
adaptive delta modulation (ADM). It is clear in the figurebelow.
For the first part we see that to adapt to the fast changing input signal the slope size is increasing.
Then to accommodate the slow movement the step size is decreasing. The detailed blocks for
implementing this are given in the block diagram below
MSIT/ECE/Digital Communication Lab/ EC592
3. Requirement
A.
Sl.NO ITEM QUANTITY
1 Storage Oscilloscope 01
ADM Modulator &
2 Demodulator trainer. 01
6. Area of applications:
Adaptive delta modulation is used for improve wireless voice quality.
MSIT/ECE/Digital Communication Lab/ EC592
7. Question Banks:
1. What is the advantage of Adaptive delta Modulation?
2. How to overcome granular noise?
3. How to overcome slope overload distortion?
8. References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Laboratory Manual
Course Name: Digital Communication Laboratory
Course Code: EC592
Experiment No.6
Name of Experiment:
Name of the Experiment:
PART –A) Study of ASK Modulation/Demodulation Technique by the Hardware
PART –B) Study of ASK Modulation Technique By the Software
1. A. Course Outcome: CO592.4: The students will be able to experiment with various type of
digital modulation techniques like ASK, PSK, FSK
2. Theory:
Amplitude-shift keying (ASK) is a form of amplitude modulation that represents digital data as
variations in the amplitude of a carrier wave. In an ASK system, the binary symbol 1 is
represented by transmitting a fixed-amplitude and fixed frequency carrier wave for a bit duration
of T seconds. If the signal value is 1 then the carrier signal will be transmitted; otherwise, a
signal value of 0 will be transmitted. The ASK waveform may be represented as
(1)
(2)
(3)
Symbol ‗1‘ is represented by transmitting carrier wave of fixed amplitude and fixed frequency
for the bit duration T second. Symbol ‗0‘ is represented by no signal ( ) which is shown
in figure 1.
MSIT/ECE/Digital Communication Lab/ EC592
Asynchronous ASK Demodulator: The modulated ASK signal is given to the envelope
detector, which delivers a positive half output. The low pass filter suppresses the higher
frequencies and gives a smother envelope detected output from which the comparator retrieves
as digital output by comparing it with a threshold value.
Transmitter
Receiving Part
4. Appratus Required:
Frequency of Input Signal d(t) Frequency of Carrier Signal Frequency of Output Signal
(KHz) c(t) (KHz) d(t) (KHz)
6.Graph:
MSIT/ECE/Digital Communication Lab/ EC592
clc;
clearall;
closeall;
T=1;
fc=10;
t=0:T/100:1;
c=sqrt(2/T)*sin(2*pi*fc*t);
N=8;
m=rand(1,N);
t1=0;
t2=T;
for i=1:N
t=[t1:0.01:t2]
if m(i)>0.5
m(i)=1;
m_s=ones(1,length(t));
else
m(i)=0;
m_s=zeros(1,length(t));
end;
message(i,:)=m_s;
ask_sig(i,:)=c.*m_s;
t1=t1+(T+0.01);
t2=t2+(T+0.01);
MSIT/ECE/Digital Communication Lab/ EC592
subplot(5,1,2);
axis([0 N -2 2]);
plot(t,message(i,:),'g');
title('message signal');
xlabel('t--->');
ylabel('m(t)');
gridon
holdon
subplot(5,1,4);
plot(t,ask_sig(i,:));
title('ASK signal');
xlabel('t--->');
ylabel('s(t)');
gridon
holdon
end;
holdoff
subplot(5,1,3);
plot(t,c);
title('carrier signal');
xlabel('t--->');
ylabel('c(t)');
gridon
subplot(5,1,1);
stem(m);
title('binary data bits');
xlabel('n--->');
ylabel('b(n)');
gridon
MSIT/ECE/Digital Communication Lab/ EC592
7. Discussion:
8. Application:
The easiest is the earliest known form of electrical communication the MORSE code. They are
used in telegraphs worldwide, However in India this has ceased to function. The other is military
uses which still rely on using the Morse code during warfare. ASK is used almost in every digital
communication link including your cell phone and cable TV. The In most wireless links such as
satellite TV and high definition TV broadcast channels uses two ASK links in parallel, each of
16-levels, but rotated in phase 90 degrees, thus the 16x16 combination is known as 256 QAM.
4x4 or 64 QAM is also popular. In fiber optics it is quite common to ignore phase and use only
one ASK channel.
MSIT/ECE/Digital Communication Lab/ EC592
9. Question Banks:
i) What is ASK?
ii) How can you generate ASK?
iii) Explain the technique of asynchronous demodulation of ASK.
10. References:
Experiment No: 7
Name of the Experiment:
PART A):- Study of Frequency Shift Keying (FSK) modulation and Demodulation technique by the
Hardware.
PART B):- Study of Frequency Shift Keying (FSK) modulation technique by the Software
1. A. Course Outcome:CO592.4: The students will be able to Experiment with various type of
digital modulation techniques like ASK, PSK, FSK
1.B. Objective: To study FSK modulation and demodulation
2.Theory:
Frequency shift keying (FSK) is a relatively simple, low performance of digital modulation.
Binary FSK is the simplest form of FSK where the input signal (base band or modulating
signal) can have only two different values (hence name binary). Binary FSK is similar to
conventional frequency modulation except that the modulating signal varies between two
discrete voltage levels (i.e., 1‘s and 0‘s) rather than a continuously changing value such as sine
wave. In Binary FSK, digital information is transmitted in terms of discrete frequency steps of
a carrier. BFSK modulator uses a pair of discrete frequencies to transmit binary (0‘s and 1‘s)
information. With the scheme, the ―1‖ is called the mark frequency and the ―0‖ is called the
space frequency.
In BFSK the frequency of the carrier is shifted according to the binary symbol but the phase of
the carrier is unaffected. That‘s why we have two different frequency signals (𝒇𝑳, 𝒇𝑯)
according to binary symbols. Let there be a frequency shift by Ω. Then we can write
If 𝒃(𝒕) = ‘1’ then 𝑺𝑯(𝒕) = √𝟐𝑷𝑺𝐜𝐨𝐬(𝟐𝝅𝒇𝒄 + 𝜴)𝒕
If 𝒃(𝒕) = ‘0’ then 𝑺𝑳(𝒕) = √𝟐𝑷𝑺𝐜𝐨𝐬(𝟐𝝅𝒇𝒄 − 𝜴)𝒕
Where 𝑷𝑺 is the power of the signal, 𝒇𝒄= center frequency or carrier frequency.
Therefore we have
𝜴
𝒇𝑯 = 𝒇𝒄 + 𝟐𝝅 For symbol ‘1’
𝜴
𝒇𝑳 = 𝒇𝒄 − 𝟐𝝅 For symbol ‘0’
BFSK is commonly used in caller ID, at higher bitrates for weather copy. It is used in amateur
radio.
MSIT/ECE/Digital Communication Lab/ EC592
3. Requirement:
A.
Sl.NO ITEM QUANTITY
1 Cathode- Ray Oscilloscope 01
Experimental Kit ST 2106, ST
2 2107 and with connecting 01
cables.
ST 2016
MSIT/ECE/Digital Communication Lab/ EC592
Sl. no
clc;
clearall;
closeall;
T=1;
fc=10;
fs=25;
t=0:T/100:1;
c=sqrt(2/T)*sin(2*pi*fc*t);
d=sqrt(2/T)*sin(2*pi*fs*t);
N=8;
m=rand(1,N);
t1=0;
t2=T;
for i=1:N
t=[t1:0.01:t2]
if m(i)>0.5
m(i)=1;
m_s=ones(1,length(t));
fsk_sig(i,:)=c;
else
m(i)=0;
m_s=zeros(1,length(t));
fsk_sig(i,:)=d;
end;
message(i,:)=m_s;
t1=t1+(T+0.01);
t2=t2+(T+0.01);
subplot(4,1,2);
axis([0 N -2 2]);
plot(t,message(i,:),'g');
title('message signal');
xlabel('t--->');
ylabel('m(t)');
gridon
holdon
MSIT/ECE/Digital Communication Lab/ EC592
subplot(4,1,4);
plot(t,fsk_sig(i,:));
title('FSK signal');
xlabel('t--->');
ylabel('s(t)');
gridon
holdon
end;
holdoff
subplot(4,1,3);
plot(t,c);
title('carrier signal');
xlabel('t--->');
ylabel('c(t)');
gridon
subplot(4,1,1);
stem(m);
title('binary data bits');
xlabel('n--->');
ylabel('b(n)');
gridon
Observations:
MSIT/ECE/Digital Communication Lab/ EC592
6. Area of applications:
Bluetooth or BLE(Bluetooth Low Energy)
high frequency radio transmission
coaxial cable based LAN
7. Question Banks:
1. Is FSK reception Phase Coherent?
2. Which FSK has no phase discontinuity?
3. The spectrum of BFSK may be viewed as the sum of two signals.
4. The frequency shifts in the BFSK usually lies in the range 1 KHz or 1MHz.
5. Full form of QFSK and BFSK.
8. References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No: 8
Name of the Experiment:
PART A):- Study of BPSK modulator and demodulator technique by Hardware
PART B):- Study of BPSK modulator technique by Software
1. A. Course Outcome :CO592.4: The students will be able to experiment with various type of
digital modulation techniques like ASK, PSK, FSK
1. Theory:
Phase Shift Keying (PSK) is the digital modulation technique in which the phase of the
carrier signal is changed by varying the sine and cosine inputs at a particular time. PSK
technique is widely used for wireless LANs, bio-metric, contactless operations, along
with RFID and Bluetooth communications.
Binary PSK is also called as 2-phase PSK or Phase Reversal Keying. In this technique,
the sinusoidal carrier takes two phase reversals such as 0° and 180° to represent binary
symbol ‗1‘ and ‗0‘.
BPSK Modulator
The block diagram of Binary Phase Shift Keying consists of the balance modulator
which has the carrier sine wave as one input and the binary sequence as the other input.
MSIT/ECE/Digital Communication Lab/ EC592
The modulation of BPSK is done using a balance modulator, which multiplies the two
signals applied at the input. For a zero binary input, the phase will be 0° and for a high
input, the phase reversal is of 180°.
2. Requirement:
A.
clc;
clearall;
closeall;
T=1;
fc=2;
t=0:T/100:1;
c=sqrt(2/T)*sin(2*pi*fc*t);
d=sqrt(2/T)*sin(2*pi*fc*t+pi);
N=8;
m=rand(1,N);
t1=0;
t2=T;
for i=1:N
t=[t1:0.01:t2]
if m(i)>0.5
m(i)=1;
m_s=ones(1,length(t));
psk_sig(i,:)=c;
else
m(i)=0;
m_s=zeros(1,length(t));
psk_sig(i,:)=d;
end;
message(i,:)=m_s;
MSIT/ECE/Digital Communication Lab/ EC592
t1=t1+(T+0.01);
t2=t2+(T+0.01);
subplot(4,1,2);
axis([0 N -2 2]);
plot(t,message(i,:),'g');
title('message signal');
xlabel('t--->');
ylabel('m(t)');
gridon
holdon
subplot(4,1,4);
plot(t,psk_sig(i,:));
title('PSK signal');
xlabel('t--->');
ylabel('s(t)');
gridon
holdon
end;
holdoff
subplot(4,1,3);
plot(t,c);
title('carrier signal');
xlabel('t--->');
ylabel('c(t)');
gridon
subplot(4,1,1);
stem(m);
title('binary data bits');
xlabel('n--->');
ylabel('b(n)');
gridon
MSIT/ECE/Digital Communication Lab/ EC592
5. Area of applications:
6. Question Banks:
7. References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma
MSIT/ECE/Digital Communication Lab/ EC592
Experiment No: 9
Name of the Experiment: Study of Bit Error Rate Analysis of BPSK Modulation
1. A. Course Outcome :CO592.4: The students will be able to understand of Bit Error Rate
Analysis of BPSK Modulation
2.Theory:
Bit error rate (BER) of a communication system is defined as the ratio of number of error
bits and total number of bits transmitted during a specific period. It is the likelihood that a
single error bit will occur within received bits, independent of rate of transmission.
With Binary Phase Shift Keying (BPSK), the binary digits 1 and 0 maybe represented by the
analog levels and respectively. The transmitted waveform gets corrupted by
noise , typically referred to as Additive White Gaussian Noise (AWGN).
The received signal,
when bit 1 is transmitted and
when bit 0 is transmitted.
The conditional probability distribution function (PDF) of for the two cases are:
3Requirement:
A.
MATLAB Code
clear; close all; clc; tic;
% BPSK
M = 2;
% bit number
N = 100;
% randam bit generation
Bits_a = randi([0 M-1],1,N);
% Modulatiom BPSK 0 - > -1; 1 - > 1
Bits_bpsk = 2 * Bits_a-1;
for k = 1:N
if Bit_w(k)==1
else
end
end
mean(abs(noise.^2))
%test the power of the noise
SNR=0:9;
%set SNR in dB
snr_lin=10.^(SNR/10);
y=zeros(length(SNR),N);
for i=1:length(SNR)
y(i,:)=real(sqrt(snr_lin(i))*Bit_e+noise);
end
%reciever and ber count
err=zeros(length(SNR),N);
Err=zeros(10,2);
for i=1:length(SNR)
for j=1:N
if y(i,j)>=0
y(i,j)=1;
else
y(i,j)=0;
end
end
err(i,:)=abs(y(i,:)- Bits_a);
Err(i,:)=size(find(err(i,:)));
end
%calculating BER
ber=zeros(length(SNR),1);
for i=1:length(SNR)
ber(i)=Err(i,2)/N;
end
semilogy (SNR,ber,'b*-','linewidth',1);
grid on;
hold on;
semilogy (SNR,theoryBer,'r+-','linewidth',1);
grid on;
xlabel('Eb/N0');
ylabel('BER');
legend('Simulation','Theory') ;
toc;
4.Results and Observations:
6.Area of applications:
7.Question Banks:
8.References:
1. Communication System by Singh and Sapre.
2. Communication System by Sanjoy Sharma