CN104007652A - Method for reducing electronic timing error - Google Patents

Method for reducing electronic timing error Download PDF

Info

Publication number
CN104007652A
CN104007652A CN201410266409.8A CN201410266409A CN104007652A CN 104007652 A CN104007652 A CN 104007652A CN 201410266409 A CN201410266409 A CN 201410266409A CN 104007652 A CN104007652 A CN 104007652A
Authority
CN
China
Prior art keywords
rtc
chip
crystal oscillator
register
power supply
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.)
Pending
Application number
CN201410266409.8A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410266409.8A priority Critical patent/CN104007652A/en
Publication of CN104007652A publication Critical patent/CN104007652A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention discloses a method for reducing an electronic timing error, and relates to electronic timing, in particular to an electronic timing error reducing method of a temperature compensation RTC chip internally provided with a crystal oscillator. By means of the method, an RTC, a digital display device, an infrared receiving head, a Bluetooth chip and a power source which are respectively connected with a single-chip microcomputer are used, the RTC is connected with the power source through a voltage stabilizing chip, under supporting of software, a traditional timing product of a temperature compensation RTC internally provided with a crystal oscillator has the function of calibrating a year register, a month register, a week register, a day register, an hour register, a minute register and a second register of the RTC and further has the function of calibrating the 32768-Hz crystal oscillator arranged in the RTC, re-calibration is convenient to conduct after the crystal oscillator frequency is deviated, and the crystal oscillator can be calibrated in an individuation compensation mode to achieve timing with the absolute value of the year error smaller than 1 second; in addition, the structure is simple, the requirements for use conditions and cost are low, high-accuracy timing is accordingly easy and convenient to achieve and efficient, and the RTC can be convenient to use compared with a radio controlled clock and a GPS clock.

Description

