title: STM32F4xx phase shift of carrier wave (timers)
body: <p>I just want to generate PWM signals for single phase cascade H bridge inverter.
  Theortically speaking, I need to shift carrier wave (triangular or sawtooth) in order to get sinusoidal PWM (see picture). I don't know how to obtain these shifted waves with stm32 (also I need complementary output so using TIM1 is obvious choice).</p>
  <p>My idea is to use TIM1 and check in interrupt actual value of TIM1 and start another timer, but STM32F11 has only one timer with complementary output (TIM1).</p>
  <p>Thx for any help</p>
  <p>Picture is from &quot;Pulse Width Modulation for Power Converters - principles and practice&quot;
  <a href="https://i.stack.imgur.com/2VqED.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2VqED.png" alt="enter image description here" /></a></p>