Method and system for restarting a reference clock of a mobile station after a sleep period with a zero mean time error
First Claim
1. A method for restarting a high frequency reference clock of a mobile station after a sleep period with a zero mean time error, wherein during most of the sleep period the high frequency, reference clock is deactivated and a low frequency low power sleep clock is utilized instead, the method comprising:
- calibrating the sleep clock with respect to the reference clock during a specified calibration period including counting a first number of reference clock cycles from the beginning of the specified calibration period until the first rising edge of a first sleep clock cycle, waiting for a predetermined number of sleep clock cycles to occur, and counting a second number of reference clock cycles from the rising edge of a last sleep clock cycle until the end of the calibration period;
adding the first number of reference clock cycles to the second number of reference clock cycles to calculate an actual number of reference clock cycles;
calculating an expected number of reference clock cycles for the specific calibration period;
determining a calibration error between the reference clock and the sleep clock by subtracting the expected number of reference clock cycles from the actual number of reference clock cycles;
determining a wake-up time error based upon the calibration error; and
utilizing the wake-up time error to compensate for the error of the sleep clock such that the reference clock restarts at the end of the sleep period with a zero mean time error.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention is a method and system to minimize the timing errors introduced by the use of a sleep clock, utilized in timing a sleep period, for a mobile station. Further, the present invention restarts a high frequency reference clock after the sleep period with a zero mean time error to ensure that the receiver of the mobile station is properly synchronized with a base station for the receipt of pages. A low frequency sleep clock is calibrated with respect to a high frequency reference clock during a pre-defined calibration period. Based upon the calibration, a calibration error for the sleep clock is determined. Next, a wake-up time error is calculated, based upon the calibration error, to compensate for the error of the sleep clock. The wake-up time error compensates for the error of the sleep clock during the sleep period such that the reference clock restarts at the end of the sleep period with a zero mean time error. This ensures that the reference clock and the receiver of the mobile station will be properly time synchronized with the base station for the receipt of pages.
-
Citations
16 Claims
-
1. A method for restarting a high frequency reference clock of a mobile station after a sleep period with a zero mean time error, wherein during most of the sleep period the high frequency, reference clock is deactivated and a low frequency low power sleep clock is utilized instead, the method comprising:
-
calibrating the sleep clock with respect to the reference clock during a specified calibration period including counting a first number of reference clock cycles from the beginning of the specified calibration period until the first rising edge of a first sleep clock cycle, waiting for a predetermined number of sleep clock cycles to occur, and counting a second number of reference clock cycles from the rising edge of a last sleep clock cycle until the end of the calibration period;
adding the first number of reference clock cycles to the second number of reference clock cycles to calculate an actual number of reference clock cycles;
calculating an expected number of reference clock cycles for the specific calibration period;
determining a calibration error between the reference clock and the sleep clock by subtracting the expected number of reference clock cycles from the actual number of reference clock cycles;
determining a wake-up time error based upon the calibration error; and
utilizing the wake-up time error to compensate for the error of the sleep clock such that the reference clock restarts at the end of the sleep period with a zero mean time error. - View Dependent Claims (2, 3, 4, 5, 6)
counting an actual number of reference clock cycles for the specified calibration period;
determining an expected number of reference clock cycles for the specified calibration period; and
subtracting the expected number of reference clock cycles from the actual number of reference clock cycles.
-
-
3. The method of claim 1 wherein the wake-up time error is determined by multiplying the calibration error by the ratio of the sleep period to the calibration period.
-
4. The method of claim 1 further comprising:
-
calculating a total number of reference clock cycles to be counted for the sleep period; and
calculating a total number of sleep clock cycles to be counted for the sleep period.
-
-
5. The method of claim 4 wherein the calculation of the total number of reference clock cycles comprises:
-
determining a nominal number of reference clock cycles for the sleep period, the nominal number being the number of reference clock cycles needed to properly utilize the sleep clock to time the sleep period, if the sleep clock did not have an error associated with it; and
adding the wake-up time error to the nominal number to compensate for the error of the sleep clock such that the reference clock restarts at the end of the sleep period with a zero mean time error.
-
-
6. The method of claim 5 wherein the method for restarting the reference clock at the end of the sleep period with a zero mean time error comprises:
-
counting reference clock cycles from the beginning of the sleep period until the first rising edge of a first sleep clock cycle;
deactivating the reference clock;
counting sleep clock cycles until the total number of sleep clock cycles has been counted;
reactivating the reference clock; and
counting reference clock cycles until the total number of reference clock cycles has been counted which marks the end of the sleep period and the reference clock is restarted with a zero mean time error.
-
-
7. A system for calibrating a low frequency low power sleep clock with respect to a high frequency reference clock for a mobile station during a specified calibration period, the system comprising:
-
a high frequency reference clock generator generating reference clock cycles;
a low frequency sleep clock generator generating sleep clock cycles;
a high frequency reference clock counter counting an actual number of reference clock cycles that occur during the specified calibration period;
a logic and clock edge detector gating reference clock cycles to the high frequency reference clock counter and disabling reference clock cycles to the high frequency reference counter during a sleep period, wherein after the rising edge of a first sleep clock cycle the logic and clock edge detector disables reference clock cycles to the high frequency reference counter and counts a number of sleep clock cycles and after the trailing rising edge of a last sleep clock cycle the logic and clock edge detector gates reference clock cycles to the high frequency reference counter; and
a calibration unit which calculates a calibration error for the sleep clock by subtracting an expected number of reference clock cycles for the calibration period from the actual number of reference clock cycles counted during the calibration period.
-
-
8. A system for restarting high frequency reference clock cycles to system hardware modules of a mobile station after a sleep period with a zero mean time error, wherein during most of the sleep period a high frequency reference clock generator is deactivated and a low frequency low power sleep clock generator is utilized instead, the system comprising:
-
a high frequency reference clock generator generating reference clock cycles;
a low frequency sleep clock generator generating sleep clock cycles;
a reference clock calculation unit calculating a specified number of reference clock cycles which compensates for an error generated by the use of the sleep clock generator;
a clock generator controller counting down a specified number of reference clock cycles; and
a clock generator timer counting down a specified number of sleep clock cycles, the clock generator timer deactivating the high frequency reference clock generator during the period of the specified number of sleep clock cycles and reactivating the high frequency reference clock generator at the end of the specified number of sleep clock cycles, the clock generator controller then counting down the remaining specified number of reference clock cycles and restarting the reference clock cycles to system hardware modules with a zero mean time error. - View Dependent Claims (9, 10)
-
-
11. A machine-readable medium having stored thereon instructions, which when executed by a set of processors, cause said set of processors to perform method steps for restarting a high frequency reference clock of a mobile station after a sleep period with a zero mean time error, wherein during most of the sleep period the high frequency reference clock is deactivated and a low frequency low power sleep clock is utilized instead, the method comprising:
-
calibrating the sleep clock with respect to the reference clock during a specified calibration period including counting a first number of reference clock cycles from the beginning of the specified calibration period until the first rising edge of a first sleep clock cycle, waiting for a predetermined number of sleep clock cycles to occur, and counting a second number of reference clock cycles from the rising edge of a last sleep clock cycle until the end of the calibration period;
adding the first number of reference clock cycles to the second number of reference clock cycles to calculate an actual number of reference clock cycles;
calculating an expected number of reference clock cycles for the specific calibration period;
determining a calibration error between the reference clock and the sleep clock by subtracting the expected number of reference clock cycles from the actual number of reference clock cycles;
determining a wake-up time error based upon the calibration error; and
utilizing the wake-up time error to compensate for the error of the sleep clock such that the reference clock restarts at the end of the sleep period with a zero mean time error. - View Dependent Claims (12, 13, 14, 15, 16)
counting an actual number of reference clock cycles for the specified calibration period;
determining an expected number of reference clock cycles for the specified calibration period; and
subtracting the expected number of reference clock cycles from the actual number of reference clock cycles.
-
-
13. The machine-readable medium of claim 11 wherein the wake-up time error is determined by multiplying the calibration error by the ratio of the sleep period to the calibration period.
-
14. The machine-readable medium of claim 11 further comprising:
-
calculating a total number of reference clock cycles to be counted for the sleep period; and
calculating a total number of sleep clock cycles to be counted for the sleep period.
-
-
15. The machine-readable medium of claim 14 wherein the calculation of the total number of reference clock cycles comprises:
-
determining a nominal number of reference clock cycles for the sleep period, the nominal number being the number of reference clock cycles needed to properly utilize the sleep clock to time the sleep period, if the sleep clock did not have an error associated with it; and
adding the wake-up time error to the nominal number to compensate for the error of the sleep clock such that the reference clock restarts at the end of the sleep period with a zero mean time error.
-
-
16. The machine-readable medium of claim 15 wherein the method for restarting the reference clock at the end of the sleep period with a zero mean time error comprises:
-
counting reference clock cycles from the beginning of the sleep period until the first rising edge of a first sleep clock cycle;
deactivating the reference clock;
counting sleep clock cycles until the total number of sleep clock cycles has been counted;
reactivating the reference clock; and
counting reference clock cycles until the total number of reference clock cycles has been counted which marks the end of the sleep period and the reference clock is restarted with a zero mean time error.
-
Specification