adding timer to quadrature loop