JPH06186358A - Automatic time corrector for digital timepiece - Google Patents

Automatic time corrector for digital timepiece

Info

Publication number
JPH06186358A
JPH06186358A JP33763392A JP33763392A JPH06186358A JP H06186358 A JPH06186358 A JP H06186358A JP 33763392 A JP33763392 A JP 33763392A JP 33763392 A JP33763392 A JP 33763392A JP H06186358 A JPH06186358 A JP H06186358A
Authority
JP
Japan
Prior art keywords
time
clock
time data
lsi
data
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
JP33763392A
Other languages
Japanese (ja)
Inventor
Kazuaki Baba
和昭 馬場
Yoshitaka Saito
義孝 斎藤
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.)
Max Co Ltd
Original Assignee
Max Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Max Co Ltd filed Critical Max Co Ltd
Priority to JP33763392A priority Critical patent/JPH06186358A/en
Publication of JPH06186358A publication Critical patent/JPH06186358A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enhance reliability by allowing automatic correction of time measuring error of a digital timepiece due to noise. CONSTITUTION:A main CPU 1 counts clock pulses outputted from a reference clock generating section 6 and reads out time data from a timepiece function LSI2 every predetermined reference time and stores the time data in a RAM7. A time interval data between current and previous time data is then determined and compared with the reference time and when they do not match each other, a decision is made that the time piece function LSI2 functioned erroneously. A reference time based on a reference clock is then added to the previous time data to create a current time data thus setting the current time of the timepiece function LSI2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ディジタル時計に関
するものであり、特に、時刻の誤差を自動的に修正する
自動時刻修正装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital timepiece, and more particularly to an automatic time adjustment device for automatically correcting a time difference.

【0002】[0002]

【従来の技術】時計機能用LSIは時計単体のみなら
ず、種々の電気装置に内蔵され、例えば家庭用電気製品
の時限回路やタイムレコーダの時刻記録回路の一部とし
て使用されている。
2. Description of the Related Art A clock function LSI is built in not only a timepiece but also various electric devices and is used, for example, as a part of a time circuit of a household electric appliance or a time recording circuit of a time recorder.

【0003】[0003]

【発明が解決しようとする課題】電気装置に内蔵された
時計機能用LSIは、他の回路から伝播される高周波ノ
イズの影響等の原因によって計時誤差を生じることがあ
る。時計用LSIを内蔵した電気装置のCPUは、時計
用LSIの時刻データに基づいて装置のオン/オフを制
御したり時刻を記録するので、誤差が生じた場合は動作
不良となり、使用者が時刻を再度設定しなおす必要があ
る。
The clock function LSI incorporated in the electric device may cause a timing error due to the influence of high frequency noise propagated from other circuits. The CPU of the electric device having the built-in clock LSI controls on / off of the device and records the time based on the time data of the clock LSI. Need to be set again.

【0004】そこで、この発明は時計用LSIの動作を
監視し、誤差が生じた場合は自動的に修正されるように
して動作不良を防止するとともに、使用者による設定操
作を不要として信頼性を向上することを目的とする。
Therefore, according to the present invention, the operation of the timepiece LSI is monitored, and when an error occurs, the operation is automatically corrected to prevent the operation failure, and the setting operation by the user is not required to improve the reliability. The purpose is to improve.

【0005】[0005]

【課題を解決するための手段】この発明は上記目的を達
成するために提案するものであり、時計機能用LSIの
時刻セット機能を有する処理装置と基準クロック発生部
とからなり、所定の読込み間隔で前記時計機能用LSI
から逐次時刻データを読込み記憶する手段と、時計機能
用LSIにおける前記読込み間隔の計時結果を前記基準
クロック数に基づく基準値と比較する手段と、前回の時
刻データに前記基準値から求められる基準時間を加算し
て現在時刻データを算出する手段と、前記比較手段の比
較結果に応じて前記現在時刻データを時計機能用LSI
へセットする手段を設けたディジタル時計に於ける自動
時刻修正装置を提供するものである。
The present invention is proposed in order to achieve the above-mentioned object, and comprises a processor having a time setting function of a clock function LSI and a reference clock generator, and has a predetermined read interval. And the LSI for clock function
Means for sequentially reading and storing the time data, means for comparing the timing result of the reading interval in the clock function LSI with a reference value based on the reference clock number, and a reference time obtained from the reference value in the previous time data. For calculating the current time data, and the current time data according to the comparison result of the comparing means.
To provide an automatic time adjustment device in a digital timepiece provided with a means for setting the time.

