最近想在TI提供的SPI主站例子上修改成SPI从站,修改了以下几个地方
SpiaRegs.***.bit.MASTER_SLAVE = 0;
然后将时钟设置注释掉了,个人理解时钟来自主站,所以从站不需要设置了
// SpiaRegs.SPIBRR.bit.SPI_BIT_RATE = SPI_BRR;
修改之后通信不成功,不知道还有哪里需要修改
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.