FM modulator 및 demodulator
- 최초 등록일
- 2010.09.10
- 최종 저작일
- 2009.04
- 10페이지/
한컴오피스
- 가격 2,000원
![할인쿠폰받기](/images/v4/document/ico_det_coupon.gif)
소개글
clear;
close all
%echo on;
% Option
MESSAGE_TYPE = 1; % 1 for signal 1, 2 for signal 2
% Define parameters
df=0.2 % desired frequency resolution [Hz]
ts=1/2000; % sampling interval [sec]
fs=1/ts; % sampling frequency
fc=250; % carrier frequency
kf=80; % frequency sensitivity [Hz/volt], {20,40,80}으로 변경하면서 simulation 할 것
% -----------------------------------------------
% Message signal generation
% -----------------------------------------------
if MESSAGE_TYPE == 1,
% For signal 1: multilevel rectangular pulse sequence
T1=0; T2=0.15; % observation time interval (from T1 to T2 sec)
m=[ones(1,T2/(3*ts)),-2*ones(1,T2/(3*ts)),zeros(1,T2/(3*ts)+1)];
else
% For signal 2: m(t) = |sin(10*pi*t)|, -0.1 <= t <= 0.1, ts = 1/2000
% 위와 같이 정의된 m(t)를 sampling한 sequence를 생성하는 code를 작성할 것
end
% Define minimum and maximum of message signal
m_min=min(m); m_max=max(m);
% -------------
% Modulation
% -------------
t=[T1:ts:T2]; % observation time vector
N=length(t);
integ_m(1)=0;
for i=1:length(t)-1 % integral of m
integ_m(i+1)=integ_m(i)+m(i)*ts;
echo off ;
end
목차
1. FM modulator 및 demodulator 동작 확인
2. Message signal 정의
3. Frequency deviation에 따른 성능 비교
본문내용
clear;
close all
%echo on;
% Option
MESSAGE_TYPE = 1; % 1 for signal 1, 2 for signal 2
% Define parameters
df=0.2 % desired frequency resolution [Hz]
ts=1/2000; % sampling interval [sec]
fs=1/ts; % sampling frequency
fc=250; % carrier frequency
kf=80; % frequency sensitivity [Hz/volt], {20,40,80}으로 변경하면서 simulation 할 것
% -----------------------------------------------
% Message signal generation
% -----------------------------------------------
if MESSAGE_TYPE == 1,
% For signal 1: multilevel rectangular pulse sequence
T1=0; T2=0.15; % observation time interval (from T1 to T2 sec)
m=[ones(1,T2/(3*ts)),-2*ones(1,T2/(3*ts)),zeros(1,T2/(3*ts)+1)];
else
% For signal 2: m(t) = |sin(10*pi*t)|, -0.1 <= t <= 0.1, ts = 1/2000
% 위와 같이 정의된 m(t)를 sampling한 sequence를 생성하는 code를 작성할 것
end
% Define minimum and maximum of message signal
m_min=min(m); m_max=max(m);
% -------------
% Modulation
% -------------
t=[T1:ts:T2]; % observation time vector
N=length(t);
integ_m(1)=0;
for i=1:length(t)-1 % integral of m
integ_m(i+1)=integ_m(i)+m(i)*ts;
echo off ;
end
참고 자료
없음