JP2003270371A - Clock device in computer system - Google Patents

Clock device in computer system

Info

Publication number
JP2003270371A
JP2003270371A JP2002068136A JP2002068136A JP2003270371A JP 2003270371 A JP2003270371 A JP 2003270371A JP 2002068136 A JP2002068136 A JP 2002068136A JP 2002068136 A JP2002068136 A JP 2002068136A JP 2003270371 A JP2003270371 A JP 2003270371A
Authority
JP
Japan
Prior art keywords
time
clock
timepiece
division ratio
computer system
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
JP2002068136A
Other languages
Japanese (ja)
Inventor
Masanori Yamane
政憲 山根
Tomoji Ito
知二 伊藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2002068136A priority Critical patent/JP2003270371A/en
Publication of JP2003270371A publication Critical patent/JP2003270371A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a systematically well-matched clock device in a computer system, not generating inverted phenomenon or jump of a time. <P>SOLUTION: A first clock 12a counts the output of a first frequency dividing circuit 14a wherein an originated frequency of a clock of an oscillator 13 is divided by a prescribed frequency dividing ratio, and ticks for external processing. A second clock 12b counts the output of a second frequency dividing circuit 14b wherein the originated frequency of the clock of the oscillator 13 is divided by a prescribed frequency dividing ratio, and ticks for internal processing. A time correction processing part 15 corrects times of the first clock 12a and the second clock 12b to the reference time of a reference clock 17. Thereby, time correction of the first clock 12a is performed so as to be fit for the external processing, and time correction of the second clock 12b is performed so as to be fit for the internal processing. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムを構成する各装置の処理時刻を刻むコンピュータシ
ステムの時計装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timepiece device of a computer system that keeps a processing time of each device constituting the computer system.

【0002】[0002]

【従来の技術】コンピュータシステム内には複数個の時
計が設けられ個々の装置やシステム全体の処理時刻の管
理をしている。複数個の時計は、LANを跨いだステー
ションごとに持つこともあるし、あるいはLANに関係
無く一つの装置内に複数個の時計を持つこともある。例
えば、一つの装置内に複数個の演算処理装置(CPU)
を持つ場合には、時計もそれらのCPUごとに持つこと
が多い。さらに、一つのCPUの管理装置内にも時計専
用ICと一定周期の処理により作成(管理)される時計
を持つこともある。
2. Description of the Related Art A plurality of clocks are provided in a computer system to manage the processing time of each device or the entire system. A plurality of clocks may be provided for each station across the LAN, or a plurality of clocks may be provided in one device regardless of the LAN. For example, multiple arithmetic processing units (CPU) in one device
In many cases, a clock is also provided for each CPU. Further, the management device of one CPU may also have an IC for exclusive use of a clock and a clock created (managed) by processing of a fixed period.

【0003】ステーションが異なれば当然のことなが
ら、同じ装置内の複数個の時計間においても時計ごとに
別々のクロック源(例えば、水晶発振器)を持つことが
多い。これらのクロックの間には必ず精度差が生ずるの
で、これらの時計間には精度の大小の違いはあるが必ず
時刻差がでてくる。時刻差があるとシステム上さまざま
な不都合が生ずる。そのため、連続運転(または長期間
運転)する装置ではこの時刻差が問題とならない範囲内
に収まるよう管理されている。つまり、これらの時計間
で時刻合わせをするようにしている。
As a matter of course, if the stations are different, a plurality of clocks in the same device often have different clock sources (for example, crystal oscillators) for each clock. Since there is always a difference in precision between these clocks, there is a difference in precision between these clocks, but there is always a time difference. The time difference causes various inconveniences in the system. Therefore, in a device that operates continuously (or operates for a long period of time), this time difference is managed so as to be within a range that does not cause a problem. That is, the time is adjusted between these clocks.

【0004】時計間の時刻差を一定範囲内に収める方法
として、一定時間間隔、または時刻差が一定値以上なっ
たら、どれかの時計の時刻を基準として時刻合わせ(補
正)をするようにしている。この場合、時刻合わせをか
けるときには、基準となる値を補正をかける時計に書込
む方法をとっている。
As a method of keeping the time difference between clocks within a certain range, when a certain time interval or a time difference becomes a certain value or more, time adjustment (correction) is performed with reference to the time of any one of the clocks. There is. In this case, when the time is adjusted, the reference value is written in the timepiece to be corrected.

【0005】例えば、基準となる時計(基準時計)の値
が「2001年9月22日11時28分28分10秒」で
あり、補正される側の時計(処理時計)の値が「200
1年9月22日11時28分28分15秒」であった場
合、秒を書き換え「10秒」とする。このようにして時刻
補正をし、処理時計を基準時計の時刻に合わせるように
している。
For example, the value of the reference clock (reference clock) is "September 22, 2001 11: 28: 28: 10", and the value of the corrected clock (process clock) is "200".
In the case of 11: 28: 28: 15 on September 22, 1st, the second is rewritten to "10 seconds". In this way, the time is corrected and the processed clock is adjusted to the time of the reference clock.

【0006】[0006]

【発明が解決しようとする課題】ところが、処理時計が
基準時計より進んでいる場合には時間の戻しが発生し、
処理時計が基準時計より遅れている場合には時間の飛び
越しが発生する。
However, when the processing clock is ahead of the reference clock, the time is set back.
If the processing clock is behind the reference clock, a time jump occurs.

【0007】例えば、処理時計が基準時計より5秒進ん
でいる状態で時刻補正をかけた場合には、5秒の時間の
戻しが発生する。時刻の補正が「15秒」から「10
秒」に補正されたとすると、処理時計の秒の値だけを1
秒おきにみていると下記のようになる。
For example, when the time is corrected while the processing clock is ahead of the reference clock by 5 seconds, the time is returned by 5 seconds. Time correction from "15 seconds" to "10
If it is corrected to "second", only the second value of the processing clock is set to 1
It looks like the following every second.

【0008】 つまり、補正前の時間である前半の下線部と補正後の時
間である後半の下線部との時間が重複することになり不
都合が生ずる。例えば、ある時刻にデータ収集処理が行
われる場合、同じ時刻を2度通過するので、時刻修正に
より、再度、データ収集をしてしまい、先に保存した記
憶エリアヘ上書きすることになる。記憶エリアヘ保存す
る情報がアナログ信号やディジタル信号のように収集時
刻のデータ(瞬時値)であればさしたる問題とならない
が、前回の収集時刻から今回の収集時刻までの増分値を
記憶する場合は、誤った増分値を記憶(上書き)する事
態となる。
[0008] That is, the underlined portion in the first half, which is the time before correction, and the underlined portion in the latter half, which is the time after correction, overlap with each other, which causes a problem. For example, when the data collection processing is performed at a certain time, the same time is passed twice, so the data is collected again by the time correction, and the previously stored storage area is overwritten. If the information to be stored in the storage area is the data (instantaneous value) of the collection time such as analog signal or digital signal, it will not cause any problem, but when storing the increment value from the last collection time to the current collection time, A situation will occur in which an incorrect increment value is stored (overwritten).

【0009】また、処理時計が基準時計より5秒遅れて
いる状態で補正をかけた場合には、5秒の時間の飛び越
しが発生する。時刻の補正が「5秒」から「10秒」に
補正されたとすると、処理時計の秒の値だけを1秒おき
にみていると下記のようになる。
Further, if the correction is applied in a state where the processing clock is delayed by 5 seconds from the reference clock, a jump of 5 seconds occurs. Assuming that the time correction is corrected from "5 seconds" to "10 seconds", the following is the case where only the seconds value of the processing clock is seen every 1 second.

【0010】 特に、時間と共にデータ収集する機能が存在するシステ
ムの場合は、時刻の飛び越しが発生すると、飛び越した
時刻に収集するデータがある場合には、その時刻のデー
タが欠落するという不都合が生ずる。
[0010] In particular, in the case of a system having a function of collecting data with time, if a time jump occurs, if there is data to be collected at the jumped time, the data at that time will be lost.

【0011】そこで、時間の戻し(時刻の逆転現象)に
対しては、時刻修正に伴う時間幅を求め、その時間幅が
大きい場合は既に記憶済み(第1回目)のデータを無効
とし、第2回目のデータを有効とすることが行われる。
すなわち、第2回目の収集時刻を通過する際に、たとえ
収集済みデータであっても、再度データを収集して既に
記憶済みエリアヘ上書きする。一方、時間幅が小さい場
合には、既に記憶済み(第1回目の収集した)データを
有効として、2回目の収集時刻では何ら処理しない方法
が取られることが多い。また、時間の飛び越しの場合、
飛び越してしまう時刻の処理をまとめて処理することに
なる。
Therefore, for the time return (time reversal phenomenon), the time width associated with the time adjustment is calculated. If the time width is large, the already stored (first time) data is invalidated, and the The second data is validated.
That is, when passing the second collection time, even if the data is already collected, the data is collected again and overwritten in the already stored area. On the other hand, when the time width is small, a method is often used in which the already stored (first collected) data is valid and no processing is performed at the second collection time. Also, if you are jumping in time,
It means that the processing of the time to jump over is processed collectively.

【0012】このように時刻の逆転現象や飛び越しに伴
うプログラム処理が煩雑になってしまう。また、時間と
共にそのときの動作を記録(履歴)している場合、時刻
補正を挟んだ2つの動作の時刻差は、動作記録だけをみ
た限りでは知ることができない。時刻の補正をこまめに
行うと上記の不都合が防げるが、そのための処理量が多
くなり、他の真に必要な処理が圧迫される。
As described above, the program processing associated with the time inversion phenomenon and the jump is complicated. Further, when the operation at that time is recorded (history) with time, the time difference between the two operations with the time correction interposed cannot be known only by looking at the operation record. If the time is corrected frequently, the above inconvenience can be prevented, but the processing amount for that purpose is increased, and other truly necessary processing is stressed.

