Meet some problem to make a complementary pwm wave.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Meet some problem to make a complementary pwm wave.

ソリューションへジャンプ
1,037件の閲覧回数
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 解決策
862件の閲覧回数
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 返信
863件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------