Systems and methods for providing a sleep clock on a wireless communications device
10172092 ยท 2019-01-01
Assignee
Inventors
- Xuan Zhou (Fremont, CA, US)
- Bin Xia (Shanghai, CN)
- Shiyi Zhu (Shanghai, CN)
- Xiaohu Chen (Shanghai, CN)
- Xioabo Zhang (Shanghai, CN)
- Qingming Zhang (Shanghai, CN)
Cpc classification
G06F1/08
PHYSICS
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H04W52/0287
ELECTRICITY
H04W52/0293
ELECTRICITY
Y02D30/70
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
H04L7/033
ELECTRICITY
Abstract
Example systems and methods are provided for maintaining a system clock during a sleep mode of a mobile communication device. An example system may include a high frequency clock circuit configured to generate a system clock, and a low frequency clock circuit configured to generate a sleep clock, where the sleep clock has a lower frequency than the system clock. The example system may further include a sleep system configured to deactivate the system clock in response to the mobile communication device entering sleep mode. The sleep system may include a sleep counter configured to use the sleep clock to maintain a sleep count for the deactivated system clock during the sleep mode, and a calibration unit configured to activate a calibration clock at periodic intervals during the sleep mode and utilize the calibration clock to calibrate a frequency of the sleep clock.
Claims
1. A method for maintaining a system clock during a sleep mode of a mobile communication device, the method comprising: entering the sleep mode by the mobile communication device; in response to entering the sleep mode, deactivating the system clock, and maintaining a sleep count for the deactivated system clock using a sleep clock, the sleep clock having a lower frequency than the system clock, wherein the sleep count is a number of sleep clock cycles that the mobile communication device is in the sleep mode; and at periodic intervals throughout the sleep mode, (a) activating a calibration clock, the calibration clock having a higher frequency than the sleep clock, (b) using the calibration clock to calibrate a frequency of the sleep clock, and (c) deactivating the calibration clock.
2. The method of claim 1, further comprising: exiting the sleep mode; and in response to exiting the sleep mode, using the sleep count to determine a restoration value for setting the system clock.
3. The method of claim 2, further comprising: recording a value of the system clock in response to entering the sleep mode, wherein the restoration value for the system clock is determined as a function of the recorded system clock value and the sleep count.
4. The method of claim 1, wherein the sleep clock is provided by a clock unit in a power management integrated circuit.
5. The method of claim 1, wherein a calibrated frequency (f) of the sleep clock is determined according to an equation:
6. The method of claim 1, wherein the calibration clock and system clock are both generated by a high frequency clock circuit.
7. A clock system for a mobile communication device, the clock system comprising: a high frequency clock circuit configured to generate a system clock; a low frequency clock circuit configured to generate a sleep clock, the sleep clock having a lower frequency than the system clock; and a sleep system stored on a computer readable medium and executed by one or more processors, the sleep system when executed being configured to deactivate the system clock in response to the mobile communication device entering a sleep mode, the sleep system including a sleep counter configured to use the sleep clock to maintain a sleep count for the deactivated system clock during the sleep mode, wherein the sleep count is a number of sleep clock cycles that the mobile communication device is in the sleep mode, and a calibration unit configured to, at periodic intervals throughout the sleep mode, (a) activate a calibration clock, (b) utilize the calibration clock to calibrate a frequency of the sleep clock, and (c) deactivate the calibration clock, wherein the calibration clock has a higher frequency than the sleep clock.
8. The clock system of claim 7, wherein the sleep system is further configured to utilize the sleep count to determine a restoration value for setting the system clock in response to the mobile communication device exiting the sleep mode.
9. The clock system of claim 8, wherein the sleep system is further configured to record a value of the system clock in response to entering the sleep mode, and wherein the restoration value for the system clock is determined as a function of the recorded system clock value and the sleep count.
10. The clock system of claim 7, wherein the low frequency clock circuit is a clock unit in a power management integrated circuit.
11. The clock system of claim 7, wherein the calibration clock is generated by the high frequency clock circuit.
12. The clock system of claim 11, wherein the high frequency clock circuit is a phase locked loop circuit.
13. The clock system of claim 7, wherein the sleep clock is a 32 kHZ clock signal.
14. The clock system of claim 7, wherein a calibrated frequency (f) of the sleep clock is determined according to an equation:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7)
(8) In the example illustrated in
BC.sub.C=BC.sub.A+SLEEP
(9) The accuracy of the restored system clock value (BC.sub.C) directly affects the subsequent receiving time window for the mobile communication device (e.g., starting at point D in the example timing diagram.) The sleep count (SLEEP) that is used to calculate the restored system clock value (BC.sub.C) is calculated as:
SLEEP=T+M
The sleep mode may preferably be initiated on a rising edge of the sleep clock 104, as illustrated in the example shown in
(10)
where f is the frequency of the sleep clock 104 and N is the number of sleep clock periods during the time period T. The frequency (f) of the sleep clock 104 may, for example, be obtained before entering sleep mode.
(11)
(12) Use of the PMIC clock unit 218 to provide the sleep clock 220 reduces the size and cost of the system 200 by eliminating the need for an external crystal oscillator. Because the PMIC 216 is also used to supply power to systems throughout the mobile communication device 200, the size and cost of the PMIC 216 is already accounted for in the overall system design. The use of the PMIC clock unit 218, instead of an external crystal oscillator, to supply the sleep clock 220 may therefore provide a significant design advantage. However, the low frequency (e.g., 32 kHz) clock unit 218 in a PMIC 216 is typically an RC circuit that does not provide the accuracy of an external crystal oscillator. That is, the frequency drift of a low frequency (e.g., 32 kHz) clock source implemented using the RC circuit in a PMIC is typically larger than the frequency drift of a low frequency clock source provided by an external crystal oscillator, with the frequency drift from the RC clock source being largely affected by environmental factors, such as temperature. As a result, the use of the sleep clock 220 from the PMIC clock unit 218 creates a possibility that there will be a frequency drift over the duration of the sleep period (T) that needs to be taken into consideration when calculating the sleep count (SLEEP). Otherwise, if there is a derivation in the sleep count (SLEEP) that is unaccounted for, the restored high frequency system clock value may not be accurate. The adjusted sleep count (SLEEP), which accounts for the actual frequency (f) of the sleep clock 220 during the sleep period (T), may be expressed as:
(13)
(14) In order to determine the adjusted sleep count (SLEEP), the frequency (f) of the sleep clock 220 during the sleep period (T) needs to be known. The DRX sleep system 210, as depicted in
(15) With reference first to the timing diagram 300 illustrated in
(16)
where F is the frequency of the calibration clock 222. An implementation of the above calibration equation is illustrated in
(17) With reference again to
(18) As illustrated by the timing diagram 500 shown in
(19)
(20) As demonstrated by the equations above, multiple calibrations may affect the duration of the sleep period (T). As shown in
BC.sub.C=BC.sub.C(TT)
(21) This written description uses examples to disclose the invention, include the best mode, and also to enable a person skilled in the art to make and use the invention. The patentable scope of the invention may include other examples that occur to those skilled in the art. Other implementations may also be used, however, such as firmware or appropriately designed hardware configured to carry out the methods and systems described herein. For example, the systems and methods described herein may be implemented in an independent processing engine, as a co-processor, or as a hardware accelerator. In yet another example, the systems and methods described herein may be provided on many different types of computer-readable media including computer storage mechanisms (e.g., CD-ROM, diskette, RAM, flash memory, computer's hard drive, etc.) that contain instructions (e.g., software) for use in execution by one or more processors to perform the methods' operations and implement the systems described herein.