Skip to main content
Xli.1
Associate
May 24, 2020
Question

How to use DMA to change PWM frequency?

  • May 24, 2020
  • 2 replies
  • 796 views

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 topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 24, 2020

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