SlideShare a Scribd company logo
1 of 3
Date-09/09/13

SATISH KUMAR/ECE/16/B-1

Experiment-6
Object:- Write a program to simulate the transmitter and receiver for BPSK.
Software required:- MATLAB 7.8.0(R2009a)
Theory:AM and FM modulation schemes can be used to transmit digital signals and this allows
for the channel to be shared. As digital data forms the message instead of speech and music, it is
preferred that these two systems are called ASK and FSK instead.
Recall that ASK uses the digital data’s 1s and 0s to switch a carrier between two
amplitudes. FSK uses the 1s and 0s to switch a carrier between two frequencies. An alternative to
these two methods is to use the data stream’s 1s and 0s to switch the carrier between two phases.
This is called Binary Phase Shift Keying (BPSK). Figure 1 below shows what a BPSK signal
looks like time-coincident with the digital signal that has been used to generate it. Notice that,
when the change in logic level causes the BPSK signal’s phase to change, it does so by 180º. For
example, where the signal is travelling towards a positive peak the change in logic level causes it
to reverse direction and head back toward the negative peak (and vice versa).
You may find it difficult to see at first but look closely and you’ll notice that alternating
halves of the BPSK signal’s envelopes have the same shape as the message. This indicates that
BPSK is actually double-sideband suppressed carrier (DSBSC) modulation. That being the case,
BPSK generation and the recovery of the data can be handled by conventional DSBSC
modulation and demodulation techniques (explained in Experiments 5 and 7 respectively).
With a choice of ASK, FSK and BPSK you might be wondering about which system
you’ll most likely see. All other things being equal, BPSK is the best performing system in terms
of its ability to ignore noise and so it produces the fewest errors at the receiver. FM is the next
best and AM is the worst. On that basis, you’d expect that BPSK is the preferred system.
Date-09/09/13

Coding:clc;
close all;
clear all;
input=[1 0 1 0 0 1 1];
Rb=100;
Fs=16*Rb;
Ts=1/Fs;
Tb=1/Rb;
p=length(input);
amplitude=1;
for count=1:length(input)
for temptime=1:16
if(input(count)==0)
output(count,temptime)=-1*amplitude;
else
output(count,temptime)=1*amplitude;
end
end
end
k1=reshape(output',1,112);
t=0:Ts:Tb*length(input)-Ts;
subplot(2,2,1);
plot(t,k1);
axis([0 0.07 -1.5 1.5]);
xlabel('time');
ylabel('amp');
title('modulating signal');
Fc=10e1;
t1=0:9/(112*Fc):9/Fc-(.03/Fc);
y=cos(2*pi*Fc*t);
subplot(2,2,2);
plot(t1,y);
xlabel('time');
ylabel('amplitude');
title('Carrier Signal');
z=k1.*y;
subplot(2,2,3);
plot(t1,z);
xlabel('time');
ylabel('amplitude');
title('Modulated Signal');
n=awgn(z,10);
subplot(2,2,4);
plot(t1,n);
xlabel('time');
ylabel('amplitude');
title('Noisy BPSK Signal');
v=z.*y;
ks=length(v);
integrationBase=0:1/Fs:Tb-Ts;
for i=0:(length(v)/(Tb*Fs))-1
w(i+1)=trapz(integrationBase,v(int32(i*Tb*Fs+1):int32((i+1)*Tb*Fs)));
end
for i=0:(length(v)/(Tb*Fs))-1
if(w(i+1)>0)

SATISH KUMAR/ECE/16/B-1
Date-09/09/13

SATISH KUMAR/ECE/16/B-1

output1(i+1)=1;
else
output1(i+1)=0;
end
end
final_output=output1

Input:- [1 0 1 0 0 1 1]
Output:-

final_output =
1

0

1

0

0

1

1

Result:- We have simulate the transmitter and receiver for BPSK and draw the output.

More Related Content

What's hot

Digital modulation techniqes (Phase-shift keying (PSK))
Digital modulation techniqes (Phase-shift keying (PSK))Digital modulation techniqes (Phase-shift keying (PSK))
Digital modulation techniqes (Phase-shift keying (PSK))Mohamed Sewailam
 
Digital modulation techniques updated
Digital modulation techniques updatedDigital modulation techniques updated
Digital modulation techniques updatedMuhammad Mohsin Raza
 
PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )vijidhivi
 
