Skip to main content
rfish.749
Associate II
December 3, 2021
Solved

Need a 3rd advanced timer in the STM32 family

i would like to run 3 BLDC motors out of the STM32.  Are only TIM1 and TIM8 the only advanced timers available? is there any part that has 3? We use the comp output 3-phase PWMs with success driving 1 or 2 motors, but now we need to drive 3 and don't want to use 2 controllers.

This topic has been closed for replies.
rfish.749
rfish.749Best answer
Associate II
December 3, 2021

Thanks! you need to use the 100pin or larger G4 package to get TIM20 in complementary PWM mode. The smaller packages have TIM20, but not in that mode (which threw me off)

2 replies

TDK
December 3, 2021

This document has a good overview of the various timers across STM32 families:

https://www.st.com/resource/en/application_note/dm00042534-stm32-crossseries-timer-overview-stmicroelectronics.pdf

TIM20 is available as an advanced timer on some STM32F3 and STM32G4 chips. For example STM32G4A1xE.

The STM32H7 has an HRTIM which can do (almost?) everything an advanced timer can do, although it's a different interface.

"If you feel a post has answered your question, please click ""Accept as Solution""."
rfish.749
rfish.749AuthorBest answer
Associate II
December 3, 2021

Thanks! you need to use the 100pin or larger G4 package to get TIM20 in complementary PWM mode. The smaller packages have TIM20, but not in that mode (which threw me off)