Académique Documents
Professionnel Documents
Culture Documents
Partie pratique :
AM DBAP (modulation d’amplitude double bande sans porteuse) Ce script nous
permet de dessiner la représentation temporelle des différents signaux le modulant, la
porteuse et le modulé.
Partie programme :
Soit : m :le signale modulant
P :la porteuse
S : Signale modulé AM
Remarque:
La variation d’amplitude est proportionnelle à la variation de signale
modulant.
1
Figure 06 : représentation temporelle lorsque K>1 la sur modulation
Interpretation :
L’analyse spectrale :
Programme :
2
Figure 07: représentation spectrale K>1
Démodulation :
Ce script a pour objectif de démoduler le signal modulé pour avoir le signal original et
ceci en utilisant un filtre passe bas en utilisant les deux fonctions butter et filter (ordre
3).
Programme :
3
Le cas K>1
150
100
50
-50
-100
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
100
50
-50
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Le cas K<1
40
35
30
25
20
15
10
0
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
4
24
22
20
18
16
14
12
10
6
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
AM DBAP (simulink)
01
tcudorP
4
)sttaW( edutingaM
5- 4- 3- 2- 1- 0 1 2 3 4 5
)zHk( ycneuqerF
ar elpmaS ,zH 56.41=WBR
5
07
1ngiseD retliF latigiD
06
05
04
03
)sttaW( edutingaM
02
01
5- 4- 3- 2- 1- 0 1 2 3 4 5
)zHk( ycneuqerF
zHk 01=etar elpmaS ,zH 56.41=WBR
6
TP2
7
8
Partie Pratique
Modulation FM
Le script Matlab
Observation
La fréquence du signal modulé (information contenue dans la fréquence) augmente
avec l’augmentation de l’amplitude du signal modulant (information en amplitude).
9
Le script Matlab
La représentation temporelle :
10
Figure 23: La représentation temporelle
Démodulation FM
11
Figure 27 : La représentation temporelle
12
TP03
Partie pratique :
Le choix
du
codage
La sélection
Les
du numéro
données
de codage
(DATA)
figure 31 : digital modulations trainer
13
Le code NRZ (L)( no return to zero(level) ) :
14
Figure 35 : la sélection du code NRZ (M)
15
Figure 38 : le code RZ
Biphase mark :
16
Figure 41 : la sélection de code biphase mark
‘1’ : le bit 1 prend l’état inverse de bit précédent mais ce n’est pas en milieu de
bit
Biphase manchester :
17
Figure 44 : le code biphase manchester
LINE CODING :
18
Figure 47 : la selection du NRZ unipolar coding
19
Figure 50 : NRZ polar coding
20
Figure54 : manchester coding
RZ :
Programme :
clc
clear;
x= [0 1 1 1 0 0 1 1 0 1 0 1 0 1 1 0 0];
T=length(x);
n=200;
N=n*T;
dt=T/N;
t=0:dt:T;
y=zeros(1,length(t));
for i=0:T-1;
if x(i+1)==1
y(i*n+1:(i+1)*n)=1
else
y(i*n+1:(i+1)*n)=0
end;
end;
% ligne,colonne,position
plot(t,y)
grid on
axis([0 t(end) -2 2]);
title('RZ CODING');
21
RZ CODING
2
1.5
0.5
-0.5
-1
-1.5
-2
0 2 4 6 8 10 12 14 16
NRZ :
clc
clear;
x= [0 1 1 1 0 0 1 1 0 1 0 1 0 1 1 0 0];
T=length(x);
n=200;
N=n*T;
dt=T/N;
t=0:dt:T;
y=zeros(1,length(t));
for i=0:T-1;
if x(i+1)==1
y(i*n+1:(i+1)*n)=1
else
y(i*n+1:(i+1)*n)=-1
end;
end;
% ligne,colonne,position
plot(t,y)
grid on
axis([0 t(end) -2 2]);
title('NRZ CODING');
NRZ CODING
2
1.5
0.5
-0.5
-1
-1.5
-2
0 2 4 6 8 10 12 14 16
AMI BIPOLAR :
clc;
clear;
22
x=[0 1 0 1 0 0 0 1 1 0 1 1 0 0 0 1];
T=length(x);
n=200;
N=n*T;
dt=T/N;
pulse=-1;
t=0:dt:T;
y=zeros(1,length(t));
for i=0:T-1;
if x(i+1)==1
if pulse==-1
y(i*n+1 : (i+1)*n)=-1;
else
pulse=1;
y(i*n+1 : (i+1)*n)=1;
end;
else
y(i*n+1 : (i+1)*n)=0;
end;
end;
plot(t,y);
axis([0 t(end) -2 2]);
grid on;
title('Bipolar AMI');
Bipolar AMI
2
1.5
0.5
-0.5
-1
-1.5
-2
0 2 4 6 8 10 12 14 16
Figure57 :AMI BIPOLAR
clc;
clear;
x=[0 1 0 1 0 0 0 1 1 0 1 1 0 0 0 1];
T=length(x);
n=100;
N=2*n*T;
dt=T/N;
t=0:dt:T;
y=zeros(1,length(t));
23
for i=0:1:(T-1);
if x(i+1)==1
y(i*2*n+1 : (2*i+1)*n)=-1;
y((i*2+1)*n+1 : (2*i+2)*n)=1;
else
y(i*2*n+1 : (2*i+1)*n)=1;
y((2*i+1)*n+1 : (2*i+2)*n)=-1;
end;
end;
plot(t,y);
axis([0 t(end) -2 2]);
grid on;
title('Manchester');
Figure58 : Manchester
clc;
clear;
x=[0 1 0 1 0 0 0 1 1 0 1 1 0 0 0 1];
T=length(x);
n=100;
N=2*n*T;
dt=T/N;
pulse=-1;
t=0:dt:T;
y=zeros(1,length(t));
for i=0:(T-1);
if x(i+1)==1
if pulse==1
pulse=-1;
y(i*2*n+1 : (2*i+1)*n)=-1*pulse;
y((2*i+1)*n+1 : (2*i+2)*n)=pulse;
else
pulse=1;
y(i*2*n+1 : (2*i+1)*n)=-1*pulse;
y((2*i+1)*n+1 : (2*i+2)*n)=pulse;
end;
end;
end;
24
plot(t,y);
axis([0 t(end) -2 2]);
grid on;
title('differential Manchester');
TP4
Partie pratique :
25
Figure 63 : la sélection de l’ASK
26
Figure 67 : démodulation ASK
2-FSK
27
Figure 70 : démodulation FSK
PSK-3
28
Figure73 : démodulation PSK
: QPSK-3
29
Figures75/76/77 :modulation démodulation QPSK
: programme -1
matlab code for digital modulation(ask, fsk and psk) %
;pi=3.14
;f=5
;f2=10
;phi=pi
;x=[1 0 1 1 0]
;nx=size(x,2)
;i=1
while i<nx+1
;t = i:0.001:i+1
if x(i)==1
;ask=sin(2*pi*f*t)
;fsk=sin(2*pi*f*t)
;psk=sin(2*pi*f*t)
else
;ask=0
;fsk=sin(2*pi*f2*t)
;psk=sin(2*pi*f*t+phi)
end
30
;subplot(3,1,1)
;plot(t,ask)
;hold on
;grid on
;axis([1 10 -2 2])
;subplot(3,1,2)
;plot(t,fsk)
;hold on
;grid on
;axis([1 10 -2 2])
;subplot(3,1,3)
;plot(t,psk)
;hold on
;grid on
;axis([1 10 -2 2])
;i=i+1
end
Autres programmes
LA modulation ASK sous Matlab:
clc;
clear all;
close all;
%%%%%Binary information
x=[1 0 0 1 1 0 1];
bp=.000001;
disp('Binary information at transmitter:');
disp(x);
%%%%% representation of transmitting binary information as digital signal
bit=[];
31
for n=1:1:length(x)
if x(n)==1;
se=ones(1,100);
else x(n)==0;
se=zeros(1,100);
end
bit=[bit se];
end
t1=bp/100:bp/100:100*length(x)*(bp/100);
subplot(3,1,1);
plot(t1,bit,'LineWidth',2.5); grid on;
axis ([0 bp*length(x) -.5 1.5]);
ylabel ('amplitude (volts)');
xlabel('time (sec)');
title('transmitting information as digital signal');
%%%% Binary ASK modulation
A1=10;% amplitude of carrier for information=1
A2=5; % amplitude of carrier for information=0
br=1/bp;
f=br*10;
t2=bp/99:bp/99:bp;
ss=length(t2);
m=[];
for i=1:1:length(x)
if (x(i)==1)
y=A1*cos(2*pi*f*t2);
else
y=A2*cos(2*pi*f*t2);
end
m=[m y];
end
t3=bp/99:bp/99:bp*length(x);
subplot(3,1,2);
plot(t3,m);
xlabel('time (sec)');
ylabel('amplitude (volt)');
title('binary ASK modulation');
32
Figure 79 : modulation PSK
33
for i=1:1:length(x)
if (x(i)==1)
y=A1*cos(2*pi*f1*t2);
else
y=A1*cos(2*pi*f2*t2);
end
m=[m y];
end
t3=bp/99:bp/99:bp*length(x);
subplot(3,1,2);
plot(t3,m);
xlabel('time (sec)');
ylabel('amplitude (volt)');
title('binary ASK modulation');
34
subplot(3,1,1);
plot(t1,bit,'LineWidth',2.5); grid on;
axis ([0 bp*length(x) -.5 1.5]);
ylabel ('amplitude (volts)');
xlabel('time (sec)');
title('transmitting information as digital signal');
%%%% Binary PSK modulation
A1=5;
br=1/bp;
f=br*2;
t2=bp/99:bp/99:bp;
ss=length(t2);
m=[];
for i=1:1:length(x)
if (x(i)==1)
y=A1*cos(2*pi*f*t2);
else
y=A1*cos(2*pi*f*t2+pi);
end
m=[m y];
end
t3=bp/99:bp/99:bp*length(x);
subplot(3,1,2);
plot(t3,m);
xlabel('time (sec)');
ylabel('amplitude (volt)');
title('binary ASK modulation');
35
Ecole National Polytechnique Oran
Département de Génie Electrique
Compte-Rendu
Module : système de communication
: Travaille pratiques 1, 2, 3 et 4
Date : 17-06-2019
Groupe : A1
36