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.

ADS8568使用SPI通信 无法正常访问配置寄存器



我调试的ADS8568使用的是SPI与mcu进行通信,仅通过SDO_A作为数据输出:

1、测量电压功能的功能很正常,16bit的数据能够从SPI总线收取到,并且结果正确。

2、读取和设置内部的Configuration (CONFIG) Register存在问题,按照datasheet上所述,更新或读取寄存器需将对应的bit设置为1,但按此配置读取寄存器内容为随机数值,明显与默认值0x000003FF不符。

在代码中读取的时序为:

spi.write([0xC0, 0x00, 0x3F, 0xFF])

data = spi.read(4)

请帮忙看下读取的时序是否有问题,或者配置是否有问题