JP2000315121A - Rtc circuit - Google Patents

Rtc circuit

Info

Publication number
JP2000315121A
JP2000315121A JP11123793A JP12379399A JP2000315121A JP 2000315121 A JP2000315121 A JP 2000315121A JP 11123793 A JP11123793 A JP 11123793A JP 12379399 A JP12379399 A JP 12379399A JP 2000315121 A JP2000315121 A JP 2000315121A
Authority
JP
Japan
Prior art keywords
clock
frequency error
oscillator
frequency
rtc
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
JP11123793A
Other languages
Japanese (ja)
Inventor
Yasuyuki Kimura
泰之 木村
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 JP11123793A priority Critical patent/JP2000315121A/en
Publication of JP2000315121A publication Critical patent/JP2000315121A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a real time clock(RTC) circuit capable of highly accurately correcting time by simple constitution without increasing current consumption and the size of equipment. SOLUTION: When power supply for the equipment is turned on, an operation control part 60 controls the operation of a reference oscillator 30 and a frequency error detector 40 and the detector 40 measures the frequency error of a reference clock generated by a clock oscillator 10 by using a highly accurate reference clock generated by the oscillator 30. The frequency error is always inputted to an oscillator 50 with a correcting function. The oscillator 50 cumulatively adds a fixed value previously set by a digital oscillator to be driven by a reference clock whose frequency is divided by a frequency divider 20 and the frequency error by data consisting of the number of bits corresponding to requested accuracy, generates a clock based on the most significant bit(MSB) of the cumulatively added result, and when the accumulation of the frequency error reaches the MSB, corrects the generated clock.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、例えば携帯電話
機のように低消費電流が求められる機器に用いられるR
TC(Real Time Clock)回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to R
It relates to a TC (Real Time Clock) circuit.

【0002】[0002]

【従来の技術】周知のように、従来の携帯電話などの携
帯機器に備えられるRTC回路の時刻補正は、特開平7
−311289等にあるように、機器のCPUの演算に
よる補正か、あるいは時報や人工衛星等からの基準とな
る時刻情報に基づく補正が主である。
2. Description of the Related Art As is well known, the time correction of an RTC circuit provided in a conventional portable device such as a portable telephone is disclosed in Japanese Patent Application Laid-Open No. H07-197007.
As described in -31289, etc., correction is mainly performed by calculation of the CPU of the device, or correction based on a time signal or reference time information from an artificial satellite or the like.

【0003】機器のCPUの演算による補正は、RTC
回路の基本クロックの周波数ずれをTCXOにて測定
し、この測定結果に基づいてCPUが時刻の補正を行
う。このように、CPUを用いて時刻の補正を行うと、
消費電流が大きいという問題がある。
The correction by the calculation of the CPU of the device is performed by the RTC
The frequency shift of the basic clock of the circuit is measured by TCXO, and the CPU corrects the time based on the measurement result. Thus, when the time is corrected using the CPU,
There is a problem that current consumption is large.

【0004】これに対して、消費電流を低減するため
に、CPUによる補正の間隔(補正周期)を長くとる
と、まとめて多くの時刻誤差を補正させることになり、
補正に対する応答が悪くなる。この場合、温度ドリフト
等により、補正周期に比べて早い周期で、RTC回路の
基本クロックの周波数ずれが生じると、誤った補正を行
うことになり、最悪の場合、時刻が発振してしまう虞が
ある。
On the other hand, if the interval (correction cycle) of correction by the CPU is increased to reduce current consumption, many time errors will be corrected collectively.
Poor response to correction. In this case, if the frequency shift of the basic clock of the RTC circuit occurs earlier than the correction cycle due to temperature drift or the like, erroneous correction will be performed, and in the worst case, the time may oscillate. is there.

【0005】一方、時報や人工衛星(GPS衛星)等か
らの基準となる時刻情報に基づいて時刻補正を行う場
合、これらの情報を取得する構成を必要とし、機器の大
型化につながり、携帯機器には不向きであるという問題
がある。
On the other hand, when time correction is performed based on time information or time information serving as a reference from an artificial satellite (GPS satellite) or the like, a configuration for acquiring such information is required, which leads to an increase in the size of the device and a portable device. Has the problem of being unsuitable.

【0006】[0006]

