JP2001034500A - Microcomputer failure diagnosing device and method - Google Patents

Microcomputer failure diagnosing device and method

Info

Publication number
JP2001034500A
JP2001034500A JP21020599A JP21020599A JP2001034500A JP 2001034500 A JP2001034500 A JP 2001034500A JP 21020599 A JP21020599 A JP 21020599A JP 21020599 A JP21020599 A JP 21020599A JP 2001034500 A JP2001034500 A JP 2001034500A
Authority
JP
Japan
Prior art keywords
microcomputer
diagnosis
value
failure
diagnostic
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
JP21020599A
Other languages
Japanese (ja)
Inventor
Toshiyuki Taniguchi
俊之 谷口
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP21020599A priority Critical patent/JP2001034500A/en
Publication of JP2001034500A publication Critical patent/JP2001034500A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a microcomputer failure diagnosing device and method realizing the improvement of diagnosing precision by the small number of parts. SOLUTION: This device is provided with a microcomputer 101, a diagnosing circuit 102 arranged in a microcomputer 101, and a timer circuit 104 for measuring the cycle of a diagnostic signal outputted by the microcomputer 101. The diagnosing circuit compares a diagnostic value being the executed result of prescribed diagnosis by the microcomputer with a comparison value being a preliminarily prepared constant, and judges the presence or absence of the failure of the microcomputer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、故障診断技術に係
り、特に診断精度の向上を少ない部品点数で実現するマ
イクロコンピュータ故障診断装置およびマイクロコンピ
ュータ故障診断方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a failure diagnosis technique, and more particularly to a microcomputer failure diagnosis apparatus and a microcomputer failure diagnosis method which can improve the diagnosis accuracy with a small number of components.

【0002】[0002]

【従来の技術】マイクロコンピュータを使用する従来の
システムでは、マイクロコンピュータが出力し正常時に
は一定周期となる信号を計るタイマー回路を設け、周期
の変化によって故障判定を行うのが一般的である。しか
しこのシステムでは、マイクロコンピュータの故障時の
動作が特定できないため、高信頼性が要求されるシステ
ムでは上記回路の他に、故障時の動作を保証する手段と
して同じソフトで動く2つのマイクロコンピュータを設
け、本来一致するべき出力信号が不一致の場合にその動
作を制限したり、マイクロコンピュータの故障を検出す
るために専用のマイクロコンピュータを設け、2つのマ
イクロコンピュータ間でのデータ通信等の手段により、
外部からは診断しにくい内部の処理動作を把握すること
で故障判定を行っていた。
2. Description of the Related Art In a conventional system using a microcomputer, it is common to provide a timer circuit for measuring a signal which is output from the microcomputer and has a fixed period in a normal state, and determines a failure based on a change in the period. However, in this system, the operation at the time of the failure of the microcomputer cannot be specified. Therefore, in a system requiring high reliability, two microcomputers operating with the same software as means for guaranteeing the operation at the time of the failure are provided in addition to the above circuit. A dedicated microcomputer is provided to limit the operation when the output signals that should be matched do not match, or to detect a failure of the microcomputer, and by means such as data communication between the two microcomputers,
Failure determination is performed by grasping internal processing operations that are difficult to diagnose from the outside.

【0003】次に、従来技術のマイクロコンピュータ故
障診断装置を図面を用いて説明する。図1は従来のマイ
クロコンピュータ故障診断装置5のブロック図である。
図1において、5はマイクロコンピュータ故障診断装
置、1,2はマイクロコンピュータ、3はバッファー回
路、4はタイマー回路を示している。図1を参照する
と、従来技術のマイクロコンピュータ故障診断装置5
は、異なるソフトウェアで動作するマイクロコンピュー
タ1とマイクロコンピュータ2、および2つのマイクロ
コンピュータ1,2の信号が入力されるバッファー回路
3と、2つのマイクロコンピュータ1,2が一定間隔で
出力する信号の周期を測定するタイマー回路4を備えて
いる。
Next, a conventional microcomputer failure diagnosis apparatus will be described with reference to the drawings. FIG. 1 is a block diagram of a conventional microcomputer failure diagnosis device 5.
In FIG. 1, reference numeral 5 denotes a microcomputer failure diagnosis device, reference numerals 1 and 2 denote a microcomputer, reference numeral 3 denotes a buffer circuit, and reference numeral 4 denotes a timer circuit. Referring to FIG. 1, a prior art microcomputer failure diagnosis apparatus 5
Is a microcomputer 1 and a microcomputer 2 operated by different software, a buffer circuit 3 to which signals from the two microcomputers 1 and 2 are input, and a cycle of a signal output from the two microcomputers 1 and 2 at a constant interval. Is provided.

