cancel
Showing results for 
Search instead for 
Did you mean: 

Master/slave timer with same PWM frequency

ARaj.4
Associate II

I am trying to create two PWMs with same frequency and different duty cycle. Since my alloted pins are from different timer channels, I am looking to create a master - slave timer with same PWM frequency and different duty cycle. Is there any example showing the STM32L5 timers in master slave mode, with both PWMs having the same frequency and different duty cycles ?

Also, my requirement is that these two PWMs start and end together. I am hoping to achieve this with the master -slave synchronization.

1 REPLY 1
TZARDI
Associate III

Hello,

There is a simple example in the STM32cube_FW_L5 where one timer with multiple activated channels that generate PWMs with different duty cycles.

Example can be found in this folder: .\STM32Cube_FW_L5_V1.4.0\Projects\NUCLEO-L552ZE-Q\Examples\TIM\TIM_PWMOutput

that can be downloaded from this link.

Best regards,