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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 11091|回复: 8

跪求计算adc的静态参数INL和DNL的matlab代码

[复制链接]
发表于 2017-3-14 15:59:20 | 显示全部楼层 |阅读模式

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

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

x
小弟毕业设计是测试c8051f560-TB单片机上adc的静态参数INL和DNL,现在急需计算matlab代码计算inl和dnl,求大神出现
发表于 2017-4-19 13:52:05 | 显示全部楼层
The code from Maxim can be found in the following link:
https://www.maximintegrated.com/en/app-notes/index.mvp/id/2085
It can be used directly. Have fun.
发表于 2017-7-19 14:53:53 | 显示全部楼层
回复 2# lst19


   O(∩_∩)O谢谢
发表于 2018-4-28 12:09:14 | 显示全部楼层
thank you for your generation.
发表于 2018-4-29 14:53:46 | 显示全部楼层
回复 1# 巴甫洛夫很忙


    please try this one.
-----------------------------------------------------------------------------------------
% dnl and inl plots from sine wave data% input vector y should contain the unbinned signal (integer numbers)% Boris Murmann, 2002function dnl_inl(y);details = 0;            % set to 1 to plot intermediate results% histogram boundariesminbin=min(y);maxbin=max(y);numbins=maxbin-minbin+1;% histogramh= hist(y, minbin:maxbin);if (details)  figure(2);  plot(minbin:maxbin, h);  title('Raw Histogram of ADC Output');end% cumulative histogramch= cumsum(h);% transition levelsT = -cos(pi*ch/sum(h));if (details)  figure(3);  plot(minbin:maxbin, T);  title('Transitiion Levels');end% linearized histogramhlin = T(2:end) - T(1:end-1);if (details)  figure(4);  plot(minbin+1:maxbin, hlin);  title('Linearized Histogram');end% truncate at least first and last bin, more if input did not clip ADCtrunc=2;hlin_trunc = hlin(1+trunc:end-trunc);% calculate lsb size and dnllsb= sum(hlin_trunc) / (length(hlin_trunc));dnl= [0 hlin_trunc/lsb-1];misscodes = length(find(dnl<-0.9));% calculate inlinl= cumsum(dnl);% plotfigure(1);subplot(2,1,1)plot(minbin+trunc:maxbin-trunc, dnl);xlabel('code');ylabel('DNL [LSB]');title(['DNL = +',num2str(max(dnl),2),' / ',num2str(min(dnl),2),' LSB,  ', num2str(misscodes), ' missing codes (DNL<-0.9)'])subplot(2,1,2)plot(minbin+trunc:maxbin-trunc, inl);xlabel('code');ylabel('INL [LSB]');title(['INL = +',num2str(max(inl),2),' / ',num2str(min(inl),2),' LSB '])
发表于 2019-12-19 12:19:21 | 显示全部楼层
谢谢分享
发表于 2020-2-24 14:00:18 | 显示全部楼层
thanks
发表于 2021-1-20 20:33:19 | 显示全部楼层
谢谢谢谢
发表于 2023-8-11 16:33:45 | 显示全部楼层
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-3-28 18:37 , Processed in 0.028417 second(s), 8 queries , Gzip On, Redis On.

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