Problem of PWM clock source of MPC5744P

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

Problem of PWM clock source of MPC5744P

961 次查看
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 回复数

866 次查看
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

866 次查看
pingli
Contributor III

PWM CLK is not peripheral clock,   it is MOTC clock

0 项奖励
回复