【0004】次に、従来技術のマイクロコンピュータ故
障診断装置5を用いた診断手順を説明する。図1を参照
すると、まず、第1ステップが実行され、マイクロコン
ピュータ2が、マイクロコンピュータ1との間に設けら
れた通信ラインを経てあらかじめ用意された定数を送信
する。マイクロコンピュータ1が、受け取った定数を基
に自己診断を行い、その結果得られた定数をマイクロコ
ンピュータ2に送信する。
Next, a diagnosis procedure using the conventional microcomputer failure diagnosis apparatus 5 will be described. Referring to FIG. 1, first, a first step is executed, and microcomputer 2 transmits a constant prepared in advance through a communication line provided between microcomputer 2 and microcomputer 1. The microcomputer 1 performs a self-diagnosis on the basis of the received constant, and transmits the obtained constant to the microcomputer 2.

【0005】続いて、第2ステップが実行され、マイク
ロコンピュータ2には送信した定数に対する診断値があ
らかじめ用意されているので、マイクロコンピュータ1
から送られてきた値と診断値が等しいかどうか比較す
る。比較の結果等しければマイクロコンピュータ1は正
常と診断されるが、等しくなかった場合は故障と診断さ
れ、マイクロコンピュータ2はインヒビット信号(故障
信号)を出力する。
Subsequently, a second step is executed. Since a diagnosis value for the transmitted constant is prepared in the microcomputer 2 in advance, the microcomputer 1
Compare whether the value sent from and the diagnostic value are equal. If the result of the comparison is equal, the microcomputer 1 is diagnosed as normal, but if they are not equal, it is diagnosed as a failure, and the microcomputer 2 outputs an inhibit signal (failure signal).

【0006】続いて、第3ステップが実行され、マイク
ロコンピュータ2は一定間隔で信号を出力し、タイマー
回路4がその間隔時間を測定する。このとき、測定値が
あらかじめ用意されていたしきい値を越えてずれていた
場合、タイマー回路4はマイクロコンピュータ2を故障
と診断してインヒビット信号(故障信号)を出力する。
Subsequently, a third step is executed, the microcomputer 2 outputs a signal at regular intervals, and the timer circuit 4 measures the interval time. At this time, if the measured value deviates beyond the threshold value prepared in advance, the timer circuit 4 diagnoses the microcomputer 2 as a failure and outputs an inhibit signal (failure signal).

【0007】そして、第4ステップが実行され、バッフ
ァー回路3の出力を無効にするマイクロコンピュータ2
およびタイマー回路4からのインヒビット信号(故障信
号)が入力されると、バッファー回路3は、マイクロコ
ンピュータ1からの入力を全く無効とするOFF出力を
出し続ける。このようにして、従来技術のマイクロコン
ピュータ故障診断装置5は、マイクロコンピュータ1と
マイクロコンピュータ2の間での定数の通信、およびタ
イマー回路4による周期計測により自己診断を実行す
る。
Then, the fourth step is executed, and the microcomputer 2 invalidates the output of the buffer circuit 3.
When the inhibit signal (fault signal) from the timer circuit 4 is input, the buffer circuit 3 keeps outputting an OFF output that invalidates the input from the microcomputer 1 at all. In this way, the microcomputer failure diagnosis device 5 of the prior art executes self-diagnosis by communication of constants between the microcomputer 1 and the microcomputer 2 and by measuring the period by the timer circuit 4.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、従来技
術のマイクロコンピュータ故障診断装置5には以下に掲
げる問題点があった。まず第1の問題点は、制御自体は
1つのマイクロコンピュータで済んでいるのに、診断の
ためだけに別のマイクロコンピュータが必要になり、部
品点数の増加やそれに伴うコストアップ等が生じてしま
うことである。そして、第2の問題点は、2つのマイク
ロコンピュータ1,2間での通信を確実に行うための特
別なソフトウェアが必要になり、さらに、ソフトウェア
の信頼性を確保するための通信タイミングの調整や通信
ラインの故障診断等が必要になるため、ソフトウェア容
量の増加やプログラムミスの機会が増加することであ
る。
However, the conventional microcomputer failure diagnosis apparatus 5 has the following problems. First, the first problem is that, although the control itself requires only one microcomputer, another microcomputer is required only for diagnosis, which leads to an increase in the number of parts and an accompanying increase in cost. That is. The second problem is that special software is required for reliably performing communication between the two microcomputers 1 and 2, and further, communication timing adjustment and the like for ensuring the reliability of the software are required. Since a failure diagnosis or the like of a communication line is required, the capacity of the software is increased and the chance of a program error is increased.

【0009】本発明は斯かる問題点を鑑みてなされたも
のであり、その目的とするところは、診断精度の向上を
少ない部品点数で実現するマイクロコンピュータ故障診
断装置およびマイクロコンピュータ故障診断方法を提供
する点にある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a microcomputer failure diagnosis apparatus and a microcomputer failure diagnosis method which realize improvement in diagnosis accuracy with a small number of components. Is to do.

【0010】[0010]

