cancel
Showing results for 
Search instead for 
Did you mean: 

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

JKoro.1
Associate

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?

2 REPLIES 2

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

JW

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