Ask the pwm frequency problem of s32k344

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

Ask the pwm frequency problem of s32k344

630 次查看
drfrefw123
Contributor I

Here is my configuration in EB tresos

drfrefw123_0-1706250448410.png

clock is 160M

 

drfrefw123_1-1706250498803.pngdrfrefw123_2-1706250515593.pngdrfrefw123_3-1706250548013.pngdrfrefw123_4-1706250594191.png

The theoretical result should be:frequency = 160M/4000 = 40k,But the actual result is around 12k

drfrefw123_7-1706250886226.png

 

 

 

0 项奖励
回复
3 回复数

602 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @drfrefw123,

Is the core clock really 160MHz?

Can you check the configuration on the HW or measure it at CLKOUT?

48MHz / 4000 = 12KHz.

CORE_CLK = 48MHz is the default configuration that uses FIRC.

 

Regards,

Daniel

 

0 项奖励
回复

551 次查看
drfrefw123
Contributor I

hi,I have used the PLL clock as the core clock, is there any other configuration?

drfrefw123_0-1706758686583.png

 

0 项奖励
回复

540 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Can you check the MC_CGM registers to be sure the CORE_CLK is correctly set?

danielmartynek_0-1706791034030.png

Also, all the clocks should be configured precisely to one of the Options:

RM, rev.8 Section 24.7.2 System clocking configurations.

 

Thank you,

Daniel

0 项奖励
回复