JP2000266876A - Clock device - Google Patents

Clock device

Info

Publication number
JP2000266876A
JP2000266876A JP7675799A JP7675799A JP2000266876A JP 2000266876 A JP2000266876 A JP 2000266876A JP 7675799 A JP7675799 A JP 7675799A JP 7675799 A JP7675799 A JP 7675799A JP 2000266876 A JP2000266876 A JP 2000266876A
Authority
JP
Japan
Prior art keywords
time
setting
value
register
error correction
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
JP7675799A
Other languages
Japanese (ja)
Inventor
Keiji Obara
啓二 小原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7675799A priority Critical patent/JP2000266876A/en
Publication of JP2000266876A publication Critical patent/JP2000266876A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To facilitate clock error correction by obtaining an optimum setting value of a clock error correcting part, automatically setting the optimum setting value and correcting the clock error. SOLUTION: When a desired setting time is set, a clock error correction value is calculated by a microcomputer 1. That is, the time difference between the time shown by the clock device and the setting desired time at the time the desired setting time is set is calculated, the time interval from the time stored in a set time register 10 to the desired setting time is calculated and the calculated time difference is divided by the calculated time. Then, the sign of the division result is reversed and displayed by ppm. The obtained time error correction value is set in a time error correction register 8 by the computer 1 and the content of the set time register 10 is preserved in a previous time setting execution time memory 11 for preparing for next time setting.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、時計誤差補正機能
を有する時計装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock device having a clock error correction function.

【0002】[0002]

【従来の技術】従来から、図6に示すように構成された
時計装置が知られている。この時計装置は、通常のモー
ドであるノーマルモードでは、日付や時刻の情報がマイ
クロコンピュータ501により時刻計数部505から連
続的に読み取られて表示装置502に表示される。
2. Description of the Related Art Conventionally, a timepiece device configured as shown in FIG. 6 is known. In the timepiece device, in a normal mode, which is a normal mode, date and time information is continuously read from the time counter 505 by the microcomputer 501 and displayed on the display device 502.

【0003】時刻設定を行う場合、操作者は、まず、ノ
ーマルモードでボタン503を押下して、モード変更を
マイクロコンピュータ501に指示する。すると、マイ
クロコンピュータ501によりモードがノーマルモード
から時刻設定モードに切り換えられ、時刻設定アイコン
がマイクロコンピュータ501により表示装置502に
表示され、時刻設定モードに入ったことを操作者に知ら
せる。さらに、表示装置502に、時刻入力を促すカー
ソルがマイクロコンピュータ501により表示され、操
作者によるキーボード504からの日付や時刻入力が可
能になる。
When setting the time, the operator first presses the button 503 in the normal mode to instruct the microcomputer 501 to change the mode. Then, the mode is switched from the normal mode to the time setting mode by the microcomputer 501, and a time setting icon is displayed on the display device 502 by the microcomputer 501 to inform the operator that the time setting mode has been entered. Further, the microcomputer 501 displays a cursor for prompting the user to input a time on the display device 502, so that the operator can input the date and time from the keyboard 504.

【0004】この時刻設定モードで、操作者によりキー
ボード504から情報が入力されると、入力された情報
がマイクロコンピュータ501により設定時刻レジスタ
510に転送される。
In this time setting mode, when information is input from the keyboard 504 by the operator, the input information is transferred to the set time register 510 by the microcomputer 501.

【0005】(キーボード入力された時刻が到来した時
点で)操作者によりボタン503が再度押下されると、
時刻設定実行がマイクロコンピュータ501に指示さ
れ、この指示を受けたマイクロコンピュータ501によ
りコマンドが時刻設定部509に発行され、このコマン
ドを受けた時刻設定部509により、設定時刻レジスタ
510の情報が時刻計数部505の計時用カウンタに設
定され、時刻設定が行なわれる。
[0005] When the button 503 is pressed again by the operator (at the time when the time of the keyboard input arrives),
The microcomputer 501 is instructed to execute time setting, a command is issued to the time setting unit 509 by the microcomputer 501 having received the instruction, and the information in the set time register 510 is counted by the time setting unit 509 receiving the command. The time is set in the time counter of the unit 505, and the time is set.

【0006】また、±30秒アジャスト機能を有する時
計装置も知られている。この時計装置による±30秒ア
ジャストモードへの切り換えは、ノーマルモードにおい
て、操作者によりボタン503が2回連続して押下され
ると、マイクロコンピュータ501により行われ、時刻
設定モードにおいて、操作者によりボタン503が1回
押下されると、マイクロコンピュータ501により行わ
れる。
A timepiece having a function of adjusting ± 30 seconds is also known. Switching to the ± 30 second adjustment mode by the timepiece device is performed by the microcomputer 501 when the button 503 is pressed twice consecutively by the operator in the normal mode, and is switched by the operator in the time setting mode. When the button 503 is pressed once, the operation is performed by the microcomputer 501.

