S32k144 spi increase speed

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

S32k144 spi increase speed

跳至解决方案
884 次查看
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 解答
871 次查看
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 回复
872 次查看
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 项奖励
回复