A clock extraction circuit for extracting a clock from a serially-transferred signal, wherein the serially-transferred signal is a signal obtained by serially transferring, in an alternate and periodic manner, one symbol of serial digital data obtained by encoding first information and a pulse-width-modulated signal, wherein the pulse-width-modulated signal is obtained by encoding second information so that the encoded data has a difference from the one symbol of serial digital data and by performing pulse width modulation with a period that is n times a pulse width of digital data forming the one symbol of serial digital data so that there is only one rising edge or falling edge within the one symbol, with the rising edge or the falling edge being located at a specified position from a frame edge of the one symbol, the clock extraction circuit comprising:
- a voltage-controlled oscillator;
- a phase comparator for outputting a phase difference signal according to a phase difference between an input data string and an output signal from the voltage-controlled oscillator;
- a frequency comparator for outputting a frequency difference signal according to a frequency difference between the input data string and an output signal from the voltage-controlled oscillator;
- and
- a mode switching circuit for selecting the phase difference signal or the frequency difference signal,
- the frequency difference comparator comprising:
- an edge count determination circuit for determining that the number of input data edges is zero or one in one symbol period of the output signal from the voltage-controlled oscillator and outputting an edge count determination signal according to the determination result;
- a timer for outputting a timer signal at a predetermined time interval, the timer being reset when the number of edges is zero and the phase difference signal is selected;
- and
- a frequency control circuit for controlling an oscillation frequency of the voltage-controlled oscillator based on the edge count determination signal and the timer signal, wherein:
- the predetermined time interval of the timer is longer than a time interval at which the subordinate information is transferred;
- the frequency control circuit decreases the oscillation frequency of the voltage controlled oscillator if the number of edges is zero, and increases the oscillation frequency of the voltage-controlled oscillator if the timer signal is output;
- the mode switching circuit selects the phase difference signal if a determination result that the number of edges is one is obtained a predetermined number of consecutive times;
- and
- the oscillation frequency of the voltage-controlled oscillator is controlled based on the phase difference signal or the frequency difference signal selected by the mode switching circuit.