JPH1116467A - Timer with time correcting function and temperature controller - Google Patents

Timer with time correcting function and temperature controller

Info

Publication number
JPH1116467A
JPH1116467A JP9180459A JP18045997A JPH1116467A JP H1116467 A JPH1116467 A JP H1116467A JP 9180459 A JP9180459 A JP 9180459A JP 18045997 A JP18045997 A JP 18045997A JP H1116467 A JPH1116467 A JP H1116467A
Authority
JP
Japan
Prior art keywords
oscillator
timer
output
oscillation
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9180459A
Other languages
Japanese (ja)
Inventor
Seiji Tanaka
誠二 田中
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP9180459A priority Critical patent/JPH1116467A/en
Publication of JPH1116467A publication Critical patent/JPH1116467A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Unknown Time Intervals (AREA)
  • Oscillators With Electromechanical Resonators (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

PROBLEM TO BE SOLVED: To give high oscillating performance with high reliability to an oscillator with low oscillating performance such as a CERALOCK(R) to reduce the cost by measuring the error of pulse signals with an outside calibrating apparatus for inputting pulse signals from the oscillator based on software controlled with a central processing unit, and correcting the output of the oscillator. SOLUTION: Pulse signals having the specified time width outputted by oscillation of an oscillator 14 when correction is conducted by a correction mode of a CPU 12 are received and measured with an outside cabibrating apparatus 18 connected to an output part 16 and an input part 17 of a timer with a time correcting function 11. Corrected values corresponding to oscillation errors calculated from measured values are inputted to the timer 11 with time correcting function 11, memorized in an EEPROM 13 with the CPU 12, and based on the memorized data, the output of the oscillator 14 is corrected. A low cost oscillator such as CERALOCK(R) or a CR oscillator can be utilized as a high accuracy timer. An output line 19 and an input line 20 connected to the outside calibration apparatus 18 may be connected by radio communication in addition to wire connection.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、タイマ精度を補
正する時間補正機能付きタイマに関し、さらに詳しくは
発振子の発振性能に拘らず高精度のタイマ性能を得るこ
とができる時間補正機能付きタイマに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timer with a time correction function for correcting timer accuracy, and more particularly, to a timer with a time correction function capable of obtaining high-precision timer performance regardless of the oscillation performance of an oscillator. .

【0002】[0002]

【従来の技術】一般に、この種の時間補正機能付きタイ
マは、図8の制御回路図に示すように、中央処理装置
(CPU)81にて制御されるソフトウェアに基づいて
発振動作する発振子82と、負荷容量を調節するトリマ
コンデンサ83とを備え、発振子の出力を歩度計で検査
し、この検査結果に応じて発振誤差をトリマコンデンサ
で調節している。
2. Description of the Related Art Generally, as shown in a control circuit diagram of FIG. 8, a timer with a time correction function of this kind has an oscillator 82 which oscillates based on software controlled by a central processing unit (CPU) 81. And a trimmer capacitor 83 for adjusting the load capacity. The output of the oscillator is inspected by a pedometer, and the oscillation error is adjusted by the trimmer capacitor according to the inspection result.

【0003】通常、この発振子には高発振性能が得られ
る水晶を利用しているが、その反面、水晶発振子は高コ
ストとなっていた。このため、低コストのセラロックや
CR発振子を利用することも考えられるが、この場合は
バラツキが大きく不安定な発振性能のために低精度のタ
イマ利用に用途が限定される問題を有していた。
[0003] Usually, a crystal which can provide high oscillation performance is used for this oscillator, but on the other hand, the crystal oscillator is expensive. For this reason, it is conceivable to use a low-cost Ceralock or CR oscillator, but in this case, there is a problem that the use is limited to the use of a low-precision timer due to a large variation and unstable oscillation performance. Was.

【0004】[0004]

【発明が解決しようとする課題】そこでこの発明は、セ
ラロックのような信頼性の低い低発振性能の発振子であ
っても、その発振誤差を補正して信頼性の高い高発振性
能を発揮させることができる低コスト化を図った時間補
正機能付きタイマおよび温度調節器の提供を目的とす
る。
SUMMARY OF THE INVENTION Accordingly, the present invention corrects the oscillation error of even a low-reliability oscillator such as CERALOCK with low oscillation performance to exhibit a highly reliable high oscillation performance. It is an object of the present invention to provide a timer with a time correction function and a temperature controller that can reduce the cost.

【0005】[0005]

【課題を解決するための手段】請求項1記載の発明は、
中央処理装置にて制御されるソフトウェアに基づいて発
振子の発振誤差を補正する時間補正機能付きタイマであ
って、この発振子の発振に基づくパルス信号を外部校正
装置に出力し、この外部校正装置でパルス信号の誤差を
計測し、この計測値に基づいて発振子の出力を補正する
ことを特徴とする。
According to the first aspect of the present invention,
A timer with a time correction function for correcting an oscillation error of an oscillator based on software controlled by a central processing unit. The timer outputs a pulse signal based on the oscillation of the oscillator to an external calibration device. Is used to measure the error of the pulse signal, and the output of the oscillator is corrected based on the measured value.

【0006】請求項2記載の発明は、中央処理装置にて
制御されるソフトウェアに備えた補正モードと、この補
正モードの補正時に発振子の発振に基づくパルス信号を
外部に出力する出力部と、この出力部から出力されたパ
ルス信号の誤差を外部校正装置が計測し、この計測値を
受付けて入力する入力部と、この入力部が入力した計測
値を記憶する記憶手段と、この記憶手段が記憶した計測
値に基づいて発振子の出力を補正する補正手段とを備え
た時間補正機能付きタイマであることを特徴とする。
According to a second aspect of the present invention, there is provided a correction mode provided in software controlled by a central processing unit, an output unit for outputting a pulse signal based on oscillation of an oscillator to the outside when correcting the correction mode, An external calibration device measures the error of the pulse signal output from the output unit, an input unit that receives and inputs the measured value, a storage unit that stores the measured value input by the input unit, and a storage unit. A timer with a time correction function, comprising: a correction unit that corrects the output of the oscillator based on the stored measurement value.

【0007】請求項3記載の発明は、入力部および出力
部と、外部校正装置との接続に際して、この接続部間を
有線または無線で接続対応する通信手段を備えたことを
特徴とする。
According to a third aspect of the present invention, when the input unit and the output unit are connected to the external calibration device, communication means for connecting the connection units by wire or wirelessly is provided.

【0008】請求項4記載の発明は、電断時にも発振誤
差の計測値を記憶継続して再補正許容する記憶手段を備
えたことを特徴とする。
According to a fourth aspect of the present invention, there is provided a storage means for continuously storing the measured value of the oscillation error even when the power is cut off, and permitting re-correction.

【0009】請求項5記載の発明は、時間補正機能付き
タイマを備えて温度調節する温度調節器であることを特
徴とする。
According to a fifth aspect of the present invention, there is provided a temperature controller having a timer with a time correction function for controlling the temperature.

【0010】[0010]

【作用】この発明によれば、発振子の発振誤差を補正す
る際、この発振子の発振動作に基づくパルス信号を外部
校正装置に出力し、この外部校正装置でパルス信号の誤
差を計測し、この計測値に基づいて発振子の出力を補正
する。
According to the present invention, when correcting the oscillation error of the oscillator, a pulse signal based on the oscillation operation of the oscillator is output to an external calibration device, and the error of the pulse signal is measured by the external calibration device. The output of the oscillator is corrected based on the measured value.

【0011】また、中央処理装置にて制御されるソフト
ウェアに備えた補正モードに基づいて発振子の発振誤差
を補正する際、この補正モードの補正時に発振子の発振
動作に基づくパルス信号を出力部によって外部に出力
し、この出力されたパルス信号の誤差を外部校正装置が
計測し、この計測値を受付けて入力部が入力し、この入
力した計測値を記憶手段が記憶し、この記憶した計測値
に基づいて発振子の出力を補正手段が補正する。
When correcting the oscillation error of the oscillator based on a correction mode provided in software controlled by the central processing unit, a pulse signal based on the oscillation operation of the oscillator is output at the time of correction in the correction mode. The external calibration device measures the error of the output pulse signal, receives the measured value, inputs the measured value, and stores the input measured value in the storage unit. The correction means corrects the output of the oscillator based on the value.

【0012】また、タイマ側に備えられる入力部および
出力部と、外部校正装置との通信接続に際しては、有線
または無線の通信手段によって接続する。さらに、電源
が遮断された電断に拘らず、記憶手段は記憶継続して発
振子の出力を再補正許容する。このような時間補正機能
付きタイマを温度調節器に備えて温度調節する。
[0012] When the input unit and the output unit provided on the timer side are connected for communication with the external calibration device, they are connected by wired or wireless communication means. Further, the storage means allows the output of the oscillator to be re-corrected continually, regardless of the power cut-off. Such a timer with a time correction function is provided in the temperature controller to adjust the temperature.

【0013】[0013]

【発明の効果】この結果、タイマに備えられる発振子の
発振誤差を補正する際、その発振誤差を外部校正装置で
計測して補正管理するため、高発振性能の発振子として
利用で±る。このため、低発振性能の発振子であって
も、水晶発振子のような高発振性能を持たせることがで
き、それゆえ高精度のタイマ利用が図れるためタイマ用
途が拡大し、セラロックやCR発振子のような低コスト
の発振子を有効利用することができる。
As a result, when correcting the oscillation error of the oscillator provided in the timer, the oscillation error is measured by an external calibration device and corrected and managed, so that it can be used as an oscillator having high oscillation performance. As a result, even a low-oscillation performance oscillator can have high oscillation performance like a crystal oscillator, and a high-precision timer can be used. A low-cost oscillator such as a resonator can be effectively used.

【0014】また、タイマと外部校正装置との接続に際
しては、有線または無線にて容易に通信接続することが
でき、さらに不測に電源が遮断された電断が生じても、
記憶手段によって発振子の誤差を記憶継続しているた
め、発振子の出力を再補正許容することができる。ま
た、このような時間補正機能付きタイマを温度調節器に
備えた場合は、経済的で正確に計時管理して温度調節す
ることができる。
Further, when connecting the timer and the external calibration device, communication can be easily established by wire or wireless, and even if the power is unexpectedly cut off,
Since the storage means keeps storing the error of the oscillator, the output of the oscillator can be permitted to be corrected again. Further, when such a timer with a time correction function is provided in the temperature controller, the temperature can be adjusted economically and accurately by performing timekeeping management.

【0015】[0015]

【実施例】この発明の実施例を以下図面に基づいて詳述
する。図1は時間補正機能付きタイマ11の制御回路ブ
ロック図を示し、この時間補正機能付きタイマ11は、
CPU12と、EEPROM13と、発振子14と、コ
ンデンサ15と、出力部16と、入力部17とから構成
され、また発振子14の発振誤差を算出する外部校正装
置18と通信許容して設けている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a control circuit block diagram of a timer 11 with a time correction function.
It comprises a CPU 12, an EEPROM 13, an oscillator 14, a capacitor 15, an output unit 16, and an input unit 17, and is provided to allow communication with an external calibration device 18 for calculating an oscillation error of the oscillator 14. .

【0016】このCPU12は発振子14の発振誤差を
補正制御するための補正モードを備えており、この補正
モード時には同タイマ11の出力部16および入力部1
7を外部校正装置18に配線接続し、発振子14の発振
動作時に特定時間幅のパルス信号を出力させ、これを外
部校正装置18が受付けて計測し、この計測値から発振
誤差を算出し、この発振誤差に応じた補正値を折返しタ
イマ11側に通知して知らせる。これに基づいてCPU
12は発振子14の発振誤差を補正して、低発振性能の
発振子から高発振性能の発振子に切換えることができ、
タイマ11は発振子の発振性能に拘らず高精度のタイマ
として利用することができる。
The CPU 12 has a correction mode for correcting and controlling the oscillation error of the oscillator 14. In this correction mode, the output section 16 and the input section 1 of the timer 11 are provided.
7 is connected to an external calibrator 18 by wiring, and a pulse signal of a specific time width is output when the oscillator 14 oscillates. The external calibrator 18 receives and measures the pulse signal, and calculates an oscillation error from the measured value. A correction value corresponding to the oscillation error is notified to the loopback timer 11 to be notified. CPU based on this
Numeral 12 corrects the oscillation error of the oscillator 14, and can switch from an oscillator with low oscillation performance to an oscillator with high oscillation performance.
The timer 11 can be used as a high-precision timer regardless of the oscillation performance of the oscillator.

【0017】ところで、この時間補正機能付きタイマ1
1は、メーカ側のタイマ出荷時のような発振子14の発
振性能を高める必要があるときのみ、外部校正装置18
に接続して発振誤差を補正処置し、またこの配線接続に
際してはタイマ側の出力部16との間を出力ライン19
を介して通信接続し、タイマ側から出力された発振時の
特定時間幅のパルス信号を受付ける。また、入力部17
との間は出力ライン20を介して通信接続し、外部校正
装置18側で算出した発振誤差の補正値をタイマ11側
に応答情報として折返し入力させる。またこのとき、C
PU12はタイマ11側に入力された補正値を外部記憶
部としてのEEPROM13に記憶させ、この記憶した
補正値に基づいて発振子14の出力を完全に補正する。
Incidentally, the timer 1 with the time correction function
1 is an external calibrator 18 only when it is necessary to improve the oscillation performance of the oscillator 14 such as when a timer is shipped from the manufacturer.
To correct the oscillation error, and connect the output line 16 with the output section 16 on the timer side when connecting this wiring.
, And receives a pulse signal of a specific time width at the time of oscillation output from the timer side. Also, the input unit 17
Is connected via an output line 20, and the oscillation correction value calculated by the external calibration device 18 is repeatedly input to the timer 11 as response information. At this time, C
The PU 12 stores the correction value input to the timer 11 in the EEPROM 13 as an external storage unit, and completely corrects the output of the oscillator 14 based on the stored correction value.

【0018】また、この時間補正機能付きタイマ11は
内部に1msのタイマ割込みを有し、そのタイマ割込み
をカウントして行くことでタイマ機能を実現させてい
る。
The timer 11 with a time correction function has a 1 ms timer interrupt therein, and the timer function is realized by counting the timer interrupt.

【0019】図2は時間補正機能付きタイマのタイムチ
ャートを示し、10MHZ を発振出力する発振子を使用
し、このときCPU12はタイマ割込み用の基準クロッ
クとして1/4分周して2.5MHZ で使用している。
よって、1クロックは400nsであるから1msのタ
イマ割込みを作るために、タイマ割込み時間用レジスタ
に2500(2500×400ns=1ms)カウント
の基準値を設定している。また、ここで使用している発
振子は発振性能の低い例えば−0.2%程度の誤差があ
るものとする(10MHZ ×0.998=9.98MH
Z )。
FIG. 2 shows a time chart of a timer having a time correction function. An oscillator which oscillates and outputs 10 MHz is used. At this time, the CPU 12 divides the frequency by 1/4 as a reference clock for timer interrupt and outputs the signal at 2.5 MHz. I'm using
Therefore, since one clock is 400 ns, a reference value of 2500 (2500 × 400 ns = 1 ms) count is set in the timer interrupt time register in order to create a 1 ms timer interrupt. Also, the oscillator used here has a low oscillation performance and has an error of, for example, about -0.2% (10 MHZ x 0.998 = 9.98 MH)
Z).

