Open IhorNehrutsa opened 2 years ago
I don't think so. I did a large amount of research into the timers and I don't remember ever coming across a period counter. We could do something with software though, it's not too hard, especially considering that everything is perfectly correct with the counter
Yeah, you should be able to measure durations in a timer. It's gonna be dependent on what pin you want to count on though... Tim2 can definitely do it, but that's currently counting pulses. It's not a huge jump to say that frequency is pulses over time, so maybe that's a starting point? Do you have a copy of the full manual for the stm32f1xx?
On Fri, Aug 6, 2021, 07:44 Christian Piper @.***> wrote:
I don't think so. I did a large amount of research into the timers and I don't remember ever coming across a period counter. We could do something with software though, it's not too hard, especially considering that everything is perfectly correct with the counter
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CAP1Sup/Intellistep/issues/95#issuecomment-894270710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6S6SV3YQCLXV63FDMDBGLT3PRKXANCNFSM5BVYURUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Is it possible to measure frequency(period) of input step pulses on fly by hardware counters? This allow to continue correction timer with proper(last input step) frequency(period).