Phase detecting apparatus and phase adjusting method
A phase detecting apparatus and a phase adjusting method are provided. Determine whether to output a phase adjusting control signal according to a first data sampling value, a second data sampling value and a third data sampling value that are successively generated, so as to adjust a phase of a sampling clock signal used to sample a data signal.
1. A phase adjusting method, comprising:
receiving and sampling a data signal to generate a sampling signal, the sampling signal comprising a plurality of data sampling values and a plurality of data edge sampling values that are alternately generated;
comparing the data sampling values and the data edge sampling values that are adjacent to each other, so as to generate a plurality of comparison values;
storing the data sampling values, the data edge sampling values and the comparison values; and
determining whether to output a phase adjusting control signal according to a first data sampling value, a second data sampling value and a third data sampling value that are successively generated, so as to adjust a phase of a sampling clock signal used to sample the data signal,
wherein when the second data sampling value is different from the third data sampling value and the first data sampling value is the same as the second data sampling value, the phase of the sampling clock signal is adjusted.
2. A phase adjusting method, comprising:
receiving and sampling a data signal to generate a sampling signal, the sampling signal comprising a plurality of data sampling values and a plurality of data edge sampling values that are alternately generated;
comparing the data sampling values and the data edge sampling values that are adjacent to each other, so as to generate a plurality of comparison values;
storing the data sampling values, the data edge sampling values and the comparison values; and
determining whether to output a phase adjusting control signal according to a first data sampling value, a second data sampling value and a third data sampling value that are successively generated, so as to adjust a phase of a sampling clock signal used to sample the data signal,
wherein when the second data sampling value is different from the third data sampling value and the first data sampling value is different from the second data sampling value, the phase of the sampling clock signal is not adjusted.
3. A phase adjusting method, comprising:
receiving and sampling a data signal to generate a sampling signal, the sampling signal comprising a plurality of data sampling values and a plurality of data edge sampling values that are alternately generated;
comparing the data sampling values and the data edge sampling values that are adjacent to each other, so as to generate a plurality of comparison values;
storing the data sampling values, the data edge sampling values and the comparison values;
determining whether to output a phase adjusting control signal according to a first data sampling value, a second data sampling value and a third data sampling value that are successively generated, so as to adjust a phase of a sampling clock signal used to sample the data signal; and
when the second data sampling value is different from the third data sampling value and the first data sampling value is different from the second data sampling value, adjusting the phase of the sampling clock signal according to a fixed counting interval.
4. The phase adjusting method as recited in claim 3 , further comprising:
when the second data sampling value is different from the third data sampling value and the first data sampling value is different from the second data sampling value, referring to a current count value of a counter, adjusting the phase of the sampling clock signal when the current count value is a specific count value or a multiple thereof.