Meet some problem to make a complementary pwm wave.

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

Meet some problem to make a complementary pwm wave.

跳至解决方案
1,034 次查看
ayanosun
Contributor II

I want to make a complementary pwm wave with the code below, but it doesn't work anyway. Is there anything wrong with my code? Using KEA128 and S32DS. Project attached. Please help.pwm.PNG

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
859 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please modify the code shown below:

add PWMPol for FTM2_CH1

Do not recommand to use same CnV for two channel

Select PTH0 and PTH1 as the output pins for these two FTM2 channel.

complementary.png

I have also attached the FRDM_KEA128_FTM_Combine.c file, so that you can direct test it on FRDM-KEA128 board.(...\FRDM-KEA-QSP(REV 8)\Quick Start Package v8\Code Project Examples and Sample Drivers (Evaluation Grade Only)\FRDM-KEAZ128\Driver Test SW for KEAZ128\Driver Test SW for KEAZ128\FRDM_KEA128_FTM_Combine)

 

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
860 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please modify the code shown below:

add PWMPol for FTM2_CH1

Do not recommand to use same CnV for two channel

Select PTH0 and PTH1 as the output pins for these two FTM2 channel.

complementary.png

I have also attached the FRDM_KEA128_FTM_Combine.c file, so that you can direct test it on FRDM-KEA128 board.(...\FRDM-KEA-QSP(REV 8)\Quick Start Package v8\Code Project Examples and Sample Drivers (Evaluation Grade Only)\FRDM-KEAZ128\Driver Test SW for KEAZ128\Driver Test SW for KEAZ128\FRDM_KEA128_FTM_Combine)

 

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------