1. SPI主机端用的是和ADS1298一样的硬件和软件。ADS1298已经可以正常工作。SPI时钟为6M。
2. 发送SDATAC和STOP命令均不能停止ADS1291的转换(因为我读REG读出来的数据还是按3字节变化的数,明显还是ADC转换的数据)。
3. 发STANDBY和WAKEUP命令有效果。而配置采样率和内部参考电压均无效果。
弄一天了,都没招了。
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.
我已晕菜。原来ADS1291处理命令比ADS1298要慢一拍。在连续配置REG时,插入一点延时即可成功配置!如下例:
ADS129x_WRITE_REG_BYTE(0x1,0x03);//默认500SPS,连续转换 //0x02=500Hz 0x03=1kHz
delay1(10);
ADS129x_WRITE_REG_BYTE(0x2,0xe0);//Lead-off comparators enabled,Reference buffer is enabled,2.42-V reference