JP2001175494A - System and method for doubly diagnosing normality of arithmetic processing of microprocessor - Google Patents
System and method for doubly diagnosing normality of arithmetic processing of microprocessorInfo
- Publication number
- JP2001175494A JP2001175494A JP35479199A JP35479199A JP2001175494A JP 2001175494 A JP2001175494 A JP 2001175494A JP 35479199 A JP35479199 A JP 35479199A JP 35479199 A JP35479199 A JP 35479199A JP 2001175494 A JP2001175494 A JP 2001175494A
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- arithmetic processing
- output data
- normality
- diagnosing
- 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
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、マイクロプロセッ
サ(以下、「プロセッサ」という。)を診断する方式及
びその方法に関し、特に2つのマイクロプロセッサで1
つのマイクロプロセッサを二重に診断する方式及びその
方法に関する。本方式及び方法は、特に車両用ABS(a
nti-lock brake system)等の高い信頼性を要求されるシ
ステムで使用される。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and a method for diagnosing a microprocessor (hereinafter referred to as "processor"), and more particularly, to a method for diagnosing one microprocessor with two microprocessors.
The present invention relates to a method and a method for diagnosing two microprocessors twice. This method and method are particularly applicable to vehicle ABS (a
Used in systems requiring high reliability, such as nti-lock brake system).
【0002】[0002]
【従来の技術】従来、プロセッサの診断を目的としてデ
ュアルプロセッサ構成による相互監視が行われることが
多い。2. Description of the Related Art Conventionally, mutual monitoring by a dual processor configuration is often performed for the purpose of processor diagnosis.
【0003】このような、デュアルプロセッサ構成によ
る相互監視システムにおいては、外部からの車輪速信
号、ポテンショメータからのアナログ信号等の入力信号
をメインプロセッサとサブプロセッサの両方が入力し、
メインプロセッサとサブプロセッサは、それぞれ入力信
号に基づき制御プログラムを実行し、その演算結果を一
方から他方へ或いは相互に通信し、両者の演算結果を比
較し、それらが一致しなければメインプロセッサ又はサ
ブプロセッサに異常が発生しているとしてシステムを停
止させる。In such a mutual monitoring system having a dual processor configuration, both the main processor and the sub-processor receive input signals such as an external wheel speed signal and an analog signal from a potentiometer.
The main processor and the sub-processor respectively execute the control program based on the input signal, communicate the operation results from one to the other or mutually, compare the operation results of both, and if they do not match, the main processor or the sub-processor. Stop the system assuming that an error has occurred in the processor.
【0004】[0004]
【発明が解決しようとする課題】しかし、この従来技術
には次のような問題があった。However, this prior art has the following problems.
【0005】第一の問題点は、メインプロセッサとサブ
プロセッサで同じ演算を実行させるので、診断用に使用
するサブプロセッサとしては、メインプロセッサと同程
度の機能、性能を備えたプロセッサを使用しなければな
らずシステムが高価になってしまうことである。The first problem is that the same operation is executed by the main processor and the sub-processor. Therefore, a sub-processor having the same function and performance as the main processor must be used as a sub-processor used for diagnosis. Must be expensive.
【0006】第二の問題点は、入力信号の取り込みに際
し、メインプロセッサ、サブプロセッサのそれぞれが取
り込み誤差を有するので、メインプロセッサ、サブプロ
セッサの入力データが必ずしも等しくはならず、制御プ
ログラムの実行結果の比較において厳密な比較判定が行
えないことである。A second problem is that when the input signal is fetched, the main processor and the sub-processor each have a fetch error, so that the input data of the main processor and the sub-processor are not always equal, and the execution result of the control program is not always equal. Strict comparison judgment cannot be performed in the comparison of.
【0007】本発明の主な目的は、以上の問題点を解決
したマイクロプロセッサの診断方式を提供するることに
ある。A main object of the present invention is to provide a microprocessor diagnosis method which solves the above problems.
【0008】[0008]
【課題を解決するための手段】本発明によるマイクロプ
ロセッサの演算処理の正常性を二重に診断する方式は、
前記マイクロプロセッサである第1のマイクロプロセッ
サと第2のマイクロプロセッサを備え、前記第1のマイ
クロプロセッサが、前記演算処理の診断用入力データと
該診断用入力データが正しく前記演算処理により処理さ
れたならば得られるであろう期待出力データを保持する
第1の記憶手段と、前記第1の記憶手段に記憶されてい
る前記診断用入力データを前記演算処理に与える手段
と、前記演算処理を実行させる手段と、前記演算処理の
実行の結果得られる実出力データを前記第1の記憶手段
に記憶されている前記期待出力データと比較する第1の
比較手段と、前記実出力データを前記第2のマイクロプ
ロセッサに出力する手段と、を備え、前記第2のマイク
ロプロセッサが、前記期待出力データを保持する第2の
記憶手段と、前記第1のマイクロプロセッサから前記実
出力データを入力する手段と、入力した前記実出力デー
タを前記第2の記憶手段に記憶されている前記期待出力
データと比較する第2の比較手段と、を備えることを特
徴とする。According to the present invention, there is provided a method for double-diagnosing the normality of arithmetic processing of a microprocessor according to the present invention.
A first microprocessor and a second microprocessor that are the microprocessors, wherein the first microprocessor correctly processes the diagnostic input data and the diagnostic input data of the arithmetic processing by the arithmetic processing; A first storage unit for holding expected output data that would be obtained if so, a unit for giving the diagnostic input data stored in the first storage unit to the arithmetic processing, and executing the arithmetic processing Means for comparing the actual output data obtained as a result of the execution of the arithmetic processing with the expected output data stored in the first storage means; and Means for outputting the expected output data to the microprocessor, wherein the second microprocessor holds the expected output data, Means for inputting the actual output data from the microprocessor, and second comparing means for comparing the input actual output data with the expected output data stored in the second storage means. Features.
【0009】また、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方式は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
式において、前記第1のマイクロプロセッサが、前記第
1の比較手段による比較結果が不一致であるときに異常
処理を行う手段を更に備えることを特徴とする。Further, the method of diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is a method of diagnosing the normality of the arithmetic processing of the microprocessor doubly. However, it is characterized by further comprising means for performing an abnormality process when the comparison result by the first comparing means does not match.
【0010】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方式は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
式において、前記第2のマイクロプロセッサが、前記第
2の比較手段による比較結果が不一致であるときに異常
処理を行う手段を更に備えることを特徴とする。Further, the method for double-diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is the method for double-diagnosing the normality of the arithmetic processing of the microprocessor as described above. However, the apparatus further comprises means for performing an abnormality process when the comparison result by the second comparing means does not match.
【0011】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方式は、前記マイク
ロプロセッサである第1のマイクロプロセッサと第2の
マイクロプロセッサを備え、前記第1のマイクロプロセ
ッサが、前記演算処理の診断用入力データが正しく前記
演算処理により処理されたならば得られるであろう期待
出力データを保持する第1の記憶手段と、前記第2のマ
イクロプロセッサから前記診断用入力データを入力する
手段と、入力した前記診断用入力データを前記演算処理
に与える手段と、前記演算処理を実行させる手段と、前
記演算処理の実行の結果得られる実出力データを前記第
1の記憶手段に記憶されている前記期待出力データと比
較する第1の比較手段と、前記実出力データを前記第2
のマイクロプロセッサに出力する手段と、を備え、前記
第2のマイクロプロセッサが、前記診断用入力データと
前記期待出力データを保持する第2の記憶手段と、前記
第1のマイクロプロセッサに前記診断用入力データを出
力する手段と、前記第1のマイクロプロセッサから前記
実出力データを入力する手段と、入力した前記実出力デ
ータを前記第2の記憶手段に記憶されている前記期待出
力データと比較する第2の比較手段と、を備えることを
特徴とする。Further, a system for double-diagnosing the normality of the arithmetic processing of a microprocessor according to the present invention comprises a first microprocessor and a second microprocessor as the microprocessor, and the first microprocessor First storage means for holding expected output data that would be obtained if the diagnostic input data of the arithmetic processing were correctly processed by the arithmetic processing; and the diagnostic input data from the second microprocessor. Means for inputting data; means for providing the input diagnostic input data to the arithmetic processing; means for executing the arithmetic processing; and actual output data obtained as a result of the execution of the arithmetic processing in the first storage. Means for comparing the expected output data stored in the means with the expected output data;
Means for outputting the diagnostic input data and the expected output data, and the second microprocessor stores the diagnostic input data and the expected output data in the first microprocessor. Means for outputting input data; means for inputting the actual output data from the first microprocessor; and comparing the input actual output data with the expected output data stored in the second storage means. And a second comparing means.
【0012】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方式は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
式において、前記第1のマイクロプロセッサが、前記第
1の比較手段による比較結果が不一致であるときに異常
処理を行う手段を更に備えることを特徴とする。Further, the method of diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is a method of diagnosing the normality of the arithmetic processing of the microprocessor twice. However, it is characterized by further comprising means for performing an abnormality process when the comparison result by the first comparing means does not match.
【0013】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方式は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
式において、前記第2のマイクロプロセッサが、前記第
2の比較手段による比較結果が不一致であるときに異常
処理を行う手段を更に備えることを特徴とする。Further, the method of double-diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is the method of double-diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention. However, the apparatus further comprises means for performing an abnormality process when the comparison result by the second comparing means does not match.
【0014】本発明によるマイクロプロセッサの演算処
理の正常性を二重に診断する方法は、前記マイクロプロ
セッサである前記第1のマイクロプロセッサが、前記演
算処理の診断用入力データと該診断用入力データが正し
く前記演算処理により処理されたならば得られるであろ
う期待出力データを保持する第1の記憶ステップと、第
2のマイクロプロセッサが、前記期待出力データを保持
する第2の記憶ステップと、前記第1のマイクロプロセ
ッサが、前記第1の記憶ステップで記憶された前記診断
用入力データを前記演算処理に与えるステップと、前記
第1のマイクロプロセッサが、前記演算処理を実行する
ステップと、前記第1のマイクロプロセッサが、前記演
算処理の実行の結果得られた実出力データを前記第1の
記憶ステップで記憶された前記期待出力データと比較す
る第1の比較ステップと、前記第1のマイクロプロセッ
サが、前記実出力データを前記第2のマイクロプロセッ
サに出力するステップと、前記第2のマイクロプロセッ
サが、前記第1のマイクロプロセッサから前記実出力デ
ータを入力するステップと、前記第2のマイクロプロセ
ッサが、入力した前記実出力データを前記第2の記憶ス
テップで記憶された前記期待出力データと比較する第2
の比較ステップと、を有することを特徴とする。According to the present invention, there is provided a method of diagnosing the normality of the arithmetic processing of a microprocessor, wherein the first microprocessor, which is the microprocessor, includes a diagnostic input data for the arithmetic processing and a diagnostic input data. A first storage step for holding expected output data that would be obtained if the processing was correctly performed by the arithmetic processing, and a second storage step for holding the expected output data by a second microprocessor; A step in which the first microprocessor gives the diagnostic input data stored in the first storing step to the arithmetic processing; a step in which the first microprocessor executes the arithmetic processing; The first microprocessor records actual output data obtained as a result of the execution of the arithmetic processing in the first storage step. A first comparing step of comparing the actual output data to the second microprocessor, and a first comparing step of comparing the actual output data to the second microprocessor. Inputting the actual output data from a first microprocessor, and the second microprocessor comparing the input actual output data with the expected output data stored in the second storage step.
And a comparing step.
【0015】また、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方法は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
法において、前記第1の比較ステップでの比較結果が不
一致であるときに、前記第1のマイクロプロセッサが、
異常処理を行うステップを更に有することを特徴とす
る。The method of diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is a method of diagnosing the normality of the arithmetic processing of the microprocessor in the first comparison step. When the result of the comparison at step 1 does not match, the first microprocessor
The method further comprises the step of performing an abnormality process.
【0016】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方法は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
法において、前記第2の比較ステップでの比較結果が不
一致であるときに、前記第2のマイクロプロセッサが、
異常処理を行うステップを更に有することを特徴とす
る。Further, the method for double-diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is the method for double-diagnosing the normality of the arithmetic processing of the microprocessor according to the second aspect of the present invention. When the result of the comparison at step 2 does not match, the second microprocessor
The method further comprises the step of performing an abnormality process.
【0017】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方法は、前記マイク
ロプロセッサである前記第1のマイクロプロセッサが、
前記演算処理の診断用入力データが正しく前記演算処理
により処理されたならば得られるであろう期待出力デー
タを保持する第1の記憶ステップと、第2のマイクロプ
ロセッサが、前記診断用入力データと前記期待出力デー
タを保持する第2の記憶ステップと、前記第2のマイク
ロプロセッサが、前記第1のマイクロプロセッサに前記
診断用入力データを出力するステップと、前記第1のマ
イクロプロセッサが、前記第2のマイクロプロセッサか
ら前記診断用入力データを入力するステップと、前記第
1のマイクロプロセッサが、入力した前記診断用入力デ
ータを前記演算処理に与えるステップと、前記第1のマ
イクロプロセッサが、前記演算処理を実行するステップ
と、前記第1のマイクロプロセッサが、前記演算処理の
実行の結果得られた実出力データを前記第1の記憶ステ
ップで記憶された前記期待出力データと比較する第1の
比較ステップと、前記第1のマイクロプロセッサが、前
記実出力データを前記第2のマイクロプロセッサに出力
するステップと、前記第2のマイクロプロセッサが、前
記第1のマイクロプロセッサから前記実出力データを入
力するステップと、前記第2のマイクロプロセッサが、
入力した前記実出力データを前記第2の記憶ステップで
記憶された前記期待出力データと比較する第2の比較ス
テップと、を有することを特徴とする。Further, in the method of double diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention, the first microprocessor, which is the microprocessor, comprises:
A first storage step for holding expected output data that would be obtained if the diagnostic input data of the arithmetic processing was correctly processed by the arithmetic processing, and a second microprocessor configured to store the diagnostic input data A second storage step of holding the expected output data, a step of the second microprocessor outputting the diagnostic input data to the first microprocessor, and a step of the first microprocessor Inputting the diagnostic input data from the second microprocessor, the first microprocessor providing the input diagnostic input data to the arithmetic processing, and the first microprocessor Executing a process, wherein the first microprocessor obtains a result of the execution of the arithmetic process. A first comparing step of comparing actual output data with the expected output data stored in the first storage step, wherein the first microprocessor outputs the actual output data to the second microprocessor Step, the second microprocessor inputs the actual output data from the first microprocessor, the second microprocessor,
A second comparing step of comparing the input actual output data with the expected output data stored in the second storing step.
【0018】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方法は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
法において、前記第1の比較ステップでの比較結果が不
一致であるときに、前記第1のマイクロプロセッサが、
異常処理を行うステップを更に有することを特徴とす
る。Further, the method of double diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is the method of double diagnosing the normality of the arithmetic processing of the microprocessor according to the first comparison step. When the result of the comparison at step 1 does not match, the first microprocessor
The method further comprises the step of performing an abnormality process.
【0019】更に、本発明によるマイクロプロセッサの
演算処理の正常性を二重に診断する方法は、上記のマイ
クロプロセッサの演算処理の正常性を二重に診断する方
法において、前記第2の比較ステップでの比較結果が不
一致であるときに、前記第2のマイクロプロセッサが、
異常処理を行うステップを更に有することを特徴とす
る。Further, the method for double-diagnosing the normality of the arithmetic processing of the microprocessor according to the present invention is the method of double-diagnosing the normality of the arithmetic processing of the microprocessor according to the second aspect of the present invention. When the result of the comparison at step 2 does not match, the second microprocessor
The method further comprises the step of performing an abnormality process.
【0020】図1を参照すると、本発明によるデュアル
プロセッサを診断する方式の対象となるデュアルプロセ
ッサを含む、ABSの主要部は、車輪速信号入力回路
3、ポテンシャル信号入力回路4、アクチュエータ出力
回路5、メインプロセッサ1、サブプロセッサ2を備
え、外部からの入力信号は車輪速信号入力回路3及びポ
テンシャル信号入力回路4を介してメインプロセッサ1
にのみ入力され、メインプロセッサ1とサブプロセッサ
2からアクチュエータ出力回路5にコントロール信号が
出力される。また、メインプロセッサ1とサブプロセッ
サ2は通信ライン6により接続されている。Referring to FIG. 1, the main parts of the ABS including the dual processor to be subjected to the dual processor diagnosis method according to the present invention include a wheel speed signal input circuit 3, a potential signal input circuit 4, and an actuator output circuit 5. , A main processor 1 and a sub processor 2, and an external input signal is supplied to the main processor 1 via a wheel speed signal input circuit 3 and a potential signal input circuit 4.
, And a control signal is output from the main processor 1 and the sub-processor 2 to the actuator output circuit 5. The main processor 1 and the sub-processor 2 are connected by a communication line 6.
【0021】この診断方式は、システム起動時や車両停
止時等の制御に影響を与えない時に起動される。この診
断方式においては、メインプロセッサ1は、外部からの
入力信号の代わりにメインプロセッサ1のROM11内
の診断用入力データ領域111に格納された診断用入力
データを用いてROM11に格納されている制御プログ
ラムを実行して演算結果を得て、その演算結果をサブプ
ロセッサ2に送信するとともに、演算結果とメインプロ
セッサ1のROM11内の診断用出力期待値データ領域
112に格納される期待出力データとの一致判定を行い
メインプロセッサ1の異常を判定する。一方、サブプロ
セッサ2はメインプロセッサ1より送信されてきた演算
結果とサブプロセッサ2のROM21内の診断用出力期
待値データ領域212に格納される期待出力データとの
一致判定を行いプロセッサ2の異常を判定する。This diagnostic method is started when the control is not affected, such as when the system is started or when the vehicle is stopped. In this diagnostic method, the main processor 1 uses the diagnostic input data stored in the diagnostic input data area 111 in the ROM 11 of the main processor 1 instead of an external input signal to control the control stored in the ROM 11. The program is executed to obtain a calculation result, and the calculation result is transmitted to the sub-processor 2, and the calculation result is compared with the expected output data stored in the diagnostic output expected value data area 112 in the ROM 11 of the main processor 1. A match is determined and an abnormality of the main processor 1 is determined. On the other hand, the sub processor 2 determines whether the operation result transmitted from the main processor 1 matches the expected output data stored in the expected output value data area for diagnosis 212 in the ROM 21 of the sub processor 2 and determines whether the processor 2 is abnormal. judge.
【0022】本発明によれば、メインプロセッサがメイ
ンプロセッサを自己診断することによりメインプロセッ
サの動作の信頼性を高めることができる。また、サブプ
ロセッサがメインプロセッサを診断するので、メインプ
ロセッサが自己診断により検出することが出来ない異常
を検出することができ、メインプロセッサの動作の信頼
性を更に高めることができる。また、サブプロセッサだ
けがメインプロセッサを診断しているのではないので、
サブプロセッサによる診断により異常を検出できないと
きでも、メインプロセッサによる自己診断による異常を
検出することができるので、メインプロセッサの動作の
信頼性を高めることができる。一方のプロセッサによる
診断により検出できるが他方のプロセッサによる診断に
より検出できない異常としては、他方のプロセッサにお
ける一部の命令の実行エラーなどがある。According to the present invention, the reliability of the operation of the main processor can be enhanced by the self-diagnosis of the main processor by the main processor. Further, since the sub-processor diagnoses the main processor, an abnormality that cannot be detected by the main processor by self-diagnosis can be detected, and the reliability of the operation of the main processor can be further improved. Also, because not only the sub-processors diagnose the main processor,
Even when the abnormality cannot be detected by the diagnosis by the sub-processor, the abnormality by the self-diagnosis by the main processor can be detected, so that the reliability of the operation of the main processor can be improved. An abnormality that can be detected by the diagnosis by one processor but not by the diagnosis of the other processor includes an execution error of some instructions in the other processor.
【0023】また、サブプロセッサ2に外部からの入力
信号を供給せず、且つ、サブプロセッサ2がメインプロ
セッサ1と同様の演算を行わなくても、プロセッサ1の
演算の確かさを確認することが可能となり、また、サブ
プロセッサ2として安価なプロセッサを使用することが
可能となる。Further, even if the sub processor 2 is not supplied with an external input signal and the sub processor 2 does not perform the same operation as the main processor 1, it is possible to confirm the certainty of the operation of the processor 1. This makes it possible to use an inexpensive processor as the sub-processor 2.
【0024】更に、メインプロセッサ1とサブプロセッ
サ2との間の入力信号の取り込み誤差の差を考慮する必
要がなく、診断の演算結果に対して厳密な一致判定を行
うことが可能となる。Furthermore, there is no need to consider the difference in the input signal fetch error between the main processor 1 and the sub-processor 2, and it is possible to make a strict coincidence determination with respect to the result of diagnosis.
【0025】[0025]
【発明の実施の形態】[実施形態1]図1を参照する
と、本発明の実施形態によるデュアルプロセッサを診断
する方式の対象となるデュアルプロセッサを含む、AB
Sの制御部は、メインプロセッサ1、サブプロセッサ
2、車輪速信号入力回路3、ポテンショ信号入力回路
4、アクチュエ―タ出力回路5、を備える。またメイン
プロセッサ1内のROM11は診断時に使用する診断用
入力データの格納領域111及び診断用期待出力データ
の格納領域112を有している。また、サブプロセッサ
2内のROM21は診断用期待出力データの格納領域2
12を有している。ここで、診断用入力データ格納領域
111、診断用期待出力データ格納領域112及び診断
用期待出力データ領域212には、1組以上の診断用入
力データ、診断用期待出力データが格納され、これらの
組は、ABSの特定の制御状態をシミュレートするため
に用いられる。ABSにおいては、シミュレートの対象
として、ABS制御中の状態やABS制御していない状
態などがあげられる。[Embodiment 1] Referring to FIG. 1, an AB including a dual processor to be subjected to a dual processor diagnosis method according to an embodiment of the present invention is described.
The control unit of S includes a main processor 1, a sub-processor 2, a wheel speed signal input circuit 3, a potentiometer signal input circuit 4, and an actuator output circuit 5. The ROM 11 in the main processor 1 has a storage area 111 for input data for diagnosis used for diagnosis and a storage area 112 for expected output data for diagnosis. The ROM 21 in the sub-processor 2 has a storage area 2 for the expected output data for diagnosis.
12. Here, one or more sets of diagnostic input data and expected diagnostic output data are stored in the diagnostic input data storage area 111, the expected diagnostic output data storage area 112, and the diagnostic expected output data area 212. The set is used to simulate a specific control state of the ABS. In the ABS, a simulation target includes a state in which ABS control is performed and a state in which ABS control is not performed.
【0026】なお、車輪速信号入力回路3、ポテンシャ
ル信号入力回路4、アクチュエータ出力回路5は、2系
統の信号を入出力するが、二輪車の前輪と後輪の制御を
行うABSを想定しているからである。The wheel speed signal input circuit 3, the potential signal input circuit 4, and the actuator output circuit 5 input and output signals of two systems, but assume an ABS for controlling the front and rear wheels of the motorcycle. Because.
【0027】図2は、メインプロセッサ1がROM11
に格納されたプログラムを実行することにより行われる
本来のABSのための処理及び診断方式の処理を示すフ
ローチャートである。ABSのための処理は、車輪速信
号入力回路3、ポテンショ信号入力回路4から入力され
た信号を取り込む信号入力処理202と、入力変数や演
算作業変数、出力変数などを使用して所定の演算を実行
し各種の演算結果の出力変数を生成する演算処理206
と、演算結果を参照してアクチュエータ出力回路5に対
してコントロール信号を出力する出力処理209を有す
る。診断方式の処理は、診断の実施条件を判定する診断
実施判定処理203と、診断の実施が許可された場合に
演算処理206に必要なデータを診断用入力データ領域
111に格納されている診断用入力データに書き換える
診断用データ書込処理205と、診断用入力データによ
り実行した演算処理206の出力変数が診断用期待出力
データ領域112に格納されている診断用期待出力デー
タと一致するか判定する診断出力比較処理208を有す
る。FIG. 2 shows that the main processor 1 has a ROM 11
4 is a flowchart showing a process for an original ABS and a process of a diagnosis method performed by executing a program stored in the system. The processing for ABS includes a signal input processing 202 for taking in signals input from the wheel speed signal input circuit 3 and the potentiometer signal input circuit 4, and a predetermined operation using input variables, operation work variables, output variables, and the like. Operation processing 206 for executing and generating output variables of various operation results
And an output process 209 for outputting a control signal to the actuator output circuit 5 with reference to the operation result. The processing of the diagnosis method includes a diagnosis execution determination process 203 for determining the execution conditions of the diagnosis, and data necessary for the arithmetic processing 206 when the execution of the diagnosis is permitted is stored in the diagnosis input data area 111. A diagnostic data writing process 205 for rewriting to input data, and a determination as to whether an output variable of an arithmetic process 206 executed based on the diagnostic input data matches the expected diagnostic output data stored in the expected diagnostic output data area 112. A diagnostic output comparison process 208 is provided.
【0028】図3は、サブプロセッサ1がROM21に
格納されたプログラムを実行することにより行われる診
断方式の処理を示すフローチャートである。診断方式の
処理は、メインプロセッサ1から診断実施による出力変
数を受信したときに起動され(ステップ302でYE
S)、受信した出力変数と診断用出力値期待データ領域
212に格納されている診断用期待出力データが一致す
るか判定する診断出力比較処理303と、異常を検出し
ていない場合にはアクチュエータ出力回路5に出力許可
信号を出力する出力許可処理により構成される。FIG. 3 is a flow chart showing the processing of the diagnostic system performed by the sub-processor 1 executing the program stored in the ROM 21. The processing of the diagnostic method is started when an output variable for performing the diagnosis is received from the main processor 1 (YE in step 302).
S), a diagnostic output comparison process 303 for determining whether the received output variable matches the expected diagnostic output data stored in the expected diagnostic output value data area 212, and an actuator output if no abnormality is detected. The circuit 5 includes an output permission process for outputting an output permission signal to the circuit 5.
【0029】ここでいう、出力変数とはプログラムの実
行により生成される変数であり、期待出力データとの一
致判定に用いる変数は出力変数の全て又は一部とする。Here, the output variables are variables generated by executing the program, and the variables used for determining the coincidence with the expected output data are all or a part of the output variables.
【0030】一致判定としては、ABSにおいては、A
BSによる制御を実施するか否かの判定結果、アクチュ
エータの制御量、スリップ率等の出力変数による判定が
考えられる。As for the match determination, in ABS, A
As a result of determining whether or not to perform control by the BS, determination based on output variables such as a control amount of the actuator and a slip ratio can be considered.
【0031】次に、本実施形態の動作につき説明する。Next, the operation of this embodiment will be described.
【0032】まず、メインプロセッサ1の動作について
図2のフローチャートを参照して説明する。電源投入に
よりプログラムの実行が開始されると、まずシステムイ
ニシャライズを実行して、プロセッサ動作の設定や変数
の初期設定等が行われる(ステップ201)。First, the operation of the main processor 1 will be described with reference to the flowchart of FIG. When execution of a program is started by turning on the power, first, system initialization is performed to set processor operation, initialize variables, and the like (step 201).
【0033】続いて動作はABS制御及び診断のプログ
ラム本体の実行による動作に移行し、まず最初に信号入
力処理が行われて、車輪速信号入力回路3及びポテンシ
ョ信号入力回路4から入力信号を取り込む(ステップ2
02)。Subsequently, the operation shifts to an operation by executing the main body of the ABS control and diagnosis program. First, signal input processing is performed, and input signals are taken in from the wheel speed signal input circuit 3 and the potentiometer signal input circuit 4. (Step 2
02).
【0034】次に、診断実施判定が行われ、診断の実行
がパワーオン直後や車両停止時等のシステムに影響を与
えないか否かが判定され、それに応じ診断の実行を許可
するかどうかを決定する(ステップ203)。Next, a diagnosis execution determination is made, and it is determined whether or not the execution of the diagnosis does not affect the system immediately after the power is turned on or when the vehicle is stopped. A decision is made (step 203).
【0035】次に診断の実行が許可されているかの判定
を行い(ステップ204)、許可されていれば診断用書
込処理205に移行し、許可されていなければ演算処理
206に移行する。Next, it is determined whether the execution of the diagnosis is permitted (step 204). If the execution is permitted, the process proceeds to a diagnostic writing process 205, and if not, the process proceeds to an arithmetic process 206.
【0036】診断が許可されていないときは通常のAB
S制御のフローになるのでここでは診断が許可された場
合について説明する。診断が許可された場合には、診断
用データ書込処理(ステップ205)が行われ、まず変
数退避処理が行われ、診断の実行に伴い書き換えられて
は都合の悪いデータが退避される(ステップ205
1)。次に、診断用入力データ選択処理が行われ、診断
用入力データ領域111から所定の診断用入力データが
選択される(ステップ2052)。次に診断用入力デー
タ書込処理が行われ、診断による演算処理の実行に必要
な変数のRAM12又はレジスタ13に対し選択された
診断用入力データが書き込まれる(ステップ205
3)。When the diagnosis is not permitted, the normal AB
Since the flow of the S control is performed, the case where the diagnosis is permitted will be described here. If the diagnosis is permitted, a diagnostic data writing process (step 205) is performed, and a variable saving process is first performed, and data that is inconvenient if rewritten along with the execution of the diagnosis is saved (step 205). 205
1). Next, a diagnostic input data selection process is performed, and predetermined diagnostic input data is selected from the diagnostic input data area 111 (step 2052). Next, diagnostic input data writing processing is performed, and the selected diagnostic input data is written to the RAM 12 or the register 13 of the variables necessary for executing the arithmetic processing by the diagnosis (step 205).
3).
【0037】このようにして、診断用データ書込処理
(ステップ205)が完了すると、続いて通常制御時と
同様にして、演算処理が実行され、スリップ率演算、A
BS制御判定、アクチュエータ制御量演算などが実行さ
れ、その実行結果として出力変数がRAM12又はレジ
スタ13に生成される(ステップ206)。When the diagnostic data writing process (step 205) is completed in this way, the calculation process is subsequently performed in the same manner as in the normal control, and the slip ratio calculation and A
BS control determination, actuator control amount calculation, and the like are executed, and output variables are generated in the RAM 12 or the register 13 as the execution results (step 206).
【0038】続いて診断中判定処理が実行されるが(ス
テップ207)、ここでは診断中であるので続いて診断
出力比較処理が実行される(ステップ208)。この診
断出力比較処理では、まずサブプロセッサに診断用入力
データとしてどのデータを選択したかの選択情報と生成
された出力変数とを送信する出力データ送信処理が行わ
れる(ステップ2081)。次に選択した診断用入力デ
ータに対応した期待出力データを選択する期待出力デー
タ選択処理が行われる(ステップ2082)。次に演算
処理(ステップ206)で得られた出力変数と期待出力
データの一致判定が行われ(ステップ2083)、不一
致の場合はプロセッサ異常時処理が行われる(ステップ
2086)。ここでいうプロセッサ異常時の処理とはア
クチュエータの動作を停止させたり、プロセッサ1、2
にリセットをかけるなどの処理があげられる。Subsequently, the diagnosis-in-progress determination processing is executed (step 207). Since the diagnosis is being performed here, the diagnosis output comparison processing is subsequently executed (step 208). In the diagnostic output comparison processing, first, output data transmission processing for transmitting selection information as to which data is selected as diagnostic input data and the generated output variables to the sub-processor is performed (step 2081). Next, expected output data selection processing for selecting expected output data corresponding to the selected diagnostic input data is performed (step 2082). Next, it is determined whether the output variable obtained in the arithmetic processing (step 206) matches the expected output data (step 2083), and if they do not match, a processor abnormality processing is performed (step 2086). Here, the processing when the processor is abnormal means that the operation of the actuator is stopped,
Processing such as resetting the data.
【0039】また一致の場合は正常と判断され、続いて
変数の初期設定処理が行われ、診断の実行により書き換
えられた変数のうち次のループ以降に持ち込まれると都
合の悪い変数の初期化を行う(ステップ2084)。続
いて、診断の開始時に退避していたデータを元に戻す退
避変数の復帰処理(ステップ2085)が行われる。In the case of a match, it is determined that the variable is normal. Subsequently, a variable initialization process is performed, and among variables rewritten by the execution of the diagnosis, a variable that is inconvenient if brought in after the next loop is initialized. Perform (step 2084). Subsequently, a process of restoring a save variable for restoring the data saved at the start of the diagnosis (step 2085) is performed.
【0040】次に出力処理(ステップ209)が行われ
るが、出力処理に参照される変数は、診断の実施結果に
関わらず診断開始時に退避していたデータもしくは初期
値に戻されているので診断の実行結果の出力が行われる
ことはない。Next, the output processing (step 209) is performed. Since the variables referred to in the output processing are returned to the data saved at the start of the diagnosis or the initial values regardless of the result of the diagnosis, the diagnosis is performed. Is not output.
【0041】次に、サブプロセッサ2の動作について、
図3のフローチャートを参照して説明する。Next, the operation of the sub processor 2 will be described.
This will be described with reference to the flowchart of FIG.
【0042】電源投入によりプログラムの実行が開始さ
れると、まずシステムイニシャライズを実行して、プロ
セッサ動作の設定や変数の初期設定等が行われる(ステ
ップ301)。When execution of a program is started by turning on the power, system initialization is first performed to set processor operation, initialize variables, and the like (step 301).
【0043】続いて動作は診断プログラム本体の実行に
よる動作に移行し、メインプロセッサ1から診断実行に
よる出力変数を受信したどうかの判定が行われる(ステ
ップ302)。なお、図3に示す動作とは並列に通信系
のプログラムが実行され、受信を通知するフラグの設定
や、受信した選択情報及び出力変数のRAM22又はレ
ジスタ23への書き込みは通信系のプログラムの実行に
より行われる。Subsequently, the operation shifts to an operation based on the execution of the diagnostic program body, and it is determined whether or not an output variable based on the diagnostic execution has been received from the main processor 1 (step 302). The communication system program is executed in parallel with the operation shown in FIG. 3, and setting of a flag for notifying reception and writing of the received selection information and output variables to the RAM 22 or the register 23 are executed by the execution of the communication system program. It is performed by
【0044】診断が行われていない時には出力変数を受
信していないので、続いて出力許可処理へと移行しアク
チュエータ出力回路へアクティブ値の出力許可信号を出
力する(ステップ304)。出力許可信号は、アクチュ
エータ出力回路5において使用され、出力許可信号がイ
ンアクティブ値をとるときには、メインプロセッサ1か
らアクチュエータ出力回路5が入力した信号がアクチュ
エータを駆動する値をとるときであっても、アクチュエ
ータ出力回路5の出力の値はアクチュエータを停止させ
る値となる。ステップ302〜304のループの中に出
力許可処理304を入れるのは、アクティブ値をとって
いた出力許可信号の値がノイズなどにより偶発的にイン
アクティブ値となってしまうことに対処するためであ
る。When the diagnosis is not being performed, since the output variable has not been received, the process proceeds to an output permission process, and outputs an active value output permission signal to the actuator output circuit (step 304). The output permission signal is used in the actuator output circuit 5, and when the output permission signal takes an inactive value, even when the signal input to the actuator output circuit 5 from the main processor 1 takes a value for driving the actuator, The output value of the actuator output circuit 5 is a value for stopping the actuator. The output permission processing 304 is included in the loop of steps 302 to 304 in order to cope with a situation in which the value of the output permission signal, which has been an active value, accidentally becomes an inactive value due to noise or the like. .
【0045】診断が実施され出力変数を受信した場合に
は診断出力比較処理(ステップ303)が実行される。
診断出力比較処理ではまず、期待出力データ選択処理に
より、出力変数と共に受信した選択情報に基づき、診断
実行の際に選択された診断用入力データに対応した期待
出力データが選択される(ステップ3031)。続い
て、受信した出力変数と期待出力データの一致判定が行
われ(ステップ3032)、不一致の場合はプロセッサ
異常時処理が行われる(ステップ3033)。ここでい
うプロセッサ異常時処理とはアクチュエータの動作を停
止させたり、プロセッサ1、2をリセットするなどの処
理があげられる。また一致の場合には正常と判断され出
力許可処理へと移行しアクチュエータ出力回路へ出力許
可信号を出力する。When the diagnosis is executed and the output variable is received, a diagnosis output comparison process (step 303) is executed.
In the diagnosis output comparison process, first, the expected output data selection process selects the expected output data corresponding to the diagnosis input data selected at the time of executing the diagnosis, based on the selection information received together with the output variables (step 3031). . Subsequently, it is determined whether or not the received output variable matches the expected output data (step 3032), and if they do not match, a processor abnormality process is performed (step 3033). Here, the processing at the time of the processor abnormality includes processing such as stopping the operation of the actuator and resetting the processors 1 and 2. If they match, it is determined to be normal, and the process proceeds to the output permission process, and outputs an output permission signal to the actuator output circuit.
【0046】[実施形態2]本発明の実施形態2の基本
的構成は実施形態1のものと同様であるが、診断用入力
データ領域111が除かれ、その代わりにROM21に
診断用入力データ領域211が設けられた点が実施形態
1のものと異なる。[Second Embodiment] The basic configuration of a second embodiment of the present invention is the same as that of the first embodiment, except that the diagnostic input data area 111 is removed and the diagnostic input data area is stored in the ROM 21 instead. The point provided with 211 is different from that of the first embodiment.
【0047】また、この構成を利用したABS制御及び
診断方式の動作は、メインプロセッサ1Bについては図
5、サブプロセッサ2Bについては図6(サブプロセッ
サ2)に示すようになる。実施形態1と同一の処理には
同一の符号を付して重複する説明を省略し、実施形態1
と異なる処理についてのみ以下に説明する。The operation of the ABS control and diagnostic system using this configuration is as shown in FIG. 5 for the main processor 1B and FIG. 6 (sub-processor 2) for the sub-processor 2B. The same processes as those in the first embodiment are denoted by the same reference numerals, and duplicate description will be omitted.
Only the processing different from the above will be described below.
【0048】診断が許可された場合(ステップ204で
YES)、診断用入力データ要求処理が行われ、サブプ
ロセッサ2へデータ要求が送信される(ステップ50
5)。一方サブプロセッサ2ではデータ要求を受信する
と(ステップ602でYES)、診断用入力データ送信
処理が起動されROM21内の診断用入力データ領域2
11から所定のデータを選択しメインプロセッサ1へ送
信する(ステップ603)。メインプロセッサ1では診
断用入力データを受信後、診断用データ書込処理が起動
される(ステップ506)。If the diagnosis is permitted (YES in step 204), a processing for requesting input data for diagnosis is performed, and a data request is transmitted to the sub-processor 2 (step 50).
5). On the other hand, when the sub processor 2 receives the data request (YES in step 602), the diagnostic input data transmission process is started, and the diagnostic input data area 2 in the ROM 21 is activated.
11, predetermined data is selected and transmitted to the main processor 1 (step 603). After receiving the diagnostic input data, the main processor 1 starts a diagnostic data writing process (step 506).
【0049】このように、実施形態2では、メインプロ
セッサ1BのROM11の容量のうち診断用入力データ
領域に割り当てる部分を軽減できるという効果が得られ
る。メインプロセッサ内では、制御プログラムや制御に
必要なデータ等がROM11に格納されるため、場合に
よっては診断用入力データを格納不能なことが考えられ
る。一方、サブプロセッサ内では、診断用のプログラム
及びそのデータのみがROM21に格納されるので、そ
の容量に余裕があることが考えられる。このような場
合、実施形態2を適用することにより診断が実施可能と
なる。As described above, in the second embodiment, an effect is obtained that the portion of the capacity of the ROM 11 of the main processor 1B allocated to the diagnostic input data area can be reduced. In the main processor, a control program, data necessary for control, and the like are stored in the ROM 11, so that it may be impossible to store diagnostic input data in some cases. On the other hand, in the sub-processor, since only the diagnostic program and its data are stored in the ROM 21, it is conceivable that the capacity is sufficient. In such a case, diagnosis can be performed by applying the second embodiment.
【0050】なお、実施形態1、2において、プロセッ
サ異常処理2086、3033、5096、6053と
してインジケータを点灯または点滅させて外部へ警報す
る処理を行っても良い。In the first and second embodiments, the processor abnormality processing 2086, 3033, 5096, and 6053 may be performed by turning on or blinking an indicator to give an alarm to the outside.
【0051】[0051]
【発明の効果】このように、診断実施に使用する入力デ
ータをROMから読み込んでいるため、信号入力回路の
誤差やプロセッサの取り込み誤差の影響を受けることな
く診断による制御プログラムの実行を行うことが可能と
なり、出力変数の判定の際にデータの比較を1ビット単
位で厳密に行うことが可能となる。また、診断によって
得られる出力があらかじめ決まっているでサブプロセッ
サにて入力信号からの演算を実行する必要がなく、RO
M内に出力の比較判定値を持つだけで良くなる。As described above, since the input data used for performing the diagnosis is read from the ROM, the control program can be executed by the diagnosis without being affected by the error of the signal input circuit or the error of the processor. This makes it possible to strictly compare data in bit units when determining output variables. Further, since the output obtained by the diagnosis is predetermined, there is no need to execute the operation from the input signal in the sub-processor.
It is only necessary to have the output comparison determination value in M.
【0052】従って、サブプロセッサにキャプチャ(パ
ルス周期を計測するハードウェア)やA/D変換器等が
ないような安価なプロセッサを採用可能となり、さらに
精度の高いプログラム実行の診断を実施可能となる。Therefore, an inexpensive processor without a capture (hardware for measuring a pulse period), an A / D converter, or the like can be employed in the subprocessor, and a more accurate diagnosis of program execution can be performed. .
【図1】本発明の実施形態1によるマイクロプロセッサ
の演算処理の正常性を二重に診断する方式の構成を示す
ブロック図である。FIG. 1 is a block diagram showing a configuration of a method for diagnosing the normality of arithmetic processing of a microprocessor according to a first embodiment of the present invention twice;
【図2】図1のメインプロセッサ1の行う処理を示すフ
ローチャートである。FIG. 2 is a flowchart illustrating a process performed by a main processor 1 of FIG. 1;
【図3】図1のサブプロセッサ2の行う処理を示すフロ
ーチャートである。FIG. 3 is a flowchart illustrating a process performed by a sub-processor 2 of FIG. 1;
【図4】本発明の実施形態2によるマイクロプロセッサ
の演算処理の正常性を二重に診断する方式の構成を示す
ブロック図である。FIG. 4 is a block diagram showing a configuration of a system for diagnosing the normality of arithmetic processing of a microprocessor in a second embodiment according to the present invention;
【図5】図4のメインプロセッサ1Bの行う処理を示す
フローチャートである。FIG. 5 is a flowchart illustrating a process performed by a main processor 1B of FIG. 4;
【図6】図4のサブプロセッサ2Bの行う処理を示すフ
ローチャートである。FIG. 6 is a flowchart showing a process performed by a sub-processor 2B of FIG. 4;
1 メインプロセッサ 2 サブプロセッサ 3 車輪速信号入力回路 4 ポテンシャル信号入力回路 5 アクチュエータ出力回路 6 通信線 11 ROM 12 RAM 13 レジスタ 21 ROM 22 RAM 23 レジスタ 111 診断用入力データ領域 112 診断用期待出力データ領域 211 診断用入力データ領域 212 診断用期待出力データ領域 REFERENCE SIGNS LIST 1 main processor 2 sub-processor 3 wheel speed signal input circuit 4 potential signal input circuit 5 actuator output circuit 6 communication line 11 ROM 12 RAM 13 register 21 ROM 22 RAM 23 register 111 diagnostic input data area 112 diagnostic expected output data area 211 Input data area for diagnosis 212 Expected output data area for diagnosis
Claims (12)
を二重に診断する方式において、 前記マイクロプロセッサである第1のマイクロプロセッ
サと第2のマイクロプロセッサを備え、 前記第1のマイクロプロセッサが、前記演算処理の診断
用入力データと該診断用入力データが正しく前記演算処
理により処理されたならば得られるであろう期待出力デ
ータを保持する第1の記憶手段と、 前記第1の記憶手段に記憶されている前記診断用入力デ
ータを前記演算処理に与える手段と、 前記演算処理を実行させる手段と、 前記演算処理の実行の結果得られる実出力データを前記
第1の記憶手段に記憶されている前記期待出力データと
比較する第1の比較手段と、 前記実出力データを前記第2のマイクロプロセッサに出
力する手段と、 を備え、 前記第2のマイクロプロセッサが、前記期待出力データ
を保持する第2の記憶手段と、 前記第1のマイクロプロセッサから前記実出力データを
入力する手段と、 入力した前記実出力データを前記第2の記憶手段に記憶
されている前記期待出力データと比較する第2の比較手
段と、 を備えることを特徴とするマイクロプロセッサの演算処
理の正常性を二重に診断する方式。1. A method for diagnosing the normality of arithmetic processing of a microprocessor in a double manner, comprising: a first microprocessor and a second microprocessor, which are the microprocessors; First storage means for holding diagnostic input data for arithmetic processing and expected output data that would be obtained if the diagnostic input data were correctly processed by the arithmetic processing; and stored in the first storage means Means for providing the input data for diagnosis to the arithmetic processing, means for executing the arithmetic processing, and actual output data obtained as a result of the execution of the arithmetic processing are stored in the first storage means. First comparing means for comparing with the expected output data, and means for outputting the actual output data to the second microprocessor, A second microprocessor configured to store the expected output data; a second storage unit configured to store the expected output data; a unit configured to input the actual output data from the first microprocessor; And a second comparing means for comparing the expected output data stored in the storage means with the expected output data.
演算処理の正常性を二重に診断する方式において、前記
第1のマイクロプロセッサが、前記第1の比較手段によ
る比較結果が不一致であるときに異常処理を行う手段を
更に備えることを特徴とするマイクロプロセッサの演算
処理の正常性を二重に診断する方式。2. The method according to claim 1, wherein the first microprocessor does not match the result of the comparison by the first comparing means. A method for double-diagnosing the normality of the arithmetic processing of the microprocessor, characterized by further comprising means for performing abnormal processing.
演算処理の正常性を二重に診断する方式において、前記
第2のマイクロプロセッサが、前記第2の比較手段によ
る比較結果が不一致であるときに異常処理を行う手段を
更に備えることを特徴とするマイクロプロセッサの演算
処理の正常性を二重に診断する方式。3. The method according to claim 1, wherein the second microprocessor performs a double diagnosis on the normality of the arithmetic processing of the microprocessor when the comparison result obtained by the second comparison means does not match. A method for double-diagnosing the normality of the arithmetic processing of the microprocessor, characterized by further comprising means for performing abnormal processing.
を二重に診断する方式において、 前記マイクロプロセッサである第1のマイクロプロセッ
サと第2のマイクロプロセッサを備え、 前記第1のマイクロプロセッサが、前記演算処理の診断
用入力データが正しく前記演算処理により処理されたな
らば得られるであろう期待出力データを保持する第1の
記憶手段と、 前記第2のマイクロプロセッサから前記診断用入力デー
タを入力する手段と、 入力した前記診断用入力データを前記演算処理に与える
手段と、 前記演算処理を実行させる手段と、 前記演算処理の実行の結果得られる実出力データを前記
第1の記憶手段に記憶されている前記期待出力データと
比較する第1の比較手段と、 前記実出力データを前記第2のマイクロプロセッサに出
力する手段と、 を備え、 前記第2のマイクロプロセッサが、前記診断用入力デー
タと前記期待出力データを保持する第2の記憶手段と、 前記第1のマイクロプロセッサに前記診断用入力データ
を出力する手段と、 前記第1のマイクロプロセッサから前記実出力データを
入力する手段と、 入力した前記実出力データを前記第2の記憶手段に記憶
されている前記期待出力データと比較する第2の比較手
段と、 を備えることを特徴とするマイクロプロセッサの演算処
理の正常性を二重に診断する方式。4. A system for diagnosing the normality of arithmetic processing of a microprocessor in a double manner, comprising: a first microprocessor and a second microprocessor as the microprocessor, wherein the first microprocessor is First storage means for holding expected output data that would be obtained if the diagnostic input data of the arithmetic processing were correctly processed by the arithmetic processing; and inputting the diagnostic input data from the second microprocessor Means for providing the input data for diagnosis to the arithmetic processing, means for executing the arithmetic processing, and actual output data obtained as a result of execution of the arithmetic processing stored in the first storage means. First comparing means for comparing the output data with the expected output data, and the actual output data to the second microprocessor. And a second storage means for holding the diagnostic input data and the expected output data; and outputting the diagnostic input data to the first microprocessor. Means for inputting the actual output data from the first microprocessor; and a second comparison for comparing the input actual output data with the expected output data stored in the second storage means. Means for diagnosing the normality of the arithmetic processing of the microprocessor in a double manner.
演算処理の正常性を二重に診断する方式において、前記
第1のマイクロプロセッサが、前記第1の比較手段によ
る比較結果が不一致であるときに異常処理を行う手段を
更に備えることを特徴とするマイクロプロセッサの演算
処理の正常性を二重に診断する方式。5. The method according to claim 4, wherein the first microprocessor performs a double diagnosis on the normality of the arithmetic processing of the microprocessor when the comparison result obtained by the first comparison means does not match. A method for double-diagnosing the normality of the arithmetic processing of the microprocessor, characterized by further comprising means for performing abnormal processing.
演算処理の正常性を二重に診断する方式において、前記
第2のマイクロプロセッサが、前記第2の比較手段によ
る比較結果が不一致であるときに異常処理を行う手段を
更に備えることを特徴とするマイクロプロセッサの演算
処理の正常性を二重に診断する方式。6. The method according to claim 4, wherein the second microprocessor performs double diagnosis on the normality of the arithmetic processing of the microprocessor when the comparison result by the second comparison means does not match. A method for double-diagnosing the normality of the arithmetic processing of the microprocessor, characterized by further comprising means for performing abnormal processing.
を二重に診断する方法において、 前記マイクロプロセッサである前記第1のマイクロプロ
セッサが、前記演算処理の診断用入力データと該診断用
入力データが正しく前記演算処理により処理されたなら
ば得られるであろう期待出力データを保持する第1の記
憶ステップと、 第2のマイクロプロセッサが、前記期待出力データを保
持する第2の記憶ステップと、 前記第1のマイクロプロセッサが、前記第1の記憶ステ
ップで記憶された前記診断用入力データを前記演算処理
に与えるステップと、 前記第1のマイクロプロセッサが、前記演算処理を実行
するステップと、 前記第1のマイクロプロセッサが、前記演算処理の実行
の結果得られた実出力データを前記第1の記憶ステップ
で記憶された前記期待出力データと比較する第1の比較
ステップと、 前記第1のマイクロプロセッサが、前記実出力データを
前記第2のマイクロプロセッサに出力するステップと、 前記第2のマイクロプロセッサが、前記第1のマイクロ
プロセッサから前記実出力データを入力するステップ
と、 前記第2のマイクロプロセッサが、入力した前記実出力
データを前記第2の記憶ステップで記憶された前記期待
出力データと比較する第2の比較ステップと、 を有することを特徴とするマイクロプロセッサの演算処
理の正常性を二重に診断する方法。7. A method for diagnosing the normality of arithmetic processing of a microprocessor in a double manner, wherein the first microprocessor, which is the microprocessor, has a function of diagnosing input data of the arithmetic processing and input data for diagnosis. A first storage step of holding expected output data that would be obtained if the processing was correctly performed by the arithmetic processing; a second storage step of holding a second microprocessor by holding the expected output data; A first microprocessor providing the diagnostic input data stored in the first storage step to the arithmetic processing; a step of the first microprocessor executing the arithmetic processing; One microprocessor stores actual output data obtained as a result of execution of the arithmetic processing in the first storage step. A first comparing step of comparing with the expected output data obtained, a step of the first microprocessor outputting the actual output data to the second microprocessor, and a step of the second microprocessor Inputting the actual output data from a first microprocessor, and the second microprocessor comparing the input actual output data with the expected output data stored in the second storage step. A method of double diagnosing the normality of arithmetic processing of a microprocessor, comprising:
演算処理の正常性を二重に診断する方法において、前記
第1の比較ステップでの比較結果が不一致であるとき
に、前記第1のマイクロプロセッサが、異常処理を行う
ステップを更に有することを特徴とするマイクロプロセ
ッサの演算処理の正常性を二重に診断する方法。8. The method according to claim 7, wherein the first comparison step is performed when the comparison result in the first comparison step is inconsistent. A method for double-diagnosing the normality of arithmetic processing of a microprocessor, further comprising a step of performing abnormal processing by the processor.
演算処理の正常性を二重に診断する方法において、前記
第2の比較ステップでの比較結果が不一致であるとき
に、前記第2のマイクロプロセッサが、異常処理を行う
ステップを更に有することを特徴とするマイクロプロセ
ッサの演算処理の正常性を二重に診断する方法。9. The method for diagnosing the normality of the arithmetic processing of a microprocessor according to claim 7, wherein the second microprocessor is configured to execute the second microprocessor when the comparison result in the second comparison step does not match. A method for double-diagnosing the normality of arithmetic processing of a microprocessor, further comprising a step of performing abnormal processing by the processor.
性を二重に診断する方法において、 前記マイクロプロセッサである前記第1のマイクロプロ
セッサが、前記演算処理の診断用入力データが正しく前
記演算処理により処理されたならば得られるであろう期
待出力データを保持する第1の記憶ステップと、 第2のマイクロプロセッサが、前記診断用入力データと
前記期待出力データを保持する第2の記憶ステップと、 前記第2のマイクロプロセッサが、前記第1のマイクロ
プロセッサに前記診断用入力データを出力するステップ
と、 前記第1のマイクロプロセッサが、前記第2のマイクロ
プロセッサから前記診断用入力データを入力するステッ
プと、 前記第1のマイクロプロセッサが、入力した前記診断用
入力データを前記演算処理に与えるステップと、 前記第1のマイクロプロセッサが、前記演算処理を実行
するステップと、 前記第1のマイクロプロセッサが、前記演算処理の実行
の結果得られた実出力データを前記第1の記憶ステップ
で記憶された前記期待出力データと比較する第1の比較
ステップと、 前記第1のマイクロプロセッサが、前記実出力データを
前記第2のマイクロプロセッサに出力するステップと、 前記第2のマイクロプロセッサが、前記第1のマイクロ
プロセッサから前記実出力データを入力するステップ
と、 前記第2のマイクロプロセッサが、入力した前記実出力
データを前記第2の記憶ステップで記憶された前記期待
出力データと比較する第2の比較ステップと、 を有することを特徴とするマイクロプロセッサの演算処
理の正常性を二重に診断する方法。10. A method for diagnosing the normality of arithmetic processing of a microprocessor in a double manner, wherein the first microprocessor, which is the microprocessor, corrects the diagnostic input data of the arithmetic processing by the arithmetic processing. A first storage step of holding expected output data that would be obtained if the second processing was performed; a second storage step of holding a second microprocessor with the diagnostic input data and the expected output data; A second microprocessor outputting the diagnostic input data to the first microprocessor; and the first microprocessor inputting the diagnostic input data from the second microprocessor. The first microprocessor gives the input data for diagnosis inputted to the arithmetic processing. The first microprocessor executes the arithmetic processing, and the first microprocessor stores the actual output data obtained as a result of the execution of the arithmetic processing in the first storing step. A first comparing step of comparing with the stored expected output data; a step of the first microprocessor outputting the actual output data to the second microprocessor; and a step of: A step of inputting the actual output data from the first microprocessor; and a step of comparing the input actual output data with the expected output data stored in the second storage step. 2. A dual diagnosis of the normality of the arithmetic processing of the microprocessor, characterized by comprising: Method.
サの演算処理の正常性を二重に診断する方法において、
前記第1の比較ステップでの比較結果が不一致であると
きに、前記第1のマイクロプロセッサが、異常処理を行
うステップを更に有することを特徴とするマイクロプロ
セッサの演算処理の正常性を二重に診断する方法。11. The method for double-diagnosing the normality of arithmetic processing of a microprocessor according to claim 10,
When the comparison result in the first comparison step does not match, the first microprocessor further includes a step of performing an abnormal process. How to diagnose.
サの演算処理の正常性を二重に診断する方法において、
前記第2の比較ステップでの比較結果が不一致であると
きに、前記第2のマイクロプロセッサが、異常処理を行
うステップを更に有することを特徴とするマイクロプロ
セッサの演算処理の正常性を二重に診断する方法。12. The method according to claim 10, wherein the normality of the arithmetic processing of the microprocessor is double-diagnosed.
When the comparison result in the second comparison step does not match, the second microprocessor further includes a step of performing an abnormal process. How to diagnose.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35479199A JP2001175494A (en) | 1999-12-14 | 1999-12-14 | System and method for doubly diagnosing normality of arithmetic processing of microprocessor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP35479199A JP2001175494A (en) | 1999-12-14 | 1999-12-14 | System and method for doubly diagnosing normality of arithmetic processing of microprocessor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001175494A true JP2001175494A (en) | 2001-06-29 |
Family
ID=18439939
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP35479199A Pending JP2001175494A (en) | 1999-12-14 | 1999-12-14 | System and method for doubly diagnosing normality of arithmetic processing of microprocessor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001175494A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007293524A (en) * | 2006-04-24 | 2007-11-08 | Toyota Motor Corp | Electronic control device and arithmetic function inspection method |
| JP2009265711A (en) * | 2008-04-22 | 2009-11-12 | Hitachi High-Technologies Corp | Control system |
| JP2011134025A (en) * | 2009-12-23 | 2011-07-07 | Autonetworks Technologies Ltd | Processor and control method |
| WO2011114493A1 (en) * | 2010-03-18 | 2011-09-22 | トヨタ自動車株式会社 | Microcomputer cross-monitoring system and microcomputer cross-monitoring method |
| CN104049530A (en) * | 2013-03-14 | 2014-09-17 | 通用汽车环球科技运作有限责任公司 | Fault tolerant control system |
| JP2016134049A (en) * | 2015-01-21 | 2016-07-25 | 日立オートモティブシステムズ株式会社 | Vehicle control device |
-
1999
- 1999-12-14 JP JP35479199A patent/JP2001175494A/en active Pending
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007293524A (en) * | 2006-04-24 | 2007-11-08 | Toyota Motor Corp | Electronic control device and arithmetic function inspection method |
| JP2009265711A (en) * | 2008-04-22 | 2009-11-12 | Hitachi High-Technologies Corp | Control system |
| JP2011134025A (en) * | 2009-12-23 | 2011-07-07 | Autonetworks Technologies Ltd | Processor and control method |
| WO2011114493A1 (en) * | 2010-03-18 | 2011-09-22 | トヨタ自動車株式会社 | Microcomputer cross-monitoring system and microcomputer cross-monitoring method |
| JP5163807B2 (en) * | 2010-03-18 | 2013-03-13 | トヨタ自動車株式会社 | Microcomputer mutual monitoring system and microcomputer mutual monitoring method |
| US8495433B2 (en) | 2010-03-18 | 2013-07-23 | Toyota Jidosha Kabushiki Kaisha | Microcomputer mutual monitoring system and a microcomputer mutual monitoring method |
| CN104049530A (en) * | 2013-03-14 | 2014-09-17 | 通用汽车环球科技运作有限责任公司 | Fault tolerant control system |
| JP2016134049A (en) * | 2015-01-21 | 2016-07-25 | 日立オートモティブシステムズ株式会社 | Vehicle control device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3138709B2 (en) | Self-diagnosis method and device for electronic control unit for vehicle | |
| JP2001056701A (en) | Method and apparatus for mutual monitoring of control units | |
| US11210161B2 (en) | Processing system, related integrated circuit, device and method | |
| US8682501B2 (en) | Data processing device, microcontroller, and self-diagnosis method of data processing device | |
| JP2001175494A (en) | System and method for doubly diagnosing normality of arithmetic processing of microprocessor | |
| CN102369694B (en) | Configurable status processing unit for sensor-actuator systems | |
| JP4007038B2 (en) | Electronic control device for vehicle | |
| JP2000146765A (en) | Vehicle electronic control unit | |
| JP4422076B2 (en) | Data processing device, electronic control unit, and automobile | |
| JP4449225B2 (en) | Program, electronic control device | |
| JP3994760B2 (en) | Vehicle fault diagnosis mechanism | |
| JP3203884B2 (en) | Vehicle diagnostic system | |
| JPS62245341A (en) | Engine control device | |
| US20090177890A1 (en) | Method and Device for Forming a Signature | |
| JPH08328885A (en) | Microcomputer failure detection method | |
| JP7711582B2 (en) | Electronic Control Unit | |
| JPH10269148A (en) | Circuit component diagnostic device | |
| JP2002123408A (en) | Procedure step processing method and apparatus | |
| JPH1083355A (en) | Memory check mechanism of vehicle control device | |
| JP2003150408A (en) | Monitoring method for microcomputer for on-vehicle controller and circuit thereof | |
| JP3028836B2 (en) | Arithmetic processing system | |
| JPS6034132B2 (en) | programmable controller | |
| JP3031050B2 (en) | Fault diagnosis device | |
| JPH10312310A (en) | Self-diagnostic method for central processing unit and central processing unit equipped with self-diagnostic function | |
| JP3785284B2 (en) | RAM diagnostic device |