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 ?
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 ?
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.
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.
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...
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...
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 :).
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 :).
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
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 ?