Timer Capture with STM32F4

03 Nov 2015

Hello,

I would like to use a timer capture program but i am a totally beginner. I am including the mbed library and i am using the online editor. I am getting a trigger signal on a specific pin which i want to detec. After a specific time i would like to pull up an other pin. In that case is a timer capture program a solution.

Do you have any suggestion how i can solve and start this problem ?

03 Nov 2015

A timer trigger is what you need, a capture is used to capture time between two edges.

But start with the reference manual of your device and/or the STM cube drivers if you like those.

03 Nov 2015

Yes, i allready tried it with an interrupt function for the rising edge. If a rising edge is detected a timer starts and after a specific time an other pin is pulled up to high level.

But there are two problems if i do it like that. At first the time between "detecting rising edge" and "Pull up a pin" takes at least 4us. It is a little bit to slow. The other problem is if i use this timer for counting i get a jitter at the output pin...

03 Nov 2015

You can still see if you can use a hardware function of the timer, it is just you don't want a timer capture even, you want a timer being triggered by a pin change. That is something else :).