当前位置:网站首页>(duc/ddc) digital up mixing / quadrature down mixing principle and MATLAB simulation
(duc/ddc) digital up mixing / quadrature down mixing principle and MATLAB simulation
2022-06-22 21:34:00 【wgm1996】
Digital up mixing 、 Down-Convertor matlab Simulation , If readers are interested, please update later FPGA Implementation code .
In the code lowpass For low pass filter matlab Inside APP Filter Designer Generate , The specific configuration is as follows :

Simulation results :











Simulation code :
%% Digital up conversion 、 Digital quadrature down conversion simulation
clc;
clear;
close all;
%% Parameter setting
T = 20e-6; % Pulse width 20us
B = 50e6; % bandwidth 50M
f0 = 120e6; % 120M Intermediate frequency
Fs = 960e6; %1G sampling
N = T*Fs;
K = B/T;
t = linspace(-T/2, T/2, N);
F = ((1:N)-1)*Fs/N - Fs/2;
%% DUC Digital up conversion
%LFM
sig = exp (-1j*pi*K*(t).^2);
figure;
plot(real(sig)) ;
hold on;
plot(imag(sig)) ;
title(' Original signal time domain ( Real component )');
% Pulse pressure
coe = exp(1j*pi*K*(t).^2);
len = length (coe);
coe = coe.*hamming(len).';
pc = conv(sig, coe);
figure;
plot(abs(pc));
title(' Original signal pulse compression result ');
figure;
plot(20*log10(abs(pc)/max(abs(pc))));
title(' Original signal pulse compression result (dB)');
figure;
plot(F/1e6, abs(fftshift(fft(sig))));
xlabel(' frequency /Mz');
title(' Baseband signal spectrum ');
% Intermediate frequency
mid_f =exp(1j*2*pi*f0*t);
figure;
plot (F/1e6, abs(fftshift(fft(mid_f))));
xlabel(' frequency /MHz');
title(' If signal spectrum ');
% Up mixing
f_up = sig.*mid_f;
figure;
plot(F/1e6,abs(fftshift(fft(f_up))));
xlabel(' frequency /MEz');
title(' Up mixing signal spectrum ');
%% DDC Digital down conversion
% Digital quadrature down mixing
mid_f_in = cos(2*pi*f0*t + pi*K*(t).^2);
figure,
plot(F/1e6, abs(fftshift(fft(mid_f_in))));
xlabel(' frequency /MHz');
title(' Down mixing input signal spectrum ');
mif_f_sin = sin(2*pi*f0*t);
mif_f_cos = cos(2*pi*f0*t);
f_down_real = mid_f_in.*-mif_f_sin;
f_down_imag = mid_f_in.*mif_f_cos;
f_down = f_down_real + 1j*f_down_imag;
figure;
plot(F/1e6, abs(fftshift(fft(f_down))));
xlabel(' frequency /MHz');
title(' Digital quadrature down mixing signal spectrum ');
% IQ The two channels are respectively low-pass filtered
f_down_new_real = zeros(1,50000);
f_down_new_real(1:length(f_down_real)) = f_down_real;
f_down_new_imag = zeros(1,50000);
f_down_new_imag(1:length(f_down_imag)) = f_down_imag;
%5OM low pass filter
load lowpass
f_down_lowpass_real = filter(lowpass, 1, f_down_new_real);
f_down_lowpass_imag = filter(lowpass, 1, f_down_new_imag);
f_down_lowpass = f_down_lowpass_real + 1j*f_down_lowpass_imag;
figure;
plot(abs(fftshift(fft(f_down_lowpass))));
% xlabel(' frequency /MHz');
title(' Low pass filtered signal spectrum ');
figure;
plot(imag(f_down_lowpass)) ;
hold on;
plot(real(f_down_lowpass));
title(' Time domain of low-pass filtered signal ( Real component )');
pc = conv(f_down_lowpass, coe);
figure;
plot(abs(pc));
title(' Low pass filtered signal pulse compression results ');
figure;
plot (20*log10(abs(pc)/max(abs(pc))));
title(' Low pass filtered signal pulse compression results (dB)');
边栏推荐
- How swiftui simulates the animation effect of view illumination increase
- 94-SQL优化案例一则(用到的写法经常是被嫌弃的)
- 密码学系列之:PKI的证书格式表示X.509
- Learning cloud network from teacher Tang - openstack network implementation
- 2022 a special equipment related management (elevator) examination questions and simulation examination
- 杰理之开启四声道通话近端卡顿问题【篇】
- [160. cross linked list]
- [redis] profile
- 【21. 合并两个有序链表】
- 杰理之开启四声道通话近端变调问题【篇】
猜你喜欢
![DACL output on Jerry's hardware, DAC output sound of left and right channels [chapter]](/img/8a/ce164a5538bd8edf10eba5e4e8abe6.png)
DACL output on Jerry's hardware, DAC output sound of left and right channels [chapter]

【206. 反转链表】

TC397 Flash

Arcgis中las点云数据抽稀
![[20. valid brackets]](/img/e9/50f327048055b07b68e694a9003130.png)
[20. valid brackets]

Adblock屏蔽百度热搜

【OR36 链表的回文结构】

【链表中倒数第k个结点】

2022 group programming TIANTI race L1

Operation of simulation test platform for 2022 Shandong safety officer C certificate test
随机推荐
redis学习笔记
第029讲:文件:一个任务 | 课后测试题及答案
Learning cloud network from teacher Tang - openstack network implementation
[redis] publish and subscribe
Operation of simulation test platform for 2022 Shandong safety officer C certificate test
71- analysis of an Oracle DBA interview with Alibaba in 2010
Final review of scientific and technological literature of Shandong University (Personal Crash Course)
嵌入式开发基础之任务管理(线程管理)
Jerry's plug-in 4m flash to view the processing method with a size of only 1m on the PC [chapter]
NFT,只可远观不可亵玩焉
es 按条件查询数据总条数
微信小程序批量提交审核
第030讲:文件系统:介绍一个高大上的东西 | 课后测试题及答案
RealNetworks vs. 微软:早期流媒体行业之争
基于C语言开发工资管理系统 课程论文+源码及可执行exe文件
Win10 installation net3.5. docx
Learning websites that programmers must see
Apple corefoundation source code
[20. valid brackets]
安卓kotlin sp dp转px