Complementary outputs with dead-time?
Hello,
I'm trying to have complementary outputs with dead-time on CH1/CH2/CH3 and CH1/CH2/CH3N using TIM1 and Output Compare Mode on STM32F429.
So I configured STM32CubeMX like in the picture below :

And there is the portion of my code :
(for testing purposes, a button press changes the state of CH1/CH1N)
void TIM1_ItUpFcn()
{
if (HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0)==1)
{
TIM1->CCER = 4;
}
else
{
TIM1->CCER = 5;
}
}That code changes CC1E/CC1NE bits.
As a result,on the scope, I do get my complementary outputs on CH1 and CH1N, they invert each other when I press the button, but with no deadtime! I don't understand why i don't have that deadtime, like explained below :
