DMA with complementary pwm STM32F0 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-28 11:26 PM
Hi
I want to use DMA with complematry pwm. I am usşng stm32f030 its working only one sample. I have to use stdperiph .
Thanks
Labels:
- Labels:
-
DMA
-
STM32F0 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-12-29 12:50 AM
> uint32_t DestAddress = (uint32_t) &(TIM16->CCR1);
> DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t)&DestAddress;
By doing this, DMA stores the values not into TIM16_CCR1 but into memory where the DestAddress variable is located.
You want
DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) &(TIM16->CCR1);
If you are in doubts, always start by reading out and checking the registers, here TIM and DMA registers.
JW