【0006】[0006]

【作用】時計機能用LSIの時刻設定を制御する処理装
置は、所定の読込み間隔で時計機能用LSIから逐次時
刻データを読込み記憶する。時計機能用LSIにおける
前記読込み間隔の計時結果と基準クロック発生部の基準
クロック数によって規定される基準値とを比較する。間
隔時間データが基準値と相違して時計機能用LSIの計
時動作にくるいが生じたと判断されるときは、前回の時
刻データに基準値に基づく基準時間を加えた現在時刻デ
ータを生成し、時計機能用LSIに現在時刻データをセ
ットする。
The processing device for controlling the time setting of the clock function LSI sequentially reads and stores the time data from the clock function LSI at a predetermined reading interval. The time measurement result of the read interval in the clock function LSI is compared with the reference value defined by the reference clock number of the reference clock generator. When it is determined that the interval time data is different from the reference value and the timekeeping operation of the clock function LSI is affected, the current time data is generated by adding the reference time based on the reference value to the previous time data, The current time data is set in the clock function LSI.

【0007】[0007]

【実施例】以下、この発明の一実施例を図1乃至図3に
従って詳述する。図1はタイムレコーダのブロック図で
ある。メインCPU1は時計機能用LSI2から読込ん
だ時刻、曜日、日付のデータに応じてLED等の表示部
3を駆動して日付、曜日、時刻を表示し、タイムカード
が挿入されたときは、印字部4を駆動してタイムカード
の所定の日付段に時刻を印字する。時計機能用LSI2
の時刻の設定は入力部5からメインCPU1を介して行
う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to FIGS. FIG. 1 is a block diagram of a time recorder. The main CPU 1 drives the display unit 3 such as an LED to display the date, the day of the week, and the time according to the time, day of the week, and date data read from the clock function LSI 2, and prints when the time card is inserted. The section 4 is driven to print the time on a predetermined date column of the time card. LSI for clock function 2
The time is set from the input unit 5 via the main CPU 1.

【0008】メインCPU1は基準クロック発生部6が
出力するクロックパルスをカウントし、設定カウント数
に達する度に時刻、日付のデータをRAM7に書込む。
そして、後述する手順に従って時刻データの偏差を検出
したときはリセット制御部8を介して時計機能用LSI
2にシステムリセットをかけるとともに、基準クロック
に基づいて算出した現在時刻データを時計機能用LSI
2にセットする。この現在時刻自動修正の手順を図2の
フローチャートに従って説明する。
The main CPU 1 counts the clock pulses output from the reference clock generator 6, and writes the time and date data in the RAM 7 each time the set count is reached.
Then, when the deviation of the time data is detected according to the procedure described later, the clock function LSI is passed through the reset control unit 8.
System reset for 2 and current time data calculated based on the reference clock
Set to 2. The procedure of this automatic adjustment of the current time will be described with reference to the flowchart of FIG.

