Department of Electronics and Communication: Atria Institute of Technology
Department of Electronics and Communication: Atria Institute of Technology
Prepared By:
Pushpa.Y
Asst.Prof
Dept. of ECE
Atria IT
SYLLABUS
CREDITS – 02
Laboratory Experiments
PART-B:
Simulation Experiments using SCILAB/MATLAB/Simulink or LabView
1. Simulate NRZ, RZ, half-sinusoid and raised cosine pulses and generate eye
diagram for binary polar signaling.
2. Simulate the Pulse code modulation and demodulation system and display the waveforms.
3. Simulate the QPSK transmitter and receiver. Plot the signals and its constellation diagram.
4. Test the performance of a binary differential phase shift keying system by
simulating the non-coherent detection of binary DPSK.
CYCLE OF EXPERIMENTS
CYCLE I
1. Simulate NRZ, RZ, half-sinusoid and raised cosine pulses and generate eye diagram
for binary polar signaling.
2. Simulate the Pulse Code modulation and demodulation system and display the
waveforms.
3. Simulate the QPSK transmitter and receiver. Plot the signals and its constellation
diagram.
4. Test the performance of a binary differential phase shift keying system by
simulating the non-coherent detection of binary DPSK.
CYCLE - I
EXPERIMENT NO. 1
AIM: Time division multiplexing and recovery of two band limited signals using PAM
technique.
Preamble / Theory:
(or)
In Time Division Multiplexing (TDM), different time periods are allotted for different
signals so that a common communication channel is utilized for transmission of these signals
without interference. Thus in TDM all the samples obtained from different signals are
accommodated on a time shared basis within one sampling interval T s.
Each input message signal is first restricted in bandwidth by an LPF to remove the frequencies
that are not essential to adequate signal transmission. The LPF outputs are then applied to a
commutator that is usually implemented using electronic switching circuitry. Following the
commutator process, the multiplexed signal into a form that is suitable for transmission over the
common channel.
At the receiver end of the system, the received signal is applied to pulse demodulator,
which performs the inverse operation of the pulse modulator. The narrow samples produced at
the pulse demodulator are distributed to the appropriate low pass filters. By means of
decommutator, reconstruction filters operates in synchronization with the commutator, since the
synchronization is essential for satisfactory operation of the system.
DESIGN:
Procedure:
WAVEFORMS:
Tabulation:
Amplitude
Frequency
EXPERIMENT NO.2
AIM : To study the performance of the circuit that is used for generation and detection of
Amplitude shift keying.
The simplest and most common form of ASK operating as a switch is using the presence
of a carrier wave to indicate a binary one and its absence to indicate a binary zero. This type of
modulation is called ON-OFF keying.
Applications:
Capacitor – 0.01µF
Op amp - µA 741
Diode - 0A79
CIRCUIT DIAGRAM:
DESIGN:
MODULATOIN:
DEMODULATION:
Given fm = 300Hz
fm = 1/ 2∏R1C1
PROCEDURE:
Amplitude
Frequency
WAVE FORMS:
DEMODULATION WAVEFORMS:
EXPERIMEMT NO. 3
AIM: To design an FSK modulator and demodulator and study the performance of the circuits.
Preamble / Theory:
AFSK is not always being used for high –speed data communication schemes. In addition
to its simplicity AFSK has the advantage that encoded signals will pass through AC-coupled
links, telephone links, including most equipment originally designed to carry music or speech.
The simplest and most common form of FSK operates as two switches, using the
presence of one carrier wave to indicate a binary one and another one to indicate binary zero.
Op amp - µA741
Diode - 0A79
CIRCUIT DIAGRAM:
FSK MODULATOR:
DESIGN:
VRB = 0.3V
Dept of ECE Atria Institute of Technology Page 14
Advanced Communication Lab
IB = Ic / hfe = 2.5 / 100 = 2.5µA
IB(SAT) = 1.2IB
IBsat = 30µA
FSK DEMODULATOR:
fm = 1 / 2RC
Assuming C = 0.1µF
R = 15.9KΩ
fm = 100Hz
fc1 = 1 / 2R1C1
fc1 = 1 KHz
R1 = 1.59 KΩ
PROCEDURE:
Generation:
1. Rig up the circuit as given in the circuit diagram for generation of FSK.
2. Apply m(t ) > 7Vp-p ,300Hz square wave.
3. Apply c1(t) = 3Vp-p, 2KHz and c2(t) = 3Vp-p, 10KHz Sine wave.
4. Observe FSK output at the transmitter at the emitter of the transistor on an oscilloscope.
Detection:
Tabulation:
Amplitude
Frequency
WAVE FORMS:
MODULATION WAVEFORMS:
DEMODULATION WAVEFORMS:
EXPERIMENT NO. 4
AIM: To design a Phase Shift keying (PSK) modulator and demodulator circuit, and study their
performance.
Preamble / Theory
Phase-shift keying (PSK) is a digital modulation scheme that conveys data by changing, or
modulating the phase of a reference signal (the carrier wave).Any digital modulation scheme
uses a finite number of distinct signals to represent digital data. PSK uses a finite number of
phases; each assigned a unique pattern of binary bits. Usually each phase encodes an equal
number of bits. Each pattern of bits forms the symbol that is represented by the particular phase.
The demodulator which is designed specifically for the symbol it represents thus recovering the
original data. This requires the receiver to be able to compare the phase of the received signal to
a reference signal- such a system is termed coherent PSK (CPSK).
Capacitor – 0.1µF
OP Amp - µA741,
Diode - 0A79
CIRCUIT DIAGRAM:
PSK MODULATOR:
PROCEDURE:
Generation:
5. Rig up the circuit as given in the circuit diagram for generation of FSK.
6. Apply m(t ) > 7Vp-p ,300Hz square wave.
7. Apply c1(t) = 3Vp-p, 2KHz and c2(t) = 3Vp-p, 10KHz Sine wave.
8. Observe PSK output at the transmitter at the emitter of the transistor on an oscilloscope.
Detection:
EXPERIMENT NO. 5
Equipments / Components required: Micro wave test bench, CRO, VSWR meter, Klystron
power supply, cooling fan, wave guide stand, matched termination, detector mount, cables.
VSWR
Tunable probe
Meter/CRO
Klystron
power
supply Detector
PROCEDURE:
Mod – switch : AM
5. Switch ‘ON’ the Klystron power supply, VSWR meter, and cooling fan switch.
6. Switch ‘ON’ Beam voltage switch and set beam voltage at 300 V with help of beam
voltage knob.
7. Adjust the reflector voltage to get some deflection in VSWR meter.
8. Maximize the deflection with AM amplitude and frequency control knob of power
supply.
9. Tune the plunger of klystron mount for maximum deflection.
10. Tune the reflector voltage knob for maximum deflection.
11. Tune the probe for maximum deflection in VSWR meter.
12. Tune the frequency meter knob to get a ‘Dip’ on the VSWR scale and note down the
frequency directly from the frequency meter.
13. Replace the termination with movable sort, and detune the frequency meter.
14. Move the probe along the slotted line. The deflection in VSWR meter will vary. Move
the probe to minimum deflection position, to get accurate reading. If necessary increase
the VSWR meter range db switch to higher position. Note and record the probe position.
15. Move the probe to next minimum position and record the probe position again.
16. Calculate the guide wavelength as twice the distance between two successive minimum
positions obtained as above.
17. Measure the wave guide inner broad dimension, ‘a’ which will be around 22.86
mm for X- band.
18. Calculate the frequency by following equation.
F = C/ λ
CALCULATIONS:
Guide Wavelength:
VSWR:
Frequency:
F = C/ λ = C * λg2 + λc2
λgλc
Where,
λo = λgλc
λg2 + λc2
For dominnant TE10 mode rectangular wave guide λo, λg, λcare related as below:
λg is guide wavelength
CYCLE – II
EXPERIMENT NO. 6
Preamble / Theory: Attenuation is loss of power. During transit light pulse lose some of their
photons, thus reducing their amplitude. Attenuation for a fiber is usually specified in decibels per
kilometer. For commercially available fibers attenuation ranges from 1 dB / km for premium
small-core glass fibers to over 2000 dB / km for a large core plastic fiber. Loss is by definition
negative decibels. In common usage, discussions of loss omit the negative sign. The basic
measurement for loss in a fiber is made by taking the logarithmic ratio of the input power (Pi) to
the output power (Po).
PROCEDURE:
1 neper = 8. 686 dB
The objective of this experiment is to determine the bending loss in an optical fiber cable.
Dept of ECE Atria Institute of Technology Page 29
Advanced Communication Lab
THEORY:
Whenever the condition for angle of incidence of the incident light is violated the losses are
introduced due to refraction of light. This occurs when fiber is subjected to bending. Lower the
radius of curvature more is the loss.
PROCEDURE:
1. Repeat all the steps from 1 to 6 of the previous experiment using 1m cable.
2. Wind the FO cable on the mandrel and observe the corresponding AC amplifier output on
CRO. It will be gradually reducing showing loss due to bends.
AIM: The aim of this experiment is to measure the numerical aperture of the optical fiber
provided with kit using 660nm wavelength LED.
THEORY:
Numerical aperture refers to the maximum angle at which the light incident on the fiber end is
totally internally reflected and is transmitted properly along the fiber. The cone formed by
rotating of this angle along the axis of the fiber is the cone of acceptance; else it is refracted out
of the fiber core.
1. It is very important that the optical source should be properly aligned with the cable
& the distance from the launched point & the cable be properly selected to ensure that
the maximum amount of optical power is transferred to the cable.
2. This experiment is best performed in a less illuminated room
EQUIPMENTS:
PROCEDURE:
Figure. 4
1. Record the distance of screen from the fiber end L and note the diameter W of the spot.
2. Compute the numerical aperture from the formula given below
NA = W / √4L2 +W2
3. Vary the distance between in screen and fiber optic cable and make it coincide with one
of the concentric circles. Note its distance
4. Tabulate the various distances and diameters of the circles made on the white screen and
compute the numerical aperture from the formula given above.
Inferences: The N.A. recorded in the manufacturer's data sheet is 0.5 typical.
Bending loss:
EXPERIMENT NO. 7
Equipments/Components required:
1. Microwave Generator
2. SWR Meter
3. Detector
4. RF Amplifier
5. Transmitter and receiving mast
6. Mains cord
7. Antennas
THEORY:
If a transmission line propagating energy is left open at one end, there will be radiation from this
end. The Radiation pattern of an antenna is a diagram of field strength or more often the power
intensity as a function of the aspect angle at a constant distance from the radiating antenna. An
antenna pattern is of course three dimensional but for practical reasons it is normally presented
as a two dimensional pattern in one or several planes. An antenna pattern consists of several
lobes, the main lobe, side lobes and the back lobe. The major power is concentrated in the main
lobe and it is required to keep the power in the side lobes arid back lobe as low as possible. The
power intensity at the maximum of the main lobe compared to the power intensity achieved from
an imaginary omni-directional antenna (radiating equally in all directions) with the same power
fed to the antenna is defined as gain of the antenna.
As we know that the 3dB beam width is the angle between the two points on a main lobe where
the power intensity is half the maximum power intensity. When measuring an antenna pattern, it
Dept of ECE Atria Institute of Technology Page 35
Advanced Communication Lab
is normally most interesting to plot the pattern far from the antenna. It is also very important to
avoid disturbing reflection. Antenna measurements are normally made at anechoic chambers
made of absorbing materials. Antenna measurements are mostly made with unknown antenna as
receiver. There are several methods to measure the gain of antenna. One method is to compare
the unknown antenna with a standard gain antenna with known gain. Another method is to use
two identical antennas, as transmitter and other as receiver. From following formula the gain can
be calculated.
Where
Pt is transmitted power
Pr is received Power,
If both, transmitting and receiving antenna are identical having gain G then above equation
becomes.
In the above equation Pt, Pr and S and o can be measured and gain can be computed. As is
evident from the above equation, it is not necessary to know the absolute value of P t and Pr only
ratio is required which can be measured by SWR meter.
PROCEDURE:
Directivity Measurement:
2. Now connect a Yagi antenna in horizontal plane to the transmitter mast and connect it to
the RF Output of microwave generator using a cable (SMA to SMA).
3. Set both the potentiometer (Mod Freq & RF Level) at fully clockwise position.
4. Now take another Yagi antenna and RF Amplifier from the given suitcase.
5. Connect the input terminal of the Amplifier to the antenna in horizontal plane using an
SMA (male) to SMA (female) L Connector.
6. Now connect the output of the Amplifier to the input of Detector and mount the detector
at the Receiving mast.
7. Connect one end of the cable (BNC to BNC) to the bottom side of receiving mast, and
another end to the input of SWR meter.
8. Now set the distance between Transmitter (feed point) and the receiver (receiving point)
at half meter.
9. Now set the receiving antenna at zero degree (in line of Transmitter) and Switch on the
power supply for Microwave Generator, SWR Meter. Also connect DC Adapter of RF
Amplifier to the mains.
10. Select the transmitter for internal AM mode and press the switch “RF On”.
11. Select the range switch at SWR meter at – 40dB position with normal mode.
12. Set both the gain potentiometers (Coarse & Fine) at fully clockwise position and input
select switch should be at 200 Ohm position. In case if reading is not available at – 40dB
range then press 200 k ohm (Input Select) to get high gains reading.
13. Now set any value of received gain at – 40dB position with the help of -
15. Mark the obtained reading on the radiation pattern plot at zero degree position.
16. Now slowly move the receiver antenna in the steps of 10 degree and plot the
corresponding readings.
17. Using the formula, Directivity = 41253/ (E x H) Determining the directive gain of the
antenna. Where E is the E plane 3dbbeam width in degrees and H in the H plane.
18. Directivity of the antenna is the measures of power density an actual antenna radiates in
the direction of its strongest emission, so if the maximum power of antenna (in dB) is
received at θ degree then directivity will be ....................dB at ........................Degree.
19. In the same way you can measure the directivity of the Dipole antenna.
20. For directivity measurement of the transformer fed Patch antenna connect transmitter
Yagi antenna in the vertical plane (Patch Antenna is vertically polarized). Since it is
comparatively low gain antenna distance can be reduced between transmitter and
receiver.
1 00 90 80
1 00 90 80 110 70
11 0 70 0 60
0 60 12
12 0 50
0 50 13
13
0
40
14
40
4
0
1
30
15
0
30
15
20
16
1 60
20
170
10
1 70
10
0
-60 -44
180
3 50
190
35 0
190
34
20
0
0
340
20
33
10
0
2
33
0
21
32
0
22
0
32
0
22
0 31
31 23 0
0 0
23 30
30 2 40 0
240 0 290
290 250 28 0
2 50 26 0 27 0
26 0 27 0
28 0
40
14
0
30
15
0
20
16
17 0
10
0
3 50
1 90
34
0
20
0
33
0
21
0
32
0
22
0 31
23 0
30
2 40 0
290
250
26 0 27 0 28 0
Dipole Antenna
2. Now connect a Yagi antenna in horizontal plane to the transmitter mast and connect it to
the RF Output of microwave generator using a cable (SMA to SMA).
3. Set both the potentiometer (Mod Freq & RF Level) at fully clockwise position.
5. Connect this antenna to the detector with the help of SMA (male) to SMA (female) L
Connector.
7. Connect one end of the cable (BNC to BNC) to the bottom side of receiving mast, and
another end to the input of SWR meter.
8. Now set the distance between Transmitter (feed point) and the receiver (receiving point)
at half meter.
9. Now set the receiving antenna at zero degree (in line of Transmitter) and Switch on the
power from both Generator & SWR Meter.
10. Select the transmitter for internal AM mode and press the switch “RF On”.
11. Select the range switch at SWR meter at – 40dB position with normal mode.
12. Set both the gain potentiometers (Coarse & Fine) at fully clockwise position and input
select switch should be at 200 Ohm position. In case if reading is not available at – 40dB
range then press 200 kOhm (Input Select) to get high gain reading.
13. Now set the maximum gain in the meter with the help of following -
Pr = ..................dB
15. Now remove the detector from the receiving end and also remove the transmitting Yagi
antenna from RF output.
17. Observe the output of detector on SWR meter that will be the transmitting power Pt.
Pt = ..................dB
18. Calculate the difference in dB between the power measured in step 14 and 17 which will
be the power ratio Pt/Pr.
Pt/Pr =........................
Pr/Pt =........................
19. Now we know that the formula for Gain of the antenna is:
Where:
Pt is transmitted power
Pr is received Power,
Gis gain of transmitting/receiving antenna (since we have used two identical antennas)
20. Now put the measured values in the above formula and measure the gain of the antenna
which will be same for both the antennas. Now after this step you can connect one known
gain antenna at transmitter end and the antenna under test at receiver end, to measure the
gain of the antennas.
21. Gain can be measured with the help of absolute power meter also (Recommended Model
NV105). For this, detector will not be used and directly the power sensor can be
connected to both the ends as described earlier.
EXPERIMENT NO. 8
2. VSWR meter
4. Detector
5. Matched loads
Provided in the Kit, is a parallel line (backward wave) directional coupler (15dB). The
impedance of input/output lines is 50. The length of the parallel coupled line region is quarter
wavelength at the centre frequency (around 2.4 GHz). The ports are decoupled by bending the
auxiliary line and main line at either ends of the parallel coupled section. For the experiment,
anyone of the ports can be chosen as the inputport. With respect to this input port, identify the
direct output port (port 2), the coupled port (port 3) and the isolated port (port 4). Measurement
of coupling involves measuring the transmission response between the input port (port 1) and the
coupled port (port 3). Similarly,
measurement of isolation of the coupler involves measuring the transmission response between
the input port and the isolated port (port4). While making the measurement between any two
ports, the remaining two ports will have to be terminated in matched loads.
PROCEDURE:
1. Assemble the set up shown in Fig. 1. Connect the output of the frequency meter directly
to the directional coupler (connect P to Q directly).
2. Switch on the source and the VSWR meter.(Before switching on the source, ensure that
there is sufficient attenuation to keep the RF output low) Set the frequency of the source
to 2.2 GHz. Adjust the power output of the source for a reasonable power indication on
the VSWR meter. Note the reading of the VSWR meter. Increase the frequency of the
source in steps of 0.1 GHz to 3 GHz and note the corresponding readings of the VSWR
meter.
3. Record the Frequencies in column 1 and VSWR meter readings (P indB) in column 2 of
4. Insert the parallel line coupler (DUT) between P and Q with input port (port 1) connected
to P and the coupled port (port 3) to Q. Terminate ports 2 and 4 of the parallel line
coupler in matched loads. Record the readings of the VSWR meter at the above
frequencies as P3out dB in column 3 of Table 1.
5. In order to determine the isolation property of the coupler, connect port 4 to the output
end (at Q). Record the readings of the VSWR meter at the same frequencies as P4out dB in
column 4 of the following Table.
2.0
2.1
:
:
3.0
CALCULATIONS:
Coupling in dB = Pin (dB) - P3out (dB). Denote this coupling as C (dB) = S31 (dB) and enter at
column 5 of Table 1.
Isolation in dB = Pin (dB) - P4out (dB). Denote this loss as S41 (dB) and enter at column 6 of the
Table 1.
Directivity in dB = Isolation (dB) - Coupling (dB). Enter this as D (dB) = S43 (dB) at column 7
of the Table 1.
1. The above procedure can be repeated by using Branchline (3db) Directional Coupler and
the readings are recorded in the table 2.
Power at direct output port in dB = Pin (dB) - P2out (dB). Denote this loss as S21 (dB) and enter at
column 6 of Table 2.
Coupling C (dB) = Pin (dB) - P3out (dB). Denote this coupling loss as S31 (dB) and enter at
column 7 of Table 2.
Isolation in dB = Pin (dB) - P4out (dB). Denote this loss as S41 (dB) and enter at column 8 of the
Table 2.
Directivity D (dB) = P30ut (dB) - P4out (dB). Denote this as S43 (dB) and enter at column 9 of the
AIM: Measurement of Substrate Dielectric Constant using Ring Resonator and determine the
relative dielectric constant r of the substrate. The known parameters are,
EQUIPMENT/COMPONENTS:
Microwave signal source (2.2 GHz) with modulation (1 KHz)
Attenuator pad
VSWR meter
Frequency meter
Items from the Kit
Microstrip ring resonator (DUT).
Detector
Matched load
Cables and adapters
n 0
2r0 n ,
f0 ef For n = 1, 2, 3…...
Where rois the mean radius of the ring and n is the mode number. The microstrip ring resonator
has the lowest order resonance for n = 1,for frequency range 2 - 3 GHz. For this mode, the field
maxima occur at the two coupling gaps and nulls occur at 90 locations from the coupling gaps.
Figure. Test bench set up for measuring resonance characteristics of a micro strip ring resonator
and determination of dielectric constant of the substrate
PROCEDURE:
1. The transmission loss response of the resonator can be measured using the Test Bench set
up given at Fig. 1.
2. Tabulate the results as per Table 1 at frequencies from 2.2 to 3 GHz in steps of 0.1GHz.
n 0
2r0 n , for n = 1, 2,3…..
f0 ef
2.1
3.0
AIM: To measure the power division, isolation and return loss characteristics of a matched 3 dB
power divider in the frequency range 2.2 to 3 GHz.
EQUIPMENT/COMPONENTS:
Microwave signal source with modulation (1 KHz)
Attenuator pad
VSWR meter
Frequency meter
Directional coupler
Detector
Matched loads
THEORY:
The microstrip power divider provided is of the 3 dB Wilkinson type the impedance of the
input/output lines is 50 and the isolation resistor connected between the two output lines has a
value of 100. Measuring the power division property involves measuring the transmission
response between the input port (port 1) and the two output ports (ports 2 and 3). While
measuring the transmission response between any two ports, the third port has to be terminated
in a matched load. Measuring the isolation property involves measuring the transmission
response between ports 2 and 3 by terminating port 1 in a matched load. Figure 1 shows the line
diagram of Y- junction as a power divider. Let port 1 be the input port that is matched to the
source (S11 = 0).
Figure 2 shows a matched power divider introduced by Wilkinson. Popularly known also as
Wilkinson power divider, it uses an isolation resistor R of value 2Z0 between ports 2 and 3. The
device is completely matched at all the three ports, and ports 2 and 3 are isolated from each other
at the centre frequency (f0).
Figure. 3
PROCEDURE:
1. Assemble the set up as shown in figure 3.
2. Switch on the source and the VSWR meter. Before switching on the source, ensure that
there is sufficient attenuation to keep the RF power output low.
3. Set the frequency of the source to 2.2 GHz. Adjust the power output of the source for a
reasonable power indication on the VSWR meter. Note the reading of the VSWR meter
as Pin dB in column 2 of Table 1. This is the reference input power.
4. Insert the power divider (DUT) with input port (port 1) and output ports (port 3)
connected to detector and terminate port 2 of the power divider in matched load. Record
the readings of the VSWR meter at the above frequencies as P 2outdB in column 3 of Table
1.
5. Interchange ports 2 and 3. That is, connect port 2 with a detector and terminate port 3 in
matched load. Record the readings of the VSWR meter at the same frequencies as P3out
dB in column 4 of the Table.
6. In order to determine the isolation between the two output ports, remove the power
divider and reconnect with port 2 at the input end and port 3 at the output end. Terminate
port 1 in matched load. Record the readings of the VSWR meter at the same frequencies
as P32out dB in column 5 of the Table 1.
CALCULATIONS:
Power Division:
Power loss from port 1 to port 2 = Pin (dB) - P2out (dB) = - 20 log10S21. Denote this loss as S21
(dB) and enter at column 6 of the Table 1.
Power loss from port 1 to port 3 = Pin (dB) - P3out (dB) = - 20 log10S31. Denote this loss as S31
(dB) and enter at column 7 of the Table 1.
Isolation:
Power Power
VSWR meter readings (dB) Isolation
Freq. division division
Port 2 to 3
f(GHz) Port 1 to 2 Port 1 to 3
Pin P2 out P3 out P32 out S32(dB)
S21(dB) S31(dB)
2.0
2.1
:
:
:
3.0
Table.1
CYCLE-III
Experiment 1
Simulate NRZ, RZ, Half-Sinusoid and raised Cosine pulses and generate eye diagram for
Binary Polar Signaling.
Aim: To generate Unipolar NRZ sequence using Matlab
Preamble: Line code is the electrical representation of the encoded binary streams produced by
baseband transmitters, so that these streams can be transmitted over communication
channel.Basically there are two types of baseband signalling NRZ(Non Return to Zero) and
RZ(Return to Zero) depending on the pulse duration and bit duration .
Common Line codes used in digital communication are unipolar, polar, bipolar, Manchester,M-
RY codes etc.Below given is the program for unipolar NRZ and RZ code.
bits = [1 0 1 0 0 0 1 1 0];
bitrate = 1;
figure;
[t,s] = unrz(bits,bitrate);
plot(t,s,'LineWidth',3);
axis([0 t(end) -0.1 1.1])
grid on;
title(['Unipolar NRZ: [' num2str(bits) ']']);
Output
Fig: Unipolar
Output:
Fig: Unipolar RZ
Preamble: when we transmit digital signals through a band limited channel it as a filtering effect
on the data, restricting its spectrum.The residual effect due to occurrence of pluses before and
after the sampling instant is called ISI(Inter Symbol Interference). Ideal Nyquist Pluse for
distortionless baseband transmission is rectangular function. Raised Cosine spectrum overcome
the practical difficulties encountered with the ideal Nyquist pulse by extending the bandwidth
from the minimum value W= Rb/ 2 to an adjustable value between W and 2W.
Program:
clc;
clear all;
close all;
rctFilt = comm.RaisedCosineTransmitFilter(...
'OutputSamplesPerSymbol', sampsPerSym)
OUTPUT:
Aim: To generate an Eye Diagram for NRZ, RZ and Raised Cosine Matlab Code
Preamble: Eye pattern is a graphical representation to study ISI and signal degradations in
baseband data transmission.
Main Program
% (binary_eye.m)
% this program uses the four different pulses to generate eye diagrams of
for i=1:length(data)
end
yrz=yrz(1:end-Tau+1);
ynrz=ynrz(1:end-Tau+1);
eye1=eyediagram(yrz,2*Tau,Tau,Tau/2);title('RZ eye-diagram');
eye2=eyediagram(ynrz,2*Tau,Tau,Tau/2);title('NRZ eye-diagram');
eye4=eyediagram(yrcos,2*Tau,Tau);title('Raised-cosine eye-diagram');
Function File 1
% (pnrz.m)
function pout=pnrz(T);
pout=ones(1,T);
end
Function File 2
% (prcos.m)
% Usage y=prcos(rollfac,length, T)
function y=prcos(rollfac,length, T)
% length = 2T+1
end
Function File 3
% (prz.m)
function pout=prz(T);
end
Output:
Preamble: when we transmit digital signals through a band limited channel it as a filtering effect
on the data, restricting its spectrum.
Program:
close all;
clear all;
clc;
f = 50; % Frequency asumption
l=linspace(0,10,100); % time axis
sig=sin(2*pi*f*l); % sinusoidal signal
subplot(211) % Plot sinusoidal signal
plot(sig);
grid
hold on;
for t=1:100
if sin(2*pi*50*l(t))<=0
sig(t)=0;
else
sig(t) = sin(2*pi*50*l(t));
end
end
Dept of ECE Atria Institute of Technology Page 59
Advanced Communication Lab
subplot(212)
plot(sig);
grid
Output:
0.5
-0.5
-1
0 10 20 30 40 50 60 70 80 90 100
0.8
0.6
0.4
0.2
0
0 10 20 30 40 50 60 70 80 90 100
EXPERIMENT 2
SIMULATE THE PULSE CODE MODULATION AND DEMODULATION SYSTEM
AND DISPLAY THE WAVEFORMS
Aim:To generate Raised Cosine Pulse Using Matlab
Preamble: PCM is an essential analog to digital conversion, where analog signal samples are
represented by digital words in a serial bit stream.
Program:
clc;
close all;
clear all;
n=input('Enter n value for n-bit PCM system : ');
n1=input('Enter number of samples in a period : ');
L=2^n;
% % Signal Generation
% x=0:1/100:4*pi;
% y=8*sin(x); % Amplitude Of signal is 8v
% subplot(2,2,1);
% plot(x,y);grid on;
% Sampling Operation
x=0:2*pi/n1:4*pi; % n1 number of samples have tobe selected
s=8*sin(x);
subplot(3,1,1);
plot(s);
title('Analog Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(3,1,2);
stem(s);grid on; title('Sampled Sinal'); ylabel('Amplitude--->'); xlabel('Time--->');
% Quantization Process
vmax=8;
vmin=-vmax;
del=(vmax-vmin)/L;
part=vmin:del:vmax; % level are between vmin and vmax with difference of del
code=vmin-(del/2):del:vmax+(del/2); % Contain Quantized valuses
[ind,q]=quantiz(s,part,code); % Quantization process
% ind contain index number and q contain quantized values
l1=length(ind);
l2=length(q);
for i=1:l1
if(ind(i)~=0) % To make index as binary decimal so started from 0 to N
Dept of ECE Atria Institute of Technology Page 61
Advanced Communication Lab
ind(i)=ind(i)-1;
end
i=i+1;
end
for i=1:l2
if(q(i)==vmin-(del/2)) % To make quantize value inbetween the levels
q(i)=vmin+(del/2);
end
end
subplot(3,1,3);
stem(q);grid on; % Display the Quantize values
title('Quantized Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
% Encoding Process
figure
code=de2bi(ind,'left-msb'); % Cnvert the decimal to binary
k=1;
for i=1:l1
for j=1:n
coded(k)=code(i,j); % convert code matrix to a coded row vector
j=j+1;
k=k+1;
end
i=i+1;
end
subplot(2,1,1); grid on;
stairs(coded); % Display the encoded signal
axis([0 100 -2 3]); title('Encoded Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
% Demodulation Of PCM signal
qunt=reshape(coded,n,length(coded)/n);
index=bi2de(qunt','left-msb'); % Getback the index in decimal form
q=del*index+vmin+(del/2); % getback Quantized values
subplot(2,1,2); grid on;
plot(q); % Plot Demodulated signal
title('Demodulated Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Output:
Enter n value for n-bit PCM system : 8
Enter number of samples in a period : 8
EXPERIMENT 3
SIMULATE THE QPSK TRANSMITTER AND RECEIVER, PLOT THE SIGNALS AND
ITS CONSTELLATION DIAGRAM
Aim: To simulate QPSK Transmitter & Receiver signals and generate its its constellation
diagram Using Matlab.
Program
clc;
close all;
clear all;
M = 2; % Alphabet size
dataIn = randi([0 M-1],50,1); % Random message
txSig = dpskmod(dataIn,M); % Modulate
rxSig = txSig*exp(2i*pi*rand());
dataOut = dpskdemod(rxSig,M);
errs = symerr(dataIn,dataOut)
errs = symerr(dataIn(2:end),dataIn(2:end))
subplot(4,1,1);
stem(dataIn,'linewidth',3), grid on;
title(' Input data in DPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude');
subplot(4,1,2);
stem(txSig,'linewidth',3), grid on;
title(' Modulated data in DPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude');
subplot(4,1,3);
stem(rxSig,'linewidth',3), grid on;
title(' received data after channel in DPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude');
subplot(4,1,4);
stem(dataOut,'linewidth',3), grid on;
title(' Output data in DPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude');
Output:
EXPERIMENT 4:
TEST THE PERFORMANCE OF A BINARY DIFFERENTIAL PHASE SHIFT KEYING
SYSTEM BY SIMULATING THE NON-COHERENT DETECTION OF BINARY DPSK.
Preamble: DPSK is NON-Coherent binary phase modulation technique, in which the binary
samples are differentially encoded and then phase modulated.
Program:
clc;
clear all;
close all;
data=[0 1 0 1 1 1 0 0 1 1]; % information
%Number_of_bit=1024;
%data=randint(Number_of_bit,1);
figure(1)
stem(data, 'linewidth',3), grid on;
title(' Information before Transmiting ');
axis([ 0 11 0 1.5]);
data_NZR=2*data-1; % Data Represented at NZR form for QPSK modulation
s_p_data=reshape(data_NZR,2,length(data)/2); % S/P convertion of data
br=10.^6; %Let us transmission bit rate 1000000
f=br; % minimum carrier frequency
T=1/br; % bit duration
t=T/99:T/99:T; % Time vector for one bit information
% QPSK modulation
y=[];
y_in=[];
y_qd=[];
for(i=1:length(data)/2)
y1=s_p_data(1,i)*cos(2*pi*f*t); % inphase component
y2=s_p_data(2,i)*sin(2*pi*f*t) ;% Quadrature component
y_in=[y_in y1]; % inphase signal vector
y_qd=[y_qd y2]; %quadrature signal vector
y=[y y1+y2]; % modulated signal vector
end
Tx_sig=y; % transmitting signal after modulation
tt=T/99:T/99:(T*length(data))/2;
figure(2)
subplot(3,1,1);
plot(tt,y_in,'linewidth',3), grid on;
title(' wave form for inphase component in QPSK modulation ');
xlabel('time(sec)');
ylabel(' amplitude(volt0');
subplot(3,1,2);
plot(tt,y_qd,'linewidth',3), grid on;
Output:
Question Bank
1). a) Design and Conduct a suitable Experiment to demonstrate the TDM of two band
limited signals and demodulate the same.
b) Simulate NRZ, RZ signal and generate eye diagram for binary polar signaling.
11). a) Find the losses in a given optical fiber 1. Propagation loss 2. Bending loss and also
find the numerical aperture
b) Simulate the pulse code modulation and demodulation system and display the
waveform.
12). a) Find the losses in a given optical fiber 1. Propagation loss 2. Bending loss and also
find the numerical aperture
b) Test the performance of BDPSK system by simulating the non-coherent detection
of BDPSK.
2. What are the applications of magic tee? Why it is called “magic tee”?
21. What is the difference between transmission lines and coaxial lines
22. Why cylindrical cavity resonators are not used with klystrons?
30. Mention the two main resources available with communication channels
39. What are the requirements that a digital modulation scheme must satisfy
45. Mention the advantages of DPSK? Also what are its disadvantages?