A kind of method that reduces electric time-keeping error
Technical field
The present invention relates to electric time-keeping, particularly relate to a kind of method that reduces electric time-keeping error of built-in crystal oscillator temperature compensation RTC.
Background technology
At present, built-in crystal oscillator temperature compensation RTC on market, when dispatching from the factory, calibrates by the offset register on RTC built-in 32768Hz crystal oscillator, therefore, the timing product of the built-in crystal oscillator temperature compensation RTC of tradition, only have calibration RTC, the moon, week, day, time, minute, second register function, the function of not calibrating the built-in 32768Hz crystal oscillator of RTC; And it is inconvenient to use the timing product of not calibrating built-in crystal oscillator function, crystal oscillator frequency skew to recalibrate, more can not personalized compensation realize the timing that year Error Absolute Value is less than 1 second.
Summary of the invention
The technical problem to be solved in the present invention is, a kind of method that reduces electric time-keeping error is provided, built-in crystal oscillator temperature compensation RTC, digital display device, infrared receiving terminal, Bluetooth chip, power supply that the method utilizes single-chip microcomputer to connect respectively, described RTC is connected with power supply by voltage stabilizing chip, under software support, can solve the timing product of traditional built-in crystal oscillator temperature compensation RTC, only have calibration RTC, the moon, week, day, time, minute, second register function, the function of not calibrating the built-in 32768Hz crystal oscillator of RTC; And it is inconvenient to use the timing product of not calibrating built-in crystal oscillator function, crystal oscillator frequency skew to recalibrate, more can not personalized compensation realize the timing problem that year Error Absolute Value is less than 1 second.
for achieving the above object, technical scheme of the present invention is as follows:
Reduce a method for electric time-keeping error, the structure of described electric time-keeping comprises, power supply, voltage stabilizing chip, built-in crystal oscillator temperature compensation RTC, standby power supply, digital display device, single-chip microcomputer, infrared receiving terminal, Bluetooth chip; Described single-chip microcomputer is connected with RTC, digital display device, infrared receiving terminal, Bluetooth chip, power supply respectively, described power supply is also connected with digital display device, Bluetooth chip, voltage stabilizing chip respectively, described voltage stabilizing chip is also connected with RTC, infrared receiving terminal respectively, described power supply also charges to standby power supply by described voltage stabilizing chip and RTC, described method, comprises the following steps:
A, initialization;
B, operation master routine;
C, remote controller produce infrared, Bluetooth remote control signal, and this remote signal is sent into one-chip machine port initiation by infrared receiving terminal, Bluetooth chip reception and interrupted forwarding d step to, while not having remote controller, jumps to b step without infrared, Bluetooth remote control signal;
D, single-chip microcomputer are carried out and are interrupted processing infrared, Bluetooth remote control signal;
E, result are time check and correction code, jump to j step;
F, call the corresponding subroutine of proofreading and correct RTC offset register;
G,, blue Tooth remote controller calibration RTC built-in 32768Hz crystal oscillator infrared by operation;
H, interruption are returned;
J, call a year corresponding with time check and correction code, the moon, week, day, time, minute, second proofreads subroutine;
K, year by infrared, the blue Tooth remote controller of operation calibration RTC, the moon, week, day, time, minute, second register;
M, interruption are returned.
beneficial effect of the present invention:
A kind of method that reduces electric time-keeping error of the present invention, the RTC that the method utilizes single-chip microcomputer to connect respectively, digital display device, infrared receiving terminal, Bluetooth chip, power supply, described RTC is connected with power supply by voltage stabilizing chip, under software support, make the timing product of traditional built-in crystal oscillator temperature compensation RTC, not only there is the year of calibration RTC, month, week, day, time, point, the function of second register, calibrate in addition the function of the built-in 32768Hz crystal oscillator of RTC, it is convenient that crystal oscillator frequency skew is recalibrated, can realize the timing that year Error Absolute Value is less than 1 second by its crystal oscillator of personalized compensation calibration, and simple in structure, service condition and cost are low, thereby make high-precision timing become easy and efficient, can feel more convenient than radio wave clock and GPS clock.
Brief description of the drawings
Fig. 1 is structural representation of the present invention.
Fig. 2 is a kind of method workflow diagram that reduces electric time-keeping error of the present invention.
Embodiment
In order to further illustrate principle of the present invention and structure, existing by reference to the accompanying drawings to a preferred embodiment of the present invention will be described in detail, but described embodiment is only for furnishing an explanation and the use of explaining, can not be used for limiting scope of patent protection of the present invention.
A kind of method that reduces electric time-keeping error as shown in Figure 1 and Figure 2, the structure of described electric time-keeping comprises, the power supply 1 of direct current 5V to 5.5V, the voltage stabilizing chip 2 of 3V to 3.3V, the built-in crystal oscillator temperature compensation real-time timepiece chip RTC3 of FM31T37x series, farad capacitor standby power supply 4, the digital display device 5 of LED dot matrix, single-chip microcomputer 6, infrared receiving terminal 7, Bluetooth chip 8; Described single-chip microcomputer 6 is connected with built-in crystal oscillator temperature compensation RTC3, digital display device 5, infrared receiving terminal 7, Bluetooth chip 8, power supply 1 respectively, described power supply 1 is also connected with digital display device 5, Bluetooth chip 8, voltage stabilizing chip 2 respectively, described voltage stabilizing chip 2 is also connected with RTC3, infrared receiving terminal 7 respectively, described power supply 1 also charges to standby power supply 4 by described voltage stabilizing chip 2 and RTC3, described method, comprises the following steps:
A, initialization;
B, operation master routine;
C, remote controller produce infrared, Bluetooth remote control signal, and this remote signal is sent into one-chip machine port initiation by infrared receiving terminal, Bluetooth chip reception and interrupted forwarding d step to, while not having remote controller, jumps to b step without infrared, Bluetooth remote control signal;
D, single-chip microcomputer are carried out and are interrupted processing infrared, Bluetooth remote control signal;
E, result are time check and correction code, jump to j step;
F, call the corresponding subroutine of proofreading and correct RTC offset register;
G,, blue Tooth remote controller calibration RTC built-in 32768Hz crystal oscillator infrared by operation;
H, interruption are returned;
J, call a year corresponding with time check and correction code, the moon, week, day, time, minute, second proofreads subroutine;
K, year by infrared, the blue Tooth remote controller of operation calibration RTC, the moon, week, day, time, minute, second register;
M, interruption are returned.
Described embodiment advantage and beneficial effect are, the present invention reduces the method for electric time-keeping error, the built-in crystal oscillator temperature compensation RTC of FM31T37x series that the method utilizes single-chip microcomputer to connect respectively, the digital display device of LED dot matrix, infrared receiving terminal, Bluetooth chip, the power supply of direct current 5V to 5.5V, described RTC is connected with power supply by the voltage stabilizing chip of 3V to 3.3V, under software support, make the timing product of traditional built-in crystal oscillator temperature compensation RTC, not only there is the year of calibration RTC, month, week, day, time, point, the function of second register, calibrate in addition the function of the built-in 32768Hz crystal oscillator of RTC, it is convenient that crystal oscillator frequency skew is recalibrated, can realize the timing that year Error Absolute Value is less than 1 second by its crystal oscillator of personalized compensation calibration, and simple in structure, service condition and cost are low, thereby make high-precision timing become easy and efficient, can feel more convenient than radio wave clock and GPS clock.
The just embodiment of invention described above; various not illustrating limited essence of an invention Composition of contents; person of an ordinary skill in the technical field read after instructions can to before described embodiment make an amendment or be out of shape, all should be considered as belonging to protection scope of the present invention.

