PWM frequency calculation

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

PWM frequency calculation

873 Views
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 Kudos
Reply
2 Replies

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

856 Views
Wen666
Contributor II

OK,thanks.

Tags (1)
0 Kudos
Reply