AnsweredAssumed Answered

Generate one-pulse on TIM Peripheral of STM32L1xx

Question asked by giampa_.valerio on Feb 20, 2012
I have an input signal of my stm32l1xx microcontroller with variable frequency (from 20Hz to 60Hz). I would like to configure a TIM Peripheral of my microcontroller with Input-Capture and One-Pulse Mode becouse I would that when the input signal have an edge the timer generate a one pulse on output pin with a fixed or variable delay from the edge event. The delay that I need is around 300usec. I don't understand how I can configure the TIM to start the counter from an external event, how to set the counter frequency with the library data structure and how to configure also the one-pulse mode and input capture in the same TIM.
Can you help me?