【課題を解決するための手段】請求項1に記載の発明の
要旨は、診断精度の向上を少ない部品点数で実現するマ
イクロコンピュータ故障診断装置であって、内部に自己
診断用の診断回路を内蔵したマイクロコンピュータと、
前記マイクロコンピュータの信号に応じて外部信号を出
力するバッファー回路と、前記マイクロコンピュータが
一定間隔で出力する信号の時間周期を測定するタイマー
回路を有し、前記診断回路は、前記マイクロコンピュー
タによる所定診断の実行結果である診断値をあらかじめ
用意されている定数である比較値と比較して当該マイク
ロコンピュータの故障の有無を判定するように構成され
ていることを特徴とするマイクロコンピュータ故障診断
装置に存する。また請求項2に記載の発明の要旨は、前
記診断回路は、前記マイクロコンピュータに内蔵されて
いることを特徴とする請求項1に記載のマイクロコンピ
ュータ故障診断装置に存する。また請求項3に記載の発
明の要旨は、前記診断回路は、前記マイクロコンピュー
タに自己診断の実行を指示する一定間隔の信号を出力す
るタイマーと、前記タイマーからの一定間隔の信号に応
じて前記マイクロコンピュータが実行した所定診断の実
行結果である診断値を前記比較値と比較する比較器を有
することを特徴とする請求項1または2に記載のマイク
ロコンピュータ故障診断装置に存する。また請求項4に
記載の発明の要旨は、診断精度の向上を少ない部品点数
で実現するマイクロコンピュータ故障診断方法であっ
て、マイクロコンピュータ側で実行する自己診断用の診
断工程と、前記マイクロコンピュータが一定間隔で出力
する信号の時間周期を測定するタイマー工程を有し、前
記診断工程は、前記マイクロコンピュータによる所定診
断の実行結果である診断値をあらかじめ用意されている
定数である比較値と比較して当該マイクロコンピュータ
の故障の有無を判定する工程を備えていることを特徴と
するマイクロコンピュータ故障診断方法に存する。また
請求項5に記載の発明の要旨は、前記診断工程は、前記
マイクロコンピュータに自己診断の実行を指示する一定
間隔の信号を出力するタイマー工程と、前記タイマー工
程からの一定間隔の信号に応じて前記マイクロコンピュ
ータが実行した所定診断の実行結果である診断値をあら
かじめ用意されている定数である比較値と比較する比較
工程を有することを特徴とする請求項4に記載のマイク
ロコンピュータ故障診断方法に存する。また請求項6に
記載の発明の要旨は、前記診断工程が前記タイマー工程
からの一定間隔で信号に応じて前記比較値を前記マイク
ロコンピュータに送信するとともに、診断値を前記比較
工程にセットする第1ステップを有することを特徴とす
る請求項5に記載のマイクロコンピュータ故障診断方法
に存する。また請求項7に記載の発明の要旨は、前記マ
イクロコンピュータが前記受け取った比較値を基に自己
診断を実行するとともに、当該自己診断の結果として得
られた比較データである診断値を前記診断工程に送信す
る第2ステップを有することを特徴とする請求項6に記
載のマイクロコンピュータ故障診断方法に存する。また
請求項8に記載の発明の要旨は、前記診断工程が前記マ
イクロコンピュータから送られてきた診断値を受信し、
当該診断値を前記比較工程にセットし、当該診断値と前
記比較値と比較を前記比較工程を用いて実行し、当該診
断値と前記比較値とが等しい場合に前記マイクロコンピ
ュータを正常と診断し、当該診断値と前記比較値とが等
しくない場合に前記マイクロコンピュータを故障と診断
して故障信号を出力する第3ステップを有することを特
徴とする請求項7に記載のマイクロコンピュータ故障診
断方法に存する。また請求項9に記載の発明の要旨は、
前記マイクロコンピュータが一定間隔で信号を出力し、
前記タイマー回路が当該マイクロコンピュータからの一
定間隔の信号の間隔時間を測定し、当該間隔時間につい
ての測定値があらかじめ用意されている所定のしきい値
を越えてずれていた場合に前記タイマー回路が前記マイ
クロコンピュータを故障と診断し、前記タイマー回路が
故障信号を出力する第4ステップを有することを特徴と
する請求項8に記載のマイクロコンピュータ故障診断方
法に存する。また請求項10に記載の発明の要旨は、バ
ッファー回路が前記故障信号に応じて前記マイクロコン
ピュータからの出力を無効とする第5ステップを有する
ことを特徴とする請求項9に記載のマイクロコンピュー
タ故障診断方法に存する。
SUMMARY OF THE INVENTION The gist of the present invention is a microcomputer failure diagnosis apparatus which realizes improvement in diagnosis accuracy with a small number of parts, and has a built-in diagnosis circuit for self-diagnosis. Microcomputer and
A buffer circuit that outputs an external signal in accordance with the signal of the microcomputer; and a timer circuit that measures a time period of a signal that the microcomputer outputs at regular intervals. The diagnosis circuit performs a predetermined diagnosis by the microcomputer. And a diagnostic value as an execution result of the microcomputer is compared with a comparison value as a constant prepared in advance to determine whether or not the microcomputer has a failure. . According to a second aspect of the present invention, there is provided the microcomputer failure diagnosis apparatus according to the first aspect, wherein the diagnosis circuit is built in the microcomputer. The gist of the invention described in claim 3 is that the diagnosis circuit outputs a signal at a constant interval instructing the microcomputer to execute a self-diagnosis, and the diagnostic circuit responds to the signal at a constant interval from the timer. 3. The microcomputer failure diagnosis apparatus according to claim 1, further comprising a comparator for comparing a diagnosis value, which is a result of the predetermined diagnosis executed by the microcomputer, with the comparison value. The gist of the invention described in claim 4 is a microcomputer failure diagnosis method for realizing improvement in diagnosis accuracy with a small number of components, wherein a diagnosis step for self-diagnosis executed on the microcomputer side, A timer step of measuring a time period of a signal output at a constant interval, wherein the diagnosis step compares a diagnosis value which is a result of execution of a predetermined diagnosis by the microcomputer with a comparison value which is a constant prepared in advance. And a step of determining whether there is a failure in the microcomputer. The gist of the invention described in claim 5 is that the diagnosis step includes a timer step of outputting a signal at regular intervals instructing the microcomputer to execute a self-diagnosis, and a timer step of outputting a signal at regular intervals from the timer step. 5. The microcomputer failure diagnosis method according to claim 4, further comprising a comparison step of comparing a diagnosis value, which is a result of the predetermined diagnosis executed by the microcomputer, with a comparison value, which is a constant prepared in advance. Exists. The gist of the invention according to claim 6 is that the diagnostic step transmits the comparison value to the microcomputer at a constant interval from the timer step in response to a signal and sets the diagnostic value in the comparison step. A microcomputer fault diagnosis method according to claim 5, comprising one step. The gist of the invention according to claim 7 is that the microcomputer executes a self-diagnosis based on the received comparison value, and furthermore, the microcomputer executes a diagnosis value as comparison data obtained as a result of the self-diagnosis. 7. The method according to claim 6, further comprising a second step of transmitting to the microcomputer. The gist of the invention according to claim 8 is that the diagnostic step receives a diagnostic value sent from the microcomputer,
The diagnosis value is set in the comparison step, the diagnosis value is compared with the comparison value using the comparison step, and when the diagnosis value is equal to the comparison value, the microcomputer is diagnosed as normal. 8. The microcomputer failure diagnosis method according to claim 7, further comprising a third step of diagnosing the microcomputer as a failure and outputting a failure signal when the diagnosis value is not equal to the comparison value. Exist. The gist of the invention described in claim 9 is:
The microcomputer outputs a signal at regular intervals,
The timer circuit measures an interval time of a signal at a fixed interval from the microcomputer, and when the measured value of the interval time is shifted beyond a predetermined threshold value prepared in advance, the timer circuit is activated. 9. The microcomputer failure diagnosis method according to claim 8, further comprising a fourth step of diagnosing the microcomputer as a failure and causing the timer circuit to output a failure signal. The gist of the invention according to claim 10 is that the buffer circuit has a fifth step of invalidating an output from the microcomputer in response to the failure signal. Lies in the method of diagnosis.

