cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix the center-aligned problem of the PWM signals?

DF_MC
Associate III

Hello Everybody,

Here are the software and boards in this case:

1. MC workbench 6.4.1
2. STM32 FW V1.28.2

I’m running the code generated by ST MCSDK and noticed that the waveforms on the microcontroller’s U-phase and V-phase channels (see pins Ch. U and Ch. V in picture 2) are not center-aligned—there is a slight offset (see picture 1: the center of the blue waveform is shifted a little to the left relative to the yellow one). How can I fix this? I suspect this mismatch is causing noticeable acoustic noise while the motor is running.

How can I fix the problem? Thank you!

PWM_wave.jpgPWM_mcu_pin.jpg

1 REPLY 1
GMA
ST Employee

Hello @DF_MC,

For single-shunt topology, a phase shift is applied as described in the Single-shunt with phase-shift current sensing overview chapter of the user manual available through Workbench tool > About > Documentations > Documentation > User manual.

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