admin管理员组文章数量:1202363
I am trying to control all 4 TIM4 pins for PWM signal using DMA. Can I send data to each pin with single DMA stream ?
When I setup the pins and DMA in STM32 IDE it links the TIM4 Channel 1 pin to DMA1 stream 0, channel 2 to DMA1 stream 3 and channel 3 to DMA1 stream 7 + channel 4 doesn't let me add a DMA request.
Is there a way to to this or do I need to use different DMA streams ?
I am trying to control all 4 TIM4 pins for PWM signal using DMA. Can I send data to each pin with single DMA stream ?
When I setup the pins and DMA in STM32 IDE it links the TIM4 Channel 1 pin to DMA1 stream 0, channel 2 to DMA1 stream 3 and channel 3 to DMA1 stream 7 + channel 4 doesn't let me add a DMA request.
Is there a way to to this or do I need to use different DMA streams ?
Share Improve this question asked Jan 22 at 12:53 Ondřej DušekOndřej Dušek 131 silver badge2 bronze badges2 Answers
Reset to default 2Each timer channel is connected to a separate DMA channel.
You need to look at tables 43 and 44 in the reference manual (RM0090), and also maybe table 6 in the datasheet in case you might try a different timer.
Different streams for different channels: As you noticed, TIM4 channel 1 is linked to DMA1 Stream 0, channel 2 to DMA1 Stream 3, channel 3 to DMA1 Stream 7, and channel 4 doesn't allow a DMA request. This is due to the hardware configuration of STM32 peripherals.
本文标签: cSTM32F427 controlling TIM4 channels (PWM) with signle DMA streamStack Overflow
版权声明:本文标题:c++ - STM32F427 controlling TIM4 channels (PWM) with signle DMA stream - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738563146a2099628.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论