Other Parts Discussed in Thread: ADS131M08
这是原理图部分
,
我的配置clkin是8Mhz,OSR设置是16384,gain设置是1,想问下最大的测量范围,是否能测量范围内电压
当我输入为0.068V时,用131测量,根据公式 乘上channal1中的值,计算出来是0.069V,偏差其实有些大,问下您我是否计算有问题
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
这是原理图部分
,
我的配置clkin是8Mhz,OSR设置是16384,gain设置是1,想问下最大的测量范围,是否能测量范围内电压
当我输入为0.068V时,用131测量,根据公式 乘上channal1中的值,计算出来是0.069V,偏差其实有些大,问下您我是否计算有问题
首先是可以测量附图中的模拟输入电压范围的。
您是如何计算的?输入0.068V时的输出code 为多少?根据输出code可以计算Vin。
Vin=output code* LSB
那计算没问题。
那么这个偏差可能是多个因素造成的,比如噪声,线性度,增益以及offset都会引起偏差。
呢我是否需要根据这里去做偏差补偿计算,gain为1和2时,我可以计算多少的偏差去把读到的值补偿一下,gain为4/8....的时候我该如何计算,或者有没有计算公式,还是不需要做补偿计算
看它的内部架构是有offset和gain校正模块的,通过配置寄存器可以对其进行校正。
在datasheet 8.3.11 Calibration Registers有详细介绍,寄存器 OCALn和 GCALn[23:0]分别是对偏置和增益进行校正的。
默认 OCALn为000000h 是没有对offset进行校正的,您可以尝试配置这个寄存器,验证下是否精度有所改善。
寄存器 OCALn明白如何使用了, GCALn[23:0]这个寄存器中的值如何计算我没有太明白
还有个问题,当输入为0时,误差为负值,该如何去写OCALn寄存器
您好,参考这个帖子,以ADS131M08为例,但是offset和Gain校正计算都是一样的,下贴中有举例说明如何计算:
您好,我直接把通道值写进OCALn寄存器,出来的值是不对的,我现在0输入的时候,V1之间电压是个负值,通道值为补码,我把这个直接写入,计算出来不对
我直接把通道值写进OCALn寄存器,出来的值是不对的,我现在0输入的时候,V1之间电压是个负值,通道值为补码,我把这个直接写入,计算出来不对
计算方法是没问题的,负值的话就把二进制补码写入寄存器当中。
计算出来误差很大吗?
如果输入不是0的话,尝试了吗?
对的,直接写入会变成多300mv这样,和期望值不一样,如果输入为0,我直接取出来的channel中值,乘上tick值,计算出来的电压大是-0.0013v这样,然后把这个通道值写入OCALn寄存器,再读channel值计算是0.3v左右
您好,那么您上面提到的输入为0指的是将输入端端接到地,还是悬空的?
建议端接到地,防止耦合进噪声。
1.我现在接到了地上,然后将读到的通道值为16767262,写入ocal寄存器后,大概还有1600左右的误差;
2.ads131m02q1的数据手册8.4.2,是说采样前两次Fast-setting filter data不可信么,到sinc3 filter data才可信么
收到您的问题,数据手册8.4.2 这部分的介绍我需要再看下。尽快给您答复。
好的好的,感谢,我现在测误差有些大,这个片子现在是用来测量shunt电流的,所以1mV就是10A的误差,我现在要把这个误差给清除了,还有关于gcal那个gain值误差的寄存器,我看了您给我转的这个帖子,但是关于怎么得到0.98那个值我没太明白,1lsb那个我明白,但是gain的误差是多少不知道怎么计算
关于gain的误差计算问题,我可能稍晚些给您答复。给您带来不便非常抱歉。
好的,您看下drdy这个波形,和我从手册上期望的不一样有一些不再期望内的脉冲,我感觉每次采样数据偏差较大,于是用示波器抓了下drdy引脚的波形,我现在时钟是8mhz,osa设置的是16384,high-resolution模式,然后drdy引脚应该是4ms拉低,但是波形现在在1.5中间拉低了一下,这个回影响到我的中断函数,想问下这是什么原因,我不需要采数据还有很多上去立马下来的脉冲
你这边方便给下联系方式,或者我拉个teams会议我们讨论一下吗,目前还有一些疑问想要确认下,我微信和电话都是18252586002
您好,您这是读取四个通道数据时的DRDY的波形吗?
通过这个波形,像是某些干扰导致它会出现这种脉冲。
我去确认下这个问题。
这个问题解决了,我上电后没有delay直接采样了,加了delay50ms后这个现象就不存在了,现在就剩gain的误差计算问题了,我现在上电稳定后用的是gain128分频,8Mhz,osa设置的是16384,high-resolution模式,将PN两端都接到了GND,读取到了5E-5这样的一个值,然后我把这个值写到了ocal寄存器中,再读值还是5E-5左右,我现在想是不是gain存在误差,但是不会算这个误差
您好,
gain128分频,8Mhz,osa设置的是16384,high-resolution模式,将PN两端都接到了GND,读取到了5E-5这样的一个值,然后我把这个值写到了ocal寄存器中,再读值还是5E-5左右
输入接GND,得到的值5E-5,我想是不是应该除以Gain,然后换算成二进制补码协议offset寄存器中。
因为5E-5是输出值,那么输入失调*gain得到输出(理想的话输出应该为0)。