Break function overview
The break function is available in TIM1, TIM8, TIM20, TIM15, TIM16, and TIM17 timers. These timers are able to generate complementary PWM signals with a dead time insertion for driving power switches in a half-bridge topology.
The purpose of the break function is to protect power switches driven by PWM signals generated with these timers. When triggered by a fault, the break circuitry shuts down the PWM outputs and forces them to a predefined safe state.
Table 2 Timers and break input availability in STM32 devices summarizes the break inputs availability.
| - | TIM1 | TIM8 | TIM20 | TIM15 | TIM16 | TIM17 |
|---|---|---|---|---|---|---|
| STM32F0 | BRK | - | - | - | - | - |
| BRK_ACTH | ||||||
| STM32F1 | BRK | - | - | BRK | BRK | BRK |
| BRK_ACTH | BRK_ACTH | BRK_ACTH | BRK_ACTH | |||
|
STM32F2 | BRK | BRK | - | - | - | - |
| BRK_ACTH | BRK_ACTH | |||||
| STM32F3 | BRK | BRK | BRK | BRK | BRK | BRK |
| BRK2 | BRK2 | BRK2 | BRK_ACTH | BRK_ACTH | BRK_ACTH | |
| BRK_ACTH | BRK_ACTH | BRK_ACTH | - | - | - | |
| STM32F7 | BRK | BRK | - | - | - | - |
| BRK2 | BRK2 | |||||
| BRK_ACTH | BRK_ACTH | |||||
| BRK | BRK | - | BRK | BRK | BRK | |
| BRK2 | BRK2 | System break | System break | System break | ||
| System break | System break | - | - | - | ||
|
STM32C0 | BRK | - | - | - | BRK | BRK |
| BRK2 | System break | System break | ||||
| System break | - | - | ||||
| STM32G0, STM32U3 | BRK | - | - | BRK | BRK | BRK |
| BRK2 | System break | System break | System break | |||
| System break | - | - | - | |||
| STM32G4 | BRK | BRK | BRK | BRK | BRK | BRK |
| BRK2 | BRK2 | BRK2 | System break | System break | System break | |
| System break | System break | System break | - | - | - | |
|
STM32H503 | BRK | - | - | - | - | - |
| BRK2 | ||||||
| System break | ||||||
| STM32L0 | BRK | - | - | - | - | - |
| - | ||||||
| - |
The BRK input can either disable the PWM outputs (inactive state) or force them to a predefined safe state, either active or inactive, after a dead time insertion. This prevents any shoot-through in the half bridge. The BRK2 only disables the PWM outputs (inactive state).
BRK has a higher priority than BRK2. When both protections are triggered, the predefined safe state related to the BRK circuitry overrides the inactive state related to the BRK2 input.
Typically, a permanent magnet 3-phase brushless motor drive uses the protections as follows:
- The BRK2 input as an overcurrent protection, opening the six switches from the power stage.
- The BRK input as an overvoltage protection, overriding the overcurrent and closing the three low-side switches to avoid current regeneration to build up the bus voltage and exceed the capacitor-rated voltage.
As an example in STM32F303xB/C/D/E devices, for a dual motor drive, the comparators 1, 2, and 3 can be dedicated to overcurrent monitoring of the three phases of motor 1 (BRK2 input of TIM1). The comparators 4, 5, and 6 can be dedicated to overcurrent monitoring of the three phases of motor 2 (BRK2 input of TIM8), while the comparator 7 is used for overvoltage monitoring (driving BRK inputs of TIM1 and TIM8).
BRK_ACTH input is connected only to internal signals such as CSS and PVD output. On newer devices like STM32U5 or STM32U3, it is marked as tim_sys_brk (system break interconnect) or as internal source but this serves the same purpose. For more details, refer to Break implementation.
The availability of break inputs and the break sources depends on the selected STM32 series.
This is summarized in Table 3 Comparator peripherals availability per STM32 device and in document AN4277_General-information.html#id_61741__entry_fnp_1bj_31c which details the available timers.
| - | STM32F0 | STM32F3 | STM32L13 | STM32L04 | STM32L4 | STM32L5 | STM32U5 | STM32WB, STM32WL | STM32C5 | STM32U0 | STM32G05 | STM32G4 | STM32H5 | STM32H76 | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| STM32F05xxx | STM32F07xxx | STM3209xxx | STM32F303xB/C | STM32F358xC | STM32F303x6/8 | STM32F328x8 | STM32F303xD/E | STM32F398xE | STM32F302xB/C/D/E | STM32F302x6/8 | STM32F301x6/8 | STM32F318x8 | STM32F334x4/6/8 | STM32F37xxx | STM32L4 | STM32L4+ | STM32U37 | STM32G051/61 | STM32G071/81 | STM32G0B1/C | STM32G4x1 | STM32G4x3 | STM32H503 | ||||||||
| Filter | - | - | - | - | - | - | - | - | - | DFSDM | DFSDM | MDF7 | - | - | - | - | - | DFSDM | |||||||||||||
| COMP 1 | X | X | - | X | X | - | - | X | X | X | X | X | X | X | X | X | X | X | |||||||||||||
| COMP 2 | X | X | X | X | X | X | X | X | X | X8 | X | X | X | X | X | X | - | X | |||||||||||||
| COMP 3 | - | X | - | X | - | - | - | - | - | - | - | - | - | X | X | X | - | - | |||||||||||||
| COMP 4 | - | X | X | X | X | X | X | - | - | - | - | - | - | - | X | X | - | - | |||||||||||||
| COMP 5 | - | X | - | X | - | - | - | - | - | - | - | - | - | - | - | X | - | - | |||||||||||||
| COMP 6 | - | X | X | X | X | X | X | - | - | - | - | - | - | - | - | X | - | - | |||||||||||||
| COMP 7 | - | X | - | X | - | - | - | - | - | - | - | - | - | - | - | X | - | - | |||||||||||||