Claims (1)

1. reduce a method for electric time-keeping error, the structure of described electric time-keeping comprises, power supply, voltage stabilizing chip, built-in crystal oscillator temperature compensation RTC, standby power supply, digital display device, single-chip microcomputer, infrared receiving terminal, Bluetooth chip; Described single-chip microcomputer is connected with RTC, digital display device, infrared receiving terminal, Bluetooth chip, power supply respectively, described power supply is also connected with digital display device, Bluetooth chip, voltage stabilizing chip respectively, described voltage stabilizing chip is also connected with RTC, infrared receiving terminal respectively, described power supply also charges to standby power supply by described voltage stabilizing chip and RTC, described method is characterized in that, comprises the following steps:
A, initialization;
B, operation master routine;
C, remote controller produce infrared, Bluetooth remote control signal, and this remote signal is sent into one-chip machine port initiation by infrared receiving terminal, Bluetooth chip reception and interrupted forwarding d step to, while not having remote controller, jumps to b step without infrared, Bluetooth remote control signal;
D, single-chip microcomputer are carried out and are interrupted processing infrared, Bluetooth remote control signal;
E, result are time check and correction code, jump to j step;
F, call the corresponding subroutine of proofreading and correct RTC offset register;
G,, blue Tooth remote controller calibration RTC built-in 32768Hz crystal oscillator infrared by operation;
H, interruption are returned;
J, call a year corresponding with time check and correction code, the moon, week, day, time, minute, second proofreads subroutine;
K, year by infrared, the blue Tooth remote controller of operation calibration RTC, the moon, week, day, time, minute, second register;
M, interruption are returned.
CN201410266409.8A 2014-06-16 2014-06-16 Method for reducing electronic timing error Pending CN104007652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410266409.8A CN104007652A (en) 2014-06-16 2014-06-16 Method for reducing electronic timing error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410266409.8A CN104007652A (en) 2014-06-16 2014-06-16 Method for reducing electronic timing error

Publications (1)

Publication Number Publication Date
CN104007652A true CN104007652A (en) 2014-08-27

Family

ID=51368365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410266409.8A Pending CN104007652A (en) 2014-06-16 2014-06-16 Method for reducing electronic timing error

Country Status (1)

