Documente Academic
Documente Profesional
Documente Cultură
1.
2.
3.
4.
THEORY:
Binary Phase Shift Keying(BPSK) is one of the most efficient modulation techniques.
In BPSK, phase of the sinusoidal carrier is changed according to the data bit to be
transmitted. In any phase modulation scheme the information is expressed in terms of
phase of the carrier. Phase of the carrier signal is shifted according to the input binary data. A
pair of sinusoidal waves that differ only in a relative phase shift of 1800 are referred to as
antipodal signals.In BPSK, the phase of the radio carrier is set to 0 or according to the
value of the incoming bit. Each bit of the digital signal produces a transmit symbol with
duration Ts, which is equal to the bit duration Tb.
s(t) = b(t)
2Eb
T b cos(2f ct)
b(t) = + 1 whenbinary1istobetransmitted
1 whenbinary0istobetransmitted
The signal b(t) is a NRZ bipolar signal which directly modulates the carrier signal
cos(2f ct) . BPSK signal may be generated by applying carrier signal to a balanced modulator.
(t) =
T b cos(2fct) 0tT b
Tb
s1(t)(t)dt = + Eb
0
Tb
s2(t)(t)dt = Eb
(t) =
1(t) =
2
T b cos(2fct) 0tT b
2
T b sin(2fct) 0tT b
Upon receiving r , an optimum receiver makes the best decision about whether the
corresponding transmitted signal was s1(t) or s2(t) . At the receiver, the signal is passed
through a correlator, which is used to determine whether bit 0 or bit 1 was transmitted.
If bit 1 is transmitted, the transmitted signal will be s1(t) and the correlator output is
r(t) =
Tb
s1(t)(t)dt = + Eb
Tb
s2(t)(t)dt = Eb
P (r/s1) =
1
e
N
0
P (r/s2) =
1
e
N
0
(rEb)2
N0
(r+Eb)2
N0
Error occurs in two situations: when s1(t) is transmitted and r < Vth, and s2(t) is
transmitted and r > Vth.
( )
2Eb
N0
Similarly,
P e/s2 = P [(r > V th)/s2)] = Q
( )
2Eb
N0
( ) = erfc(
2Eb
N0
1
2
Eb
N o ) ,
Eb
No)
MATLAB CODE:
clear all;
close all;
clc;
N=1024;
fc=100; % Carrier Freq
Rb=100;% Bit Rate
f=100*Rb; % Sampling Freq
A=1;
Eb=(A^2)/(2*Rb);
b=randi(2,1,N);
b=2.*b-3;
t=0:1/f:N/Rb;
pat=zeros(size(t));
for i=1:N
for j=(((i-1)*f/Rb)+1):1:(i*f/Rb)
pat(j)=b(i);
end
end
sig=(sqrt(2*Eb*Rb)*(fc/f)*cos(2*pi*fc*t));
bpsk_w = pat.*(sqrt(2*Eb*Rb)*(fc/f)*cos(2*pi*fc*t));
figure(1);
subplot(3,1,1);
plot(t,sig,'color','r');
axis([0 0.1 -0.02 0.02]);
subplot(3,1,2)
plot(t,pat,'color','r')
axis([0,0.1 -2 2]);
subplot(3,1,3);
axis([0 0.1 -0.02 0.02]);
hold on;
plot(t,bpsk_w,'color','r');
title('BPSK Modulated Signal');
S1=sqrt(2*Rb)*(fc/f)*cos(2*pi*fc*t);
S2=sqrt(2*Rb)*(fc/f)*sin(2*pi*fc*t);
inPh=zeros(1,N);
quad=zeros(1,N);
for i=1:N
for j=(((i-1)*f/Rb)+1):1:(i*f/Rb)
inPh(i)=inPh(i)+S1(j)*bpsk_w(j);
quad(i)=quad(i)+S2(j)*bpsk_w(j);
end
5
end
figure(2);
axis([-.1,.1,-.1,.1]);
for i=1:N
hold on;
plot(inPh(i),quad(i),'.r','markersize',20);
end
title('Constellation Diagram');
inPh=zeros(1,N);
quad=zeros(1,N);
for i=1:N
for j=(((i-1)*f/Rb)+1):1:(i*f/Rb)
bpsk_w(j)=bpsk_w(j)+normrnd(0,0.005);
inPh(i)=inPh(i)+S1(j)*bpsk_w(j);
quad(i)=quad(i)+S2(j)*bpsk_w(j);
end
end
figure(3);
axis([-.1,.1,-.1,.1]);
for i=1:N
hold on;
plot(inPh(i),quad(i),'.g','markersize',20);
end
title('Constellation Diagram with AWGN');
SNR=0:2:14;
No=zeros(1,numel(SNR));
var=zeros(1,numel(SNR));
SNR_N=zeros(1,numel(SNR));
for i=1:numel(SNR)
SNR_N(i)=10^(SNR(i)/10);
No(i)=Eb/SNR_N(i);
var(i)=No(i)/2;
end
BER=zeros(1,numel(var));
for l=1:numel(No)
inPh=zeros(1,N);
quad=zeros(1,N);
bpsk_n=zeros(1,numel(bpsk_w));
for i=1:N
for j=(((i-1)*f/Rb)+1):1:(i*f/Rb)
bpsk_n(j)=bpsk_w(j)+normrnd(0,sqrt(var(l)));
inPh(i)=inPh(i)+S1(j)*bpsk_n(j);
quad(i)=quad(i)+S2(j)*bpsk_n(j);
end
6
end
bpsk_r=zeros(1,N);
error=0;
for i=1:N
if inPh(i)<0
bpsk_r(i)=-1;
else
bpsk_r(i)=1;
end
if bpsk_r(i)~=b(i)
error=error+1;
end
end
BER(l)=error/N;
end
figure(4);
semilogy(SNR,BER,'color','r');
hold on;
BER_T=0.5*erfc(sqrt(SNR_N));
plot(SNR,BER_T,'color','g');
title('BPSK BER Curves');
legend('Practical Curve','Theoretical Curve');
OBSERVATIONS:
2 , there will be negative correlation between the received signal and carrier. When this
negatively correlated signal is passed through a coherent detector, it results in error.
For some constant Eb , if the SNR is varied, the power spectral density
( ) of
N0
2
AWGN is varied. As N 0 changes, the variance changes and we are able to find out the errors
for different noise variances. The theoretical and the practical BER curves are almost
identical. As the SNR increases, the PSD of AWGN decreases and hence the noise variance
and there will be lesser and lesser distortions and thus less number of errors and results in
lower BER. That is why the BER decreases exponentially with SNR. It is exponential because
the erfc is exponential.
One of the disadvantages of BPSK is that it is susceptible to Intersignal
interferences(ISI). This can be reduced by using equalisers at the receiver. They are filter like
structures used to nullify the adverse effects of filters introduced at other places in a
communication channel.
10
(ADARSH M J B110476EC)
A very popular digital modulation scheme, binary phase shift keying (BPSK) shifts the carrier
sine wave 180 for each change in binary state. BPSK is coherent as the phase transitions
occur at the zero crossing points. The proper demodulation of BPSK requires the signal to
be compared to a sine carrier of the same phase. In BPSK, individual data bits are used to
control the phase of the carrier. During each bit interval, the modulator shifts the carrier to
one of two possible phases, which are 180 or radians. The first two lab sessions were
concerned with the implementation of Binary Phase Shift Keying (BPSK) scheme of digital
modulation and its BER performance simulation using Matlab.
The BPSK signal (using antipodal signaling) is obtained in MATLAB using NRZ level
encoder.
The constellation diagram for this signal is obtained and verified with theoretical
shapes.
We simulate the Bit-error-rate performance of digital communication system by
adding a controlled amount of noise to the transmitted signal.
By changing the variance of AWGN, scattering in constellation diagram changes. I.e.
increasing the variance of AWGN resulting less scattering in constellation diagram.
The theoretical equation for bit error rate (BER) with Binary Phase Shift Keying
(BPSK) modulation scheme in Additive White Gaussian Noise (AWGN) channel is
derived.
We assumed that s0 and s1 are equally probable, i.e. P (s1) = P (s2) = 12 , so the
threshold V th = 0 . Otherwise, the threshold is set in such a way that it is shifted to
that side which has lesser probability.
A BER test provides a measurable and useful indication of the performance of the
system that can be directly related to its operational performance. If the BER rises
too high then the system performance will noticeably degrade. If it is within limits
then the system will operate satisfactorily.
As we increase the transmitted signal per energy bit, Eb , for a specified noise
spectral density N o , the message points corresponding to symbols 1 and 0 move
further apart, and the average probability of error P e is correspondingly reduced in
accordance with the BER equation.
When SNR increase, the noise power level decreases and there will be less no of
distortions and errors that results in lower BER.
As expected antipodal BPSK provided the best performance due to the large distance
( 2Eb) between the constellation points and hence improved immunity to noise.
This modulation is the most robust of all the PSKs since it takes the highest level of
noise or distortion to make the demodulator reach an incorrect decision. It is,
however, only able to modulate at 1 bit/symbol and so is unsuitable for high
data-rate applications. In the presence of an arbitrary phase-shift introduced by the
communications channel, the demodulator is unable to tell which constellation point
is which. As a result, the data is often differentially encoded prior to modulation.
11
(B.LOKESH B110471EC)
From the above experiment we can infer the following about BPSK:
BPSK is the simplest form of Phase Shift Keying (PSK), it uses two phases which are
separated by 180 degrees.
BPSK is the most robust of all Phase Shift Keying since it takes the highest level of
noise distortion to make the demodulator reach an incorrect decision.
From the plot of BER versus Eb/No (verified with the theoretical plot), we can infer
that as the PSNR increases, the bit error rate decreases. This is because, for a given
No, as Eb increases, the separation between the two constellations increases and
hence the probability of error decreases.
The BER versus Eb/No plot could not be extended all the way to SNR=14dB as the
BER gets reduced to 0 in the simulation.
When AWGN noise was added, the constellations were found to cluster near the
actual constellation. however using maximum likelihood principle we could recover
the actual signal for cases where the error wasnt beyond the threshold limit.
We assumed that s0 and s1 are equally probable, i.e. P (s1) = P (s2) = 12 , so the
threshold V th = 0 . Otherwise, the threshold is set in such a way that it is shifted to
that side which has lesser probability.
12
13