在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2549|回复: 3

[求助] 产生snr vs input amplitude(dbfs)图 疑问

[复制链接]
发表于 2013-6-7 10:49:53 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
用sdtoolbox产生snr vs input amplitude(dbfs)图的时候 ,snr由的toolbox仿真得到, input amplitude(dbfs) 如何得到,是用输入信号的幅度/参考电压吗? snr.jpg 图中Y轴的值如何理解
发表于 2013-6-7 23:01:56 | 显示全部楼层
for Ampl=0.1:0.05:Vref
Vzero=zeros(1,8);

t0=clock;
fd=1;
yy1=zeros(1,N);

open_system('ONE_PATH')
options=simset('InitialState', zeros(1,5), 'RelTol', 1e-3, 'MaxStep', 2*Ts);
sim('ONE_PATH', (N+Ntransient)/Fs, options);

%**************************************************************************************%
%**************Calculates SNR and PSD of the bit-stream and of the signal**************%
%**************************************************************************************%

yy1=Output(2+Ntransient:1+N+Ntransient)';
ptot=zeros(1,N);
[snr,ptot,psigdB,pnoisedB]=calcSNR(yy1(1:N),f,fBL,fBH,w,N);
Rbit=(snr-1.76)/6.02;



s1=sprintf('   SNR(dB)=%1.3f',snr);
s2=sprintf('   Simulation time =%1.3f min',etime(clock,t0)/60);
disp(s1)
disp(s2)
VrefOUT=[VrefOUT;Vref];
SNROUT=[SNROUT;snr];
AmplOUT=[AmplOUT;Ampl];
Vref
    end
end
ALLOUT=[VrefOUT,AmplOUT,SNROUT];
csvwrite('outputdata',ALLOUT);
ALLOUT
 楼主| 发表于 2013-6-8 10:47:26 | 显示全部楼层
请问全差分输入2.5+1,2.5+(-1)的sin信号 vref 0,5 dbfs 是怎么算的,
发表于 2013-6-23 02:50:55 | 显示全部楼层
看你电路的fullscale是多少,输入信号除掉这个值就行了。
简单的说就是2.5+2.5, 2.5-2.5的最大sin wave会对应到0dbfs
其馀的以此类推
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-8 02:14 , Processed in 0.025779 second(s), 11 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表