Code for encoder processors on keypad.  PIC16F1503