cancel
Showing results for 
Search instead for 
Did you mean: 

Phase shift issue in pwm generation

skuma.8
Associate III

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. 

skuma8_0-1723614431476.png

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.

0 REPLIES 0