【0020】(a)この発振子14の−0.2%程度の
バラツキを有しているとき、CPU12は1ms毎に正
確にタイマ割込みを発生しているつもりであるが、実際
には1.002ms(2500カウント/9.98MH
Z =1.002ms)となっている。
(A) When the oscillator 14 has a variation of about -0.2%, the CPU 12 intends to generate a timer interrupt accurately every 1 ms. 002 ms (2500 counts / 9.98 MH
Z = 1.002 ms).

【0021】(b)また、CPU12は外部校正装置1
8より補正モード開始の指令信号17aを受付けると、
補正モードとなって外部校正装置18に対し、基準カウ
ント(2500ms)のパルス信号を出力する。このと
き、CPU12としては基準カウント(2500ms)
を出力しているつもりであるが、実際の基準カウントの
パルス信号16aは、1.002×2500=2505
msの出力となっている。
(B) The CPU 12 is the external calibration device 1
When receiving the correction mode start command signal 17a from FIG.
In the correction mode, a pulse signal of a reference count (2500 ms) is output to the external calibration device 18. At this time, the reference count (2500 ms)
Is output, the actual reference count pulse signal 16a is 1.002 × 2500 = 2505
ms output.

【0022】(c)外部校正装置18は出力された基準
カウントのパルス信号16aを受付けて、そのパルス出
力幅を計測し、基準値と比較して誤差(この場合は+
5)を算出し、これに応じて求めた補正値(この場合は
−5)をタイマ11側に通知する。
(C) The external calibration device 18 receives the output pulse signal 16a of the reference count, measures the pulse output width, and compares the pulse output width with the reference value to obtain an error (in this case, +
5) is calculated, and the correction value (in this case, -5) obtained in accordance with the calculated value is notified to the timer 11 side.

