frequency detection

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

frequency detection

Jump to solution
1,528 Views
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 Kudos
1 Solution
1,372 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,373 Views
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!
-----------------------------------------------------------------------------------------------------------------------