on-internet
← Community

compensating latency on ARM interrupts?

Stack Overflow ·

I'm working on a project on a STM32F4 CPU, generating signals. I have a generic timer on CPU clock (no prescaler) on a STM32 triggering interrupts on overflow, to generate a periodic signal with GPIO afterwards. I need to trigger thr GPIO at a very precise time (basically down to one CPU cycle precision). I've managed to reduce this jitter to +-5 cycles by setting priorities & al, but this jitter exists, depending on what the CPU was doing. I need to compensate this few cycles jitter. Adding a few cycles more latency isn't a problem as long as I toggle GPIOs at a precise time. My idea was to r

Comments

Sign in or sign up to comment and upvote.

No comments yet.