STM32 timers's resolution

Post here first, or if you can't find a relevant section!
Post Reply
caixf
Posts: 1
Joined: Tue Mar 22, 2022 6:00 am

STM32 timers's resolution

Post 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!
dannyf
Posts: 446
Joined: Sat Jul 04, 2020 7:46 pm

Re: STM32 timers's resolution

Post 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.
Post Reply

Return to “General discussion”