JPH05100889A - Self diagnostic circuit - Google Patents

Self diagnostic circuit

Info

Publication number
JPH05100889A
JPH05100889A JP3258853A JP25885391A JPH05100889A JP H05100889 A JPH05100889 A JP H05100889A JP 3258853 A JP3258853 A JP 3258853A JP 25885391 A JP25885391 A JP 25885391A JP H05100889 A JPH05100889 A JP H05100889A
Authority
JP
Japan
Prior art keywords
signal
microcomputer
watchdog timer
reset
input
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
JP3258853A
Other languages
Japanese (ja)
Inventor
Hiroshi Horikoshi
博 堀越
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3258853A priority Critical patent/JPH05100889A/en
Publication of JPH05100889A publication Critical patent/JPH05100889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To provide a self diagnostic circuit capable of diagnosing the function of a monitoring means without interfering with normal computer processing operation. CONSTITUTION:A digit scanning signal 4 generated by a microcomputer is inputted in a watchdog timer 6. An OR gate 14 is provided, which inputs a reset control signal 15 from a test switch 11 and an abnormality signal from the watchdog timer 6 so as to output a reset signal to the microcomputer 1 at the time of only abnormality signals and which prohibits the output of the reset signal 9 when both the reset control signal 15 and the abnormality signal are inputted. The microcomputer 1 stops the digit scanning signal 4 when the test switch 11 is operated and operates prescribed display in accordance with the presence or absence of the abnormality signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータの誤動作
を監視する監視手段の機能を診断する自己診断回路に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a self-diagnosis circuit for diagnosing the function of monitoring means for monitoring malfunction of a computer.

【0002】[0002]

【従来の技術】コンピュータの暴走やラッチアップ等の
動作を監視し、誤動作が発生した場合にそれを検出して
リセットをかける監視手段としては、ウォッチドッグタ
イマーが通常用いられるが、このウォッチドッグタイマ
ーが正常に機能しているか否かを診断する場合、従来で
は図7のブロック図に示すような自己診断回路が用いら
れていた。
2. Description of the Related Art A watchdog timer is usually used as a monitoring means for monitoring a computer's operation such as runaway or latch-up and detecting a malfunction and resetting the malfunction. In the case of diagnosing whether is normally operating, a self-diagnosis circuit as shown in the block diagram of FIG. 7 has been conventionally used.

【0003】即ち、図7においてコンピュータとしての
マイクロコンピュータ1は回路電源2と接地間に接続さ
れており、表示部3に対して桁スキャン信号4及び表示
データ5を出力している。この桁スキャン信号4の一部
は監視手段としてのウォッチドッグタイマー6の入力信
号7とされ、ウォッチドッグタイマー6の出力であるウ
ォッチドッグタイマー出力信号8はリセット信号9とし
てマイクロコンピュータ1に入力される。また、同様の
回路電源2と接地間には抵抗10と前記ウォッチドッグ
タイマー6のテスト作動部としてのテストスイッチ11
との直列回路が接続され、前記テストスイッチ11の端
子電圧が診断動作指示信号12としてマイクロコンピュ
ータ1に入力されている。
That is, in FIG. 7, a microcomputer 1 as a computer is connected between a circuit power supply 2 and a ground, and outputs a digit scan signal 4 and display data 5 to a display section 3. A part of the digit scan signal 4 is used as an input signal 7 of a watchdog timer 6 as a monitoring means, and a watchdog timer output signal 8 which is an output of the watchdog timer 6 is input to the microcomputer 1 as a reset signal 9. .. A resistor 10 and a test switch 11 as a test operating unit of the watchdog timer 6 are provided between the circuit power source 2 and the ground.
Is connected to the microcomputer 1, and the terminal voltage of the test switch 11 is input to the microcomputer 1 as a diagnostic operation instruction signal 12.

【0004】次に、図8のマイクロコンピュータ1のフ
ローチャート及び図9のタイミングチャートを参照しな
がら、図7の従来の自己診断回路の機能及び動作につき
説明する。マイクロコンピュータ1は表示部3をダイナ
ミック点灯する表示システムを採用しており、その場
合、表示内容は前記表示データ5で決定し、表示桁は桁
スキャン信号4によって決定される。また、係るダイナ
ミック点灯システムにおいて、表示桁を決める桁スキャ
ン信号4はマイクロコンピュータ1の正常動作状態にお
いては途切れる事なく連続的に出力される。
Next, the function and operation of the conventional self-diagnosis circuit of FIG. 7 will be described with reference to the flow chart of the microcomputer 1 of FIG. 8 and the timing chart of FIG. The microcomputer 1 employs a display system in which the display unit 3 is dynamically lit. In this case, the display content is determined by the display data 5 and the display digit is determined by the digit scan signal 4. Further, in such a dynamic lighting system, the digit scan signal 4 for determining the display digit is continuously output without interruption in the normal operation state of the microcomputer 1.

