Hi,
i really dont like asking questions about programming but on this one im a bit out of ideas.
Im trying to learn about forward converters and to stay flexible i wan to control ist by a micro controller. Also getting into STM for the first time.
I have set up my controller to put out complimentary PWM by HAL with deadtime and this worked fine so far, just followed what other people have posted before. Sadly any examples i coud find stop at this point and im completely without a clue on how to change the deadtime without restarting the timer (which really sucks for the CC and CV closed loops for obvious reasons).
I expected it to work by just changing the timers compare value
__HAL_TIM_SET_COMPARE(&htim1,TIM_CHANNEL_1,value);
but for some reason this function seems to turn off the N channel and turn the pwm on te regular pin to a normal pwm with no regard to the desired deadtime.
What am i missing out on? Do i really have to start bitbanging registers after there is such a comfortable way of setting it up and using normal pwm?
thanks for all help i can get