cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix the problem of the PWM incomplete falling edge?

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 using the generated code from ST MCSDK and noticed an issue on the microcontroller’s U-phase and V-phase channels (see pins Ch. U and Ch. V in picture 1; the same happens on W-phase, but I didn’t capture that waveform).
The blue waveform never completes its falling edge where it should go low, so the whole period looks like a constant high (see picture 2).
Is this behavior normal? If not, how can I fix it? Could it be related to the duty-cycle settings of PWM?
My gate-driver chip already provides hardware dead-time, so I set the software dead-time to 0; the motor still spins.

Thank you!

PWM_mcu_pin.jpgPWM_ZKB.jpg

1 REPLY 1
GMA
ST Employee

Hello @DF_MC,

Do you have the same low-level behavior zooming in the figure (smaller time scale to display only one or two PWM period)? 

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