Skip to main content
Graduate
December 28, 2024
Question

Recommendations for using timers

  • December 28, 2024
  • 1 reply
  • 1245 views

I've been struggling to demonstrate timer capabilities, with some success but a lot of unexpected failures. I don't see any "application notes" (ANxxx) in the documentation and very little howtos in the reference manual. Is there a list of recipes for code setup for common timer usages (countup/down, repeating, using capture/compare for countup, etc)?

    This topic has been closed for replies.

    1 reply

    Super User
    December 31, 2024

    There are a whole bunch of example projects out there for various timer setups. If you are looking for existing code, I'd recommend using the Example Selector in STM32CubeMX/IDE and loading those, or examining the code online.

    STM32CubeF4/Projects/STM324xG_EVAL/Examples/TIM/TIM_TimeBase/readme.txt at 4f7969ab6fcb229bc5d28e8e87187fd34e271f56 · STMicroelectronics/STM32CubeF4

     

    Graduate
    December 31, 2024

    > STM32CubeMX/IDE

    ...for 8-bit STM8?

    Graduate II
    December 31, 2024

    First mention of 8 bit. But as a rule there is always lots of code on github for anything you can think of.