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.

关于28069的官方SPI历程Example_2806xSpi_FFDLB

SPITX缓冲区发送数据  然后RX缓冲区 接收数据 做回环测试,但是 我硬件上没有把SPI_SIMO 跟SPI_SOMI连接起来  ,怎么也对?接收缓冲区怎么收到发送出去的数据的?

sdata = 0x0000;
for(;;)
{
// Transmit data
spi_xmit(sdata);
// Wait until data is received
while(SpiaRegs.SPIFFRX.bit.RXFFST !=1) { }
// Check against sent data
rdata = SpiaRegs.SPIRXBUF;
if(rdata != sdata) error();
sdata++;
}

void spi_xmit(Uint16 a)
{
SpiaRegs.SPITXBUF=a;
}