Added QEI interrupt to dsPIC code