Incremental encoder is the most common sensor used for Field Oriented Control (FOC) of Permanent Magnet Brush Less DC (BLDC) or Permanent-Magnet Synchronous Motor (PMSM). This sensor gives relative angular position as the output in the form of pulses. A quadrature encoder, typically produces two outputs, which have pulses phase shifted by 90°. The phase shift between the two signals A and B represents the direction of rotation. The encoder interface logic uses edge detection on rising edge and falling edge of A and B. This gives a resolution that is four times the encoder resolution and produces a very high resolution from a low cost encoder.