Skip to main content
Heimatlos
Explorer
May 3, 2023
Question

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

  • May 3, 2023
  • 1 reply
  • 936 views

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.

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
May 3, 2023

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

Try Reset in TIMx_SMCR.SMS instead.

JW