How to set k64 SPI slave speed to 12.5M?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set k64 SPI slave speed to 12.5M?

跳至解决方案
797 次查看
yuanhanchen
Contributor III

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的函数,可以让从机正确的接收到主机发送的数据。

标签 (1)
标记 (3)
0 项奖励
1 解答
652 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

在原帖中查看解决方案

3 回复数
653 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

652 次查看
yuanhanchen
Contributor III

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

0 项奖励
652 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Yuanhan:

Yes, you need to clear this flag, and read rata.

Regards

Daniel

0 项奖励