【0005】ところで、ウォッチドッグタイマー6は、
前述の如くこの桁スキャン信号4の一部を入力信号7と
して利用しているため、マイクロコンピュータ1が正常
動作状態であればウォッチドッグタイマー6の入力信号
7も途切れる事なく連続的に入力されることになる。従
って、この入力信号7が連続的に入力されている場合
は、ウォッチドッグタイマー6はマイクロコンピュータ
1が正常動作状態にあると判断して高電位(以下「H」
と称す。)の正常信号をウォッチドッグタイマー出力信
号8としてマイクロコンピュータ1へ出力する。
By the way, the watchdog timer 6 is
Since part of the digit scan signal 4 is used as the input signal 7 as described above, the input signal 7 of the watchdog timer 6 is continuously input without interruption if the microcomputer 1 is in a normal operating state. It will be. Therefore, when the input signal 7 is continuously input, the watchdog timer 6 determines that the microcomputer 1 is in a normal operation state and has a high potential (hereinafter, referred to as “H”).
Called. The normal signal of 1) is output to the microcomputer 1 as a watchdog timer output signal 8.

【0006】また、何らかの原因で入力信号7が一定時
間以上途切れた場合は、ウォッチドッグタイマー6はマ
イクロコンピュータ1が異常動作状態にあると判断して
低電位(以下「L」と称す。)の異常信号をウォッチド
ッグタイマー出力信号8として出力し、これがリセット
信号9となってマイクロコンピュータ1に入力される。
マイクロコンピュータ1ではウォッチドッグタイマー6
から送られたウォッチドッグタイマー出力信号8が
「H」の正常信号であればマイクロコンピュータ1の動
作を維持するが、「L」の異常信号、即ちリセット信号
9であれば直ちにマイクロコンピュータ1の動作を停止
する。このような動作によりウォッチドッグタイマー6
はマイクロコンピュータ1の動作状態を常に監視してい
る。
When the input signal 7 is interrupted for a certain time or longer due to some reason, the watchdog timer 6 judges that the microcomputer 1 is in an abnormal operation state and has a low potential (hereinafter referred to as "L"). The abnormal signal is output as a watchdog timer output signal 8, which is input to the microcomputer 1 as a reset signal 9.
Watchdog timer 6 in microcomputer 1
If the watchdog timer output signal 8 sent from is a normal signal of "H", the operation of the microcomputer 1 is maintained, but if it is an abnormal signal of "L", that is, the reset signal 9, the operation of the microcomputer 1 is immediately started. To stop. By such an operation, the watchdog timer 6
Constantly monitors the operating state of the microcomputer 1.

【0007】前記テストスイッチ11は常には閉路して
おり、ウォッチドッグタイマー6の機能を診断する際に
使用者が開路する。図8において、マイクロコンピュー
タ1は電源投入からステップS1で初期設定され、ステ
ップS2でテストスイッチ11が開路されたか否か判断
しており、閉じたままであればステップS3で通常動作
のプログラムを実行している。図9の時刻T1でテスト
スイッチ11が開路されて診断動作指示信号12が
「L」から「H」になると、マイクロコンピュータ1は
ステップS2からステップS4に進んで桁スキャン信号
4を停止し、ステップS5で一定時間経過したか判断す
る。
The test switch 11 is normally closed, and is opened by the user when diagnosing the function of the watchdog timer 6. In FIG. 8, the microcomputer 1 is initialized at step S1 after the power is turned on, determines at step S2 whether or not the test switch 11 is opened, and if it remains closed, the normal operation program is executed at step S3. ing. When the test switch 11 is opened at time T1 in FIG. 9 and the diagnostic operation instruction signal 12 changes from “L” to “H”, the microcomputer 1 proceeds from step S2 to step S4 to stop the digit scan signal 4 and In S5, it is determined whether a certain time has passed.

