Problem of PWM clock source of MPC5744P

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

Problem of PWM clock source of MPC5744P

694 Views
nathan_
Contributor IV

I have a problem about the PWM module of MPC5744P.

According to the following code:

FlexPWM_0.SUB[0].CTRL1.R = 0x0404; // full cycle reload, every opportunity,IPBus/1, LDMOD=1
FlexPWM_0.SUB[0].CTRL2.R = 0x8080; // debug and force enable

The clock source of PWM is peripheral clock and the prescaler is 0, which I think makes the 

frequency of PWM source clock is equal to the peripheral clock.

Then what is the peripheral clock? Is it the MOTC_CLK?Or PBRIDGEx_CLK?

2 Replies

599 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

[EDIT]

So you configured CLK_SEL to 0. In this case you are running MOTC as module clock for FlexPWM.

pastedImage_1.png

pastedImage_2.png

Peripheral clock (in this case MOTC) is the module clock for periphery. You can see it on above figure.

Peter

599 Views
pingli
Contributor III

PWM CLK is not peripheral clock,   it is MOTC clock

0 Kudos