【発明が解決しようとする課題】従来のRTC回路の時
刻補正を行う場合、消費電流の増大や機器の大型化を招
くといった問題があった。この発明は上記の問題を解決
すべくなされたもので、消費電流の増大や機器の大型化
を招くことなく、簡便な構成で高精度に時刻補正を行う
ことが可能なRTC回路を提供することを目的とする。
When the time is corrected in the conventional RTC circuit, there is a problem that the current consumption increases and the size of the device increases. SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides an RTC circuit capable of performing time correction with high accuracy with a simple configuration without increasing current consumption or increasing the size of equipment. With the goal.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに、この発明は、パルス生成を行うRTC(Real Tim
e Clock)回路において、常時動作して、基本クロック
を生成する第1の発振手段と、制御信号を通じた指示に
応じて動作し、第1の発振手段の基本クロックよりも高
速かつ高精度な基準クロックを用いて、所定のゲート時
間分の基本クロックをカウントすることにより周波数誤
差を検出する周波数誤差検出手段と、基本クロックで動
作し、周波数誤差検出手段にて求めた周波数誤差に応じ
たクロックを生成する第2の発振手段とを具備して構成
するようにした。
In order to achieve the above-mentioned object, the present invention provides an RTC (Real Tim Clock) for performing pulse generation.
e Clock) circuit, a first oscillating means which operates constantly to generate a basic clock, and a reference which operates in response to an instruction through a control signal and which is faster and more accurate than the basic clock of the first oscillating means. Using a clock, a frequency error detecting means for detecting a frequency error by counting a basic clock for a predetermined gate time, and a clock operating according to the basic clock and corresponding to the frequency error obtained by the frequency error detecting means. And a second oscillating means for generating.

【0008】上記構成のRTC回路では、基本クロック
よりも高速かつ高精度な基準クロックを用いて基本クロ
ックの周波数誤差を検出し、この周波数誤差に応じたク
ロックを生成するようにしている。
In the RTC circuit having the above configuration, a frequency error of the basic clock is detected using a reference clock that is faster and more accurate than the basic clock, and a clock corresponding to the frequency error is generated.

【0009】したがって、上記構成のRTC回路によれ
ば、CPUによる演算や他の時刻情報を取得して補正を
行なう必要がないため、消費電流の増大や機器の大型化
を招くことなく、簡便な構成で高精度に時刻補正を行う
ことができる。
Therefore, according to the RTC circuit having the above configuration, there is no need to perform calculations by the CPU or obtain other time information to perform correction, so that the RTC circuit can be simplified without increasing current consumption or increasing the size of the device. With the configuration, time correction can be performed with high accuracy.

【0010】また、この発明では、第2の発振手段が、
所定のビット幅で表現された上記周波数誤差と所定値と
を、基本クロック毎に累積加算し、この加算結果の特定
のビットに応じたクロックを生成することを特徴とす
る。
Further, according to the present invention, the second oscillating means includes:
The frequency error represented by a predetermined bit width and a predetermined value are cumulatively added for each basic clock, and a clock corresponding to a specific bit of the addition result is generated.

【0011】したがって、上記構成のRTC回路によれ
ば、周波数誤差の累積により、その累積が上記特定のビ
ットに繰り上がる際に、補正されたクロックが生成され
ることになる。このため、累積加算器で補正されたクロ
ックを生成できるため、簡便な構成で高精度に時刻補正
を行うことができる。
Therefore, according to the RTC circuit having the above configuration, a corrected clock is generated when the accumulation of the frequency error is carried over to the specific bit. For this reason, since the clock corrected by the accumulator can be generated, the time can be corrected with high accuracy with a simple configuration.

【0012】さらに、この発明では、所定の時間が経過
する毎に、制御信号を通じて、周波数誤差検出手段を動
作させる第1の動作制御手段を備えることを特徴とす
る。したがって、上記構成のRTC回路によれば、第1
の発振手段の経時変化や、温度変動に起因してクロック
周波数が変動するような、高頻度で周波数誤差を検出す
る必要がない場合に、高速かつ高精度な基準クロックの
生成を休止できるので、消費電流の軽減することができ
る。
Further, the present invention is characterized in that there is provided first operation control means for operating the frequency error detection means through a control signal every time a predetermined time elapses. Therefore, according to the RTC circuit having the above configuration, the first
If it is not necessary to detect the frequency error with high frequency, such as the clock frequency fluctuating due to the aging of the oscillating means or the temperature fluctuation, the generation of the high-speed and high-precision reference clock can be stopped. Current consumption can be reduced.

【0013】さらにまた、この発明では、周波数誤差検
出手段のゲート時間を可変する第2の動作制御手段を備
えることを特徴とする。したがって、上記構成のRTC
回路によれば、要求に応じて上記ゲート時間を可変する
ことにより、周波数誤差の検出精度を可変できるので、
当該RTC回路にて生成するクロックの精度を調整する
ことができる。
Still further, the present invention is characterized in that there is provided second operation control means for varying the gate time of the frequency error detection means. Therefore, the RTC having the above configuration
According to the circuit, the detection accuracy of the frequency error can be changed by changing the gate time as required, so that
The accuracy of the clock generated by the RTC circuit can be adjusted.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して、この発明
の一実施形態について説明する。図1は、この発明の一
実施形態に係わるRTC回路の構成を示すものである。
このRTC回路は、時計発振器10と、分周器20と、
基準発振器30と、周波数誤差検出器40と、補正機能
付き発振器50と、動作制御部60と、時計カウンタ7
0とを備える。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a configuration of an RTC circuit according to an embodiment of the present invention.
The RTC circuit includes a clock oscillator 10, a frequency divider 20,
Reference oscillator 30, frequency error detector 40, oscillator 50 with correction function, operation control unit 60, clock counter 7
0.

