I've a colleague who is using the 32-bit timer of an STM32 to trigger and interrupt handled pin toggle rather than using the 16-bit hardware Timer on the pin that needs toggling. The frequency on that pin varies a lot in use. When I wrote bringup cod...
Posted on June 16, 2017 at 16:33 The original post was too long to process during our migration. Please click on the attachment to read the original post.
> The inter-timer (TRGO-TRGI) mechanism is poorly described by ST. It is known to include an undefined delay, and it is unknown whether running timers on different clocks (e.g. different APB buses clocked differently) does or does not introduce a var...
Yes that link is investigating the maximum frequency achievable that way, but importantly they show jitter caused by SysTick and discuss turning it off.
I think in summary my instinct was correct and some of the reasons are:If you were foolish enough to have any other interrupts with the same or higher priority you'd be subject to their full operation plus the ISR switching delayIf you have this as t...
> Contrary to what the bean counters would want, there's no one-size-fits-all in mcu.Definitely agree with that.I have used interrupt based pin toggles for loads of things and definitely believe it has its place. This is critical timing stepper motor...