【0007】±30秒アジャストモードで、(例えば、
時報とともに、すなわち、時刻の秒の値が0の瞬間に)
操作者によりさらにボタン503が押下されると、時刻
設定部509の±30秒アジャスト部513により、時
刻設定が行われ、時刻計数部505の秒の値が0に設定
される。
In the adjustment mode for ± 30 seconds (for example,
(Along with the time signal, that is, at the moment when the second value of the time is 0)
When the button 503 is further pressed by the operator, the time is set by the ± 30 second adjusting unit 513 of the time setting unit 509, and the second value of the time counting unit 505 is set to 0.

【0008】さらに、上述した機能の他に、時計誤差補
正部507の時計誤差補正レジスタ508に設定された
値に基づき、この時計装置の計時速度を速めたり遅らせ
たりできる誤差補正機能を有する時計装置も知られてい
る。
Further, in addition to the above-described functions, a clock device having an error correction function of increasing or decreasing the clocking speed of the clock device based on the value set in the clock error correction register 508 of the clock error correction unit 507. Is also known.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、時計誤
差補正レジスタ508に設定する値を、一般の使用者が
決定することは困難であり、この誤差補正機能を使いこ
なすことができないことが多かった。
However, it is difficult for a general user to determine the value to be set in the clock error correction register 508, and this error correction function cannot often be used.

【0010】このような誤差補正を、時刻計数部505
の水晶発振子506にトリマコンデンサを接続し、この
トリマコンデンサを調整することにより行うことが知ら
れている。しかし、このトリマコンデンサの調整では、
感に頼ってトリマを回転させることになるので、一般の
使用者がトリマを回転させて、誤差補正を行うのは困難
であった。
[0010] Such error correction is performed by the time counter 505.
It is known that a trimmer capacitor is connected to the crystal oscillator 506 of (1) and the trimming capacitor is adjusted to perform the adjustment. However, in adjusting this trimmer capacitor,
Since the trimmer is rotated depending on the feeling, it is difficult for a general user to rotate the trimmer to correct the error.

【0011】本発明の目的は、上記のような問題点を解
決し、容易に時計誤差補正を行うことができる時計装置
を提供することにある。
An object of the present invention is to provide a timepiece device which can solve the above-mentioned problems and can easily correct a clock error.

【0012】[0012]

【課題を解決するための手段】請求項1の発明は、時刻
計数手段と、本時計装置に設定された時刻を記憶するた
めの設定時刻記憶手段と、設定希望時刻を入力するため
の入力手段と、該入力手段により入力された設定希望時
刻を記憶する設定希望時刻記憶手段と、該設定希望時刻
記憶手段により記憶された設定希望時刻を本時計装置に
設定する時刻設定手段と、時計誤差補正値をストアする
ためのレジスタと、該レジスタにストアされている時計
誤差補正値に基づき所定秒数経過ごとに前記時刻計数手
段の計数値を補正する時計誤差補正手段とを有する時計
装置において、該時刻設定手段により設定希望時刻が設
定された時点で、該設定希望時刻と、前記設定時刻記憶
手段により記憶された時刻と、該時刻設定手段による設
定希望時刻設定時点の本時計装置が示す時刻とから、前
回の時刻設定時に本時計装置に設定した時刻から今回の
時刻設定時に本時計装置に設定する時刻までの間の本時
計装置の進み遅れの割合を算出し得られた割合の値の符
号を反転させる算出手段と、該算出手段により算出され
た割合の単位を前記レジスタにストアされている値の単
位に換算して得られた値と前記レジスタにストアされて
いる値とを加算する加算手段と、該加算手段により得ら
れた時計誤差補正値を前記レジスタにストアする時計誤
差補正値ストア手段と、前記設定希望時刻が設定された
時点に該設定希望時刻を前記設定時刻記憶手段にストア
する設定希望時刻ストア手段とを備えたことを特徴とす
る。
According to a first aspect of the present invention, there is provided a time counting means, a set time storing means for storing a time set in the clock device, and an input means for inputting a desired setting time. Setting desired time storage means for storing the desired setting time input by the input means; time setting means for setting the desired setting time stored by the desired setting time storage means to the clock device; A clock device comprising: a register for storing a value; and a clock error correction unit that corrects a count value of the time counter unit every predetermined number of seconds based on a clock error correction value stored in the register. When the desired setting time is set by the time setting means, the desired setting time, the time stored by the setting time storage means, and the desired setting time set by the time setting means are set. From the time indicated by the clock device, the ratio of the advance / delay of the clock device between the time set in the clock device at the time of the previous time setting and the time set in the clock device at the time of the current time setting is calculated. Calculating means for inverting the sign of the obtained ratio value, and a value obtained by converting a unit of the ratio calculated by the calculating means into a unit of a value stored in the register and a value stored in the register. A clock error correction value storage means for storing the clock error correction value obtained by the addition means in the register; and a setting desired time when the desired setting time is set. Setting desired time storing means for storing the desired time in the set time storing means.

【0013】請求項1において、算出手段は、時刻設定
手段により設定希望時刻が設定される時点の本時計装置
の示す時刻と該設定希望時刻との時間差を算出するとと
もに、設定時刻記憶手段に記憶された時刻から設定希望
時刻までの時間を算出し、算出された時間差を算出され
た時間で除算し、除算結果の符号を反転させることがで
きる。
According to the first aspect, the calculating means calculates a time difference between the time indicated by the clock device at the time when the desired setting time is set by the time setting means and the desired setting time, and stores the time difference in the set time storing means. The time from the calculated time to the desired setting time is calculated, the calculated time difference is divided by the calculated time, and the sign of the division result can be inverted.

【0014】請求項1において、時刻計数手段は、所定
の周波数の発振手段と、発振手段からのクロックをカウ
ントするカウント手段と、カウント手段の桁上げに応答
して秒へのカウントアップを行う秒カウント手段と、秒
カウント手段の桁上げに応答して分へのカウントアップ
を行う分カウント手段と、分カウント手段の桁上げに応
答して時へのカウントアップを行う時カウント手段とを
有することができる。
In the first aspect, the time counting means includes an oscillating means having a predetermined frequency, a counting means for counting a clock from the oscillating means, and a second for counting up to seconds in response to a carry of the counting means. Counting means, minute counting means for counting up to minutes in response to carry of second counting means, and hour counting means for counting up to hours in response to carry of minute counting means. Can be.

【0015】請求項4の発明は、時刻計数手段と、時刻
設定時に本時計装置に設定された時刻を記憶する時刻記
憶手段と、時計誤差補正値をストアするためのレジスタ
と、該レジスタにストアされている時計誤差補正値に基
づき所定秒数経過ごとに前記時刻計数手段の計数値を補
正する時計誤差補正手段と、アジャスト指示時に、秒桁
が予め定めた範囲内である場合に、該秒桁をリセット
し、前記予め定めた範囲外である場合に、該秒桁をリセ
ットするとともに、分桁を1だけ増加させるアジャスト
手段とを有する時計装置において、前記アジャスト手段
によりアジャストされた時点で、該アジャストされた時
刻と、前記設定時刻記憶手段により記憶された時刻と、
該アジャスト手段によりアジャストされる時点の本時計
装置が示す時刻とから、前回の時刻設定時に本時計装置
に設定した時刻から当該アジャスト時に本時計装置に設
定する時刻までの間の本時計装置の進み遅れの割合を算
出し得られた割合の値の符号を反転させる算出手段と、
該算出手段により算出された割合の単位を前記レジスタ
にストアされている値の単位に換算して得られた値と前
記レジスタにストアされている値とを加算する加算手段
と、該加算手段により得られた時計誤差補正値を前記レ
ジスタにストアする時計誤差補正値ストア手段と、前記
アジャスト手段によるアジャスト時点にアジャストされ
た時刻を前記設定時刻記憶手段にストアするアジャスト
時刻ストア手段とを備えたことを特徴とする。
According to a fourth aspect of the present invention, there is provided a time counting means, a time storage means for storing a time set in the timepiece device at the time of setting the time, a register for storing a clock error correction value, and a store in the register. A clock error correction unit that corrects the count value of the time counter unit every predetermined number of seconds based on the clock error correction value that has been set; and, when an adjustment instruction is given, when the second digit is within a predetermined range, the second Resetting the digit, when the value is out of the predetermined range, resetting the second digit, and adjusting means for increasing the minute digit by 1, at the time when the adjustment is performed by the adjusting means, The adjusted time, the time stored by the set time storage means,
The advance of the timepiece device from the time indicated by the timepiece device at the time of adjustment by the adjustment means to the time set in the timepiece device at the time of the previous time setting to the time set in the timepiece device at the time of the adjustment Calculating means for inverting the sign of the ratio value obtained by calculating the delay ratio;
Adding means for adding the value obtained by converting the unit of the ratio calculated by the calculating means into the unit of the value stored in the register and the value stored in the register; and Clock error correction value storing means for storing the obtained clock error correction value in the register; andadjustment time storing means for storing the time adjusted at the time of adjustment by the adjusting means in the set time storage means. It is characterized by.

【0016】請求項4において、算出手段は、アジャス
ト手段によりアジャストされる時点に本時計装置の示す
時刻と該アジャスト手段によりアジャストされて本時計
装置に設定される時刻との時間差を算出するとともに、
設定時刻記憶手段に記憶された時刻からアジャストされ
て本時計装置に設定される時刻までの時間を算出し、算
出された時間差を算出された時間で除算し、除算結果の
符号を反転させることを特徴とする。
According to a fourth aspect of the present invention, the calculating means calculates a time difference between a time indicated by the timepiece device at the time of adjustment by the adjusting means and a time adjusted by the adjusting means and set on the timepiece device.
Calculating the time from the time stored in the set time storage means to the time set in the timepiece device after being adjusted, dividing the calculated time difference by the calculated time, and inverting the sign of the division result. Features.

【0017】請求項6の発明は、時刻計数手段と、ネッ
トワークタイムサーバから読み込んだ現在時刻データに
基づき本時計装置に時刻を設定する時刻設定手段と、時
刻設定時に本時計装置に設定された時刻を記憶する時刻
記憶手段と、時計誤差補正値をストアするためのレジス
タと、該レジスタにストアされている時計誤差補正値に
基づき所定秒数経過ごとに前記時刻計数手段の計数値を
補正する時計誤差補正手段とを有する時計装置におい
て、前記時刻設定手段により本時計装置に時刻を設定す
る時点で、該設定される時刻と、前記設定時刻記憶手段
により記憶された時刻と、該時刻設定時点に本時計装置
が示す時刻とから、前回の時刻設定時に本時計装置に設
定した時刻から今回の時刻設定時に本時計装置に設定す
る時刻までの間の本時計装置の進み遅れの割合を算出し
得られた割合の値の符号を反転させる算出手段と、該算
出手段により算出された割合の単位を前記レジスタにス
トアされている値の単位に換算して得られた値と前記レ
ジスタにストアされている値とを加算する加算手段と、
該加算手段により得られた時計誤差補正値を前記レジス
タにストアする時計誤差補正値ストア手段と、前記時刻
設定手段により時刻が設定された時点に設定時刻を前記
設定時刻記憶手段にストアする設定時刻ストア手段とを
備えたことを特徴とする。
According to a sixth aspect of the present invention, there is provided a time counting means, a time setting means for setting a time in the clock device based on current time data read from a network time server, and a time set in the clock device at the time of time setting. , A register for storing a clock error correction value, and a clock for correcting the count value of the time counting unit every predetermined number of seconds based on the clock error correction value stored in the register. In the clock device having the error correction unit, at the time when the time is set in the clock device by the time setting unit, the set time, the time stored by the set time storage unit, and the time setting time The time between the time indicated by the timepiece and the time set on the timepiece when the previous time was set to the time set on the timepiece when the current time was set Calculating means for inverting the sign of the ratio value obtained by calculating the advance / delay ratio of the measuring device; and converting the unit of the ratio calculated by the calculating means into the unit of the value stored in the register. Adding means for adding the obtained value and the value stored in the register;
A clock error correction value storing means for storing the clock error correction value obtained by the adding means in the register; and a set time for storing the set time in the set time storage means when the time is set by the time setting means. Storage means.

【0018】請求項6において、算出手段は、時刻設定
手段により時刻が設定される時点の本時計装置の示す時
刻と時刻設定手段による設定時刻との時間差を算出する
とともに、設定時刻記憶手段に記憶された時刻から時刻
設定手段による設定時刻までの時間を算出し、算出され
た時間差を算出された時間で除算し、除算結果の符号を
反転させることができる。
In the present invention, the calculating means calculates a time difference between the time indicated by the clock device at the time when the time is set by the time setting means and the time set by the time setting means, and stores the time difference in the set time storing means. The time from the calculated time to the time set by the time setting means is calculated, the calculated time difference is divided by the calculated time, and the sign of the division result can be inverted.

【0019】請求項8の発明は、時刻計数手段と、時刻
設定時に本時計装置に設定された時刻を記憶する時刻記
憶手段と、時計誤差補正値をストアするためのレジスタ
と、該レジスタにストアされている時計誤差補正値に基
づき所定秒数経過ごとに前記時刻計数手段の計数値を補
正する時計誤差補正手段と、ネットワークタイムサーバ
から現在時刻データを読み込む読込手段と、該読込手段
により読み込まれた現在時刻データに基づく時刻の秒が
0秒の時点で、秒桁が予め定めた範囲内である場合に、
該秒桁をリセットし、前記予め定めた範囲外である場合
に、該秒桁をリセットするとともに、分桁を1だけ増加
させるアジャスト手段とを有する時計装置において、前
記アジャスト手段によりアジャストされた時点で、該ア
ジャストされた時刻と、前記設定時刻記憶手段により記
憶された時刻と、該アジャスト手段によりアジャストさ
れる時点の本時計装置が示す時刻とから、前回の時刻設
定時に本時計装置に設定した時刻から当該アジャスト時
に本時計装置に設定する時刻までの間の本時計装置の進
み遅れの割合を算出し得られた割合の値の符号を反転さ
せる算出手段と、該算出手段により算出された割合の単
位を前記レジスタにストアされている値の単位に換算し
て得られた値と前記レジスタにストアされている値とを
加算する加算手段と、該加算手段により得られた時計誤
差補正値を前記レジスタにストアする時計誤差補正値ス
トア手段と、前記アジャスト手段によるアジャスト時点
にアジャストされた時刻を前記設定時刻記憶手段にスト
アするアジャスト時刻ストア手段とを備えたことを特徴
とする。
The invention according to claim 8 is a time counting means, a time storage means for storing the time set in the clock device at the time of setting the time, a register for storing a clock error correction value, and a register for storing the clock error correction value. A clock error correction unit for correcting the count value of the time counting unit every predetermined number of seconds based on the clock error correction value, a reading unit for reading current time data from a network time server, and a reading unit for reading the current time data. When the second of the time based on the current time data is 0 second and the second digit is within a predetermined range,
Resetting the second digit and, if the second digit is out of the predetermined range, resetting the second digit and adjusting the minute digit by 1. From the time adjusted, the time stored by the set time storage means, and the time indicated by the timepiece at the time when the adjustment is performed by the adjustment means, the time is set in the timepiece at the previous time setting. Calculating means for calculating the rate of advance / delay of the timepiece device from the time to the time set in the timepiece device at the time of the adjustment, and inverting the sign of the value of the ratio obtained, and the ratio calculated by the calculating means Adding means for adding a value obtained by converting the unit of the above to the unit of the value stored in the register and the value stored in the register A clock error correction value storing means for storing the clock error correction value obtained by the adding means in the register; and an adjusting time storing means for storing the time adjusted by the adjusting means at the time of adjustment in the set time storing means. And characterized in that:

【0020】請求項7において、算出手段は、アジャス
ト手段によりアジャストされる時点に本時計装置の示す
時刻と該アジャスト手段によりアジャストされて本時計
装置に設定される時刻との時間差を算出するとともに、
設定時刻記憶手段に記憶された時刻からアジャストされ
て本時計装置に設定される時刻までの時間を算出し、算
出された時間差を算出された時間で除算し、除算結果の
符号を反転させることができる。
According to a seventh aspect of the present invention, the calculating means calculates a time difference between the time indicated by the timepiece device at the time when the adjusting means adjusts the time and the time adjusted by the adjusting means and set on the timepiece device.
It is possible to calculate the time from the time stored in the set time storage means to the time adjusted and set in the timepiece device, divide the calculated time difference by the calculated time, and invert the sign of the division result. it can.

【0021】請求項1において、レジスタに値がストア
されてからの経過時間を計時する計時手段と、計時手段
により計時された経過時間が予め定めた時間を超えたと
き、レジスタにストアされている値を確定値として記憶
する確定値記憶手段と、時刻設定手段により時刻設定が
行われたとき、計時手段により計時された経過時間が予
め定めた時間を超えていない場合は、算出手段による進
み遅れの割合の算出を禁止するとともに、確定値記憶手
段の値をレジスタに設定する制御手段とを備えることが
できる。
According to a first aspect of the present invention, a timer means for counting an elapsed time since the value is stored in the register, and when the elapsed time counted by the timer means exceeds a predetermined time, the value is stored in the register. When the time is set by the time setting means, and the elapsed time measured by the time measuring means does not exceed a predetermined time, the advance / delay by the calculating means is performed. And control means for prohibiting the calculation of the ratio and setting the value of the fixed value storage means in a register.

【0022】請求項4において、レジスタに値がストア
されてからの経過時間を計時する計時手段と、計時手段
により計時された経過時間が予め定めた時間を超えたと
き、レジスタにストアされている値を確定値として記憶
する確定値記憶手段と、アジャスト手段によるアジャス
トが行われたとき、計時手段により計時された経過時間
が予め定めた時間を超えていない場合は、算出手段によ
る進み遅れの割合の算出を禁止するとともに、確定値記
憶手段の値をレジスタに設定する制御手段とを備えるこ
とができる。
According to a fourth aspect of the present invention, a timer means for counting an elapsed time after the value is stored in the register, and when the elapsed time counted by the timer means exceeds a predetermined time, the value is stored in the register. A determination value storage unit for storing a value as a determination value; and a ratio of advance / delay by the calculation unit when the elapsed time measured by the timer unit does not exceed a predetermined time when adjustment is performed by the adjustment unit. And a control means for prohibiting the calculation of, and setting the value of the determined value storage means in a register.

【0023】請求項1または4において、加算手段によ
る加算結果と予め定めた最大値とを比較する比較手段
と、比較手段により比較した結果、加算結果が最大値未
満である場合には、加算結果をレジスタにストアし、加
算結果が最大値以上である場合には、最大値をレジスタ
に設定する設定手段とを備えることができる。
In claim 1 or 4, the comparison means for comparing the addition result by the addition means with a predetermined maximum value, and the result of comparison by the comparison means, if the addition result is less than the maximum value, And setting means for setting the maximum value in the register when the addition result is equal to or more than the maximum value.

【0024】[0024]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0025】<第1の実施の形態>図1は本発明の第1
の実施の形態を示す。図1において、1はマイクロコン
ピュータであって、ROM101とRAM102を有
し、ROM101には制御プログラムがストアしてあ
り、RAM102は作業領域として用いられている。
<First Embodiment> FIG. 1 shows a first embodiment of the present invention.
An embodiment will be described. In FIG. 1, reference numeral 1 denotes a microcomputer having a ROM 101 and a RAM 102, a control program stored in the ROM 101, and the RAM 102 used as a work area.

【0026】5は時刻計数部であって、水晶発振子6を
用いた水晶発振器と、時計用カウンタとを有する。時計
用カウンタはパルスカウンタと時刻カウンタとカレンダ
カウンタとを有する。時刻カウンタとしては、秒カウン
タと、分カウンタと、時カウンタとがある。カレンダカ
ウンタとしては、曜日カウンタと、日カウンタと、月カ
ウンタと、年カウンタとがある。
Reference numeral 5 denotes a time counting unit, which has a crystal oscillator using a crystal oscillator 6 and a clock counter. The clock counter has a pulse counter, a time counter, and a calendar counter. The time counter includes a second counter, a minute counter, and an hour counter. The calendar counter includes a day of the week counter, a day counter, a month counter, and a year counter.

【0027】パルスカウンタは、水晶発振器の発振周波
数が例えば32768Hzである場合は、水晶発振器か
らの32768個のパルスをカウントしたとき、桁上げ
信号を出力し、秒カウンタはパルスカウンタからの桁上
げ信号を60回カウントしたとき桁上げ信号を出力し、
分カウンタは秒カウンタからの桁上げ信号を60回カウ
ントしたとき桁上げ信号を出力し、というように、次々
に、下位のカウンタからの桁上げ信号が上位のカウンタ
によりカウントされ、時刻データが生成される。時刻計
数部5は時計誤差補正レジスタ8の値に基づき、計時速
度を僅かに速めたり遅らせたりすることができる。
When the oscillation frequency of the crystal oscillator is 32768 Hz, for example, the pulse counter outputs a carry signal when 32768 pulses from the crystal oscillator are counted, and the second counter outputs a carry signal from the pulse counter. Outputs a carry signal when is counted 60 times,
The minute counter outputs a carry signal when the carry signal from the second counter is counted 60 times, so that the carry signal from the lower counter is sequentially counted by the upper counter, and time data is generated. Is done. The time counting unit 5 can slightly increase or decrease the clocking speed based on the value of the clock error correction register 8.

【0028】7は時計誤差補正部であって、時計誤差補
正レジスタ8(書込み、読み出し可能)にストアされて
いる時計誤差補正値に基づき、30秒ごとに、時刻計数
部5のカウント値を補正するものである。時計誤差補正
部7は、30秒ごとに、パルスカウンタの桁上がり値
(通常、32768)から、時計誤差補正レジスタ8の
値(正負いずれかの値)を減算して得られた値を、新た
な桁上がり値として置き換える。
Reference numeral 7 denotes a clock error correction unit which corrects the count value of the time counter 5 every 30 seconds based on a clock error correction value stored in a clock error correction register 8 (writable and readable). Is what you do. The clock error correction unit 7 updates the value obtained by subtracting the value (either positive or negative) of the clock error correction register 8 from the carry value (normally 32768) of the pulse counter every 30 seconds. As a carry value.

【0029】9は時刻設定部であって、時刻を設定する
ための設定時刻レジスタ10を有し、この設定時刻レジ
スタ10には、キーボード4から入力された設定希望時
刻がストアされている。時刻設定部9はボタン3が押下
されたとき、このボタン3の押下に応答してマイクロコ
ンピュータ1から発行されたコマンドに従って、設定時
刻レジスタ10の設定希望時刻を時刻計数部5の時計用
カウンタに上書きする。11は前回時刻設定実行時刻記
憶部であり、時刻設定部9により時刻設定された時刻、
すなわち、時刻設定部9の設定時刻レジスタ10の値を
記憶するものである。
Reference numeral 9 denotes a time setting unit having a set time register 10 for setting a time. The set time register 10 stores a desired set time input from the keyboard 4. When the button 3 is pressed, the time setting unit 9 stores the desired setting time of the setting time register 10 in the clock counter of the time counting unit 5 in accordance with a command issued from the microcomputer 1 in response to the pressing of the button 3. Overwrite. Reference numeral 11 denotes a previous time setting execution time storage unit, and the time set by the time setting unit 9;
That is, the value of the set time register 10 of the time setting unit 9 is stored.

【0030】2は表示装置であり、時刻や、本システム
の動作モード等を表示するものである。3はボタンであ
り、動作モードを設定したり、各種のコマンド実行開始
の指示を与えたり、時刻データを入力するためのもので
ある。4はキーボードであり、設定希望時刻や日付等の
情報を入力するためのものである。本実施の形態では、
操作性を良くするため、ボタン3およびキーボード4を
設けてある。
Reference numeral 2 denotes a display device for displaying a time, an operation mode of the present system, and the like. Reference numeral 3 denotes a button for setting an operation mode, giving an instruction to start execution of various commands, and inputting time data. Reference numeral 4 denotes a keyboard for inputting information such as desired setting time and date. In the present embodiment,
To improve operability, a button 3 and a keyboard 4 are provided.

【0031】時刻が、例えば、1998年4月25日、
土曜日、19時28分30秒である場合、使用者はキー
ボード4を操作して、時刻設定部9の設定時刻レジスタ
10に、1998,04,25,6(土曜日を符号化し
た値),19,28,30という値を書き込む。曜日と
数値の対応は、日曜日=0、月曜日=1、火曜日=2、
水曜日=3、木曜日=4、金曜日=5、土曜日=6であ
る。その後、使用者がボタン3やキーボード4を操作し
て所定の指示を行うと、この指示に同期して時刻設定コ
マンドを送り、設定時刻レジスタ10の値(1998,
04,25,6,19,28,30)が年カウンタ、月
カウンタ、日カウンタ、曜日カウンタ、時カウンタ、分
カウンタ、秒カウンタに対応して設定され、時刻が設定
される。
If the time is, for example, April 25, 1998,
When the time is 19:28:30 on Saturday, the user operates the keyboard 4 to store 1998, 04, 25, 6 (a value obtained by encoding Saturday), 19 in the set time register 10 of the time setting unit 9. , 28, 30 are written. The correspondence between the day of the week and numerical values is Sunday = 0, Monday = 1, Tuesday = 2,
Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6. Thereafter, when the user operates the button 3 or the keyboard 4 to perform a predetermined instruction, a time setting command is transmitted in synchronization with the instruction, and the value of the set time register 10 (1998,
04, 25, 6, 19, 28, 30) are set corresponding to the year counter, the month counter, the day counter, the day counter, the hour counter, the minute counter, and the second counter, and the time is set.

【0032】本時計装置は、通常は、ノーマルモード状
態である。ノーマルモード時には、従来例と同様に、マ
イクロコンピュータ1は連続的に時刻計数部5から日付
や時刻の情報を読み取り、読み取った情報を表示装置2
に表示するようになっている。このノーマルモード状態
において、ボタン3を押して、マイクロコンピュータ1
にモード変更の指示をすることにより、時刻設定モード
に推移することができる。
The timepiece apparatus is normally in a normal mode state. In the normal mode, the microcomputer 1 continuously reads the date and time information from the time counter 5 and displays the read information in the display device 2 as in the conventional example.
To be displayed. In this normal mode state, the button 3 is pressed and the microcomputer 1
By instructing to change the mode, the mode can be shifted to the time setting mode.

【0033】図2は図1のROM101にストアされる
制御プログラムの一例を示すフローチャートである。デ
フォルトのノーマルモードでは、マイクロコンピュータ
1により時刻計数部5の時計用カウンタから日付と時刻
の情報が連続的に読み取られ、読み取られた日付と時刻
の情報が表示装置2に表示される。
FIG. 2 is a flowchart showing an example of the control program stored in the ROM 101 of FIG. In the default normal mode, date and time information is continuously read from the clock counter of the time counter 5 by the microcomputer 1, and the read date and time information is displayed on the display device 2.

【0034】このノーマルモードにおいて、操作者によ
りボタン3が押下されて、モード変更がマイクロコンピ
ュータ1に指示されると、マイクロコンピュータ1によ
りモードがノーマルモードから時刻設定モードに切り換
えられる。そして、時刻設定モードに入ったことを操作
者に知らせるため、表示装置2に時刻設定アイコンが表
示されるとともに、時刻入力を促すようなカーソルが表
示され、キーボード4からの日付や時刻入力が可能にな
る(S201)。
In this normal mode, when the operator presses the button 3 to instruct the microcomputer 1 to change the mode, the microcomputer 1 switches the mode from the normal mode to the time setting mode. Then, in order to inform the operator that the time setting mode has been entered, a time setting icon is displayed on the display device 2 and a cursor prompting the time input is displayed, and the date and time can be input from the keyboard 4. (S201).

【0035】一度、操作者によりキーボード4が操作さ
れると(S202)、操作者によりボタン3が再度押下
されるまで、キーボード4からの設定時刻等の入力が可
能であり、入力の変更も可能である(S203)。この
2度目のボタン3の入力が、マイクロコンピュータ1に
時刻設定コマンドを発行させる。
Once the keyboard 4 is operated by the operator (S202), the set time and the like can be input from the keyboard 4 and the input can be changed until the button 3 is pressed again by the operator. (S203). The input of the second button 3 causes the microcomputer 1 to issue a time setting command.

【0036】そして、(例えば、時報に合わせて)操作
者によりボタン3が押下され、時刻設定動作開始がマイ
クロコンピュータ1に指示されると(S203)、時刻
計数部5の時計用カウンタの時刻がマイクロコンピュー
タ1により読み出され、内部のメモリに一時的にセーブ
される(S204)。
When the button 3 is pressed by the operator (for example, in accordance with a time signal) and the microcomputer 1 is instructed to start the time setting operation (S203), the time of the clock counter of the time counting unit 5 is set. The data is read by the microcomputer 1 and temporarily saved in an internal memory (S204).

【0037】その後、S202で入力された設定時刻の
情報がマイクロコンピュータ1により設定時刻レジスタ
10に転送される(S205)。ついで、マイクロコン
ピュータ1により時刻設定コマンドが時刻設定部9に発
行される。
Thereafter, the microcomputer 1 transfers the set time information input in S202 to the set time register 10 (S205). Next, the microcomputer 1 issues a time setting command to the time setting unit 9.

【0038】この時刻設定コマンドを受けた時刻設定部
9は、設定時刻レジスタ10に設定されている時刻を時
刻計数部5の時計用カウンタに上書きし、時刻設定を実
行する(S206)。従って、時刻計数部5の時計用カ
ウンタの時刻情報は消去されることになる。(そのた
め、S204でセーブしておく。)これで、時刻設定処
理を完了する。その後、時計誤差補正値を計算し設定す
る処理に移る。そして、時計誤差の補正値τ[ppm ]が
マイクロコンピュータ1により次の式、すなわち、
Upon receiving the time setting command, the time setting unit 9 overwrites the time set in the set time register 10 on the clock counter of the time counting unit 5 and executes the time setting (S206). Therefore, the time information of the clock counter of the time counting unit 5 is deleted. (Therefore, it is saved in S204.) Thus, the time setting process is completed. Thereafter, the process proceeds to a process of calculating and setting a clock error correction value. Then, the correction value τ [ppm] of the clock error is calculated by the microcomputer 1 using the following equation:

【0039】[0039]

【数1】 τ = −((Tc−Tn)/(Tnx−Tpx))×106 … (1) から計算される(S207)。Τ = − ((Tc−Tn) / (Tnx−Tpx)) × 10 6 (1) (S207).

【0040】ただし、Tcは希望時刻が設定される直前
の本時計装置が示す時刻であって、S204でマイクロ
コンピュータ1によりメモリ等に一時的にセーブされた
時刻である。
Here, Tc is the time indicated by the clock device immediately before the desired time is set, and is the time temporarily saved in the memory or the like by the microcomputer 1 in S204.

【0041】Tnは設定希望時刻であって、設定時刻レ
ジスタ10に設定された時刻である。
Tn is the desired setting time, which is the time set in the setting time register 10.

【0042】Tnxは今回時刻設定実行時刻であって、
本質的に、設定希望時刻Tnと同一である。
Tnx is the current time setting execution time, and
It is essentially the same as the desired setting time Tn.

【0043】Tpxは前回時刻設定実行時刻であって、
前回時刻設定実行時刻記憶部11にストアされている時
刻である。
Tpx is the previous time setting execution time,
This is the time stored in the previous time setting execution time storage unit 11.

【0044】式(1)の分子、すなわち、(Tc−T
n)は、前回の時刻設定から今回の時刻設定までの間
に、どれだけの時間遅れたのか(計算値が負の値の場
合)、あるいは、進んだのか(計算値が正の場合)を表
している。式(1)の分母、すなわち、(Tnx−Tp
x)は、前回の時刻設定から今回の時刻設定までの間に
どれだけの時間が経ったかを表している。よって、この
式(1)は、時刻計数部5の時計用カウンタの前回の時
刻設定から今回の時刻設定までの間の誤差の割合(単位
時間当たりの誤差)を表しており、この割合に106
掛けて、時計誤差の補正値をppm で表し、時刻計数部5
の誤差を補正するため、符号を反転させてある。
The numerator of the formula (1), that is, (Tc-T
n) indicates how much time is delayed (when the calculated value is a negative value) or advanced (when the calculated value is positive) between the previous time setting and the current time setting. Represents. The denominator of equation (1), that is, (Tnx−Tp
x) indicates how much time has elapsed between the previous time setting and the current time setting. Therefore, equation (1) represents the error rate (error per unit time) from the previous time setting to the current time setting of the clock counter of the time counter 5, and this rate is 10 Multiply by 6 to express the correction value of the clock error in ppm.
In order to correct the error of the above, the sign is inverted.

【0045】そして、この式(1)から得られた補正値
は、マイクロコンピュータ1により時計誤差補正レジス
タ8に設定され(S208)、ついで、次回の時刻設定
に備え、設定時刻レジスタ10の内容が前回時刻設定実
行時刻記憶部11に保存され(S209)、時刻設定動
作が完了すると、マイクロコンピュータ1により、この
時計装置のモードがノーマルモードに戻される。
Then, the correction value obtained from the equation (1) is set in the clock error correction register 8 by the microcomputer 1 (S208), and the contents of the set time register 10 are changed in preparation for the next time setting. The time is stored in the previous time setting execution time storage unit 11 (S209), and when the time setting operation is completed, the microcomputer 1 returns the mode of the timepiece device to the normal mode.

【0046】そして、式(1)から得られた補正値は、
マイクロコンピュータ1により時計誤差補正レジスタ8
に設定される(S208)。式(1)から得られた補正
値は、時刻計数部5の前回の時刻設定から今回の時刻設
定までの間の誤差の割合から求めたものであり、時計装
置の温度や使用部品の経年変化等の要因も含めた最新の
情報であるので、この時計装置のこの時点での最適補正
値といえる。
Then, the correction value obtained from the equation (1) is
Clock error correction register 8 by microcomputer 1
Is set to (S208). The correction value obtained from the equation (1) is obtained from the ratio of the error between the previous time setting and the current time setting of the time counter 5, and the temperature of the clock device and the secular change of the parts used. Since this is the latest information including such factors as the above, it can be said that this is the optimal correction value for this timepiece device at this time.

【0047】この最適補正値は、現在の時計装置の状態
に対して、つまり、現在の時計誤差補正レジスタ8の設
定値に対して行われるべきものである。すなわち、先ほ
ど算出した最適補正値を、時計誤差補正レジスタ8の設
定値の単位に換算し、現在の時計誤差補正レジスタ8の
値に加算する。
This optimum correction value is to be performed for the current state of the clock device, that is, for the current setting value of the clock error correction register 8. That is, the previously calculated optimum correction value is converted into a unit of the set value of the clock error correction register 8 and added to the current value of the clock error correction register 8.

【0048】時刻計数部5の誤差の補正を行うとは、そ
の誤差を打ち消すことである。本実施の形態では、秒桁
が30となったときに、時計誤差補正レジスタ8の値に
より1秒のカウント値を変更する。時刻計数部5のパル
スカウンタは32768回に1度、桁上がり、すなわ
ち、秒カウンタへのカウントアップが行われるが、時計
誤差補正レジスタ8の値に基づく時計誤差の補正では、
時計誤差補正レジスタ8に例えば1が設定された場合、
30秒に1度、クロックが1パルス付加されることにな
り、30秒間で、 1/( 32768×30 )=0.00000101
7=1.017[ppm (parts per million )] だけ時刻を進めることができる。
Correcting the error of the time counter 5 means canceling the error. In the present embodiment, when the second digit becomes 30, the count value of one second is changed by the value of the clock error correction register 8. The pulse counter of the time counter 5 carries out a carry once every 32768 times, that is, counts up to a second counter. In the correction of the clock error based on the value of the clock error correction register 8,
For example, when 1 is set in the clock error correction register 8,
One pulse is added once every 30 seconds, and in 30 seconds, 1 / (32768 × 30) = 0.00010001
The time can be advanced by 7 = 1.017 [ppm (parts per million)].

【0049】例えば+5を時計誤差補正レジスタ8に設
定した場合は、5ppm (=5×1.017)進ませる補
正をかけることができ、例えば−7を時計誤差補正レジ
スタ8に設定した場合は、7ppm (=7×1.017)
遅らせる補正をかけることができる。
For example, when +5 is set in the clock error correction register 8, a correction to advance by 5 ppm (= 5 × 1.017) can be applied. For example, when -7 is set in the clock error correction register 8, 7 ppm (= 7 × 1.017)
A delay can be applied.

【0050】時計誤差補正レジスタ8の設定値の単位当
りの量を1ppm と規定しているため、算出された最適補
正値を現在の時計誤差補正レジスタ8の設定値にそのま
ま加算すればよい。
Since the amount of the set value of the clock error correction register 8 per unit is defined as 1 ppm, the calculated optimum correction value may be added to the current set value of the clock error correction register 8 as it is.

【0051】この新しい設定値が、この時計装置の現在
の状態における時計誤差補正レジスタ8の最適設定値で
あり、自動的に設定されることになる。
The new set value is the optimum set value of the clock error correction register 8 in the current state of the clock device, and is automatically set.

【0052】例えば、前回、1997年11月1日の1
2時0分0秒に時刻合わせを行った後、1997年12
月1日の12時0分0秒に時刻合わせを行っており、今
回、時刻合わせを行った時点での時計装置の示す時刻
が、1997年12月1日の12時0分26秒であると
すると、Tcに、1997/12/01 12:00:
26が代入され、Tnに、1997/12/01 1
2:00:00が代入され、Tnxに、1997/12
/01 12:00:00が代入され、Tpxに、19
97/11/01 12:00:00が代入されること
になる。すると、時計誤差の補正値τは、
For example, the last time, 1 on November 1, 1997
After setting the time at 2: 00: 00: 00, December 1997
The time is set at 12: 00: 00: 00 on the first day of the month, and the time indicated by the clock device at the time when the time is set this time is 12:00:26 on December 1, 1997. Then, at Tc, 1997/12/01 12:00:
26 is substituted into Tn, 1997/12/01 1
2: 00: 0 is substituted for Tnx, 1997/12
/ 01 12:00: 00 is substituted, and Tpx is 19
97/11/01 12:00:00 will be substituted. Then, the correction value τ of the clock error is

【0053】[0053]

【数2】 τ = −(26/2592000)×106 = −10.03 となる。Τ = − (26/2592000) × 10 6 = −10.03

【0054】この計算結果から、この時計装置は、1ヶ
月の間、すなわち、2592000秒の間に、26秒進
んだことが分かる。つまり、約10 ppmの割合で進んだ
ことになる。
From this calculation result, it can be seen that this timepiece device has advanced 26 seconds during one month, that is, during 2592000 seconds. That is, it has advanced at a rate of about 10 ppm.

【0055】なお、補正値の計算を行う際に、式(1)
で計算した結果に対してその小数点以下を四捨五入処理
した値を、時計誤差補正レジスタ8に設定するようにし
た場合には、この時計誤差補正レジスタ8で設定できる
補正値の最小単位(本実施の形態では、前述したよう
に、1ppm )の1/2以下、すなわち、±0.5 ppm
以下の誤差にすることができ、超高精度の補正を行うこ
とができる。これで、補正動作が完了する。
When calculating the correction value, the equation (1) is used.
When a value obtained by rounding off the decimal part of the result calculated in the above is set in the clock error correction register 8, the minimum unit of the correction value that can be set in the clock error correction register 8 (this embodiment) In the embodiment, as described above, less than 1/2 of 1 ppm), that is, ± 0.5 ppm
The following errors can be obtained, and ultra-high accuracy correction can be performed. Thus, the correction operation is completed.

