ftm input capture processor expert KDS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ftm input capture processor expert KDS

跳至解决方案
2,262 次查看
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é

标签 (1)
0 项奖励
1 解答
1,072 次查看
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 项奖励
8 回复数
1,072 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Herve,

Please tell me which chip do you use ?

Best Regards

Alice

0 项奖励
1,072 次查看
hervegarat
Contributor II

I use Mk64KN1M0VLQ12.

Hervé

0 项奖励
1,073 次查看
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 项奖励
1,073 次查看
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 项奖励
1,073 次查看
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 项奖励
1,073 次查看
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 项奖励
1,073 次查看
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 项奖励
1,073 次查看
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 项奖励