JP2003232876A - Time correction device - Google Patents
Time correction deviceInfo
- Publication number
- JP2003232876A JP2003232876A JP2002031065A JP2002031065A JP2003232876A JP 2003232876 A JP2003232876 A JP 2003232876A JP 2002031065 A JP2002031065 A JP 2002031065A JP 2002031065 A JP2002031065 A JP 2002031065A JP 2003232876 A JP2003232876 A JP 2003232876A
- Authority
- JP
- Japan
- Prior art keywords
- oscillator
- clock
- correction
- time
- count
- 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
Links
Landscapes
- Electric Clocks (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、時計機能を有する
システムにおける、時計の補正装置に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timepiece correction device in a system having a timepiece function.
【0002】[0002]
【従来の技術】オーディオ機器など、本来の機能に加え
て時計機能を備えたシステムがある。このシステムでは
マイコンによりシステム全体を制御し、このマイコンの
クロックのためにシステム制御用発振子を使用してい
る。また、時計表示用に、時計カウント用発振子を別途
設けている。このように2つの発振子を設ける理由は、
以下のとおりである。2. Description of the Related Art There is a system having a clock function in addition to the original function such as audio equipment. In this system, the entire system is controlled by a microcomputer, and a system control oscillator is used for the clock of this microcomputer. Further, a clock counting oscillator is separately provided for displaying the clock. The reason for providing two oscillators in this way is
It is as follows.
【0003】上記のようなシステムでは、電源をオフし
た状態でも時計機能は動作を継続する必要がある。しか
しながら、システム制御用発振子は消費電力が大きい。
このため、電源オフ時にも動作をしなければならない時
計用には、消費電力が小さく比較的安価な発振子を別途
設けている。このように、時計カウント用発振子に消費
電力が小さく比較的安価なものを使用すると、発振子ご
とに出力周波数のばらつきが生じ、正確な時計カウント
がされないこととなる。In the system as described above, the clock function must continue to operate even when the power is off. However, the system control oscillator consumes a large amount of power.
For this reason, an oscillator that consumes less power and is relatively inexpensive is additionally provided for a timepiece that must operate even when the power is off. As described above, when a clock counting oscillator that consumes less power and is relatively inexpensive is used, the output frequency varies from oscillator to oscillator, and accurate clock counting cannot be performed.
【0004】発振子ごとのばらつきを補正するために、
発振子の両端にトリマコンデンサを接続し、システム製
造時にトリマコンデンサを調整して発振子のカウント値
の調整を行う方法がある。しかしながら、この方法で
は、トリマコンデンサの追加が必要であり、部品コス
ト、製造コストの増加と実装スペースの制約という問題
がでてくる。また、出荷後の温度変化により、発振子の
出力周波数にばらつきが発生して時計の精度が悪化する
という問題があった。In order to correct the variation for each oscillator,
There is a method in which a trimmer capacitor is connected to both ends of the oscillator and the trimmer capacitor is adjusted at the time of manufacturing the system to adjust the count value of the oscillator. However, this method requires the addition of a trimmer capacitor, which raises the problems of increased component cost and manufacturing cost and restrictions on mounting space. Further, there is a problem in that the output frequency of the oscillator varies due to the temperature change after shipment, and the accuracy of the timepiece deteriorates.
【0005】ほかの発振子の出力周波数のばらつきを補
正する方法として、精度の高いシステム制御用発振子の
出力周波数を利用して、自動的に時計カウント用発振子
のばらつきを補正する方法が提案されている(特開平7
−27882号公報参照)。この方法は、製造時に、シ
ステム制御用発振子からのクロックパルスにより時計用
クロックの誤差を測定し、この誤差を記憶手段に格納す
る。製品出荷後は、記憶した誤差を利用して、時計カウ
ント用発振子のカウント値を補正する。この方法によれ
ば、トリマコンデンサが不要であり、また、誤差の補正
を自動的に行えるという利点がある。As another method for correcting the variation in the output frequency of the oscillator, there is proposed a method for automatically correcting the variation in the clock counting oscillator by using the highly accurate output frequency of the system control oscillator. (JP-A-7
-27882 publication). In this method, the error of the clock for clock is measured by the clock pulse from the oscillator for system control at the time of manufacture, and this error is stored in the storage means. After the product is shipped, the stored value is used to correct the count value of the clock counting oscillator. According to this method, there is an advantage that a trimmer capacitor is unnecessary and an error can be automatically corrected.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上記の
システム制御発振子の出力を利用して補正をする方法で
は、記憶手段に格納した誤差は製造時に測定した値に固
定されている。したがって、製品出荷後、システム使用
時に温度変化が生じると、やはり時計カウント用発振子
の出力周波数にばらつきが生じる。したがって、製品製
造後の温度変化があっても、正確に時計カウント用発振
子による時計カウントを補正する必要がある。本発明
は、時計機能を有するシステムにおいて、簡単で正確に
時計の補正ができる装置を提供することを目的とするも
のである。However, in the above-mentioned method of making a correction using the output of the system control oscillator, the error stored in the storage means is fixed to the value measured at the time of manufacture. Therefore, after the product is shipped, if the temperature changes when the system is used, the output frequency of the clock counting oscillator also varies. Therefore, even if there is a temperature change after the product is manufactured, it is necessary to accurately correct the clock count by the clock counting oscillator. An object of the present invention is to provide a device capable of correcting a timepiece simply and accurately in a system having a timepiece function.
【0007】[0007]
【課題を解決するための手段】本発明は上記目的を達成
するためになされたものである。本発明のシステム制御
用発振子及び時計カウント用発振子を備えるシステムに
おける時計補正装置は、所定時間間隔で、前記時計カウ
ント用発振子のカウント値と前記システム制御用発振子
のカウント値とを用いて、前記時計カウント用発振子の
出力周波数の誤差を測定し、測定した誤差に基づいて、
前記時計カウント用発振子のカウント値を補正する。The present invention has been made to achieve the above object. A timepiece correction device in a system including a system control oscillator and a clock count oscillator uses a count value of the clock count oscillator and a count value of the system control oscillator at predetermined time intervals. Then, the error in the output frequency of the clock counting oscillator is measured, and based on the measured error,
The count value of the clock counting oscillator is corrected.
【0008】本発明によれば、上記の時計の補正は、電
源オフ時であっても所定時間間隔で行われることとな
る。したがって、システムの環境温度が変化しても、そ
の温度変化に無関係に時計カウント用発振子を補正する
ことが可能となる。また、この補正には消費電力の大き
いシステム制御用発振子を動作させているが、この動作
は間歇的に行われるので、時計補正のための消費電力
は、全体としては低く抑えることができる。According to the present invention, the above-mentioned correction of the timepiece is performed at predetermined time intervals even when the power is off. Therefore, even if the environmental temperature of the system changes, the clock counting oscillator can be corrected regardless of the temperature change. Further, the system control oscillator, which consumes a large amount of power, is operated for this correction, but since this operation is performed intermittently, the power consumption for the timepiece correction can be kept low as a whole.
【0009】[0009]
【発明の実施の形態】本発明の実施形態について図を用
いて説明する。図1を用いて、時計補正装置のハード構
成を説明する。マイコン1は、オーディオ機器などのシ
ステム全体を制御する。なお、システム構成及びシステ
ムとマイコンとの接続関係、マイコン1内部における時
計表示機能をはじめとする各機能については、図示を省
略する。マイコン1は、システム制御用発振子2と、時
計カウント用発振子3を具備する。DETAILED DESCRIPTION OF THE INVENTION An embodiment of the present invention will be described with reference to the drawings. The hardware configuration of the timepiece correction device will be described with reference to FIG. The microcomputer 1 controls the entire system such as audio equipment. It should be noted that the system configuration, the connection relationship between the system and the microcomputer, and each function including the clock display function inside the microcomputer 1 are omitted in the drawing. The microcomputer 1 includes a system control oscillator 2 and a clock counting oscillator 3.
【0010】システム制御用発振子2は、出力パルス周
波数fμ(12.58MHz)は高精度であるが、消費
電力が大で高価である。時計カウント用発振子3は、低
消費電力、安価であるが、出力パルス周波数ft(3
2.768KHz)は、製品ごと及び温度変化によりば
らつきが生じる。Although the output pulse frequency fμ (12.58 MHz) of the system control oscillator 2 is highly accurate, it consumes a large amount of power and is expensive. The clock counting oscillator 3 has low power consumption and low cost, but the output pulse frequency ft (3
2.768 KHz) varies depending on the product and the temperature change.
【0011】システム制御用発振子2の出力パルスは、
マイコン1内でクロックとして使用され、また、マイコ
ン1の端子foutから外部へ出力される。本例では、端子
foutからの出力パルスを端子fin から取り込み、この信
号を用いて時計カウント用発振子3の出力周波数のばら
つきを補正処理する。The output pulse of the system control oscillator 2 is
It is used as a clock in the microcomputer 1 and is output to the outside from the terminal fout of the microcomputer 1. In this example, the terminal
The output pulse from fout is fetched from the terminal fin, and the variation in the output frequency of the clock counting oscillator 3 is corrected using this signal.
【0012】図2、図3を用いて、マイコン1における
時計補正処理を説明する。図2は、時計補正処理を示す
フローチャート、図3はその原理を示すものである。図
2の処理は、割り込みにより所定時間間隔で開始され
る。なお、本例では1時間に一度補正処理を行なわさせ
る場合の例を示すが、補正処理は必ずしも1時間ごとに
処理を行う必要はなく、必要に応じた時間間隔で処理を
行えば良い。最初に、マイコン1内の時計処理による現
在の時刻が59分台であるか否かが判定される(S
1)。ここで、NOであれば処理を終了する。したがっ
て、図2の処理は、1時間の内、59分台の1分間だけ
実行されることとなる。Clock correction processing in the microcomputer 1 will be described with reference to FIGS. 2 and 3. FIG. 2 is a flowchart showing the clock correction process, and FIG. 3 shows its principle. The process of FIG. 2 is started at predetermined time intervals by interruption. Note that this example shows an example in which the correction process is performed once an hour, but the correction process does not necessarily have to be performed every hour, and may be performed at time intervals as necessary. First, it is determined whether or not the current time by the clock processing in the microcomputer 1 is in the 59 minutes range (S
1). Here, if NO, the process ends. Therefore, the processing of FIG. 2 is executed only for one minute on the 59-minute level in one hour.
【0013】ステップS1でYESであれば、時計カウ
ント用発振子3の出力パルスを用いて1秒間のカウント
をする(S2、図3A参照)。時計カウント用発振子3
による1秒間の間、システム制御用発振子2にパルスを
出力させる(図3B参照)。このパルスを端子foutから
端子fin へ取り込み、カウントをする(S3、図3C参
照)。If YES in step S1, the output pulse of the clock counting oscillator 3 is used to count for one second (S2, see FIG. 3A). Clock counting oscillator 3
The system control oscillator 2 is caused to output a pulse for 1 second (see FIG. 3B). This pulse is fetched from the terminal fout to the terminal fin and counted (S3, see FIG. 3C).
【0014】ここでカウントした値を、システム制御用
発振子2による理論上の1秒間のカウント数(図3D参
照)とを比較し、差分Δtを取る(S4)。ステップS
2からステップ4の処理を3回繰り返す(S5)と、差
分Δtの平均値を算出し(S6)、この1秒分の差分を
1時間分に換算して(3600倍)補正値を得る(S
7)。The value counted here is compared with the theoretical number of counts per second by the system control oscillator 2 (see FIG. 3D), and the difference Δt is obtained (S4). Step S
When the processes from 2 to 4 are repeated 3 times (S5), the average value of the difference Δt is calculated (S6), and the difference for 1 second is converted into 1 hour (3600 times) to obtain the correction value ( S
7).
【0015】補正値が得られると、現在の時刻が59分
59秒であるか否かが判定される(S8)。ここでYE
Sになると、ステップS7で得た補正値を用いて時間補
正を行う(S9)。このように時計の桁上げ前に補正が
行われることにより、時計表示が混乱することを防止で
きる。つまり、桁上げ後に補正を行うと、補正値がマイ
ナスであった場合に、一度桁上げされた時計表示がマイ
ナス補正により桁下げが生じる場合がある。本例のよう
に桁上げ前に補正を行うことで、この問題は解消でき
る。When the correction value is obtained, it is determined whether or not the current time is 59 minutes 59 seconds (S8). YE here
When S is reached, time correction is performed using the correction value obtained in step S7 (S9). By performing the correction before the carry of the clock in this way, it is possible to prevent the clock display from being confused. In other words, if correction is performed after the carry, if the correction value is negative, the clock display once carried may be lowered due to the negative correction. This problem can be solved by performing the correction before the carry as in this example.
【0016】以上説明した時計補正装置によれば、電源
オン・オフに関係なく、システムが稼動をしていれば、
1時間ごとに時計補正処理が行われる。これにより、時
計カウント用発振子3の出力周波数が温度変化により変
動をしても、それに追従した補正がされることになる。
したがって、高精度の時計がえられることになる。According to the timepiece correction device described above, if the system is operating regardless of whether the power is on or off,
Clock correction processing is performed every hour. As a result, even if the output frequency of the clock counting oscillator 3 changes due to a temperature change, the output frequency is corrected accordingly.
Therefore, a highly accurate timepiece can be obtained.
【0017】システム制御用発振子2は、時計補正処理
のためには、1秒間のパルス出力を1時間に3回行うだ
けである。したがって、高消費電力のシステム制御用発
振子2を使用しても、時計補正処理に必要な電力は少な
く抑えることができるので、電源オフ時でも継続して時
計補正処理を行うことができる。また、本発明の時計補
正処理においては、システム制御用発振子2による理論
上の1秒を真の1秒として扱っている。この1秒は真の
1秒とは完全には一致しないが、実用上は問題がない。The system control oscillator 2 only outputs a pulse for one second three times an hour for the clock correction process. Therefore, even if the system control oscillator 2 with high power consumption is used, the power required for the clock correction process can be suppressed to a small amount, and the clock correction process can be continuously performed even when the power is off. Further, in the clock correction processing of the present invention, theoretical 1 second by the system control oscillator 2 is treated as true 1 second. This 1 second does not completely match the true 1 second, but there is no problem in practical use.
【0018】本例では時計補正処理を行う時間間隔を1
時間、両発振子2、3のカウント値をとる時間を1秒間
などとしているが、これらの時間は、時計カウント用発
振子2の精度に応じて任意に設定することができる。ま
た、システム制御用発振子2と時計カウント用発振子3
のカウント値を使用した差分Δtの算出方法は、上記例
に限定されるものではなく、そのほかの任意の算出方法
を使用することができる。In this example, the time interval for performing the clock correction processing is set to 1
Although the time and the time for taking the count value of both the oscillators 2 and 3 are set to 1 second or the like, these times can be set arbitrarily according to the accuracy of the clock counting oscillator 2. In addition, the system control oscillator 2 and the clock counting oscillator 3
The calculation method of the difference Δt using the count value of is not limited to the above example, and any other calculation method can be used.
【0019】[0019]
【発明の効果】本発明によれば、時計機能を有するシス
テムにおいて、簡単で正確に時計の補正ができる装置を
得ることができる。According to the present invention, in a system having a timepiece function, it is possible to obtain a device capable of easily and accurately correcting a timepiece.
【図1】本発明の実施形態における時計補正装置のハー
ド構成を示す図である。FIG. 1 is a diagram showing a hardware configuration of a timepiece correction device according to an embodiment of the present invention.
【図2】図1のマイコンにおける時計補正処理を示す図
である。FIG. 2 is a diagram showing a clock correction process in the microcomputer of FIG.
【図3】図2の処理の原理を説明する図である。FIG. 3 is a diagram illustrating the principle of the process of FIG.
1…マイコン 2…システム制御用発振子 3…時計カウント用発振子 1 ... Microcomputer 2. Oscillator for system control 3 ... Clock counting oscillator
Claims (3)
用発振子を備えるシステムにおける時計補正装置であっ
て、 所定時間間隔で、前記時計カウント用発振子のカウント
値と前記システム制御用発振子のカウント値とを用い
て、前記時計カウント用発振子の出力周波数の誤差を測
定する手段と、 測定した誤差に基づいて、前記時計カウント用発振子の
カウント値を補正する手段と、 を具備することを特徴とする時計補正装置。1. A clock correction device in a system including a system control oscillator and a clock counting oscillator, wherein a count value of the clock counting oscillator and a count of the system controlling oscillator are set at predetermined time intervals. Value, and means for measuring the error in the output frequency of the clock counting oscillator, and means for correcting the count value of the clock counting oscillator based on the measured error. Characteristic clock correction device.
振子のカウント値に基づいて前記システム制御用発振子
のカウント値を測定し、測定したカウント値とシステム
制御用発振子の理論上のカウント値とを比較することに
より前記誤差を測定し、 前記補正手段は、測定した誤差を、前記所定時間間隔の
間の補正値に換算し、この換算値により前記補正を行う
請求項1に記載の時計補正装置。2. The measuring means measures the count value of the system control oscillator based on the count value of the clock count oscillator, and the measured count value and the theoretical count of the system control oscillator. The said error is measured by comparing with a value, The said correction | amendment means converts the measured error into the correction value during the said predetermined time interval, The said correction value performs the said correction. Clock correction device.
表示時刻の桁上げ前のタイミングで行う請求項1又は2
に記載の時計補正装置。3. The correction of the count by the correction means,
Claim 1 or 2 performed at the timing before the carry of the display time
The clock correction device according to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002031065A JP2003232876A (en) | 2002-02-07 | 2002-02-07 | Time correction device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002031065A JP2003232876A (en) | 2002-02-07 | 2002-02-07 | Time correction device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003232876A true JP2003232876A (en) | 2003-08-22 |
JP2003232876A5 JP2003232876A5 (en) | 2005-06-09 |
Family
ID=27774578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002031065A Pending JP2003232876A (en) | 2002-02-07 | 2002-02-07 | Time correction device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2003232876A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007304007A (en) * | 2006-05-12 | 2007-11-22 | Yazaki Corp | Error correction method for timepiece |
JP2013232545A (en) * | 2012-04-27 | 2013-11-14 | Lapis Semiconductor Co Ltd | Semiconductor device, measurement instrument and correction method |
WO2014155706A1 (en) * | 2013-03-29 | 2014-10-02 | 三菱電機株式会社 | Signal processing device |
JP2015154191A (en) * | 2014-02-13 | 2015-08-24 | 株式会社デンソー | Electronic control device |
JP2015171151A (en) * | 2014-03-06 | 2015-09-28 | イーエム・ミクロエレクトロニク−マリン・エス アー | Time base including oscillator, frequency divider circuit and clocking pulse inhibition circuit |
-
2002
- 2002-02-07 JP JP2002031065A patent/JP2003232876A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007304007A (en) * | 2006-05-12 | 2007-11-22 | Yazaki Corp | Error correction method for timepiece |
JP2013232545A (en) * | 2012-04-27 | 2013-11-14 | Lapis Semiconductor Co Ltd | Semiconductor device, measurement instrument and correction method |
US10411715B2 (en) | 2012-04-27 | 2019-09-10 | Lapis Semiconductor Co., Ltd. | Semiconductor device, measurement device, and correction method |
US9838022B2 (en) | 2012-04-27 | 2017-12-05 | Lapis Semiconductor Co., Ltd. | Semiconductor device with oscillation frequency error correction |
US9584134B2 (en) | 2012-04-27 | 2017-02-28 | Lapis Semiconductor Co., Ltd. | Correcting temperature based oscillation frequency errors in semiconductor device |
US9197217B2 (en) | 2012-04-27 | 2015-11-24 | Lapis Semiconductor Co., Ltd. | Semiconductor device, measurement device, and correction method |
CN105102991A (en) * | 2013-03-29 | 2015-11-25 | 三菱电机株式会社 | Signal processing device |
GB2527007A (en) * | 2013-03-29 | 2015-12-09 | Mitsubishi Electric Corp | Signal processing device |
JP5972450B2 (en) * | 2013-03-29 | 2016-08-17 | 三菱電機株式会社 | Signal processing device |
GB2527007B (en) * | 2013-03-29 | 2018-01-10 | Mitsubishi Electric Corp | Signal processing device for time synchronization control |
WO2014155706A1 (en) * | 2013-03-29 | 2014-10-02 | 三菱電機株式会社 | Signal processing device |
JP2015154191A (en) * | 2014-02-13 | 2015-08-24 | 株式会社デンソー | Electronic control device |
JP2015171151A (en) * | 2014-03-06 | 2015-09-28 | イーエム・ミクロエレクトロニク−マリン・エス アー | Time base including oscillator, frequency divider circuit and clocking pulse inhibition circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256065B (en) | Real-time clock processing system and method | |
JP5952836B2 (en) | Temperature detection device and integrated circuit including temperature detection device | |
TWI411804B (en) | Method and apparatus for compensating a clock bias | |
US9510289B1 (en) | In system calibration of wake up timer | |
AU687177B2 (en) | Time correction of an electronic clock | |
US6084441A (en) | Apparatus for and method of processing data | |
CN106569544A (en) | Real time clock chip, and clock calibration method and apparatus | |
US20150035754A1 (en) | Sensor, clock frequency adjusting system and method thereof | |
WO2015093187A1 (en) | Microcomputer and method for correction of clock signal thereof | |
JP2007078405A (en) | Timing program of software timepiece | |
CN106292839A (en) | Real-time clock compensates circuit and calibration steps, device | |
JP2007104162A (en) | Manufacturing method of crystal oscillator, and crystal oscillator | |
US9838023B2 (en) | Slow-clock calibration method and unit, clock circuit, and mobile communication terminal | |
JP2003232876A (en) | Time correction device | |
JP2002217722A (en) | Reference frequency generator | |
JPH0856153A (en) | Oscillation circuit having frequency correction function | |
US7679466B1 (en) | Counter-based resonator frequency compensation | |
JPH0575445A (en) | Device and method for correcting fluctuation of oscillation frequency of cpu | |
JP2674534B2 (en) | Oscillator | |
JP2006303764A (en) | Temperature compensation method of temperature compensation oscillation circuit, temperature compensation oscillation circuit, piezoelectric device, and electronic apparatus | |
JPH0784666A (en) | Control device for intermittent operation of cpu | |
JP2002214323A (en) | Device for generating reference frequency | |
JP4036114B2 (en) | Clock generation circuit | |
JP2003270369A (en) | Time correction method and time correction device for real time clock | |
US11429134B2 (en) | Clock circuit portions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040820 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040820 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20051208 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051213 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060404 |