JPS6041749B2 - Time correction mechanism - Google Patents

Time correction mechanism

Info

Publication number
JPS6041749B2
JPS6041749B2 JP52112698A JP11269877A JPS6041749B2 JP S6041749 B2 JPS6041749 B2 JP S6041749B2 JP 52112698 A JP52112698 A JP 52112698A JP 11269877 A JP11269877 A JP 11269877A JP S6041749 B2 JPS6041749 B2 JP S6041749B2
Authority
JP
Japan
Prior art keywords
output
frequency
crystal oscillator
counter
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP52112698A
Other languages
Japanese (ja)
Other versions
JPS5446579A (en
Inventor
弘 加納
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP52112698A priority Critical patent/JPS6041749B2/en
Publication of JPS5446579A publication Critical patent/JPS5446579A/en
Publication of JPS6041749B2 publication Critical patent/JPS6041749B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G3/00Producing timing pulses
    • G04G3/02Circuits for deriving low frequency timing pulses from pulses of higher frequency
    • G04G3/022Circuits for deriving low frequency timing pulses from pulses of higher frequency the desired number of pulses per unit of time being obtained by adding to or substracting from a pulse train one or more pulses

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Description

【発明の詳細な説明】 本発明は水晶発振子を用いた時計等の時刻補正−機構
に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a time correction mechanism for a watch or the like using a crystal oscillator.

水晶発振子を利用した電子式の時計は、水晶発振子の
製造上のバラツキ等により、目標とする発振周波数を正
確に実現することはできないため、ある程度の誤差は避
けることができない。
Electronic watches that use a crystal oscillator cannot accurately achieve a target oscillation frequency due to variations in the manufacturing process of the crystal oscillator, so some errors are unavoidable.

このた。め、例えは、月差5秒とか、2側′といつた誤
差を許容さざるを得ない。 ところで、水晶発振子を利
用した時計は上記のように誤差を避けることはできない
が、その誤差は製造された水晶発振子の振動周波数によ
つて規定される。
others. For example, we have to accept an error of 5 seconds per month or 2'. By the way, although a watch using a crystal oscillator cannot avoid errors as described above, the errors are determined by the vibration frequency of the manufactured crystal oscillator.

すなわち、一旦得られた水晶発振子の振動周波数は電源
の電圧が一定である限り当初の周波数を保つ。したがつ
て、設計周波数との誤差を測定しこれを規則的に修正す
れば正確な時刻を計時する時計が得られるものと思われ
る。 本発明は上記のような検討の結果生まれたもので
あり、その目的とするところは、水晶発振子の製造上の
バラツキを回路的に補正できる時刻補正機構を得ること
にある。
That is, the oscillation frequency of the crystal oscillator once obtained maintains its original frequency as long as the voltage of the power supply is constant. Therefore, it is thought that by measuring the error from the design frequency and regularly correcting it, a clock that keeps accurate time can be obtained. The present invention was created as a result of the above studies, and its purpose is to provide a time correction mechanism that can correct manufacturing variations in crystal oscillators using a circuit.

上記目的を達成するための本発明の要旨は、水晶発振
子の振動周波数と設計周波数との比較において得られた
補正周波数を記憶回路に記憶しておき、水晶発振子の出
力に同期して演算を行う減算カウンタを上記記憶周波数
だけカウントさせ、カウント’’o’’となつた時に基
本カウンタに加算又は減算を行わせることによつて時刻
を補正してなることを特徴とするものてある。
The gist of the present invention to achieve the above object is to store a correction frequency obtained by comparing the vibration frequency of a crystal oscillator with a design frequency in a storage circuit, and calculate the correction frequency in synchronization with the output of the crystal oscillator. This device is characterized in that the subtraction counter that performs this is made to count by the above-mentioned storage frequency, and when the count reaches ``o'', the basic counter is made to perform addition or subtraction, thereby correcting the time.

以下実施例にそつて図面を参照し本発明を具体的に説
明する。
The present invention will be specifically described below with reference to embodiments and drawings.

第1図は本発明に係る時刻補正機構の一実施例を示す
ブロック線図である。
FIG. 1 is a block diagram showing one embodiment of a time correction mechanism according to the present invention.

図中1は水晶発振子てあり、基本周波数V。 In the figure, 1 is a crystal oscillator, and its fundamental frequency is V.

を出力する。2はPROM(プログラマブル・リードオ
ンリメモリ)であり、上記基本周波数V。
Output. 2 is a PROM (programmable read-only memory), and the basic frequency is V.

と設計周波数との関係において求められた補正周波数が
書き込まれるとともに、後で説明する加算又は減算(“
゜1゛又は“0゛)の符号が書き込まれる。3は上記基
本周波数V。
The corrected frequency determined in relation to the design frequency is written, and addition or subtraction (“
A code of ゜1゛ or "0゛) is written. 3 is the fundamental frequency V mentioned above.

が印加される減算カウンタであり、ANDゲート回路G
1を介して上記PROM2の記憶周波数が印加される。
すられち、この減算カウンタ3では上記記憶周波数VA
がセットされ、上記基本周波数V。に基づいて減算がな
される。4は、上記減算カウンタ3が減算を行い゜“0
゛となつたことを検出する検出回路であり、上記AND
ゲート回路G1のゲートを制御する。
is a subtraction counter to which G is applied, and the AND gate circuit G
1, the storage frequency of the PROM 2 is applied.
In this subtraction counter 3, the above storage frequency VA
is set, and the fundamental frequency V is set. Subtraction is done based on . 4 means that the subtraction counter 3 performs subtraction ゜“0”.
This is a detection circuit that detects that the above AND
Controls the gate of gate circuit G1.

すなわち、減算カウンタ3が減算動作中はこの検出回路
4ば゜0゛を出力して,ANDゲート回路G1のゲート
を閉じているが、減算動作終了時ぱ゜0゛を検出して“
゜1゛を出力し、もつてANDゲート回路G1を開き、
PROM2の記憶周波数を減算カウンタ3に再びセット
するものてある。図中5は時刻を計時するための基本カ
ウンタであり、入力側には水晶発振子1からの基本周波
数■。を受ける第1の加算用端子P1と、第2の加算用
端子P2及び、減算用端子P3を有するすなわち、加減
算可能な構成となつている。上記第2の加算用端子P2
にはANDゲート回路G2(以下遅れ用ゲートともいう
)の出力■。が印加され、減算用端子P3にはANDゲ
ート回路G3(以下進み用ゲートともいう)の出力VF
が印加される。上記N1ゲート回路G2は上記゜“0゛
検出回路4の出力■。と、PROM2の符号信号■。の
反転出力(インバータINlにつて反転)を2入力とし
ており、ANDゲート回路G3は上記検出回路4の出力
■。とPROMの符号信号Vcを2入力としている。す
なわち、基本カウンタ5内の構成は図示しないが、AN
Dゲート回路G2の出力■。が“゜1゛となると基本カ
ウンタ5内で、゜“1゛が基本周波数に加算され、逆に
、ANDゲート回路G3の出力■Fが“1゛となると基
本周波数から“゜1゛が減算されるような構成になつて
いる。上記ブロック線図の動作説明に先立つて、先ず、
上記PROMに書き込む補正値の計算方法の一例を説明
する。
That is, while the subtraction counter 3 is performing a subtraction operation, this detection circuit 4 outputs a value of ``0'' and closes the gate of the AND gate circuit G1, but when the subtraction operation is completed, it detects a value of ``0''.
Output ゜1゛, open AND gate circuit G1,
There is a function for resetting the storage frequency of the PROM 2 in the subtraction counter 3. In the figure, 5 is a basic counter for measuring time, and the input side receives the basic frequency ■ from the crystal oscillator 1. In other words, it has a first addition terminal P1, a second addition terminal P2, and a subtraction terminal P3, which are capable of addition and subtraction. The second addition terminal P2
is the output ■ of AND gate circuit G2 (hereinafter also referred to as delay gate). is applied, and the output VF of the AND gate circuit G3 (hereinafter also referred to as advance gate) is applied to the subtraction terminal P3.
is applied. The N1 gate circuit G2 has two inputs: the output ■ of the ゜"0゛ detection circuit 4 and the inverted output (inverted with respect to the inverter INl) of the code signal ■ of the PROM2, and the AND gate circuit G3 has two inputs: The output ■ of the basic counter 5 and the code signal Vc of the PROM are two inputs.In other words, although the internal configuration of the basic counter 5 is not shown,
Output ■ of D gate circuit G2. When becomes "゜1゛,""1" is added to the fundamental frequency in the basic counter 5, and conversely, when the output ■F of AND gate circuit G3 becomes "1", "゜1" is subtracted from the fundamental frequency. It is structured so that Before explaining the operation of the above block diagram, first,
An example of a method of calculating the correction value to be written into the PROM will be explained.

ここで、水晶発振子の設計周波数をaとし、その実測周
波数をbとし、さらに、上記発振周波数bの発振子を使
つた時計の1日に進む(又は遅れる)時間をcとするこ
のとき、上記A,b,cの間には次式(1)の関係があ
る。
Here, the design frequency of the crystal oscillator is a, its actual measured frequency is b, and the time that a clock advances (or lags) in one day using the oscillator with the oscillation frequency b is c. There is a relationship between A, b, and c as shown in the following equation (1).

ここで、この時計が進むとした場合には、b〉aの関係
となる。
Here, if this clock advances, the relationship b>a holds.

したがつて、PROMにセットする数値nの計算式は次
式(2)となる。上記計算式に具体的数値を当てて説明
する。
Therefore, the formula for calculating the numerical value n to be set in the PROM is the following formula (2). The above calculation formula will be explained using specific numerical values.

この水晶発振子の振動周波数の設計値が4GHzであつ
たとする。そして、製造時の実測周波数が400001
5Hzであつたとする。この周波数のまま補正せずに時
計を作ると、この時計は1日につき、0.324秒進む
。すなわち、1ケ月30日として約9.7鍬進むことに
なる。これを補正するためには、PROMには上記(2
)式により補正値266667Hzを書き込んでおく必
要がある。すなわち、基本周波数266667Hz毎に
1Hz減算して補正を行うようにするわけてある。上記
の結果により、PROM2には266667Hzを書き
込むとともに、進み符号である“1゛を書き込む。
Assume that the design value of the vibration frequency of this crystal oscillator is 4 GHz. And the actual measured frequency at the time of manufacture was 400001
Suppose it was 5Hz. If a clock is made using this frequency without correction, the clock will advance by 0.324 seconds per day. In other words, if one month has 30 days, it will move about 9.7 hoe. In order to correct this, the PROM must be
) It is necessary to write a correction value of 266667 Hz using the formula. That is, the correction is performed by subtracting 1 Hz for every 266,667 Hz of the fundamental frequency. Based on the above results, 266667 Hz is written into PROM2, and the advance code "1" is written.

したがつて、減算カウンタ3にはANDゲート回路G1
を介して266667Hzがセットされる。そして、減
算カウンタ3は、上記セットされた瞬間から、水晶発振
子1の基本周波数■。に従つて減算を行う。次に上記セ
ットされた数(266667)だけ減算がなされると減
算カウンタ3の出力は゜“0゛となる。これを検出回路
4が検出し“1゛を出力する。この検出回路4の出力に
よつて減算カウンタセット用のANDゲート回路G1が
ゲートを開き、再びPROM2の書き込み値(2666
67)を減算カウンタにセットする。これと同時に、上
記検出回路4の出力“1゛と、PRCMの符号信号゜“
1゛を2入力とする減算用のANDゲート回路G3がゲ
ートを開き、出力VFが“゜1゛となる。これにより、
基本カウンタ5は、基本周波数V。からは、1カウント
分減算されることになる。以下同様にして、26666
7回毎に1回減算がなされ、時刻が自動的に補正される
。逆に、製造された水晶発振子が設計周波数より゛も少
なかつたときは、この発振子を使用した時計は遅れるこ
とになるが、この場合は、上記計算式(1),(2)に
よつて得られた補正周波数をPROM2にセットしてお
き、符号部には“゜0゛を書き込む。
Therefore, the subtraction counter 3 includes an AND gate circuit G1.
266667Hz is set via . From the moment when the subtraction counter 3 is set, the fundamental frequency (■) of the crystal oscillator 1 is set. Perform subtraction according to . Next, when the set number (266667) is subtracted, the output of the subtraction counter 3 becomes "0".The detection circuit 4 detects this and outputs "1". The output of the detection circuit 4 opens the AND gate circuit G1 for setting the subtraction counter, and the write value (2666
67) in the subtraction counter. At the same time, the output "1" of the detection circuit 4 and the PRCM code signal "
The AND gate circuit G3 for subtraction, which has two inputs of 1゛, opens its gate, and the output VF becomes "゜1゛."As a result,
The basic counter 5 has a basic frequency V. 1 count will be subtracted from . Similarly, 26666
Subtraction is performed once every 7 times, and the time is automatically corrected. Conversely, if the manufactured crystal oscillator's frequency is even less than the design frequency, the clock using this oscillator will be delayed, but in this case, the calculation formulas (1) and (2) above will be delayed. The corrected frequency thus obtained is set in the PROM 2, and "゜0゛" is written in the code section.

このようにすれば、減算カウンタ3の出力が゜“0゛と
なる度に遅れ用ANDゲート回路G2がゲートを開き、
基本周波数に゜“1゛を加算することとなり補正がなさ
れる。以上のように本発明によれば、水晶発振子の振動
周波数に製造上のバラツキがあつても、回路的に正確な
時刻を補正することができ、このような補正機構を使用
すれば誤差の少ない時計が得られる。
In this way, every time the output of the subtraction counter 3 reaches ゛0゛, the delay AND gate circuit G2 opens the gate.
Correction is made by adding ゛1゛ to the fundamental frequency.As described above, according to the present invention, even if there are manufacturing variations in the vibration frequency of the crystal oscillator, accurate time can be determined using the circuit. By using such a correction mechanism, a timepiece with few errors can be obtained.

本発明は上記実施例に限定されず、種々の変形を用いる
ことができる。
The present invention is not limited to the above embodiments, and various modifications can be made.

例えば、上記実施例においては、基本カウンタにおいて
は補正時毎に1カウント加減算を行うものとしたが、こ
れに限らず、一度に2カウント以上加減算を行うように
してもよい。かかる場合はPROM2の設定値をそれに
応じて減少させる必要がある。また、上記実施例では製
造時の補正値をPROMに記憶するものであつたが、こ
れに限らず、RAM(ランダムアクセスメモリ)を付加
し、使用時に任意に補正値を設定できるようにしてもよ
い。
For example, in the above embodiment, the basic counter adds and subtracts one count each time it is corrected, but is not limited to this, and may add or subtract two or more counts at a time. In such a case, it is necessary to reduce the setting value of PROM2 accordingly. Further, in the above embodiment, the correction value at the time of manufacture is stored in the PROM, but this is not the only option, and a RAM (Random Access Memory) may be added so that the correction value can be arbitrarily set during use. good.

すなわち、季節、地域差等に基づく使用条件(温度等)
が異なる場合に、予めRAMに種々の条件を記憶させて
おき、使用者が適当に補正値を選び設定できるようにす
ればより有効なものとなる。本発明は水晶発振子を用い
た時刻補正機構として広く利用できる。
In other words, usage conditions (temperature, etc.) based on seasons, regional differences, etc.
If the values are different, it will be more effective if various conditions are stored in the RAM in advance so that the user can appropriately select and set the correction value. The present invention can be widely used as a time correction mechanism using a crystal oscillator.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係る時刻補正機構の一実施例を示すブ
ロック線図である。 1・・・・・・水晶発振子、2・・・・・・PROM、
3・・・・・・減算カウンタ、4・・・・・・検出回路
、5・・・・・・基本カウンタ、IN・・・・・・イン
バータ、G1〜G3・・・・・・ゲート回路。
FIG. 1 is a block diagram showing one embodiment of a time correction mechanism according to the present invention. 1...Crystal oscillator, 2...PROM,
3...Subtraction counter, 4...Detection circuit, 5...Basic counter, IN...Inverter, G1-G3...Gate circuit .

Claims (1)

【特許請求の範囲】[Claims] 1 水晶発振子と、上記水晶発振子の出力を計数する基
本カウンタと、上記水晶発振子の振動周波数と基準周波
数との相違に基づいて求められた補正周波数データと符
号データとが記憶される記憶回路と、上記水晶発振子の
出力を計数する補正用カウンタと、上記補正用カウンタ
の出力が“0”となつたことを検出する検出回路と、上
記検出回路の出力と上記符号データとを受けとることに
よつて“1”加算又は“1”減算のための信号を出力す
るゲート回路とを備えてなり、上記検出回路から検出信
号が出力されたとき上記補正周波数データを上記補正用
カウンタにプリセットさせるようにしてなるとともに、
上記検出信号が出力されたときに上記ゲート回路から出
力される信号によつて上記基本カウンタの内容を“1”
だけ増加もしくは減小させるようにしてなることを特徴
とする時刻補正機構。
1 A crystal oscillator, a basic counter that counts the output of the crystal oscillator, and a memory in which corrected frequency data and code data obtained based on the difference between the vibration frequency of the crystal oscillator and a reference frequency are stored. a correction counter that counts the output of the crystal oscillator; a detection circuit that detects that the output of the correction counter becomes "0"; and receives the output of the detection circuit and the code data. and a gate circuit that outputs a signal for adding "1" or subtracting "1", and presets the correction frequency data in the correction counter when the detection signal is output from the detection circuit. At the same time,
The content of the basic counter is set to "1" by the signal output from the gate circuit when the detection signal is output.
A time correction mechanism characterized in that the time correction mechanism is configured to increase or decrease the time.
JP52112698A 1977-09-21 1977-09-21 Time correction mechanism Expired JPS6041749B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52112698A JPS6041749B2 (en) 1977-09-21 1977-09-21 Time correction mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52112698A JPS6041749B2 (en) 1977-09-21 1977-09-21 Time correction mechanism

Publications (2)

Publication Number Publication Date
JPS5446579A JPS5446579A (en) 1979-04-12
JPS6041749B2 true JPS6041749B2 (en) 1985-09-18

Family

ID=14593247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52112698A Expired JPS6041749B2 (en) 1977-09-21 1977-09-21 Time correction mechanism

Country Status (1)

Country Link
JP (1) JPS6041749B2 (en)

Also Published As

Publication number Publication date
JPS5446579A (en) 1979-04-12

Similar Documents

Publication Publication Date Title
US4305041A (en) Time compensated clock oscillator
US20200328718A1 (en) Systems and methods for frequency compensation of real-time-clock systems
JPH07311289A (en) Electronic watch and time correction method
JPS6310370B2 (en)
US4708491A (en) Time of day clock
US6590376B1 (en) Method of deriving a frequency of a pulse signal from alternate sources and method of calibrating same
US4114363A (en) Electronic timepiece
JPS6041749B2 (en) Time correction mechanism
JPH06342088A (en) Timing method, semiconductor device and timer
CN115085721A (en) Temperature compensation method, device, equipment and storage medium based on crystal oscillator
JP4711546B2 (en) Temperature correction method for real-time clock and processing device provided with real-time clock
CN106444966A (en) Device and method for adjusting real time clock (RTC)
US4068463A (en) Reference signal frequency correction in an electronic timepiece
JPS5632809A (en) Correcting unit for frequency
JPH1114775A (en) Method for automatically correcting display time of electronic clock
JPH05134779A (en) Calender ic correction method
JPS622557Y2 (en)
JPS63133083A (en) Time correction system of machinery built-in clock
JPH0450793A (en) Clock accuracy adjusting device
JP2003240884A (en) Electronic timepiece device, time correction method for electronic timepiece device and time correction program
JPS5912381A (en) Electronic time piece
JPH0245837Y2 (en)
JPH0628786U (en) Clock device
JPS6025485A (en) Electronic timepiece
JPS62231196A (en) Timepiece device with error adjusting function