You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • If you want to measure the frequency of a signal that fast then you're probably best off using the hardware that's built into the STM32F4.

    There's a page on how to do that here: http://www.espruino.com/STM32+Peripheral­s

    It pretty much walks you through all the code you need to use the hardware to count the amount of times the pin changes state - then you could just sample and reset that register every second using setInterval and you've got yourself a frequency measurement in Hz.

About

Avatar for Gordon @Gordon started