Control resolution of encoder