| CPC H03K 5/01 (2013.01) [H03L 7/08 (2013.01); H03K 2005/00058 (2013.01)] | 18 Claims |

|
1. A phase error compensation circuit for compensating a phase error between a reference clock and a feedback clock, comprising:
a first programmable delay circuit, configured to provide a first delay;
a second programmable delay circuit, configured to provide a second delay; and
at least one swapping circuit, coupled to the first programmable delay circuit and the second programmable delay circuit, configured to output a compensated reference clock and a compensated feedback clock according to the first delay, the second delay, the reference clock and the feedback clock;
wherein:
at a present cycle, the at least one swapping circuit is configured to apply the first delay to the feedback clock for generating the compensated feedback clock and apply the second delay to the reference clock for generating the compensated reference clock;
at a next cycle, the at least one swapping circuit is configured to apply the second delay to the feedback clock for generating the compensated feedback clock and apply the first delay to the reference clock for generating the compensated reference clock;
the first delay at the present cycle is substantially equal to the first delay at a last cycle, and the second delay at the present cycle is substantially equal to the second delay at the next cycle; and
the second delay at the present cycle is determined according to the phase error at the present cycle and the first delay at the present cycle, and the first delay at the next cycle is determined according to the phase error at the next cycle and the second delay at the next cycle.
|