【0013】本発明の目的は、時刻の逆転現象や飛び越
しを起こすことなくシステム的に調和のとれたコンピュ
ータシステムの時計装置を提供することである。
An object of the present invention is to provide a timepiece device for a computer system that is systematically harmless without causing a time reversal phenomenon or a jump.

【0014】[0014]

【課題を解決するための手段】請求項1の発明に係るコ
ンピュータシステムの時計装置は、所定の発信周波数で
クロックを発振する発振器と、前記発振器のクロックの
発信周波数を所定の分周比で分周する第1の分周回路
と、前記第1の分周回路の出力を計数し外部処理用の時
刻を刻む第1の時計と、前記発振器のクロックの発信周
波数を所定の分周比で分周する第2の分周回路と、前記
第2の分周回路の出力を計数し内部処理用の時刻を刻む
第2の時計と、前記第1の時計および第2の時計の時刻
を修正する時刻修正処理部とを備えたことを特徴とす
る。
According to another aspect of the present invention, there is provided a timepiece device for a computer system, wherein an oscillator for oscillating a clock at a predetermined oscillation frequency and an oscillation frequency of the clock of the oscillator are divided by a predetermined division ratio. A first frequency dividing circuit for dividing the frequency, a first clock for counting the output of the first frequency dividing circuit and marking a time for external processing, and a frequency of oscillation of the clock of the oscillator divided by a predetermined frequency division ratio. A second frequency divider circuit that performs a frequency division, a second clock that counts the output of the second frequency divider circuit and marks the time for internal processing, and the times of the first clock and the second clock are corrected. And a time correction processing unit.

【0015】請求項1の発明に係るコンピュータシステ
ムの時計装置においては、第1の時計は、発振器のクロ
ックの発信周波数を所定の分周比で分周した第1の分周
回路の出力を計数して外部処理用の時刻を刻み、第2の
時計は、発振器のクロックの発信周波数を所定の分周比
で分周した第2の分周回路の出力を計数して内部処理用
の時刻を刻む。そして、時刻修正処理部は、第1の時計
および第2の時計の時刻を基準時計の基準時刻に修正す
る。これにより、第1の時計と第2の時計とは独立して
時刻修正することが可能となり、第1の時計は外部処理
用に適したように時刻修正し、第2の時計は内部処理用
に適した時刻修正を行う。
In the timepiece device of the computer system according to the first aspect of the present invention, the first timepiece counts the output of the first frequency dividing circuit obtained by dividing the oscillation frequency of the clock of the oscillator by a predetermined frequency division ratio. The second clock counts the output of the second frequency divider circuit, which is obtained by dividing the oscillation frequency of the clock of the oscillator by a predetermined dividing ratio, and sets the time for internal processing. Carve. Then, the time correction processing unit corrects the times of the first clock and the second clock to the reference time of the reference clock. This makes it possible to adjust the time independently of the first clock and the second clock, the first clock corrects the time to be suitable for external processing, and the second clock adjusts for internal processing. Adjust the time suitable for.

【0016】請求項2の発明に係るコンピュータシステ
ムの時計装置は、請求項1の発明において、前記時刻修
正処理部は、時刻修正開始時点となったときは第1の時
計については分周比を固定にしたまま時刻修正開始時点
の基準時刻に即時に修正し、第2の時計については時刻
修正開始時点の基準時計との時刻ずれを考慮した分周比
で動作させて一定の比率で徐々に第2の時計の時刻を修
正し第2の時計の時刻が第1の時計の時刻と一致したら
第2の時計の分周比を第1の時計の分周比と同じにする
ことを特徴とする。
According to a second aspect of the present invention, there is provided a timepiece device for a computer system according to the first aspect of the invention, wherein the time adjustment processing unit sets a frequency division ratio for the first timepiece when the time adjustment start time comes. Immediately adjust the reference time at the time of the time adjustment start, while keeping it fixed, and operate the second clock at a division ratio that takes into account the time deviation from the reference clock at the time adjustment start time and gradually When the time of the second clock is corrected and the time of the second clock matches the time of the first clock, the division ratio of the second clock is made the same as the division ratio of the first clock. To do.

【0017】請求項2の発明に係るコンピュータシステ
ムの時計装置においては、請求項1の発明の作用に加
え、時刻修正処理部は、第1の時計については第1の分
周回路の分周比を固定にしたまま、第1の時計の時刻を
時刻修正開始時点の基準時刻に即時に修正する。一方、
第2の時計については時刻修正開始時点の基準時計との
時刻ずれを考慮した分周比で動作させて一定の比率で徐
々に第2の時計の時刻を修正する。そして、第2の時計
の時刻が第1の時計の時刻と一致したら第2の時計の分
周比を第1の時計の分周比と同じにする。これにより、
内部処理用の第2の時計は、一定の比率で徐々に時刻修
正されるので、時刻の逆転現象や飛び越しを起こすこと
がなくなる。
In a timepiece device of a computer system according to a second aspect of the invention, in addition to the operation of the first aspect of the invention, the time correction processing section has a frequency division ratio of the first frequency dividing circuit for the first timepiece. The time of the first clock is immediately corrected to the reference time at the time of starting the time correction while keeping the fixed. on the other hand,
The second timepiece is operated at a frequency division ratio in consideration of the time difference from the reference timepiece at the time of starting the time adjustment, and the time of the second timepiece is gradually adjusted at a constant ratio. Then, when the time of the second clock matches the time of the first clock, the frequency division ratio of the second clock is made the same as the frequency division ratio of the first clock. This allows
The second clock for internal processing adjusts the time gradually at a constant rate, so that the time inversion phenomenon and the jump are prevented.

【0018】請求項3の発明に係るコンピュータシステ
ムの時計装置は、請求項2の発明において、前記時刻修
正処理部は、前記第2の時計が時刻の修正中であるとき
は、定期的に特定の処理を行うプログラムが動作する時
間帯は、通常動作時の分周比へ戻して前記第2の時計を
動作させることを特徴とする。
According to a third aspect of the present invention, there is provided a timepiece device for a computer system according to the second aspect, wherein the time adjustment processing unit periodically specifies when the second timepiece is adjusting the time. The second timepiece is operated by returning the frequency division ratio during the normal operation to the time zone in which the program for performing the process of (1) operates.

【0019】請求項3の発明に係るコンピュータシステ
ムの時計装置においては、請求項2の発明の作用に加
え、時刻修正処理部は、定期的に特定の処理を行うプロ
グラムが動作するときは、通常動作時の分周比で時刻を
刻むので処理プログラムの演算処理に支障を来すことが
ない。
In the timepiece device of the computer system according to the third aspect of the invention, in addition to the operation of the second aspect of the invention, the time adjustment processing section is normally operated when a program for periodically performing a specific operation operates. Since the time is divided by the frequency division ratio during operation, the arithmetic processing of the processing program is not hindered.

【0020】請求項4の発明に係るコンピュータシステ
ムの時計装置は、請求項2の発明において、前記時刻修
正処理部は、予め前記時刻修正処理部に設定された時刻
修正開始時点で前記第1の時計の時刻を修正し、前記時
刻修正開始時点が定期的に特定の処理を行うプログラム
の動作時間帯であるときは、その時間帯を経過した後に
前記第2の時計の時刻を修正することを特徴とする。
According to a fourth aspect of the present invention, there is provided a timepiece device for a computer system according to the second aspect, wherein the time adjustment processing section is the first time adjustment start point preset in the time adjustment processing section. If the time of the clock is corrected and the time adjustment start time point is the operating time zone of the program that periodically executes the specific processing, the time of the second clock is corrected after the time zone has elapsed. Characterize.

【0021】請求項4の発明に係るコンピュータシステ
ムの時計装置においては、請求項2の発明の作用に加
え、時刻修正処理部は、予め定められた時刻修正開始時
点になったときに時刻修正動作を開始する。この場合、
時刻修正開始時点が定期的に特定の処理を行うプログラ
ムの動作時間帯であるときは、その時間帯を経過した後
に前記第2の時計の時刻を修正する。これにより、処理
プログラムの動作に使用を与えないようにしている。
In the timepiece device of the computer system according to the fourth aspect of the invention, in addition to the operation of the second aspect of the invention, the time adjustment processing section causes the time adjustment operation to be performed when a predetermined time adjustment start time is reached. To start. in this case,
When the time adjustment start time point is the operation time zone of the program that periodically executes the specific process, the time of the second clock is adjusted after the time zone has elapsed. As a result, the operation of the processing program is prevented from being used.

【0022】請求項5の発明に係るコンピュータシステ
ムの時計装置は、請求項2の発明において、前記時刻修
正処理部は、第2の時計の時刻修正を行うときは、次の
時刻修正の時刻あるいはその近傍の時刻に時刻修正が完
了するような分周比で前記第2の時計を動作させること
を特徴とする。
According to a fifth aspect of the present invention, there is provided a timepiece device for a computer system according to the second aspect, wherein the time adjustment processing section adjusts the time of the second timepiece to the time of the next time adjustment or It is characterized in that the second timepiece is operated at a frequency division ratio such that the time adjustment is completed at a time near that time.