【0009】メインCPU1のクロックカウンタには予
め任意の時間に相当するクロックカウント数を設定して
おく。また、入力部5を介して時計機能用LSI2に時
刻設定がなされたときは、メインCPU1がRAM7の
アドレスDT0に設定時刻を書込む。そして、基準クロ
ック発生部6からのクロック入力によってカウントを開
始する(ステップ101→102)。設定数をカウント
アップした時点(ステップ103)でカウンタをリセッ
トし(ステップ104)、アドレスDT0のデータをD
T1へ転送した後に、時計機能用LSI2から現在の日
付、時刻データを読込んでDT0へ書込む(ステップ1
05)。
The clock counter of the main CPU 1 is preset with a clock count number corresponding to an arbitrary time. Further, when the time is set in the clock function LSI 2 via the input unit 5, the main CPU 1 writes the set time in the address DT0 of the RAM 7. Then, counting is started by the clock input from the reference clock generating unit 6 (step 101 → 102). When the set number is counted up (step 103), the counter is reset (step 104), and the data at the address DT0 is changed to D.
After transferring to T1, the current date and time data is read from the clock function LSI 2 and written to DT0 (step 1
05).

【0010】続いて、今回の時刻データDT0から前回
の時刻データDT1を減算して間隔時間データを算出し
(ステップ106)、設定クロックカウント数÷基準ク
ロック周波数から求められる基準時間と間隔時間データ
とを比較し、日付及び時刻データの正誤を判断する(ス
テップ107)。ここで、間隔時間データが基準時間と
一致するか、或いは偏差が読込み時間及び時計機能用L
SI2の性能を考慮した許容誤差範囲内であれば正常と
判断して終了し、再びステップ101から自動修正プロ
グラムを実行する。また、偏差が許容範囲外の場合はメ
インCPU1がリセット制御部8を駆動し、時計機能用
LSI2をリセットして再スタートさせる(ステップ1
08)。そして、DT1に格納されている前回の時刻デ
ータに基準時間を加算して現在の日付及び時刻データT
を算出し(ステップ109)、時計機能用LSI2の現
在時刻を設定(ステップ110)して時刻修正を終了
し、再びステップ101からのプログラムを実行する。
Then, the previous time data DT1 is subtracted from the current time data DT0 to calculate the interval time data (step 106), and the reference time and the interval time data obtained from the set clock count number / the reference clock frequency are calculated. To determine whether the date and time data are correct (step 107). Here, the interval time data matches the reference time, or the deviation is the reading time and the clock function L.
If it is within the allowable error range considering the performance of SI2, it is determined to be normal and the process ends, and the automatic correction program is executed again from step 101. If the deviation is out of the allowable range, the main CPU 1 drives the reset control unit 8 to reset the clock function LSI 2 and restart it (step 1).
08). Then, the reference time is added to the previous time data stored in DT1 to obtain the current date and time data T
Is calculated (step 109), the current time of the clock function LSI 2 is set (step 110), the time adjustment is completed, and the program from step 101 is executed again.

【0011】このようにして一定間隔で時計機能用LS
I2の時刻データから求めた経過時間データと基準クロ
ックから求めた基準時間とを比較し、経過時間データと
基準時間とが一致しない場合は、前回の時刻データに基
準時間を加算して現在時刻データを算出し、このデータ
を時計機能用LSI2にセットする。従って、時計機能
用LSI2の動作は、自動的に基準クロック発生部6の
基準クロック精度に等しく管理される。
In this way, the LS for the clock function is set at regular intervals.
The elapsed time data obtained from the time data of I2 is compared with the reference time obtained from the reference clock. If the elapsed time data and the reference time do not match, the reference time is added to the previous time data to obtain the current time data. Is calculated, and this data is set in the clock function LSI 2. Therefore, the operation of the clock function LSI 2 is automatically controlled to be equal to the reference clock accuracy of the reference clock generation unit 6.

【0012】図3は他の実施例を示し、ここでは一定間
隔で動作状態監視用のクロックパルスを発信する形式の
時計機能用LSIを使用し、そのクロックパルスを利用
するように構成している。メインCPU1のメモリに
は、予め時計機能用LSI2のクロックパルス間隔に相
当する基準クロック発生部6のクロックパルス数が基準
数として設定されている。
FIG. 3 shows another embodiment. Here, a clock function LSI of the type that transmits a clock pulse for operating state monitoring at a constant interval is used, and the clock pulse is used. . In the memory of the main CPU 1, the number of clock pulses of the reference clock generation unit 6 corresponding to the clock pulse interval of the clock function LSI 2 is set in advance as the reference number.