Binary phase shift keying (bpsk)
Binary phase shift keying (bpsk)Binary phase shift keying (bpsk)
Binary phase shift keying (bpsk)Taief Alaa
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift KeyingJessie Rama
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKnaimish12
 
Binary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesBinary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesSugeng Widodo
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tueVin Voro
 
Digital Modulation Unit 3
Digital Modulation Unit 3Digital Modulation Unit 3
Digital Modulation Unit 3Anil Nigam
 
8-PSK(Digital Communication Technique)
8-PSK(Digital Communication Technique)8-PSK(Digital Communication Technique)
8-PSK(Digital Communication Technique)SOBITAMARNATH
 
Design and implementation of qpsk modulator using digital subcarrier
Design and implementation of qpsk modulator using digital subcarrierDesign and implementation of qpsk modulator using digital subcarrier
Design and implementation of qpsk modulator using digital subcarrierGongadi Nagaraju
 
Phase Shift Keying & π/4 -Quadrature Phase Shift Keying
Phase Shift Keying & π/4 -Quadrature Phase Shift KeyingPhase Shift Keying & π/4 -Quadrature Phase Shift Keying
Phase Shift Keying & π/4 -Quadrature Phase Shift KeyingNaveen Jakhar, I.T.S
 
Digital modulation techniques
Digital modulation techniquesDigital modulation techniques
Digital modulation techniquessrkrishna341
 
Amplitude shift keying
Amplitude shift keyingAmplitude shift keying
Amplitude shift keyingSunny Kumar
 

What's hot (20)

Phase shift
Phase shiftPhase shift
Phase shift
 
Digital modulation techniqes (Phase-shift keying (PSK))
Digital modulation techniqes (Phase-shift keying (PSK))Digital modulation techniqes (Phase-shift keying (PSK))
Digital modulation techniqes (Phase-shift keying (PSK))
 
Digital modulation techniques updated
Digital modulation techniques updatedDigital modulation techniques updated
Digital modulation techniques updated
 
PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )
 
Binary phase shift keying (bpsk)
Binary phase shift keying (bpsk)Binary phase shift keying (bpsk)
Binary phase shift keying (bpsk)
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift Keying
 
Coherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASKCoherent and Non-coherent detection of ASK, FSK AND QASK
Coherent and Non-coherent detection of ASK, FSK AND QASK
 
Binary Pass-Band Modulation Techniques
Binary Pass-Band Modulation TechniquesBinary Pass-Band Modulation Techniques
Binary Pass-Band Modulation Techniques
 
PSK modulation
PSK modulationPSK modulation
PSK modulation
 
Tele3113 wk10tue
Tele3113 wk10tueTele3113 wk10tue
Tele3113 wk10tue
 
Digital Modulation Unit 3
Digital Modulation Unit 3Digital Modulation Unit 3
Digital Modulation Unit 3
 
Advantages of qpsk
Advantages of qpskAdvantages of qpsk
Advantages of qpsk
 
Dc unit 2
Dc unit 2Dc unit 2
Dc unit 2
 
Gmsk
GmskGmsk
Gmsk
 
8-PSK(Digital Communication Technique)
8-PSK(Digital Communication Technique)8-PSK(Digital Communication Technique)
8-PSK(Digital Communication Technique)
 
Design and implementation of qpsk modulator using digital subcarrier
Design and implementation of qpsk modulator using digital subcarrierDesign and implementation of qpsk modulator using digital subcarrier
Design and implementation of qpsk modulator using digital subcarrier
 
Phase Shift Keying & π/4 -Quadrature Phase Shift Keying
Phase Shift Keying & π/4 -Quadrature Phase Shift KeyingPhase Shift Keying & π/4 -Quadrature Phase Shift Keying
Phase Shift Keying & π/4 -Quadrature Phase Shift Keying
 
