Advanced Communication Lab - 17ECL67
Advanced Communication Lab - 17ECL67
DEPARTMENT VISION
Be a pioneer in Providing Quality Education in Electronics, Communication and Allied
Engineering fields to serve as Valuable Resource for Industry and Society.
DEPARTMENT MISSION
1. Impart Sound Theoretical Concepts and Practical Skills through innovative Pedagogy.
2. Promote Inter-disciplinary Research.
3. Inculcate Professional Ethics.
Laboratory Instructor
1. Mrs.PriyaRai B
Institute Vision
To emerge as one of the finest technical institutions of higher learning to develop
engineering professionals who are technically competent, ethical and environment-
friendly for betterment of society
Mission of the Institute
Accomplish stimulating learning environment through high-quality academic
instruction, innovation and industry-institute interface.
1
Advanced Communication Lab Dept of ECE
Programme SpecificOutcomes:
Programme Outcome
1. Engineering knowledge: Apply the knowledge of mathematics, science,
engineering fundamentals, and an engineering specialization for the solution of
complex engineeringproblems.
5. 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 thelimitations.
2
Advanced Communication Lab Dept of ECE
member or leader in diverse teams, and in multidisciplinarysettings.
12. Life-long learning: Recognize the need for, and have the preparation and
ability to engage in independent and life-long learning in the broadest context of
technological change.
3
Advanced Communication Lab Dept of ECE
4
Advanced Communication Lab Dept of ECE
Course objectives
Courseoutcomes
On the completion of this laboratory course, the students will be able to:
Apply the concepts of mathematics to design andconduct the digital modulation
techniques
Conduct and analyse the characteristics of micro strip devices and optical
communication system
Simulate the digital modulation schemes with the display of waveforms and
computation of performance parameters.
Design and test in a team for the specified problem with the on hand resources.
5
Advanced Communication Lab Dept of ECE
Experiment1
Aim: To generate Amplitude Shift Keying (ASK) waveform & demodulate it.
Theory:
There are basically two types of transmission of digital signals:
1) Base band data transmission: The digital data is transmitted over the channel directly.
There is no carrier or any modulation. This is suitable for transmission over shortdistances.
2) Pass band data transmission: The digital data modulates high frequency sinusoidal
carrier. Hence they are also called digital CW modulates techniques. These techniques are
suitable for transmission over long distances. The digital data can modulate phase,
frequency or amplitude of carrier. This gives rise to three basictechniques.
o Phase shift keying: In this technique, the digital data modulates phase of thecarrier.
o Frequency shift keying: Here, the digital data modulates frequency of thecarrier.
o Amplitude shift keying: Here, the digital data modulates amplitude of the carrier.
Amplitude shift keying: Amplitude shift keying is the simplest digital modulation
technique. In this method, there is only one unit energy carrier and it is switched on or off
depending upon the input binary sequence. To transmit symbol ‘1’ that is positive
voltage signal some carrier frequency ‘f’istransmitted.To transmit symbol ‘0’ that is
negative voltage signal, no signal is transmitted The implementation of the above concept is
accomplished by using CD 4053B Multiplexer/De multiplexer IC. The circuit connection is
shown in the figure1.1, A 2:1 mux is used where an input to be transmitted is given to the
one of the input of the mux. The inputs are two levels of ASK – carrier of finite amplitude
and zero amplitude (ground) signal. Thus depending upon whether select line of the mux
selects input one or input zero i.e, the data is ‘1’or ‘0’ either the carrier or the ground signal
is transmitted. Demodulation is performed using the envelop detector and comparator as
shown in figure1.2 and figure 1.3. The comparator compares the output of the envelop
detector with a threshold value, set as the Vref value. If the envelope value is greater than
Vref, op-amp saturates to +15V and if the value is lesser, it saturates to -15V, thus
representing ‘1’ and ‘0’respectively.
6
Advanced Communication Lab Dept of ECE
CircuitDiagram:
i) Modulation
ii) Demodulation:
7
Advanced Communication Lab Dept of ECE
Let, C = 0.01µF
.. .R = 20KΩChoose R = 22kΩ
Procedure:
Waveforms:
8
Advanced Communication Lab Dept of ECE
Experiment2
Aim: To generate Frequency Shift Keying (FSK) waveform & demodulate it.
Circuit Diagram:
i)Modulation:
9
Advanced Communication Lab Dept of ECE
ii)Demodulation:
Figure 2.3: Circuit diagram for demodulation of FSK Design: For the demodulator,
10
Advanced Communication Lab Dept of ECE
Procedure:
1. Connections are made as shown in the figure 2.1
2. Adjust the input c(t)-carrier signal c1(t) = 50kHz, c2(t)= 5 kHz, VC = 5VP-P and the
m(t)-message signal Vm = 6-10VP-P, fm = 500Hz. Note thatfc1>fc2.
3. Observe & note down the FSKwaveform
4. Rig up the demodulation circuit as shown in figure 2.3
5. Observe the outputwaveforms after high pass filter, envelope detector and demodulated
waveform after comparator.
Waveforms:
Open Ended Experiment: Generate FSK waveform using other components without using
ICCD-4053
11
Advanced Communication Lab Dept of ECE
Experiment 3
BINARYPHASE SHIFTKEYING
Aim: To generate Binary Phase Shift Keying (BPSK) signal & demodulate it.
Theory: In BPSK the carrier amplitude and frequency are fixed but the phase has
the value zero radians for symbol ‘1’ and π radians for symbol ‘0’. Therefore in
BPSK, the phase of the carrier switches between zero and π radians for symbol 1
and 0.
Implementation:
Modulation is achieved by using CD4053 IC with the binary data as the select line,
to select either of the two signals with phases Ф1 and Ф2 for ‘1’ and ‘0’ respectively
as shown in figure 3.1
Circuit diagram of
i) Modulation:
12
Advanced Communication Lab Dept of ECE
iii) Demodulation:
Design:
For the demodulator,
WKT, Af = 1 + Rf/Ri, Let Af = 2, Rf = 10kΩ andRi(R1) = 10kΩ
13
Advanced Communication Lab Dept of ECE
Procedure:
1. Connections are made as shown in the figure 3.1
14
Advanced Communication Lab Dept of ECE
Experiment 4
Aim: TDM and recovery of two band limited signals of PAM signals.
Theory:
Multiplexing is the process of simultaneously transmitting more than one individual signals over a
single communication link. Multiplexing has the effect of increasing the number of communication
channels so that more information can be transmitted.
15
Advanced Communication Lab Dept of ECE
16
Advanced Communication Lab Dept of ECE
Design:
a) For SineWave
WKT, 1/fm>RC >> 1/fc Let fc = 10kHz, C = 0.1µF
R1C1 =10/fc
R1=1kΩ
Procedure:
17
Advanced Communication Lab Dept of ECE
18
Advanced Communication Lab Dept of ECE
Experiment 5
Theory: Losses are introduced in fiber due to various reasons. As light propagates from one end
of fiber to another end part of it is absorbed in the material exhibiting absorption loss. Also part of
the light is reflected back or in some other directions from the impurity particles present in the
material contributing to the loss of the signal at the other end of the fiber. This is called
propagation loss. Losses are also introduced due to refraction of light. This occurs when the fiber
is subjected to bending. Lower the radius of curvature more is the loss. Losses also occur due to
coupling of cables which is termed as coupling loss.
Procedure:
I,To find propagation loss:
1. Make connections as shown in the Figure 5.1.
2. Switch on the power supply.
3. Feed about 2Vp-p sinusoidal signal of 1 KHz from the signal
generator to the IN port of Analog Buffer.
4. Connect the output port OUT of Analog Buffer to the port TX
IN of transmitter.
5. Insert the Optical fiber cable of 1m carefully.
6. Observe the detected signal.
19
Advanced Communication Lab Dept of ECE
7.Measure the amplitude of demodulated output. V1 =….V
8.Simply replace the 1m cable by ½ m and note down the
demodulated output voltage on the CRO. V2 =…….V.
No other knobs should be disturbed while changing the cable
from 1m to 1/2m.
9.Switch off the power supply.
Calculation:
V1 / V2 = e [ - α (L 1 + L 2 ) ] Where L1 = 1m; L2 = 1/2m.
α = ………….nepers /m. α in dB/ m = 8.686 * α in nepers/m
20
Advanced Communication Lab Dept of ECE
voltage readings. Do not reduce loop diameter less than1cm.
4. Take 3 to 4 readings and tabulatePlot a graph of the voltage v/s
loop diameter. Note that as diameter decreases voltage also
decreases. i.e loss increases.
5. Switch off the power supply
2. Record the output voltage across 1m fiber optic cable. Let it beV1.
Theory:
Numerical aperture refers to the maximum angle at the light incident on the fiber
end is totally internally reflected and is transmitted properly along the fiber. The
cone formed by the rotations of this angle along the axis of the fiber is the cone of
acceptance of the fiber. The light ray should strike the fiber end within its cone of
acceptance; else it is refracted out of the fiber core.
Connection diagram:
21
Advanced Communication Lab Dept of ECE
Procedure:
Formulae:
θMAX is the maximum angle at which light is incident properly transmitted through the fiber.
Launching angle LA = θMAX
Numerical aperture NA = Sin θMAX=
Tabular column:
Result: Propagation loss and bending loss of OFC is measured and Numerical Aperture is
calculated.
22
Advanced Communication Lab Dept of ECE
Experiment 6
Ring resonator
Aim: Measurement of resonance characteristics of a microstrip ring resonator and
determination of dielectric constant of thesubstrate.
Components required:Microwave signal source, VSWR meter, Micro strip Ring
resonator (DUT- device under test), Detector, Matched load, Cables & Adapters.
Theory:
Sections of transmission lines of finite length with their ends terminated in either an
open or a short circuit are used as resonator elements at microwave frequencies. In a
microstrip, an open end is far simpler to realize than a short circuit. Hence in practice,
rectangular resonators with open ends are more commonly employed. Another useful
form that can be conveniently realized in microstrip configuration is the ring
resonator. These resonators find applications in the design of filters, oscillators,
mixers etc
Calculation:
Using equation, it can be found that effective dielectric constant of the material
- 1/2
εeff = ε = 3.2 + 1 + 3.2 – 1([1+ 12x 0.762])
2 2 1.836
= 2.727
23
Advanced Communication Lab Dept of ECE
Tabular column:
2.1
:
:
:
3.0
24
Advanced Communication Lab Dept of ECE
Experiment 7
Components required: Microwave signal source, VSWR meter, Micro strip 3dB
power divider (DUT- device under test), Detector, Matched load, Cables & Adapters.
Microwave
Figure 7.1 Layout of equal splitpower divider Figure 7.2 Schematic ofY-junction
25
Advanced Communication Lab Dept of ECE
to port1.
Procedure:
1. Connect as shown in figure 7.4
2. Select the modulation Square or CW in rare panel (Square for VSWR meter
/ CW for Power meter)
3. Select the frequency 2.5GHz (±0.1GHz) and note down the Power level,
consider it as input power for the power divider.
4. Now connect the power divider to measure Power division at
P2 as shown below and note down the Power at P2
5. Now Terminate P2 and Connect the detector to P3 and
measure the Power at P3.
Figure 7.4 Connection diagram of power divider with and without DUT
6. To measure Isolation for power divider connect the divider as shown figure
7.5,connect the input to P2 and P3 Output and Terminate the P1
26
Advanced Communication Lab Dept of ECE
TabularColumn:
3.0
27
Advanced Communication Lab Dept of ECE
Appendix
ASK implementation
FSK implementation
28
Advanced Communication Lab Dept of ECE
PSK implementation
PIN DIAGRAM
29
Advanced Communication Lab Dept of ECE
Experiment No.8
DIRECTIONAL COUPLER
Theory:
A Directional coupler is device with which it is possible to measure the incident and
reflected wave separately. It consists of two transmission lines the main arm and
auxiliary arm, electromagnetically coupled to each other. The power entering, in the
main arm gets divided between port2 and port3, and almost no power comes out in
portr4. Power entering at port2 is divided between port1 and port4.
Procedure:
30
Advanced Communication Lab Dept of ECE
Assemble the set up shown in block diagram.
1. Switch ‘ON’ the source & the VSWR meter. Set the frequency of the source to 2GHz,
without DUT adjust the power output of the source for a reasonable power indication on
the VSWRmeter.
2. Connect the output of the frequency of the source in steps of 0.1GHz from 2to
3GHz & note the corresponding readings of the VSWR meter as Pin(dB)i.e.P1.
3.Now insert the DUT , record the readings of the VSWR meter for the3
cases given below at the abovefrequencies,
a. P2out(dB) (P1 –input, P2- detector, P3& P4- matched load)
b. P3out(dB) (P1 –input, P3- detector, P2& P4- matched load)
c. P2out(dB) (P1 –input, P4- detector, P2& P3- matched load)
Repeat the above steps for all the directional couplers(atleast two). Formulae:
a. Power at direct port-S21(dB)=Pin (dB)-P2out(dB).
b. Coupling (C)-S 31(dB)=Pin (dB)- P3out(dB).
c. Isolation-S 41(dB)=Pin(dB)-P4out(dB).
d. Directivity(D)-S43(dB)=P3out(dB)-P4out(dB). Tabularcolumns:
2.0
2.1
:
:
3.0
31
Advanced Communication Lab Dept of ECE
Experiment no.9
ANTENNAS
Aim: Measurement of directivity and gain of antennas: Standard
dipole(or printed dipole), microstrip patch antenna and Yagi
antenna(printed).
Yagi-antenna Patchantenna
Procedure:
Directivity measurement:
32
Advanced Communication Lab Dept of ECE
4. Set the distance b/w Tx& the Rx at the half meter & set the receiving
antenna at zero degree (in the line of Tx). Use CRO or VSWR meter to
takereadings.
9. In the same way the directivity of the Dipole antenna can bemeasured.
10. For directivity measurement of the transformer fed Patch antenna, connect
transmitter Yagiantennaintheverticalplane(PatchAntennaisverticalPolarize).Since
itiscomparatively low gain antenna distance can be reduced b/w Tx& Rx.
Gain measurement:
33
Advanced Communication Lab Dept of ECE
34
Advanced Communication Lab Dept of ECE
Experiment no.10
MICROWAVE TEST BENCH
Aim: To determine the frequency, guide wavelength, VSWR and attenuation in a microwave test
bench.
Components Required: Klystron power supply, Reflex Klystron 2K25 mount,
cooling fan), variable attenuator – (2), frequency meter, wave guide, detector, CRO,
Slotted section, matched terminations, short, BNC probe.
Theory: The reflex klystron makes use of the velocity modulation to transform a continuous
electron beam into microwave power. Electrons emitted from the cathode are accelerated and passed
through the positive resonator towards negative reflector, which retards and finally reflects the
electrons and the electrons turn back through the resonator. Suppose an RF-field exists between the
resonators, the electrons traveling forward will be accelerated or retarded as the voltage at the
resonator changes in amplitude. The accelerated electrons leave the resonator at an increased
velocity and the retarded electrons leave at the reduced velocity. The electrons leaving the resonator
will need different time to return due to change in velocities. As a result the returning electrons
group together in bunches. As the electron bunches pass though the resonator they interact with
voltage at the resonator grids. If the bunches pass the grid at such a time that the electrons are
slowed down by thevoltage then energy will be delivered to the resonator; and klystron will
oscillate.
CRO
Klystron Power
supply Detector
Slotted section
CRO
35
Advanced Communication Lab Dept of ECE
Initial settings:
Procedure:
1. Make connections as shown in fig 5.1. Set the cooling fan to blow the
air across the tube.
2. Set the beam voltage control knob -MINIMUM Repeller voltage to –MAXIMUM
3. Meter select to –current(C). This reads the beam current value. If
meter select is voltage (V) it reads the beam voltage. If the meter select
is REP it reads the repeller voltage.
4. Set the AM and FM frequency and amplitude knobs to middleposition.
5. Set AM modulation.
6. Switch on the power supply. Wait for 10 sec, let the tube warm up &
power supply get properlystabilized
7. Switch to HT position.
8. The beam current slowly starts increasing to a finite value. Now by
varying the beam control knob set the beam current to 13 mA (ensure
that Ibeam< 15mA).
9.Record the values of beam current, beam voltage and repeller voltage
by varying the meter selectknob.
10. Connect the CRO probe to detector. Vary (decrease) the repeller
voltage to get a maximum demodulated square wave on the CRO. If the
square wave has spikes then vary the amplitude knob of AM to discard
the spikes and obtain a pure squarewave.
11. Measure the signal amplitude on theCRO.
12. Now adjust the klystron tube flunger to get maximum amplitude and
then tighten the flunger.
13. Adjust the vernier caliper of the slotted section to get maxo/p
14. Now adjust the detector flunger to get maximum amplitude and then
tighten the flunger.
15. Adjust the tunable probe on the slotted section to get maxo/p
16. Vary the variable attenuator (screw gauge) to adjust the signal
amplitude to 1V (reference).
1. Adjust the frequency meter such that the copper wires in the meter are
set at the bottom.
2. Vary the frequency meter until a dip (decrease in amplitude) of the
Procedure:
1. Remove detector. Connect any component i.e matched / short / open.
36
Advanced Communication Lab Dept of ECE
Take output on slotted linesection.
2. Keep slotted line section to the extreme right. Tune the tunable probe
to obtain max output.
3. Move the slotted line section from right to left to get the 1st minimumamplitude
on the CRO. Measure the distance ‗d1‘ on the slotted line section
scale. (note the point where the o/p starts to increase. The previous
point is the minimum amplitude).
4. Again move the slotted line section in the same direction to obtain the
2nd minimum amplitude on the CRO. Measure the distance ‗d2‘ on the
slotted line section scale. (note the point where the output starts to
increase. The previous point is the minimum amplitude).
5. Note that the value of λ g will remain the same for all types ofload.
IV. To find λ c:
V. To determine theVSWR
1. Let the load be a matched termination.
2. Keep the slotted line section to the extreme right. Note that o/p is
taken from the slotted linesection.
3. Tune the tunable probe to get maximum square waveoutput.
4. Move the slotted line from right to left to get maximumoutput.
5. Now connect the CRO probe to the VSWRmeter.
6. VSWR meter settings: meter
select –Normal mode Range –dB
Note: While measuring VSWR, let us say the pointer is set to 1 in the
range 30dB. While moving the slotted line section, the pointer also
moves from right to left. If the pointer exceeds 4, then increase the range
dB to next higher level (i.e 40 in this case) and read the 2nd lower scale.
i.e 3-10. If again the pointer exceeds 10 by moving the slotted section in
37
Advanced Communication Lab Dept of ECE
the same direction then increase the range dB to next higher level and
read the 1st scale.
Multiply 10 to the reading obtained on the 1st scale. The pointer will
deflect backwards in aparticular range. .
Therefore for 30 dB:1-4scale (only if 1 is
set in 30 dB range) 40 dB: 3-10scale
50 dB: (1-4) +10
60 dB: (3-10) + 10
38
Advanced Communication Lab Dept of ECE
6. Rotate the variable attenuator in steps of 1mm (up to 10mm) and note
down the corresponding power readings on the VSWR meter in dB.
(One rotation of the variable attenuator is equal to0.5mm.)
7. Tabulate thereadings.
LOAD VSWR
MATCHED
OPEN
SHORT
39
Advanced Communication Lab Dept of ECE
A. PowerMeasurement
1
0
Result: Measurement of frequency, guide wavelength, Power VSWR and
attenuation in a Microwave test bench have been done accordingly.
40
Advanced Communication Lab Dept of ECE
PART B
Experiment no.1
Aim: Simulate NRZ, RZ, half-sinusoid and raised cosine pulses and generate eye diagram
for binary polarsignaling.
Program:
% (binary_eye.m)
% generage and plot eyediagramsclear
all;clf;
%data = sign(randn(1,5)); %Generate n random bits
data=[1 0 1 0 1];
Tau=16;
dataup = upsample(data, Tau); %Generate impulse train
yrz=yrz(1:end-Tau+1);
figure(1); plot(yrz,'k'), grid on;
title('YRZ data pulse train');
ynrz=conv(dataup,pnrz(Tau)); %Non-return to zero polar
ynrz=ynrz(1:end-Tau+1);
figure(2);
plot(ynrz,'k');grid on; title('YNRZ data pulse train');
ysine=ysine(1:end-Tau+1);
figure(3);
plot(ysine,'k');grid on; title('YSINE data pulse train');
Td=1; %Truncating raised cosine to 4 periods yrcos=conv(dataup,prcos(0.5,Td,Tau)); %
figure(4);
41
Advanced Communication Lab Dept of ECE
eye1=eyediagram(yrz,2*Tau,Tau,Tau/2,'k');grid on;title('RZ eye-diagram');
eye2=eyediagram(ynrz,2*Tau,Tau,Tau/2,'k');grid on;title('NRZ eye diagram');
42
Advanced Communication Lab Dept of ECE
43
Advanced Communication Lab Dept of ECE
44
Advanced Communication Lab Dept of ECE
Experiment no.2
Program:
clc;
closeall;
clearall;
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 is8V
% subplot(2,2,1);
% plot(x,y);grid on;
% Sampling Operation
x=0:2*pi/n1:4*pi; % n1 number of samples have to be 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;
withdifference ofdel
code=vmin-(del/2):del:vmax+(del/2); % Contain Quantized values
[ind,q]=quantiz(s,part,code); % Quantizationprocess
% ind contain index number and q contain
45
Advanced Communication Lab Dept of ECE
quantizedvalues
l1=length(ind);
l2=length(q);
fori=1:l1
if(ind(i)~=0) % To make index as binary decimal so started from 0 to N
ind(i)=ind(i)-1;
endi=i
+1;
end
fori=1:l2
if(q(i)==vmin-(del/2)) % To make quantize value in between the levels
q(i)=vmin+(del/2);
enden
d
subplot(3,1,3);
stem(q);gridon; % Display the Quantize values
title('QuantizedSignal');
ylabel('Amplitude--->');
xlabel('Time--->');
% Encoding Process
figure
code=de2bi(ind,'left-msb'); % Convert the decimal to binary
k=1;
fori=1:l1
forj=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('EncodedSignal');
ylabel('Amplitude--->');
xlabel('Time--->');
46
Advanced Communication Lab Dept of ECE
qunt=reshape(coded,n,length(coded)/n;
index=bi2de(qunt','left-msb'); % Get back the index in decimalform
q=del*index+vmin+(del/2); % get back Quantized values
subplot(2,1,2); gridon;
plot(q); % Plot Demodulatedsignal
title('Demodulated Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Output:
Enter n value for n-bit PCM system : 20
Enter number of samples in a period : 15
47
Advanced Communication Lab Dept of ECE
Experiment no.3
Quadrature Phase Shift Keying
Aim: To generate Quadrature Phase Shift Keying modulation and demodulation waveforms.
Program:
clc;
clearall;
closeall;%GENERATE QUADRATURE CARRIER SIGNAL
Tb=1;t=0:(Tb/100):Tb;fc=1;
c1=sqrt(2/Tb)*cos(2*pi*fc*t); c2=sqrt(2/Tb)*sin(2*pi*fc*t); %generate message signal
N=8;m=rand(1,N); t1=0;t2=Tb
fori=1:2:(N-1)
t=[t1:(Tb/100):t2]
ifm(i)>0.5 m(i)=1;m_s=ones(1,length(t));
else
m(i)=0;
m_s=-1*ones(1,length(t));
end%odd bits modulated signal
odd_sig(i,:)=c1.*m_s;
ifm(i+1)>0.5 m(i+1)=1;
m_s=ones(1,length(t));
else
m(i+1)=0;
m_s=-1*ones(1,length(t));
end
%even bits modulated signal
even_sig(i,:)=c2.*m_s;
%qpsk signal
qpsk=odd_sig+even_sig;
%Plot the QPSK modulated signal
subplot(3,2,4);plot(t,qpsk(i,:));
title('QPSKsignal');xlabel('t ---- >');ylabel('s(t)');grid on; hold on;
t1=t1+(Tb+.01); t2=t2+(Tb+.01);
end
holdoff
%Plot the binary data bits and carrier signal
48
Advanced Communication Lab Dept of ECE
subplot(3,2,1);stem(m);
title('binarydatabits');xlabel('n ---- >');ylabel('b(n)');gridon;
subplot(3,2,2);plot(t,c1);
title('carriersignal-1');xlabel('t ---- >');ylabel('c1(t)');grid on;
subplot(3,2,3);plot(t,c2);
title('carriersignal-2');xlabel('t ---- >');ylabel('c2(t)');grid on;
t1=0;t2=Tb
fori=1:N-1
t=[t1:(Tb/100):t2]
%correlatorx1=sum(c1.*qpsk(i,:))
;
x2=sum(c2.*qpsk(i,:));
%decision device
if(x1>0&&x2>0)
demod(i)=1;
demod(i+1)=1;
elseif(x1>0&&x2<0)
demod(i)=1;
demod(i+1)=0;elseif(
x1<0&&x2<0)
demod(i)=0;
demod(i+1)=0;
elseif(x1<0&&x2>0)
demod(i)=0;
demod(i+1)=1;
end
t1=t1+(Tb+.01); t2=t2+(Tb+.01);
endsubplot(3,2,5);stem(demod);
title('qpskdemodulatedbits');xlabel('n ---- >');ylabel('b(n)');grid on;
Output:
49
Advanced Communication Lab Dept of ECE
50
Advanced Communication Lab Dept of ECE
Experiment no.4
Aim: To test the performance of a binary differential phase shift keying system by
simulating the non-coherent detection of binary DPSK.
Program:
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.-');
holdon
semilogy(Eb_N0_dB,simBer_dbpsk_coh,'mx-');
51
Advanced Communication Lab Dept of ECE
axis([-2 10 10^-6 0.5])
gridon
legend('theory', 'simulation');
xlabel('Eb/No, dB')
ylabel('Bit Error Rate')
title('Bit error probability curve for coherent demodulation of DBPSK')
Output:
52
Advanced Communication Lab Dept of ECE
SAMPLE VIVA QUESTIONS
53
Advanced Communication Lab Dept of ECE
43. Differentiate ASK, FSK,PSK
44. Explain flat topsampling?
45. What isantenna?What is radiationpatternWhat isdirectivity?
46. Define antennagain?Explain effective aperture ofantenna
47. Define bandwidth and beamwidth ofantenna
48. What is near field and far field ofantenna
49. What is polarization ofantenna?
50. Explain structure of opticalfiber?What is refractiveindex?
51. What is numericalaperture?What are the advantages and disadvantages of
OFC?
54