PWM frequency calculation

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

PWM frequency calculation

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

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

2,336件の閲覧回数
Wen666
Contributor II

OK,thanks.

タグ(1)
0 件の賞賛
返信