You are on page 1of 5

DIGITAL COMMUNICATION SYSTEM

ECE – 4001
L-41+42
Submitted to :- Prof Nandakumar S

- Performed By:- Harshit Pandey(18BEC2036)


(TASK –2)
Aim:

To simulate Binary Frequency shift keying technique using MATLAB


software

Theory:
It is defined as the changing or improving the frequency characteristics of an
input binary signal according to the carrier signal. Amplitude variation is one
of the major drawbacks in ASK. So, due to this ask modulation technique used
in a few applications only. And its spectrum power efficiency also low. It leads
to wastage of power. So to overcome these drawbacks Frequency Shift Keying
is preferred. FSK is also known as Binary Frequency Shift Keying (BFSK).

In FSK, two carrier signals are used to produce FSK modulated waveforms.
The reason behind this, FSK modulated signals are represented in terms of two
different frequencies. The higher frequency wave represents the logic 1 and
lower frequency wave represents the logic 0

Algorithm:
BSFK Modulation
• Representation of message signal
• Representation of carrier signal
o c1=a*sin(2*pi*fc1*t);
• c2=a*sin(2*pi*fc2*t);
• Start for loop
• Modulation of the signal using FSK modulation rule
• End for loop
• Representation of modulated wave
BFSK Demodulation
• Demodulation of the above generated BFSK waveform
• Reconstruction of wave into the binary sequence
• Representation of the message signal

Block Diagram:

Model Graph:
Code:
clc
clear all
f1=3; % Frequency of carrire 1
f2=10; %frequency of carrier 2
a=1;
n=[1 1 0 1 0 1 0 0]; % input sequence
l=length(n);
if n(l)==1
n(l+1)=1
else
n(l+1)=0
end
l1=length(n)
tn=0:l1-1;
subplot(5,1,1); %plot Message Signal
stairs(tn,n);
title('MESSAGE SIGNAL');
xlabel('time');
ylabel('AMP');
t=0:0.01:l;
c1=a*sin(2*pi*f1*t); %carrier 1
c2=a*sin(2*pi*f2*t); %carrier 2
subplot(5,1,2);
plot(t,c1); %Plot Carrier Signal 1
title('CARRIER 1');
xlabel('time');
ylabel('AMP');
subplot(5,1,3); %Plot Carrier Signal 2
plot(t,c2);
title('CARRIER 2');
xlabel('time');
ylabel('AMP');
%Modulation
for i=1:l
for j=(i-1)*100:i*100
if(n(i)==1)
s(j+1)=c2(j+1);
else
s(j+1)=c1(j+1);
end
end
end
subplot(5,1,4); %Plot Modulated Signal
plot(t,s);
Title('BFSK MODULATED SIGNAL');
xlabel('time');
ylabel('AMP');
for i=1:l %Demodulation
for j=(i-1)*100:i*100
if(s(j+1)==c1(j+1))
x(j+1)=0;
else
x(j+1)=1;
end
end
end
subplot(5,1,5);
plot(t,x);
title('BFSK DEMODULATION');
xlabel('time');
ylabel('AMP');

OUTPUT :-
Result and Inference :
Using the above code,we can perform BFSK modulation and
demodulation successfully . In BSFK modulation , The higher frequency wave
represents the logic 1 and lower frequency wave represents the logic 0.

You might also like