Cannot configure the FTM timer counter frequency of fsl_ftm component?

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

Cannot configure the FTM timer counter frequency of fsl_ftm component?

1,124 次查看
walter_wang
Contributor III

I'm trying the SDK components, and want to create an basic timer with fsl_ftm component, but once it has been added to project, in the properties page there is no setting of input clock, pre-scaler, etc, so I don't know the counting frequency. (I disabled all PWM/fault pin/external clock because I only want a pure counter). I'm using FRDM-K22F so I made KSDK and PE enabled.

I've checked the help of this component, even generated codes, but still no idea.

Not sure if my way is correct to use this component? But I do not find any other timer components for FTM of Kinetis?

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

842 次查看
DavidS
NXP Employee
NXP Employee

Hi Wang,

Once you have installed and configured the fsl_ftm PE component, you need to use the FMT_HAL API to continue the configuration as far as I can see.

I haven't tried it yet though.

Regards,

David

842 次查看
walter_wang
Contributor III

Hi David,

If so, this might be the only way to make proper time configured...

Thanks.

Walter

0 项奖励
回复