How to set k64 SPI slave speed to 12.5M?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set k64 SPI slave speed to 12.5M?

ソリューションへジャンプ
779件の閲覧回数
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 解決策
634件の閲覧回数
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 返答(返信)
635件の閲覧回数
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

634件の閲覧回数
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 件の賞賛
634件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Yuanhan:

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

Regards

Daniel

0 件の賞賛