PWM Code using EMIOS for MPC5777C in OPWFM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM Code using EMIOS for MPC5777C in OPWFM

Jump to solution
941 Views
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

Tags (1)
0 Kudos
1 Solution
932 Views
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

View solution in original post

0 Kudos
3 Replies
926 Views
dineshmoka
Contributor III

hi peter

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

0 Kudos
912 Views
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 Kudos
933 Views
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 Kudos