Insert deadtime for PWM generated by eMIOS

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

Insert deadtime for PWM generated by eMIOS

跳至解决方案
682 次查看
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 项奖励
回复
1 解答
666 次查看
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 项奖励
回复
4 回复数
667 次查看
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 项奖励
回复
658 次查看
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 项奖励
回复
635 次查看
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 项奖励
回复
631 次查看
EmilyZhou8
Contributor III
Thanks a lot
0 项奖励
回复