cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a variable Phase Shifted PWM on STM32L4 w/ STM32IDE&HAL

Heimatlos
Associate

I can easily create 3 PWM signals with 120 degrees of phase shift by creating a Master/Slave Trigger configuration. However, for the FOC algorithm, I need to shift all the signals together during operation. How can I achieve this?

Both STM32CubeIDE and Simulink Embedded Coder answers are welcome.

1 REPLY 1

> 120 degrees of phase shift by creating a Master/Slave Trigger configuration

Try Reset in TIMx_SMCR.SMS instead.

JW