JPS60100235A - Self-diagnosing circuit - Google Patents

Self-diagnosing circuit

Info

Publication number
JPS60100235A
JPS60100235A JP58205903A JP20590383A JPS60100235A JP S60100235 A JPS60100235 A JP S60100235A JP 58205903 A JP58205903 A JP 58205903A JP 20590383 A JP20590383 A JP 20590383A JP S60100235 A JPS60100235 A JP S60100235A
Authority
JP
Japan
Prior art keywords
error
clock
stop
signal
circuit
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
JP58205903A
Other languages
Japanese (ja)
Inventor
Satoru Umezaki
梅崎 悟
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 JP58205903A priority Critical patent/JPS60100235A/en
Publication of JPS60100235A publication Critical patent/JPS60100235A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/076Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's

Abstract

PURPOSE:To detect the abnormality of a system including a stop of clock pulses by adding a stop detecting circuit for clock pulses which are counted by a watch dog timer. CONSTITUTION:A CPU1 outputs clock pulses 31 on the basis of the oscillation frequency of a crystal oscillator 2. The clock pulses 31 are inputted to the watch dog timer 3 and clock stop detecting circuit 4. The clock stop detecting circuit 4 detects a stop of clock pulses 31 and outputs a clock stop error signal 33. When a watch dog timer reset signal 32 is stopped, a watchdog error detection signal 34 is outputted and other error signals 35 of a parity check error, etc., are gated by an OR gate 5 to generate an error signal 36. The error signal 36 is ORed with a reset signal 35 to generate a CPU reset signal 38.

Description

【発明の詳細な説明】 し発明の技術分野〕 本発明は、ウォッチドッグタイマによるエラー検出機能
を有するマイクロコンピュータ基板の自己診111i回
路に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a self-diagnosis 111i circuit for a microcomputer board having an error detection function using a watchdog timer.

