Hello,everyone
Now I use K64 SPI slave, and master used in 11.25Mhz.I would like to ask, how to set registers SPI from confidential or which KSDK function call,let the slave correctly received from the master send data .
现在我在使用K64的SPI从机,主机使用的SPI频率在11.25Mhz,我想问下,SPI从机要如何设置寄存器或者调用哪个KSDK的函数,可以让从机正确的接收到主机发送的数据。
Solved! Go to Solution.
Hi Yuanhan:
The slave SPI unit has no clock. The data is transferred by the transition of the master clock signal. You only need to config the master clock with DSPI_MasterSetBaudRate.
Regards
Daniel
Hi Yuanhan:
The slave SPI unit has no clock. The data is transferred by the transition of the master clock signal. You only need to config the master clock with DSPI_MasterSetBaudRate.
Regards
Daniel
hello,Daniel:
Thank you for your help,I think that you are right.
And,I have a question for this SPI slave.if I disable the FIFO of slave send and receive(set the DIS_TXF and DIS_RXF in SPIx_MCR ),when the slave receive data from the master,then slave enter interrupt routine,I only need clear the RFOF? I don't clear other interrupt flag?
Look forward to your reply.
Regards
Yuanhan
Hi Yuanhan:
Yes, you need to clear this flag, and read rata.
Regards
Daniel