【0011】[0011]

【発明の実施の形態】以下に示す実施の形態の特徴は、
マイクロコンピュータと、マイクロコンピュータ内に設
けた診断回路と、マイクロコンピュータが出力する診断
信号の周期を計測するタイマー回路を設けることによ
り、マイクロコンピュータの診断精度の向上を少ない部
品点数で実現できることにある。以下、本発明の実施の
形態を図面に基づいて詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The features of the embodiment described below are as follows.
By providing a microcomputer, a diagnostic circuit provided in the microcomputer, and a timer circuit for measuring a cycle of a diagnostic signal output by the microcomputer, an improvement in the diagnostic accuracy of the microcomputer can be realized with a small number of components. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0012】図2は本発明の一実施の形態にかかるマイ
クロコンピュータ故障診断装置10を説明するためのブ
ロック図である。図2において、10はマイクロコンピ
ュータ故障診断装置、101はマイクロコンピュータ、
102は診断回路、103はバッファー回路、104は
タイマー回路を示している。図2を参照すると、本実施
の形態のマイクロコンピュータ故障診断装置10は、内
部に自己診断用の回路(診断回路102)を内蔵したマ
イクロコンピュータ101と、マイクロコンピュータ1
01の信号に応じて外部信号を出力するバッファー回路
103と、マイクロコンピュータ101が一定間隔で出
力する信号の時間周期を測定するタイマー回路104を
備えている。
FIG. 2 is a block diagram for explaining a microcomputer failure diagnosis apparatus 10 according to one embodiment of the present invention. In FIG. 2, 10 is a microcomputer failure diagnosis device, 101 is a microcomputer,
102 indicates a diagnostic circuit, 103 indicates a buffer circuit, and 104 indicates a timer circuit. Referring to FIG. 2, a microcomputer failure diagnosis apparatus 10 of the present embodiment includes a microcomputer 101 having a built-in circuit for self-diagnosis (diagnosis circuit 102) therein, and a microcomputer 1
The microcomputer 101 includes a buffer circuit 103 that outputs an external signal in accordance with the signal No. 01, and a timer circuit 104 that measures a time period of a signal output from the microcomputer 101 at regular intervals.