【0023】請求項5の発明に係るコンピュータシステ
ムの時計装置においては、請求項2の発明の作用に加
え、時刻修正処理部は、次の時刻修正の時刻あるいはそ
の近傍の時刻に時刻修正が完了するような分周比で第2
の時計を動作させる。これにより、時刻修正期間の時刻
と基準時計の時刻との時刻の刻みの誤差が小さくなる。
In the timepiece device of the computer system according to the invention of claim 5, in addition to the operation of the invention of claim 2, the time adjustment processing section completes the time adjustment at the time of the next time adjustment or a time in the vicinity thereof. Second with a division ratio that
Operate the clock. As a result, the error in time increments between the time of the time adjustment period and the time of the reference clock becomes small.

【0024】請求項6の発明に係るコンピュータシステ
ムの時計装置は、請求項1の発明において、前記基準時
計はコンピュータシステムを構成する個々の装置ごと、
あるいはシステムのホストに設けられたことを特徴とす
る。
According to a sixth aspect of the present invention, there is provided a timepiece device of a computer system according to the first aspect of the invention, wherein the reference timepiece is each device constituting the computer system,
Alternatively, it is provided in the host of the system.

【0025】請求項6の発明に係るコンピュータシステ
ムの時計装置においては、請求項1の発明の作用に加
え、システムのホストに基準時計がある場合には基準時
刻は伝送手段を介して時刻修正処理部に入力され、個々
の装置に基準時計を有している場合には個々の基準時計
から時刻修正処理部に基準時刻が入力される。
In the timepiece device of the computer system according to the invention of claim 6, in addition to the operation of the invention of claim 1, when the host of the system has a reference clock, the reference time is adjusted by the transmission means. When each device has a reference clock, the reference time is input from each reference clock to the time adjustment processing unit.

【0026】請求項7の発明に係るコンピュータシステ
ムの時計装置は、請求項1の発明において、前記第1の
時計には停電時にも電源を供給するバッテリを設け、前
記第1の時計は停電時でも時刻を刻み、前記第2の時計
は停電時には停止し停電時の時刻を保存することを特徴
とする。
According to a seventh aspect of the present invention, there is provided a timepiece device for a computer system according to the first aspect, wherein the first timepiece is provided with a battery that supplies power even during a power outage. However, it is characterized in that the second clock is stopped at the time of power failure and the time at the time of power failure is saved.

【0027】請求項7の発明に係るコンピュータシステ
ムの時計装置においては、請求項1の発明の作用に加
え、停電時には第1の時計バッテリからの電源で時刻を
刻み、第2の時計は停止して停電発生したときの時刻を
保存する。
In the timepiece device of the computer system according to the invention of claim 7, in addition to the operation of the invention of claim 1, at the time of a power failure, the time is ticked by the power source from the first clock battery and the second clock is stopped. Save the time when the power failure occurred.

【0028】請求項8の発明に係るコンピュータシステ
ムの時計装置は、請求項7の発明において、前記時刻修
正処理部は、停電からの復電時には前記第1の時計の時
刻を前記基準時計の時刻に合わせることを特徴とする。
According to an eighth aspect of the present invention, in the timepiece device of the computer system according to the seventh aspect, the time correction processing unit sets the time of the first clock to the time of the reference clock when the power is restored from a power failure. It is characterized by matching with.

【0029】請求項8の発明に係るコンピュータシステ
ムの時計装置においては、請求項7の発明の作用に加
え、停電からの復電時には、時刻修正処理部は第1の時
計の時刻を基準時計の時刻に合わせる。これにより復電
時には必ず基準時刻に時刻合わせが行われる。
In the timepiece device of the computer system according to an eighth aspect of the present invention, in addition to the operation of the seventh aspect of the invention, the time correction processing unit sets the time of the first timepiece as the reference time when the power is restored from a power failure. Set to the time. As a result, when power is restored, the time is always adjusted to the reference time.

【0030】請求項9の発明に係るコンピュータシステ
ムの時計装置は、請求項1の発明において、前記時刻修
正処理部は、電源投入時に前記第1の時計の時刻と前記
第2の時計の時刻とに時刻ずれがある場合は、第1の時
計と第2の時計との時刻ずれを考慮した分周比で第2の
時計を動作させて一定の比率で徐々に第2の時計の時刻
を修正し第2の時計の時刻が第1の時計の時刻と一致し
たら第2の時計の分周比を第1の時計の分周比と同じに
することを特徴とする。
According to a ninth aspect of the present invention, there is provided a timepiece device of a computer system according to the first aspect, wherein the time adjustment processing unit sets the time of the first clock and the time of the second clock at the time of power-on. If there is a time lag in the clock, the second clock is operated at a division ratio that takes the time lag between the first clock and the second clock into consideration, and the time of the second clock is gradually corrected at a constant rate. When the time of the second clock matches the time of the first clock, the frequency division ratio of the second clock is set to be the same as the frequency division ratio of the first clock.

【0031】請求項9の発明に係るコンピュータシステ
ムの時計装置においては、請求項1の発明の作用に加
え、電源投入時に第1の時計の時刻と第2の時計の時刻
とに時刻ずれがある場合は、時刻修正処理部は、第1の
時計と第2の時計との時刻ずれを考慮した分周比で第2
の時計を動作させる。これにより、一定の比率で徐々に
第2の時計の時刻を修正する。そして、第2の時計の時
刻が第1の時計の時刻と一致したら第2の時計の分周比
を第1の時計の分周比と同じにする。これにより、電源
投入時には必ず第1の時計と第2の時計の時刻合わせが
行われる。
In the timepiece device of the computer system according to the ninth aspect of the invention, in addition to the operation of the first aspect of the invention, there is a time lag between the time of the first clock and the time of the second clock when the power is turned on. In this case, the time adjustment processing unit determines the second frequency division ratio based on the time division between the first clock and the second clock.
Operate the clock. As a result, the time of the second clock is gradually corrected at a constant rate. Then, when the time of the second clock matches the time of the first clock, the frequency division ratio of the second clock is made the same as the frequency division ratio of the first clock. As a result, the time of the first clock and the time of the second clock are always set when the power is turned on.

【0032】請求項10の発明に係るコンピュータシス
テムの時計装置は、請求項9の発明において、前記時刻
修正処理部は、電源投入時に前記第1の時計の時刻と前
記第2の時計の時刻との時刻ずれが所定値より大きいと
きは、前記第2の時計の時刻を第1の時計の時刻に即座
に合わせることを特徴とする。
According to a tenth aspect of the present invention, there is provided a timepiece device for a computer system according to the ninth aspect, wherein the time adjustment processing unit sets the time of the first clock and the time of the second clock at the time of power-on. When the time shift of is larger than a predetermined value, the time of the second clock is immediately adjusted to the time of the first clock.

【0033】請求項10の発明に係るコンピュータシス
テムの時計装置においては、請求項9の発明の作用に加
え、電源投入時に第1の時計の時刻と第2の時計の時刻
との時刻ずれが所定値より大きいときは、時刻が途切れ
がないように時刻を修正しても処理プログラムによる演
算結果の信頼性が確保できないので、時刻修正処理部
は、第2の時計の時刻を第1の時計の時刻に即座に合わ
せる。
In the timepiece device of the computer system according to the invention of claim 10, in addition to the operation of the invention of claim 9, the time difference between the time of the first clock and the time of the second clock is predetermined when the power is turned on. When the value is larger than the value, the reliability of the calculation result by the processing program cannot be ensured even if the time is corrected so that the time is not interrupted. Therefore, the time correction processing unit sets the time of the second clock to that of the first clock. Set the time instantly.

【0034】[0034]

【発明の実施の形態】以下、本発明の実施の形態を説明
する。図1は本発明の実施の形態に係るコンピュータの
時計装置のブロック構成図である。この時計装置11は
コンピュータを構成する各装置ごとに設置される。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below. FIG. 1 is a block configuration diagram of a clock device of a computer according to an embodiment of the present invention. The clock device 11 is installed for each device constituting the computer.

【0035】時計装置11は、装置外部に対する外部処
理用の時刻を刻む第1の時計12aと、装置内部に対す
る内部処理用の時刻を刻む第2の時計12bとの2個の
処理時計を有している。この処理時計にはハードの時計
と一定周期の割込みを用いたソフトの時計とがある。
The clock device 11 has two processing clocks, a first clock 12a that keeps time for external processing with respect to the outside of the device and a second clock 12b that keeps time for internal processing with respect to the inside of the device. ing. This processing clock includes a hardware clock and a software clock using an interrupt of a fixed cycle.

【0036】発振器13は所定の発信周波数でクロック
を発振するものであり、例えば水晶発振器が用いられ
る。クロック源である水晶発振器の発信周波数はかなり
大きく、例えば、時計装置に用いる周波数は通常327
68Hzであり、演算処理装置(CPU)のクロックと
兼用する場合には、数MHz以上の発信周波数を持つも
のを用いる。本発明の実施の形態では、発振周波数とし
て10MHzのものを用いた場合について説明する。こ
の発振器12の出力は第1の分周回路14aおよび第2
の分周回路14bに入力される。
The oscillator 13 oscillates a clock at a predetermined oscillation frequency, and for example, a crystal oscillator is used. The oscillation frequency of the crystal oscillator, which is the clock source, is quite large. For example, the frequency used for a clock device is usually 327.
It is 68 Hz, and when it is also used as the clock of the arithmetic processing unit (CPU), one having an oscillation frequency of several MHz or higher is used. In the embodiment of the present invention, a case where an oscillation frequency of 10 MHz is used will be described. The output of the oscillator 12 is the first frequency divider circuit 14a and the second frequency divider circuit 14a.
Is input to the frequency dividing circuit 14b.

