Skip to main content

Timeline for STM32 create a microsecond timer

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Jun 12, 2023 at 12:15 comment added HansW For microseconds only, I agree that a free running 32-bit timer is more convenient. In that case there is no relationship between microseconds and milliseconds though. In the above example microseconds is truly the subpart of milliseconds. So it depends on what the needs are but a 32-bit free-running timer can certainly be an option.
Jun 8, 2023 at 15:44 comment added Ben Voigt Note that if you have a spare 32-bit counter, it's much easier to let it count forever with no reload. Then all you need is one simple atomic read, from either main thread or ISR, and when it does finally overflow, the 32-bit unsigned difference is still meaningful. Even better if you can use the timer/timer link to start both at exactly the same time (only possible between certain timer pairs).
Jun 8, 2023 at 10:32 review Late answers
Jun 8, 2023 at 11:15
Jun 8, 2023 at 10:22 history edited winny CC BY-SA 4.0
added 2 characters in body
S Jun 8, 2023 at 10:12 review First answers
Jun 8, 2023 at 11:15
S Jun 8, 2023 at 10:12 history answered HansW CC BY-SA 4.0