Other Parts Discussed in Thread:ADS127L01
ADS127L01将采集到的数据通过SPI与MCU通讯时出现如下问题:ADC.pdf
将ADS127L01的4脚通过R34接地,读出的数据是, 0,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, 1,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, 2,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00fffffe,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff,0x00ffffff, 转成为十进制度 0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215, 1,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215, 2,16777215,16777215,16777215,16777215,16777215,16777215,16777214,16777215,16777215,16777215,16777215,16777215, 将ADS127L01的4脚通过R34接2.5V(VREF),读出的数据是, 0,0x007f677c,0x00737fff,0x007fff77,0x007f677c,0x006f7cff,0x007d9f73,0x007f7d9f,0x00777e4f,0x007f7f67,0x007f677f,0x004f7fbf,0x00677fdf, 1,0x007fff7d,0x007e4f7f,0x007fff77,0x001f7f7f,0x007d9f7f,0x007f7b3f,0x007f677c,0x0079ff7f,0x001f737f,0x006f7cff,0x007f777e,0x006f7c9f, 2,0x007fdf79,0x007fff7d,0x007f777e,0x007fff7d,0x003f677f,0x00677fff,0x007f677f,0x007f777e,0x007fbf73,0x007d9f7f,0x00677fff,0x007f7d9f, 转成为十进制度 0,8349564,7569407,8388471,8349564,7306495,8232819,8355231,7831119,8355687,8349567,5210047,6782943, 1,8388477,8277887,8388471,2064255,8232831,8354623,8349564,7995263,2061183,7306495,8353662,7306399, 2,8380281,8388477,8353662,8388477,4155263,6782975,8349567,8353662,8372083,8232831,6782975,8355231,输出数据波动很大,是错误数据。
Xu Allen:
原理图是 ADC.PDF
,
Amy Luo:
您好,
ADS127L01输入为0时,输出代码应该也是0,您可以附上您读取AD转换数据的示波器时序波形图吗,看读取时序是否存在问题将ADS127L01的4脚通过R34接2.5V(VREF),即输入的模拟电压是2.5V,输出数据波动很大,有可能是读取时序造成的,也可能是外接的2.5V不稳定造成的
,
Xu Allen:
Dear Amy,1.AD转换数据的示波器时序波形图在哪个pin脚可以测试到呢? 2.外接2.5V是稳定的。 3.ADS127L01的第三脚(AINN)可以接地的吗?
,
Amy Luo:
读取AD转换数据的示波器时序波形图即是SPI通信时序图,CS、SCLK、DIN和DOUT管脚波形,像数据手册Figure 1类似的波形
ADS127L01只能差分输入,AINN不可以接地,可以接一个固定电平,形成伪差分输入
,
Xu Allen:
Dear Amy,为什么ADS127L01的第十脚(REFN)可以接地,而ADS127L01的第三脚(AINN)不可以接地呢?
,
Amy Luo:
抱歉我无法给您深入解释为什么,这只是ADS127L01数据手册规定的,如果您想正确使用它,那么您就需要按照它的使用说明进行操作
ADS127L01的Pin10 VREFN(Negative reference input)范围是AGND – 0.1V ~ AGND + 1.0V如下截图:
,
Xu Allen:
但是我的理解是任何的差分输入都可以当做单端输入使用。只是需不需隔直的问题。
,
Amy Luo:
是的,一般差分输入是可以当做单端输入使用,但是数据手册上有特殊说明的时候,请按照数据手册中的要求设计电路