Digital modulation techniques
Digital modulation techniquesDigital modulation techniques
Digital modulation techniques
 
Amplitude shift keying
Amplitude shift keyingAmplitude shift keying
Amplitude shift keying
 
Psk, qam, fsk different modulation
Psk, qam, fsk different modulationPsk, qam, fsk different modulation
Psk, qam, fsk different modulation
 

Viewers also liked

At tawajud, al-wijdu dan al-wujud
At tawajud, al-wijdu dan al-wujudAt tawajud, al-wijdu dan al-wujud
At tawajud, al-wijdu dan al-wujudAfiqah SN
 
Project10 presentation
Project10 presentationProject10 presentation
Project10 presentationgardiyan06
 
Uu 15 2004 - pemeriksanaan keuangan(1)
Uu 15   2004 - pemeriksanaan keuangan(1)Uu 15   2004 - pemeriksanaan keuangan(1)
Uu 15 2004 - pemeriksanaan keuangan(1)Galuh Dyah
 
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017bachrie1982
 
Kredit dan Hukum Perjanjian Jaminan
Kredit dan Hukum Perjanjian JaminanKredit dan Hukum Perjanjian Jaminan
Kredit dan Hukum Perjanjian JaminanDamar Kartika
 
Hukum perjanjian
Hukum perjanjianHukum perjanjian
Hukum perjanjianputrakarno
 
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasi
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasiAnalisis keadaan ekonomi politik zaman orde lama, orde baru, reformasi
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasiInas Thahirah
 
Persiapan lahan dan penanaman kelapa sawit
Persiapan lahan dan penanaman kelapa sawitPersiapan lahan dan penanaman kelapa sawit
Persiapan lahan dan penanaman kelapa sawitIlham Johari
 
5. sahnya perikatan
5. sahnya perikatan5. sahnya perikatan
5. sahnya perikatanLukman Az
 

Viewers also liked (20)

At tawajud, al-wijdu dan al-wujud
At tawajud, al-wijdu dan al-wujudAt tawajud, al-wijdu dan al-wujud
At tawajud, al-wijdu dan al-wujud
 
Project10 presentation
Project10 presentationProject10 presentation
Project10 presentation
 
Uu 15 2004 - pemeriksanaan keuangan(1)
Uu 15   2004 - pemeriksanaan keuangan(1)Uu 15   2004 - pemeriksanaan keuangan(1)
Uu 15 2004 - pemeriksanaan keuangan(1)
 
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017
Rudiana bachrie, hapzi.ali, etika bisnis, mercubuana, 2017
 
Kredit dan Hukum Perjanjian Jaminan
Kredit dan Hukum Perjanjian JaminanKredit dan Hukum Perjanjian Jaminan
Kredit dan Hukum Perjanjian Jaminan
 
Jaminan (Kafalah)
Jaminan (Kafalah)Jaminan (Kafalah)
Jaminan (Kafalah)
 
Hukum perjanjian
Hukum perjanjianHukum perjanjian
Hukum perjanjian
 
Pemeriksaan Keuangan
Pemeriksaan KeuanganPemeriksaan Keuangan
Pemeriksaan Keuangan
 
Materi audit
Materi auditMateri audit
Materi audit
 
Bank Umum
Bank UmumBank Umum
Bank Umum
 
Present bab 13 auditing
Present bab 13 auditingPresent bab 13 auditing
Present bab 13 auditing
 
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasi
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasiAnalisis keadaan ekonomi politik zaman orde lama, orde baru, reformasi
Analisis keadaan ekonomi politik zaman orde lama, orde baru, reformasi
 
Auditing
AuditingAuditing
Auditing
 
Persiapan lahan dan penanaman kelapa sawit
Persiapan lahan dan penanaman kelapa sawitPersiapan lahan dan penanaman kelapa sawit
Persiapan lahan dan penanaman kelapa sawit
 
Hukum Perikatan
Hukum PerikatanHukum Perikatan
Hukum Perikatan
 
5. sahnya perikatan
5. sahnya perikatan5. sahnya perikatan
5. sahnya perikatan
 
Asas hukum perbankan
Asas hukum perbankanAsas hukum perbankan
Asas hukum perbankan
 