【0013】図3は図2の診断回路102を説明するた
めのブロック図である。図3において、201はタイマ
ー、202はメモリー、203はバッファー、204は
バッファー、205は比較器を示している。図3を参照
すると、診断回路102は、タイマー201、メモリー
202、バッファー203、バッファー204、比較器
205を備えている。
FIG. 3 is a block diagram for explaining the diagnostic circuit 102 of FIG. 3, reference numeral 201 denotes a timer, 202 denotes a memory, 203 denotes a buffer, 204 denotes a buffer, and 205 denotes a comparator. Referring to FIG. 3, the diagnostic circuit 102 includes a timer 201, a memory 202, a buffer 203, a buffer 204, and a comparator 205.

【0014】次にマイクロコンピュータ故障診断装置1
0の動作(マイクロコンピュータ故障診断方法)につい
て説明する。図4は本発明の一実施の形態にかかるマイ
クロコンピュータ故障診断方法を説明するためのフロー
チャートである。図2,3,4を参照すると、まず、第
1ステップが実行され、マイクロコンピュータ101
(図2参照)に内蔵された診断回路102(図2,3参
照)に設けられたタイマー201(図3参照)は一定間
隔で信号を出力し(図4のステップS1)、診断回路1
02内のメモリー202(図3参照)は、タイマー20
1からの信号が入力されると同時にあらかじめ用意され
た定数(比較値)をバッファー203(図3参照)を通
じてマイクロコンピュータ101に送信(図4のステッ
プS2)し、同時に診断値(比較データ)を比較器20
5(図3参照)にセット(図4のステップS3)する。
Next, the microcomputer failure diagnosis device 1
Operation 0 (microcomputer failure diagnosis method) will be described. FIG. 4 is a flowchart for explaining a microcomputer failure diagnosis method according to one embodiment of the present invention. Referring to FIGS. 2, 3, and 4, first, the first step is executed and the microcomputer 101
The timer 201 (see FIG. 3) provided in the diagnostic circuit 102 (see FIGS. 2 and 3) incorporated in the diagnostic circuit 102 (see FIG. 2) outputs a signal at regular intervals (step S1 in FIG. 4).
02 (see FIG. 3) in the timer 20
At the same time as the signal from 1 is input, a constant (comparison value) prepared in advance is transmitted to the microcomputer 101 through the buffer 203 (see FIG. 3) (step S2 in FIG. 4), and at the same time, the diagnosis value (comparison data) is transmitted. Comparator 20
5 (see FIG. 3) (step S3 in FIG. 4).

【0015】次いで第2ステップが実行され、マイクロ
コンピュータ101は、受け取った定数(比較値)を基
に自己診断(図4のステップS4)を行い、その結果得
られた診断値(比較データ)を診断回路102に送信す
る(図4のステップS5)。
Next, a second step is executed, and the microcomputer 101 performs a self-diagnosis (step S4 in FIG. 4) based on the received constant (comparison value), and outputs a diagnosis value (comparison data) obtained as a result. This is transmitted to the diagnostic circuit 102 (step S5 in FIG. 4).

【0016】次いで第3ステップが実行され、診断回路
102は、マイクロコンピュータ101から送られてき
た診断値(比較データ)を受信(図4のステップS6)
し、診断値(比較データ)がバッファー204(図3参
照)を通じて比較器205にセットされ、比較器205
は、当該診断値が既にセットされている比較値と等しい
かどうかを比較(図4のステップS7)し、等しければ
(図4のステップS7のY)マイクロコンピュータ10
1は正常と診断され、等しくなかった場合(図4のステ
ップS7のN)は故障と診断され、診断回路102がイ
ンヒビット信号(故障信号)を出力(図4のステップS
8)する。
Next, a third step is executed, and the diagnostic circuit 102 receives the diagnostic value (comparison data) sent from the microcomputer 101 (step S6 in FIG. 4).
Then, the diagnostic value (comparison data) is set in the comparator 205 through the buffer 204 (see FIG. 3),
Compares the diagnostic value with the already set comparison value (step S7 in FIG. 4), and if they are equal (Y in step S7 in FIG. 4), the microcomputer 10
1 is diagnosed as normal, and if they are not equal (N in step S7 in FIG. 4), a failure is diagnosed, and the diagnostic circuit 102 outputs an inhibit signal (fault signal) (step S7 in FIG. 4).
8) Yes.

