2022-09-13 10:25 PM
I am using STM32F103C8T6, timer 1 ch 1 to generate complementary PWM
with variable duty cycle Using DMA buffer
HAL_TIM_Base_Start(&htim1);
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t *) base, 30);
HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1);
Now i want to invert PWM polarity or PWM mode after each DMA transfer.
without changing Phase of PWM.
Thanks.
2022-09-14 03:06 AM
This probably can't be done without transients.Simply change polarity in the DMA transfer complete interrupt, or maybe delay it by some fixed time.
JW
2022-09-14 09:16 AM
can you please tell how to change polarity during transfer complete interrupt.
2024-08-21 08:45 AM
Hai did you find the solution ?
2024-08-21 08:49 AM