【0008】ここで、ウォッチドッグタイマー6は常に
は「H」のウォッチドッグタイマー出力信号8を出力し
ており、ウォッチドッグタイマー6が正常に機能してい
れば、この桁スキャン信号4の停止が所定期間継続され
た時刻T2にウォッチドッグタイマー6はマイクロコン
ピュータ1が異常動作状態にあると判断して、図9の上
から三段目に示す如く「L」の異常信号をウォッチドッ
グタイマー出力信号8として出力し、これが図9の下か
ら二段目の如くリセット信号9(「L」)となってマイ
クロコンピュータ1に入力される。マイクロコンピュー
タ1はT1から一定時間経過した時刻T3(T2よりも
後)にステップS6でウォッチドッグタイマー出力信号
8が「H」であるか、「L」であるか判断し、この場合
「L」であるからステップS7でリセットする。
Here, the watchdog timer 6 always outputs the watchdog timer output signal 8 of "H", and if the watchdog timer 6 is functioning normally, the digit scan signal 4 is stopped. At time T2 when the watchdog timer 6 continues for a predetermined period of time, the watchdog timer 6 judges that the microcomputer 1 is in an abnormal operation state, and outputs an "L" abnormal signal as shown in the third stage from the top of FIG. 8 as a reset signal 9 (“L”) as in the second row from the bottom of FIG. 9 and is input to the microcomputer 1. At time T3 (after T2) when a certain time has passed from T1, the microcomputer 1 determines in step S6 whether the watchdog timer output signal 8 is "H" or "L", and in this case "L". Therefore, it is reset in step S7.

【0009】ウォッチドッグタイマー6が正常に機能し
ていない場合は、図9の上から四段目の如く時刻T2に
おいてもウォッチドッグタイマー出力信号8は「H」の
ままであり、図9の最下段の如くリセット信号9
(「L」)もマイクロコンピュータ1に入力されず、ス
テップS6からステップS8に進んでNG表示を行う。
When the watchdog timer 6 is not functioning normally, the watchdog timer output signal 8 remains "H" at time T2 as shown in the fourth row from the top of FIG. Reset signal 9 as below
("L") is not input to the microcomputer 1 either, and the flow advances from step S6 to step S8 to display NG.

【0010】[0010]

【発明が解決しようとする課題】このように従来の自己
診断回路においては、ウォッチドッグタイマー6の機能
を診断する際に、異常状態を疑似的に作ってウォッチド
ッグタイマー出力信号8をリセット信号9としてマイク
ロコンピュータ1に入力することにより、マイクロコン
ピュータ1がリセットされるか否かによって診断を行な
う方法をとっていたため、ウォッチドッグタイマー6が
正常であれば必ずマイクロコンピュータ1にはリセット
がかかり、その結果マイクロコンピュータ1の動作が停
止してしまい通常のマイクロコンピュータ処理作業に支
障を与えてしまうという問題があった。
As described above, in the conventional self-diagnosis circuit, when diagnosing the function of the watchdog timer 6, an abnormal state is artificially created and the watchdog timer output signal 8 is reset. As a result, the microcomputer 1 is diagnosed according to whether or not the microcomputer 1 is reset by inputting it to the microcomputer 1. Therefore, if the watchdog timer 6 is normal, the microcomputer 1 is always reset. As a result, there is a problem in that the operation of the microcomputer 1 is stopped and the normal microcomputer processing work is hindered.

【0011】本発明は、係る従来の技術的課題を解決す
るために成されたものであり、監視手段の機能診断を、
通常のコンピュータ処理作業に支障を及ぼすことなく実
行することが可能となる自己診断回路を提供することを
目的とする。
The present invention has been made in order to solve the above-mentioned conventional technical problems, and the function diagnosis of the monitoring means is
An object of the present invention is to provide a self-diagnosis circuit that can be executed without affecting normal computer processing work.

【0012】[0012]

【課題を解決するための手段】本発明は、正常状態に対
応する信号を出力するコンピュータと、前記信号の状態
を監視することによりコンピュータの異常を検知し、異
常状態であれば異常信号を発生する監視手段と、この監
視手段のテスト作動部と、このテスト作動部の作動に基
づいて発生するリセット制御信号と前記異常信号とを入
力とし、リセット制御信号が入力されず、異常信号が入
力された場合はコンピュータにリセット信号を出力し、
リセット制御信号と異常信号の双方が入力された場合は
リセット信号の出力を禁止するゲートとから自己診断回
路を構成すると共に、前記コンピュータはテスト作動部
の作動に伴って前記正常状態に対応する信号の出力を停
止すると共に、前記異常信号の有無に応じた所定の表示
動作を実行するようにしたものである。
According to the present invention, a computer that outputs a signal corresponding to a normal state and an abnormality of the computer are detected by monitoring the state of the signal, and an abnormal signal is generated if the state is abnormal. Monitoring means, a test operating portion of the monitoring means, a reset control signal generated based on the operation of the test operating portion, and the abnormal signal are input, the reset control signal is not input, and the abnormal signal is input. Output a reset signal to the computer,
When a reset control signal and an abnormal signal are both input, a self-diagnosis circuit is formed from a gate that prohibits the output of the reset signal, and the computer is a signal corresponding to the normal state in accordance with the operation of the test operating unit. Is stopped, and a predetermined display operation is executed according to the presence or absence of the abnormal signal.

