Patent attributes
An offset error, an amplitude error, a phase error and a third harmonic component contained in two-phase sinusoidal signals are removed using relatively simple digital computations. An offset error contained in two-phase sinusoidal signals with a phase difference output from an encoder is detected and corrected. Then, an amplitude error contained in the offset-corrected two-phase sinusoidal signals is detected and corrected. Subsequently, a phase error contained in the amplitude-corrected two-phase sinusoidal signals is detected and corrected. Further, a third harmonic distortion contained in the phase-corrected two-phase sinusoidal signals is detected and corrected. Each correction step includes detecting an error from an ideal Lissajous waveform contained in the corrected two-phase sinusoidal signals, and adding the detected error to an accumulatively added last value to yield a new correction coefficient, thereby dynamically updating the correction coefficient.