This invention is to allow accurate high-speed coincidence detection while
preventing any increase in circuit scale. To achieve this object, a
coincidence detection apparatus includes a detector which outputs at
least two periodical signals in accordance with the displacement of an
object, a digital interpolator which processes the periodical signal
output from the detector at a predetermined time interval to generate a
displacement or angle at a period shorter than the period of the
periodical signal, a pulse generation unit which generates a constant
frequency pulse signal, a counter which counts the pulse signal output
from the pulse generation unit, and a pulse conversion unit which
calculates a value to be set in the counter from the difference between
displacement information corresponding to the target position of the
object and the output from the digital interpolator.