PWM example code when use S32K144

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

PWM example code when use S32K144

1,406 Views
jxl
Contributor I

Hi,

        I want to get 4-channel PWM signals which have the same frequency and complement  each other when I use S32K144, can I get example code ? Thanks!

0 Kudos
1 Reply

1,157 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You can refer to the ftm_combined_pwm_s32k144 SDK example in the S32 Design Studio.

pastedImage_1.png

It utilizes 2 PWM channels in combined complementary mode.

You can add another pair of channels.

One FTM instance has only one counter so all the PWMs will have the same frequency. 

pastedImage_2.png

Regards,

Daniel

0 Kudos