【0017】次いで第4ステップが実行され、マイクロ
コンピュータ101は一定間隔で信号を出力し、タイマ
ー回路104はその間隔時間を測定する。このとき、測
定値があらかじめ用意されていたしきい値を越えてずれ
ていた場合、タイマー回路104はマイクロコンピュー
タ101を故障と診断してインヒビット信号(故障信
号)を出力する。
Next, a fourth step is executed, the microcomputer 101 outputs a signal at regular intervals, and the timer circuit 104 measures the interval time. At this time, if the measured value deviates beyond the threshold value prepared in advance, the timer circuit 104 diagnoses the microcomputer 101 as a failure and outputs an inhibit signal (failure signal).

【0018】次いで第5ステップが実行され、バッファ
ー回路103(図2参照)の出力を無効にする診断回路
102およびタイマー回路104(図2参照)からのイ
ンヒビット信号(故障信号)が入力されると、バッファ
ー回路103は、マイクロコンピュータ101からの入
力を全く無効とするOFF出力を出し続ける。これによ
り、1つのマイクロコンピュータ101とタイマー回路
104のみでマイクロコンピュータ101を自己診断す
ることが可能となる。
Next, a fifth step is executed, and when an inhibit signal (fault signal) from the diagnostic circuit 102 and the timer circuit 104 (see FIG. 2) for invalidating the output of the buffer circuit 103 (see FIG. 2) is input. , The buffer circuit 103 keeps outputting an OFF output that invalidates the input from the microcomputer 101 at all. As a result, the microcomputer 101 can perform a self-diagnosis using only one microcomputer 101 and the timer circuit 104.

【0019】以上説明したように本実施の形態によれ
ば、以下に掲げる効果を奏する。まず第1の効果は、少
ない部品点数でマイクロコンピュータ101の故障診断
を実行できることである。そして第2の効果は、診断精
度を向上できることである。
As described above, according to the present embodiment, the following effects can be obtained. The first effect is that the failure diagnosis of the microcomputer 101 can be performed with a small number of parts. The second effect is that diagnostic accuracy can be improved.

【0020】なお、本発明が上記各実施の形態に限定さ
れず、本発明の技術思想の範囲内において、上記実施の
形態は適宜変更され得ることは明らかである。また上記
構成部材の数、位置、形状等は上記実施の形態に限定さ
れず、本発明を実施する上で好適な数、位置、形状等に
することができる。また、各図において、同一構成要素
には同一符号を付している。
It should be noted that the present invention is not limited to the above embodiments, and it is clear that the above embodiments can be appropriately modified within the scope of the technical idea of the present invention. Further, the number, position, shape, and the like of the constituent members are not limited to the above-described embodiment, and can be set to numbers, positions, shapes, and the like suitable for carrying out the present invention. In each drawing, the same components are denoted by the same reference numerals.

【0021】[0021]

【発明の効果】本発明は以上のように構成されているの
で、以下に掲げる効果を奏する。まず第1の効果は、少
ない部品点数でマイクロコンピュータの故障診断を実行
できることである。そして第2の効果は、診断精度を向
上できることである。
Since the present invention is configured as described above, the following effects can be obtained. A first effect is that a failure diagnosis of a microcomputer can be executed with a small number of parts. The second effect is that diagnostic accuracy can be improved.

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

【図1】従来のマイクロコンピュータ故障診断装置のブ
ロック図である。
FIG. 1 is a block diagram of a conventional microcomputer failure diagnosis device.

【図2】本発明の一実施の形態にかかるマイクロコンピ
ュータ故障診断装置を説明するためのブロック図であ
る。
FIG. 2 is a block diagram for explaining a microcomputer failure diagnosis device according to one embodiment of the present invention.

【図3】図2の診断回路を説明するためのブロック図で
ある。
FIG. 3 is a block diagram for explaining the diagnostic circuit of FIG. 2;

【図4】本発明の一実施の形態にかかるマイクロコンピ
ュータ故障診断方法を説明するためのフローチャートで
ある。
FIG. 4 is a flowchart illustrating a microcomputer failure diagnosis method according to one embodiment of the present invention.

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

