frequency detection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,889件の閲覧回数
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,733件の閲覧回数
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,734件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------