し発明の技+h丁的R景とその問題点〕一般に、プログ
ラマブル・コントローラトシテA市拭411寸ツカ1ト
ル 断機能のひとつとして実装されているプログラムが順序
正しく実行されているが否がを監視する為にウォッチド
ッグタイマが設けられている。ウォッチドッグタイマは
、中央処理&[(以下CPUという。)からのクロック
・パルスをカウントしである一定時間後に出力するタイ
マであるが、実装されるグログ2ムにはその設定時間よ
りも短かい周期でウォッチドッグタイマをリセットする
信号を出力する命令が書かれている。従って、プログジ
ムが正常に動作している限り、ウォッチドッグタイマに
周期的なリセット信号が入る躯によってウォッチドッグ
タイマ出力、すなわち、ウオッチドラダエラー検出信号
は出されない。ところが何かの異常によりグログラムが
暴走したりするとりセン) It号が絶だえ、十分なり
ロック・パ/L/スがカウントされてウォッチドッグエ
ラーとして検出される。
Techniques of invention + R-views and their problems] In general, a programmable controller that is implemented as one of the functions of a programmable controller monitors whether or not the program is being executed in the correct order. A watchdog timer is provided for this purpose. The watchdog timer is a timer that counts clock pulses from the central processing & [(hereinafter referred to as CPU) and outputs it after a certain period of time. An instruction is written to output a signal that resets the watchdog timer at regular intervals. Therefore, as long as the program is operating normally, the watchdog timer output, ie, the watch ladder error detection signal, is not output due to the periodic reset signal input to the watchdog timer. However, if the glogram goes out of control due to some abnormality, the It issue will stop, and once enough lock passes are counted, it will be detected as a watchdog error.

自己診断機能には,:I[il常,上記ウォッチドッグ
エラー検出の池に,ランダム・アクセス・メモリ(aA
M)の読み書′lkが正常に行% 4q hイt△ス慮
か調べる為に、バイナリ・コードの誤υの有無を検出す
るパリティ・チェック等もあるが、ここでは一括して、
その他のエラーとして取り扱う事とする。
The self-diagnosis function includes random access memory (aA
There is also a parity check that detects whether there is an error υ in the binary code in order to check whether reading and writing 'lk of M) is normal.
This will be treated as another error.

前記ウォッチドッグエラー、及び、パリティ・チェック
・エラー等のその他のエラーは、それらのどれかひとつ
でも生じると、CPUをリセットさせると共に、発光素
子寺によるエラー表示を行なう様になっている。
When any one of the watchdog errors and other errors such as parity check errors occurs, the CPU is reset and an error is displayed by the light emitting element.

以上の様な自己診断機能において、CP[Jからのクロ
ックφパルスが、水晶発撮郵の異常か何かの原因で停止
した場合、当然CPUが動作しなくなるにもかかわらず
、ウォッチドッグタイマも、カウントできないので診断
機能を失い、その他のチェック機構に依ってもエラーの
検出がなAれない。すなわち、外部に何の通告もないま
tcPU停止という異常状態が放任される、という不都
合が起こり得る。
In the above self-diagnosis function, if the clock φ pulse from CP[J stops due to an abnormality in the crystal or some other reason, the watchdog timer will also stop working even though the CPU will naturally stop operating. Since it cannot be counted, the diagnostic function is lost, and errors cannot be detected even by other checking mechanisms. That is, an inconvenience may occur in which the abnormal state of stopping the tcPU is left unattended without any notification to the outside.

〔発明の目的〕 以上の点を考慮して1本発明の目的はクロック争ハルス
が停止した場合をも含めて、システムの異常を検出して
通告し、CPUをリセットする様な自己診断回路を提供
する事にある。
[Object of the Invention] In consideration of the above points, an object of the present invention is to provide a self-diagnosis circuit that detects and notifies system abnormalities and resets the CPU, even when the clock conflict halts. It is about providing.

〔発明の概要〕[Summary of the invention]

上記目的を達成するために、本発明では従来の自己診断
回路に対してウォッチドッグタイマにてカウントされる
クロック・パルスの停止検出回路を追加し、クロック停
止エラー検出信号とウォッチトングエラー検出信号、そ
の他のエラー検出信号との0ル条作によって、CP(J
のリセット、及びエラー表示を行なう回路を設けること
を特徴とする。
In order to achieve the above object, the present invention adds a stop detection circuit for clock pulses counted by a watchdog timer to the conventional self-diagnosis circuit. CP(J
It is characterized by providing a circuit for resetting and displaying an error.

〔発明の実施列〕[Implementation sequence of the invention]

以下、本発明の一実施例を説i93する。第1図に示さ
れる様に、CPU1は、水晶発振器2の発振周波aを基
準として、クロック・パルス31を出力する。クロック
・パルス31はウォッチドッグタイマ3に基準パルスと
して入力されると共に、本発明にて新しく追加されるべ
きクロツク1苧止検出回路4にも人力される。ウォッチ
ドッグタイマ3は1通常、プログラムの命令によって周
期的に出されるウォッチドッグタイマ・リセット信号3
2により、リセットがかかつているが、そのウォッチド
ッグタイマ争リセット信号32が途絶えると、ウォッチ
ドッダニラー検出虞号34が出力される。
An embodiment of the present invention will be described below. As shown in FIG. 1, the CPU 1 outputs a clock pulse 31 using the oscillation frequency a of the crystal oscillator 2 as a reference. The clock pulse 31 is input to the watchdog timer 3 as a reference pulse, and is also manually input to the clock 1 stuck detection circuit 4, which is newly added in the present invention. Watchdog timer 3 is a watchdog timer reset signal 3 that is normally issued periodically by program instructions.
2, a reset is being applied, but when the watchdog timer contention reset signal 32 is interrupted, a watchdog timer error detection alarm signal 34 is output.

一方、クロック停止検出回路4は、第2図を使って後述
するが、クロック・パルス31が停止した事を検印して
、クロック停止エラー信号33を出力する。このウォッ
チドッグエラー信号34とクロック停止エラー信号33
、及び、パリティ番チェックエラー等のその他のエラー
信号35は、ORグー15によって、エラ−1言号36
としてまとめられる。そして、エラー信号36は、電源
投入時のクリア信号や上位7.ステムからの要求等のそ
の他のCP[Jリセット信号37と共に、ORゲート6
によってCPUリセット信号38を作る。
On the other hand, as will be described later with reference to FIG. 2, the clock stop detection circuit 4 detects that the clock pulse 31 has stopped and outputs a clock stop error signal 33. This watchdog error signal 34 and clock stop error signal 33
, and other error signals 35 such as parity number check errors are sent to the error-1 word 36 by the OR goo 15.
It can be summarized as The error signal 36 is a clear signal when the power is turned on, or the upper 7. Other CP such as requests from the system [J reset signal 37, OR gate 6
The CPU reset signal 38 is generated by

又、各エラー信号33,34.35は、エラー表示回路
7にも伝えられ、発光素子(LED)等によエラーの種
類別に行なう方法或いは一括してひとつの表示器によっ
て表示される方法等考えられる。
In addition, each error signal 33, 34, 35 is also transmitted to the error display circuit 7, and there may be a method of displaying each error type using a light emitting element (LED) or the like, or a method of displaying them all at once on a single display. It will be done.

次に、クロック停止検出回路4の詳細な構成の一例を第
2図に示す。入力のクロック−パルス31は、2つに分
岐され一方はそのまま用いられ他方はインバータ11に
よって反転されたクロック・パルス41として用いられ
る。原理はクロック・パルス31のレベルが高・低の繰
り返しを行なう度に、コンデンサ14A−Hの充放電を
繰り返させ、もしもコンデンサが充゛眠したままか或い
は放電したままの状態が続く時、そのことをN0ELゲ
ート15によって知り、クロック停止エラー信号33を
出力するものである。コンデンサ14A・Bの充電は、
ダイオード12A−Bを通して行なわれ放電は抵抗器1
3A−Bを通してそれぞれ行なわれる。
Next, an example of a detailed configuration of the clock stop detection circuit 4 is shown in FIG. The input clock pulse 31 is split into two parts, one used as is and the other used as the clock pulse 41 inverted by the inverter 11. The principle is that each time the level of the clock pulse 31 is high and low, the capacitors 14A-H are repeatedly charged and discharged, and if the capacitors remain asleep or discharged, This is detected by the N0EL gate 15 and a clock stop error signal 33 is output. Charging of capacitors 14A and B is as follows:
The discharge takes place through diodes 12A-B and resistor 1
3A-B respectively.

まず、クロック−パルスが正常な場合を考える。First, consider the case where the clock pulse is normal.

この時、ウォッチドッグタイマ3は、従来どおり正常に
動作し、プログラムの実行異常時にのみウォッチドッグ
エラー信号34を出力する。一方、クロック停止検出回
路4のIIJ作は、コンデンサの光通はほとんど瞬時に
行なわれるが、放電は抵抗器13A−Bの抵抗値とコン
デンサ14A−Bの客員とによって定まる時定数を持っ
て行なわれる為、例えば第3図の左側部分に示される様
なタイミング・チャートが描かれる。すなわち、放電時
定数をクロック・パルスの周期に対して適当に長く定め
ておけば、コンデンサ14A及び1413の各レベル4
2及び43は、常に高レベル域に保たれる為、NORゲ
ート15の出力であるクロック停止エラー信号33は出
されない。従って、クロック・パルスが正常な時に自己
診断回路は従来と変わらぬ働きをする。
At this time, the watchdog timer 3 operates normally as before, and outputs the watchdog error signal 34 only when the program execution is abnormal. On the other hand, in the IIJ design of the clock stop detection circuit 4, the light passing through the capacitor occurs almost instantaneously, but the discharge occurs with a time constant determined by the resistance value of the resistor 13A-B and the capacitor 14A-B. For example, a timing chart as shown on the left side of FIG. 3 is drawn. That is, if the discharge time constant is set appropriately long with respect to the period of the clock pulse, each level 4 of capacitors 14A and 1413
Since clock signals 2 and 43 are always kept in the high level range, the clock stop error signal 33, which is the output of the NOR gate 15, is not output. Therefore, when the clock pulse is normal, the self-diagnosis circuit works as before.

次に、クロックパルスが停止した場合を考える。Next, consider the case where the clock pulse stops.

この時、ウォッチドッグタイマ3は、タイム・カウント
できないばかりか、CPU停正によってプログラムも実
行しない為、ウォッチドッグタイマ・リセット信号32
も入らなくなり動作不能となる。
At this time, the watchdog timer 3 not only cannot count the time, but also does not execute the program due to the CPU stoppage, so the watchdog timer reset signal 32
It will no longer work and will no longer work.

一方、クロック停止検出回路4の方は1例として、第3
図のタイムチャートの右側部分に示すように、クロック
・パルス31がレベル低の時に停止したとすれば、コン
デンサ14Hのレベル43は高のま”まノどがコンデン
サ14 Aが放電を続け、そのレベル42が低に変わる
時点より、クロック停止エラー信号33が出力される。
On the other hand, as an example, the clock stop detection circuit 4
As shown in the right part of the time chart in the figure, if the clock pulse 31 were to stop when the level was low, the level 43 of the capacitor 14H would remain high, but the capacitor 14A would continue to discharge and its From the point at which level 42 changes to low, clock stop error signal 33 is output.

クロック・パルス31がレベル濁で停止した場合にも回
りにクロック停止エラー1M号33が出力きれる。そし
てこのクロック停止エラー信号33Ia、、01ゲート
5及び6を経て、Cl’ U fiミリセットると共に
Even when the clock pulse 31 is stopped due to a low level, a clock stop error 1M signal 33 is output. Then, through this clock stop error signal 33Ia, 01 gates 5 and 6, Cl' U fi is reset.

エラー表示回路7に伝えられて、エラーが発生した事を
外部に対して表示する。
The error is transmitted to the error display circuit 7, and the fact that an error has occurred is displayed to the outside.

クロック・パルスが停止する、という異常が生じると、
CPUの動作停止、そしてグログシムの実行不能につな
がる。通常、プログラムの実行異常は、ウォッチドッグ
タイマによって自己診断されるが、ウォッチドッグタイ
マのカウントに使われるはずのクロック・パルス自体が
停止した状態においては、それKよる7ステム異常の4
fj出はできない。そこで、本発明の実施例に述べた様
なりロック・パルスの停止を検出する回路を新たに設け
る事によって、クロックパルス停止によるCPUの停止
を監視し、異常時には他の自己診断4表hBと同様にC
P Uのリセット、及び、エラー表示による使用者への
通告を行なう優が可能となる。
If an abnormality occurs where the clock pulse stops,
This will cause the CPU to stop working and make it impossible to run Grogusim. Normally, program execution abnormalities are self-diagnosed by a watchdog timer, but when the clock pulse itself that is supposed to be used for counting by the watchdog timer has stopped, the 4th of the 7 stem abnormalities due to K.
fj cannot be issued. Therefore, by newly providing a circuit that detects the stoppage of the lock pulse as described in the embodiment of the present invention, the stoppage of the CPU due to the stoppage of the clock pulse can be monitored, and when an abnormality occurs, the same as in other self-diagnosis Table 4 hB is provided. niC
It becomes possible to reset the PU and notify the user by displaying an error.

〔発明の効果) 本発明の対象としているマイクロコンピュータ基板には
、ウォッチドッグエラー検出その他の自己診断機能を備
えているが、クロック・パルス停止という異常は、CP
 U停市につながり、ウォッチドッグエラー等の上位に
置かれるべき重大故障である。このhpな異常を本発明
で述べた様に自己診断回路の中で常に酸視して、異常発
生と同時にCP U リセット、及び、外部へのエラー
通告を行なう事は、プログラマグル・コントローラトシ
テ制御/スデムに組み込んだ場合に、エラー発生後の迅
速な対応全可能々らしめる拳によって、システム事故を
最小限に抑える事ができる。
[Effects of the Invention] The microcomputer board to which the present invention is applied is equipped with watchdog error detection and other self-diagnosis functions.
This is a serious failure that leads to a U-stop and should be placed above watchdog errors. As described in the present invention, the programmable controller system is capable of constantly identifying this abnormality in the self-diagnosis circuit, resetting the CPU, and notifying the outside of the error as soon as the abnormality occurs. / When incorporated into Sudem, system accidents can be minimized by making it possible to respond quickly after an error occurs.

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

第1図は本発明の対象となっているマイクロコンピュー
タ基板の自己診断回路部分の概略構成図、第2図は第1
図中のクロック停止検出回路の詳細な実施例を示す回路
図、第3図はクロック・パルスが正常動作から停止状態
となる場合にクロック停止検出回路各部の信号レベルの
変化を説明したフローチャートである。 1 ・・・・中央処理装置(CPU) 2 ・・・・水晶発振器 3 ・・・・ウォッチドッグタイマ 4 ・・・・クロック停止検出回路 5.6・・・ORゲート 7・・・エン−表示回路11
°・・インバータ 12A−B・・・ダイオード13A
−B・・・抵抗器 14A・B・・・コンデンサ15・
・・NOIもゲート
FIG. 1 is a schematic configuration diagram of the self-diagnosis circuit portion of a microcomputer board that is the subject of the present invention, and FIG.
FIG. 3 is a circuit diagram showing a detailed embodiment of the clock stop detection circuit shown in the figure, and FIG. 3 is a flowchart illustrating changes in the signal level of each part of the clock stop detection circuit when the clock pulse changes from normal operation to a stopped state. . 1...Central processing unit (CPU) 2...Crystal oscillator 3...Watchdog timer 4...Clock stop detection circuit 5.6...OR gate 7...En-indication circuit 11
°...Inverter 12A-B...Diode 13A
-B...Resistor 14A・B...Capacitor 15・
...NOI is also a gate

Claims (1)

【特許請求の範囲】[Claims] プログラム制御演算を行う中央処理装置から発せられグ
ログラムが正常に実行されていることを監視するための
ウォッチドッグタイマに供給されるクロック[信号が停
止したことを検出するクロック停止検出回路と、前記ク
ロック信号が停止したとき前記中央処理装置をリセット
する回路と、それを表示する工2−表示回路とからなる
自己診断回路。
A clock is generated from the central processing unit that performs program control calculations and is supplied to a watchdog timer for monitoring whether the program is being executed normally. A self-diagnosis circuit comprising a circuit for resetting the central processing unit when the signal stops, and a display circuit for displaying the reset circuit.
JP58205903A 1983-11-04 1983-11-04 Self-diagnosing circuit Pending JPS60100235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58205903A JPS60100235A (en) 1983-11-04 1983-11-04 Self-diagnosing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58205903A JPS60100235A (en) 1983-11-04 1983-11-04 Self-diagnosing circuit

Publications (1)

Publication Number Publication Date
JPS60100235A true JPS60100235A (en) 1985-06-04

Family

ID=16514653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58205903A Pending JPS60100235A (en) 1983-11-04 1983-11-04 Self-diagnosing circuit

Country Status (1)

Country Link
JP (1) JPS60100235A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6275543U (en) * 1985-10-30 1987-05-14
JPH0292538U (en) * 1988-12-29 1990-07-23

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6275543U (en) * 1985-10-30 1987-05-14
JPH0292538U (en) * 1988-12-29 1990-07-23

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
US4809280A (en) Microcomputer system with watchdog timer
US4837702A (en) Electronic postage meter having an infinite loop lockout arrangement
DE69222705T2 (en) CPU fault detection system
JPS63229536A (en) Monitor device for electronic equipment
JPS60100235A (en) Self-diagnosing circuit
WO2022109142A2 (en) Transmission link testing
JPH11259340A (en) Reactivation control circuit for computer
JP6450094B2 (en) Periodic signal monitoring circuit and load control backup signal generation circuit
CN113917385A (en) Self-detection method and system for electric energy meter
JP2002196948A (en) Operation control device
JP2870250B2 (en) Microprocessor runaway monitor
JPS5845054B2 (en) Watchdog timer error relief method
JPS6343561Y2 (en)
JPH01288934A (en) Double microcomputer system runaway preventing circuit
JPS60221845A (en) Microcomputer system
JPH0218633A (en) Runaway monitor/restart circuit for microprocessor
JPH0426738B2 (en)
JPS6111858A (en) Abnormality detector
JP2002318643A (en) Information processor
JPS61165143A (en) Malfunction preventing system of cpu
KR100408266B1 (en) Device for automatically recovering fault of computer system
JPH02134225A (en) Controlling device used in injection molding apparatus
JPH1160102A (en) Elevator controller
JPH0520129A (en) Microprocessor monitoring system