【0037】第1の分周回路14aは発振器13からの
クロックの発信周波数を所定の分周比で分周し第1の時
計12aに入力する。第1の時計12aは、第1の分周
回路14aの出力を計数して外部処理用の時刻を刻むこ
とになる。同様に、第2の分周回路14bは発振器13
からのクロックの発信周波数を所定の分周比で分周し第
2の時計12bに入力する。第2の時計12bは、第2
の分周回路14bの出力を計数して内部処理用の時刻を
刻むことになる。
The first frequency dividing circuit 14a divides the oscillation frequency of the clock from the oscillator 13 by a predetermined frequency dividing ratio and inputs it to the first clock 12a. The first clock 12a counts the output of the first frequency dividing circuit 14a and ticks the time for external processing. Similarly, the second frequency dividing circuit 14b is connected to the oscillator 13
The transmission frequency of the clock from is divided by a predetermined division ratio and input to the second clock 12b. The second clock 12b is the second
The output of the frequency dividing circuit 14b is counted to mark the time for internal processing.

【0038】ここで、第1の分周回路14aおよび第2
の分周回路14bの分周比は時刻修正処理部15から設
定され、第1の分周回路14aには固定値の分周比(例
えば出力が1Hzとなる分周比)が設定され、第2の分
周回路14bには時刻修正の度に可変の分周比が設定さ
れる。
Here, the first frequency dividing circuit 14a and the second frequency dividing circuit 14a
The frequency division ratio of the frequency division circuit 14b is set by the time correction processing unit 15, and the frequency division ratio of a fixed value (for example, the frequency division ratio at which the output is 1 Hz) is set in the first frequency division circuit 14a. A variable frequency division ratio is set in the second frequency divider circuit 14b each time the time is adjusted.

【0039】第1の時計12aは第1の分周回路14a
からの出力をカウントして年月日時分秒を得るようにな
っており、同様に、第2の時計12bは第2の分周回路
14bからの出力をカウントして年月日時分秒を得るよ
うになっている。第1の時計12aおよび第2の時計1
2bで得られた年月日時分秒は、時刻修正処理部15か
ら読み出すこともできるし、また時刻を設定することも
できるようになっている。この場合、年月日時分秒に加
え、ms単位まで有するものであっても良い。
The first clock 12a has a first frequency dividing circuit 14a.
The second clock 12b counts the output from the second frequency dividing circuit 14b to obtain the year / month / day / hour / minute / second. It is like this. First clock 12a and second clock 1
The year / month / day / hour / minute / second obtained in 2b can be read from the time correction processing unit 15 and the time can be set. In this case, in addition to the year, month, day, hour, minute, second, it may have a unit of ms.

【0040】時刻修正処理部15には、基準信号受信部
16を介して基準時計17が接続されており、この基準
時計17はシステムで代表となる例えばホストの局か
ら、各装置へ伝送線で接続される。なお、各装置にそれ
ぞれ基準時計17を設けても良い。
A reference clock 17 is connected to the time adjustment processing unit 15 via a reference signal receiving unit 16. The reference clock 17 is a system representative, for example, from a host station to each device via a transmission line. Connected. The reference clock 17 may be provided in each device.

【0041】次に、時刻修正処理部15での時刻修正の
処理内容について説明する。時刻修正処理部15は、デ
ータ収集等の処理プログラムが起動されることが少ない
真夜中、あるいは毎正時(XX:00分、1回/1時
間)に時刻修正を行う。この場合、時刻修正を行う時点
が処理プログラムの動作時間帯であるときは、その時間
帯を経過した後に第2の時計の時刻修正を開始する。こ
の時刻修正開示時点は予め時刻修正処理部15に設定さ
れている。
Next, the processing contents of the time adjustment in the time adjustment processing section 15 will be described. The time adjustment processing unit 15 adjusts the time at midnight when a processing program for data collection or the like is rarely activated or at every hour (XX: 00 minutes, once / hour). In this case, when the time at which the time adjustment is performed is in the operation time zone of the processing program, the time adjustment of the second clock is started after the time zone has elapsed. The time adjustment disclosure time point is preset in the time adjustment processing unit 15.

【0042】そして、外部処理用の第1の時計12aに
ついては、分周比を固定にしたまま時刻修正開始時点の
基準時刻に即時に修正し、内部処理用の第2の時計12
bについては、時刻修正開始時点の基準時計17との時
刻ずれを考慮した分周比で動作させて一定の比率で徐々
に第2の時計12bの時刻を修正する。
With respect to the first clock 12a for external processing, the second clock 12 for internal processing is immediately corrected to the reference time when the time adjustment is started with the frequency division ratio fixed.
As for b, the time of the second clock 12b is gradually adjusted at a constant ratio by operating at a frequency division ratio in consideration of the time difference from the reference clock 17 at the time of starting the time adjustment.

【0043】図2は外部処理用の第1の時計12aの時
刻修正の説明図であり、図2(a)は第1の時計12a
が基準時計17より進んでいる場合の時刻修正の仕方の
説明図、図2(b)は第1の時計12bが基準時計17
より遅れている場合の時刻修正の仕方の説明図である。
FIG. 2 is an explanatory diagram of the time correction of the first clock 12a for external processing, and FIG. 2A shows the first clock 12a.
2B is an explanatory view of how to adjust the time when the clock is ahead of the reference clock 17, FIG. 2B shows that the first clock 12b is the reference clock 17
It is explanatory drawing of the method of time adjustment when it is late.

【0044】図2(a)において、基準時計17は基準
時刻Trを刻んでおり、第1の時計12aは第1の処理
時刻T1を刻んでいるとする。また、時刻修正開始時点
T0での基準時計17の刻む基準時刻はTr1であり、
第1の時計12aがそれより進んだ時刻T11を刻んで
いるとする。この場合、時刻修正処理部15は第1の時
計12aの時刻を即座にT11からTr1に修正する。
この場合、第1の時計12aは即座に修正されることか
ら、時間の戻しが発生することになる。
In FIG. 2 (a), it is assumed that the reference clock 17 engraves the reference time Tr and the first clock 12a engraves the first processing time T1. Further, the reference time ticked by the reference clock 17 at the time adjustment start time T0 is Tr1,
It is assumed that the first clock 12a is ticking a time T11 which is ahead of that. In this case, the time correction processing unit 15 immediately corrects the time of the first clock 12a from T11 to Tr1.
In this case, since the first clock 12a is immediately corrected, the time is returned.

【0045】図2(b)において、基準時計17は基準
時刻Trを刻んでおり、第1の時計12aは第1の処理
時刻T1を刻んでいるとする。また、時刻修正開始時点
T0での基準時計17が刻む基準時刻はTr1であり、
第1の時計12aがそれより遅れた時刻T12を刻んで
いるとする。この場合、時刻修正処理部15は第1の時
計12aの時刻を即座にT12からTr1に修正する。
この場合、第1の時計12aは即座に修正されることか
ら、時間の飛び越しが発生することになる。
In FIG. 2 (b), it is assumed that the reference clock 17 engraves the reference time Tr and the first clock 12a engraves the first processing time T1. Further, the reference time ticked by the reference clock 17 at the time adjustment start time T0 is Tr1,
It is assumed that the first clock 12a is ticking a time T12 later than that. In this case, the time correction processing unit 15 immediately corrects the time of the first clock 12a from T12 to Tr1.
In this case, since the first clock 12a is immediately corrected, a time jump occurs.

【0046】以上のように、第1の時計12aは即座に
基準時刻に修正されることから、時間の戻しや時間の飛
び越しが発生することになるが、第1の時計12aは外
部処理用の処理時計であり、時刻修正要求後にはシステ
ム全体としての修正された基準時刻になっているのが好
ましい状態であるので何ら問題はない。これにより、他
の装置(ホストや機器)から当該装置の時刻の読み出し
が実行されたときには、システム全体としての修正され
た時刻が読み出される。
As described above, since the first clock 12a is immediately corrected to the reference time, the time is returned or the time is skipped. However, the first clock 12a is used for external processing. Since it is a processing clock, and it is a preferable state that the corrected reference time of the entire system is obtained after the time correction request, there is no problem. As a result, when another device (host or device) reads the time of the device, the corrected time of the entire system is read.

【0047】次に、図3は内部処理用の第2の時計12
bの時刻修正の説明図であり、図3(a)は第2の時計
12bが第1の時計12a(基準時計17)より進んで
いる場合の時刻修正の仕方の説明図、図3(b)は第2
の時計12bが第1の時計12a基準時計17より遅れ
ている場合の時刻修正の仕方の説明図である。
Next, FIG. 3 shows a second clock 12 for internal processing.
3B is an explanatory diagram of the time adjustment of FIG. 3B, and FIG. 3A is an explanatory diagram of the time adjustment method when the second clock 12b is ahead of the first clock 12a (reference clock 17). ) Is the second
12 is an explanatory diagram of how to adjust the time when the clock 12b of FIG. 11 is behind the reference clock 17 of the first clock 12a.

【0048】図3(a)において、基準時計17は基準
時刻Trを刻んでおり、第2の時計12bは第2の処理
時刻T2を刻んでいるとする。また、時刻修正開始時点
T0での基準時計17が刻む基準時刻はTr1であり、
第2の時計12bがそれより進んだ時刻T21を刻んで
いるとする。この場合、時刻修正処理部15は第2の分
周回路14bに対して一時的に大きな分周比を入力し、
第2の時計12bの刻みを小さくする(時計の進みを遅
らせる)。そして、第2の時計12bの時刻が基準時計
17(第1の時計12a)の時刻に一致した時点T01
で、第2の分周回路14bの分周比を第1の分周回路1
4aの分周比に合わせる。従って、第2の時計12bは
時間の戻しや時間の飛び越しが発生することはない。
In FIG. 3 (a), it is assumed that the reference clock 17 engraves the reference time Tr and the second clock 12b engraves the second processing time T2. Further, the reference time ticked by the reference clock 17 at the time adjustment start time T0 is Tr1,
It is assumed that the second clock 12b is ticking a time T21 that is ahead of that. In this case, the time adjustment processing unit 15 temporarily inputs a large frequency division ratio to the second frequency dividing circuit 14b,
The ticks of the second clock 12b are reduced (the advance of the clock is delayed). Then, a time T01 when the time of the second clock 12b matches the time of the reference clock 17 (first clock 12a).
Then, the frequency division ratio of the second frequency dividing circuit 14b is set to the first frequency dividing circuit 1
Match the frequency division ratio of 4a. Therefore, the second timepiece 12b does not cause time return or time skipping.

