2024-02-28 12:59 AM
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.
2024-03-01 02:02 AM
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
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.
2024-03-06 05:18 AM
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