s32k FTM Software Output Control

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

s32k FTM Software Output Control

920 Views
wqiang19
Contributor I

hello,

I want to add FTM Software Output Control in the example project "ftm_combined_pwm_s32k148", I add 

FTM_DRV_MaskOutputChannels(INST_FLEXTIMER_PWM1,0xff,true);
FTM_DRV_SetAllChnSoftwareOutputControl(INST_FLEXTIMER_PWM1,0x1,0x1,true);

but channel0 doesn't go to 1 ,why?

please help me.

wang

0 Kudos
2 Replies

819 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello wqiang19@126.com,

The example does not use Ch0.

So, you must have added it and I don't know the configuration of the channel.

Can you share the whole modified example?

Please see the SDK documentation:

pastedImage_2.png

pastedImage_3.png

Regards,

Daniel

0 Kudos

819 Views
wqiang19
Contributor I

hello  Daniel Martynek,

thank you very much.I have solved it.

FTM_DRV_MaskOutputChannels(INST_FLEXTIMER_PWM1,0xff,true); comment out this line all is ok.

Regards,

wang qiang

0 Kudos