Working encoder interrupt