LPSPI CLK

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

LPSPI CLK

跳至解决方案
1,230 次查看
Psabouri
Contributor II

Hi,

I have a S32K344 evaluation board. I am configuring the LPSPI_0 to transfer 16-bit data at 8MHz. The CLK is outputted on PTC8 (standard plus pad).  As you can see in the figure below, the CLK periodicity is incorrect and it is changing!!! Why CLK is behaving like this?

LPSPI_0 functional clock is 80MHz

CCR1[SCKHLD] = CCR1[SCKSET] = 4

Psabouri_0-1657681524704.png

When the bus rate is decreased to 5MHz, the CLK behaves correctly.

0 项奖励
回复
1 解答
1,206 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Psabouri 

The problem may be in the configuration of your sample rate, you should increase the sample rate in order to have a better resolution of the clock signal. 

 

B.R.

VaneB

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,207 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Psabouri 

The problem may be in the configuration of your sample rate, you should increase the sample rate in order to have a better resolution of the clock signal. 

 

B.R.

VaneB

0 项奖励
回复
1,153 次查看
Psabouri
Contributor II

That make sense, thank you for your response.