PWM with phase shift on STM32 F410 using CUBEMX
Hi I want to generate two PWM having phase shift between them. I am using stm32f410 and cubemx as platform. Could anyone please help.
Hi I want to generate two PWM having phase shift between them. I am using stm32f410 and cubemx as platform. Could anyone please help.
For 50% duty, simply set both channels to Output Compare / Toggle mode, and set the respective CCRx registers to values apart the required phase shift.
Note, that Toggle means one edge per timer period, so you need to set time period to half of the required PWM period.
This probably can be clicked on CubeMX, maybe only the CCRx registered would need to be set manually.
JW
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.