Microcontroller With Quadrature Encoder Interface