【0049】図3(b)において、基準時計17は基準
時刻Trを刻んでおり、第2の時計12bは第2の処理
時刻T2を刻んでいるとする。また、時刻修正開始時点
T0での基準時計17が刻む基準時刻はTr1であり、
第2の時計12bがそれより遅れた時刻T22を刻んで
いるとする。この場合、時刻修正処理部15は第2の分
周回路14bに対して一時的に小さな分周比を入力し、
第2の時計12bの刻みを大きくする(時計の進みを早
める)。そして、第2の時計12bの時刻が基準時計1
7(第1の時計12a)の時刻に一致した時点T02
で、第2の分周回路14bの分周比を第1の分周回路1
4aの分周比に合わせる。従って、この場合も第2の時
計12bは時間の戻しや時間の飛び越しが発生すること
はなく、第2の時計12bで管理される処理プログラム
の動作時刻が欠落することはなくなり、また、処理の順
序に支障を来すことが無くなる。
In FIG. 3 (b), it is assumed that the reference clock 17 engraves the reference time Tr and the second clock 12b engraves the second processing time T2. Further, the reference time ticked by the reference clock 17 at the time adjustment start time T0 is Tr1,
It is assumed that the second clock 12b is ticking a time T22 later than that. In this case, the time adjustment processing unit 15 temporarily inputs a small frequency division ratio to the second frequency dividing circuit 14b,
Increase the ticks of the second clock 12b (advance the advance of the clock). The time of the second clock 12b is the reference clock 1
Time T02 when the time coincides with time 7 (first clock 12a)
Then, the frequency division ratio of the second frequency dividing circuit 14b is set to the first frequency dividing circuit 1
Match the frequency division ratio of 4a. Therefore, in this case as well, the second clock 12b does not return time or skip time, the operating time of the processing program managed by the second clock 12b will not be lost, and The order will not be disturbed.

【0050】時刻修正処理部15の処理内容をより詳細
に説明する。時刻修正処理部15は、時刻修正開始時点
T0での基準時計17の刻む基準時刻Trと第2の時計
12bの刻む第2の処理時刻T2との時間差tnを求め
る。そして、以下の判定を行う。
The processing contents of the time adjustment processing section 15 will be described in more detail. The time adjustment processing unit 15 obtains a time difference tn between the reference time Tr ticked by the reference clock 17 at the time adjustment start time T0 and the second processing time T2 ticked by the second clock 12b. Then, the following judgment is made.

【0051】(a)Tr=T2のとき:時刻修正は不要 (b)Tr<T2のとき:第2の時計12bは進んでい
る(tnの進み) (c)Tr>T2のとき:第2の時計12bは遅れてい
る(tnの遅れ) 判定の結果、時刻修正が不要の場合(a)は、第2の時
計12bに対する第2の分周回路14bの分周比は現状
のままにしておく。
(A) When Tr = T2: No time correction is necessary (b) When Tr <T2: Second clock 12b is advanced (advance of tn) (c) When Tr> T2: Second Clock 12b is delayed (delay of tn). As a result of the determination, if the time adjustment is not necessary (a), the frequency division ratio of the second frequency dividing circuit 14b to the second clock 12b is kept as it is. deep.

【0052】第2の時計12bが進んでいる場合(b)
には、一時的に分周比を大きくして第2の時計12bの
刻みを小さくする(時計の進みを遅らせる)。そして、
第2の時計12bの時刻T2が基準時計17の時刻に一
致した時点で、第2の分周回路14bの分周比を第1の
分周回路14aの分周比に合わせる。
When the second clock 12b is advanced (b)
In order to increase the frequency, the frequency division ratio is temporarily increased to decrease the increment of the second clock 12b (delay the advance of the clock). And
When the time T2 of the second clock 12b coincides with the time of the reference clock 17, the frequency division ratio of the second frequency dividing circuit 14b is adjusted to the frequency division ratio of the first frequency dividing circuit 14a.

【0053】第2の時計12aが遅れている場合(c)
には、一時的に分周比を小さくして第2の時計12bの
刻みを大きくする(時計の進みを早める)。そして、第
2の時計12bの時刻T2が基準時計17の時刻に一致
した時点で、第2の分周回路14bの分周比を第1の分
周回路14aの分周比に合わせる。
When the second clock 12a is delayed (c)
In order to temporarily reduce the frequency division ratio, the second clock 12b is increased in increments (advance the advance of the clock). Then, when the time T2 of the second clock 12b coincides with the time of the reference clock 17, the frequency division ratio of the second frequency dividing circuit 14b is adjusted to the frequency division ratio of the first frequency dividing circuit 14a.

【0054】第2の分周回路14bの分周比を第1の分
周回路14aの分周比に合わせる合わせ方としては、時
刻修正処理部15から第2の分周回路14bに第1の分
周回路14aの分周比を書き込んで行うが、これに代え
て、第1の分周回路14aおよび第2の分周回路14b
の出力部にスイッチを設け、第1の分周回路14aを第
2の時計12bに入力するようにスイッチを切り換え、
第2の時計12bの分周比を第1の時計12aの分周比
と同じにするようにしても良い。
As a method of adjusting the frequency division ratio of the second frequency division circuit 14b to the frequency division ratio of the first frequency division circuit 14a, the time adjustment processing section 15 causes the second frequency division circuit 14b to perform the first frequency division. The frequency division ratio of the frequency division circuit 14a is written in, but instead of this, the first frequency division circuit 14a and the second frequency division circuit 14b are used.
A switch is provided at the output part of the switch, and the switch is switched so as to input the first frequency dividing circuit 14a to the second clock 12b,
The frequency division ratio of the second timepiece 12b may be the same as the frequency division ratio of the first timepiece 12a.

【0055】また、第2の時計12bの時刻修正は、基
準時計17の基準時間に合わせるようにしたが、第1の
時計12aの第1の処理時刻T1に合わせるようにして
も良い。これは、第1の時計12aは、図2に示すよう
に時刻修正開始時点T0において即座に時刻修正が行わ
れるので、実質的に基準時計17の基準時刻Trと同じ
であるからである。
Although the time of the second clock 12b is adjusted to the reference time of the reference clock 17, it may be adjusted to the first processing time T1 of the first clock 12a. This is because the first timepiece 12a is substantially the same as the reference time Tr of the reference timepiece 17 because the time is immediately corrected at the time adjustment start time T0 as shown in FIG.

【0056】また、第2の時計12bの時刻修正を行う
場合の分周比は、次の時刻修正開始時点のタイミングま
でに第2の時計12bが第1の時計12aに一致するよ
うな分周比でゆっくりに合わせて行くようにしても良
い。その場合、時刻修正期間の時刻と基準時計の時刻と
の時刻の刻みの誤差が小さくなり、処理プログラムの動
作や処理順序に支障を来すことが無くなる。逆に、動作
に支障ない場合には、急速に合わせるようにしても良
い。
Further, the frequency division ratio when the time of the second timepiece 12b is adjusted is such that the second timepiece 12b matches the first timepiece 12a by the timing of the start time of the next time adjustment. You may make it match slowly with a ratio. In this case, the time difference between the time of the time adjustment period and the time of the reference clock becomes small, and the operation of the processing program and the processing sequence are not disturbed. On the contrary, when the operation is not hindered, the adjustment may be performed quickly.

【0057】次に、第2の時計12bの時刻修正期間
(T0〜T01、T0〜T02)の期間中に、処理プロ
グラムが動作する時刻に達する場合には、以下のような
処理を行う。図4に示すように、第2の時計12bの時
刻修正期間(T0〜T01)の期間中に、処理プログラ
ムが第2の時計12bが示す処理時刻t11に達したと
する。そうすると、その処理プログラムの処理が終了す
る時刻t12までの期間Tn(Tn=t11〜t12)
は、第2の分周回路14bの分周比を予め定めた通常動
作時の分周比に戻し動作を行う。そして、処理プログラ
ムの動作が終了したら再び修正時の分周比に戻す。
Next, during the time adjustment period (T0 to T01, T0 to T02) of the second clock 12b, when the time when the processing program operates is reached, the following processing is performed. As shown in FIG. 4, it is assumed that the processing program reaches the processing time t11 indicated by the second clock 12b during the time adjustment period (T0 to T01) of the second clock 12b. Then, the period Tn (Tn = t11 to t12) until time t12 when the processing of the processing program ends.
Performs the operation of returning the frequency division ratio of the second frequency dividing circuit 14b to the predetermined frequency division ratio during normal operation. Then, when the operation of the processing program is completed, the frequency division ratio at the time of correction is restored.

【0058】これにより、処理プログラムの実行は通常
の処理タイミングで実行できることになり処理に支障を
来すことが無くなる。図4では、処理プログラムが1回
だけ起動された場合を示しているが、複数回の起動であ
る場合も同様に処理プログラムの実行は通常動作時の分
周比による時刻の刻みで処理される。
As a result, the processing program can be executed at normal processing timing, and the processing will not be hindered. Although FIG. 4 shows the case where the processing program is activated only once, the execution of the processing program is also processed in time increments according to the frequency division ratio during normal operation when the processing program is activated multiple times. .

