Same FTM module used for Input capture and PWM output

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

Same FTM module used for Input capture and PWM output

1,453 Views
nitinverma
Contributor III

Dear support Team,

 

I am using freescale S32K144 Evaluation board.I am trying to use PWMO and input capture on the same FTM(Channel 6 for Input capture and Channel 5 for PWM out put).I configured it successfully for the given frequency and duty cycle.When i am connecting input to the input capture channel output PWM goes off and remain off till i connected input.Please let me know if it is the limitation of SOC or there is some other way to use both PWMO and input capture simultaneously.

As far as my knowledge is concern about FTM there is single MOD register for all channels and this is the limitation to achieve simultaneous operations.

 

Thanks

Nitin verma

Labels (1)
0 Kudos
1 Reply

918 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

This should work normally, it is different channels that have own control register.

Be sure you do not set the CnSC[ICRST] bit on channel configured for capture mode, otherwise a counter will be reseted on capture event.

BR, Petr

0 Kudos