【0023】(d)タイマ11は外部校正装置18から
補正値が入力部17に入力されると、その補正値をEE
PROM13に記憶し、基準カウント(2500)+補
正値(−5)=補正設定値(2495)の値を、タイマ
割込み時間用レジスタにセットしてタイマ割込み時間を
補正する。
(D) When a correction value is input from the external calibration device 18 to the input section 17, the timer 11 outputs the correction value to the EE.
The timer interrupt time is corrected by setting the value of reference count (2500) + correction value (−5) = correction set value (2495) in the timer interrupt time register.

【0024】これにより、発振子は (2500−5)/(9.98MHZ ÷4)=1.00
msと高発振性能を発揮する。
Thus, the oscillator becomes (2500-5) / (9.98 MHz / 4) = 1.00.
It demonstrates high oscillation performance with ms.

【0025】このように発振子14の発振誤差を外部校
正装置18で計測して補正管理するため、低発振性能の
発振子であっても高発振性能の発振子として利用でき
る。従って、今まで低コストでありながら使用制限され
ていたセラロックやCR発振子のような低発振性能の発
振子であっても、水晶発振子のような高発振性能を持た
せることができる。また、このタイマ11と外部校正装
置18との接続に関しては、出力ライン19や入力ライ
ン20を用いた有線による配線接続だけでなく、無線に
て容易に通信接続することもできる。さらに、不測に電
源が遮断された電断が生じても、EEPROM13によ
って発振子14の補正値を記憶継続しているため、タイ
マ始動毎に発振子の出力を補正して利用することがで
き、発振誤差を常に解消した高性能のタイマとして利用
できる。
As described above, since the oscillation error of the oscillator 14 is measured and corrected and managed by the external calibration device 18, even an oscillator having low oscillation performance can be used as an oscillator having high oscillation performance. Therefore, even low-cost oscillators such as CERALOCK and CR oscillators, which have been limited in use while being low in cost, can have high oscillation performance like a crystal oscillator. Regarding the connection between the timer 11 and the external calibration device 18, not only the wired connection using the output line 19 and the input line 20 but also the communication connection can be easily performed wirelessly. Further, even if the power is unexpectedly cut off, the correction value of the oscillator 14 is continuously stored in the EEPROM 13, so that the output of the oscillator can be corrected and used every time the timer is started. It can be used as a high-performance timer that always eliminates oscillation errors.

