Loading...
 
Skip to main content

System Workbench for STM32


Stm32F446XX , TIM2 Frequency measurement using input capture giving inconsistent captures

thaks for the respond. I set it up TIM2 to external clock and ETR mode 1 and trigger cource is on rising edge.

I read the counter value in the main loop . So this is the count at rising pulse I beleive. What should be the better option to read this pulses to calculate frequency?

Should I use another timer or DMA? I am not sure how to get those pulses count to measuer frequency. I am searching on web but havent found any example that usese two timer to measure freq.

Could you please point me to any example if you know one?

Thanks,
A