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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,179 Views
海斌蔡
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 Kudos
1 Solution
908 Views
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

View solution in original post

1 Reply
909 Views
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