Skip to main content
Visitor II
March 12, 2025
Question

3 Phase SPWM generation with complimentary signal

  • March 12, 2025
  • 1 reply
  • 621 views

How to Generate a 3-Phase SPWM Signal Using Only TIM1 on STM32G031K8 or STM32G071RBT6?

 

I’m trying to generate a 120-degree phase-shifted 3-phase SPWM signal using only TIM1 on either an STM32G031K8 or STM32G071RBT6. My goal is to drive an FSBB30CH60C IPM module with complementary SPWM signals to control a 3-phase asynchronous motor, similar to a VFD (Variable Frequency Drive).

 

Has anyone done this before? Any tips, example code, or best practices would be greatly appreciated!

 

 

1 reply

GMA
Technical Moderator
April 11, 2025

Hello @Hunor,

As an example, you can generate a project NUCLEO-G071RB/X-NUCLEO-IHM08M1.
Refer to stm32g0x1 reference manual, Timer/PWM generation topic.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA