When sending duty cylcle values to PWM output with DMA some values get skipped
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 10:26 AM
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?
Labels:
- Labels:
-
DMA
-
STM32G4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 11:58 AM
Read out and post the TIM, DMAMUX and DMA registers content.
JW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 12:59 PM
Well, I just switched the timer generating the PWM signal from TIM2 to TIM1 and it seems to work. Thanks for being interested.