【0013】[0013]

【作用】監視手段の機能診断をするためにテスト作動部
を作動させると、それに基づいてリセット制御信号が発
生し、ゲートに入力される。コンピュータはテスト作動
部の作動によって正常状態に対応する信号の出力を停止
するので、監視手段が正常であれば、入力の停止によっ
て異常信号を発生する。この場合、ゲートにはリセット
制御信号と異常信号の双方が入力されることになり、ゲ
ートからはコンピュータのリセット信号は出力されな
い。監視手段が正常に動作しなければ異常信号は発生せ
ず、いずれにしてもゲートからはコンピュータのリセッ
ト信号は発生されない。一方、コンピュータは監視手段
が異常信号を出力したか否かによって所定の表示動作を
実行し、使用者に監視手段の動作状況を告知する。
When the test operating section is operated to diagnose the function of the monitoring means, a reset control signal is generated on the basis of the operation and is input to the gate. Since the computer stops the output of the signal corresponding to the normal state by the operation of the test operation unit, if the monitoring means is normal, the abnormal signal is generated by the stop of the input. In this case, both the reset control signal and the abnormal signal are input to the gate, and the computer reset signal is not output from the gate. If the monitoring means does not operate normally, no abnormal signal is generated, and in any case, the computer does not generate a reset signal from the gate. On the other hand, the computer executes a predetermined display operation depending on whether or not the monitoring means outputs an abnormal signal, and notifies the user of the operating status of the monitoring means.

【0014】[0014]

【実施例】以下、本発明の実施例を図面に基づき詳述す
る。図1は本発明の自己診断回路のブロック図、図2は
コンピュータの実施例としてのマイクロコンピュータ1
のプログラムを示すフローチャート、図3は図1の各信
号のタイミングチャートである。尚、図1において図7
と同一符号で示すものは同一のものとし、説明を省略す
る。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of a self-diagnosis circuit of the present invention, and FIG. 2 is a microcomputer 1 as an example of a computer.
FIG. 3 is a flowchart showing the program of FIG. 3, and FIG. 3 is a timing chart of each signal of FIG. In addition, in FIG.
Those denoted by the same reference numerals as in FIG.

【0015】本発明の場合、監視手段の実施例としての
ウォッチドッグタイマー6の出力であるウォッチドッグ
タイマー出力信号8は、論理和ゲート(以下、ORゲー
トと称す。)14に入力されると共に、マイクロコンピ
ュータ1の入力端子1Aにも入力される。また、テスト
作動部としてのテストスイッチ11の端子電圧は診断動
作指示信号12としてマイクロコンピュータ1の入力端
子1Bに入力されると共に、リセット制御信号15とし
て前記ORゲート14にも入力される。このORゲート
14の出力をリセット信号9としてマイクロコンピュー
タ1の入力端子1Cに入力する構成をとる。
In the case of the present invention, a watchdog timer output signal 8 which is an output of a watchdog timer 6 as an example of the monitoring means is input to a logical sum gate (hereinafter referred to as an OR gate) 14 and at the same time, It is also input to the input terminal 1A of the microcomputer 1. Further, the terminal voltage of the test switch 11 as the test operation unit is input to the input terminal 1B of the microcomputer 1 as the diagnostic operation instruction signal 12 and also to the OR gate 14 as the reset control signal 15. The output of the OR gate 14 is input to the input terminal 1C of the microcomputer 1 as the reset signal 9.

【0016】次に、図2及び図3を参照しながら、図1
の本発明の自己診断回路の機能及び動作につき説明す
る。マイクロコンピュータ1は、例えばルームヒータの
制御を司るものであり、前述同様に表示部3をダイナミ
ック点灯する表示システムを採用し、表示桁を決める桁
スキャン信号4を正常動作状態においては途切れる事な
く連続的に出力している。また、ウォッチドッグタイマ
ー6も、同様に桁スキャン信号4の一部を入力信号7と
して利用しており、マイクロコンピュータ1が正常動作
状態であれば、入力信号7は途切れる事なく連続的に入
力され、ウォッチドッグタイマー6はマイクロコンピュ
ータ1が正常動作状態にあると判断して図3の上から三
段目或いは四段目に示す如く「H」の正常信号をウォッ
チドッグタイマー出力信号8として出力している。
Next, referring to FIGS. 2 and 3, FIG.
The function and operation of the self-diagnosis circuit of the present invention will be described. The microcomputer 1 controls, for example, a room heater, adopts a display system that dynamically lights the display unit 3 as described above, and continuously outputs the digit scan signal 4 for determining a display digit without interruption in a normal operation state. Is being output. Similarly, the watchdog timer 6 also uses a part of the digit scan signal 4 as an input signal 7, and if the microcomputer 1 is in a normal operating state, the input signal 7 is continuously input without interruption. The watchdog timer 6 judges that the microcomputer 1 is in a normal operating state and outputs a normal signal of "H" as the watchdog timer output signal 8 as shown in the third or fourth row from the top of FIG. ing.

【0017】また、何らかの原因で入力信号7が一定時
間以上途切れた場合、ウォッチドッグタイマー6はマイ
クロコンピュータ1が異常動作状態にあると判断して
「L」の異常信号をウォッチドッグタイマー出力信号8
として出力する。また、マイクロコンピュータ1は入力
端子1Cが「L」となるとリセットされるものであり、
ウォッチドッグタイマー6の診断中ではなく、テストス
イッチ11が閉じていてリセット制御信号15が「L」
であれば、ウォッチドッグタイマー出力信号8が「L」
の異常信号となった時点でORゲート14の出力も
「L」となり、これがリセット信号9となってマイクロ
コンピュータ1の入力端子1Cに入力され、マイクロコ
ンピュータ1はリセットされる。
When the input signal 7 is interrupted for a certain time or longer for some reason, the watchdog timer 6 judges that the microcomputer 1 is in an abnormal operation state and outputs an "L" abnormal signal to the watchdog timer output signal 8
Output as. Further, the microcomputer 1 is reset when the input terminal 1C becomes "L",
The watchdog timer 6 is not being diagnosed, the test switch 11 is closed, and the reset control signal 15 is "L".
If so, the watchdog timer output signal 8 is "L".
The output of the OR gate 14 also becomes "L" when it becomes the abnormal signal of 1., and this becomes the reset signal 9 and is input to the input terminal 1C of the microcomputer 1, and the microcomputer 1 is reset.

【0018】図2において、マイクロコンピュータ1は
電源投入からステップS10で初期設定され、ステップ
S11で入力端子1Bの電位によりテストスイッチ11
が開路されたか否か判断しており、閉じたままであれば
ステップS12で通常動作のプログラムを実行してい
る。図3の時刻T1でテストスイッチ11が開路されて
診断動作指示信号12が「L」から「H」になると、マ
イクロコンピュータ1はステップS11からステップS
13に進んで桁スキャン信号4を停止し、ステップS1
4で一定時間経過したか判断する。また、テストスイッ
チ11の開路によってリセット制御信号15も「L」か
ら「H」になってORゲート14に入力される。
In FIG. 2, the microcomputer 1 is initialized at step S10 after the power is turned on, and at step S11 the test switch 11 is set by the potential of the input terminal 1B.
It is determined whether or not is opened, and if it is still closed, the normal operation program is executed in step S12. When the test switch 11 is opened at time T1 in FIG. 3 and the diagnostic operation instruction signal 12 changes from "L" to "H", the microcomputer 1 proceeds from step S11 to step S11.
Proceed to step 13 to stop the digit scan signal 4, and step S1
At 4, it is determined whether a certain time has passed. Further, the reset control signal 15 is also changed from “L” to “H” by the opening of the test switch 11, and is input to the OR gate 14.

【0019】一方、ウォッチドッグタイマー6が正常に
機能していれば、前記桁スキャン信号4の停止が所定期
間継続された時刻T2にウォッチドッグタイマー6はマ
イクロコンピュータ1が異常動作状態にあると判断し
て、前記図3の上から三段目に示す如く「L」の異常信
号をウォッチドッグタイマー出力信号8として発生す
る。しかしながら、ウォッチドッグタイマー出力信号8
が「L」となっても、リセット制御信号15は前述の如
く「H」となっており、従ってORゲート14の出力は
「H」のままとなってリセット信号9とはならず、マイ
クロコンピュータ1の入力端子1Cは「H」のままでマ
イクロコンピュータ1にはリセットはかからない。
On the other hand, if the watchdog timer 6 is functioning normally, the watchdog timer 6 determines that the microcomputer 1 is in an abnormal operating state at time T2 when the stop of the digit scan signal 4 is continued for a predetermined period. Then, an abnormal signal of "L" is generated as the watchdog timer output signal 8 as shown in the third row from the top of FIG. However, the watchdog timer output signal 8
Is "L", the reset control signal 15 is "H" as described above. Therefore, the output of the OR gate 14 remains "H" and does not become the reset signal 9, and the microcomputer The input terminal 1C of No. 1 remains "H" and the microcomputer 1 is not reset.