【0059】以上の説明では、通常の分周比に戻す期間
Tnは処理プログラムの動作時間としたが、余裕を持た
せて時点(分周回路−α1)から時点(分周回路+α
2)までの期間に通常の分周比による時刻の刻みとして
も良い。すなわち、処理プログラムの処理時刻となる時
点の前(例えば、α1=1〜3分前)から、処理プログ
ラムの処理が終了と見込まれる時点の後(例えば、α2
=1〜5分後)を経過するまでは、一次的に通常の分周
比に戻し、その期間を経過したら再び修正時に分周比に
戻す。これにより、処理プログラムの実行は確実に通常
の処理タイミングで実行できることになり処理に支障を
来すことが無くなる。
In the above description, the period Tn for returning to the normal frequency division ratio is the operating time of the processing program, but with a margin, the time from the time point (frequency division circuit-α1) to the time point (frequency division circuit + α).
In the period up to 2), the time division may be set according to the normal frequency division ratio. That is, from before the time when the processing time of the processing program is reached (for example, α1 = 1 to 3 minutes before), after the time when the processing of the processing program is expected to end (for example, α2
= 1 to 5 minutes later) is temporarily returned to the normal frequency division ratio, and after that period, it is returned to the frequency division ratio at the time of correction again. As a result, the processing program can be surely executed at the normal processing timing, and the processing will not be hindered.

【0060】次に、時刻修正開始時点T0が定期的に特
定の処理を行うプログラムの動作時間帯である場合の処
理内容について説明する。その場合は、第1の時計12
aは時刻修正開始時点T0で即座に時刻修正し、処理プ
ログラムの動作時間帯を経過した後に第2の時計12b
の時刻を修正する。
Next, a description will be given of the processing contents in the case where the time adjustment start time T0 is the operation time zone of the program which periodically executes the specific processing. In that case, the first clock 12
a immediately adjusts the time at the time T0 when the time is adjusted, and after the operating time zone of the processing program elapses, the second clock 12b
Correct the time of day.

【0061】図5は、時刻修正開始時点T0が処理プロ
グラムの動作時間帯である場合の時刻補正処理部15の
処理内容の説明図であり、図5(a)は第1の時計12
aの時刻修正の説明図、図5(b)は第2の時計12b
の時刻修正の説明図である。
FIG. 5 is an explanatory diagram of the processing contents of the time correction processing unit 15 when the time correction start time T0 is in the operation time zone of the processing program, and FIG.
FIG. 5 (b) is an explanatory view of the time adjustment of FIG.
FIG. 6 is an explanatory diagram of the time adjustment of FIG.

【0062】図5(a)に示すように、処理プログラム
の動作時間帯Tm内の時点T0で時刻修正開始要求があ
った場合、第1の時計12aの時刻補正については、時
刻修正処理部15は直ちに基準時計17の基準時刻Tr
を第1の時計12aに書込み、第1の時計12aの刻む
時刻T1を基準時刻Trに修正する。
As shown in FIG. 5A, when there is a time correction start request at the time T0 within the operating time zone Tm of the processing program, the time correction processing unit 15 performs the time correction of the first clock 12a. Is the reference time Tr of the reference clock 17 immediately.
Is written in the first clock 12a, and the time T1 ticked by the first clock 12a is corrected to the reference time Tr.

【0063】一方、第2の時計12bに対しては、図5
(b)に示すように、処理プログラムの動作時間帯Tm
を経過した時点T00から第2の時計12bの時刻を修
正開始する。
On the other hand, for the second timepiece 12b, FIG.
As shown in (b), the operating time period Tm of the processing program
The correction of the time of the second clock 12b is started from the time T00 after the passage of.

【0064】時刻修正の禁止帯である動作時間帯Tm
は、処理プログラムの処理時間Tnを挟んで、処理プロ
グラムの処理時刻となる時点の前(例えば、β1=1〜
2分前)から処理プログラムの処理が終了と見込まれる
時点の後(例えば、β2=1〜5分)を経過するまであ
る。
Operating time zone Tm, which is a prohibited zone for time adjustment
Is before the time when the processing time of the processing program is reached, with the processing time Tn of the processing program interposed (for example, β1 = 1 to 1
From 2 minutes before) until after the time when the processing of the processing program is expected to end (for example, β2 = 1 to 5 minutes).

【0065】以上の説明では、時刻修正は予め定めた時
刻修正開始時点で開始し、処理プログラムの動作時間域
を避けるようにしているが、時刻修正を無効とする時間
帯を設けるようにしても良い。これは、基準時計17が
ホストに設けられている場合には、時刻修正時はホスト
から各装置へ基準時刻が伝送して時刻合わることになる
が、各装置間の伝送速度が遅く時刻修正を伝えるプログ
ラムの処理優先度が低い場合には、ホストから各装置へ
の基準時刻の伝送がタイムリーでなくなるので、そのよ
うな時間帯には時刻修正を無効とする。
In the above description, the time adjustment is started at a predetermined time adjustment start time point so as to avoid the operating time range of the processing program. However, a time zone for invalidating the time adjustment may be provided. good. This means that when the reference clock 17 is provided in the host, when the time is adjusted, the reference time is transmitted from the host to each device and the time is adjusted, but the transmission speed between the devices is slow and the time is adjusted. If the processing priority of the program for transmitting the message is low, the reference time is not transmitted from the host to each device in a timely manner, so the time adjustment is invalid in such a time zone.

【0066】また、第1の分周回路14aの分周比は固
定値として説明したが、この固定値を修正可能にしても
良い。これは基準時計17と第1の時計12aの時刻の
刻みを同一にするためである。例えば、第1の時計12
aと基準時計17との時刻差を基に第1の時計12aが
基準時計17の時刻の刻みと同じになる適切な分周比を
求め、その分周比で第1の時計12aを動作させる。
Further, although the frequency division ratio of the first frequency dividing circuit 14a has been described as a fixed value, this fixed value may be modifiable. This is because the reference clock 17 and the first clock 12a have the same time step. For example, the first clock 12
Based on the time difference between a and the reference timepiece 17, the first timepiece 12a obtains an appropriate frequency division ratio at which the time division of the reference timepiece 17 becomes the same, and operates the first timepiece 12a with the frequency division ratio. .

【0067】いま、前回に時刻修正を行ったときの基準
時計17の基準時刻をTa、今回に時刻修正を行ったと
きの基準時計17の基準時刻をTb、次回に時刻修正を
行われるであろう基準時計17の基準時刻をTc、今回
の第1の時計12aの時刻をT1、時間遅れがない場合
の第1の時計12aの分周比をF1とすると、具体的に
は、時間差(Tb−Ta)と時間差(Tb−T2)とか
ら、次回に予想される基準時計17から行われる時刻修
正時点の基準時刻Tcで、その時刻修正があった時刻に
第1の時計12aの時刻と一致するよう見直した適正な
分周比(F1+α)で第1の時計を動作させる。これに
より、第1の時計12aの分周比は基準時計17の時刻
の刻みと同じになる適切な分周比に設定できる。
Now, the reference time of the reference clock 17 when the time is adjusted last time is Ta, the reference time of the reference clock 17 when the time is adjusted this time is Tb, and the time is adjusted next time. If the reference time of the wax reference clock 17 is Tc, the time of the first clock 12a this time is T1, and the frequency division ratio of the first clock 12a when there is no time delay is F1, specifically, the time difference (Tb -Ta) and the time difference (Tb-T2), the reference time Tc at the time of the time adjustment performed from the reference clock 17 expected next time is the same as the time of the first clock 12a at the time of the time adjustment. The first timepiece is operated with an appropriate frequency division ratio (F1 + α) that has been reviewed. As a result, the frequency division ratio of the first timepiece 12a can be set to an appropriate frequency division ratio that is the same as the time step of the reference timepiece 17.

【0068】次に、停電時や電源投入時における第1の
時計12a、第2の時計12bの動作や時刻修正につい
て説明する。第1の時計12aは停電時でも時計を刻む
ようにバッテリを備える。例えば、発振器13、第1の
分周回路14a、第1の時計12aには、停電時におい
てバッテリからの電源を供給できるようにしておく。停
電になり商用電源が供給されていなくとも動作継続する
ようにバッテリでバックアップする。バッテリを設けた
場合には、一般、通常時には商用電源で動作させ停電時
はバッテリで動作させるが、低消費電力である場合に
は、常時バッテリで動作させるようにしても良い。一
方、第2の時計12bは、停電時は第1の時計12aの
ように時刻は保存するが時刻の刻みは停止し、停電時の
時刻を保存するようにしておく。
Next, the operation and time adjustment of the first clock 12a and the second clock 12b at the time of power failure or power-on will be described. The first clock 12a is provided with a battery so that the clock can be clocked even when a power failure occurs. For example, the oscillator 13, the first frequency dividing circuit 14a, and the first clock 12a can be supplied with power from a battery in the event of a power failure. A battery backup is provided so that operation continues even if a power failure occurs and commercial power is not supplied. When a battery is provided, generally, it is operated by a commercial power supply during normal operation and by a battery during a power failure, but when it has low power consumption, it may be operated by a battery at all times. On the other hand, the second clock 12b saves the time like the first clock 12a at the time of power failure, but stops the ticks of time, and saves the time at the time of power failure.

