AnsweredAssumed Answered

Generating single pulse on GPIO pin

Question asked by mrazek.jan.001 on Jul 12, 2012
Latest reply on Aug 14, 2015 by arnold_w
I want to generate single pulse with given length on GPIO pin on STM32F4 Discovery kit. I wanted to use timer in OnePulse mode. So I was planning to use TIM4 and TIM12, becouse I need 6 independent pins for pulses. But I am a little confused from the example in Standard Peripherals Library. There's used a timer as a trigger for pulse. But I want to trigger pulse from my code, not from timer. How can I do that?
I want to have function like this: void GeneratePulse(uint8_t pin, uint16_t duration). How should I configure timer to get this kind of behaviour?

Thanks in advance.