To make detectable a phase difference between two input signals by counting a second input signal by a counter reset for every change in a first input signal and outputting a digital value according to the frequency ratio of the two input signals.
When the frequency of a first input signal 111, the frequency of a second input signal 112, and a frequency ratio set value 116 are set to f1, f2, and (m) respectively, an integrator 108 provides mxf1 signal obtained by multiplying the frequency of the first input signal 111 by (m) times and a digital value 118 expressing a phase difference from the second input signal 112. In this case, (m) is not restricted to integer but may be a decimal. Therefore, even if the frequency ratio f1/f2 of the two input signals 111, 112 is any value, the phase of the two signals can be compared. This constitution can detect the frequency ratio of the two input signals of different frequencies and detect an error between the frequency ratio and the frequency ratio set value.
Next Patent: FOUR-WIRE TYPE CHARACTERISTIC MEASURING APPARATUS