How can i program a fast timer (10MHz) with NUCLEO-F103RB?

10 Nov 2017


I would like to use a counter/timer to count the time between pulses. I read this pulse with Interrupts and now use time_us() to calculate time difference between the pulses. But this is not precise enough for my application.

How can I program a timer to run at 10Mhz (or at least faster than time_us) and read the timer values? With freerunning hardware timer.

I somebody can show me where to look or can give a short example that would be great.

Please log in to post a reply.