How to set k64 SPI slave speed to 12.5M?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set k64 SPI slave speed to 12.5M?

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

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
1,283 Views
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

View solution in original post

3 Replies
1,284 Views
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

1,283 Views
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 Kudos
Reply
1,283 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Yuanhan:

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

Regards

Daniel

0 Kudos
Reply