Patent ID: 7158904

Claim:
A method for adjusting an inaccurate clock based upon an accurate clock, the method comprising: repeatedly counting clock cycles in a clock signal generated by the inaccurate clock for a specified period of time; after a completion of each specified period of time, computing a delta value based on the clock cycle count; accumulating a delta sum value; and computing a clock adjustment value according to the following equation: PPM Result M =PPM Result M-1 +Delta_Value M −Prev_Ref_PMM+Ref_PPM−Delta_Sum M wherein PPM Result M-1 is the clock adjustment value for specified period of time M−1, Delta_Value M is the delta value for specified period of time M, Delta_Sum M is the delta sum value for specified period of time M, and Ref_PPM is a reference clock cycle count and Prev_Ref_PMM is a previous reference clock cycle count; and adjusting said clock cycles of said inaccurate clock with said clock adjustment value.