【0015】時計発振器10は、時計用に100ppm
程度と比較的精度の低い基本クロックを生成する発振器
で、ここで生成された基本クロックは、分周器20と周
波数誤差検出器40に出力される。なお、ここで、上記
基本クロックの周波数Ftは、32.768kHzとす
る。
The clock oscillator 10 has a frequency of 100 ppm for a clock.
An oscillator for generating a basic clock having relatively low accuracy is output to the frequency divider 20 and the frequency error detector 40. Here, the frequency F t of the basic clock, and 32.768kHz.

【0016】分周器20は、上記基本クロックを2N
周するものである。この分周器20は、例えば図2に示
すように、n(1≦N≦n)個のフリップフロップ21
1〜21nを用いた非同期カウンタで構成し、低消費電
流化を図っている。
The frequency divider 20 divides the basic clock by 2 N. The frequency divider 20 includes n (1 ≦ N ≦ n) flip-flops 21 as shown in FIG.
It is composed of an asynchronous counter using 1 to 21n to reduce current consumption.

【0017】そして、選択回路22は、各フリップフロ
ップ211〜21nにて分周された基本クロックのう
ち、2N分周された基本クロックを選択的に補正機能付
き発振器50に出力する。なお、上記Nは、後述の動作
制御部60にて指示される値である。
The selection circuit 22 selectively outputs the basic clock divided by 2 N among the basic clocks divided by the flip-flops 211 to 21n to the oscillator with correction function 50. Note that N is a value specified by an operation control unit 60 described later.

【0018】基準発振器30は、TCXOなどを用いる
ことにより、数ppm程度と時計発振器10より精度の
高い基準クロックを生成する発振器で、動作制御部60
によって動作制御される。ここで生成された基準クロッ
クは、周波数誤差検出器40に出力される。なお、ここ
で、上記基準クロックの周波数Frは、14.4MHz
とする。
The reference oscillator 30 uses a TCXO or the like to generate a reference clock having a precision of several ppm higher than that of the clock oscillator 10.
The operation is controlled by The generated reference clock is output to the frequency error detector 40. Here, the frequency F r of the reference clock, 14.4 MHz
And

【0019】周波数誤差検出器40は、基準クロックに
基づいて、基本クロックに生じる周波数誤差を検出する
ものである。この周波数誤差検出器40は、例えば図3
に示すように、ゲート生成カウンタ41と誤差測定用カ
ウンタ42とから構成され、これらの動作は、動作制御
部60によって制御される。
The frequency error detector 40 detects a frequency error occurring in the basic clock based on the reference clock. The frequency error detector 40 is, for example, as shown in FIG.
As shown in (1), it comprises a gate generation counter 41 and an error measurement counter 42, and these operations are controlled by an operation control unit 60.

【0020】ゲート生成カウンタ41は、時計発振器1
0にて生成された基本クロックをカウントし、動作制御
部60を通じて予め設定されるゲート幅Tのゲート信号
を生成するものである。なお、ここで、ゲート幅Tは、
「32768」が設定されており、基本クロックに誤差
がない場合、基本クロックの周波数が32.768kH
zであることより、ゲート生成カウンタ41は、基本ク
ロックに誤差がない場合、1secのゲート信号を生成
する。
The gate generation counter 41 has a clock oscillator 1
The basic clock generated at 0 is counted, and a gate signal having a gate width T set in advance through the operation control unit 60 is generated. Here, the gate width T is
If “32768” is set and there is no error in the basic clock, the frequency of the basic clock is 32.768 kHz.
Because of z, the gate generation counter 41 generates a gate signal for 1 second when there is no error in the basic clock.

【0021】誤差測定用カウンタ42は、基準発振器3
0にて生成された基準クロックをカウントもので、上記
ゲート生成カウンタ41にて生成されたゲート信号をイ
ネーブルとする。
The error measuring counter 42 is provided with the reference oscillator 3
The reference clock generated at 0 is counted, and the gate signal generated at the gate generation counter 41 is enabled.

【0022】そして、誤差測定用カウンタ42は、ゲー
ト信号で設定される時間内にカウントしたカウント値
と、動作制御部60を通じて予め設定される期待値Eと
の差を求め、この差を周波数誤差として補正機能付き発
振器50に出力する。
The error measuring counter 42 obtains the difference between the count value counted within the time set by the gate signal and the expected value E set in advance through the operation control unit 60, and calculates this difference as the frequency error. Is output to the oscillator 50 with the correction function.

【0023】なお、一旦求められた周波数誤差は、誤差
測定用カウンタ42が動作停止状態にあっても、新たな
周波数誤差が求められるまで、補正機能付き発振器50
に出力され続ける。
It should be noted that the frequency error once obtained is determined by the oscillator 50 with the correction function until a new frequency error is obtained even if the error measuring counter 42 is in an operation stopped state.
Continues to be output to

【0024】また、ここで、基準クロックが14.4M
Hzで、基本クロックに誤差がない場合、ゲート信号が
1secであることより、上記期待値Eは「14400
000」が設定される。すなわち、ゲート幅Tは、下式
にしたがって、基本クロックの周波数Ftと、基準クロ
ックの周波数Frとの比より、求められる値に設定され
る。なお、Bは、後述のビット幅である。
Here, the reference clock is 14.4M.
In Hz, when there is no error in the basic clock, the expected value E is “14400” because the gate signal is 1 sec.
000 "is set. That is, the gate width T is set to a value determined from the ratio between the frequency Ft of the basic clock and the frequency Fr of the reference clock according to the following equation. B is a bit width described later.

【0025】[0025]

【数1】 (Equation 1)

【0026】補正機能付き発振器50は、分周器20に
て分周された基本クロックの周波数誤差を、周波数誤差
検出器40にて求めた誤差にしたがって補正し、補正さ
れた基本クロックを生成するディジタル発振器で、例え
ば図4に示すような累積加算器で構成される。
The oscillator 50 with a correction function corrects the frequency error of the basic clock divided by the frequency divider 20 in accordance with the error obtained by the frequency error detector 40, and generates a corrected basic clock. This is a digital oscillator, for example, a cumulative adder as shown in FIG.

【0027】加算器51では、周波数誤差検出器40に
て求めた周波数誤差と、後述のフリップフロップ52の
出力と、動作制御部60を通じて予め設定される加算値
Aとを加算して、この加算結果をフリップフロップ52
に入力する。
The adder 51 adds the frequency error obtained by the frequency error detector 40, the output of the flip-flop 52 described later, and an addition value A preset through the operation control unit 60, and this addition is performed. Flip-flop 52
To enter.

【0028】フリップフロップ52は、分周器20にて
分周された基本クロックで動作し、その出力を上記加算
器51に入力する。そしてまた、フリップフロップ52
は、その出力のMSB(Most Significant Bit)に基づ
くクロックを時計用クロックとして時計カウンタ70に
入力する。
The flip-flop 52 operates with the basic clock divided by the frequency divider 20 and inputs its output to the adder 51. And again, flip-flop 52
Inputs a clock based on the MSB (Most Significant Bit) of the output to the clock counter 70 as a clock for clock.

【0029】動作制御部60は、当該RTC回路の各部
を統括して制御するもので、基準発振器30や周波数誤
差検出器40の動作制御、およびユーザの指示に応じ
て、分周器20の分周数を決める値Nや、周波数誤差検
出器40のゲート幅Tの値、期待値E、加算器51の加
算値Aの値を設定する。
The operation control section 60 controls the respective sections of the RTC circuit in an integrated manner. The operation control section 60 controls the operation of the reference oscillator 30 and the frequency error detector 40, and operates the frequency divider 20 in accordance with a user's instruction. A value N for determining the frequency, a value of the gate width T of the frequency error detector 40, an expected value E, and a value of the added value A of the adder 51 are set.

【0030】時計カウンタ70は、60秒カウンタ71
と、60分カウンタ72と、24時カウンタ73とから
なり、補正機能付き発振器50にて補正された基本クロ
ックに基づいて、秒、分、時をそれぞれ計時するもので
ある。
The clock counter 70 has a 60-second counter 71.
, A 60-minute counter 72, and a 24-hour counter 73, each of which measures seconds, minutes, and hours based on the basic clock corrected by the oscillator 50 with a correction function.

【0031】次に、上記構成のRTC回路の動作を以下
に説明する。なお、以下の説明では、Nが「1」の場
合、すなわち分周器20にて2分周する場合について説
明する。補正機能付き発振器50は、常に電流を消費す
るため、これを下げるためには、選択回路22で選択さ
れるクロックの周波数は低速の方が好ましい。
Next, the operation of the RTC circuit having the above configuration will be described below. In the following description, a case where N is “1”, that is, a case where the frequency divider 20 divides the frequency by 2 will be described. Since the oscillator 50 with the correction function always consumes current, the frequency of the clock selected by the selection circuit 22 is preferably low in order to reduce the current.

【0032】基準発振器30および周波数誤差検出器4
0は、動作制御部60の制御により、当該RTC回路が
搭載される携帯電話機などの機器が電源ONされた時な
どに動作制御され、周波数誤差を検出し、その動作が停
止制御される。
Reference oscillator 30 and frequency error detector 4
0 is controlled by the operation control unit 60 when the power of a device such as a mobile phone in which the RTC circuit is mounted is turned on, detects a frequency error, and controls the operation to stop.

【0033】また、その後、所定の時間が経過すると、
基準発振器30および周波数誤差検出器40は、動作制
御部60により動作制御され、新たに周波数誤差を求め
直し、その動作が停止制御される。
After a predetermined time has elapsed,
The operation of the reference oscillator 30 and the frequency error detector 40 is controlled by the operation control unit 60, a frequency error is newly obtained, and the operations thereof are stopped and controlled.

【0034】以上のような動作制御部60の動作制御に
より、周波数誤差検出器40は、ゲート生成カウンタ4
1により、図5に示すようにゲート幅Tだけ基本クロッ
クがカウントされ、ゲート信号が生成される。そして、
誤差測定用カウンタ42にて上記ゲート信号をイネーブ
ルとして基準クロックをカウントし、期待値Eとの差、
すなわち周波数誤差を求める。この周波数誤差は、補正
機能付き発振器50に入力される。
By the operation control of the operation control unit 60 as described above, the frequency error detector 40 operates the gate generation counter 4
1, the basic clock is counted by the gate width T as shown in FIG. 5, and a gate signal is generated. And
The error measurement counter 42 counts the reference clock by enabling the gate signal, and calculates a difference from the expected value E,
That is, a frequency error is obtained. This frequency error is input to the oscillator 50 with a correction function.

【0035】補正機能付き発振器50の周波数誤差の補
正精度を上げるためには、累積加算で扱うデータのビッ
ト数を増やせばよいが、ここで要求されるビット数は補
正する周波数の分解能をバイナリになおした値(整数部
1桁を含む)である。
In order to improve the accuracy of correcting the frequency error of the oscillator 50 having a correction function, the number of bits of data to be handled by the cumulative addition may be increased. This is the value (including one digit of the integer part).

【0036】ここで、例えば、1ppm以下の精度を求
めるのであれば、ビット幅Bを18ビット、すなわち2
-17(<1ppm)であればよい。仮に18ビットであ
っても、動作周波数が十分低いので消費電流の増加は無
視できるレベルである。
Here, for example, if an accuracy of 1 ppm or less is required, the bit width B is set to 18 bits, that is, 2 bits.
-17 (<1 ppm). Even if it is 18 bits, the operating frequency is sufficiently low and the increase in current consumption is negligible.

【0037】なぜなら、時計発振器10の基本クロック
の周波数が32.768kHzであるため、補正機能付
き発振器50の累積加算動作の速度は1/16384s
ecであり、32.768kHzで動作する、前段の分
周器20のフリップフロップの消費電流の方が遙かに大
きいからである。
Because the frequency of the basic clock of the clock oscillator 10 is 32.768 kHz, the speed of the accumulative addition operation of the oscillator 50 with the correction function is 1/164384 seconds.
ec and operates at 32.768 kHz because the current consumption of the flip-flop of the frequency divider 20 in the preceding stage is much larger.

【0038】ここで、動作説明を簡明にするために、周
波数誤差検出器40にて求めた周波数誤差は「1」であ
ったものとし、加算値Aを「1」としていたものとす
る。また、補正精度を1ppm以下とするために、補正
機能付き発振器50で扱うデータのビット幅Bを18ビ
ットとする。
Here, for simplicity of explanation of the operation, it is assumed that the frequency error obtained by the frequency error detector 40 is "1" and the added value A is "1". In addition, in order to make the correction accuracy 1 ppm or less, the bit width B of the data handled by the oscillator 50 with a correction function is set to 18 bits.

【0039】するとこの場合、図6に示すように、分周
器20の出力(a)に対して、フリップフロップ52の
出力は、加算器51での累積加算により、(b)に示す
ような値で変化する。
In this case, as shown in FIG. 6, the output of the flip-flop 52 is added to the output (a) of the frequency divider 20 by the cumulative addition in the adder 51 as shown in FIG. Varies with value.

【0040】このため、フリップフロップ52出力のM
SBに基づくクロックは、図6(c)に示すように変化
する。すなわち、時刻Tiまでに累積加算された周波数
誤差が、ここでMSBまで繰り上がるため、上記クロッ
クは約0.5周期分だけ補正されることになる。
For this reason, M of the output of the flip-flop 52
The clock based on SB changes as shown in FIG. In other words, the frequency error cumulatively added up to time Ti is shifted up to the MSB here, so that the clock is corrected by about 0.5 cycle.

【0041】以上のように、上記構成のRTC回路で
は、機器の電源投入時や、所定の時間が経過する毎に、
動作制御部60が基準発振器30と周波数誤差検出器4
0とを動作制御して、基準発振器30にて生成される精
度の高い基準クロックを用いて、周波数誤差検出器40
が時計発振器10にて生成される基本クロックの周波数
誤差を測定し、補正機能付き発振器50に常時入力す
る。
As described above, in the RTC circuit having the above configuration, when the power of the device is turned on or every time a predetermined time elapses,
The operation control unit 60 includes the reference oscillator 30 and the frequency error detector 4
0 to control the frequency error detector 40 using the highly accurate reference clock generated by the reference oscillator 30.
Measures the frequency error of the basic clock generated by the clock oscillator 10 and constantly inputs it to the oscillator 50 with the correction function.

【0042】そして、補正機能付き発振器50は、分周
器20で分周された基本クロックで動作するディジタル
発振器で、固定値Aと上記周波数誤差とを、要求される
精度に応じたビット数で表現して累積加算を行い、この
累積加算結果のMSBを用いてクロックを生成する。こ
のため、補正機能付き発振器50は、周波数誤差の累積
がMSBまで繰り上がると、生成されるクロックが補正
されることになる。
The oscillator 50 with a correction function is a digital oscillator that operates on the basic clock divided by the frequency divider 20 and converts the fixed value A and the frequency error with the number of bits according to the required precision. The expression is used to perform cumulative addition, and a clock is generated using the MSB of the cumulative addition result. For this reason, in the oscillator with a correction function, when the accumulation of the frequency error is advanced to the MSB, the generated clock is corrected.

【0043】したがって、上記構成のRTC回路によれ
ば、周波数誤差を求める場合にだけ基準発振器30と周
波数誤差検出器40を動作させ、そしてCPUの演算に
頼ることなく、基本クロックで動作するディジタル発振
器にて基本クロックの補正を行うため、消費電流の増大
や機器の大型化を招くことなく、簡便な構成で高精度に
時刻補正を行うことができる。
Therefore, according to the RTC circuit having the above configuration, the reference oscillator 30 and the frequency error detector 40 are operated only when the frequency error is obtained, and the digital oscillator which operates on the basic clock without depending on the operation of the CPU. Since the correction of the basic clock is performed, the time can be accurately corrected with a simple configuration without increasing the current consumption or increasing the size of the device.

【0044】尚、この発明は上記実施の形態に限定され
るものではない。その他、この発明の要旨を逸脱しない
範囲で種々の変形を施しても同様に実施可能であること
はいうまでもない。
The present invention is not limited to the above embodiment. In addition, it goes without saying that various modifications can be made without departing from the spirit of the present invention.

【0045】[0045]

【発明の効果】以上述べたように、この発明では、基本
クロックよりも高速かつ高精度な基準クロックを用いて
基本クロックの周波数誤差を検出し、この周波数誤差に
応じたクロックを生成するようにしている。
As described above, according to the present invention, a frequency error of a basic clock is detected using a reference clock that is faster and more accurate than the basic clock, and a clock corresponding to the frequency error is generated. ing.

【0046】したがって、この発明によれば、CPUに
よる演算や他の時刻情報を取得して補正を行なう必要が
ないため、消費電流の増大や機器の大型化を招くことな
く、簡便な構成で高精度に時刻補正を行うことが可能な
RTC回路を提供できる。
Therefore, according to the present invention, since there is no need to perform calculations by the CPU or obtain other time information to perform correction, it is possible to achieve a simple configuration without increasing the current consumption and the size of the device. An RTC circuit capable of accurately performing time correction can be provided.

【0047】また、この発明では、第2の発振手段が、
所定のビット幅で表現された上記周波数誤差と所定値と
を、基本クロック毎に累積加算し、この加算結果の特定
のビットに応じたクロックを生成する。このため、周波
数誤差の累積により、その累積が上記特定のビットに繰
り上がる際に、補正されたクロックが生成されることに
なり、累積加算器で補正されたクロックを生成できるた
め、簡便な構成で高精度に時刻補正を行うことが可能な
RTC回路を提供できる。
Further, according to the present invention, the second oscillating means includes:
The frequency error represented by the predetermined bit width and the predetermined value are cumulatively added for each basic clock, and a clock corresponding to a specific bit of the addition result is generated. Therefore, when the accumulation of the frequency error is carried over to the specific bit, a corrected clock is generated, and the clock corrected by the accumulator can be generated. Thus, it is possible to provide an RTC circuit capable of performing time correction with high accuracy.

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

【図1】この発明に係わるRTC回路の一実施の形態の
構成を示す回路ブロック図。
FIG. 1 is a circuit block diagram showing a configuration of an embodiment of an RTC circuit according to the present invention.

【図2】図1に示したRTC回路の分周器の構成を示す
回路ブロック図。
FIG. 2 is a circuit block diagram showing a configuration of a frequency divider of the RTC circuit shown in FIG.

