cancel
Showing results for 
Search instead for 
Did you mean: 

How to use DMA to change PWM frequency?

Xli.1
Associate

hi guys. I want to use DMA to change the PWM frequency in the pwm running. I used DMA to change the ARR of Tim, but it was failed. So how to change the pwm frequency by DMA?

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2

By changing ARR of TIM. You'll need to have ARR preload enabled (TIMx_CR1.ARPE=1)..

> I used DMA to change the ARR of Tim, but it was failed.

Post details.

JW