encoder troubles

I am using the 10-bit PWM version