0% found this document useful (0 votes)
86 views5 pages

FSK Modulation Study Using Matlab

The document describes an experiment to simulate Frequency Shift Keying (FSK) modulation and demodulation using Matlab. FSK is a digital modulation technique where the frequency of the carrier signal is varied according to the digital signal. The experiment involves generating an FSK modulated wave by varying the carrier frequency between two values (10Hz and 30Hz) according to a binary message pulse. The FSK modulated wave is plotted along with the carrier signals and message pulse. FSK modulation and demodulation techniques are also explained through block diagrams. The procedure to simulate FSK using Matlab is provided.

Uploaded by

Sakshi Dewade
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views5 pages

FSK Modulation Study Using Matlab

The document describes an experiment to simulate Frequency Shift Keying (FSK) modulation and demodulation using Matlab. FSK is a digital modulation technique where the frequency of the carrier signal is varied according to the digital signal. The experiment involves generating an FSK modulated wave by varying the carrier frequency between two values (10Hz and 30Hz) according to a binary message pulse. The FSK modulated wave is plotted along with the carrier signals and message pulse. FSK modulation and demodulation techniques are also explained through block diagrams. The procedure to simulate FSK using Matlab is provided.

Uploaded by

Sakshi Dewade
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

Common questions

Powered by AI

The MATLAB script facilitates FSK modulation by defining parameters such as the frequencies and amplitudes of the carrier waves and the binary message pulse. Using sine functions to generate carrier waves and a square function for the message, the script uses conditional logic to swap between the carrier waves based on the binary message content, ultimately plotting the corresponding modulated waveform .

The sampling interval in the MATLAB script determines the granularity of the signal representation. A well-defined interval ensures accurate waveform construction and adequate representation of the frequencies involved. If the interval is too large, the waveform may be under-sampled, losing critical frequency information. Conversely, a very small interval increases computational load without significant gain in signal clarity .

FSK modulation changes the frequency of the carrier signal based on the digital signal's state. For a binary 'High' input, the frequency is increased, whereas for a binary 'Low' input, the frequency is decreased. This binary input results in mark and space frequencies that allow the representation of digital data on the analog signal .

Without a decision circuit, an FSK demodulator would struggle to infer the correct binary state from the filtered outputs. Even if bandpass filters separated the frequencies efficiently, the absence of a decision mechanism would prevent effective interpretation of the signal components, leaving the system without a means to resolve which binary state the signal represents, likely resulting in transmission errors .

A clock in an FSK modulator is crucial to synchronize both oscillators, ensuring a smooth transition between mark and space frequencies without phase discontinuities. Without this clock, the modulation process could result in phase jumps when the frequency changes, leading to signal distortion and potential errors in data interpretation .

Minimal frequency separation between mark and space frequencies in FSK could result in poor discrimination by the demodulator's bandpass filters, increasing noise susceptibility and error rates. The decision circuit may face difficulties differentiating between binary states, which could lead to incorrect data reconstruction and reduced system reliability .

Synchronization of the two oscillators in an FSK modulator ensures that there are no phase discontinuities when switching between frequencies as the binary input changes. This clock synchronization prevents errors that would arise from abrupt changes in the waveform phase, thus maintaining signal integrity during transmission .

The decision circuit in an FSK demodulator analyzes the outputs from the bandpass filters, which each correspond to different frequency components of the incoming demodulated signal. It determines which filter's output aligns with the characteristics expected for either a binary 'High' or 'Low', thereby reconstructing the original binary sequence by making decisions based on the detected frequencies .

A basic FSK modulator consists of two oscillators, each generating a distinct frequency. These oscillators are connected to a switch controlled by the binary input sequence, selecting the appropriate frequency output. It may also include a clock to prevent phase discontinuities. The FSK demodulator includes mixers with local oscillators to handle the incoming signal, bandpass filters to separate different frequency components, and a decision circuit to determine the output based on the signal characteristics .

Band pass filters in an FSK demodulator serve to isolate the specific frequency components corresponding to the binary 'High' and 'Low' states of the input signal. These filters refine the output of the mixers in the demodulation process, enabling the decision circuit to accurately reconstruct the transmitted digital message by selecting the likely binary state from the filtered outputs .

You might also like