Student's Name.

You might also like

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

BIRZEIT UNIVERSITY

Electrical Engineering Department

ENEE 434
Digital Communication System

Project I

Minimum shift Keying

(MSK)

Student’s Name.: Samer Mukhaimar

Student’s No.: 1110727

Instructor.: Dr. Mohammad Jubran Section No.: (“ 1 “)

1|Page
Abstract :

the main aim of the project is to simulate minimum shift keying (MSK) using simulink
in Matlab and simulate the error bit rate , MSK modulator and demodulator using Additive
white Gaussing noise channel .

this were done using Many blocks in Matlab .

1) Set the transmitted voltage to any value


i ( t )=√ 2 cos( π ¿t /2Tb)¿

q ( t )=√ 2 sin(πt/ 2 Tb)

Assume Tb = 1/20 Sec fb = 20 Hz

so that
i ( t )=√ 2 cos(31.4 ¿t) ¿

q ( t )=√ 2 sin(32.4 t)

the Carriers :

assume V= 2 Volt

and Tc =1/10 Sec fc = 10 Hz


Ci ( t )=V cos(2 πfct ¿)¿

Cq ( t ) =V sin (2 πfct ¿)¿

Ci ( t )=2 cos(62.83t ¿)¿

Cq ( t ) =2sin (62.83 t¿)¿

2|Page
2) Set the channel to be an AWGN channel,
the AWGN channel was Set using Adder and Gaussian
Noise Generator .

fig(1) Additive noise channel

the Transmitter :

the transmitter were Done


using these blocks .

fig(2) transmitter
blocks

∅ 1 ( t )=√ 2 cos( π ¿t /2Tb)∗V cos (2 πfct ¿)/√ ((V 2)Tb)¿ ¿

∅ 2 ( t )=√ 2 sin(π ¿t /2 Tb)∗V sin(2 πfct ¿) /√((V 2) Tb)¿ ¿

3|Page
∅ 1 ( t )=√ 2 cos(31.4 ¿t)∗2 cos (62.83 t ¿)/¿ ¿ ¿0.44

∅ 1 ( t )=√ 2 sin(31.4¿t )∗2 sin(62.83 t¿)/¿ ¿ ¿0.44

the Design of the Receiver

fig(3) receiver blocks

the Bit Error rate Calculator: Was Designed using Gaussian Function followed by
integrator.

4|Page
fig(4) Error calculator theoretical

the practical calculator of pet error rate were done using a block

fig(5) bit calculator by comparing the values of Tx and Rx

power message
SNR=
power noice

5|Page
the Power for Message =0.44 Watt

Power for Noise Was


determine from the
properties of Gaussian
noise

=0.03 watt

in this Case the power =


Variance .

fig(7) Gauss channel noise


parameters

the associated SNR=0.44/0.03

SNR=14.9.db

6|Page
the Input Signal : the input message were done by using a pulse voltage source
with amplitude 2 V followed by subtractor to make the create BPSK.

fig(8)input signals

in phase signal :

out of phase signal

7|Page
the transmit signal (before noise )

the Noise (AWGN Channel)

8|Page
the transmit signal With Noise :

the output :

9|Page
the error bit rate :

when v= 2 Volt P[error]= 0.615*10^-4

For New SNR2

Set v= 1 Volt

SNR2= 7.45

the P[error] = 1.34*10^-3

10 | P a g e
the display screen shown the BER and this value when the
V=0.5 Volts

and this Values were obtained from the screen

other value of BER

when v= 10 the BER = 14.2*10^-5

As Seen when V decrease the Per error rate increase as shown

SNR(db) PER
V=1 7.45 1.34*10^-3
V=2 14.9 0.615*10^-4

11 | P a g e
for SNR= 3.7 db

P[error] =4.56*10^-3

by repeating the above steps this table were obtained

SNR(DB) 0.1 1 2 4 7 10 12 15 17 22
PER 0.2 0.0
0.63 0.38 1 0.1 6 0.0057 1.23*10^-4 0.69*10^-6 2.5*10^-7 9.2*1-*-8

By Using Excel to draw the Above table :

12 | P a g e
this were Done In QPSK Using M-file

13 | P a g e
clc;close all;clear;

d=randint(1,1000000);
s=2*d-1;
s=reshape(s,2,length(s)/2);
s(2,:)=j*s(2,:);
s=sum(s);
scatterplot(s)
Ps=var(s)/2;
SNRdB=10;
SNRr=10^(SNRdB/10);
Pn=Ps/SNRr;
W=sqrt(Pn)*randn(1,length(s))+j*sqrt(Pn)*randn(1,length(s));
X=s+W;
scatterplot(X);
X1=real(X)>0;
X2=imag(X)>0;
M=[X1;X2];
M=reshape(M,1,length(d));
Error=sum(abs(d-M));
text(0,0,num2str(Error));

14 | P a g e

You might also like