paoloboatto
Member
I'm working with Teensy 3.6 and I set the interrupt function with the following simple code:
attachInterrupt(digitalPinToInterrupt(RPM_Pin), RPM_PulseTimeDifference, FALLING);
I'm using a signal generator to send a square wave to the RPM_Pin, and check it with the oscilloscope. I found that the interrupt on that pin, fires on both the rising and falling edges, as if I had set the interrupt with the CHANGE option instead of FALLING.
Am I missing some info about the interrupts on Teensy 3.6?
attachInterrupt(digitalPinToInterrupt(RPM_Pin), RPM_PulseTimeDifference, FALLING);
I'm using a signal generator to send a square wave to the RPM_Pin, and check it with the oscilloscope. I found that the interrupt on that pin, fires on both the rising and falling edges, as if I had set the interrupt with the CHANGE option instead of FALLING.
Am I missing some info about the interrupts on Teensy 3.6?