upcounting timer with external source on stm32f4 nucleo

19 May 2015

Hello, everyone!

I want to measure frequencies of pulses on pin. They can be up to 5kHz. I've tried to use interrupt and timer, but measures were very noisy and wrong.

After that fail I'd like to use upcounting timer in external clock mode1: external input pin. But I have no idea how to write code for that. Could you please help me?

I use stm32f411re nucleo board.