CN1983085A - Device and method for realizing alarm clock function - Google Patents

Device and method for realizing alarm clock function Download PDF

Info

Publication number
CN1983085A
CN1983085A CN 200610076727 CN200610076727A CN1983085A CN 1983085 A CN1983085 A CN 1983085A CN 200610076727 CN200610076727 CN 200610076727 CN 200610076727 A CN200610076727 A CN 200610076727A CN 1983085 A CN1983085 A CN 1983085A
Authority
CN
China
Prior art keywords
control module
timing
interrupter
alarm
alarm clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610076727
Other languages
Chinese (zh)
Other versions
CN100492221C (en
Inventor
薛林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100767273A priority Critical patent/CN100492221C/en
Publication of CN1983085A publication Critical patent/CN1983085A/en
Application granted granted Critical
Publication of CN100492221C publication Critical patent/CN100492221C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

A method for realizing alarm clock function includes setting a timing time of timing interruption unit by control unit according to alarm clock time, starting up timing by timing interruption unit and triggering up alarm clock when system time is on preset alarm clock time. The device used for realizing said method is also disclosed.

Description

A kind of apparatus and method that realize alarm clock function
Technical field
The present invention relates to electronic technology field, especially relate to a kind of apparatus and method that realize alarm clock function.
Background technology
At present, electronic product such as mobile phone, handheld device all has the demand of alarm clock function.After the electronic product shutdown, the major function of this electronic product is closed, and does not show.For example behind the mobile phone shutdown, this mobile phone is in not to be had to show, can not connect the state of making a phone call.When electronic product shuts down, realize alarm clock function, the general now hardware clock chip that uses.In real system, main control equipment writes the setting value constantly that sets an alarm in advance by the corresponding registers to this hardware clock chip, after the electronic product shutdown, this hardware clock chip works on, when system time is identical with the setting value constantly that sets an alarm in advance, this hardware clock chip produces trigger pip, as starting quarter-bell etc., to reach the purpose of notifying the user.
A kind of system that realizes the shutdown alarm clock function as shown in Figure 1, this system comprises a main control equipment CPU, hardware clock chip DS1339, crystal oscillator X1, capacitor C 1 and three resistance R 1, R2, R3.Wherein, 1 pin of hardware clock chip DS1339 and 2 pin are external crystal oscillator pin, and 3 pin are the second source pin, and 4 pin are the power cathode pin, and 5 pin and 6 pin are I 2C Bus interface pin, 7 pin are the signal output pin, and 8 pin are the positive source pin.The CPU corresponding registers that constantly 5 pin and 6 pin of setting value by hardware clock chip DS1339 write this chip that will set an alarm in advance; 1 pin of hardware clock chip DS1339 and 2 pin are connected on the two ends of crystal oscillator X1 respectively, and 3 pin connect the positive pole of capacitor C 1, and 4 pin connect power cathode, 7 pin output alarm clock trigger pip, and 8 pin connect positive source; Resistance R 1 and R2 are cascaded, and are connected between 5 pin and 6 pin of hardware clock chip DS1339, and the tie point of two resistance links to each other with positive source; Resistance R 3 is connected between 7 pin and positive source of hardware clock chip DS1339; The negative pole of capacitor C 1 connects power cathode.
Hardware clock chip DS1339 is the clock/calendar chip of low-power consumption, has two calendar alarm clocks able to programme and one tunnel square wave output able to programme, and address and data are passed through I 2The serial transfer of C bus.Clock/calendar can provide second, branch, the time, day, the moon, year information, for the month that is less than 31 days, can regulate automatically to every month last day, comprise the leap year correction, and this clock can be operated in 24 hours patterns or 12 hours patterns.DS1339 has an internal electric source sensor circuit, can detect power-fail, and is transformed into second source automatically.When electronic product was in open state, the setting value that main control equipment CPU will set an alarm constantly in advance was set among the hardware clock chip DS1339, and this hardware clock chip DS1339 picks up counting then.If electronic product shutdown, then after alarm clock arrived constantly, when promptly system time was identical with the setting value constantly that sets an alarm in advance, hardware clock chip DS1339 exported trigger pip, trigger out sound or informations such as light or vibrations or image, notify user's alarm time then.
But prior art is when realizing the shutdown alarm clock function, and needing increases extra hardware clock chip, and cost is higher.
Summary of the invention
The problem to be solved in the present invention provides a kind of apparatus and method that realize alarm clock function, to overcome the defective that need increase extra hardware clock chip in the prior art when realizing the shutdown alarm clock function.
For achieving the above object, the invention provides a kind of method that realizes alarm clock function, may further comprise the steps:
A, judge whether alarm time is less than or equal to system time, if then change step D; Otherwise change step B;
B, the timing of the timing interrupter of control module is set;
C, when the timing of the timing interrupter of control module then after, the update system time is also changeed steps A;
D, triggering alarm clock.
According to one aspect of the present invention, before steps A, further comprise:
S1, alarm time is set and obtains current system time;
S2, judge whether electronic product shuts down, if then change step S3; Otherwise commentaries on classics steps A;
S3, retentive control unit, regularly interrupter, storer and clock oscillator work, and change steps A.
According to another aspect of the present invention, step B further comprises:
B1, judge alarm time and system time difference whether greater than the maximum timing of the timing interrupter of control module, if then change step B2; Otherwise change step B3;
B2, the timing that the timing interrupter of control module is set are the maximum timing of interrupter regularly;
B3, the timing that the timing interrupter of control module is set are the difference of alarm time and system time.
According to another aspect of the present invention, step B2 or step B3 further comprise: the sleep pattern that control module and storer are low-power consumption is set.
According to another aspect of the present invention, the described update system time of step C further comprises:
C1, when the timing of the timing interrupter of control module then after, regularly the interrupter trigger control unit is interrupted;
C2, control module update system time are the timing sum of original system time and timing interrupter.
The invention provides a kind of device of realizing alarm clock function, comprising: power supply, storer, clock oscillator, control module and alerting signal generating device; Power supply connected storage, clock oscillator and control module are given this storer, clock oscillator and control module power supply; Storer connects control module, desired data during the storage control unit operation; Clock oscillator connects control module, provides clock signal to control module; Control module connects the alerting signal generating device, controls and drives this alerting signal generating device and produce alerting signal.
According to another aspect of the present invention, described control module further comprises regularly interrupter.
Compared with prior art, the present invention has the following advantages:
The present invention realizes the shutdown alarm clock function of electronic product under the situation that does not increase extra hardware clock chip, cost is low.
Further, treatment scheme of the present invention is simple, and power supply power consumption is low, and electronic product can be in low power consumpting state for a long time.
Description of drawings
Fig. 1 is a kind of system diagram of realizing the shutdown alarm clock function of prior art;
Fig. 2 is a kind of system diagram of realizing alarm clock function of the present invention;
Fig. 3 is a kind of process flow diagram of realizing alarm clock function of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail:
A kind of system that realizes alarm clock function of the present invention as shown in Figure 2, this system comprises a power supply 21, storer 22, clock oscillator 23, a control module 24 and an alerting signal generating device 25.Wherein, described control module 24 can be general CPU, and software program for execution is finished software function.This control module 24 further comprises one or more timing interrupters 26, regularly interrupter 26 is a kind of hardware circuits, control module 24 is set to regularly interrupter 26 with timing, regularly interrupter 26 picks up counting then, after arriving the timing of setting, regularly interrupter 26 initiates to interrupt to control module 24, and control module 24 is handled this interruption.But the maximum timing of the timing interrupter of general general CPU is less, usually in 1 hour.Power supply 21 connected storages 22, clock oscillator 23 and the control module 24 of this system are given this storer 22, clock oscillator 23 and control module 24 power supplies; Storer 22 connects control module 24, desired data during storage control unit 24 operations; Clock oscillator 23 connects control module 24, clock signal is provided for control module 24; Control module 24 connects alerting signal generating device 25, controls and drives this alerting signal generating device 25 and produce alerting signal; And this alerting signal generating device 25 is hummer or loudspeaker or luminescent device or Vib., after the trigger pip that receives control module 24, can produce sound or alerting signals such as light or vibration respectively.
When adopting the system of realization alarm clock function shown in Figure 2, a kind of flow process that realizes alarm clock function of the present invention as shown in Figure 3.At first the user is provided with alarm time, and control module is provided with the regularly timing of interrupter according to alarm time again, and regularly interrupter picks up counting then; When alarm time was scheduled in system time arrival, control module sent trigger pip to the alerting signal generating device, triggers out the alerting signal of alerting signal generating device, notifies user's alarm time then.
With reference to Fig. 3, the present invention specifically may further comprise the steps:
Step s101 is provided with alarm time T1 and obtains current system time T0.This alarm time comprises year, month, day, hour, min, second, is expressed as Y1/M1/D1/H1/M1/S1; System time comprises year, month, day, hour, min, second, is expressed as Y0/M0/D0/H0/M0/S0.
Step s102 judges whether electronic product shuts down.Judge promptly whether this electronic product is in the state that demonstration was closed, do not had to major function.If then change step s103, otherwise change step s104.
Step s103, retentive control unit, regularly interrupter, storer and clock oscillator work.
Step s104 judges whether T1 is less than or equal to T0.If then change step s111, otherwise change step s105.
Step s105 judges that T1-T0 is whether greater than the maximum timing N of timing interrupter.If then change step s106, otherwise change step s107.
Step s106 is provided with t=N.
Step s107 is provided with t=T1-T0.
Step s108, the timing that the timing interrupter of control module is set is t.
Step s109 is provided with the sleep pattern that control module and storer are low-power consumption.
Step s110, when the timing of the timing interrupter of control module then after, the update system time.Be about to T0 and be updated to former T0 and t sum, change step s104 then.
Step s111 triggers alarm clock.Control module sends trigger pip to the alerting signal generating device, triggers out the alerting signal of alerting signal generating device, notifies user's alarm time then.
Suppose that regularly the maximum timing N of interrupter is 3600 seconds; It is 2000/01/01/07/50/30 that the user is provided with alarm time T1, promptly 2000 on January 1,7: 50: 30; Getting access to system time T0 is 2000/01/01/06/30/30, promptly 2000 on January 1,6: 30: 30.If the user presses closing key or use instruction to make the electronic product shutdown, even electronic product is in the state that demonstration was closed, do not had to major function, then retentive control unit, regularly interrupter, storer and clock oscillator work, and judge whether T1 is less than or equal to T0; Otherwise judge directly whether T1 is less than or equal to T0.Because T1 is greater than T0, and T1-T0 is 4800 seconds, greater than N, so t=N is set, promptly is set t=3600 second, and be provided with control module regularly the timing of interrupter be t, this timing interrupter picks up counting, control module and storer are the sleep pattern of low-power consumption.
T is after second for process, regularly interrupter initiates to interrupt to control module, the control module update system time, T0 is updated to former T0 and t sum, be about to 2000/01/01/06/30/30 and be updated to 2000/01/01/07/30/30, and then judge whether T1 is less than or equal to T0.Because T1 is greater than T0, and T1-T0 is 1200 seconds, less than N, so t=T1-T0 is set, promptly be set t=1200 second, and be provided with control module regularly the timing of interrupter be t, this timing interrupter picks up counting, and control module and storer are the sleep pattern of low-power consumption.
T is after second for process, regularly interrupter initiates to interrupt to control module, the control module update system time, T0 is updated to former T0 and t sum, be about to 2000/01/01/07/30/30 and be updated to 2000/01/01/07/50/30, and then judge whether T1 is less than or equal to T0.Because T1 equals T0, so control module sends trigger pip to the alerting signal generating device, trigger out the alerting signal of alerting signal generating device, notify user's alarm time then.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (7)

1, a kind of method that realizes alarm clock function is characterized in that, may further comprise the steps:
A, judge whether alarm time is less than or equal to system time, if then change step D; Otherwise change step B;
B, the timing of the timing interrupter of control module is set;
C, when the timing of the timing interrupter of control module then after, the update system time is also changeed steps A;
D, triggering alarm clock.
2, realize the method for alarm clock function according to claim 1, it is characterized in that, before steps A, further comprise:
S1, alarm time is set and obtains current system time;
S2, judge whether electronic product shuts down, if then change step S3; Otherwise commentaries on classics steps A:
S3, retentive control unit, regularly interrupter, storer and clock oscillator work, and change steps A.
3, realize the method for alarm clock function according to claim 1, it is characterized in that step B further comprises:
B1, judge alarm time and system time difference whether greater than the maximum timing of the timing interrupter of control module, if then change step B2; Otherwise change step B3;
B2, the timing that the timing interrupter of control module is set are the maximum timing of interrupter regularly;
B3, the timing that the timing interrupter of control module is set are the difference of alarm time and system time.
4, as the method for realization alarm clock function as described in the claim 3, it is characterized in that step B2 or step B3 further comprise: the sleep pattern that control module and storer are low-power consumption is set.
5, realize the method for alarm clock function according to claim 1, it is characterized in that the described update system time of step C further comprises:
C1, when the timing of the timing interrupter of control module then after, regularly the interrupter trigger control unit is interrupted;
C2, control module update system time are the timing sum of original system time and timing interrupter.
6, a kind of device of realizing alarm clock function is characterized in that, comprising:
Power supply, storer, clock oscillator, control module and alerting signal generating device;
Power supply connected storage, clock oscillator and control module are given this storer, clock oscillator and control module power supply;
Storer connects control module, desired data during the storage control unit operation;
Clock oscillator connects control module, provides clock signal to control module;
Control module connects the alerting signal generating device, controls and drives this alerting signal generating device and produce alerting signal.
As the device of realization alarm clock function as described in the claim 6, it is characterized in that 7, described control module further comprises regularly interrupter.
CNB2006100767273A 2006-04-20 2006-04-20 Device and method for realizing alarm clock function Active CN100492221C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100767273A CN100492221C (en) 2006-04-20 2006-04-20 Device and method for realizing alarm clock function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100767273A CN100492221C (en) 2006-04-20 2006-04-20 Device and method for realizing alarm clock function

Publications (2)

Publication Number Publication Date
CN1983085A true CN1983085A (en) 2007-06-20
CN100492221C CN100492221C (en) 2009-05-27

Family

ID=38165674

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100767273A Active CN100492221C (en) 2006-04-20 2006-04-20 Device and method for realizing alarm clock function

Country Status (1)

Country Link
CN (1) CN100492221C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909112A (en) * 2010-07-01 2010-12-08 惠州Tcl移动通信有限公司 Implementation method for intelligent mobile phone shutdown alarm clock
CN101909113A (en) * 2010-07-02 2010-12-08 上海华勤通讯技术有限公司 Mobile terminal with health-management function and health-management realization method thereof
CN102693130A (en) * 2012-05-03 2012-09-26 无敌科技(西安)有限公司 Device and method of realizing Android platform shutdown alarm reminding by using independent alarm module
CN102821207A (en) * 2012-08-15 2012-12-12 北京小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN106341545A (en) * 2016-09-28 2017-01-18 上海斐讯数据通信技术有限公司 Method for displaying time of mobile terminal under power-off state and system using method
CN106909374A (en) * 2013-02-28 2017-06-30 青岛海信移动通信技术股份有限公司 The method and intelligent terminal of alarm clock are realized under a kind of intelligent terminal off-mode
CN108345349A (en) * 2018-03-07 2018-07-31 杭州万高科技股份有限公司 Method, system, equipment and computer storage media when a kind of alarm clock is walked

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2202334Y (en) * 1994-08-31 1995-06-28 金宝电子工业股份有限公司 Computer with displaying time while operating
US6453182B1 (en) * 2000-02-15 2002-09-17 Qualcomm, Incorporated Wireless telephone airplane and alarm clock modes
CN1120645C (en) * 2001-04-20 2003-09-03 北京首信股份有限公司 Alarm memorandum book work mode and writing method for memorandum book for mobile telephone set

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909112A (en) * 2010-07-01 2010-12-08 惠州Tcl移动通信有限公司 Implementation method for intelligent mobile phone shutdown alarm clock
CN101909112B (en) * 2010-07-01 2013-08-14 惠州Tcl移动通信有限公司 Implementation method for intelligent mobile phone shutdown alarm clock
CN101909113A (en) * 2010-07-02 2010-12-08 上海华勤通讯技术有限公司 Mobile terminal with health-management function and health-management realization method thereof
CN102693130A (en) * 2012-05-03 2012-09-26 无敌科技(西安)有限公司 Device and method of realizing Android platform shutdown alarm reminding by using independent alarm module
CN102821207A (en) * 2012-08-15 2012-12-12 北京小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
CN102821207B (en) * 2012-08-15 2014-04-16 小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
CN106909374A (en) * 2013-02-28 2017-06-30 青岛海信移动通信技术股份有限公司 The method and intelligent terminal of alarm clock are realized under a kind of intelligent terminal off-mode
CN106909374B (en) * 2013-02-28 2020-12-18 青岛海信移动通信技术股份有限公司 Method for realizing alarm clock in shutdown state of intelligent terminal and intelligent terminal
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN106341545A (en) * 2016-09-28 2017-01-18 上海斐讯数据通信技术有限公司 Method for displaying time of mobile terminal under power-off state and system using method
CN108345349A (en) * 2018-03-07 2018-07-31 杭州万高科技股份有限公司 Method, system, equipment and computer storage media when a kind of alarm clock is walked

Also Published As

Publication number Publication date
CN100492221C (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN100492221C (en) Device and method for realizing alarm clock function
CN100354793C (en) Integrated circuit device
CN102821207B (en) Implementation method for alarm clock under shutdown state and mobile terminal
US8713348B2 (en) Apparatus for performing timer management regarding a system timer scheduler service, and associated method
US9477293B2 (en) Embedded controller for power-saving and method thereof
CN103684495A (en) Circuit arrangement and method for low power mode management
BR9814560B1 (en) PERSONAL INFORMATION MANAGEMENT SYSTEM, AND INFORMATION EXCHANGE PROCESS BETWEEN AT LEAST A PERSONAL INFORMATION MANAGER AND AT LEAST A COMMUNICATION SYSTEM
CN101150811B (en) A device and method for standby control in mobile terminal
CN108052156A (en) A kind of processor clock tree framework and construction method based on gating technology
CN100410846C (en) Method for realizing real-time clock waking-up of notebook computer
JP2002243875A (en) Terminal device and method of controlling real-time clock
WO2021175194A1 (en) Method for timed startup of terminal, and terminal
JP2019527822A (en) Time display method and smart watch
WO2010147863A1 (en) System and method for sequentially distributing power among one or more modules
CN117762579A (en) Method, device, equipment and medium for executing timing task of internet of things equipment
WO2019119545A1 (en) Task processing method and device
JP2004252702A (en) Method for accessing iic device of control circuit having iic bus
CN201282497Y (en) Device for implementing mobile phone clock function
CN100520673C (en) A television with real-time clock chip and the realized method of real-time clock
JP4386852B2 (en) Signal processing device
JP2012234275A (en) Real time clock correction circuit and real time clock correction method
US20030065964A1 (en) Registering events while clocking multiple domains
JP2008224336A (en) Alarm device, mobile communication device equipped with alarm device, alarm device control method, alarm device control program, and computer-readable recording medium recorded with program
JP4612205B2 (en) Control unit for communication system terminal, cordless telecommunications system terminal including the control unit, and control method therefor
JP2006201856A (en) Semiconductor integrated circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant