Ask the pwm frequency problem of s32k344

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ask the pwm frequency problem of s32k344

504 Views
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 Kudos
Reply
3 Replies

476 Views
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 Kudos
Reply

425 Views
drfrefw123
Contributor I

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

drfrefw123_0-1706758686583.png

 

0 Kudos
Reply

414 Views
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 Kudos
Reply