【0056】このようにして時計誤差補正部7の最適設
定値を求め、自動的に最適設定値を設定し、時計誤差の
補正を行うようにしたので、製品の製造者は、その製品
の出荷時に、時刻設定を行うのみで良く、周囲温度を管
理した環境で時計用水晶発振器の周波数を計りながら調
整するといった、困難で工数のかかる時計誤差補正調整
をする必要がなくなった。
As described above, the optimum setting value of the clock error correction unit 7 is obtained, the optimum setting value is automatically set, and the clock error is corrected. Occasionally, it is only necessary to set the time, and it is no longer necessary to perform the clock error correction adjustment which is difficult and time-consuming, such as adjusting while measuring the frequency of the clock crystal oscillator in an environment where the ambient temperature is controlled.

【0057】また、使用者も同様に困難な時計誤差補正
を行う必要がなく、時刻合わせをする度に、最適補正が
自動的に行われる。すなわち、簡単な操作にもかかわら
ず、安価で超高精度の時計装置を実現することができ
る。
Also, the user does not need to perform similarly difficult clock error correction, and the optimum correction is automatically performed every time the time is adjusted. That is, it is possible to realize an inexpensive and highly accurate timepiece device despite simple operations.

【0058】<第2の実施の形態>図3は本発明の第2
の実施の形態を示す。本実施の形態は第1の実施の形態
との比較でいえば、時刻設定部の構成が異なる。すなわ
ち、本実施の形態の時刻設定部309は、設定時刻レジ
スタ10の他に±30秒アジャスト部313を有する。
この±30秒アジャスト部313は独立していてもよ
い。
<Second Embodiment> FIG. 3 shows a second embodiment of the present invention.
An embodiment will be described. This embodiment differs from the first embodiment in the configuration of the time setting unit. That is, the time setting unit 309 of the present embodiment has a ± 30 second adjusting unit 313 in addition to the set time register 10.
The ± 30 second adjustment section 313 may be independent.

