4 years, 7 months ago.

Frequency Counter: Measuring a square wave from a LOW logic level to HIGH logic level

Hi there, I'm trying to measure the amount of time it takes for an inputted signal from a function generator onto my micro-controller using Mbed code. I was just wondering how I would go about doing this? I'm new to this so excuse my novice knowledge of coding! If you could help me it would be great. Thanks

1 Answer

4 years, 7 months ago.

Hi Ben,

Since MCU's clock is not very high, the sample rate would be limited, so it's not proper to use MCU to measure frequency. I found this article may help you on this topic though.

https://www.instructables.com/id/How-to-Measure-High-Frequency-and-Duty-Cycle-Simul/

Thanks, Desmond