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

BPSK Modulation Simulation in MATLAB

The document describes a MATLAB simulation of binary phase-shift keying (BPSK) modulation and demodulation. It includes: 1) An explanation of BPSK modulation technique which shifts the phase of the carrier signal by 0° or 180° depending on the binary input. 2) The MATLAB algorithm and code to generate a carrier signal, modulate it using the BPSK technique based on a binary message sequence, and demodulate the modulated signal to reconstruct the original message. 3) Block diagrams of the modulator and demodulator. 4) Graphs of the message signal, carrier signal, modulated signal, and demodulated signal are displayed to show the modulation and demodulation process.

Uploaded by

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

BPSK Modulation Simulation in MATLAB

The document describes a MATLAB simulation of binary phase-shift keying (BPSK) modulation and demodulation. It includes: 1) An explanation of BPSK modulation technique which shifts the phase of the carrier signal by 0° or 180° depending on the binary input. 2) The MATLAB algorithm and code to generate a carrier signal, modulate it using the BPSK technique based on a binary message sequence, and demodulate the modulated signal to reconstruct the original message. 3) Block diagrams of the modulator and demodulator. 4) Graphs of the message signal, carrier signal, modulated signal, and demodulated signal are displayed to show the modulation and demodulation process.

Uploaded by

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

DIGITAL COMMUNICATION SYSTEM

ECE – 4001
L-41+42
Submitted to :- Prof Nandakumar S
- Performed By:- Harshit Pandey(18BEC2036)
(TASK –3)
AIM: To simulate Binary Phase shift keying technique using MATLAB software

Theory:
Phase Shift Keying PSK is the digital modulation technique in which the phase of the
carrier signal is changed by varying the sine and cosine inputs at a particular time. PSK
technique is widely used for wireless LANs, bio-metric, contactless operations, along with
RFID and Bluetooth communications..PSK is of two types, depending upon the phases the
signal gets shifted. They are Binary Phase Shift Keying BPSK.This is also called as 2-
phase PSK or Phase Reversal Keying. In this technique, the sine wave carrier takes two
phase reversals such as 0° and 180°.

Algorithm:

BPSK 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
• Signal modulation using PSK logic
•End loop
• Representation of modulated wave
BPSK Demodulation
• Demodulation of above waveform
• Reconstruction of wave
• Representation of the message signal
Block Diagram:

Modulator:

Demodulator:

MODEL GRAPH..
Code:
clc;
clear all;
a=1;
f1=5;
f2=10;
n=[1 0 1 1 1 0 0]; %messsage binary sequence
t=0:0.01:length(n);
t2=0:6;
subplot(5,1,1);
stairs(t2,n);
title('message singnal'); %message signal 1
xlabel('time');
ylabel('amplitude');
y1=a*sin(2*pi*f1*t);
subplot(5,1,2);
plot(t,y1);
title('carrier signal 1'); % carrier signal
xlabel('time');
ylabel('amplitude');
y2=-a*sin(2*pi*f1*t); % inverted carrier signal
subplot(5,1,3);
plot(t,y2);
title('carrier signal 2');
xlabel('time');
ylabel('amplitude');
for i=1:7 %signal modulatioin
for j=(i-1)*100:i*100
if(n(i)==1)
s(j+1)=y1(j+1);
else
s(j+1)=y2(j+1);
end
end
end
subplot(5,1,4);
plot(t,s);
title('Modulated signal');
xlabel('time');
ylabel('amplitude'); %demodulation
for i=1:7
for j=(i-1)*100:i*100
if(s(j+1)==y1(j+1))
x(j+1)=1;
elseif(s(j+1)==y2(j+1))
x(j+1)=0;
end
end
end
subplot(5,1,5);
plot(t,x);
title('Message signal'); % demodulated message signal hey
xlabel('time');
ylabel('amplitude');

output Graph:
Result and Inferences:

• Above specified code successfully performs BPSK modulation


• An inverted carrier is used to give out the modulation and demodulation result.

You might also like