【0059】本実施の形態の時計装置は、通常は、ノー
マルモードになっており、ノーマルモードにおいて、ボ
タン3が押下されると、時刻設定モードに入り、さら
に、ボタン3が押下されると、±30秒アジャストモー
ドに入るようになっている。
The timepiece device of the present embodiment is normally in a normal mode. In the normal mode, when the button 3 is pressed, the time setting mode is entered. It enters the adjustment mode for ± 30 seconds.

【0060】±30秒アジャストモードにおいて、秒の
桁がちょうど0になった時に合わせて、操作者によりボ
タン3が押下されると、時刻計数部5に設定されている
時刻が、マイクロコンピュータ1により読み出され、読
み出された時刻が内部のメモリ等に一時的にセーブされ
る。そして、時刻設定部9の±30秒アジャスト部31
3に対して、マイクロコンピュータ1により、±30秒
アジャストコマンドが発行される。
In the ± 30 seconds adjustment mode, when the button 3 is pressed by the operator at the time when the second digit has just become 0, the time set in the time counting unit 5 is changed by the microcomputer 1. The read time is read and the read time is temporarily saved in an internal memory or the like. Then, the ± 30 second adjusting section 31 of the time setting section 9
3, the microcomputer 1 issues an adjust command for ± 30 seconds.