Hukum Jaminan
Hukum JaminanHukum Jaminan
Hukum Jaminan
 
Hukum jaminan
Hukum jaminanHukum jaminan
Hukum jaminan
 
Manajemen organisasi
Manajemen organisasiManajemen organisasi
Manajemen organisasi
 

Similar to Bpsk simulation

PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )vijidhivi
 
Sdcch 121130233301-phpapp02
Sdcch 121130233301-phpapp02Sdcch 121130233301-phpapp02
Sdcch 121130233301-phpapp02Rasim Levashov
 
Comparitive analysis of bit error rates of multiple input multiple output tra...
Comparitive analysis of bit error rates of multiple input multiple output tra...Comparitive analysis of bit error rates of multiple input multiple output tra...
Comparitive analysis of bit error rates of multiple input multiple output tra...slinpublishers
 
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...IJECEIAES
 
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODEL
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODELPARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODEL
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODELcsandit
 
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...IJECEIAES
 
Digital modulation
Digital modulationDigital modulation
Digital modulationAnkur Kumar
 
3a. Speech Coders
3a. Speech Coders3a. Speech Coders
3a. Speech Coderser_psolanki
 
Lecture Notes: EEEC6440315 Communication Systems - Spectral Efficiency
Lecture Notes:  EEEC6440315 Communication Systems - Spectral EfficiencyLecture Notes:  EEEC6440315 Communication Systems - Spectral Efficiency
Lecture Notes: EEEC6440315 Communication Systems - Spectral EfficiencyAIMST University
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...eSAT Journals
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...eSAT Publishing House
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...eSAT Journals
 
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...2 - Generation of PSK signal using non linear devices via MATLAB (presented i...
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...Youness Lahdili
 

Similar to Bpsk simulation (20)

PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )PSK (PHASE SHIFT KEYING )
PSK (PHASE SHIFT KEYING )
 
Dc unit iv
Dc unit ivDc unit iv
Dc unit iv
 
Sdcch 121130233301-phpapp02
Sdcch 121130233301-phpapp02Sdcch 121130233301-phpapp02
Sdcch 121130233301-phpapp02
 
ASk,FSK,PSK
ASk,FSK,PSKASk,FSK,PSK
ASk,FSK,PSK
 
[IJET V2I5P23] Authors:Pramod Kumar
[IJET V2I5P23] Authors:Pramod Kumar[IJET V2I5P23] Authors:Pramod Kumar
[IJET V2I5P23] Authors:Pramod Kumar
 
Comparitive analysis of bit error rates of multiple input multiple output tra...
Comparitive analysis of bit error rates of multiple input multiple output tra...Comparitive analysis of bit error rates of multiple input multiple output tra...
Comparitive analysis of bit error rates of multiple input multiple output tra...
 
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...
A 1.8 V 25 Mbps CMOS single-phase, phase-locked loop-based BPSK, QPSK demodul...
 
Rake Receiver
Rake ReceiverRake Receiver
Rake Receiver
 
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODEL
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODELPARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODEL
PARALLEL SEQUENCE SPREAD SPECTRUM SYSTEM SIMULATION WITH RAPP MODEL
 
C4_S2_G8 (1).pdf
C4_S2_G8  (1).pdfC4_S2_G8  (1).pdf
C4_S2_G8 (1).pdf
 
C4_S2_G8 .pdf
C4_S2_G8 .pdfC4_S2_G8 .pdf
C4_S2_G8 .pdf
 
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...
New scheme for PAPR reduction in FBMC-OQAM systems based on combining TR and ...
 
Digital modulation
Digital modulationDigital modulation
Digital modulation
 
3a. Speech Coders
3a. Speech Coders3a. Speech Coders
3a. Speech Coders
 
