Ever wonder how to calculate revolutions per minute using ... to trigger interrupts in any microcontroller. In this case a PIC 18F452 monitors the detector’s signals for a rising edge.