Other Parts Discussed in Thread: ADS1120
您好:
目前使用ADS1220IPWR,AINP0输入为2.1V的时候,理论读出来的寄存器ad值是0x7FFFFF,但是我这边老是读出0x7FFF00,无论AINP0输入多少,读出来的第三个字节都是0x00,感觉读出来的都是两个字节,是16位的ads一样。
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.
您好,
感觉应该是代码问题,在 ADS1220 产品首页“软件开发”部分有example code,如下截图所示,您可以下载下来参考:
code链接我直接附在这里:ADS1x20 Example Code
ADS1220 产品首页链接:https://www.ti.com.cn/product/cn/ADS1220
如果怀疑是ADS1220 输出问题,建议您使用示波器或逻辑分析仪抓取SPI读取时序图以查看发出的SCLK数是否正确,或检查SPI通信时序是否正确?