【0013】先ず、メインCPU1は、時計機能用LS
I2のクロックパルスが入力されると基準クロックのカ
ウントを開始し、時計機能用LSI2から次のクロック
パルスが入力されるまで基準クロックをカウントする
(ステップ201→204)。次のクロックパルスが入
力された時点でカウントを停止してカウント数を読込
み、カウンタをリセットする(ステップ205)。
First, the main CPU 1 is an LS for clock function.
When the clock pulse of I2 is input, the reference clock starts counting, and the reference clock is counted until the next clock pulse is input from the clock function LSI 2 (step 201 → 204). When the next clock pulse is input, counting is stopped, the count number is read, and the counter is reset (step 205).

【0014】続いて、アドレスDT0のデータをDT1
へ転送した後に、時計機能用LSI2から現在の日付、
時刻データを読込んでDT0へ書込む(ステップ20
6)。そして、実際にカウントしたクロックパルス数と
基準数とを比較し(ステップ207)、両者が一致、若
しくは許容範囲内であれば時計機能用LSI2は正常動
作していると判断して終了する。
Then, the data at the address DT0 is changed to DT1.
To the current date from the clock function LSI2.
Read time data and write to DT0 (step 20)
6). Then, the number of clock pulses actually counted is compared with the reference number (step 207), and if both match or are within the allowable range, it is determined that the clock function LSI 2 is operating normally, and the process ends.

【0015】比較結果が一致せず、その偏差が許容範囲
外の場合は、時計機能用LSI2のクロックパルス間隔
が動作異常を示していると判断し、設定されている基準
クロックの基準数から求められる基準時間とアドレスD
T1に格納されている前回の時刻データを加算して現在
の日付及び時刻データTを算出し(ステップ209)、
時計機能用LSI2の現在時刻を設定(ステップ21
0)して時刻修正を終了する。
If the comparison results do not match and the deviation is outside the allowable range, it is determined that the clock pulse interval of the clock function LSI 2 indicates an abnormal operation, and it is obtained from the reference number of set reference clocks. Reference time and address D
The previous time data stored in T1 is added to calculate the current date and time data T (step 209),
Set the current time of the clock function LSI 2 (step 21
0) and the time adjustment is completed.

【0016】尚、ステップ207は、図2の実施例と同
様に今回の時刻データDT0から前回の時刻データDT
1を減算して経過時間データを算出し、クロックパルス
の設定基準数から求められる基準時間と経過時間データ
とを比較するように構成してもよい。また、時計機能用
LSIによっては図2のステップ108並びに図3のス
テップ208を省略し、リセットしないで現在時刻デー
タTをセットすることもできる。また、上記一実施例は
タイムレコーダについて説明したが、他の時計機能を内
蔵する装置についても適用できることは当然である。
Incidentally, in the step 207, as in the embodiment of FIG.
The elapsed time data may be calculated by subtracting 1 and the reference time obtained from the set reference number of clock pulses may be compared with the elapsed time data. Depending on the timepiece LSI, step 108 in FIG. 2 and step 208 in FIG. 3 may be omitted and the current time data T may be set without resetting. Further, although the one embodiment has been described with respect to the time recorder, it is needless to say that it can be applied to a device having another clock function.

【0017】[0017]

【発明の効果】この発明は上記一実施例において詳述し
たように、時計機能用LSIの動作を監視し、別の基準
クロックによる基準時間に対して偏差が生じたときは自
動的に基準時間に基づく時刻を再設定するので、使用者
が手を下すことなく基準クロック精度に維持され、信頼
性の向上に寄与できる。
As described in detail in the above embodiment, the present invention monitors the operation of the clock function LSI, and automatically detects the reference time when a deviation occurs with respect to the reference time by another reference clock. Since the time based on is reset, the accuracy of the reference clock is maintained without the user's hand, and the reliability can be improved.

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

【図1】本発明の一実施例を示すタイムレコーダのブロ
ック図。
FIG. 1 is a block diagram of a time recorder showing an embodiment of the present invention.

