Insert deadtime for PWM generated by eMIOS

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

Insert deadtime for PWM generated by eMIOS

Jump to solution
233 Views
EmilyZhou8
Contributor III

Hi,

I am finding documents about inserting deadtime for PWM generated by eMIOS of MPC5XXX. I only found  the document AN4658 mentioning about PWM deadtime on page 10. Is there any document with demo about inserting deadtime for PWM using eMIOS? 

Thank you very much!

Emily

0 Kudos
Reply
1 Solution
217 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Please refer to the reference manual for dead time insertion in eMIOS channels:

petervlna_0-1718613648613.png

For example in this mode:

petervlna_1-1718613682193.png

Best regards,

Peter

 

 

View solution in original post

0 Kudos
Reply
4 Replies
218 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Please refer to the reference manual for dead time insertion in eMIOS channels:

petervlna_0-1718613648613.png

For example in this mode:

petervlna_1-1718613682193.png

Best regards,

Peter

 

 

0 Kudos
Reply
209 Views
EmilyZhou8
Contributor III

Hi Peter,

Thank you for your reply which helps a lot. I did successfully use OPWMC mode to generate PWM with dead time. But I don't understand why I should add "EMIOS.CH[1].CCR.B.UCPREN = 1; /* Enable prescaler; uses default divide by 1 */", or else PWM won't be generated. I attached my code blow.

EmilyZhou8_1-1718719502180.png

 

Thank you very much!

Best Regards,

Emily

 

0 Kudos
Reply
186 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

From reference manual:

petervlna_0-1718866975980.png

So you clock to pwm is not generated in case it is 0.

Best regards,

Peter

0 Kudos
Reply
182 Views
EmilyZhou8
Contributor III
Thanks a lot
0 Kudos
Reply