JPS61165143A - Malfunction preventing system of cpu - Google Patents

Malfunction preventing system of cpu

Info

Publication number
JPS61165143A
JPS61165143A JP60006280A JP628085A JPS61165143A JP S61165143 A JPS61165143 A JP S61165143A JP 60006280 A JP60006280 A JP 60006280A JP 628085 A JP628085 A JP 628085A JP S61165143 A JPS61165143 A JP S61165143A
Authority
JP
Japan
Prior art keywords
cpu
pulse
counter
clock pulse
normal
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
JP60006280A
Other languages
Japanese (ja)
Inventor
Hirobumi Kumamoto
熊本 博文
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP60006280A priority Critical patent/JPS61165143A/en
Publication of JPS61165143A publication Critical patent/JPS61165143A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decide whether a CPU is normal or abnormal, and to initialize or stop the CPU by counting for a prescribed time a clock pulse outputted from the CPU, and comparing it with a normal count value which has been prescribed in advance. CONSTITUTION:An oscillator 1 gives a reference clock pulse CL to a CPU3. This clock pulse CL is inputted to a counter 4, and the counter 4 which has been reset by a resetting circuit 6 at a rise of a reference pulse T0 given by an oscillating circuit 2 counts the clock pulse CL in a period of until a rise of the reference pulse T0. The count number N is sent to a deciding circuit 5, and in case of N1-N2, and other case, they are regarded as normal and abnormal, respectively, and an external notice is issued, and the CPU itself is reset as necessary.

Description

【発明の詳細な説明】 (7′)技術分野 この発明はCP U (Cantral Proces
sing Unit )の誤動作防止方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (7') Technical field This invention is based on CPU (Cantral Process
This invention relates to a method for preventing malfunction of the sing Unit.

CPUは、ある発振子からクロックパルスヌを受けて作
動する。クロックパルスの周波数は、水晶発振子を用い
たりして、安定するように努力がなされている。しかし
、必ずしも周波数は安定しているとは限らない。またC
PUは、広い周波数範囲で動作する(例えばl MHz
〜3 M)IZ )ため、発振子の周波数が変動してい
ても、平常と同じように動作する。
The CPU operates by receiving clock pulses from a certain oscillator. Efforts are being made to stabilize the frequency of the clock pulse by using a crystal oscillator. However, the frequency is not necessarily stable. Also C
The PU operates over a wide frequency range (e.g. l MHz
~3M)IZ) Therefore, even if the frequency of the oscillator fluctuates, it operates as usual.

このため、CPUから、周波数の偏寄を検出する、とい
う事はできない。
Therefore, it is not possible to detect frequency bias from the CPU.

クロックパルスのパルス周波数の変動は、しかしながら
、CPU以外の回路や素子に関して動作不良をひき起す
事がある。このため、クロックパルス周波数の異常を監
視する必要のある場合がある。
However, variations in the pulse frequency of the clock pulses may cause malfunctions in circuits and elements other than the CPU. Therefore, it may be necessary to monitor abnormalities in the clock pulse frequency.

(イ)  従  来  技  術 CPUのクロックパルスの速さを監視するようにした従
来技術はない。少なくとも本発明者は知らない。
(B) Prior art There is no prior art that monitors the speed of the clock pulse of the CPU. At least the inventor does not know.

(つ)   目     的 CPUのクロックパルスの速さが正常であるか異常であ
るかを診断する回路を学えることが本発明の目的である
(1) Purpose The purpose of the present invention is to learn a circuit that diagnoses whether the clock pulse speed of a CPU is normal or abnormal.

に)  構   成 第1図は本発明のCPt1の誤動作防止方式のブロック
図を示している。
2) Configuration FIG. 1 shows a block diagram of the malfunction prevention system of CPt1 of the present invention.