【0061】この±30秒アジャストコマンドを受けた
±30秒アジャスト部13は、ボタン3が押された時点
の秒の桁が0から29の範囲内にある場合は、時刻計数
部5の秒カウンタをリセットして0秒に設定し、他方、
ボタン3の押された時点の秒の桁が30から59の範囲
内にある場合は、時刻計数部5の秒カウンタをリセット
して0秒に設定するとともに、分カウンタのカウント値
を1だけ増加させる。
The ± 30-second adjusting unit 13 receiving the ± 30-second adjusting command sets the second counter of the time counting unit 5 when the second digit at the time when the button 3 is pressed is in the range of 0 to 29. And set it to 0 seconds, while
If the second digit at the time when the button 3 is pressed is within the range of 30 to 59, the second counter of the time counter 5 is reset to 0 seconds and the count value of the minute counter is increased by one. Let it.

【0062】また、本実施の形態は第1の実施の形態と
の比較で言えば、時計誤差補正レジスタに8にストアす
る値の算出方法が異なる。すなわち、本実施の形態で
は、±30秒アジャスト部313によりアジャストされ
る時点に本時計装置の示す時刻と±30秒アジャスト部
313によりアジャストされて本時計装置に設定される
時刻との時間差を算出するとともに、前回時刻設定実行
時刻記憶部11に記憶されている時刻から±30秒アジ
ャスト部313によりアジャストされて本時計装置に設
定される時刻までの時間を算出し、算出された時間差を
算出された時間で除算し、除算結果の符号を反転させ、
106 を掛け、得られた値と時計誤差補正レジスタ8に
ストアされている値とを加算し、得られた時計誤差補正
値を時計誤差補正レジスタ8にストアするようにした。
また、±30秒アジャスト部313によるアジャスト時
点にアジャストされた時刻を前回時刻設定実行時刻記憶
部11にストアするようにした。
The present embodiment differs from the first embodiment in the method of calculating the value stored in the clock error correction register 8 in the clock error correction register. That is, in the present embodiment, the time difference between the time indicated by the clock device at the time when the adjustment is performed by the ± 30 second adjustment unit 313 and the time adjusted by the ± 30 second adjustment unit 313 and set in the clock device is calculated. At the same time, the time from the time stored in the previous time setting execution time storage unit 11 to the time adjusted by the adjusting unit 313 and set to the timepiece device is calculated, and the calculated time difference is calculated. Divided by the given time, invert the sign of the division result,
Multiplied by 10 6 , the obtained value is added to the value stored in the clock error correction register 8, and the obtained clock error correction value is stored in the clock error correction register 8.
The time adjusted at the time of the adjustment by the adjustment unit 313 is stored in the previous time setting execution time storage unit 11.

【0063】従って、時計誤差が±30秒を超えない範
囲で、定期的に(本実施の形態では、誤差補正後の精度
が±0.5ppm 以下であるので、時計誤差補正は1年に
1回程度で十分である)、例えば時報に合せてボタン3
の簡単な操作のみでアジャストを行うことができる。す
なわち、ボタン3を3回押すことにより、アジャストを
行うことができる。
Therefore, within a range where the clock error does not exceed ± 30 seconds, the clock error is corrected periodically (in the present embodiment, since the accuracy after the error correction is ± 0.5 ppm or less, once a year). Times is sufficient), for example, button 3 according to the time signal
The adjustment can be performed only by the simple operation of. That is, the adjustment can be performed by pressing the button 3 three times.

【0064】<第3の実施の形態>図4は本発明の第3
の実施の形態を示す。本実施の形態は第1の実施の形態
との比較でいえば、時刻設定方法が異なる。すなわち、
本実施の形態では、マイクロコンピュータ1は自動的に
適当な期間毎に通信部414を介してインターネットに
接続し、インターネット上のネットワークタイムサーバ
415からの現在時刻データを時刻設定部9の設定時刻
レジスタ10にストアし、設定時刻レジスタ10の現在
時刻を時刻計数部5の時計用カウンタに上書きするよう
にした。
<Third Embodiment> FIG. 4 shows a third embodiment of the present invention.
An embodiment will be described. The present embodiment differs from the first embodiment in the time setting method. That is,
In the present embodiment, the microcomputer 1 automatically connects to the Internet via the communication unit 414 at appropriate intervals, and stores the current time data from the network time server 415 on the Internet in the set time register of the time setting unit 9. 10 and the current time of the set time register 10 is overwritten on the clock counter of the time counting unit 5.

【0065】また、本実施の形態では、本質的に第1の
実施の形態と同様にして、時刻設定と同時に、時計誤差
補正値を算出して時計誤差補正レジスタ8にストアする
ようにした。従って、製品の製造者も使用者も時刻設
定、時計誤差補正操作等一切することなく、よって、時
計装置を操作者の使用環境に合わせて常に最高の精度で
使用することができる。
In the present embodiment, the clock error correction value is calculated and stored in the clock error correction register 8 simultaneously with the time setting, essentially in the same manner as in the first embodiment. Therefore, neither the manufacturer nor the user of the product performs time setting, clock error correction operation, and the like, and the clock device can always be used with the highest accuracy in accordance with the usage environment of the operator.

【0066】例えば、第1の実施の形態で説明したよう
に、±0.5ppm 以下、月差±1.8秒以下の精度が保
たれるとした場合、ネットワークタイムサーバ415に
アクセスして時刻合わせを行う周期を3日程度(時計誤
差が0.13秒以下であって、人間が表示装置に表示さ
れる時刻を見てその差が識別できない)にすれば、時計
装置が正常に動作し続ける限り、永遠に狂わない時計を
実現できる。
For example, as described in the first embodiment, if it is assumed that the accuracy is maintained at ± 0.5 ppm or less and the monthly difference is ± 1.8 seconds or less, the network time server 415 is accessed to If the period for performing the adjustment is set to about three days (the clock error is 0.13 seconds or less, and the difference cannot be identified by looking at the time displayed on the display device by a human), the clock device operates normally. As long as you continue, you can create a watch that will not go forever.

【0067】また、時計設定部9の時刻設定レジスタ1
0に現在時刻データを転送して、時刻合わせを行う場合
には、秒の桁が何秒の時でも実行できるため、時刻合わ
せと時計誤差補正の一連の処理を瞬時に実行することが
できる。
The time setting register 1 of the clock setting unit 9
When the current time data is transferred to 0 and the time is adjusted, the process can be executed at any number of seconds, so that a series of processes of time adjustment and clock error correction can be executed instantaneously.