【0026】このように構成された時間補正機能付きタ
イマ11の処理動作を図3のフローチャートを参照して
説明する。今、外部校正装置18からタイマ11の入力
部17に指令信号が入力されたとき(ステップn1 )、
この入力された指令信号が発振子の補正を要請する補正
モードであれば、CPU12は補正モードにセットして
(ステップn2 〜n3 )、タイマ割込み時間用レジスタ
に基準カウントのパルス信号(2500ms)をセット
して、補正値を求めるべく基準カウントのパルス信号を
出力させる(ステップn4 )。
The processing operation of the timer 11 with the time correction function configured as described above will be described with reference to the flowchart of FIG. Now, when a command signal is input from the external calibration device 18 to the input unit 17 of the timer 11 (step n1),
If the input command signal is in the correction mode for requesting the correction of the oscillator, the CPU 12 sets the correction mode (steps n2 to n3), and sends the reference count pulse signal (2500 ms) to the timer interrupt time register. The pulse signal of the reference count is output to obtain the correction value (step n4).

【0027】また、外部校正装置18からタイマ11の
入力部17に、補正値の指令信号が入力されると(ステ
ップn5 )、CPU12は、この補正値をEEPROM
13に記憶管理させた後(ステップn6 )、基準値から
補正値を加減算して得られた補正設定値をタイマ割込み
時間として再セットする。これにより、タイマ割込み時
間が変化して低発振性能の発振子は高発振性能の発振子
となる。このようにして発振子のバラツキを補正して高
精度のタイマ機能が得られる(ステップn7 )。
When a command signal for a correction value is input from the external calibration device 18 to the input section 17 of the timer 11 (step n5), the CPU 12 stores this correction value in the EEPROM.
After storage and management in the memory 13 (step n6), the correction set value obtained by adding and subtracting the correction value from the reference value is reset as the timer interrupt time. As a result, the timer interrupt time changes and the oscillator with low oscillation performance becomes an oscillator with high oscillation performance. In this way, the variation of the oscillator is corrected, and a highly accurate timer function is obtained (step n7).

【0028】補正完了後は、補正モードをリセットし
て、発振子14に対する補正動作が終了する(ステップ
n8 )。
After the completion of the correction, the correction mode is reset, and the correction operation for the oscillator 14 ends (step n8).

【0029】次に、時間補正機能付きタイマ11の1m
sのタイマ割込み動作を図4のフローチャートを参照し
て説明する。CPU12は補正モードが設定されると、
この補正モードに基づいてタイマ割込み時間用レジスタ
に基準カウントのパルス信号(2500ms)をセット
して出力させる(ステップn11〜n15)。
Next, 1 m of the timer 11 with the time correction function
The timer interrupt operation of s will be described with reference to the flowchart of FIG. When the correction mode is set, the CPU 12
Based on this correction mode, a reference count pulse signal (2500 ms) is set in the timer interrupt time register and output (steps n11 to n15).

【0030】一方、補正モードによって抽出された補正
値の場合であれば、CPU12は補正設定値になるまで
制御して補正する(ステップn16〜n18)。
On the other hand, if the correction value is the correction value extracted in the correction mode, the CPU 12 controls and corrects until the correction value is reached (steps n16 to n18).

【0031】図5はこの発明の他の実施例を示す時間補
正機能付きタイマ51の制御回路ブロック図を示し、こ
の時間補正機能付きタイマ51は、CPU52と、RO
M53と、発振子54と、コンデンサ55と、出力部5
6と、入力部57とから構成され、また発振子54の発
振誤差を算出する外部校正装置58と通信許容して設け
ている。
FIG. 5 is a block diagram showing a control circuit of a timer 51 with a time correction function according to another embodiment of the present invention.
M53, oscillator 54, capacitor 55, output unit 5
6 and an input unit 57, and is provided so as to allow communication with an external calibration device 58 that calculates an oscillation error of the oscillator 54.

【0032】これは、外部記憶部として設けられるEE
PROMの代りに、ROM53に格納されるプログラム
に、事前に予想される補正値を補正値テーブル59に用
意しておき、複数の補正設定パターンに応じて設けられ
る例えば第1〜第4スイッチSW1 〜SW4 を備えた入
力部57で補正値に対応する補正値テーブル59から特
定のスイッチを選択してスイッチONすることにより、
タイマ割込み時間を補正してタイマの発振誤差を補正す
るものである。
This corresponds to an EE provided as an external storage unit.
Instead of the PROM, a correction value expected in advance is prepared in a correction value table 59 in a program stored in the ROM 53, and for example, the first to fourth switches SW1 to SW4 provided according to a plurality of correction setting patterns are provided. By selecting a specific switch from the correction value table 59 corresponding to the correction value and turning on the switch by the input unit 57 provided with SW4,
This is to correct the oscillation error of the timer by correcting the timer interrupt time.

【0033】一方、外部校正装置58は基準カウントの
パルス信号を計測して発振誤差を算出し、この算出した
計測値から補正値を求める。このときに、外部校正装置
58から時間補正機能付きタイマ51へと補正値を送信
し、これに基づいてCPU52は補正値と対応する入力
部57のいずれかのスイッチSW1 〜SW4 をON動作
させる。
On the other hand, the external calibration device 58 measures the pulse signal of the reference count to calculate an oscillation error, and obtains a correction value from the calculated measurement value. At this time, the correction value is transmitted from the external calibration device 58 to the timer 51 with a time correction function, and based on the correction value, the CPU 52 turns on one of the switches SW1 to SW4 of the input unit 57 corresponding to the correction value.

【0034】図6はこの発明の時間補正機能付きタイマ
を、温度調節器61に適用した制御回路ブロック図を示
し、この温度調節器61は、CPU62と、プログラム
記憶部63と、発振子64と、コンデンサ65と、出力
部66と、入力部67とから構成され、また発振子64
の発振誤差を算出する外部校正装置68と通信許容して
設けている。
FIG. 6 is a control circuit block diagram in which the timer with a time correction function of the present invention is applied to a temperature controller 61. This temperature controller 61 includes a CPU 62, a program storage unit 63, an oscillator 64 , A capacitor 65, an output section 66, and an input section 67.
Is provided so as to allow communication with an external calibration device 68 that calculates the oscillation error of the above.

【0035】CPU62は補正モードのとき、発振子6
4の発振動作時に基準カウントのパルス信号を出力さ
せ、これを外部校正装置68で受付けて計測し、この計
測値と基準値とを比較して誤差を算出し、この誤差に応
じた補正値を折返し温度調節器61の入力部67に回答
する。この補正値に従って、CPU62はユーザにてプ
ログラミングされた温度調節器61の時間設定値を補正
し、温度調節器61の誤差を事前に解消する。補正完了
後は補正値を継続データとしてプログラム記憶部63に
格納して記憶管理させる。
When the CPU 62 is in the correction mode, the oscillator 6
In the oscillation operation of Step 4, a pulse signal of the reference count is output, and the pulse signal is received and measured by the external calibration device 68, the measured value is compared with the reference value to calculate an error, and a correction value corresponding to the error is calculated. An answer is given to the input unit 67 of the turnback temperature controller 61. According to the correction value, the CPU 62 corrects the time setting value of the temperature controller 61 programmed by the user, and eliminates the error of the temperature controller 61 in advance. After the correction is completed, the correction value is stored as continuation data in the program storage unit 63 and stored and managed.

【0036】図7は温度調節器61のプログラム記憶部
63に設定されたプログラムテーブル71を示し、この
プログラムテーブル71には例えば50℃,120℃…
の各温度設定値に対応する10分,50分…の各時間設
定値をそれぞれ対応させて定めており、さらにこの温度
と時間とが対応する設定値毎に補正値αを定めている。
そして、この補正値αを加味して時間設定することによ
り高精度のタイマ機能を発揮する。このため、温度調節
器61は高価な発振子を要せず、経済的な発振子を用い
て高機能のタイマ動作が得られ、ユーザの定めたプログ
ラム通りに正確に温度調節する。
FIG. 7 shows a program table 71 set in the program storage section 63 of the temperature controller 61. The program table 71 includes, for example, 50.degree.
Are set in correspondence with the respective temperature set values of 10 minutes, 50 minutes,..., And a correction value α is set for each set value corresponding to this temperature and time.
By setting the time in consideration of the correction value α, a highly accurate timer function is exhibited. For this reason, the temperature controller 61 does not require an expensive oscillator, a high-performance timer operation is obtained using an economical oscillator, and the temperature is accurately adjusted according to a program determined by the user.