【0020】マイクロコンピュータ1はT1から一定時
間経過した時刻T3(T2よりも後)にステップS15
で入力端子1Aのウォッチドッグタイマー出力信号8が
「H」であるか、「L」であるか判断し、この場合異常
信号の「L」であるからステップS16で桁スキャン信
号4の発生を再開してステップS17で表示部3にOK
表示を行い、ステップS18で一定時間経過したか見
て、一定時間後ステップS11に戻る。使用者は、前記
表示部3のOK表示を見てウォッチドッグタイマー6が
正常に動作することを確認することができる。
The microcomputer 1 performs step S15 at time T3 (after T2) after a lapse of a certain time from T1.
Determines whether the watchdog timer output signal 8 of the input terminal 1A is "H" or "L". In this case, since it is the abnormal signal "L", the generation of the digit scan signal 4 is restarted in step S16. Then, in step S17, the display 3 is OK.
The display is performed, and it is determined in step S18 whether a certain time has elapsed, and after a certain time, the process returns to step S11. The user can confirm that the watchdog timer 6 operates normally by looking at the OK display on the display unit 3.

【0021】次に、ウォッチドッグタイマー6が正常に
機能していない場合は、図3の上から四段目の如く時刻
T2においてもウォッチドッグタイマー出力信号8は
「H」のままであり、ORゲート14の出力は「H」で
マイクロコンピュータ1にはリセットはかからない。一
方、入力端子1Aのウォッチドッグタイマー出力信号8
が「H」であることにより、マイクロコンピュータ1は
ステップS15からステップS19に進んで桁スキャン
信号4の出力を再開し、ステップS20で表示部3にN
G表示を行い、ステップS18で一定時間経過したか見
て、一定時間後ステップS11に戻る。使用者は、前記
表示部3のNG表示を見てウォッチドッグタイマー6が
正常に動作していないことを確認することができる。ま
た、この時、マイクロコンピュータ1はリセットされな
いので、ウォッチドッグタイマー6の機能診断をマイク
ロコンピュータ1の通常の処理作業に支障を及ぼすこと
なく実行することが可能になる。
Next, when the watchdog timer 6 is not functioning normally, the watchdog timer output signal 8 remains "H" at the time T2 as in the fourth step from the top of FIG. The output of the gate 14 is "H", and the microcomputer 1 is not reset. On the other hand, the watchdog timer output signal 8 of the input terminal 1A
Is "H", the microcomputer 1 advances from step S15 to step S19 to restart the output of the digit scan signal 4, and the display unit 3 displays N in step S20.
The G display is performed, and it is determined in step S18 whether a certain time has elapsed, and after a certain time, the process returns to step S11. The user can confirm that the watchdog timer 6 is not operating normally by looking at the NG display on the display unit 3. Further, at this time, since the microcomputer 1 is not reset, the function diagnosis of the watchdog timer 6 can be executed without affecting the normal processing work of the microcomputer 1.

【0022】次に、図4乃至図6に本発明の他の実施例
を示す。前記実施例では、リセット制御信号15として
テストスイッチ11の端子電圧をハードウェア的に直接
使用していたが、この実施例の場合、テストスイッチ1
1の端子電圧を直接リセット制御信号15としては用い
ず、診断動作指示信号12を一度マイクロコンピュータ
1に入力し、何らかの処理を加えた後、マイクロコンピ
ュータ1の出力端子1Dからリセット制御信号15とし
て出力する方法を採っている。他の回路構成は図1と同
様であるので説明は省略する。
Next, FIGS. 4 to 6 show another embodiment of the present invention. In the above embodiment, the terminal voltage of the test switch 11 was directly used as hardware as the reset control signal 15, but in the case of this embodiment, the test switch 1 is used.
The terminal voltage of 1 is not directly used as the reset control signal 15, but the diagnostic operation instruction signal 12 is once input to the microcomputer 1 and, after some processing, is output as the reset control signal 15 from the output terminal 1D of the microcomputer 1. The method of doing is taken. The other circuit configuration is similar to that of FIG.

