FSK Lab Manual

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

EXPERIMENT NO:

Aim: To Study Frequency Shift Keying on Matlab

Apparatus: Matlab Software

Theory: FSK is the digital modulation technique in which the frequency of the carrier
signal varies according to the digital signal changes. FSK is a scheme of frequency
modulation.

The output of a FSK modulated wave is high in frequency for a binary High input and is low
in frequency for a binary Low input. The binary 1s and 0s are called Mark and Space
frequencies.

The following image is the diagrammatic representation of FSK modulated waveform along
with its input.

To find the process of obtaining this FSK modulated wave, let us know about the working of
a FSK modulator.

FSK Modulator

The FSK modulator block diagram comprises of two oscillators with a clock and the input
binary sequence. Following is its block diagram.

Department of Electronics and Communication Engineering DCOM Lab


The two oscillators, producing a higher and a lower frequency signals, are connected to a
switch along with an internal clock. To avoid the abrupt phase discontinuities of the output
waveform during the transmission of the message, a clock is applied to both the oscillators,
internally. The binary input sequence is applied to the transmitter so as to choose the
frequencies according to the binary input.

FSK Demodulator

Synchronous FSK Detector

The block diagram of Synchronous FSK detector consists of two mixers with local oscillator
circuits, two band pass filters and a decision circuit. Following is the diagrammatic
representation.

Department of Electronics and Communication Engineering DCOM Lab


The FSK signal input is given to the two mixers with local oscillator circuits. These two are
connected to two band pass filters. These combinations act as demodulators and the decision
circuit chooses which output is more likely and selects it from any one of the detectors. The
two signals have a minimum frequency separation.

Procedure: 1. Open Matlab Software


2. Click on New Script and Start to write a Program
3. After wrote Save and Run Program
4. Command Window will open
5. Give the Following Input to generate FSK modulated wave.
6. Enter the freq of 1st Sine Wave carrier:10
7. Enter the freq of 2nd Sine Wave carrier:30
8. Enter the freq of Periodic Binary pulse (Message):5
9. Enter the amplitude (For Both Carrier & Binary Pulse Message):4

Department of Electronics and Communication Engineering DCOM Lab


Circuit Diagram/Block Diagram/Flow chart/Program:
clc %for clearing the command window
close all %for closing all the window except command window
clear all %for deleting all the variables from the memory
fc1=input('Enter the freq of 1st Sine Wave carrier:');
fc2=input('Enter the freq of 2nd Sine Wave carrier:');
fp=input('Enter the freq of Periodic Binary pulse (Message):');
amp=input('Enter the amplitude (For Both Carrier & Binary Pulse
Message):');
amp=amp/2;
t=0:0.001:1; % For setting the sampling interval
c1=amp.*sin(2*pi*fc1*t);% For Generating 1st Carrier Sine wave
c2=amp.*sin(2*pi*fc2*t);% For Generating 2nd Carrier Sine wave
subplot(4,1,1); %For Plotting The Carrier wave
plot(t,c1)
xlabel('Time')
ylabel('Amplitude')
title('Carrier 1 Wave')
subplot(4,1,2) %For Plotting The Carrier wave
plot(t,c2)
xlabel('Time')
ylabel('Amplitude')
title('Carrier 2 Wave')
m=amp.*square(2*pi*fp*t)+amp;%For Generating Square wave message
subplot(4,1,3) %For Plotting The Square Binary Pulse (Message)
plot(t,m)
xlabel('Time')
ylabel('Amplitude')
title('Binary Message Pulses')
for i=0:1000 %here we are generating the modulated wave
if m(i+1)==0
mm(i+1)=c2(i+1);
else
mm(i+1)=c1(i+1);
end
end
subplot(4,1,4) %For Plotting The Modulated wave
plot(t,mm)
xlabel('Time')
ylabel('Amplitude')
title('Modulated Wave')

Department of Electronics and Communication Engineering DCOM Lab


Results:

Conclusion: Hence we studied Frequency Shift Keying successfully on Matlab


Software

Viva questions:

1. What is Binary Frequency Shift Keying means?

2. What is AFSK?

3. What are the application of FSK?

Department of Electronics and Communication Engineering DCOM Lab

You might also like