frequency detection

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

frequency detection

跳至解决方案
2,492 次查看
lwwl
Contributor II

The main chip is k64p144, now want to detect the external input square wave frequency, Through the falling edge of the GPIO pin to capture external interrupt to achieve. If the external square wave frequency is 500 khz, this way can be achieved? Can the system support the work? If not, what is the maximum input frequency for the system? Thank you!

0 项奖励
回复
1 解答
2,336 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi l w,

I recommand you configure FTM module as Dual Edge Capture mode, please read the chapter '40.4.24.4 Period measurement' of K64P144M120SF5RM.

Period measurement.png

Note that the maximum frequency for the channel input signal to be detected correctly is Bus clock divided by 4, which is required to meet Nyquist criteria for signal sampling.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
2,337 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi l w,

I recommand you configure FTM module as Dual Edge Capture mode, please read the chapter '40.4.24.4 Period measurement' of K64P144M120SF5RM.

Period measurement.png

Note that the maximum frequency for the channel input signal to be detected correctly is Bus clock divided by 4, which is required to meet Nyquist criteria for signal sampling.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------