ADS1211U写数据正常,读数据为0或者7FFFFF,求知SPI通信异常的原因和处理方案。
SPI通信设置,
SPI.max_speed_hz = 10000
SPI.mode = 0b01
ADS1211U上电后DRDY转换频率849HZ, 当DRDY低电平时初始化,INSR发送0x64,CMR发送0x12,0x24,0x66,0x1A,
初始化后,DRDY转换频率100HZ,ADS1211U读CMR正常,为[0X12,0X24,0X66,0X1A],INSR发送0xC0,读DOR时,返回值为[0,0,0],期间OCR没有做校正和写入,