Constantin
Well-known member
Just got back from a trip to EU, was great fun to see friends, classmates, and family. Hope you are all well!
For some reason, I was under the impression that there is a version of attachinterrupt which omits much of the overhead of dropping into a ISR routine when all that's needed is a increment on a variable (i.e. counter++). For the life of me, I cannot find that reference anymore.
The closest I can come up with is the encoder library, which appears to be optimized with some assembly code on the Teensy to make it more efficient. However, the encoder library expects two inputs whereas my project only expect to use a single, simple external interrupt that is triggered on a falling signal.
If anyone here has an idea what I'm talking about, please speak up! Otherwise, please enjoy your 4th of July weekend! Either way, many thanks for all the help thus far!
For some reason, I was under the impression that there is a version of attachinterrupt which omits much of the overhead of dropping into a ISR routine when all that's needed is a increment on a variable (i.e. counter++). For the life of me, I cannot find that reference anymore.
The closest I can come up with is the encoder library, which appears to be optimized with some assembly code on the Teensy to make it more efficient. However, the encoder library expects two inputs whereas my project only expect to use a single, simple external interrupt that is triggered on a falling signal.
If anyone here has an idea what I'm talking about, please speak up! Otherwise, please enjoy your 4th of July weekend! Either way, many thanks for all the help thus far!