clc;clear;close all;
%++++++++++++++++++A/D Specification++++++++++++++++++++
Vp_ADC = 2.5;
Vpp_ADC = 2*Vp_ADC; %-2.5 ~ 2.5
Bitno_ADC = 12; % ADC Bit Number
Pmw = 1000; % mw/W
RL = 50; % Matched Resistance (Ohm)
%-------------------ADC Calc--------------------------
VLsb_ADC = (2*Vp_ADC)/(2^Bitno_ADC); %V
Psat_ADC = 10*log10(Vp_ADC/(2*RL/Pmw)); % Saturation power level for ADC
PLsb_ADC = 10*log10(VLsb_ADC/(2*RL/Pmw)); % Minimum signal power level detected by an ADC
k_ADC = 1:0.5:10; %noise rms to VLSB Ratio
Datano = length(k_ADC);
for i = 1:Datano
Vmin_ADC(i) = k_ADC(i)*VLsb_ADC; % noise rms amplify by reciver to 3*VLsb Level
LQ(i) = 10*log10(1+(VLsb_ADC / Vmin_ADC(i)).^2); % Quantization Loss versus Vmin selection
DR_ADC(i) = 20*log10(Vp_ADC / Vmin_ADC(i));
Pmin_ADC(i) = Psat_ADC - DR_ADC(i);
end
%----------------------------------------------
%--------------------------------------------------------------------------
disp([' -------------- ADC Parameters -----------']);
disp([' ---------------------------------------------']);
disp([' Bit Number : ' num2str(Bitno_ADC) ' bit']);
disp([' Saturation Power : ' num2str(Psat_ADC) ' dBm']);
disp([' LSB Power : ' num2str(PLsb_ADC) ' dBm']);
%---------------------------------------------
figure(1);
% subplot(211);
plot(k_ADC,LQ,'linewidth',2,'color','r');grid;xlabel('Noise rms (LSB)');ylabel('Quantization Error (dB)');title('Quantization Error versus Noise rms')
%subplot(212);
figure(2);
plot(k_ADC,DR_ADC,'linewidth',2,'color','r');grid;xlabel('Noise rms (LSB)');ylabel('ADC Dynamic Range (dB)');title('ADC Dynamic Range versus Noise rms')
% figure(2);
% plot(k_ADC,Pmin_ADC,'linewidth',2,'color','b');grid; xlabel('Noise rms (LSB)');ylabel('Minimum Power Level (dB)')
% disp([' Noise rms/VLSB : ' num2str(k_ADC) ' ']);
disp([' Quantization Error : ' num2str(LQ) ' dB ']);
disp([' Dynamic Range : ' num2str(DR_ADC) ' dB ']);
disp([' Minimum Power : ' num2str(Pmin_ADC) ' dBm']);
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ADC.rar (1个子文件)
ADC.m 2KB
共 1 条
- 1
资源评论
钱亚锋
- 粉丝: 88
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功