Skip to main content
Visitor II
April 27, 2024
Question

STM32F103C8T6 cant generate PWM in multi channel at a same time

  • April 27, 2024
  • 1 reply
  • 1044 views

Hi,

I know this is basic, but i cant generate PWM in multi channel at a same time in one timer, if anyone know what wrong please tell me!!!

For this code, only the Channel 1 have the PWM, other channel dont

NVNhan_4-1714229115427.png

NVNhan_6-1714229242137.png

Thank you!!!!

 

 

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
April 27, 2024

Please don't use bitmaps to show code, use the </> icon for the code pasting tools.

You're programming with widths to Channel 1 repeatedly.

Each TIM can do a single frequency/count. You could generate 4x 50 Hz Servo signals from the channels on one timer.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..