【0069】そして、電源投入時に、第1の時計12a
の時刻と第2の時計12bの時刻ずれがある場合は、時
刻修正処理部15はあたかも第1の時計12aで示す時
刻値の時刻修正要求があったとして処理する。例えば、
停電後に復電した場合には、第1の時計12aは停電時
であっても時刻を刻み、一方、第2の時計12bは停電
時の時刻を保持しているので、復電時には時刻のずれが
発生している。時刻修正処理部15はこの時刻のズレを
修正する。
When the power is turned on, the first clock 12a
If there is a time difference between the time and the time of the second clock 12b, the time correction processing unit 15 processes as if there was a time correction request for the time value indicated by the first clock 12a. For example,
When power is restored after a power failure, the first clock 12a keeps the time even when the power is lost, while the second clock 12b holds the time at the time of power failure, so that the time shifts when power is restored. Is occurring. The time adjustment processing unit 15 corrects this time difference.

【0070】すなわち、電源投入時には第1の時計12
aを基準時計とし、第2の時計12bとの時刻差に対応
する分周比を第2の分周回路14bへ設定し、図2に示
すように時刻合わせを行う。時刻合わせが終えたら、第
2の分周回路14bの分周比を第1の分周回路14aの
分周比と同じ値にする、これにより、電源が停電して復
電した場合であっても、一時的に第2の時計12bの分
周比を変えるだけで通常時に動作する各種のプログラム
処理や処理順序は適正に実行できる。そのため、時間ず
れがあってもそれに伴う特別な処理をする必要はない。
That is, when the power is turned on, the first clock 12
Using a as a reference clock, the frequency division ratio corresponding to the time difference from the second clock 12b is set in the second frequency dividing circuit 14b, and time adjustment is performed as shown in FIG. When the time adjustment is completed, the frequency division ratio of the second frequency division circuit 14b is set to the same value as the frequency division ratio of the first frequency division circuit 14a. Also, by temporarily changing the frequency division ratio of the second clock 12b, it is possible to properly execute various program processes and processing sequences that normally operate. Therefore, even if there is a time lag, there is no need to perform special processing associated with it.

【0071】また、コンピュータシステムが例えばプロ
セス収集データを蓄積保存するシステムであり、第2の
時計12bの分周比を変えて処理した期間中にデータ蓄
積した値の信憑性がなくなる項目がある場合は、その項
目については、例えば「イニシャライズ処理時に蓄積保
存」したデータであることを示すフラグと共に記憶する
方法を採用する。
Further, in the case where the computer system is a system for accumulating and storing the process collection data, for example, there is an item in which the reliability of the value accumulated in the data is lost during the period in which the frequency division ratio of the second clock 12b is changed and processed. Adopts a method of storing the item together with a flag indicating that the data is “stored and stored at the time of initialization processing”, for example.

【0072】これにより、停電の復電後に、蓄積保存し
ているデータを使用(活用)して、データ処理を行う場
合、データ処理に伴い予めフラグをチェックし、蓄積デ
ータの信憑性があるフラブである場合に限りデータ処理
を行い、他の場合は「欠測」と処理できる。
As a result, when data processing is performed by using (utilizing) the data stored and saved after the power failure is restored, the flag is checked in advance in accordance with the data processing, and the flag indicating that the stored data is reliable. If it is, the data processing is performed, and in other cases, “missing” can be processed.

【0073】次に、電源投入時に、第1の時計12aの
時刻と第2の時計12bの時刻との時刻ずれが予め定め
た許容範囲を越えている場合には、第2の時計12bの
時刻はあたかも時間差がなかったかのように扱い、第1
の時計12aの時刻を第2の時計12bに書き込んで動
作させる。この場合、第2の時計12bは通常時の分周
比(第1の時計12aと同じ分周比)で動作させる。
Next, when the time difference between the time of the first clock 12a and the time of the second clock 12b exceeds the predetermined allowable range when the power is turned on, the time of the second clock 12b is set. I treated it as if there was no time difference, first
The time of the clock 12a is written in the second clock 12b and operated. In this case, the second timepiece 12b is operated at the normal frequency division ratio (the same frequency division ratio as the first timepiece 12a).

【0074】これは、停電時が長期間、例えば1ヶ月あ
るいは1年と欠測期間となった場合には、蓄積データの
信憑性は低く、改めて第2の時計12bの分周比を変え
てデータを蓄積し、「時間差が大きい時に蓄積保存」し
たなどのフラグをデータと共に記憶したとしても、その
ほとんどの蓄積データは事実上使用できないからであ
る。
This is because the reliability of the accumulated data is low when the power failure occurs for a long period, for example, one month or one year, and the frequency division ratio of the second clock 12b is changed. This is because even if data is accumulated and a flag such as "accumulate and save when there is a large time difference" is stored together with the data, most of the accumulated data cannot be practically used.

【0075】ここで、電源投入時に、第1の時計12a
を強制的に基準時計17の基準時刻に合わせるようにし
ても良い。この場合には、第1の時計12aは停電時に
おいて時刻を刻む必要はない。つまり、停電時に第1の
時計12aが時刻を刻むためのバッテリは不要となる。
基準時計17がホストなどコンピュータシステムで代表
とする装置に設けられている場合は、端末からホストヘ
基準時刻の読み出しをして基準時刻を入手することにな
る。あるいは、ホスト側で端末局が立上ったことを検出
して時刻修正を端末局へ要求するようにしても良い。
Here, when the power is turned on, the first clock 12a is
May be forcibly adjusted to the reference time of the reference clock 17. In this case, the first clock 12a does not need to keep time at the time of power failure. That is, the battery for the first clock 12a to keep time at the time of power failure is unnecessary.
When the reference clock 17 is provided in a device such as a host that is a typical computer system, the reference time is read from the terminal to the host to obtain the reference time. Alternatively, the host side may detect that the terminal station has started up and request the terminal station to adjust the time.

【0076】[0076]

【発明の効果】以上述べたように、本発明によれば、外
部処理用の第1の時計と内部処理用の第2の時計とを有
し、外部に対してはシステム全体に適した時刻を提供
し、内部に対しては内部処理に適した時間の飛び越しや
時間の戻りが発生しない時刻を提供できるので、システ
ム運用に違和感なく時刻の提供ができ、時間の飛び越し
や時間の戻りに対する処理が不要となる。
As described above, according to the present invention, it has the first clock for external processing and the second clock for internal processing, and the time which is suitable for the whole system is provided to the outside. It is possible to provide a time to the inside that does not cause a time jump or a time return that is suitable for internal processing, so it is possible to provide a time without any discomfort in system operation, and a process for a time jump or time return. Is unnecessary.

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

【図1】本発明の実施の形態に係るコンピュータの時計
装置のブロック構成図。
FIG. 1 is a block configuration diagram of a computer clock device according to an embodiment of the present invention.

【図2】本発明の実施の形態における外部処理用の第1
の時計の時刻修正の説明図。
FIG. 2 is a first diagram for external processing according to the embodiment of the present invention.
Explanatory diagram of time correction of the clock.

【図3】本発明の実施の形態における内部処理用の第2
の時計の時刻修正の説明図。
FIG. 3 is a second diagram for internal processing according to the embodiment of the present invention.
Explanatory diagram of time correction of the clock.

【図4】本発明の実施の形態における第2の時計の時刻
修正期間中に処理プログラムが起動された場合の第2の
時計の時刻修正の説明図。
FIG. 4 is an explanatory diagram of time adjustment of the second clock when the processing program is activated during the time adjustment period of the second clock according to the embodiment of the present invention.

【図5】本発明の実施の形態における第1の時計および
第2の時計の時刻修正の開始時点が処理プログラムの動
作時間帯である場合の時刻補正処理部の処理内容の説明
図。
FIG. 5 is an explanatory diagram of processing contents of a time correction processing unit when the start time of the time correction of the first clock and the second clock according to the embodiment of the present invention is in the operation time zone of the processing program.

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

