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.
工具/软件:Code Composer Studio
您好!
我正在学习 28069DSP SPI 函数。
当我使用 Control-Suite Example_2806xSpi_FFDLB 运行时、它运行良好。 (for (;)中的 SPI 代码)
但是、我在 ADC_ISR 中执行此代码、代码在'while (SpiaRegs.SPIFFRX.bit.RXFFST!= 1){ ''停止 、位于以下代码中。
{
//发送数据
SPI_xmit (sdata);
//等待数据被接收
while (SpiaRegs.SPIFFRX.bit.RXFFST!=1){}
//检查已发送的数据
RDATA = SpiaRegs.SPIRXBUF;
//if (RDATA!= sdata) error();
sdata++;
}
我检查了 ADC_ISR 是否在没有 SPI 代码的情况下正常运行。
如何解决此问题?
谢谢。