Skip to main content
NToua.2461
Associate III
Feb 28, 2024 8:59 AM UTC
Question

edge-blanking with 3-phase center-aligned PWM

Hello,
Comparator in STM32G4 is very fast. some glitch which is detected by COMP (during commutation PWM).
The overcurrent detection using internal comparator triggers below the theory (40A insteand 100A for example) I'm having trouble implementing the blanking mode in COMP with 3 timers (1 for each phase) .
Do you have an example or a note application to implement this mode?
thanks in advance.

This topic has been closed for replies.

2 replies

ST Employee
Mar 1, 2024 10:02 AM UTC

Hello @NToua.2461, 

You can find an example of how to implement the blanking mode in COMP with 3 timers on STM32G4 in the STM32CubeG4 package. The example is named 'COMP_OutputBlanking'. This example explains how to use the Comparator peripheral output blanking feature. You can find the projects under the following folder

  • STM32Cube_FW_G4\Projects\NUCLEO-G474RE\Examples\COMP\COMP_OutputBlanking

Hope that helps!

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NToua.2461
Associate III
Mar 6, 2024 1:18 PM UTC

Hi Sarra ;

thank you for your reply; I've already seen this example with a TIM_COUNTERMODE_UP.
Now I'm looking for a COMP_OutputBlanking example with "PWM center aligned mode ".

 

thank u