発振子1がCPU3に基準となるクロックパルスCLを
学える。CPU3は、外部の多様な回路素子、メモリな
どと接続されているが、これらは図示しない。CPUを
使う目的や、CPUをとり囲む回路素子の機能は任意で
ある。どのような目的に使われていても本発明は適用で
きるし、どのような回路素子が存在しても、本発明を実
施する上で妨げとはならない。
The oscillator 1 can learn the reference clock pulse CL from the CPU 3. The CPU 3 is connected to various external circuit elements, memories, etc., but these are not shown. The purpose of using the CPU and the functions of the circuit elements surrounding the CPU are arbitrary. The present invention can be applied to any purpose, and the presence of any circuit elements does not impede the implementation of the present invention.

本発明に於ては、新たに、時間計測の基準として発振回
路2を設ける。発振回路2ば、水晶発振子を用いて厳密
に周波数を規定する。捷だ適当な分周器などを含み、か
なり長い時間T。を周期と□するパルスを生ずるように
している。そして、デユーティを50%にして、To/
2はLに、To/2 はHになるようにする。デユーテ
ィは任意であるが、こうして50%に設定して説明する
In the present invention, an oscillation circuit 2 is newly provided as a reference for time measurement. The oscillation circuit 2 uses a crystal oscillator to strictly define the frequency. It takes a fairly long time T, including a suitable frequency divider. It is designed to generate a pulse whose period is □. Then, set the duty to 50% and To/
2 becomes L and To/2 becomes H. Although the duty is arbitrary, the explanation will be made by setting it to 50%.

いつ)Y ウCP Uの発するクロックパルスの周期を
tとする。Toはtの何倍もの長い時間である。
When) Y U CPU Let t be the period of the clock pulse issued by U. To is a long time many times t.

カウンタ4も新しく設ける。これのクロック人力Ckに
、CPUから外部へ出力されたクロックパルスCLを入
力する。このカウンタ4は、クロックパルスCLの数を
計数する。パルスの立上如で計数しても立下りで計数し
ても差支えない。
A new counter 4 will also be installed. The clock pulse CL outputted from the CPU to the outside is inputted to the clock input Ck. This counter 4 counts the number of clock pulses CL. There is no problem whether you count the rising edge of the pulse or the falling edge of the pulse.

カウンタ4のイネーブル端子Eに、発振回路2の出力を
接続する。発振回路2の出力がHである時、カウンタ4
は計数し、出力がLである時、カウンタ4は計数を中止
する。
The output of the oscillation circuit 2 is connected to the enable terminal E of the counter 4. When the output of the oscillation circuit 2 is H, the counter 4
counts, and when the output is L, the counter 4 stops counting.

基準パルスT。の立上りに於て、カウンタ4はリセット
される。このため基準パルスToをリセット回路6に入
れて、短いパルスにし、これをカウンタ4のリセット端
子Hに入力している。リセット回路6は、短いパルスを
生ずるワンショットマルチバイブレータのようなもので
あってよい。
Reference pulse T. At the rising edge of , the counter 4 is reset. For this reason, the reference pulse To is input into the reset circuit 6 to make it into a short pulse, and this is input to the reset terminal H of the counter 4. The reset circuit 6 may be like a one-shot multivibrator that produces short pulses.

基準パルスToの立上りで、ワンショットマルチバイブ
レータがトリガーされ、短いパルス(パルス幅τ)を生
じ、これがカウンタ4をリセットする。リセツ1パルス
の幅τは、クロックパルスよりかなり短いものでなけれ
ばならない。
At the rising edge of the reference pulse To, the one-shot multivibrator is triggered and produces a short pulse (pulse width τ), which resets the counter 4. The width τ of the reset 1 pulse must be significantly shorter than the clock pulse.

基準パルスT。の立上りで、カウンタ4がリセットされ
るので、カウンタ値がOになる。同時にイネーブル端子
Eが1になるから、カウンタ4はクロックパルスCLの
数を計えはじめる。
Reference pulse T. Since the counter 4 is reset at the rising edge of , the counter value becomes O. At the same time, the enable terminal E becomes 1, so the counter 4 starts counting the number of clock pulses CL.