10…マイクロコンピュータ故障診断装置 101…マイクロコンピュータ 102…診断回路 103…バッファー回路 104…タイマー回路 201…タイマー 202…メモリー 203,204…バッファー 205…比較器 DESCRIPTION OF SYMBOLS 10 ... Microcomputer failure diagnostic apparatus 101 ... Microcomputer 102 ... Diagnostic circuit 103 ... Buffer circuit 104 ... Timer circuit 201 ... Timer 202 ... Memory 203,204 ... Buffer 205 ... Comparator

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 診断精度の向上を少ない部品点数で実現
するマイクロコンピュータ故障診断装置であって、 内部に自己診断用の診断回路を内蔵したマイクロコンピ
ュータと、 前記マイクロコンピュータの信号に応じて外部信号を出
力するバッファー回路と、 前記マイクロコンピュータが一定間隔で出力する信号の
時間周期を測定するタイマー回路を有し、 前記診断回路は、前記マイクロコンピュータによる所定
診断の実行結果である診断値をあらかじめ用意されてい
る定数である比較値と比較して当該マイクロコンピュー
タの故障の有無を判定するように構成されていることを
特徴とするマイクロコンピュータ故障診断装置。
1. A microcomputer failure diagnostic apparatus which realizes improvement of diagnostic accuracy with a small number of parts, comprising: a microcomputer having a built-in diagnostic circuit for self-diagnosis; and an external signal according to a signal of the microcomputer. And a timer circuit for measuring a time period of a signal output from the microcomputer at regular intervals, wherein the diagnostic circuit prepares in advance a diagnostic value that is a result of performing a predetermined diagnostic by the microcomputer. A microcomputer failure diagnosis device configured to determine the presence or absence of a failure in the microcomputer by comparing with a comparison value that is a constant.
【請求項2】 前記診断回路は、前記マイクロコンピュ
ータに内蔵されていることを特徴とする請求項1に記載
のマイクロコンピュータ故障診断装置。
2. The microcomputer failure diagnosis apparatus according to claim 1, wherein said diagnosis circuit is built in said microcomputer.
【請求項3】 前記診断回路は、 前記マイクロコンピュータに自己診断の実行を指示する
一定間隔の信号を出力するタイマーと、 前記タイマーからの一定間隔の信号に応じて前記マイク
ロコンピュータが実行した所定診断の実行結果である診
断値を前記比較値と比較する比較器を有することを特徴
とする請求項1または2に記載のマイクロコンピュータ
故障診断装置。
3. A diagnostic circuit comprising: a timer for outputting a signal at a constant interval instructing the microcomputer to execute a self-diagnosis; and a predetermined diagnostic executed by the microcomputer in response to a signal at a constant interval from the timer. 3. The microcomputer failure diagnosis apparatus according to claim 1, further comprising a comparator for comparing a diagnosis value, which is an execution result of the above, with the comparison value.
【請求項4】 診断精度の向上を少ない部品点数で実現
するマイクロコンピュータ故障診断方法であって、 マイクロコンピュータ側で実行する自己診断用の診断工
程と、前記マイクロコンピュータが一定間隔で出力する
信号の時間周期を測定するタイマー工程を有し、 前記診断工程は、前記マイクロコンピュータによる所定
診断の実行結果である診断値をあらかじめ用意されてい
る定数である比較値と比較して当該マイクロコンピュー
タの故障の有無を判定する工程を備えていることを特徴
とするマイクロコンピュータ故障診断方法。
4. A microcomputer failure diagnosis method for realizing improvement of diagnosis accuracy with a small number of parts, comprising: a diagnosis step for self-diagnosis executed on the microcomputer side; and a signal output from the microcomputer at regular intervals. A timer step of measuring a time period, wherein the diagnosis step compares a diagnosis value, which is a result of execution of the predetermined diagnosis by the microcomputer, with a comparison value, which is a constant prepared in advance, to determine whether a failure has occurred in the microcomputer. A microcomputer failure diagnosis method comprising a step of determining the presence / absence.
【請求項5】 前記診断工程は、 前記マイクロコンピュータに自己診断の実行を指示する
一定間隔の信号を出力するタイマー工程と、 前記タイマー工程からの一定間隔の信号に応じて前記マ
イクロコンピュータが実行した所定診断の実行結果であ
る診断値をあらかじめ用意されている定数である比較値
と比較する比較工程を有することを特徴とする請求項4
に記載のマイクロコンピュータ故障診断方法。
5. The diagnosis step includes a timer step of outputting a signal at regular intervals instructing the microcomputer to execute self-diagnosis, and the microcomputer executing the diagnosis step in response to a signal at regular intervals from the timer step. 5. The apparatus according to claim 4, further comprising a comparing step of comparing a diagnostic value, which is an execution result of the predetermined diagnosis, with a comparative value, which is a constant prepared in advance.
The microcomputer failure diagnosis method according to 1.
【請求項6】 前記診断工程が前記タイマー工程からの
一定間隔で信号に応じて前記比較値を前記マイクロコン
ピュータに送信するとともに、診断値を前記比較工程に
セットする第1ステップを有することを特徴とする請求
項5に記載のマイクロコンピュータ故障診断方法。
6. The diagnostic step includes a first step of transmitting the comparison value to the microcomputer at a constant interval from the timer step in response to a signal and setting a diagnosis value in the comparison step. The microcomputer failure diagnosis method according to claim 5, wherein
【請求項7】 前記マイクロコンピュータが前記受け取
った比較値を基に自己診断を実行するとともに、当該自
己診断の結果として得られた比較データである診断値を
前記診断工程に送信する第2ステップを有することを特
徴とする請求項6に記載のマイクロコンピュータ故障診
断方法。
7. A second step in which the microcomputer executes a self-diagnosis based on the received comparison value, and transmits a diagnosis value, which is comparison data obtained as a result of the self-diagnosis, to the diagnosis process. 7. The microcomputer failure diagnosis method according to claim 6, comprising:
【請求項8】 前記診断工程が前記マイクロコンピュー
タから送られてきた診断値を受信し、当該診断値を前記
比較工程にセットし、当該診断値と前記比較値と比較を
前記比較工程を用いて実行し、当該診断値と前記比較値
とが等しい場合に前記マイクロコンピュータを正常と診
断し、当該診断値と前記比較値とが等しくない場合に前
記マイクロコンピュータを故障と診断して故障信号を出
力する第3ステップを有することを特徴とする請求項7
に記載のマイクロコンピュータ故障診断方法。
8. The diagnostic step receives a diagnostic value sent from the microcomputer, sets the diagnostic value in the comparing step, and compares the diagnostic value with the comparative value using the comparing step. Executing, when the diagnostic value is equal to the comparison value, diagnoses the microcomputer as normal, and when the diagnostic value is not equal to the comparison value, diagnoses the microcomputer as a failure and outputs a failure signal. 8. The method according to claim 7, further comprising the step of:
The microcomputer failure diagnosis method according to 1.
【請求項9】 前記マイクロコンピュータが一定間隔で
信号を出力し、前記タイマー回路が当該マイクロコンピ
ュータからの一定間隔の信号の間隔時間を測定し、当該
間隔時間についての測定値があらかじめ用意されている
所定のしきい値を越えてずれていた場合に前記タイマー
回路が前記マイクロコンピュータを故障と診断し、前記
タイマー回路が故障信号を出力する第4ステップを有す
ることを特徴とする請求項8に記載のマイクロコンピュ
ータ故障診断方法。
9. The microcomputer outputs a signal at a constant interval, the timer circuit measures an interval time of a signal at a constant interval from the microcomputer, and a measurement value for the interval time is prepared in advance. 9. The method according to claim 8, further comprising a fourth step in which the timer circuit diagnoses the microcomputer as a failure when the timer circuit deviates beyond a predetermined threshold value, and the timer circuit outputs a failure signal. Microcomputer failure diagnosis method.
【請求項10】 バッファー回路が前記故障信号に応じ
て前記マイクロコンピュータからの出力を無効とする第
5ステップを有することを特徴とする請求項9に記載の
マイクロコンピュータ故障診断方法。
10. The microcomputer failure diagnosis method according to claim 9, further comprising a fifth step in which the buffer circuit invalidates an output from the microcomputer according to the failure signal.
JP21020599A 1999-07-26 1999-07-26 Microcomputer failure diagnosing device and method Pending JP2001034500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21020599A JP2001034500A (en) 1999-07-26 1999-07-26 Microcomputer failure diagnosing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21020599A JP2001034500A (en) 1999-07-26 1999-07-26 Microcomputer failure diagnosing device and method