【0068】<第4の実施の形態>図5は本発明の第4
の実施の形態を示す。本実施の形態は第2の実施の形態
との比較でいえば、アジャスト方法が異なる。すなわ
ち、本実施の形態では、マイクロコンピュータ1は自動
的に適当な期間毎に通信部414を介してインターネッ
トに接続し、インターネット上のネットワークタイムサ
ーバ415からの現在時刻データを参照し、但し、少し
の間(最大1分間)時刻データの秒の桁を監視し、秒の
桁が0の瞬間に、本質的に第2の実施の形態と同様に、
±30秒アジャスト部13によりアジャストを行うよう
にした。
<Fourth Embodiment> FIG. 5 shows a fourth embodiment of the present invention.
An embodiment will be described. This embodiment is different from the second embodiment in the adjustment method. That is, in the present embodiment, the microcomputer 1 automatically connects to the Internet via the communication unit 414 at appropriate intervals and refers to the current time data from the network time server 415 on the Internet. During the time (up to one minute), the second digit of the time data is monitored, and at the moment when the second digit is 0, essentially as in the second embodiment,
The adjustment is performed by the adjustment unit 13 for ± 30 seconds.

【0069】本実施の形態では、本質的に第2の実施の
形態と同様にして、±30秒アジャスト部13によるア
ジャストと同時に、時計誤差補正値を算出して時計誤差
補正レジスタ8にストアするようにした。従って、製品
の製造者も使用者も時刻設定、時計誤差補正操作等一切
することなく、よって、時計装置を操作者の使用環境に
合わせて常に最高の精度で使用することができる。
In the present embodiment, a clock error correction value is calculated and stored in the clock error correction register 8 at the same time as the adjustment by the ± 30 second adjustment unit 13, essentially in the same manner as in the second embodiment. I did it. Therefore, neither the manufacturer nor the user of the product performs time setting, clock error correction operation, and the like, and the clock device can always be used with the highest accuracy in accordance with the usage environment of the operator.

【0070】<第5の実施の形態>第1および第2の実
施の形態では、それらの操作を人間が手動で行うので、
誤操作や設定ミスが生じることがあった。このような場
合、その時の条件で補正値が計算されることになり、何
の根拠も無いでたらめな値が時計誤差補正レジスタ8に
ストアされることになる。そのような場合は、操作者が
誤操作や設定ミスに気が付くか、気が付かない場合でも
誤差が大きくなるので、短期間のうちに再び時刻設定操
作やアジャスト操作が行なわれることになる。
<Fifth Embodiment> In the first and second embodiments, since these operations are manually performed by a human,
Erroneous operation or setting error sometimes occurred. In such a case, the correction value is calculated under the condition at that time, and a random value having no basis is stored in the clock error correction register 8. In such a case, the operator notices an erroneous operation or a setting error, or an error increases even when the operator does not notice. Therefore, the time setting operation or the adjusting operation is performed again in a short period of time.

【0071】そこで、本実施の形態では、時計誤差補正
部7の時計誤差補正レジスタ8に値がストアされてから
の経過時間を計時し、計時された経過時間が予め定めた
時間を経過したとき、時計誤差補正レジスタ8にストア
されている値を確定値としてマイクロコンピュータ1の
RAM102に記憶するようにした。
Therefore, in the present embodiment, the elapsed time from when the value is stored in the clock error correction register 8 of the clock error correction unit 7 is measured, and when the measured elapsed time exceeds a predetermined time. The value stored in the clock error correction register 8 is stored in the RAM 102 of the microcomputer 1 as a final value.

【0072】予め定めた時間として、1296000秒
(15日間)を採用すると、最適な補正値が設定されて
いる場合、時計誤差は±0.5ppm 以下となる。従っ
て、15日で±0.65秒以下の誤差となる。時計誤差
は15日経過しても1秒以下なので、通常、ユーザは時
刻合わせやアジャストは行われない可能性が高い。つま
り、前回の設定やアジャストから15日以内に再設定す
るということは、何らかの事情で最適誤差補正値が設定
されていないとみなすことができる。
When 1296000 seconds (15 days) is adopted as the predetermined time, the clock error becomes ± 0.5 ppm or less when the optimum correction value is set. Therefore, an error of ± 0.65 seconds or less occurs in 15 days. Since the clock error is 1 second or less even after 15 days, the user is usually unlikely to perform time adjustment or adjustment. That is, resetting within 15 days from the previous setting or adjustment can be regarded as that the optimum error correction value has not been set for some reason.

【0073】前回の時刻合わせ操作やアジャスト操作時
から15日経っても、次の時刻合わせ操作やアジャスト
操作が行われない場合は、前回の時刻合わせやアジャス
ト実行時に同時に設定された時計誤差補正値は、誤操作
や操作ミスをしないで適切に設定されたものとみなすこ
とができ、その時点で設定されている時計誤差補正値が
確定時計誤差補正値としてRAM102に記憶される。
もし、15日経たずして、次の時刻合わせ操作やアジャ
スト操作が行われた場合には、前回の時刻合わせ操作や
アジャスト操作において、誤操作や操作ミス等が有り最
適時計誤差補正値が設定されていないとみなし、今回の
時計誤差補正値の計算は行わずに、前回RAM102に
記憶されている値を最適時計誤差補正値の代わりに時計
誤差補正レジスタ8に設定する。この場合の補正値は厳
密にいえばその時点の最適設定値ではないが、前回の最
適設定値であるため、その時点の最適設定値にかなり近
くなる。従って、時刻合わせや操作やアジャスト操作に
おいて、誤操作や操作ミス等により、時計誤差補正値が
誤って設定されるのを防止することができる。
If the next time adjustment operation or adjustment operation is not performed within 15 days after the previous time adjustment operation or adjustment operation, the clock error correction value set simultaneously with the previous time adjustment operation or adjustment execution Can be regarded as appropriately set without erroneous operation or operation error, and the clock error correction value set at that time is stored in the RAM 102 as the fixed clock error correction value.
If the next time adjustment operation or adjustment operation is performed within 15 days, the previous time adjustment operation or adjustment operation has an erroneous operation or an operation error, and the optimal clock error correction value is set. Assuming that the clock error correction value has not been calculated, the current clock error correction value is not calculated, and the value previously stored in the RAM 102 is set in the clock error correction register 8 instead of the optimum clock error correction value. Strictly speaking, the correction value in this case is not the optimum setting value at that time, but since it is the previous optimum setting value, it is considerably close to the optimum setting value at that time. Therefore, it is possible to prevent the clock error correction value from being erroneously set due to an erroneous operation, an operation error, or the like in time adjustment, operation, or adjustment operation.

【0074】<第6の実施の形態>時刻設定操作やアジ
ャスト操作時に誤操作や設定ミスをしても、操作者が気
が付くか、気が付かない場合でも誤差が大きくなるため
に、ユーザにより短期間のうちに再び時刻設定操作やア
ジャスト操作が行なわれる可能性は高いが、最悪の場
合、そのまま使用されることもある。
<Sixth Embodiment> Even if an erroneous operation or setting error is made during a time setting operation or an adjustment operation, the operator may notice the error or increase the error even if the operator does not notice it. There is a high possibility that the time setting operation and the adjusting operation will be performed again, but in the worst case, they may be used as they are.

【0075】通常、時計装置における経年変化は急に大
きく起きることはなく、長期間の間に、徐々に少しずつ
起こるものである。温度変化にしても、1ヶ月程度の期
間ではそれほど大きな変化はない。つまり、時計誤差は
急に大きく変化することは殆どない。
Normally, the secular change in the timepiece does not occur suddenly and greatly, but gradually and gradually over a long period of time. Even if the temperature changes, there is no significant change in a period of about one month. That is, the clock error hardly changes suddenly.

【0076】そこで、本実施の形態では、算出された時
計誤差補正値が、予め定めた最大値(例えば、絶対値で
20ppm )とをマイクロコンピュータ1により比較し、
比較した結果、時計誤差補正値が最大値未満である場合
には、その時計誤差補正値を加算し時計誤差補正レジス
タ8に設定し、時計誤差補正値が最大値以上である場合
には、最大値(つまり+20ppm 又は−20ppm )を加
算し時計誤差補正レジスタに設定するようにした。
In this embodiment, the microcomputer 1 compares the calculated clock error correction value with a predetermined maximum value (for example, 20 ppm in absolute value).
As a result of the comparison, if the clock error correction value is less than the maximum value, the clock error correction value is added and set in the clock error correction register 8, and if the clock error correction value is equal to or greater than the maximum value, The value (that is, +20 ppm or -20 ppm) is added and set in the clock error correction register.

【0077】よって、時刻設定やアジャスト時に、算出
された時計誤差補正値の大きさが、−20ppm 以上ない
し+20ppm 以下の範囲内である場合は、算出された時
計誤差補正値を時計誤差補正レジスタ8の単位に換算し
て、現在の時計誤差補正レジスタ8の値に加算する。他
方、算出された時計誤差補正値の大きさが、−20ppm
以下の場合は−20ppm を、+20ppm 以上の場合は+
20ppm を時計誤差補正レジスタ8の単位に換算して現
在の時計誤差補正レジスタ8の値に加算する。
Therefore, if the magnitude of the calculated clock error correction value is within the range from -20 ppm to +20 ppm at the time of time setting or adjustment, the calculated clock error correction value is stored in the clock error correction register 8. And added to the current value of the clock error correction register 8. On the other hand, the magnitude of the calculated clock error correction value is -20 ppm
In the following cases, -20 ppm is used. In the case of +20 ppm or more, +20 ppm is used.
20 ppm is converted into the unit of the clock error correction register 8 and added to the current value of the clock error correction register 8.

【0078】従って、時刻設定やアジャスト時に誤操作
や設定ミスをして、そのまま使用し続けても時計誤差が
極端に大きく(本実施の形態では月差52秒以上。補正
を行わない時計ではこの程度以上の誤差があるのが普
通。)なることはなく、その後の適正な時刻設定やアジ
ャスト時に修正されることになる。
Therefore, the clock error is extremely large even if the user continues to use the watch as a result of an erroneous operation or setting error during the time setting or adjustment (in the present embodiment, the difference in month is 52 seconds or more. Usually, there is the above error.) It will not be corrected, but will be corrected at the appropriate time setting or adjustment thereafter.

【0079】また、誤操作や設定ミスではなく、例え
ば、時計装置の製造後初めての時刻合わせ、温暖地域で
使用していたものを寒冷地域に持っていって、前回の時
刻合わせから3年後に時刻合わせを行う際に、絶対値で
20ppm を超える補正が必要な場合等は、その時の時計
誤差補正では完全には補正しきれない。しかし、その後
の時刻設定やアジャスト時に20ppm の範囲で時計誤差
補正が継続され、最終的には、完全に補正されることに
なる。例えば、実際に50ppm の補正が必要だった場合
には、1回目の補正で20ppm 分、2回目の補正で20
ppm 分、3回目の補正で10ppm 分というように補正さ
れ、3回で完全に補正されることになり、時刻合わせア
ジャストを行うたびに正確になってゆくことになる。
In addition to the incorrect operation or setting error, for example, the time is set for the first time after the manufacture of the clock device, the one used in the warm region is brought to the cold region, and the time is set three years after the previous time setting. If the absolute value requires a correction exceeding 20 ppm when performing the adjustment, the clock error correction at that time cannot be completely corrected. However, the clock error correction is continued within the range of 20 ppm at the time of the subsequent time setting or adjustment, and is finally completely corrected. For example, if a correction of 50 ppm is actually required, the first correction requires 20 ppm and the second correction requires 20 ppm.
It will be corrected to 10 ppm in the third correction and 10 ppm in the third correction, and will be completely corrected in the third correction, and will be accurate each time the time adjustment is performed.

