2024-08-13 10:50 PM - edited 2024-08-13 10:53 PM
Hii everyone,
I am working on an inverter application . trying to implement unipolar pwm in the center-aligned mode 2. I am using DMA for the buffer transmission for the sine-wave PWM. Everything seems well without the pwm synchronization. i am initializing DMA one by one
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t*) pwmData0, 20000);
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_2, (uint32_t*) pwmData1, 20000);
and at the output the second phase is lagging by 5-6 pwm pulses. time period for 1 pwm pulse is 10us.
Here is the snap of logic analyzer.
According to the post USING MASTER SLAVE CONFIG issue still remains the same.
Any suggestion would be highly appreciable.
ThankYou.