Skip to main content
Associate III
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?

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
Associate III
December 3, 2025

any suggestions ?

Bubbles
BubblesBest answer
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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.