Country Link
CN (1) CN104007652A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635196A (en) * 2015-02-10 2015-05-20 武汉阿迪克电子股份有限公司 Real-time clock synchronous error-correcting method for charge-controlled intelligent electric energy meter
CN113391539A (en) * 2021-06-16 2021-09-14 北京康斯特仪表科技股份有限公司 RTC (real time clock) calibration method and industrial field calibration device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304517B1 (en) * 1999-06-18 2001-10-16 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for real time clock frequency error correction
CN201374688Y (en) * 2009-02-26 2009-12-30 南京理工海疆科技有限公司 Device for regulating frequency of crystal oscillator in remote controlling way
CN201725176U (en) * 2010-07-02 2011-01-26 曹现贵 Timing device and electronic timing device
CN201837849U (en) * 2010-10-23 2011-05-18 刘继志 Digital clock system with remote controller
CN202059371U (en) * 2011-05-13 2011-11-30 苏州银河龙芯科技有限公司 Device for realizing compensation of closed loop temperature of clock crystal oscillator
CN102944992A (en) * 2012-11-30 2013-02-27 中国西电电气股份有限公司 Real-time clock timing device and method thereof in online monitoring of high-voltage line arrester
CN202837848U (en) * 2012-10-18 2013-03-27 晋江市光华电子工贸有限公司 Pointer clock
CN202975621U (en) * 2012-10-18 2013-06-05 晋江市光华电子工贸有限公司 Radio clock
CN103499803A (en) * 2013-09-09 2014-01-08 扬州市万泰电器厂有限公司 Method for improving precision of built-in real-time clock of electric energy meter MCU

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6304517B1 (en) * 1999-06-18 2001-10-16 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for real time clock frequency error correction
CN201374688Y (en) * 2009-02-26 2009-12-30 南京理工海疆科技有限公司 Device for regulating frequency of crystal oscillator in remote controlling way
CN201725176U (en) * 2010-07-02 2011-01-26 曹现贵 Timing device and electronic timing device
CN201837849U (en) * 2010-10-23 2011-05-18 刘继志 Digital clock system with remote controller
CN202059371U (en) * 2011-05-13 2011-11-30 苏州银河龙芯科技有限公司 Device for realizing compensation of closed loop temperature of clock crystal oscillator
CN202837848U (en) * 2012-10-18 2013-03-27 晋江市光华电子工贸有限公司 Pointer clock
CN202975621U (en) * 2012-10-18 2013-06-05 晋江市光华电子工贸有限公司 Radio clock
CN102944992A (en) * 2012-11-30 2013-02-27 中国西电电气股份有限公司 Real-time clock timing device and method thereof in online monitoring of high-voltage line arrester
CN103499803A (en) * 2013-09-09 2014-01-08 扬州市万泰电器厂有限公司 Method for improving precision of built-in real-time clock of electric energy meter MCU

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635196A (en) * 2015-02-10 2015-05-20 武汉阿迪克电子股份有限公司 Real-time clock synchronous error-correcting method for charge-controlled intelligent electric energy meter
CN104635196B (en) * 2015-02-10 2017-07-07 武汉阿迪克电子股份有限公司 Take the real-time clock synchronization error correction method of control intelligent electric energy meter
CN113391539A (en) * 2021-06-16 2021-09-14 北京康斯特仪表科技股份有限公司 RTC (real time clock) calibration method and industrial field calibration device

Similar Documents

Publication Publication Date Title
WO2015172531A1 (en) Bluetooth and radio wave zero calibration and time service system and method
JP5760661B2 (en) Sensor device and sensor system
CN102830611B (en) Time source
US11874633B2 (en) Method for adjusting the operating frequency of an electronic watch
CN104007652A (en) Method for reducing electronic timing error
WO2013063960A1 (en) Timing method and system thereof
CN102291136A (en) Rubidium atomic frequency standard and frequency absolute value correction circuit thereof
CN104634499A (en) Intelligent pressure transmitter
JP2017015399A (en) Electronic watch, and program
JP6394008B2 (en) Electronic clock and date data correction method
CN203882109U (en) Electronic clock with annual error absolute value less than one second
JP2008128877A (en) Radio-controlled timepiece
CN203338014U (en) Automatic time correction electronic clock
TWI698726B (en) Method and device for testing the rate of a quartz watch
US20180046143A1 (en) Quick multifunctional smart watch for worship timing and orientation and control method
CN104020662A (en) Electronic clock with year error absolute value smaller than one second
US10996636B2 (en) Communication device, electronic timepiece, communication method, and recording medium
CN202735684U (en) Electronic watch capable of automatically adjusting time zones based on GPS
CN103415816B (en) Electronic clock
CN201569874U (en) Digital display electronic clock
CN202975621U (en) Radio clock
KR200415310Y1 (en) clock
CN100405863C (en) Method for regulating sleeping processor in mobile terminal machine process
CN104062894A (en) Electronic clock based on single-chip microcomputer
JP6825525B2 (en) Electronic clocks, control methods and programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140827