Skip to main content
Explorer
November 30, 2025
Solved

TIM1 PWM BK and BK2 strange behavior

  • November 30, 2025
  • 2 replies
  • 169 views

Hello,

I configured TIM1 as shown in the attached image:

PKurz1_0-1764499214309.png

 

Everything works as expected

PKurz1_1-1764500584419.png

 

I am controlling an inductive load which oscillates heavily after the PWM is turned off. I therefore decided to immediately short the low-side MOSFET (CH1N) to ground if a BREAK or BREAK2 signal is received. I set the Channel Idle State to SET. And the behavior of BREAK/BREAK2 changed.

PKurz1_2-1764500870035.png

As seen in the close-up::

PKurz1_3-1764500939017.png

 

A low state on BK2 does not set a high state on CH1N. Should BK1 and BK2 not be ORed?

    This topic has been closed for replies.
    Best answer by Bubbles

    Hi @PKurz.1 ,

    first suggestion is not to reply on your own question. People actively looking for unanswered question will miss it. There's a break related AN4277, take a look if you can find an answer there.

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

    My first impression from your screenshots is that you are perhaps having problems with dead time insertion.

    Kind regards,

    Jarda

    2 replies

    PKurz.1Author
    Explorer
    December 3, 2025

    any suggestions ?

    BubblesAnswer
    ST Employee
    December 3, 2025

    Hi @PKurz.1 ,

    first suggestion is not to reply on your own question. People actively looking for unanswered question will miss it. There's a break related AN4277, take a look if you can find an answer there.

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

    My first impression from your screenshots is that you are perhaps having problems with dead time insertion.

    Kind regards,

    Jarda