【0080】[0080]

【発明の効果】以上説明したように、本発明によれば、
上記のように構成したので、容易に時計誤差補正を行う
ことができる。
As described above, according to the present invention,
With the configuration described above, the clock error can be easily corrected.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態を示すブロック図で
ある。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】図1のROM101にストアされる制御プログ
ラムの一例を示すフローチャートである。
FIG. 2 is a flowchart illustrating an example of a control program stored in a ROM 101 of FIG. 1;

【図3】本発明の第2の実施の形態を示すブロック図で
ある。
FIG. 3 is a block diagram showing a second embodiment of the present invention.

【図4】本発明の第3の実施の形態を示すブロック図で
ある。
FIG. 4 is a block diagram showing a third embodiment of the present invention.

【図5】本発明の第4の実施の形態を示すブロック図で
ある。
FIG. 5 is a block diagram showing a fourth embodiment of the present invention.

【図6】従来の時計装置の構成を示すブロック図であ
る。
FIG. 6 is a block diagram showing a configuration of a conventional timepiece device.

【符号の説明】[Explanation of symbols]

1 マイクロコンピュータ 2 表示装置 3 ボタン 4 キーボード 5 時刻計数部 6 水晶発振子 7 時計誤差補正部 8 時計誤差補正レジスタ 9 時刻設定部 10 設定時刻レジスタ 11 前回時刻設定実行時刻記憶部 13 ±30秒アジャスト部 14 通信部 DESCRIPTION OF SYMBOLS 1 Microcomputer 2 Display device 3 Button 4 Keyboard 5 Time counter 6 Crystal oscillator 7 Clock error correction unit 8 Clock error correction register 9 Time setting unit 10 Setting time register 11 Previous time setting execution time storage unit 13 ± 30 second adjustment unit 14 Communication unit

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 時刻計数手段と、 本時計装置に設定された時刻を記憶するための設定時刻
記憶手段と、 設定希望時刻を入力するための入力手段と、 該入力手段により入力された設定希望時刻を記憶する設
定希望時刻記憶手段と、 該設定希望時刻記憶手段により記憶された設定希望時刻
を本時計装置に設定する時刻設定手段と、 時計誤差補正値をストアするためのレジスタと、 該レジスタにストアされている時計誤差補正値に基づき
所定秒数経過ごとに前記時刻計数手段の計数値を補正す
る時計誤差補正手段とを有する時計装置において、 該時刻設定手段により設定希望時刻が設定された時点
で、該設定希望時刻と、前記設定時刻記憶手段により記
憶された時刻と、該時刻設定手段による設定希望時刻設
定時点の本時計装置が示す時刻とから、前回の時刻設定
時に本時計装置に設定した時刻から今回の時刻設定時に
本時計装置に設定する時刻までの間の本時計装置の進み
遅れの割合を算出し得られた割合の値の符号を反転させ
る算出手段と、 該算出手段により算出された割合の単位を前記レジスタ
にストアされている値の単位に換算して得られた値と前
記レジスタにストアされている値とを加算する加算手段
と、 該加算手段により得られた時計誤差補正値を前記レジス
タにストアする時計誤差補正値ストア手段と、 前記設定希望時刻が設定された時点に該設定希望時刻を
前記設定時刻記憶手段にストアする設定希望時刻ストア
手段とを備えたことを特徴とする時計装置。
1. A time counting means, a set time storage means for storing a time set in the clock device, an input means for inputting a desired setting time, and a setting request input by the input means Setting desired time storage means for storing time, time setting means for setting the desired setting time stored in the setting desired time storage means in the clock device, a register for storing a clock error correction value, and the register A clock error correction unit that corrects the count value of the time counting unit every time a predetermined number of seconds elapses based on the clock error correction value stored in the clock device. At the time, the desired setting time, the time stored by the setting time storage means, the time indicated by the timepiece device at the time of setting the desired setting time by the time setting means, etc. The sign of the value of the ratio obtained by calculating the rate of advance / delay of the timepiece device between the time set on the timepiece device at the time of the previous time setting and the time set on the timepiece device at the current time setting is represented by Calculating means for inverting, and adding means for adding a value obtained by converting a unit of the ratio calculated by the calculating means into a unit of a value stored in the register and a value stored in the register Clock error correction value storing means for storing the clock error correction value obtained by the adding means in the register; and storing the desired setting time in the setting time storage means at the time when the desired setting time is set. A timepiece device comprising: a set desired time storage means.
【請求項2】 請求項1において、前記算出手段は、前
記時刻設定手段により設定希望時刻が設定される時点の
本時計装置の示す時刻と該設定希望時刻との時間差を算
出するとともに、前記設定時刻記憶手段に記憶された時
刻から前記設定希望時刻までの時間を算出し、前記算出
された時間差を前記算出された時間で除算し、除算結果
の符号を反転させることを特徴とする時計装置。
2. The method according to claim 1, wherein the calculating means calculates a time difference between the time indicated by the timepiece apparatus at the time when the desired time is set by the time setting means and the desired time, and the setting means includes: A timepiece device comprising: calculating a time from a time stored in a time storage means to the desired setting time; dividing the calculated time difference by the calculated time; and inverting a sign of the division result.
【請求項3】 請求項1において、前記時刻計数手段
は、 所定の周波数の発振手段と、 該発振手段からのクロックをカウントするカウント手段
と、 該カウント手段の桁上げに応答して秒へのカウントアッ
プを行う秒カウント手段と、 該秒カウント手段の桁上げに応答して分へのカウントア
ップを行う分カウント手段と、 該分カウント手段の桁上げに応答して時へのカウントア
ップを行う時カウント手段とを有することを特徴とする
時計装置。
3. The time counting means according to claim 1, wherein said time counting means comprises: oscillating means having a predetermined frequency; counting means for counting a clock from said oscillating means; Second counting means for counting up, minute counting means for counting up to minutes in response to carry of the second counting means, and counting up to hours in response to carry of the minute counting means A timepiece device comprising an hour counting means.
【請求項4】 時刻計数手段と、 時刻設定時に本時計装置に設定された時刻を記憶する時
刻記憶手段と、 時計誤差補正値をストアするためのレジスタと、 該レジスタにストアされている時計誤差補正値に基づき
所定秒数経過ごとに前記時刻計数手段の計数値を補正す
る時計誤差補正手段と、 アジャスト指示時に、秒桁が予め定めた範囲内である場
合に、該秒桁をリセットし、前記予め定めた範囲外であ
る場合に、該秒桁をリセットするとともに、分桁を1だ
け増加させるアジャスト手段とを有する時計装置におい
て、 前記アジャスト手段によりアジャストされた時点で、該
アジャストされた時刻と、前記設定時刻記憶手段により
記憶された時刻と、該アジャスト手段によりアジャスト
される時点の本時計装置が示す時刻とから、前回の時刻
設定時に本時計装置に設定した時刻から当該アジャスト
時に本時計装置に設定する時刻までの間の本時計装置の
進み遅れの割合を算出し得られた割合の値の符号を反転
させる算出手段と、 該算出手段により算出された割合の単位を前記レジスタ
にストアされている値の単位に換算して得られた値と前
記レジスタにストアされている値とを加算する加算手段
と、 該加算手段により得られた時計誤差補正値を前記レジス
タにストアする時計誤差補正値ストア手段と、 前記アジャスト手段によるアジャスト時点にアジャスト
された時刻を前記設定時刻記憶手段にストアするアジャ
スト時刻ストア手段とを備えたことを特徴とする時計装
置。
4. A time counting means, a time storage means for storing a time set in the clock device at the time of setting a time, a register for storing a clock error correction value, and a clock error stored in the register. A clock error correction unit that corrects the count value of the time counting unit every time a predetermined number of seconds elapses based on the correction value; and when an adjustment instruction is given, if the second digit is within a predetermined range, the second digit is reset. An adjusting means for resetting the second digit and increasing the minute digit by 1 when the second digit is out of the predetermined range; and From the time stored by the set time storage means and the time indicated by the clock device at the time of adjustment by the adjustment means, Calculating means for calculating the rate of advance / delay of the timepiece device from the time set in the timepiece device at a regular time to the time set in the timepiece device at the time of the adjustment, and inverting the sign of the ratio value obtained; Adding means for adding a value obtained by converting a unit of the ratio calculated by the calculating means into a unit of a value stored in the register and a value stored in the register; and Clock error correction value storage means for storing the obtained clock error correction value in the register; andadjustment time storage means for storing the time adjusted at the time of adjustment by the adjustment means in the set time storage means. A clock device characterized by the above-mentioned.
【請求項5】 請求項4において、前記算出手段は、前
記アジャスト手段によりアジャストされる時点に本時計
装置の示す時刻と該アジャスト手段によりアジャストさ
れて本時計装置に設定される時刻との時間差を算出する
とともに、前記設定時刻記憶手段に記憶された時刻から
前記アジャストされて本時計装置に設定される時刻まで
の時間を算出し、前記算出された時間差を前記算出され
た時間で除算し、除算結果の符号を反転させることを特
徴とする時計装置。
5. The calculating means according to claim 4, wherein the calculating means calculates a time difference between a time indicated by the timepiece device at the time of adjustment by the adjusting means and a time adjusted by the adjusting means and set in the timepiece device. Calculating and calculating the time from the time stored in the set time storage means to the time adjusted and set in the timepiece apparatus, dividing the calculated time difference by the calculated time, and dividing A clock device for inverting the sign of a result.
【請求項6】 時刻計数手段と、 ネットワークタイムサーバから読み込んだ現在時刻デー
タに基づき本時計装置に時刻を設定する時刻設定手段
と、 時刻設定時に本時計装置に設定された時刻を記憶する時
刻記憶手段と、 時計誤差補正値をストアするためのレジスタと、 該レジスタにストアされている時計誤差補正値に基づき
所定秒数経過ごとに前記時刻計数手段の計数値を補正す
る時計誤差補正手段とを有する時計装置において、 前記時刻設定手段により本時計装置に時刻を設定する時
点で、該設定される時刻と、前記設定時刻記憶手段によ
り記憶された時刻と、該時刻設定時点に本時計装置が示
す時刻とから、前回の時刻設定時に本時計装置に設定し
た時刻から今回の時刻設定時に本時計装置に設定する時
刻までの間の本時計装置の進み遅れの割合を算出し得ら
れた割合の値の符号を反転させる算出手段と、 該算出手段により算出された割合の単位を前記レジスタ
にストアされている値の単位に換算して得られた値と前
記レジスタにストアされている値とを加算する加算手段
と、 該加算手段により得られた時計誤差補正値を前記レジス
タにストアする時計誤差補正値ストア手段と、 前記時刻設定手段により時刻が設定された時点に設定時
刻を前記設定時刻記憶手段にストアする設定時刻ストア
手段とを備えたことを特徴とする時計装置。
6. A time counting means, a time setting means for setting a time in the clock device based on current time data read from a network time server, and a time storage for storing a time set in the clock device at the time of setting the time. Means, a register for storing a clock error correction value, and clock error correction means for correcting the count value of the time counting means every predetermined number of seconds based on the clock error correction value stored in the register. The time setting unit sets the time in the clock device by the time setting unit, the set time, the time stored by the set time storage unit, and the time set by the clock device. The advance of the timepiece device from the time to the time set on the timepiece device at the time of the current time setting and the time set on the timepiece device at the time of the previous time setting Calculating means for inverting the sign of the ratio value obtained by calculating the ratio, and a value obtained by converting the unit of the ratio calculated by the calculating means into the unit of the value stored in the register Adding means for adding the clock error correction value obtained by the adding means to the register, and a clock error correction value storing means for storing the clock error correction value obtained by the adding means to the register; and setting the time by the time setting means. And a set time storing means for storing the set time in the set time storage means at the set time.
【請求項7】 請求項6において、前記算出手段は、前
記時刻設定手段により時刻が設定される時点の本時計装
置の示す時刻と該時刻設定手段による設定時刻との時間
差を算出するとともに、前記設定時刻記憶手段に記憶さ
れた時刻から該時刻設定手段による設定時刻までの時間
を算出し、前記算出された時間差を前記算出された時間
で除算し、除算結果の符号を反転させることを特徴とす
る時計装置。
7. The method according to claim 6, wherein the calculating means calculates a time difference between a time indicated by the timepiece device at the time when the time is set by the time setting means and a time set by the time setting means. Calculating the time from the time stored in the set time storage means to the set time by the time setting means, dividing the calculated time difference by the calculated time, and inverting the sign of the division result. Clock device to do.
【請求項8】 時刻計数手段と、 時刻設定時に本時計装置に設定された時刻を記憶する時
刻記憶手段と、 時計誤差補正値をストアするためのレジスタと、 該レジスタにストアされている時計誤差補正値に基づき
所定秒数経過ごとに前記時刻計数手段の計数値を補正す
る時計誤差補正手段と、 ネットワークタイムサーバから現在時刻データを読み込
む読込手段と、 該読込手段により読み込まれた現在時刻データに基づく
時刻の秒が0秒の時点で、秒桁が予め定めた範囲内であ
る場合に、該秒桁をリセットし、前記予め定めた範囲外
である場合に、該秒桁をリセットするとともに、分桁を
1だけ増加させるアジャスト手段とを有する時計装置に
おいて、 前記アジャスト手段によりアジャストされた時点で、該
アジャストされた時刻と、前記設定時刻記憶手段により
記憶された時刻と、該アジャスト手段によりアジャスト
される時点の本時計装置が示す時刻とから、前回の時刻
設定時に本時計装置に設定した時刻から当該アジャスト
時に本時計装置に設定する時刻までの間の本時計装置の
進み遅れの割合を算出し得られた割合の値の符号を反転
させる算出手段と、 該算出手段により算出された割合の単位を前記レジスタ
にストアされている値の単位に換算して得られた値と前
記レジスタにストアされている値とを加算する加算手段
と、 該加算手段により得られた時計誤差補正値を前記レジス
タにストアする時計誤差補正値ストア手段と、 前記アジャスト手段によるアジャスト時点にアジャスト
された時刻を前記設定時刻記憶手段にストアするアジャ
スト時刻ストア手段とを備えたことを特徴とする時計装
置。
8. Time counting means, time storage means for storing the time set in the timepiece device at the time of time setting, a register for storing a clock error correction value, and a clock error stored in the register. A clock error correction means for correcting the count value of the time counting means every time a predetermined number of seconds has elapsed based on the correction value; a reading means for reading current time data from a network time server; and a current time data read by the reading means. At the time when the second based on the time is 0 second, when the second digit is within a predetermined range, the second digit is reset, and when the second digit is outside the predetermined range, the second digit is reset, A timepiece device having an adjusting means for increasing a minute digit by one, wherein at the time of adjustment by the adjusting means, the adjusted time and the setting From the time stored by the time storage means and the time indicated by the timepiece device at the time of adjustment by the adjustment means, the time is set in the timepiece device at the time of the adjustment from the time set in the timepiece device at the previous time setting. Calculating means for calculating the rate of advance / delay of the timepiece device up to the time, inverting the sign of the value of the rate obtained, and the unit of the rate calculated by the calculating means stored in the register Adding means for adding a value obtained by converting to the unit of the above and a value stored in the register; and a clock error correction value storing means for storing the clock error correction value obtained by the adding means in the register. Adjusting time storing means for storing the time adjusted at the time of adjustment by the adjusting means in the set time storing means. Watch device according to claim.
【請求項9】 請求項7において、前記算出手段は、前
記アジャスト手段によりアジャストされる時点に本時計
装置の示す時刻と該アジャスト手段によりアジャストさ
れて本時計装置に設定される時刻との時間差を算出する
とともに、前記設定時刻記憶手段に記憶された時刻から
前記アジャストされて本時計装置に設定される時刻まで
の時間を算出し、前記算出された時間差を前記算出され
た時間で除算し、除算結果の符号を反転させることを特
徴とする時計装置。
9. The time calculating device according to claim 7, wherein the calculating unit calculates a time difference between a time indicated by the timepiece device at the time of adjustment by the adjusting device and a time adjusted by the adjusting device and set in the timepiece device. Calculating and calculating the time from the time stored in the set time storage means to the time adjusted and set in the timepiece apparatus, dividing the calculated time difference by the calculated time, and dividing A clock device for inverting the sign of a result.
【請求項10】 請求項1において、 前記レジスタに値がストアされてからの経過時間を計時
する計時手段と、 該計時手段により計時された経過時間が予め定めた時間
を超えたとき、前記レジスタにストアされている値を確
定値として記憶する確定値記憶手段と、 前記時刻設定手段により時刻設定が行われたとき、前記
計時手段により計時された経過時間が予め定めた時間を
超えていない場合は、前記算出手段による進み遅れの割
合の算出を禁止するとともに、前記確定値記憶手段の値
を前記レジスタに設定する制御手段とを備えたことを特
徴とする時計装置。
10. The timer according to claim 1, wherein: a timer means for counting an elapsed time from when a value is stored in the register; and when the elapsed time counted by the timer means exceeds a predetermined time, A fixed value storage means for storing the value stored in the memory as a fixed value; and, when the time setting is performed by the time setting means, the elapsed time measured by the clock means does not exceed a predetermined time. And a control means for prohibiting the calculation means from calculating the advance / delay ratio and setting the value of the fixed value storage means in the register.
【請求項11】 請求項4において、 前記レジスタに値がストアされてからの経過時間を計時
する計時手段と、 該計時手段により計時された経過時間が予め定めた時間
を超えたとき、前記レジスタにストアされている値を確
定値として記憶する確定値記憶手段と、 前記アジャスト手段によるアジャストが行われたとき、
前記計時手段により計時された経過時間が予め定めた時
間を超えていない場合は、前記算出手段による進み遅れ
の割合の算出を禁止するとともに、前記確定値記憶手段
の値を前記レジスタに設定する制御手段とを備えたこと
を特徴とする時計装置。
11. The timer according to claim 4, wherein: a timer means for counting an elapsed time from when a value is stored in the register; and when the elapsed time counted by the timer means exceeds a predetermined time, Fixed value storage means for storing the value stored in the storage means as a fixed value, when the adjustment is performed by the adjustment means,
If the elapsed time measured by the clocking means does not exceed a predetermined time, control is performed to prohibit the calculation means from calculating the advance / delay ratio and to set the value of the confirmed value storage means in the register. And a clock device.
【請求項12】 請求項1または4において、 前記加算手段による加算結果と予め定めた最大値とを比
較する比較手段と、 該比較手段により比較した結果、前記加算結果が前記最
大値未満である場合には、該加算結果を前記レジスタに
ストアし、該加算結果が該最大値以上である場合には、
該最大値を前記レジスタに設定する設定手段とを備えた
ことを特徴とする時計装置。
12. The comparing device according to claim 1, wherein the comparing unit compares the addition result by the adding unit with a predetermined maximum value, and the comparison result by the comparing unit is smaller than the maximum value. In such a case, the addition result is stored in the register, and if the addition result is equal to or greater than the maximum value,
Setting means for setting the maximum value in the register.
JP7675799A 1999-03-19 1999-03-19 Clock device Pending JP2000266876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7675799A JP2000266876A (en) 1999-03-19 1999-03-19 Clock device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7675799A JP2000266876A (en) 1999-03-19 1999-03-19 Clock device

