PWM Code using EMIOS for MPC5777C in OPWFM

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

PWM Code using EMIOS for MPC5777C in OPWFM

ソリューションへジャンプ
1,202件の閲覧回数
dineshmoka
Contributor III

hi

i am trying to generate PWM signal by using EMIOS module in MPC5777C in OPWFM mode with next period update.The following below i attached my project code. Can u please verify and check where is the problem in my code. I am using MPC5777c-416DS with MPC57xx mother board.

Thank you

タグ(1)
0 件の賞賛
返信
1 解決策
1,193件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

 

within DD_EMIOS_PWM_init() use 

SIU.PCR[179].R = 0x0600;

to select eMIOS_0 ch0 on GPIO179 pin.

 

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,187件の閲覧回数
dineshmoka
Contributor III

hi peter

i updated the PCR[179] value and executed still not getting the output.

0 件の賞賛
返信
1,173件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

 

I tested your code on EVB, with PCR modification and I can see PWM signal on GPIO179 output (PG15 on motherboard). You can also connect PG15 to LED (e.g. P7.1) and see LED toggling.

 
0 件の賞賛
返信
1,194件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

 

within DD_EMIOS_PWM_init() use 

SIU.PCR[179].R = 0x0600;

to select eMIOS_0 ch0 on GPIO179 pin.

 

BR, Petr

0 件の賞賛
返信