Ask the pwm frequency problem of s32k344

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

Ask the pwm frequency problem of s32k344

506件の閲覧回数
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 返答(返信)

478件の閲覧回数
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 件の賞賛
返信

427件の閲覧回数
drfrefw123
Contributor I

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

drfrefw123_0-1706758686583.png

 

0 件の賞賛
返信

416件の閲覧回数
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 件の賞賛
返信