Arbitrary pwm signal generation of high resoultion timers in converter mode transistion.
Hi dear friends
I am controlling a current source DC-DC converter using a stm32g474 microcontroller. I am using all 6 HRTIMs to generate 12 PWM signals for my 12 switches. My converter has different operation modes and in each one, these 12 timers have their compare value register (CMP) values and different phase shifts relative to each other. The problem is that when transitioning from one mode to the next mode, these compare values and phase shifts must change and among this mode change, the HRTIM outputs give arbitrary signals for 3-4 switching cycles. This means that the switches do not receive correct modulation signals and transistors burn. How I can control the HRTIM outputs exactly cycle by cycle when a flag for mode transition becomes high and gives the order for mode change?
I must mention that the converter is a current source converter and I cannot switch off the timers for some cycles to reconfigure them and turn them on. It will burn all the transistors. I need to change the mode smoothly when the converter continues its operation
