DMA array to CCR PWM

Related to the the forum.
Post Reply
msidhard
Posts: 2
Joined: Thu Nov 17, 2022 8:19 am

DMA array to CCR PWM

Post by msidhard »

Hi
I am working on a custom stm32f103 board. I just want to know are there any examples for periodical DMA transfer from data in array to pwm CCR. I could only find DMA with ADC in memory increment mode using STM32ADC library. Thanks in advance
olivia_49
Posts: 7
Joined: Mon Dec 29, 2025 6:25 pm

Re: DMA array to CCR PWM

Post by olivia_49 »

You can definitely do that. Look into using TIMx in PWM mode with DMA, where the DMA source is your array and the destination is the timer’s CCR register. Set the DMA in circular mode so it continuously updates the PWM, and trigger it with the timer update event. The STM32 HAL examples under TIM PWM with DMA are a good starting point.
Post Reply

Return to “Ideas & suggestions”