Publications (1)

Publication Number Publication Date
JP2000266876A true JP2000266876A (en) 2000-09-29

Family

ID=13614472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7675799A Pending JP2000266876A (en) 1999-03-19 1999-03-19 Clock device

Country Status (1)

Country Link
JP (1) JP2000266876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019168325A (en) * 2018-03-23 2019-10-03 カシオ計算機株式会社 Electronic apparatus, method for setting time of electronic apparatus, and program
CN115202183A (en) * 2022-07-21 2022-10-18 Oppo广东移动通信有限公司 Clock calibration method and device for sensor, storage medium and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019168325A (en) * 2018-03-23 2019-10-03 カシオ計算機株式会社 Electronic apparatus, method for setting time of electronic apparatus, and program
JP7035685B2 (en) 2018-03-23 2022-03-15 カシオ計算機株式会社 Electronic devices, time adjustment methods for electronic devices, and programs
CN115202183A (en) * 2022-07-21 2022-10-18 Oppo广东移动通信有限公司 Clock calibration method and device for sensor, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US4708491A (en) Time of day clock
JP3584042B2 (en) Receiver with clock function and time adjustment method
US4114363A (en) Electronic timepiece
JP2000266876A (en) Clock device
US4502790A (en) Electronic timepiece
JPH06342088A (en) Timing method, semiconductor device and timer
WO1998044395A1 (en) Electronic clock
JPS6145504Y2 (en)
JPH0134149Y2 (en)
JPH0530793U (en) Electronic watch
JPS6360872B2 (en)
EP0689110B1 (en) Apparatus and method for setting a value to be displayed
JP2005140595A (en) Radio controlled timepiece and time correcting method therefor
JPS599732A (en) Automatic correcting system of timer
JPH1114775A (en) Method for automatically correcting display time of electronic clock
JPS6133149B2 (en)
JPH04328491A (en) Time indicator
JPH0628786U (en) Clock device
JPH01216293A (en) Time error correcting method
JPH06174865A (en) Control clock device
JPH0530206B2 (en)
JP2004271539A (en) Receiver with clock function
JPH05341065A (en) Clock circuit
JPS62231196A (en) Timepiece device with error adjusting function
JPH09145869A (en) Indicating scale variation type linear clock