【0037】上述のように、タイマに備えられる発振子
の発振誤差を補正する際、その発振誤差を外部校正装置
で計測して求め、これに基づいて補正するため、低発振
性能の発振子であっても、高発振性能の発振子に切換え
て利用することができる。それゆえセラロックやCR発
振子のような低コストの発振子を有効利用して高精度の
タイマ利用が図れ、またタイマ用途が拡大する。
As described above, when correcting the oscillation error of the oscillator provided in the timer, the oscillation error is measured and obtained by an external calibration device, and based on this, the oscillation error is corrected. Even if it is used, it can be used by switching to an oscillator having high oscillation performance. Therefore, a high-precision timer can be used by effectively using a low-cost oscillator such as a CERALOCK or CR oscillator, and the timer application is expanded.

【0038】この発明と、上述の実施例の構成との対応
において、この発明の中央処理装置および補正手段は、
実施例の各CPU12,52,62に対応し、以下同様
に、記憶手段は、EEPROM13、ROM53および
プログラム記憶部63に対応し、通信手段は、出力ライ
ン19および入力ライン20に対応するも、この発明は
上述の実施例の構成のみに限定されるものではない。
In correspondence between the present invention and the configuration of the above embodiment, the central processing unit and the correcting means of the present invention
In the same manner, the storage means corresponds to the EEPROM 13, the ROM 53, and the program storage unit 63, and the communication means corresponds to the output line 19 and the input line 20. The invention is not limited only to the configuration of the above embodiment.

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

【図1】 この発明の時間補正機能付きタイマの制御回
路ブロック図。
FIG. 1 is a control circuit block diagram of a timer with a time correction function according to the present invention.

【図2】 この発明の時間補正機能付きタイマのタイム
チャート。
FIG. 2 is a time chart of the timer with a time correction function of the present invention.

【図3】 この発明の時間補正機能付きタイマの処理動
作を示すフローチャート。
FIG. 3 is a flowchart showing a processing operation of a timer with a time correction function according to the present invention.

【図4】 この発明の1msのタイマ割込み動作を示す
フローチャート。
FIG. 4 is a flowchart showing a 1 ms timer interrupt operation of the present invention.

【図5】 この発明の他の実施例を示す時間補正機能付
きタイマの制御回路ブロック図。
FIG. 5 is a control circuit block diagram of a timer with a time correction function according to another embodiment of the present invention.

【図6】 この発明の時間補正機能付きタイマを温度調
節器に適用した制御回路ブロック図。
FIG. 6 is a block diagram of a control circuit in which the timer with a time correction function of the present invention is applied to a temperature controller.

【図7】 この発明のプログラム記憶部のプログラムテ
ーブルを示す説明図。
FIG. 7 is an explanatory diagram showing a program table of a program storage unit of the present invention.

【図8】 従来の時間補正機能付きタイマの制御回路ブ
ロック図。
FIG. 8 is a control circuit block diagram of a conventional timer with a time correction function.

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

