Skip to main content
Visitor II
August 4, 2025
Question

softstart

  • August 4, 2025
  • 1 reply
  • 182 views

How to create a soft start in the initial operation when generating a PWM signal with STM32

1 reply

Technical Moderator
August 4, 2025

Hello @jungilyong 

To implement a soft start when generating a PWM signal with your STM32, you can gradually increase the PWM duty cycle from a start value to your desired value in small steps. This can be achieved by updating the timer’s compare register in a loop, with a short delay between each increment.

"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.Saket_Om"