| CPC H04L 7/0087 (2013.01) [H04B 17/204 (2023.05); H04L 7/0337 (2013.01)] | 20 Claims |

|
1. A clock correction method, suitable for a communication device comprising a clock correction circuit, wherein the clock correction circuit is configured to receive a fast clock and a slow clock, the clock correction method comprises:
in response to the communication device being enabled and entering an active mode, calculating, by the clock correction circuit, a clock-period ratio between the slow clock and the fast clock;
in response to the communication device operating in a power-saving mode for a power-saving period, counting at least one rising edge of the slow clock received by the clock correction circuit during the power-saving period, as a cumulative number of slow clock periods;
in response to the communication device switching from the power-saving mode to the active mode, calculating the difference between an internal time of the communication device and a reference time of another communication device as a time offset; and
in the active mode, adjusting, by the clock correction circuit, the clock-period ratio by using a compensation value, wherein the compensation value is related to the clock-period ratio, the cumulative number of slow clock periods and the time offset.
|