【0023】図5のフローチャート及び図6のタイミン
グチャートを参照して、前記実施例と比較しながら、こ
の実施例の動作を説明する。図2のフローチャートと図
5のフローチャートとの相違点は、図5ではステップS
11でテストスイッチ11が開路されて診断動作指示信
号12が「L」から「H」になった場合に、ステップS
13の前にステップS21でリセット制御信号15をセ
ット(「L」から「H」)して出力端子1Dから出力す
ることである。即ち、リセット制御信号15はマイクロ
コンピュータ1によって作られ、その発生時刻もマイク
ロコンピュータ1に委ねられる。
The operation of this embodiment will be described with reference to the flow chart of FIG. 5 and the timing chart of FIG. 6 in comparison with the above embodiment. The difference between the flowchart of FIG. 2 and the flowchart of FIG. 5 is that step S in FIG.
When the test switch 11 is opened at 11 and the diagnostic operation instruction signal 12 changes from “L” to “H”, step S
Prior to step 13, the reset control signal 15 is set (“L” to “H”) in step S21 and output from the output terminal 1D. That is, the reset control signal 15 is generated by the microcomputer 1, and the generation time thereof is also entrusted to the microcomputer 1.

【0024】従って、例えば図6の上から一段目に示す
如く、診断動作指示信号12が時刻T1で「H」となっ
ても、同二段目に示す如く「H」のリセット制御信号1
5を同時に出力せず、少許遅れた時刻T4に「H」とし
てORゲート14に送ることができる。これによって前
記T2、T3時刻は全てT1からT4の期間だけ遅れた
T5、T6時刻となる。しかしながら、このようにマイ
クロコンピュータ1の出力としてリセット制御信号15
を作ることから、前記実施例と同様の効果に加え、通常
のマイクロコンピュータ1の処理作業に都合の良いタイ
ミングでウォッチドッグタイマー6の機能の診断を開始
できるという利点がある。
Therefore, for example, as shown in the first row from the top of FIG. 6, even if the diagnostic operation instruction signal 12 becomes "H" at time T1, the reset control signal 1 of "H" is shown in the second row.
5 can be sent to the OR gate 14 as "H" at time T4 which is slightly delayed without outputting 5 at the same time. As a result, the T2 and T3 times are all T5 and T6 times delayed by the period T1 to T4. However, as described above, the reset control signal 15 is output as the output of the microcomputer 1.
In addition to the effects of the above embodiment, there is an advantage that the diagnosis of the function of the watchdog timer 6 can be started at a timing convenient for the normal processing operation of the microcomputer 1.

【0025】尚、各実施例ではウォッチドッグタイマー
6の入力信号7として桁スキャン信号4の一部を使用し
たが、これは他の信号であっても差し支えなく、マイク
ロコンピュータ1の動作が正常状態にある場合には途切
れる事なく連続的で、しかも異常状態に陥った場合に一
定時間以上停止するような信号であれば同様の効果が得
られることは云うまでもない。
In each embodiment, a part of the digit scan signal 4 is used as the input signal 7 of the watchdog timer 6, but this may be another signal, and the operation of the microcomputer 1 is in a normal state. Needless to say, the same effect can be obtained if the signal is continuous without interruption in the case of 1) and stops for a certain period of time or more in the case of an abnormal state.

【0026】[0026]

【発明の効果】以上詳述した如く本発明によれば、監視
手段の機能診断を、通常のコンピュータの処理作業に支
障を来すことなく実現することが可能となる。
As described above in detail, according to the present invention, it is possible to realize the function diagnosis of the monitoring means without interfering with the normal computer processing operation.

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

【図1】本発明の自己診断回路のブロック図である。FIG. 1 is a block diagram of a self-diagnosis circuit of the present invention.

【図2】図1のマイクロコンピュータのプログラムを示
すフローチャートである。
2 is a flowchart showing a program of the microcomputer of FIG.

【図3】図1の各信号のタイミングチャートである。FIG. 3 is a timing chart of each signal in FIG.

【図4】本発明の他の実施例の自己診断回路のブロック
図である。
FIG. 4 is a block diagram of a self-diagnosis circuit according to another embodiment of the present invention.

【図5】図4のマイクロコンピュータのプログラムを示
すフローチャートである。
5 is a flowchart showing a program of the microcomputer shown in FIG.

【図6】図4の各信号のタイミングチャートである。FIG. 6 is a timing chart of each signal in FIG.

【図7】従来の自己診断回路のブロック図である。FIG. 7 is a block diagram of a conventional self-diagnosis circuit.

【図8】図7の従来の自己診断回路のマイクロコンピュ
ータのプログラムを示すフローチャートである。
8 is a flowchart showing a program of a microcomputer of the conventional self-diagnosis circuit of FIG.

【図9】図7の従来の自己診断回路の各信号のタイミン
グチャートである。
9 is a timing chart of each signal of the conventional self-diagnosis circuit of FIG.

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

