s32k ftm0 input capture and pwm output

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

s32k ftm0 input capture and pwm output

ソリューションへジャンプ
320件の閲覧回数
sandeepc
Contributor III

hi i need to know  whether we can genrate pwm and input capture by FTM0 

in our project PTE8 is used for inout capture and PTE9 is used for pwm output control for buzzer the PTE9 and PTE8 are connected to FTM0 module so can i configure FTM0 input capture and as well as pwm output.?

0 件の賞賛
1 解決策
312件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sandeepc,

This is possible, but there is only one FTM counter per FTM instance though.

That means that the period of the PWM signal is the period in which the IC channel overflows.

 

There is this non-SDK example in S32DS IDE 2.2.

S32K144_Project_FTM

danielmartynek_0-1690461886738.png

 

The SDK does not allow using two FTM drivers (e.g. ftm_pwm and ftm_ic) on the same FTM instance.

Because both the drivers initialize the whole FTM module not just the channels.

 

Regards,

Daniel

 

元の投稿で解決策を見る

0 件の賞賛
1 返信
313件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sandeepc,

This is possible, but there is only one FTM counter per FTM instance though.

That means that the period of the PWM signal is the period in which the IC channel overflows.

 

There is this non-SDK example in S32DS IDE 2.2.

S32K144_Project_FTM

danielmartynek_0-1690461886738.png

 

The SDK does not allow using two FTM drivers (e.g. ftm_pwm and ftm_ic) on the same FTM instance.

Because both the drivers initialize the whole FTM module not just the channels.

 

Regards,

Daniel

 

0 件の賞賛