I have put together a small program designed to produce a velocity vector from a slowly rotating incremental encoder. In order to get the best resolution I have got interrupt routines on all edges, both rising and falling. The falling edge interrupts work fine, but the rising edge interrupts never get execute. If I comment out the falling edge interrupts then the rising edge interrupts work. The enclosed oscilloscope photo shows the LED trace in blue and you can see the interrupt routine for falling edges temporally stops the LED output which is what I would expect. The yellow and Purple traces show the incremental encoder inputs to the Teensy 3.5. I think it is clear from the scope output that the interrupts complete well before the next interrupt is due. So why do falling edge interrupts work, but rising edge interrupts don't work??
Any guidance would be very welcome.
Any guidance would be very welcome.