11…時計装置、12a…第1の時計、12b…第2の
時計、13…発振器、14a…第1の分周器、14b…
第2の分周器、15…時刻修正処理部、16…基準信号
受信部、17…基準時計
11 ... Clock device, 12a ... 1st clock, 12b ... 2nd clock, 13 ... Oscillator, 14a ... 1st frequency divider, 14b ...
Second frequency divider, 15 ... Time adjustment processing section, 16 ... Reference signal receiving section, 17 ... Reference clock

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2F002 AA12 AD06 AD07 AE02 AE04 CB02 CB11 CB16 DA00 ED01 ED02 ED04 ED05 FA06 FA14 FA16    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 2F002 AA12 AD06 AD07 AE02 AE04                       CB02 CB11 CB16 DA00 ED01                       ED02 ED04 ED05 FA06 FA14                       FA16

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 所定の発信周波数でクロックを発振する
発振器と、前記発振器のクロックの発信周波数を所定の
分周比で分周する第1の分周回路と、前記第1の分周回
路の出力を計数し外部処理用の時刻を刻む第1の時計
と、前記発振器のクロックの発信周波数を所定の分周比
で分周する第2の分周回路と、前記第2の分周回路の出
力を計数し内部処理用の時刻を刻む第2の時計と、前記
第1の時計および第2の時計の時刻を修正する時刻修正
処理部とを備えたことを特徴とするコンピュータシステ
ムの時計装置。
1. An oscillator that oscillates a clock at a predetermined oscillation frequency, a first frequency dividing circuit that divides the clock oscillation frequency of the oscillator by a predetermined frequency division ratio, and a first frequency dividing circuit. A first clock that counts the output and clocks the time for external processing, a second frequency dividing circuit that divides the oscillation frequency of the clock of the oscillator by a predetermined frequency dividing ratio, and a second frequency dividing circuit A clock device for a computer system, comprising: a second clock that counts the output and clocks the time for internal processing; and a time correction processing unit that corrects the times of the first clock and the second clock. .
【請求項2】 前記時刻修正処理部は、時刻修正開始時
点となったときは第1の時計については分周比を固定に
したまま時刻修正開始時点の基準時刻に即時に修正し、
第2の時計については時刻修正開始時点の基準時計との
時刻ずれを考慮した分周比で動作させて一定の比率で徐
々に第2の時計の時刻を修正し第2の時計の時刻が第1
の時計の時刻と一致したら第2の時計の分周比を第1の
時計の分周比と同じにすることを特徴とする請求項1記
載のコンピュータシステムの時計装置。
2. The time adjustment processing unit, when the time adjustment start time comes, immediately corrects the reference time at the time adjustment start time with the division ratio fixed for the first clock,
The second clock is operated at a frequency division ratio in consideration of the time difference from the reference clock at the time of starting the time adjustment, and the time of the second clock is gradually adjusted at a constant ratio so that the time of the second clock becomes 1
2. The timepiece device for a computer system according to claim 1, wherein the frequency division ratio of the second clock is set to be the same as the frequency division ratio of the first clock if the time of the clock of 1 is matched.
【請求項3】 前記時刻修正処理部は、前記第2の時計
が時刻の修正中であるときは、定期的に特定の処理を行
うプログラムが動作する時間帯は、通常動作時の分周比
へ戻して前記第2の時計を動作させることを特徴とする
請求項2記載のコンピュータシステムの時計装置。
3. The time adjustment processing unit, when the second clock is in the middle of adjusting the time, the time zone in which a program that periodically executes a specific process operates is a frequency division ratio during normal operation. 3. The timepiece device of the computer system according to claim 2, wherein the timepiece device is returned to the step of operating the second timepiece.
【請求項4】 前記時刻修正処理部は、予め前記時刻修
正処理部に設定された時刻修正開始時点で前記第1の時
計の時刻を修正し、前記時刻修正開始時点が定期的に特
定の処理を行うプログラムの動作時間帯であるときは、
その動作時間帯を経過した後に前記第2の時計の時刻を
修正することを特徴とする請求項2項記載のコンピュー
タシステムの時計装置。
4. The time adjustment processing unit adjusts the time of the first clock at a time adjustment start time preset in the time adjustment processing unit, and the time adjustment start time periodically determines a specific process. When the operating time of the program
3. The timepiece device of a computer system according to claim 2, wherein the time of the second timepiece is corrected after the operating time period has elapsed.
【請求項5】 前記時刻修正処理部は、第2の時計の時
刻修正を行うときは、次の時刻修正の時刻あるいはその
近傍の時刻に時刻修正が完了するような分周比で前記第
2の時計を動作させることを特徴とする請求項2記載の
コンピュータシステムの時計装置。
5. The time adjustment processing unit, when performing the time adjustment of the second clock, has a frequency division ratio such that the time adjustment is completed at the time of the next time adjustment or a time in the vicinity thereof. 3. The timepiece device for a computer system according to claim 2, wherein the timepiece is operated.
【請求項6】 前記基準時計はコンピュータシステムを
構成する個々の装置ごと、あるいはシステムのホストに
設けられたことを特徴とする請求項1記載のコンピュー
タシステムの時計装置。
6. The timepiece device for a computer system according to claim 1, wherein the reference timepiece is provided for each individual device constituting the computer system or for a host of the system.
【請求項7】 前記第1の時計には停電時にも電源を供
給するバッテリを設け、前記第1の時計は停電時でも時
刻を刻み、前記第2の時計は停電時には停止し停電時の
時刻を保存することを特徴とする請求項1記載のコンピ
ュータシステムの時計装置。
7. The first clock is provided with a battery that supplies power even during a power failure, the first clock ticks the time even during a power failure, and the second clock stops during a power failure and stops at the time of the power failure. 2. The timepiece device for a computer system according to claim 1, wherein
【請求項8】 前記時刻修正処理部は、停電からの復電
時には前記第1の時計の時刻を前記基準時計の時刻に合
わせることを特徴とする請求項7のコンピュータシステ
ムの時計装置。
8. The timepiece device for a computer system according to claim 7, wherein the time adjustment processing unit adjusts the time of the first clock to the time of the reference clock when the power is restored from the power failure.
【請求項9】 前記時刻修正処理部は、電源投入時に前
記第1の時計の時刻と前記第2の時計の時刻とに時刻ず
れがある場合は、第1の時計と第2の時計との時刻ずれ
を考慮した分周比で第2の時計を動作させて一定の比率
で徐々に第2の時計の時刻を修正し第2の時計の時刻が
第1の時計の時刻と一致したら第2の時計の分周比を第
1の時計の分周比と同じにすることを特徴とする請求項
1記載のコンピュータシステムの時計装置。
9. The time adjustment processing unit determines whether the first clock and the second clock are different from each other when there is a time difference between the time of the first clock and the time of the second clock when the power is turned on. The second clock is operated at a division ratio in consideration of the time shift, the time of the second clock is gradually adjusted at a constant ratio, and if the time of the second clock matches the time of the first clock, the second clock is 2. The timepiece device for a computer system according to claim 1, wherein the frequency division ratio of said timepiece is the same as that of the first timepiece.
【請求項10】 前記時刻修正処理部は、電源投入時に
前記第1の時計の時刻と前記第2の時計の時刻との時刻
ずれが所定値より大きいときは、前記第2の時計の時刻
を第1の時計の時刻に即座に合わせることを特徴とする
請求項9記載のコンピュータシステムの時計装置。
10. The time adjustment processing unit sets the time of the second clock to a time when the time difference between the time of the first clock and the time of the second clock is larger than a predetermined value when the power is turned on. 10. The timepiece device for a computer system according to claim 9, wherein the time is instantly set to the time of the first timepiece.
JP2002068136A 2002-03-13 2002-03-13 Clock device in computer system Pending JP2003270371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002068136A JP2003270371A (en) 2002-03-13 2002-03-13 Clock device in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002068136A JP2003270371A (en) 2002-03-13 2002-03-13 Clock device in computer system

Publications (1)

Publication Number Publication Date
JP2003270371A true JP2003270371A (en) 2003-09-25

Family

ID=29199308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002068136A Pending JP2003270371A (en) 2002-03-13 2002-03-13 Clock device in computer system

Country Status (1)

Country Link
JP (1) JP2003270371A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241625A (en) * 2004-01-27 2005-09-08 Seiko Epson Corp Clock-generating device, vibration type gyro sensor, navigation device, imaging apparatus, and electronic device
JP2007292662A (en) * 2006-04-26 2007-11-08 Mitsutoyo Corp Data recording apparatus and time calibrating method of same
JP2009020044A (en) * 2007-07-13 2009-01-29 Hioki Ee Corp Measuring device and measuring system
JP2010033402A (en) * 2008-07-30 2010-02-12 Asyst Technologies Japan Inc Time management system and method for conveyance system, and computer program
JP2018112425A (en) * 2017-01-10 2018-07-19 株式会社デンソーテン Method for system time synchronization
JP2019136402A (en) * 2018-02-14 2019-08-22 キヤノン株式会社 Radiographic apparatus and radiographic system, and control method therefor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005241625A (en) * 2004-01-27 2005-09-08 Seiko Epson Corp Clock-generating device, vibration type gyro sensor, navigation device, imaging apparatus, and electronic device
JP2007292662A (en) * 2006-04-26 2007-11-08 Mitsutoyo Corp Data recording apparatus and time calibrating method of same
JP2009020044A (en) * 2007-07-13 2009-01-29 Hioki Ee Corp Measuring device and measuring system
JP2010033402A (en) * 2008-07-30 2010-02-12 Asyst Technologies Japan Inc Time management system and method for conveyance system, and computer program
JP2018112425A (en) * 2017-01-10 2018-07-19 株式会社デンソーテン Method for system time synchronization
JP2019136402A (en) * 2018-02-14 2019-08-22 キヤノン株式会社 Radiographic apparatus and radiographic system, and control method therefor
JP7101494B2 (en) 2018-02-14 2022-07-15 キヤノン株式会社 Radiation imaging equipment and radiography systems, and their control methods

Similar Documents

Publication Publication Date Title
US7991986B2 (en) Microprocessor starting to execute a computer program at a predetermined interval
US6971036B2 (en) Methods and apparatus for low power delay control
JP2014021678A (en) Information processing apparatus, and control method for the same
JP4650146B2 (en) Printing apparatus and printing program
US8892923B2 (en) Data processing apparatus and method for maintaining a time count value in normal and power saving modes of operation
JP2003270371A (en) Clock device in computer system
CN105589085A (en) Low-power consumption Beidou positioning communication device and control method
JP2002175129A (en) Computer having time adjusting function, and network system
JP2011113173A (en) Real-time clock device, information processor and electronic apparatus
CN110286739B (en) Power consumption control method and device of remote telemetry terminal
US9223573B2 (en) Data processing device and method of controlling the same
JP4616054B2 (en) Measuring system
CN113406992A (en) System clock control method, processing device and readable storage medium
US20070198869A1 (en) Timer apparatus, timer processing method, and electronic apparatus
CN111338425B (en) Method and system for realizing countdown of wireless low-power-consumption equipment
JP4952406B2 (en) Time correction method, microcomputer internal clock, electronic control unit
CN101242507B (en) Automatic correction device and its processing method
JP2017020852A (en) Embedded device
JPH1055224A (en) Computer time correction method and software for computer using the method
US20170262393A1 (en) Semiconductor device and control method of the same
JP2896004B2 (en) Calendar iC correction method
JP2022174841A (en) Time synchronization apparatus, time synchronization method, and program
CN114860418A (en) Method and device for using clock source of operating system, electronic equipment and storage medium
JP2006162329A (en) Electric wave receiving system, radio controlled watch and electric wave receiving integrated circuit
JP2002267778A (en) Clock information generator