MPC5645S PWM

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

MPC5645S PWM

1,084件の閲覧回数
antonkarzanov
Contributor II

Hello.

Help me please.

Where can I see examples of the source code for setting the static PWM? (PER - const, duty - const)

I tried to configure this module, but they were unsuccessful. The clock modules, timers and GPIO work fine.

Help me please.

/* Fsys = 64 MHz. */

/* init_PWM */

SMC.CTL0.B.DITH = 0;
SMC.CTL0.B.MCPRE = 0x3;
SMC.CTL1.B.MCTOIE = 1;
SMC.CC[2].B.MCOM = SMC.CC[3].B.MCOM = 0x3;
SMC.CC[2].B.CD = SMC.CC[3].B.CD = 00;
SMC.CC[2].B.MCAM = SMC.CC[3].B.MCAM = 0x1;
SMC.PER.B.PER = 100;
SMC.DC[2].B.DUTY = SMC.DC[3].B.DUTY = 50;

ラベル(1)
タグ(2)
4 返答(返信)

888件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

we have posted all available example here:

https://community.nxp.com/docs/DOC-329623 

Peter

888件の閲覧回数
antonkarzanov
Contributor II

Thanks for the answer.
Which device is closest to the MPC5645S from this list?

Anton.

0 件の賞賛

888件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

The closest micro is MPC5606S.

But the modules are mostly general trough all MPC microcontrollers.

Unfortunately SMC is not general module and it is implemented only on MPC5606S and MPC5645S.

Peter

888件の閲覧回数
antonkarzanov
Contributor II

Ok. Thanks.

0 件の賞賛