11,51…時間補正機能付きタイマ 12,52,62…CPU 13…EEPROM 14,54,64…発振子 16,56,66…出力部 17,57,67…入力部 18,58,68…外部校正装置 19…出力ライン 20…入力ライン 53…ROM 61…温度調節器 63…プログラム記憶部 71…プログラムテーブル 11, 51: Timer with time correction function 12, 52, 62 CPU 13: EEPROM 14, 54, 64 ... Oscillator 16, 56, 66 ... Output unit 17, 57, 67 ... Input unit 18, 58, 68 ... External Calibration device 19 ... output line 20 ... input line 53 ... ROM 61 ... temperature controller 63 ... program storage unit 71 ... program table

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】中央処理装置にて制御されるソフトウェア
に基づいて発振子の発振誤差を補正する時間補正機能付
きタイマであって、上記発振子の発振に基づくパルス信
号を外部校正装置に出力し、この外部校正装置でパルス
信号の誤差を計測し、この計測値に基づいて発振子の出
力を補正する時間補正機能付きタイマ。
1. A timer with a time correction function for correcting an oscillation error of an oscillator based on software controlled by a central processing unit, wherein the timer outputs a pulse signal based on the oscillation of the oscillator to an external calibration device. A timer with a time correction function that measures the error of the pulse signal with the external calibration device and corrects the output of the oscillator based on the measured value.
【請求項2】中央処理装置にて制御されるソフトウェア
に備えた補正モードと、上記補正モードの補正時に発振
子の発振に基づくパルス信号を外部に出力する出力部
と、上記出力部から出力されたパルス信号の誤差を外部
校正装置が計測し、この計測値を受付けて入力する入力
部と、上記入力部が入力した計測値を記憶する記憶手段
と、上記記憶手段が記憶した計測値に基づいて発振子の
出力を補正する補正手段とを備えた時間補正機能付きタ
イマ。
2. A correction mode provided in software controlled by a central processing unit, an output unit for outputting a pulse signal based on oscillation of an oscillator during correction in the correction mode, and an output unit output from the output unit. An external calibration device measures the error of the pulse signal, and an input unit that receives and inputs the measured value, a storage unit that stores the measured value input by the input unit, and a measurement value that is stored by the storage unit. A timer with a time correction function, comprising: a correction means for correcting the output of the oscillator.
【請求項3】入力部および出力部は、外部校正装置と接
続許容する有線または無線にて接続対応する通信手段を
備えたことを特徴とする請求項2記載の時間補正機能付
きタイマ。
3. The timer with a time correction function according to claim 2, wherein the input unit and the output unit are provided with a communication unit that is connected to the external calibration device by a wired or wireless connection.
【請求項4】記憶手段は、電断時にも記憶継続して再補
正許容することを特徴とする請求項2記載の時間補正機
能付きタイマ。
4. A timer with a time correction function according to claim 2, wherein said storage means continuously stores and permits re-correction even when power is cut off.
【請求項5】請求項1、2、3または4記載の時間補正
機能付きタイマを備えて温度調節する温度調節器。
5. A temperature controller comprising a timer with a time correction function according to claim 1, 2 and 3 for temperature control.
JP9180459A 1997-06-20 1997-06-20 Timer with time correcting function and temperature controller Pending JPH1116467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9180459A JPH1116467A (en) 1997-06-20 1997-06-20 Timer with time correcting function and temperature controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9180459A JPH1116467A (en) 1997-06-20 1997-06-20 Timer with time correcting function and temperature controller

Publications (1)

Publication Number Publication Date
JPH1116467A true JPH1116467A (en) 1999-01-22

Family

ID=16083602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9180459A Pending JPH1116467A (en) 1997-06-20 1997-06-20 Timer with time correcting function and temperature controller

Country Status (1)

Country Link
JP (1) JPH1116467A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720451B2 (en) 2004-12-03 2010-05-18 Itt Manufacturing Enterprises, Inc. Methods and apparatus for calibrating oscillators in a receiver
JP2016071413A (en) * 2014-09-26 2016-05-09 京セラドキュメントソリューションズ株式会社 Clock adjustment mechanism

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720451B2 (en) 2004-12-03 2010-05-18 Itt Manufacturing Enterprises, Inc. Methods and apparatus for calibrating oscillators in a receiver
JP2016071413A (en) * 2014-09-26 2016-05-09 京セラドキュメントソリューションズ株式会社 Clock adjustment mechanism

Similar Documents

Publication Publication Date Title
US6885254B2 (en) Calibration device and method for generating a clock in an integrated circuit
JP2001159690A (en) Portable device and real time information production method
JP4713556B2 (en) System and method for generating a very precise and temperature independent reference frequency for GPS equipment
US6151238A (en) Calibrating functions of an integrated circuit and storing calibration parameters thereof in a programmable fuse array
US5729722A (en) Semiconductor integrated circuit and communication control apparatus
JP2011199481A (en) Clock system
US4761771A (en) Electronic timekeeping apparatus with temperature compensation and method for compensating same
JP5556579B2 (en) Electronic device and clock correction method
JP2000199792A (en) Time piece and time correction method
JPH1116467A (en) Timer with time correcting function and temperature controller
CN115951756A (en) Clock signal calibration device and method, electronic device, and storage medium
US5546363A (en) Clock apparatus for forming time information for use in computer system
JPS62240824A (en) Thermometer
JPH01261025A (en) Clock generating circuit
JP4711546B2 (en) Temperature correction method for real-time clock and processing device provided with real-time clock
JP3611788B2 (en) Microcomputer timer calibration system
JP4192379B2 (en) Electronic control system
JP2003270369A (en) Time correction method and time correction device for real time clock
JP2006284192A (en) Thermometer
JP2000031815A (en) Device and method for controlling frequency
JP7503683B2 (en) Integrated Circuits
JP3673406B2 (en) Digitally controlled oscillator
JPS59225323A (en) Electronic thermometer
TWI470934B (en) Portable control apparatus and method thereof
US20230400522A1 (en) Voltage measurement system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060620