How to use S32K's FTM to generate variable-frequency square waves

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

How to use S32K's FTM to generate variable-frequency square waves

跳至解决方案
1,213 次查看
海斌蔡
Contributor II

1.What mode is the channel configured into?

output compare or pwm?

2.Can give me an example for that?(The development environment is S32DS)

Thank you very much!!!

0 项奖励
1 解答
942 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
You can use both.
OC can clear, set or toggle the corresponding output pin on match.
PWM can be configured in different modes depending on your application requirements.

You may refer to AN5303 Features and Operation Modes of FlexTimer Module on S32K

AN5303SW.zip - please be aware that the project was built for the first 0N77P S32K144 maskset so the header files are outdated.

Regards,
Daniel

在原帖中查看解决方案

1 回复
943 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
You can use both.
OC can clear, set or toggle the corresponding output pin on match.
PWM can be configured in different modes depending on your application requirements.

You may refer to AN5303 Features and Operation Modes of FlexTimer Module on S32K

AN5303SW.zip - please be aware that the project was built for the first 0N77P S32K144 maskset so the header files are outdated.

Regards,
Daniel