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.
SPI4线+DRDY共5线相连接
SPI设置时钟为2MHz,DRDY中断方式,其他为通用配置
程序操作说明:DRDY下降沿触发,进入中断之后,使能片选,发送RDATA命令(0x10),读取数据;
操作步骤,按照图65时序,读取ADC数据:DRDY下降沿触发,进入中断之后,使能片选,发送RDATA命令(0x10),读取数据;
通过SPI发送ADC读取寄存器命令,读取ADC返回寄存器状态值;
UCA1CTLW0 |= UCSWRST; /*Hold peripheral in reset*/
UCA1CTLW0 &= ~UCSWRST; /*Release peripheral for use*/
出现问题后,重新执行上边2条语句后,SPI通讯正常;过几分钟仍然出现通讯异常;