Question
How to set CHxN to high when outputting PWM using commutation interrupt for 6-step?
- April 15, 2024
- 1 reply
- 2087 views
Hi team!
I testing MP6530 three-phase BLDC pre-driver with STM32G474RE.
This drive's gate drive need to control like below.

I wrote a code that uses commutaion interrupts.
I have attached the test code, so please see the code for details.
And the problem is that I want to set the EN signal to high when outputting PWM, but I cannot set it to high.
I want to set EN signal to high like fig1.
PWM signal is assigned to CH1, CH2, CH3 of TIM1.
EN signal is assigned to CH1N, CH2N, CH3N of TIM1.
fig1.

Is there a way to set CH1N, CH2N, and CH3N to high during PWM output?