【図3】図1に示したRTC回路の周波数誤差検出器の
構成を示す回路ブロック図。
FIG. 3 is a circuit block diagram showing a configuration of a frequency error detector of the RTC circuit shown in FIG.

【図4】図1に示したRTC回路の補正機能付き発振器
の構成を示す回路ブロック図。
FIG. 4 is a circuit block diagram showing a configuration of an oscillator with a correction function of the RTC circuit shown in FIG. 1;

【図5】図3に示した周波数誤差検出器における、ゲー
ト信号の生成動作を説明するための図。
FIG. 5 is a diagram for explaining an operation of generating a gate signal in the frequency error detector shown in FIG. 3;

【図6】図4に示した補正機能付き発振器における、基
本クロックの周波数補正動作を説明するための図。
FIG. 6 is a view for explaining a frequency correction operation of a basic clock in the oscillator with a correction function shown in FIG. 4;

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

10…時計発振器 20…分周器 211〜21n…フリップフロップ 22…選択回路 30…基準発振器 40…周波数誤差検出器 41…ゲート生成カウンタ 42…誤差測定用カウンタ 50…補正機能付き発振器 51…加算器 52…フリップフロップ 60…動作制御部 70…時計カウンタ 71…60秒カウンタ 72…60分カウンタ 73…24時カウンタ DESCRIPTION OF SYMBOLS 10 ... Clock oscillator 20 ... Divider 211-21n ... Flip-flop 22 ... Selection circuit 30 ... Reference oscillator 40 ... Frequency error detector 41 ... Gate generation counter 42 ... Error measurement counter 50 ... Oscillator with a correction function 51 ... Adder 52: flip-flop 60: operation control unit 70: clock counter 71: 60-second counter 72: 60-minute counter 73: 24-hour counter

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 クロック生成を行うRTC(Real Time
Clock)回路において、 常時動作して、基本クロックを生成する第1の発振手段
と、 制御信号を通じた指示に応じて動作し、前記第1の発振
手段の基本クロックよりも高速かつ高精度な基準クロッ
クを用いて、所定のゲート時間分の前記基本クロックを
カウントすることにより周波数誤差を検出する周波数誤
差検出手段と、 前記基本クロックで動作し、前記周波数誤差検出手段に
て求めた周波数誤差に応じたクロックを生成する第2の
発振手段とを具備することを特徴とするRTC回路。
1. An RTC (Real Time Clock) for generating a clock
A first oscillating means which operates constantly to generate a basic clock, and operates in response to an instruction through a control signal, and which operates at a higher speed and a higher precision than the basic clock of said first oscillating means. A frequency error detecting means for detecting a frequency error by counting the basic clock for a predetermined gate time using a clock, and operating with the basic clock and according to the frequency error obtained by the frequency error detecting means. And a second oscillating means for generating a clock.
【請求項2】 前記第2の発振手段は、所定のビット幅
で表現された前記周波数誤差と所定値とを、前記基本ク
ロック毎に累積加算し、この加算結果の特定のビットに
応じたクロックを生成することを特徴とする請求項1に
記載のRTC回路。
2. The second oscillating means accumulatively adds the frequency error represented by a predetermined bit width and a predetermined value for each basic clock, and generates a clock corresponding to a specific bit of the addition result. The RTC circuit according to claim 1, wherein
【請求項3】 所定の時間が経過する毎に、前記制御信
号を通じて、周波数誤差検出手段を動作させる第1の動
作制御手段を備えることを特徴とする請求項1または請
求項2に記載のRTC回路。
3. The RTC according to claim 1, further comprising first operation control means for operating frequency error detection means through the control signal every time a predetermined time elapses. circuit.
【請求項4】 前記周波数誤差検出手段のゲート時間を
可変する第2の動作制御手段を備えることを特徴とする
請求項1乃至請求項3のいずれかに記載のRTC回路。
4. The RTC circuit according to claim 1, further comprising second operation control means for varying a gate time of said frequency error detection means.
JP11123793A 1999-04-30 1999-04-30 Rtc circuit Pending JP2000315121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11123793A JP2000315121A (en) 1999-04-30 1999-04-30 Rtc circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11123793A JP2000315121A (en) 1999-04-30 1999-04-30 Rtc circuit

Publications (1)

Publication Number Publication Date
JP2000315121A true JP2000315121A (en) 2000-11-14

Family

ID=14869455

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11123793A Pending JP2000315121A (en) 1999-04-30 1999-04-30 Rtc circuit

Country Status (1)

