Problem of PWM clock source of MPC5744P

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

Problem of PWM clock source of MPC5744P

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

1,405件の閲覧回数
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

1,405件の閲覧回数
pingli
Contributor III

PWM CLK is not peripheral clock,   it is MOTC clock

0 件の賞賛
返信