Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Nguyễn Minh Vượng

21200260

Báo cáo thực hành Các hệ thống truyền thông


Câu 1:

Câu 2:
𝑡
𝑦𝐹𝑀 (𝑡) = 𝑉𝑐 𝑐𝑜𝑠 [𝑤𝑐 𝑡 + 2𝜋𝐾𝑓 ∫ 𝑚(𝑡)𝑑𝑡]
0
𝑡
𝑦𝐹𝑀 (𝑡) = 5 𝑐𝑜𝑠 [𝑤𝑐 𝑡 + 4000𝜋 ∫ 𝑚(𝑡)𝑑𝑡]
0

Câu 3:
Phổ có chứa nhiều thành phần tần số (fc, fc + - fm, fc + - 2fm, fc + - 3fm, , fc + - 3fm, fc + - 4fm)
với các biên độ tương ứng khác nhau.Đối xứng qua trục 0.

Câu 4:

Code:

clc; clear; close all;

ts = 1/20000; % thoi gian lay mau


t = 0:ts:0.2;

% ============== thong tin ==========


Vm = 1; fm = 500;
mt = Vm*sin(2*pi*fm*t);

% ============== song mang ==========


Vc = 5; fc = 3000; omegac = 2*pi*fc;
xct = Vc*sin(2*pi*fc*t);

% ============== do nhay tan so =====


kf = 2000;

% ============== dieu che FM ========


yFM = zeros(1,length(t));
for i = 1:length(t)
to = 0:ts:t(i);
mtt = sin(2*pi*fm*to);
TP = sum(mtt*ts);
yFM(i) = Vc*cos(omegac*t(i) + 2*pi*kf*Vm*TP);

end

figure(1)
subplot(3,1,1)
plot(t,mt,'b-','linewidth',1.6); hold on;
legend('m(t)');
xlabel('t'); ylabel('V');
axis([0.1 0.11 -1.2 1.2])

subplot(3,1,2)
plot(t,xct,'g-','linewidth',1.6); hold on;
legend('x_c(t)');
xlabel('t'); ylabel('V');
axis([0.1 0.11 -5.2 5.2])

subplot(3,1,3)
plot(t,yFM,'r-','linewidth',1.6); hold on;
legend('y_{FM}(t)');
xlabel('t'); ylabel('V');
axis([0.1 0.11 -5.2 5.2])

Câu 5:
Câu 6:

Code:

clc; clear; close all;

ts = 1/20000; % thoi gian lay mau

fs = 1/ts;
t = 0:ts:0.2;

% ============== thong tin ==========


Vm = 1; fm = 500;
mt = Vm*sin(2*pi*fm*t);

% ============== song mang ==========


Vc = 5; fc = 3000; omegac = 2*pi*fc;
xct = Vc*sin(2*pi*fc*t);

% =============do nhay tan so =====


kf = 2000;

% ============== dieu che FM ========


yFM = zeros(1,length(t));
for i = 1:length(t)

to = 0:ts:t(i);
mtt = sin(2*pi*fm*to);
TP = sum(mtt*ts);
yFM(i) = Vc*cos(omegac*t(i) + 2*pi*kf*Vm*TP);

end
yFM;

% =============== Demodulation FM =======================


yFM_dh = diff(yFM); % dao hàm
yFM_bp = yFM_dh.^2; % Binh phuong (^2)

fc = 750; % Tan so cat cua loc


[b,a] = butter(12,fc/(fs/2));

mDem = filter(b,a,yFM_bp); % loc tan so cao


mDem = (mDem - 11.5)/11.5; %can chinh bien??

% ================== Do thi ==================


startp = 50;
endp = 300;

figure(1)
subplot(4,1,1)
plot(t(startp:endp),mt(startp:endp),'b-','linewidth',1.6); hold on;
legend('m(t)');
xlabel('t'); ylabel('V');

subplot(4,1,2)
plot(t(startp:endp),xct(startp:endp),'g-','linewidth',1.6); hold on;
legend('x_c(t)');
xlabel('t'); ylabel('V');

subplot(4,1,3)
plot(t(startp:endp),yFM(startp:endp),'r-','linewidth',1.6); hold on;
legend('y_{FM}(t)');
xlabel('t'); ylabel('V');

subplot(4,1,4)
plot(t(startp:endp),mDem(startp:endp),'c-','linewidth',1.6); hold on;
legend('m_{de}(t)');
xlabel('t'); ylabel('V');

You might also like