Hi All,
I'm searching example to configure a flextimer Device with processor expert and KDS, in input capture Mode
At this time, I'm just able to configure flextimer as PWM.
Thanks in advance
Hervé
Solved! Go to Solution.
Hi Herve,
About fsl_flextimer component, it is really can't configuration to input capture on KSDK_PE.
And you can use Init_FTM component, it also can cofigrate 0-7 channel, hope it can meet your need,
like this :
Best Regards,
Alice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer button.
-----------------------------------------------------------------------------------
If this post help your question, please click the helpful Answer button.
Hi Herve,
Please tell me which chip do you use ?
Best Regards
Alice
I use Mk64KN1M0VLQ12.
Hervé
Hi Herve,
In the "Capture_LDD" help on component , there are capture demo code, as below:
Hope it helps
Alice
Hi Alice,
Thanks for your repply.
These capture demo (Capture_LDD) use FTM_CLKIN pin as input. But these pins are not available in my design and there is only 2 pins of this kind and me I need 4 input capture Pins.
I'm searching a way to use FTM_CHX(X=0...7) to use as input capture. In processor expert we just can to use thes pins as PWM.
So my question is: how to configure flextimer to use FTM_CHX pins as input capture?
Thanks in advance.
Hervé
Hi Herve,
Sorry i have some confused .
The "Capture_LDD" component can sue FTM_CH pin too ,
And also the TimerUnit_LDD can configuration 4 channel to capture , like this
Does this can meet your need ?
If not , please tell me which component do you want to use , and which channel .
BR
Alice
Hi Alice,
Thanks for your reply.
However in my project I use Kinestis SDK 1.0.0, so the component available is fsl_flextimer.
I want to do exactly that you show in your post, but with fsl_flextimer component.
I hope this is possible.
Regards,
Hervé
Hi Herve,
About fsl_flextimer component, it is really can't configuration to input capture on KSDK_PE.
And you can use Init_FTM component, it also can cofigrate 0-7 channel, hope it can meet your need,
like this :
Best Regards,
Alice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer button.
-----------------------------------------------------------------------------------
If this post help your question, please click the helpful Answer button.
Hi Alice,
It's exactly what I did, but manually using the funtion created witch flextimer component.
I will try to use directly Init_ftm component.
Thanks for your Help.
Just an other question: Do you know why we can't use the flextimer component as input capture? When this will be corrected?
Regards,
Hervé