PWM frequency calculation

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

PWM frequency calculation

4,704 次查看
Wen666
Contributor II

Hello,

I would like to ask how the PWM frequency of MPC5744P is calculated.

The following figure shows the parameters I configured, where the frequency of MOTC_CLK is 200MHz,PWM_CLK is MOTC_CLK's 16-frequency division is 12.5MHz. The reload point of channel 0 of PWM is 4096, and the initial point is 0. According to the calculation, it should be 200MHz/16/4096=3.05KHz, but the actual measurement is only 2.4KHz, which is within the error range or there is a problem with my calculation?

0 项奖励
回复
2 回复数

4,691 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

calculation is correct, but note max MOTC_CLK can be 160MHz. As you selected PLL0 for MOTC_CLK, most probably PLL0 is set to 160MHz. With this value you get 2,4KHz with your calculation.

BR, Petr

0 项奖励
回复

4,687 次查看
Wen666
Contributor II

OK,thanks.

标记 (1)
0 项奖励
回复