Skip to main content
JKoro.1
Associate
August 19, 2020
Question

When sending duty cylcle values to PWM output with DMA some values get skipped

  • August 19, 2020
  • 2 replies
  • 720 views

When I try to change the duty cycle with DMA I notice that some values are not correct some of the time. I know that I am sinding the right values, but the PWM signal is not correct. Is this a problem with the preload registers and how can I set them in a better way so that this does not happen?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
August 19, 2020

Read out and post the TIM, DMAMUX and DMA registers content.

JW

JKoro.1
JKoro.1Author
Associate
August 19, 2020

Well, I just switched the timer generating the PWM signal from TIM2 to TIM1 and it seems to work. Thanks for being interested.