cancel
Showing results for 
Search instead for 
Did you mean: 

Generate one-pulse on TIM Peripheral of STM32L1xx

valeriogiampa
Associate II
Posted on February 20, 2012 at 08:55

Hi,

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?

#tim-pulse-capture-config
0 REPLIES 0