AnsweredAssumed Answered

How to output a fixed number of PWM cycles on STM32F4

Question asked by ER on Oct 6, 2015
Latest reply on Oct 6, 2015 by waclawek.jan
In my application, I have a timer generating periodic interrupts. In its ISR a certain number of PWM cycles needs to be generated on a GPIO pin. I first use another timer to time the duration, but it is not very deterministic since the PWM termination is influenced by other events, and it can end up in logic high sometimes. I can also do some integer counting in main() function, but it is less efficient. Is there a simple and efficient way of doing this? 

Outcomes