PWM Code using EMIOS for MPC5777C in OPWFM

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

PWM Code using EMIOS for MPC5777C in OPWFM

跳至解决方案
2,165 次查看
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 解答
2,156 次查看
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 回复数
2,150 次查看
dineshmoka
Contributor III

hi peter

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

0 项奖励
回复
2,136 次查看
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 项奖励
回复
2,157 次查看
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 项奖励
回复