T O/2後に基準パルスが立下り、イネーブル端子が
Lになる。このためカウンタは、計数を中止する。カウ
ント値がNであるとする。
After T O/2, the reference pulse falls and the enable terminal becomes L. Therefore, the counter stops counting. Assume that the count value is N.

カウンタが計数していた期間がT。/2であるから、ク
ロックパルス数Nは、はぼTo/2tに等しいはずであ
る。
The period during which the counter was counting is T. /2, the number of clock pulses N should be approximately equal to To/2t.

判断回路5は、NとT。/2tとを比較する。Nの値が
この値に近ければ、クロックパルスCLの周期の狂いが
ないのである。
The judgment circuit 5 has N and T. /2t. If the value of N is close to this value, there is no deviation in the period of the clock pulse CL.

反対に、Nの値がT。/2tと異なる場合、これは基準
パルスT。か、クロックパルスCLの周波数が変動して
いる、ということである。
On the other hand, the value of N is T. /2t, this is the reference pulse T. Or, the frequency of the clock pulse CL is fluctuating.

より簡単に、To/2tに近い値N1、N2をあらかじ
め定めておき、 N1  エ N  S  N、、         (
11〈 であれば周波数が正常であると判断し、そうで々ければ
、クロックパルスの周波数が異常であると判断する。
To make it easier, predetermine values N1 and N2 close to To/2t, and calculate N1, N S N, (
11〈, it is determined that the frequency is normal; otherwise, it is determined that the frequency of the clock pulse is abnormal.

正常或は異常であることを示す信号は、判断回路5から
外部に向かって発せられる。異常信号は、警告としての
意味と、補正信号としての意味とをもっている。
A signal indicating normality or abnormality is emitted from the judgment circuit 5 to the outside. The abnormal signal has the meaning of a warning and a correction signal.

警告というのは、CPUのクロックパルスが異常である
ことを操作者に報知し、操作者に点検、補修の必要があ
ることを認識させるものでちる。
A warning is used to notify the operator that the CPU clock pulse is abnormal and to make the operator aware of the need for inspection and repair.

捷た、外部回路は、CPUのクロック周波数が変動する
ことによって誤動作するものがある。しかし、クロック
周波数の変動が分かれば、これに合致するように外部回
路の動作を修正できる。このための補正信号として使う
こともできる。
Some broken external circuits may malfunction due to fluctuations in the CPU clock frequency. However, if the variation in clock frequency is known, the operation of the external circuitry can be modified to match this. It can also be used as a correction signal for this purpose.

捷た、異常信号は外部回路ばかりでなく、CPU3にも
入力される。CPUをリセットするようにしてもよい。
The broken abnormal signal is input not only to the external circuit but also to the CPU 3. The CPU may also be reset.

さらに、判断回路5は、別に設けることの他、CPU3
自体によって行ってもよい。
Furthermore, in addition to being provided separately, the determination circuit 5 is provided by the CPU 3
It may also be done by itself.

なお、基準パルスは、デユーティ50%でなくてもよい
のはもちろんである。
Note that the reference pulse need not have a duty of 50%, of course.

To==  ’r、  +T、、         (
2)として、T、の期間カウント動作させ、T20期間
カウント中止するようにしてもよい。また、立上りでリ
セットするのではなく、カウント中止期間T2ニリセッ
トパルスを出すようにしてもヨイ。
To=='r, +T,, (
As 2), the counting operation may be performed for the period T, and the counting may be stopped for the period T20. Also, instead of resetting at the rising edge, it is also possible to issue a reset pulse during the count stop period T2.

このようにすると、リセット回路6の発するパルス幅が
多少長くても差支えない。
In this case, there is no problem even if the pulse width generated by the reset circuit 6 is somewhat long.

(ロ)う  効   果 CPUに入力されるクロックパルスの周波数異常を検出
し、CPUの異常を診断し、CPU及びCPUによって
制御される外部回路の誤動作を防ぐ。
(B) Effect Detects frequency abnormalities in the clock pulses input to the CPU, diagnoses CPU abnormalities, and prevents malfunctions of the CPU and external circuits controlled by the CPU.

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

第1図は本発明のCPUの誤動作防止方式の略構成図。 1・・・・・・発振子 2・・・・・・発振回路     “ 3 ・・・・・・ CPU 4  ・・・・・・  カ  ウ  ン タ5・・・・
・・判断回路
FIG. 1 is a schematic configuration diagram of a CPU malfunction prevention system according to the present invention. 1... Oscillator 2... Oscillation circuit 3... CPU 4... Counter 5...
・Judgment circuit

Claims (1)

【特許請求の範囲】[Claims] CPUから出力されるクロックパルスを出力し、該クロ
ックパルスの数を一定時間T_1だけ計数し、予め定め
られた正常カウント値と計数した値とを比較し、クロッ
クパルスの正常、異常より、CPUの正常、異常を判断
し、異常の際にCPUを初期化或は動作を停止させる事
を特徴とするCPUの誤動作防止方式。
Outputs the clock pulses output from the CPU, counts the number of clock pulses for a certain period of time T_1, compares the counted value with a predetermined normal count value, and determines whether the clock pulses are normal or abnormal. A CPU malfunction prevention method characterized by determining whether the CPU is normal or abnormal and initializing the CPU or stopping its operation in the event of an abnormality.
JP60006280A 1985-01-17 1985-01-17 Malfunction preventing system of cpu Pending JPS61165143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60006280A JPS61165143A (en) 1985-01-17 1985-01-17 Malfunction preventing system of cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60006280A JPS61165143A (en) 1985-01-17 1985-01-17 Malfunction preventing system of cpu

Publications (1)

Publication Number Publication Date
JPS61165143A true JPS61165143A (en) 1986-07-25

Family

ID=11633983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60006280A Pending JPS61165143A (en) 1985-01-17 1985-01-17 Malfunction preventing system of cpu

Country Status (1)

Country Link
JP (1) JPS61165143A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268105A (en) * 2009-05-13 2010-11-25 Renesas Electronics Corp Microcomputer
JP2019196998A (en) * 2018-05-10 2019-11-14 アズビル株式会社 Gas meter and monitoring method of gas meter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010268105A (en) * 2009-05-13 2010-11-25 Renesas Electronics Corp Microcomputer
JP2019196998A (en) * 2018-05-10 2019-11-14 アズビル株式会社 Gas meter and monitoring method of gas meter

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
US5157699A (en) Watchdog timer employing plural counters and discriminator for determining normal operating frequency range of input
GB2065939A (en) Arrangement having a programmabel electrical circuit and monitoring menas
JPS60263235A (en) Microcomputer system
JPS61165143A (en) Malfunction preventing system of cpu
US3267381A (en) Antenna speed and reference burst count monitor
JPH06119210A (en) Watch dog mutual monitoring circuit for microcomputer
JP2811343B2 (en) Fan alarm detection device
CN111033394B (en) Temperature compensated clock frequency monitor
JPS5845054B2 (en) Watchdog timer error relief method
JP2000035903A (en) Runaway monitoring device for microcomputer
JPS5882349A (en) Dealing device for hardware fault of computer system
JP3159891B2 (en) CPU runaway detection circuit
JPS60100235A (en) Self-diagnosing circuit
JPH0312723B2 (en)
JPS6086627A (en) Detecting circuit of runaway of microcomputer
JPS59146354A (en) Runaway stopping device of microprocessor
JPH0218633A (en) Runaway monitor/restart circuit for microprocessor
JPH07110019B2 (en) External input noise signal detector
JPH01191918A (en) Microcomputer
JPS5928882A (en) Monitor for pll circuit
JPH0894660A (en) Pulse measuring apparatus
JPS6367650A (en) Monitoring system for software processing
JPS6111858A (en) Abnormality detector
JPS5917643A (en) Method for preventing runaway of program in microprocessor