ftm input capture processor expert KDS

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

ftm input capture processor expert KDS

Jump to solution
2,820 Views
hervegarat
Contributor II

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é

Labels (1)
0 Kudos
Reply
1 Solution
1,630 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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 :

pastedImage_0.png

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.

View solution in original post

0 Kudos
Reply
8 Replies
1,630 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Herve,

Please tell me which chip do you use ?

Best Regards

Alice

0 Kudos
Reply
1,630 Views
hervegarat
Contributor II

I use Mk64KN1M0VLQ12.

Hervé

0 Kudos
Reply
1,631 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Herve,

In the "Capture_LDD"  help on component , there are capture demo code, as below:

captur.png

Hope it helps

Alice

0 Kudos
Reply
1,631 Views
hervegarat
Contributor II

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é

0 Kudos
Reply
1,631 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Herve,

Sorry i have some confused .

The "Capture_LDD" component can sue FTM_CH pin too ,

pastedImage_0.png

And also the TimerUnit_LDD can configuration 4 channel to capture , like this

pastedImage_1.png

Does this can meet your need ?

If not , please tell me which component do you want to use , and which channel .

BR

Alice

0 Kudos
Reply
1,631 Views
hervegarat
Contributor II

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é

0 Kudos
Reply
1,631 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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 :

pastedImage_0.png

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.

0 Kudos
Reply
1,631 Views
hervegarat
Contributor II

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é

0 Kudos
Reply