Question
How can i control complementary pwm ? i want to enable and disable ch1 and ch1N sepraterly to trigger my mosfet
I am trying to implement hall sensor based 6 step control.I am using Timer 1-Channel 1: CH1N and CH1
Channel 2: CH2N and CH2
Channel 2: CH3N and CH3
Now in order to trigger correct mosfets out of 6,i want to enable and disable each pwm indivudual over the run time.
I tried using:
TIM1->CCER|=~TIM_CCER_CC2NE; (example for CH2N)
But once the channel is disabled ,it does not get enable for next cycle even if i enable it by: TIM1->CCER|=TIM_CCER_CC2NE;
I don't know what should be done to control each pwm for 6 step
