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?
Hi,
[EDIT]
So you configured CLK_SEL to 0. In this case you are running MOTC as module clock for FlexPWM.
Peripheral clock (in this case MOTC) is the module clock for periphery. You can see it on above figure.
Peter
PWM CLK is not peripheral clock, it is MOTC clock