1. Technical Field
The disclosure relates to electronic devices and, particularly, to an electronic device capable of adjusting its clock and a method thereof.
2. Description of Related Art
Many electronic devices display clock information using a clock circuit. However, the clock circuit is often not precise and the clock can deviate from the correct time. Further, if the electronic device has not been powered on for a certain period, such as, a battery has been removed, the clock circuit will cease functioning due to lack of power supply. Providing a dedicated battery to power the clock circuit resolves the second problem but not the first. Furthermore, addition of the dedicated battery, by necessity, increases volume of the electronic device
Therefore, it is desirable to provide an electronic device and method to overcome the described limitations.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the electronic device. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
The clock module 50 is configured to generate time information. The time adjustment module 10 is configured to generate a trigger signal when receiving an adjustment command. The communication module 30 is configured to receive broadcast radio signals and extract correct time information therefrom when receiving the trigger signal. The time adjustment module 10 is also configured to adjust the time information of the clock module 50 according to the extracted correct time information.
In detail, the time adjustment module 10 includes an adjustment triggering sub-module 101, an adjustment processing sub-module 103, and an adjustment executing sub-module 105; and the communication module 30 includes a signal receiving sub-module 301, and a decoding sub-module 303.
The adjustment triggering sub-module 101 generates a trigger signal according to an adjustment command. In an exemplary embodiment, the adjustment command is generated by an input unit (not shown) of the electronic device 100 in response to input and transmitted to the adjustment triggering sub-module 101, for example, the adjustment command can be input via a keypad (not shown) of the electronic device 100. In another exemplary embodiment, the adjustment command is generated by a processing unit (not shown) according to a preset rule, for example, initiating adjustment of the clock module 50 every hour, whereby the adjustment command is generated every hour and, correspondingly, the trigger signal is generated by the adjustment triggering sub-module 101 every hour. The signal receiving sub-module 301 is configured to receive broadcast radio signals when receiving the trigger signal. The broadcast radio signal is provided by a broadcasting station, which can be chosen as default signal source. The decoding sub-module 303 is configured to decode the broadcast radio signals. As is known, most broadcast radio signals are in digital format and carry information including channel ID, program, correct time information, and others, and the decoding sub-module 303 decodes the broadcast radio signals and obtains the information including the correct time information.
The adjustment processing sub-module 103 is configured to extract the correct time information from the decoded information. The adjustment executing sub-module 105 is configured to adjust the time information of the clock module 50 according to the correct time information. The adjustment executing sub-module 105 is also configured to generate a stop signal after it has adjusted the time information of the clock module 50, the communication module 30 shuts down when receiving the stop signal, for example, the communication module 30 stops receiving broadcast radio signals when receiving the stop signal. Operating power is thus conserved.
The electronic device 100 is thus capable of correcting time information of the clock module 50 by extracting the correct time information from broadcast radio signals.
In step S202, the signal receiving sub-module 301 is activated to receive broadcast radio signals when receiving the trigger signal.
In step S204, the decoding sub-module 303 decodes the broadcast radio signals and obtains information including channel ID, programs, correct time information, and others.
In step S206, the adjustment processing sub-module 103 extracts the correct time information from the decoded information.
In step S208, the adjustment executing sub-module 105 adjusts the time information of the clock module 50 according to the correct time information.
In step S210, the adjustment executing sub-module 105 generates a stop signal and stops the communication module 30 after it has adjusted the time information of the clock module 50.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810303872.X | Aug 2008 | CN | national |