Publications (1)

Publication Number Publication Date
JP2001034500A true JP2001034500A (en) 2001-02-09

Family

ID=16585541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21020599A Pending JP2001034500A (en) 1999-07-26 1999-07-26 Microcomputer failure diagnosing device and method

Country Status (1)

Country Link
JP (1) JP2001034500A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012220070A (en) * 2011-04-07 2012-11-12 Rb Controls Co Heating cooker
US10083072B2 (en) 2015-08-14 2018-09-25 Fujitsu Limited Abnormality handling determination program, method for abnormality handling determination, and administration device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012220070A (en) * 2011-04-07 2012-11-12 Rb Controls Co Heating cooker
US10083072B2 (en) 2015-08-14 2018-09-25 Fujitsu Limited Abnormality handling determination program, method for abnormality handling determination, and administration device

Similar Documents

Publication Publication Date Title
JP5608409B2 (en) Self-diagnosis system and test circuit determination method
JP2001034500A (en) Microcomputer failure diagnosing device and method
JP2008134807A (en) Access conflict generation system in access conflict test
JP2003167755A (en) Fault diagnostic method and device for signal processing system
US11187748B2 (en) Procedure for reviewing an FPGA-program
JPS62271153A (en) Diagnostic system for common bus structure
JPH0619810A (en) Duplex device
JP2009282849A (en) Microcomputer
JPS6013592B2 (en) Sequence controller data bus failure diagnosis device
JP2599795B2 (en) Test method for circuits with microprocessor
JPS592585Y2 (en) data processing equipment
JPS6051136B2 (en) Data error detection method
JPH03184133A (en) Pseudo fault generating mechanism for data processor
JPS638956A (en) Memory diagnosing circuit
CN117561674A (en) Servo system and control method of servo system
JP2578186B2 (en) Diagnosis method of failure detection circuit
JPH03106294A (en) Remote monitoring controller
JP2005210332A (en) Timer counter and its operation program
JPS6123263A (en) Test system
JPH02244233A (en) Information processing system
JPH02297650A (en) Receiver
JPH09179835A (en) Parallel processor system
JPS5931800B2 (en) Control memory diagnostic method
JPH0259827A (en) Diagnosis confirming system for information processor
JPH01126097A (en) Remote monitor and control equipment