2024-04-18 04:09 AM
Is there a way to reset the counter and the prescaler via a hard event or something when an input capture happens?
I use timer 1 to have a hall interface and to drive timer 8. But there are some fluctuations, because the interrupt (where i reset counter and prescaler) is not fired at the exact time as the input capture happens.
Solved! Go to Solution.
2024-04-18 08:08 AM
> Is there a way to reset the counter and the prescaler via a hard event or something when an input capture happens?
No; but you can set input capture and TRGI to the same source (or you can set input capture upon TRGI), and then use the slave-mode controller:
JW
2024-04-18 08:08 AM
> Is there a way to reset the counter and the prescaler via a hard event or something when an input capture happens?
No; but you can set input capture and TRGI to the same source (or you can set input capture upon TRGI), and then use the slave-mode controller:
JW
2024-04-18 09:32 AM
I would not consider this as a "no", since it actually works ;)