Country Link
JP (1) JP2000315121A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006090831A1 (en) * 2005-02-24 2006-08-31 Seiko Epson Corporation Clock signal outputting device and its control method, and electronic device and its control method
WO2007011024A1 (en) * 2005-07-21 2007-01-25 Seiko Epson Corporation Portable clock and electronic device
KR100819735B1 (en) * 2001-06-21 2008-04-07 삼성전자주식회사 Computer system and control method thereof
JP2011191127A (en) * 2010-03-12 2011-09-29 Denso Wave Inc Time measurement device and sensor device
JP2014092841A (en) * 2012-11-01 2014-05-19 Renesas Electronics Corp Semiconductor device, clock correction method
US8823434B2 (en) 2012-06-29 2014-09-02 Renesas Electronics Corporation Clock correction circuit and clock correction method
JP2015089005A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generation device, electronic apparatus, mobile body and clock generation method
JP2015088025A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generator, electronic apparatus, mobile body, and clock generation method
JP2015171151A (en) * 2014-03-06 2015-09-28 イーエム・ミクロエレクトロニク−マリン・エス アー Time base including oscillator, frequency divider circuit and clocking pulse inhibition circuit
US9548724B2 (en) 2013-03-26 2017-01-17 Seiko Epson Corporation Clock generation device, electronic apparatus, moving object, and clock generation method

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100819735B1 (en) * 2001-06-21 2008-04-07 삼성전자주식회사 Computer system and control method thereof
JPWO2006090831A1 (en) * 2005-02-24 2008-08-07 セイコーエプソン株式会社 Clock signal output device and control method thereof, electronic device and control method thereof
JP4561829B2 (en) * 2005-02-24 2010-10-13 セイコーエプソン株式会社 Clock signal output device and control method thereof, electronic device and control method thereof
WO2006090831A1 (en) * 2005-02-24 2006-08-31 Seiko Epson Corporation Clock signal outputting device and its control method, and electronic device and its control method
WO2007011024A1 (en) * 2005-07-21 2007-01-25 Seiko Epson Corporation Portable clock and electronic device
US7697377B2 (en) 2005-07-21 2010-04-13 Seiko Epson Corporation Portable timepiece and electronic apparatus
JP2011191127A (en) * 2010-03-12 2011-09-29 Denso Wave Inc Time measurement device and sensor device
US8823434B2 (en) 2012-06-29 2014-09-02 Renesas Electronics Corporation Clock correction circuit and clock correction method
US9257966B2 (en) 2012-06-29 2016-02-09 Renesas Electronics Corporation Clock correction circuit and clock correction method
CN103809658A (en) * 2012-11-01 2014-05-21 瑞萨电子株式会社 Semiconductor device and clock correction method
JP2014092841A (en) * 2012-11-01 2014-05-19 Renesas Electronics Corp Semiconductor device, clock correction method
US9276586B2 (en) 2012-11-01 2016-03-01 Renesas Electronics Corporation Semiconductor device and clock correction method
US9548724B2 (en) 2013-03-26 2017-01-17 Seiko Epson Corporation Clock generation device, electronic apparatus, moving object, and clock generation method
JP2015089005A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generation device, electronic apparatus, mobile body and clock generation method
JP2015088025A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generator, electronic apparatus, mobile body, and clock generation method
JP2015171151A (en) * 2014-03-06 2015-09-28 イーエム・ミクロエレクトロニク−マリン・エス アー Time base including oscillator, frequency divider circuit and clocking pulse inhibition circuit

Similar Documents

Publication Publication Date Title
US7084810B2 (en) Portable terminal and GPS time keeping method
KR100687230B1 (en) Real time clock apparatus and the real time compensating method thereof
US7500125B2 (en) Positioning signal receiving apparatus
CN101128780B (en) Clock signal output apparatus and control method of same, and electric apparatus and control method of same
US7728684B2 (en) Crystal reference clock and radio localization receiver
EP1585223B1 (en) Method and circuit for determining a slow clock calibration factor
EP0683443B1 (en) Time correction of an electronic clock
US8749313B2 (en) Correction of low accuracy clock
JP2000315121A (en) Rtc circuit
US20060047459A1 (en) Edge-aligned ratio counter
US8917147B2 (en) Method and system to improve power utilization using a calibrated crystal warm-up detection
JP2000278752A (en) Mobile radio terminal
JP3730914B2 (en) Mobile communication terminal device
JP2002228778A (en) Real-time clock and clocking circuit
CN201060266Y (en) Real time clock circuit for accelerating GPS signal capture
US6972608B2 (en) Clock generating circuit with a frequency multiplying circuit
CN109976138A (en) The control method of electronic equipment and electronic equipment
JP2003106906A (en) Temperature measuring method
JP2002217713A (en) Reference frequency generator
JP3990331B2 (en) Time correction control circuit, time correction control method, and time correction control program
JP3087919U (en) Electronic clock correction circuit
JPS5856421B2 (en) temperature measuring device
JPH11183660A (en) Portable information processing device with built-in watch
US20080191808A9 (en) Layout for a time base
JP2001217708A (en) Frequency oscillator