1 マイクロコンピュータ 3 表示部 4 桁スキャン信号 6 ウォッチドッグタイマー 7 入力信号 8 ウォッチドッグタイマー出力信号 9 リセット信号 11 テストスイッチ 12 診断動作指示信号 14 ORゲート 15 リセット制御信号 1 Microcomputer 3 Display 4 Digit scan signal 6 Watchdog timer 7 Input signal 8 Watchdog timer output signal 9 Reset signal 11 Test switch 12 Diagnostic operation instruction signal 14 OR gate 15 Reset control signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 正常状態に対応する信号を出力するコン
ピュータと、前記信号の状態を監視することにより前記
コンピュータの異常を検知し、異常状態であれば異常信
号を発生する監視手段と、該監視手段のテスト作動部
と、該テスト作動部の作動に基づいて発生するリセット
制御信号と前記異常信号とを入力とし、前記リセット制
御信号が入力されず、異常信号が入力された場合は前記
コンピュータにリセット信号を出力し、前記リセット制
御信号と異常信号の双方が入力された場合は前記リセッ
ト信号の出力を禁止するゲートとから成り、前記コンピ
ュータは前記テスト作動部の作動に伴って前記正常状態
に対応する信号の出力を停止すると共に、前記異常信号
の有無に応じた所定の表示動作を実行することを特徴と
する自己診断回路。
1. A computer that outputs a signal corresponding to a normal state, a monitoring unit that detects an abnormality of the computer by monitoring the state of the signal, and generates an abnormal signal if the computer is in an abnormal state, and the monitoring unit. A test actuation unit of the means, a reset control signal generated based on the actuation of the test actuation unit, and the abnormality signal are input, and the reset control signal is not input, but when the abnormality signal is input, the computer A reset signal is output, and a gate that prohibits the output of the reset signal when both the reset control signal and the abnormal signal are input is provided, and the computer is brought into the normal state with the operation of the test operating unit. A self-diagnosis circuit, which stops the output of a corresponding signal and executes a predetermined display operation according to the presence or absence of the abnormal signal.
JP3258853A 1991-10-07 1991-10-07 Self diagnostic circuit Pending JPH05100889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3258853A JPH05100889A (en) 1991-10-07 1991-10-07 Self diagnostic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3258853A JPH05100889A (en) 1991-10-07 1991-10-07 Self diagnostic circuit

Publications (1)

Publication Number Publication Date
JPH05100889A true JPH05100889A (en) 1993-04-23

Family

ID=17325948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3258853A Pending JPH05100889A (en) 1991-10-07 1991-10-07 Self diagnostic circuit

Country Status (1)

Country Link
JP (1) JPH05100889A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011175607A (en) * 2010-02-25 2011-09-08 Mitsubishi Heavy Ind Ltd Inspection device, method and program
JP2018107679A (en) * 2016-12-27 2018-07-05 ルネサスエレクトロニクス株式会社 Semiconductor device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011175607A (en) * 2010-02-25 2011-09-08 Mitsubishi Heavy Ind Ltd Inspection device, method and program
JP2018107679A (en) * 2016-12-27 2018-07-05 ルネサスエレクトロニクス株式会社 Semiconductor device

Similar Documents

Publication Publication Date Title
JPH05100889A (en) Self diagnostic circuit
JP2005044074A (en) Safety controller, program for making computer execute diagnosis of stable output circuit included in safety controller, and computer-readable recording medium with program recorded thereon
JPS6362765B2 (en)
JP2000010954A (en) Digital signal processor
KR0177059B1 (en) Data error testing method in tv
JP2734243B2 (en) Watchdog timer
JPH04283840A (en) Diagnostic method for information processor
JPH0764824A (en) Programmable controller
KR860003526Y1 (en) Crt terminal power saving circuit
JP2760027B2 (en) I / O device
JPH06175888A (en) Abnormal access detection circuit
JPH05218206A (en) Integrated circuit device
JPH063461Y2 (en) Key input device
JPH05183410A (en) Abnormality deciding device for gate control circuit
JPS60256805A (en) Numerical controller
JPH01276249A (en) Log-out control system
JPS6116340A (en) Emergency operation device of processor system
JPS6118046A (en) Microcomputer
JPH0612292A (en) Microcomputer
JPH01193942A (en) Self-diagnosis system for signal processing circuit
JPH117321A (en) System for diagnosing servo driving circuit
JPH07311695A (en) Run-away monitor timer circuit device
JP2002163245A (en) Microcomputer
JPS63282535A (en) Signal processor
JPH05324407A (en) Cpu monitor system