2017-05-17 02: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
2017-05-17 03:09 AM
Hi
Reynolds.Dylan
,Try to refer to
application note it may help you-Nesrine-
2017-05-17 05: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
2017-05-17 01: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.
2017-05-17 01:11 PM
2017-05-17 04: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
2017-05-17 04:25 PM
This is documented in AN4013: STM32 Cross-Series Timers Overview.
Nice catch.
JW
2017-05-17 04:36 PM
You can use two timer outputs and a single external gate to combine the two signals on F4.
2017-05-17 04: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