Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 3 months ago.
Count frequencies using interuptin
I am hoping to use the interruptin function to count pulses (I'm using either the FRDM KL25Z or the NUCLEO-L152RE) I was wondering what the maximum pulse frequency I might expect to achieve using code similar to that posted on the site.
I am hoping to count up to 500000 pulses/s.
Thanks,
David Cowan
Question relating to:
2 Answers
9 years, 3 months ago.
Please read this, https://developer.mbed.org/forum/mbed/topic/2538/ where you can find a link to a post here on the forum, with some explanations.
9 years, 3 months ago.
By far the best method is to use a timer capture input/timer with clock from external pin, although the mbed library does not support this, so you will need to write the code yourself (or search if someone else already did).