Skip to main content
Andre Harris
Visitor II
March 1, 2018
Question

STM32F0 PWM output is being periodically disabled

  • March 1, 2018
  • 0 replies
  • 378 views
Posted on March 01, 2018 at 15:00

Hi

I'm using an STM32F051K6 microcontroller and I've written code to generate a PWM signal with a 2ms period and a variable (10% to 90%) duty cycle. The generated PWM signal is correct but I've noticed that, over a 7.8s period, the PWM output is only active for a percentage of the 7.8s period. This PWM active percentage corresponds to the Pulse-On percentage (duty cycle) of the actual PWM signal at 2ms. I've attached a copy of my code, the system clock configuration and a jpg file which shows the problem.

Thanks. 

    This topic has been closed for replies.