What I’m trying to do is sample a digital signal with an I/O pin. I want to reject low frequency pulses and get the leading edge of the high frequency pulses. I understand Nyquist so I need to know what pin/peripheral is going to give me my highest sampling rate? I can change pins but I really can’t add any more hardware to solve the problem. I only need to sample the leading edge.
Hi Ryan Lush,
You can use the TPM capture function to detect the input pulse.
TPM clock source can be found in this picture:
So,if your TPM clock is 48Mhz, you can input 48M/4=12Mhz.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------