Help with ISR's and Interrupts

Check out the PJRC Encoder Library.