Digital Comm Lab Manual
Digital Comm Lab Manual
Digital Comm Lab Manual
AFFLIATED TO
LUCKNOW, UP
SHRI RAMSWAROOP MEMORIAL GROUP OF PROFESSIONAL COLLEGES
B. TECH. (EC) VI SEM. (2020-21)
Digital Communication Lab (KEC-651)
INDEX
S No Name of Experiment CO Page(from…to...)
EXPERIMENT NO:-1
OBJECT: -To study generation of Unipolar RZ & NRZ Line Coding.
APPARATUS REQUIRED:
S.No. Instrument Required Specification Quantity
01 Training kit ST-2106 Scientech 1
02 CRO 20 MHz Scientech 1
03 Connecting Probes
THEORY: -
UNIPOLAR LINE CODING: -
Line coding is the process of converting digital data to digital signals.In Unipolar line coding all
the signal levels are either above or below the axis. It has only one voltage level other than zero.
The symbols 0&1 in digital system can represented in various formats with different levels and
wave forms. The selection of particular format for common pulse depends on the systems band
width, system’s ability to pass DC level information, error checking facility, case of clock
regeneration & synchronization at receiver, complexity & cost etc.
Fig.(1.1)
PROCEDURE:-
1. Connect the ground, clock, data nodes of 8 bit variable data generator (ST2111) to clock, data
input & ground nodes of data formatting circuit.
2. Connect the CRO on the output node of unipolar NRZ available at data formatting circuit &
trace out the waveform.
3. Connect the CRO on the output node of unipolar RZ available at data formatting circuit &
trace out the waveform.
RESULT:-
Waveform of the unipolar NRZ& RZ format has been observed on CRO & traced out.
PRECAUTIONS:-
1. Don’t make loose connection.
2. Check the connection before switch ON the power supply.
3. Check the all-switch fault carefully.
RELATED QUESTIONS: -
Q.1 What is meant by Line coding?
Q.2 What is unipolar line coding?
Q.3 What do you mean by RZ and NRZ linecoding?
Q.4 Convert 1010 (binary data) in to digital waveform using unipolar RZ& NRZ line coding.
Q.5 What are advantages and disadvantages of unipolar line coding?
EXPERIMENT NO:-2
OBJECT:-To study generation of Polar RZ & NRZ Line Coding.
APPARATUS REQUIRED:
S.No. Instrument Required Specification Quantity
01 Training kit ST-2106 Scientech 1
02 CRO 20 MHz Scientech 1
03 Connecting Probes
THEORY: -
POLAR LINE CODING: -
Line coding is the process of converting digital data to digital signals.In Polar line coding the
voltages are on the both sides of the axis.which means it will have both positive and negative
values for voltages or amplitude, it is quite like NRZ scheme but, here we have NRZ-L (i.e.,
NRZ-Level) and NRZ-I (i.e., NRZInvert).It has two voltage level other than zero. The symbols
0&1 in digital system can represented in various formats with different levels and wave forms.
The selection of particular format for common pulse depends on the systems band width, system’s
ability to pass DC level information, error checking facility, case of clock regeneration &
synchronization at receiver, complexity & cost etc.
Fig.2.1
PROCEDURE: -
1. Connect the ground, clock, data nodes of 8-bit variable data generator (ST2111) to clock, data
input & ground nodes of data formatting circuit.
2. Connect the CRO on the output node of Unipolar NRZ-L, NRZ-I &RZ available at data
formatting circuit & trace out the waveform.
RESULT: -
Waveform of the Unipolar NRZ-L, NRZ-I &RZ format have been observed on CRO & traced
out.
PRECAUTIONS: -
1. Don’t make loose connection.
2. Check the connection before switch ON the power supply.
3. Check the all-switch fault carefully.
RELATED QUESTIONS:-
Q.1 What is meant by Line coding?
Q.2 What is polar line coding?
Q.3 What do you mean by RZ and NRZ linecoding?
Q.4 Convert 1010 (binary data) in to digital waveform using polar RZ& NRZ line coding.
Q.5 What are advantages and disadvantages of polar line coding?
EXPERIMENT NO:-3
OBJECT:-To study generation of Bipolar RZ & NRZ Line Coding.
APPARATUS REQUIRED:
S.No. Instrument Required Specification Quantity
01 Training kit ST-2106 Scientech 1
02 CRO 20 MHz Scientech 1
03 Connecting Probes
THEORY: -
BIPOLAR LINE CODING: -
In this scheme there are three voltage levels positive, negative, and zero. The voltage level for one
data element is at zero, while the voltage level for the other element alternates between positive
and negative.Bipolar encoding, binary zero ('0') is represented by 0 voltage whereas binary one
('1) is represented by alternating positive and negative voltages. The Bipolar coding technique
uses different types of pulses based on which it is known as NRZ (Non-Return to Zero) or RZ
(Return to Zero).
Fig.3.1
PROCEDURE: -
1. Connect the ground, clock, data nodes of 8-bit variable data generator (ST2111) to clock, data
input & ground nodes of data formatting circuit.
2. Connect the CRO on the output node of Bipolar NRZ &RZ available at data formatting circuit
& trace out the waveform.
RESULT: -
Waveform of the Bipolar NRZ &RZ format have been observed on CRO & traced out.
PRECAUTIONS: -
1. Don’t make loose connection.
2. Check the connection before switch ON the power supply.
3. Check the all-switch fault carefully.
RELATED QUESTIONS: -
Q.1 What is meant by Line coding?
Q.2 What is bipolar line coding?
Q.3 What do you mean by RZ and NRZ linecoding?
Q.4 Convert 1010 (binary data) in to digital waveform using unipolar RZ& NRZ line coding.
Q.5 What are advantages and disadvantages of polar line coding?
EXPERIMENT NO:-4
OBJECT: - Implementation and analysis of Binary Amplitude shift keying BASK modulation
and demodulation
APPARATUS REQUIRED: -
S. No. Apparatus name Specification Quantity
01 Transmitter kit ST-2106 Scientech 1
02 Receiver kit ST-2107 Scientech 1
03 8bit variable data generator ST-2111 Scientech 1
04 CRO 20MHz Scientech 1
THEORY: -
To transmit the digital data from one place to another, we have to choose the transmission
medium. It is not possible to send the digital data directly over the antenna because the antenna of
practical size works on very high frequencies much higher than our data transmission rate. To be
able to transmit the data over antenna, we have to MODULATE the carrier signal phase
frequencies or amplitude etc. which is varied in accordance with the digital data. At the receiver
we separate the signal from digital information by the process of “DEMODULATION”.
Modulation also allows different data streams to be transmitted our same channel.
This process is called as MULTPLEXING & result in a considerable saving of available
bandwidth. Some of the basic digital modulation techniques are ASK PSK & FSK.
Fig. 4.1
PROCEDURE:-
1. Connect the ground, clock, data nodes of 8 bit variable data generator (ST-2111) to clock,
data input & ground nodes of data formatting circuit.
2. Connect the output node of NRZ (L) available at node 5 to modulation I/P node of carrier
modulation circuit available at node 27.
3. Connect the node16 available at carrier generator circuit to node 26 available at carrier
generator circuit to node 26 available at carrier modulation circuit.
4. Do proper adjustments via carrier offset, gain and modulation offset nodes.
5. Connect the output node of carrier modulation circuit available at node 28 to CRO & trace
out the ASK waveform.
6. For Demodulation, connect the output of carrier modulation circuit available at node 28 to
the ASK demodulator available at node 21.
7. Connect the output node 22 of ASK demodulator to the input of LPF available at node 27.
8. Connect the CRO at LPF output available at node 28 &trace out the demodulated ASK wave
form.
RESULT:-
The study modulation &demodulation is completed.
PRECAUTIONS: -
1. Analyze the kit carefully.
2. Observe the wave form carefully.
RELATED QUESTIONS: -
Q.1 What is modulation and demodulation?
Q.2 What is digital modulation and state various techniques?
Q.3 What do you mean by BPSK?
Q.4 What is multiplexing?
Q.5 Explain the need of modulation and demodulation.
EXPERIMENT NO:-5
OBJECT:- Implementation and analysis of Binary Frequency shift keying (BFSK) modulation
and demodulation.
APPARATUS REQUIRED: -
S.No. Apparatus name Specification Quantity
01 Transmitter kit ST-2106 Scientech 1
02 Receiver kit ST-2107 Scientech 1
03 8 bit variable data generator ST-2111 Scientech 1
04 CRO 20MHz Scientech 1
THEORY: -
In frequency shift keying the carrier frequency is shifted in steps i.e. from one frequency to one
particular value of data & another corresponding to another value of digital data. The higher
frequency is used to represented a data ‘1”& lower frequency a data ‘0’ thus,
DATA = 1: Higher frequency
DATA = 0: Low frequency
On a closer look at the BFSK wave, it can be represented as the sum of BASK wave forms.
BFSK MODULATION:-
Let us now apply the binary data stream to 1st BASK modulator using the high frequency carrier.
Let us now invert the original data stream.
Original 0110001011
Inverted 1001110100
Now apply the inverted data stream to the 2ndBASK modulator using a lower frequency carrier.
The result is the original data ‘0’ filled with lower frequency carrier& 1 is filled with higher
frequency carrier.
Finally, we will sum the two ASK waveform, to get the BFSK wave.
FSK DEMODULATION:-
The demodulation of FSK is done be using a phase locked loop which tries to ‘lock’ to the input
frequency. It is achieved by generating corresponding output voltage to be fed to the voltage-
controlled oscillator. If any frequency deviation at its input is encountered, the PLL follows the
frequency changes and generates proportional output voltage. The output of PLL contains carrier
components. Therefore, the signal is passed through the LPF to remove them. The resulting wave
is to be rounded off to be used for digital data processing. Also, the amplitude level may be very
low due to channel attenuation. Since the amplitude change in FSK wave form does not matter.
Thus it is a modulation technique which is very reliable even in noisy and fading channels. But
there is always a price to be paid to gain that advantage. Theprice in this case is widening of the
required bandwidth. The band width increase depends upon the two-carrier frequency used and
the digital data rate. The bandwidth required is at least double than inthe case of BASK
modulation.This means that lesser number of communication channels for a given band of
frequencies.
PROCEDURE:-
1. Connect the ground, clock, data nodes of 8 bit variable data generator (ST-2111) to clock,
data input & ground nodes of data formatting circuit.
2. Connect the output node of NRZ (L) available at node 5 to modulation I/P node of carrier
modulation circuit available at node 27.
3. Connect the node16 available at carrier generator circuit to node 26 available at carrier
modulation circuit.
4. Do proper adjustments via carrier offset, gain and modulation offset nodes.
5. Connect the 960 KHz carrier frequency available at node 17 to node 29.
RESULT:-
The study of BFSK modulation and demodulation is completed.
PRECAUTION:-
1. Connect the circuit carefully.
2. Observe the wave forms carefully.
RELATED QUESTIONS:-
EXPERIMENT NO:-6
OBJECT:Implementation and analysis of BPSK modulation and demodulation.
APPARATUS REQUIRED:
THEORY:
Binary Phase Shift Keying (BPSK) is digital transmission scheme where the binary data is
transmitted using out of phase signals. During logic ‘0’ a preset number of cycles of a sinusoidal
carrier signal is transmitted and during logic ‘1’ the same number of cycles of the carrier signal is
transmitted but with 1800 phase shift.0
MODULATOR:
A simple BPSK modulator circuit using an NPN-PNP transistor pair, and an Op-amp is shown in
figure. The transistors work as switches and the Op amp works as inverting/noninverting
amplifier. The carrier signal is fed to the collectors and the message signal is fed to the bases of
the two transistors simultaneously. The emitters of the transistors are grounded. When the
message signal is at logic ‘1’ (+5V), the NPN transistor is ON and works as a closed switch. The
PNP transistor is OFF and works as an open switch. The Op-amp now works as a non-inverting
amplifier with the carrier signal fed to its non-inverting input. The carrier signal reaches the
output without any phase shift. When the message signal is at logic ‘0’ (-5V), the NPN transistor
is OFF and the PNP transistor ON. The Op amp works as an inverting amplifier with the carrier
signal fed to its inverting pin. The carrier signal now reaches the output with 1800 phase shift.
Thus, the carrier signal switches its phase as the message signal switches between ‘0’ and ‘1’. The
resulting output is BPSK modulated.
DEMODULATOR:
The BPSK demodulator circuit shown in figure consists of an Op-Amp difference amplifier, a
rectifier, an envelope detector and a comparator. The difference amplifier which is fed with the
unmodulated carrier signal at the non-inverting input and the BPSK modulated signal at the
inverting input passes only the phase shifted signal to the output. The in phase signals get
subtracted completely. The envelope detector removes the carrier content and recovers the data
information. The comparator inverts and level limits the signal to regain the correct logic level.
PROCEDURE:
CIRCUIT DIAGRAM:
WAVEFORM:
RESULT:-
BPSK modulator and demodulator circuits were set up and the waveforms were plotted.
PRECAUTION:-
RELATED QUESTIONS:-
Q.1 What is the phase difference between the two transmitted signals through BPSK
scheme?
Q.2 Express the BPSK signal mathematically.
Q.3 State the Euclidean distance for BPSK.
Q.4 What is advantage and disadvantage of BPSK receiver?
Q.5 Which type of receiver is used for BPSK detection?
EXPERIMENT NO:-7
OBJECT: Implementation and analysis of QPSK modulation and demodulation
APPARATUS REQUIRED:
THEORY:
QPSK is also known as quaternary PSK, quadri phase PSK, 4-PSK, or 4-QAM. It is a phase
modulation technique that transmits two bits in four modulation states. Phase of the carrier takes
on one of four equally spaced values such as π/4, 3π/4, 5π/4and7π/4.
Si(t) = √2E/T cos {2 πƒct + (2i – 1) π/4} , 0≤ t ≤Tb ,
=0 elsewhere
Each of the possible value of phase corresponds to a pair of bits called dibits. Thus, the gray
encoded set of digits: 10,00,01,11
Si (t) = √2E/T cos [(2i – 1)π/4] cos (2πfct) - √2E/T sin [(2i –1) π/4)] sin (2πfct) ,0≤ t ≤Tb
= 0 , elsewhere
The I/p binary sequence b(t) is represented in polar from with symbols 1 & 0 represented as
+√E/2 and -√E/2. This binary wave is demultiplexed into two separate binary waves consisting of
odd & even numbered I/P bits denoted by b1 (t) & b2 (t). b1 (t) & b2 (t) are used to modulate a pair
of quadrature carrier. The result is two PSK waves. These two binary PSK waves are added to
produce the desired QPSK signal
QPSK receiver consists of a pair of correlators with common I/P & supplied with locally
generated signal c1 (t) & c2 (t). The correlator output, x1, & x2 are each compared with a
threshold of zero volt. If x1 > 0, decision is made in favour of symbol‘1’forupper channel and if
x1 > 0, decision is made in favour of symbol 0. Parallelly if x2 >0, decision is made in favour of
symbol 1 for lower channel & if x2 <0, decision is made in favour of symbol 0. These two
channels are combined in a multiplexer to get the original binary output.
PROCEDURE:
1. Test all the components and probes.
2. Set up the circuits on the kit.
3. Feed 2Vpp, 1KHz sine wave as carrier input and 10Vpp, 200Hz square wave signal as the
message input.
4. Observe the QPSK output on CRO and plot the waveforms.
5. Feed this QPSK modulated signal to the inverting input of the demodulator. Also feed the
unmodulated carrier signal (2Vpp, 1KHz) to the non-inverting input.
6. Observe waveforms on CRO. Adjust the potentiometer to obtain the correct output (if needed).
7. Plot the waveforms.
WAVEFORM:
The QPSK waveform for two-bits input is as follows, which shows the modulated result for
different instances of binary inputs.
RELATED QUESTIONS:-
EXPERIMENT NO:-8
OBJECT: - To Simulate differential phase shift keying technique using MATLAB software
and also observe its performance.
APPARTUS USED: - PC
THEORY:-
DPSK involves 2 basic operations at the transmitter, differential encoding of the i/p binary wave
and phase shift keying, hence the name DPSK. In the differential encoding at the transmitter
input, starts with an arbitrary first bit serving as reference and thereafter the sequence is generated
using b(t) -1' previous value of differentially encoded digit d(t) i/p binary digit at time k Tb.
Assuming reference bit added to b(t) is a'1'. B(k) is thus generated and used to phase shift key a
carrier with phase angles 0 and 1800 .
In digital transmission, the number of bit errors is the number of received bits of a data stream
over a communication channel that has been altered due to noise, interference, distortion or bit
synchronization errors. The bit error rate or bit error ratio (BER) is the number of bit errors
divided by the total number of transferred bits during a studied time interval. BER is a unitless
performance measure, often expressed as a percentage. In a communication system, the receiver
side BER may be affected by transmission channel noise, interference, distortion, bit
synchronization problems, attenuation, wireless multipath fading, etc. The BER may be analyzed
using stochastic computer simulations. If a simple transmission channel model and data source
model is assumed, the BER may also be calculated using Binary symmetric channel (used in
analysis of decoding error probability in case of non bursty bit errors on the transmission channel)
and Additive white gaussian noise (AWGN) channel without fading.
# Let d (t) = 1 1 0 1 0 1 1 1
TRANSMITTER CIRCUIT: -
d (t) = 1 1 0 1 1 0 1 0 1 0 1
b (t) = 1 1 1 0 0 0 1 1 0 0 1 1
(Let)
RECEIVER CIRCUIT:-
DPSK Demodulator
PROGRAM :-
N = 10^4 % number of bits or symbols
rand('state',100); % initializing the rand() function
randn('state',200);% initializing the randn() function
ip = rand(1,N)>0.5;% generating 0,1 with equal probability
ipD = mod(filter(1,[1 -1],ip),2); % %differential encoding y[n]=y[n-1]+x[n]
s = 2*ipD-1; % BPSK modulation 0 -> -1; 1 -> 0
n = 1/sqrt(2)*[randn(1,N) + j*randn(1,N)]; % white gaussian noise, 0dB variance
Eb_N0_dB = [-3:10]; % multiple Eb/N0 values
for ii = 1:length(Eb_N0_dB)
y = s + 10^(-Eb_N0_dB(ii)/20)*n; % additive white gaussian noise
ipDHat_coh = real(y) > 0; % coherent demodulation
ipHat_coh = mod(filter([1 -1],1,ipDHat_coh),2); %differential decoding
nErr_dbpsk_coh(ii) = size(find([ip - ipHat_coh]),2); % counting the number of errors
end
simBer_dbpsk_coh = nErr_dbpsk_coh/N;
theoryBer_dbpsk_coh = erfc(sqrt(10.^(Eb_N0_dB/10))).*(1 - .5*erfc(sqrt(10.^(Eb_N0_dB/10))));
close all
figure
semilogy(Eb_N0_dB,theoryBer_dbpsk_coh,'b.-');
hold on
semilogy(Eb_N0_dB,simBer_dbpsk_coh,'mx-');
axis([-2 10 10^-6 0.5])
grid on
legend('theory', 'simulation');
xlabel('Eb/No, dB')
ylabel('Bit Error Rate')
title('Bit error probability curve for coherent demodulation of DBPSK')
RESULT:-
1. Simulation of DPSK is done.
2. Performance is observed by measuring the BER characteristics. Characteristics are similar to
theoretical result.
RELATED QUESTIONS:-
EXPERIMENT NO:-9
OBJECT:Implementation and analysis of Delta modulation and demodulation.
APPARATUS USED:
SNO APPARATUS NAME SPECIFICATION QUANTITY
01 Training kit ST-2105 Scientech 1
02 CRO 20MHz Scientech 1
03 Connecting Probes 2
THEORY:
Delta modulation is a system of digital modulation scheme in which the difference between the
sample value at sampling time K and sampling value at previous sampling time (K-1) is encoded
into just a single bit. One way in which delta modulator and demodulator is assembles is as shown
es is as shown
RELATED QUESTIONS:-
EXPERIMENT NO:-10
OBJECT:To study encoding and decoding of Linear Block Codes
APPARATUS REQUIRED:
THEORY:
Error Detection and Correction: Error detection is the ability to detect the presence of errors
caused by noise or other impairments during transmission from the transmitter to the receiver.
Error correction is the additional ability to reconstruct the original, error-free data. There are two
basic ways to design the channel code and protocol for an error correcting system.
ENCODING
DECODING:-
The decoding process is done in the following steps:
RESULTS:
The understanding of modulation and demodulation schemes for linear block code developed.
RELATED QUESTIONS:-