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.

28027 SPI接收数据错误

28027 SPI FIFO作为MASTER,向FPGA发送3个byte,FPGA将第一个字节原样返回,但28027接收回的数据不对,比如发出的是00001100xxxxxxxx,读SPIRXBUF却是xxxxxxxx10000110,接收时做少了一次左移。

找来找去找不出原因,麻烦前辈帮忙看看,先谢了!!

以下是我的代码:

发出的是00001100xxxxxxxx,FPGA接收数据没有错,但w得到的是10000110,接收时做少了一次左移。