【図2】自動時刻修正装置の制御手順を示すフローチャ
ート。
FIG. 2 is a flowchart showing a control procedure of the automatic time adjustment device.

【図3】他の実施例の制御手順を示すフローチャート。FIG. 3 is a flowchart showing a control procedure of another embodiment.

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

1 メインCPU 2 時計機能用LSI 3 表示部 4 印字部 5 入力部 6 基準クロック発生部 7 RAM 8 リセット制御部 1 Main CPU 2 Clock Function LSI 3 Display Section 4 Printing Section 5 Input Section 6 Reference Clock Generation Section 7 RAM 8 Reset Control Section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 時計機能用LSIの時刻セット機能を有
する処理装置と基準クロック発生部とからなり、所定の
読込み間隔で前記時計機能用LSIから逐次時刻データ
を読込み記憶する手段と、時計機能用LSIにおける前
記読込み間隔の計時結果を基準クロック数に基づく基準
値と比較する手段と、前回の時刻データに前記基準値か
ら求められる基準時間を加算して現在時刻データを算出
する手段と、前記比較手段の比較結果に応じて前記現在
時刻データを時計機能用LSIへセットする手段を設け
たディジタル時計に於ける自動時刻修正装置。
1. A clock function LSI comprising a processor having a time setting function and a reference clock generator, and means for sequentially reading and storing time data from the clock function LSI at a predetermined read interval, and a clock function A means for comparing the timing result of the read interval in the LSI with a reference value based on a reference clock number; a means for adding the reference time obtained from the reference value to the previous time data to calculate the current time data; An automatic time adjustment device in a digital timepiece provided with means for setting the present time data in a timepiece LSI according to the comparison result of the means.
JP33763392A 1992-12-17 1992-12-17 Automatic time corrector for digital timepiece Pending JPH06186358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33763392A JPH06186358A (en) 1992-12-17 1992-12-17 Automatic time corrector for digital timepiece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33763392A JPH06186358A (en) 1992-12-17 1992-12-17 Automatic time corrector for digital timepiece

Publications (1)

Publication Number Publication Date
JPH06186358A true JPH06186358A (en) 1994-07-08

Family

ID=18310496

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33763392A Pending JPH06186358A (en) 1992-12-17 1992-12-17 Automatic time corrector for digital timepiece

Country Status (1)

Country Link
JP (1) JPH06186358A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012013548A (en) * 2010-06-30 2012-01-19 Kyocera Mita Corp Image forming device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012013548A (en) * 2010-06-30 2012-01-19 Kyocera Mita Corp Image forming device

Similar Documents

Publication Publication Date Title
US20120166138A1 (en) Real time clock and method for recording data in real time clock
JPH06186358A (en) Automatic time corrector for digital timepiece
JPH0870415A (en) Electronic equipment
JP4711546B2 (en) Temperature correction method for real-time clock and processing device provided with real-time clock
JP2720756B2 (en) Heater control device
JP2896004B2 (en) Calendar iC correction method
JPH0588785A (en) Reset circuit
JP3224554B2 (en) Schedule control device
JP2001285972A (en) Remote control reception circuit and microcomputer
JP5037755B2 (en) Temperature change measuring apparatus and method
JP3092199B2 (en) Timer
JPH0784666A (en) Control device for intermittent operation of cpu
JP2642779B2 (en) Timing device with clock hold circuit
JPH0415515B2 (en)
JPS61145619A (en) Time correction system of electronic computer system
KR100257597B1 (en) Watch dog timer circuit
JPS62164200A (en) Traffic signal controller
JP4826433B2 (en) Timer start circuit
JP2555481B2 (en) Alarm clock
JPH05134059A (en) Time correcting method
JP3144811B2 (en) Monitoring timer circuit
JP2605440B2 (en) Data processing device
JP2731386B2 (en) Control device
JPS60160424A (en) Initial value setting method of timer
JP2004334577A (en) Timer device