Cannot Update TIM CCR Register in Timer Master/Slave Mode for Phase Shift PWM
Hello,
I am quite new to STM32, so I would highly appreciate your help.
I am using an STM32F407G-DISC1 board.
I am trying to generale phase shifted complementary PWM for PFSB control. I am using TIM1 CH1/1N to generate one pair of signals, and TIM8 CH2/2N to generate the other. To obtain the phase shift, I am using Output Compare No Output Mode at TIM1 CH2, which generates an interrupt that controls the counter of TIM8 via ITR0. When I modify the initial pulse configuration, the phase shift is achieved correctly (oscilloscope picture, yellow trace for TIM1 CH1 and blue for TIM8 CH2). However, when I try to vary TIM1->CCR2 in order to change the pulse value and essentially change the phase shift, nothing happens. Below you can see my configuration and change of CCR2 value:
Below I attach the oscilloscope traces and screenshots of TIM1 configuration. Thank you in advance!
