Application note

How to use PWM shutdown for motor control and digital power conversion on STM32 MCUs

Rev 9 - March 2026

Introduction

The purpose of this application note is to describe the STM32 device timer break feature. It details its use with other STM32 internal resources for an overcurrent and overvoltage protection. Namely, in applications related to the motor control and the digital power conversion such as lighting, SMPS, and induction heating.

This application note:

  • provides an overview of the timer break feature.
  • details how the timer break input is connected to different break sources.
  • enumerates the different break event sources.
  • provides some scenarios of the PWM output signal response to break events coming from an internal source, an external source, or a combination of both internal and external break signals.
  • shows how to implement overcurrent and overvoltage protections using the timer break feature and other embedded peripherals such as comparators and DAC.

This document applies to the products listed in Table 1.

Table 1. Applicable products
TypeProduct series
Microcontrollers
  • STM32C0 series, STM32C5 series
  • STM32F0 series, STM32F1 series, STM32F2 series, STM32F3 series, STM32F4 series, STM32F7 series
  • STM32G0 series, STM32G4 series
  • STM32H5 series, STM32H7 series
  • STM32L4 series, STM32L5 series
  • STM32U0 series, STM32U3 series, STM32U5 series
  • STM32WB series, STM32WL series

General information

This document applies to Arm®-based devices.



Note:

Arm is a registered trademark of Arm Limited (or its subsidiaries or affiliates) in the US and/or elsewhere.

The Arm word and logo are trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere. All rights reserved.

Reference documents

[1]Application note STM32 cross-series timer overview (AN4013)