S32k144 spi increase speed

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

S32k144 spi increase speed

ソリューションへジャンプ
967件の閲覧回数
nanjun
Contributor III

Hello,

In while loop, LPSPI_DRV_SlaveTransferBlocking() is used to reveive data without the activation of DMA. The max. data rate reaches only 1.5Mbit by testing. the receve buffer will be 0 if data rate is further increased. The waveform is good when osci is used to check.

Principally, the data rate should reach 14Mbit shown in datasheet. How the data rate can be increased?

Kind regards,

Neo

 

0 件の賞賛
返信
1 解決策
954件の閲覧回数
Jeremy_He
NXP Employee
NXP Employee

Hi Neo, 

It can reach 14MHZ for MCU is running in HSRUN mode, for normal RUN mode, it can only reach 10MHZ maxim.

Jeremy_He_0-1645580063807.png

If you want to achieve the highest efficiency, you may try the bare-metal code(

https://www.nxp.com.cn/docs/en/application-note/AN5413.pdf).  Since the SDK will maintain the global state and do a few extra things so the SDK is not the most efficient choice if you want to achieve the best SPI transfer performance. Another tip is to increase the optimization level of the compiler.

 

Best wishes,

Jeremy

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
955件の閲覧回数
Jeremy_He
NXP Employee
NXP Employee

Hi Neo, 

It can reach 14MHZ for MCU is running in HSRUN mode, for normal RUN mode, it can only reach 10MHZ maxim.

Jeremy_He_0-1645580063807.png

If you want to achieve the highest efficiency, you may try the bare-metal code(

https://www.nxp.com.cn/docs/en/application-note/AN5413.pdf).  Since the SDK will maintain the global state and do a few extra things so the SDK is not the most efficient choice if you want to achieve the best SPI transfer performance. Another tip is to increase the optimization level of the compiler.

 

Best wishes,

Jeremy

0 件の賞賛
返信