s32k396 rtd mcal pwm driver system clock frequency does not match my expectation

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

s32k396 rtd mcal pwm driver system clock frequency does not match my expectation

跳至解决方案
785 次查看
Mooang
Contributor II

image.png

I set mcal pwm configuration like this.
You know, s32k396 core clock frequency is 160Mhz.
And I set default perioud 8000 ticks like a picture.
I checked Pwm frequency with oscilloscope.
Frequency is 6.023 Khz(????).
Its weird. Core clock == (8000*6023 == 48Mhz??)hmm... Anybody know why this happened?

I didn't set any prescaler.(48Mhz cant be made with any prescaler with 160Mhz).

标记 (1)
0 项奖励
回复
1 解答
753 次查看
Mooang
Contributor II

Lol, I didn't set PLL 

You guys do not dumb thing like me

在原帖中查看解决方案

0 项奖励
回复
2 回复数
754 次查看
Mooang
Contributor II

Lol, I didn't set PLL 

You guys do not dumb thing like me

0 项奖励
回复
771 次查看
Mooang
Contributor II

I checked core clock in oscilloscope. its 48Mhz....
why??

 

0 项奖励
回复