Double Edge PWM: STM32F4 & CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 2:16 AM
Hi All,
I would like to set my STM32F4 Nucleo to do double edge PWM, but for the life of me I cannot figure out how to do it. More specifically I am trying to do it on three channels of TIM1. To put it visually, I am trying to do something like this:
Thanks for you time.
Dylan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 3:09 AM
Hi
Reynolds.Dylan
,Try to refer to
application note it may help you-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 5:15 AM
Hi
ELMHIRI.Syrine
,Thank you for the response. I have had a look at the cook book but it is gibberish to me, I find it very difficult to follow. Perhaps you could refer me to the section that would aid me?
Thanks,
Dylan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 1:07 PM
You can't do this with a single channel of some TIMer. Maybe a HRTIM channel can do that. Or you use 2 channels and connect both channels logical.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 1:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 4:15 PM
Hi
Bonnes.Uwe
‌,Thanks for the response. Yes, my progress today has shown that you are right. For starters, this is not possible with the STM32F4 as it does not incorporate the new timer features of newer micros. The STM32L4 timers do have this features and so I have migrated to one of these. I am still working out how to use it, but at least I know it is there. This is documented in AN4013: STM32 Cross-Series Timers Overview.
Thanks,
Dylan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 4:25 PM
This is documented in AN4013: STM32 Cross-Series Timers Overview.
Nice catch.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 4:36 PM
You can use two timer outputs and a single external gate to combine the two signals on F4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-17 4:49 PM
From my perspective it's easier to use several timers in master-slave configuration.
Yet another option is to use the timer-driven-DMA-to-GPIO.
JW
