2020-12-01 03:25 PM
Hi,
I am trying to have a DMA move one unit of data every time the timer finishes it's counting period. The DMA would be circular so it would continually do this. I am going to be moving from a buffer to the CCR register of a pwm output.
I saw a HAL_TIM_PWM_Start_DMA function but this does not allow me to specify the DMA to be circular or whether the memory side is stored in bytes/words/etc. How would I go about triggering a DMA on every cycle of a timer with hal?
Solved! Go to Solution.
2020-12-01 04:52 PM
This example does exactly what you're looking for:
The DMA parameters you mentioned (circular mode, memory width) are initialized before the call to HAL_TIM_PWM_Start_DMA, within HAL_TIM_PWM_Init:
2020-12-01 04:52 PM
This example does exactly what you're looking for:
The DMA parameters you mentioned (circular mode, memory width) are initialized before the call to HAL_TIM_PWM_Start_DMA, within HAL_TIM_PWM_Init:
2023-02-01 02:50 AM
how to set up the same thing through the cube?