🌐
ST Wiki
wiki.st.com › stm32mcu › wiki › Getting_started_with_TIM
Getting started with TIM - stm32mcu - ST wiki
Select timer frequency. Start TIM in code. Use TIM overflow(update) interrupt to toggle led. To follow along with this wiki, a NUCLEO-L476RG board is needed. Before starting the hands-on, make sure that the following software are installed: STM32CubeMX 6.5.0 (or a newer version) STM32CubeIDE ...
🌐
DeepBlue
deepbluembedded.com › home › blog › stm32 timers tutorial | hardware timers explained
STM32 Timers Explained Tutorial - Timer Modes Examples Interrupts pwm
January 20, 2024 - The delay between the rising edge on TI1 and the actual stop of the counter is due to the resynchronization circuit on TI1 input. ... The STM32 timers, not all of them, have the capability to generate multiple DMA requests upon a single event.
🌐
STMicroelectronics
st.com › resource › en › application_note › an4013-introduction-to-timers-for-stm32-mcus-stmicroelectronics.pdf pdf
AN4013 Application note - Introduction to timers for STM32 ...
February 1, 2026 - General purpose timers are 32-bit counter resolution on some products and 16-bit on others. See Table 2, Table 3 and Table 4 or product datasheet as reference. ... On some devices, the counter type supports up, down, and up/down modes as exception, such in the STM32L0 series.
🌐
ControllersTech®
controllerstech.com › home › stm32 tutorials › stm32 timers series › stm32 timers (part 10): timer in gated mode ‒ control pwm and counter with external signals
STM32 Timers (Part 10): Timer in Gated Mode ‒ Control PWM and Counter with External Signals
April 29, 2023 - This allows you to control timer operations based on external inputs, like a button press, or internal signals from another timer — without writing extra code to start or stop the timer. In this tutorial, we’ll explore how to configure STM32 timers in Gated Mode, set up triggers from both external pins and internal timers, and generate PWM outputs that are active only when needed.
🌐
GitHub
github.com › dekuNukem › STM32_tutorials › blob › master › lesson4_timers_and_pwm › README.md
STM32_tutorials/lesson4_timers_and_pwm/README.md at master · dekuNukem/STM32_tutorials
If your program crashed and did ... and recovers it from the crash. STM32 has two watchdog timers: Independent Watchdog (IWDG) and System Window Watchdog (WWDG)....
Author   dekuNukem
Find elsewhere
🌐
EmbeTronicX
embetronicx.com › tutorials › microcontrollers › stm32 › simple-stm32-timer-tutorial-bare-metal-with-registers
STM32 Timer Tutorial Part 1 - Bare Metal Part 3 ⋆ EmbeTronicX
STM32 GPIO Tutorial (LED and Buttons)- Bare Metal Part 2 · In this tutorial, we are going to see the timer for the below three STM32 controllers. If you have any one of the controllers or ARM cortex, you can use that.
Published   November 13, 2024
🌐
HackMD
hackmd.io › @ampheo › how-do-i-use-stm32-timers-for-delay-and-periodic-tasks
How do I use STM32 timers for delay and periodic tasks? - HackMD
August 14, 2025 - * LPTIM (low-power timer): long, low-power periodic wakeups (e.g., 1 Hz from 32.768 kHz LSE). * DWT cycle counter (Cortex-M, if present): ultra-short, CPU-busy µs/ns delays; great for bit-banging or timing code. **Key formulas (works on all STM32)** Timer clock (on APB domain): `TIMxCLK = PCLKx * (APB prescaler > 1 ?
🌐
Reddit
reddit.com › r/stm32 › stm32 timers questions
r/stm32 on Reddit: STM32 Timers questions
October 23, 2025 -

Hi !

I need to make a BLDC ESC for a university project and i am stuck on the STM32 timer configuration part, the electronic design is ok ( at least on paper and in spice)

I chose the STM32G474RBT since it has 3 advanced timers and something HRTIM

I was told I should have enough resources to make 2 ESCs with this mcu with a lot of headroom

BUT after a lot of google +YT i sort of understand how to cascade 3 PWM but the problem is i have no idea how to easily make the complement for those signals

deadtime and ESC duty cycle are another thing that I am not so sure how to implement

Could you please point me to some resources that are very on point how it is done ?

I know there are great open source projects like VESC but man it is massive and i am not a great at SW and i don't understand what where and why

Also there is apparently some stuff with HAL and some without and I am also super confused here since most tutorials I see use HAL but then here and there on git there is something without it....

I am a very lost....

🌐
DeepBlue
deepbluembedded.com › home › blog › stm32 timer interrupt hal example – timer mode lab
STM32 Timer Interrupt HAL Example - Timer Mode LAB – DeepBlueMbedded
February 17, 2025 - In this tutorial, we’ll discuss how to configure the STM32 timer module to generate timer interrupts with a couple of example projects (Timer Mode). You’ll go through step-by-step HAL example configurations to initialize all the required hardware peripherals.
🌐
Steppeschool
steppeschool.com › blog › stm32-timer-stm32cubemx
STM32 Timer explanation and configuring on STM32CubeMx
Understand key parameters of STM32 Timer (counter, Prescaler, auto-reload) and learn how to enable timer on STM32 using STM32CubeMx.
🌐
K-space
k-space.org › Class_Info › STM32_Lec5.pdf pdf
STM32 MICROCONTROLLER: GENERAL-PURPOSE TIMERS (TIM2-TIM5)
STM32 MICROCONTROLLER: GENERAL-PURPOSE TIMERS · (TIM2-TIM5) Prof. Yasser Mostafa Kadah · Lecture 5 · TIM2-TIM5 Introduction · The general-purpose timers consist of a 16-bit auto-reload · counter driven by a programmable prescaler. Measuring the pulse lengths of input signals (input capture) Generating output waveforms (output compare, PWM) Pulse lengths and waveform periods can be modulated from a ·
🌐
Steppeschool
steppeschool.com › pages › blog › stm32-timer-interrupt
STM32 Timer Interrupt: Configuration and Implementation
October 13, 2025 - However, this tutorial applies to any STM32 MCU board. We need to configure the Timer using CubeMx Software to enable the STM32Timer interrupt. Choose one of the Timers, and enable the Timer by setting the clock source (in my project, I chose TIM4).
🌐
YouTube
youtube.com › playlist
STM32 TIMERS - YouTube
Share your videos with friends, family, and the world
🌐
HackMD
hackmd.io › @hrbenitez › 158_2s2223_Int_Tim
STM32 Interrupts and Timers - HackMD
December 7, 2022 - To learn how timers work, in general, ... devices contain up to a total of 7 general purpose 16-bit timers (`TIM2` to `TIM5`, and `TIM9` to `TIM11`) plus one advanced purpose 16-bit timer (`TIM1`)....
🌐
STM32World
stm32world.com › wiki › STM32_Timers
STM32 Timers - Stm32World Wiki
If we look at the datasheet for the STM32F103 MCU, we will find the following on the very first page (Features): ... In other words, this particular MCU has got 1 advanced timer and 3 general purpose timers (the advanced timer just got more features - it _can_ act exactly like a general purpose timer if these advanced features are not needed.
🌐
STMicroelectronics
st.com › resource › en › application_note › dm00236305-generalpurpose-timer-cookbook-for-stm32-microcontrollers-stmicroelectronics.pdf pdf
July 2019 AN4776 Rev 3 1/72 1 AN4776 Application note
October 8, 2018 - Basic-configuration timers like TIM6 and TIM7 among others. The application note STM32 cross-series timer overview (AN4013) presents a detailed
🌐
Embedded Lab
embedded-lab.com › blog › stm32-timers
STM32 Timers | Embedded Lab
December 1, 2015 - They can be used for any timer-counter-related purpose and so they are named as such. PWM generation, input capture, time-base generation and output compare are the basic uses of a GP timer. Typically in a STM32 micro you’ll find more GP timers than other classes of timers.