Lecture Notes: EEEC6440315 Communication Systems - Spectral Efficiency
Lecture Notes:  EEEC6440315 Communication Systems - Spectral EfficiencyLecture Notes:  EEEC6440315 Communication Systems - Spectral Efficiency
Lecture Notes: EEEC6440315 Communication Systems - Spectral Efficiency
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...
 
Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...Design and analysis of different digital communication systems and determinat...
Design and analysis of different digital communication systems and determinat...
 
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...2 - Generation of PSK signal using non linear devices via MATLAB (presented i...
2 - Generation of PSK signal using non linear devices via MATLAB (presented i...
 
GSM Air Interface
GSM Air Interface GSM Air Interface
GSM Air Interface
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

Bpsk simulation

  • 1. Date-09/09/13 SATISH KUMAR/ECE/16/B-1 Experiment-6 Object:- Write a program to simulate the transmitter and receiver for BPSK. Software required:- MATLAB 7.8.0(R2009a) Theory:AM and FM modulation schemes can be used to transmit digital signals and this allows for the channel to be shared. As digital data forms the message instead of speech and music, it is preferred that these two systems are called ASK and FSK instead. Recall that ASK uses the digital data’s 1s and 0s to switch a carrier between two amplitudes. FSK uses the 1s and 0s to switch a carrier between two frequencies. An alternative to these two methods is to use the data stream’s 1s and 0s to switch the carrier between two phases. This is called Binary Phase Shift Keying (BPSK). Figure 1 below shows what a BPSK signal looks like time-coincident with the digital signal that has been used to generate it. Notice that, when the change in logic level causes the BPSK signal’s phase to change, it does so by 180º. For example, where the signal is travelling towards a positive peak the change in logic level causes it to reverse direction and head back toward the negative peak (and vice versa). You may find it difficult to see at first but look closely and you’ll notice that alternating halves of the BPSK signal’s envelopes have the same shape as the message. This indicates that BPSK is actually double-sideband suppressed carrier (DSBSC) modulation. That being the case, BPSK generation and the recovery of the data can be handled by conventional DSBSC modulation and demodulation techniques (explained in Experiments 5 and 7 respectively). With a choice of ASK, FSK and BPSK you might be wondering about which system you’ll most likely see. All other things being equal, BPSK is the best performing system in terms of its ability to ignore noise and so it produces the fewest errors at the receiver. FM is the next best and AM is the worst. On that basis, you’d expect that BPSK is the preferred system.
  • 2. Date-09/09/13 Coding:clc; close all; clear all; input=[1 0 1 0 0 1 1]; Rb=100; Fs=16*Rb; Ts=1/Fs; Tb=1/Rb; p=length(input); amplitude=1; for count=1:length(input) for temptime=1:16 if(input(count)==0) output(count,temptime)=-1*amplitude; else output(count,temptime)=1*amplitude; end end end k1=reshape(output',1,112); t=0:Ts:Tb*length(input)-Ts; subplot(2,2,1); plot(t,k1); axis([0 0.07 -1.5 1.5]); xlabel('time'); ylabel('amp'); title('modulating signal'); Fc=10e1; t1=0:9/(112*Fc):9/Fc-(.03/Fc); y=cos(2*pi*Fc*t); subplot(2,2,2); plot(t1,y); xlabel('time'); ylabel('amplitude'); title('Carrier Signal'); z=k1.*y; subplot(2,2,3); plot(t1,z); xlabel('time'); ylabel('amplitude'); title('Modulated Signal'); n=awgn(z,10); subplot(2,2,4); plot(t1,n); xlabel('time'); ylabel('amplitude'); title('Noisy BPSK Signal'); v=z.*y; ks=length(v); integrationBase=0:1/Fs:Tb-Ts; for i=0:(length(v)/(Tb*Fs))-1 w(i+1)=trapz(integrationBase,v(int32(i*Tb*Fs+1):int32((i+1)*Tb*Fs))); end for i=0:(length(v)/(Tb*Fs))-1 if(w(i+1)>0) SATISH KUMAR/ECE/16/B-1
  • 3. Date-09/09/13 SATISH KUMAR/ECE/16/B-1 output1(i+1)=1; else output1(i+1)=0; end end final_output=output1 Input:- [1 0 1 0 0 1 1] Output:- final_output = 1 0 1 0 0 1 1 Result:- We have simulate the transmitter and receiver for BPSK and draw the output.