Page 1 of 1

STM32 timers's resolution

Posted: Sat Jun 24, 2023 10:21 am
by caixf
I want to have timer, the resolution of the timer should be 0.1μs. Can I get such timer in arduino enviroment!

Re: STM32 timers's resolution

Posted: Tue Jul 04, 2023 10:38 pm
by dannyf
this thing runs at 72Mhz so in theory your timer resolution can be as much as 1/72us.

For it to be exactly at 0.1us, you can employ a couple approaches:
1. change the frequency to be something multiples of 10Mhz;
2. use software trickery -> the feasibility here depends on your particular application.