Patent ID: 8643410

Claim:
A system for compensating for variations in the frequency of an input clock signal having a first frequency, comprising: a coarse counter that receives the input clock signal, counts a predetermined number of clock pulses of the input clock signal, and generates a coarse compensated clock signal having a second frequency; a first compensation module, connected to the coarse counter, that adjusts at least one clock pulse of the input clock signal based on a coarse compensation value; a residual period adjustment module, connected to the first compensation module, that accumulates a fine compensation value for each clock pulse of the coarse compensated clock signal; and a fine counter, connected to the coarse counter and the residual period adjustment module and operating at a third frequency of a fine clock signal, that receives the accumulated fine compensation value, counts a number of fine clock pulses in each clock pulse of the coarse compensated clock signal, and generates a fine compensated clock signal having the second frequency based on the accumulated fine compensation value.