cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103C8T6 cant generate PWM in multi channel at a same time

NVNhan
Associate

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!!!!

 

 

1 REPLY 1

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 Venmo
Up vote any posts that you find helpful, it shows what's working..