JP3147054B2 - Microprocessor diagnostic device - Google Patents

Microprocessor diagnostic device

Info

Publication number
JP3147054B2
JP3147054B2 JP30033997A JP30033997A JP3147054B2 JP 3147054 B2 JP3147054 B2 JP 3147054B2 JP 30033997 A JP30033997 A JP 30033997A JP 30033997 A JP30033997 A JP 30033997A JP 3147054 B2 JP3147054 B2 JP 3147054B2
Authority
JP
Japan
Prior art keywords
microprocessor
diagnostic
diagnosis
result
safe
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.)
Expired - Fee Related
Application number
JP30033997A
Other languages
Japanese (ja)
Other versions
JPH11134212A (en
Inventor
直樹 吉田
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 JP30033997A priority Critical patent/JP3147054B2/en
Publication of JPH11134212A publication Critical patent/JPH11134212A/en
Application granted granted Critical
Publication of JP3147054B2 publication Critical patent/JP3147054B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロプロセッ
サの計時機能と演算機能と入出力機能を簡単な診断手段
により一括して診断できるようにしたマイクロプロセッ
サ診断装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor diagnostic device which can collectively diagnose a clock function, an arithmetic function, and an input / output function of a microprocessor by simple diagnostic means.

【0002】[0002]

【従来の技術】一般に、エアバッグ装置やアンチロック
ブレーキ装置などの車載制御機器は、マイクロプロセッ
サによる演算制御に基づいてシステムを制御しており、
このシステム制御動作の信頼性を確保する上で、マイク
ロプロセッサの動作異常の有無を検査する診断作業は非
常に重要である。図3に示す従来のマイクロプロセッサ
診断装置1は、互いに対等の関係にある一対のマイクロ
プロセッサ2,3を設け、それぞれに同一信号を供給し
て同一演算を行わせ、両マイクロプロセッサ2,3のそ
れぞれの演算結果をアンドゲートからなる比較器4に供
給し、演算結果が一致するものについてだけ比較器4か
ら出力させる構成を採用するとともに、両マイクロプロ
セッサ2,3に内蔵させたウォッチドッグパルス検出器
2a.3aが、互いに相手方から送られてくるウォッチ
ドッグパルスの周期を監視し合い、かつまた両マイクロ
プロセッサ2,3に内蔵させた演算結果比較器2b,3
bが、相互に演算結果の不一致を検出し、マイクロプロ
セッサ2,3の異常の有無を相互診断する構成とされて
いた。
2. Description of the Related Art Generally, in-vehicle control devices such as an airbag device and an antilock brake device control a system based on arithmetic control by a microprocessor.
In order to ensure the reliability of the system control operation, it is very important to carry out a diagnostic operation for checking whether or not the microprocessor is operating abnormally. The conventional microprocessor diagnostic apparatus 1 shown in FIG. 3 is provided with a pair of microprocessors 2 and 3 having an equal relation to each other, and supplies the same signal to each of them to perform the same operation. A configuration is adopted in which each operation result is supplied to a comparator 4 composed of an AND gate, and only those whose operation results match each other are output from the comparator 4, and a watchdog pulse detection built in both microprocessors 2 and 3 is adopted. Vessel 2a. 3a mutually monitors the period of the watchdog pulse sent from each other, and also calculates the operation result comparators 2b, 3 built in both microprocessors 2, 3.
b detects mutual inconsistency in the operation results, and mutually diagnoses whether the microprocessors 2 and 3 are abnormal.

【0003】上記マイクロプロセッサ診断装置1は、マ
イクロプロセッサ2,3がともに正常であれば、一対の
マイクロプロセッサ2,3の演算結果が一致するため、
比較器4により一致を確認した後出力され、同時にまた
ウォッチドッグパルス検出器2a,3aによるウォッチ
ドッグパルスの周期監視と演算結果比較器2b,3bに
よる演算結果の相互比較とにより、フェールセーフが確
保されるようになっていた。一方また、マイクロプロセ
ッサ2又は3の少なくとも一方に故障が生じた場合、入
出力機能或いは演算機能に故障が発生した場合は、マイ
クロプロセッサ2,3の演算出力が一致しなくなるた
め、比較器4と演算結果比較器2b,3bの両方で異常
と判断され、演算出力はカットされる。また、タイマ機
能や時間計測機能に故障が発生したときは、ウォッチド
ッグパルス検出器2a,3aにより、ウォッチドッグパ
ルスの周期の乱れが検知され、故障が判定されるように
なっていた。
When the microprocessors 2 and 3 are both normal, the microprocessor diagnostic device 1 calculates the results of the two microprocessors 2 and 3 so that they match.
It is output after confirming the coincidence by the comparator 4, and at the same time, fail-safe is secured by monitoring the period of the watchdog pulse by the watchdog pulse detectors 2a and 3a and comparing the operation results by the operation result comparators 2b and 3b. Was to be done. On the other hand, when a failure occurs in at least one of the microprocessors 2 or 3, or when a failure occurs in the input / output function or the arithmetic function, the arithmetic outputs of the microprocessors 2 and 3 do not match. Both of the operation result comparators 2b and 3b are determined to be abnormal, and the operation output is cut off. Also, when a failure occurs in the timer function or the time measurement function, the watchdog pulse detectors 2a and 3a detect the disorder of the period of the watchdog pulse, and determine the failure.

【0004】また、上記のマイクロプロセッサ診断装置
1とは若干構成は異なるが、図4に示したマイクロプロ
セッサ診断装置5のように、制御及びシステムの診断の
ための演算を行う主マイクロプロセッサ6と、制御に関
する簡易演算とシステムの診断を行い、その結果に基づ
いて主マイクロプロセッサ6の異常な出力状態を検出し
フェールセーフ動作を行うフェールセーフ用マイクロプ
ロセッサ7とを設け、両マイクロプロセッサ6,7が出
力するウォッチドッグパルスの周期を相互に監視させ、
主マイクロプロセッサ6の動作異常を検出したフェール
セーフ用マイクロプロセッサ7が出力禁止信号を発し、
主マイクロプロセッサ6の出力を前置増幅するプリドラ
イバ8に作用して出力を禁止する構成も提案されてい
た。
Although the configuration is slightly different from that of the above-described microprocessor diagnostic apparatus 1, a main microprocessor 6 for performing calculations for control and system diagnosis, such as a microprocessor diagnostic apparatus 5 shown in FIG. And a fail-safe microprocessor 7 for performing simple calculations relating to control and diagnosing the system, detecting an abnormal output state of the main microprocessor 6 based on the result, and performing a fail-safe operation. Mutually monitor the period of the watchdog pulse output by
The fail-safe microprocessor 7 that has detected the operation abnormality of the main microprocessor 6 issues an output inhibit signal,
There has also been proposed a configuration in which the output of the main microprocessor 6 is inhibited by acting on the pre-driver 8 for pre-amplifying the output.

【0005】[0005]

【発明が解決しようとする課題】上記従来のマイクロプ
ロセッサ診断装置1,5は、マイクロプロセッサ診断時
にシステムの信頼性を確保するという観点から、対等の
動作を行うマイクロプロセッサ2,3を対にして設けた
り、或いは主マイクロプロセッサ6の外に簡易的な演算
及び診断を行うフェールセーフ用マイクロプロセッサ7
を設けるかして構成されており、いずれの構成も計2個
のマイクロプロセッサ2,3或いは6,7を使用して診
断を行っていた。一般に、フェールセーフ用に用意する
マイクロプロセッサ例えば3や8には、相応の機能と性
能が要求されるため、電子部品の中でも高価な部類に入
る16ビット或いは8ビットのマイクロプロセッサを使
用する必要があり、このため従来のマイクロプロセッサ
診断装置1,5は、製造コストを切り下げることが困難
であるといった課題を抱えていた。
The conventional microprocessor diagnostic devices 1 and 5 are composed of microprocessors 2 and 3 which perform equivalent operations from the viewpoint of ensuring system reliability at the time of microprocessor diagnosis. A fail-safe microprocessor 7 that is provided or that performs simple calculations and diagnoses outside the main microprocessor 6
The diagnosis is performed using a total of two microprocessors 2, 3 or 6, 7. Generally, a microprocessor prepared for fail-safe use, for example, 3 or 8, requires corresponding functions and performance, so that it is necessary to use a 16-bit or 8-bit microprocessor which is an expensive electronic component. Therefore, the conventional microprocessor diagnostic devices 1 and 5 have a problem that it is difficult to reduce the manufacturing cost.

【0006】本発明は、上記従来の課題に鑑みてなされ
たものであり、従来システムと同等もしくはそれ以上の
信頼性をもってマイクロプロセッサを容易かつ安価に診
断できるようにすることを目的とするものである。
The present invention has been made in view of the above-mentioned conventional problems, and has as its object to enable easy and inexpensive diagnosis of a microprocessor with reliability equal to or higher than that of a conventional system. is there.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、制御対象システムを制御するマイクロプ
ロセッサと、該マイクロプロセッサに所定波形の診断信
号を供給してデューティを計測させ、該デューティ計測
結果に基づいて該マイクロプロセッサの計時機能を診断
するとともに、予め用意した演算を前記デューティ計測
結果を用いて前記マイクロプロセッサに実行させ、演算
結果に基づいて前記マイクロプロセッサの演算機能を診
断する診断手段とを具備することを特徴とするものであ
る。
In order to achieve the above object, the present invention provides a microprocessor for controlling a system to be controlled, a diagnostic signal having a predetermined waveform supplied to the microprocessor to measure a duty, A diagnosis for diagnosing the clocking function of the microprocessor based on the measurement result, causing the microprocessor to execute a previously prepared calculation using the duty measurement result, and diagnosing the calculation function of the microprocessor based on the calculation result. Means.

【0008】また、前記診断手段は、前記マイクロプロ
セッサに前記診断信号を供給した時点から一定時間を診
断期間に定め、該一定時間内に正しい演算結果が得られ
ない場合は異常有りとすることを特徴とするものであ
る。
The diagnostic means may determine a predetermined period of time from the time when the diagnostic signal is supplied to the microprocessor as a diagnostic period, and determine that there is an abnormality if a correct calculation result cannot be obtained within the predetermined time. It is a feature.

【0009】さらにまた、前記診断手段は、前記診断に
より前記マイクロプロセッサの異常を発見したときに、
該マイクロプロセッサの制御出力を安全側に強制するフ
ェールセーフ装置を具備することを特徴とするものであ
る。
Further, when the diagnosis means finds an abnormality in the microprocessor by the diagnosis,
A fail-safe device for forcing the control output of the microprocessor to a safe side is provided.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施形態を図1,
2を参照して説明する。図1は、本発明のマイクロプロ
セッサ診断装置の一実施形態を示すブロック構成図、図
2は、図1に示したマイクロプロセッサ診断装置による
マイクロプロセッサの診断動作を説明するためのフロー
チャートである。
BRIEF DESCRIPTION OF THE DRAWINGS FIG.
This will be described with reference to FIG. FIG. 1 is a block diagram showing an embodiment of a microprocessor diagnostic device according to the present invention, and FIG. 2 is a flowchart for explaining a microprocessor diagnostic operation by the microprocessor diagnostic device shown in FIG.

【0011】図1に示すマイクロプロセッサ診断装置1
1は、エアバッグ装置やアンチロックブレーキ装置とい
った車両の安全制御システムの動作に必要な各種演算を
行うマイクロプロセッサ12を診断するものであり、演
算部12aと割り込みタイマ部12bと入出力部12c
を備えたマイクロプロセッサ12を、マイクロプロセッ
サ12の外部に設けた専用の診断手段によって診断する
ものである。本実施形態に示す診断手段は、マイクロプ
ロセッサ12に接続した診断信号出力装置13と演算選
択装置14と演算結果判定装置15の外に、診断信号出
力装置13と演算結果判定装置15の間に接続した時間
計測装置16と、演算結果判定装置15に接続したフェ
ールセーフ処理装置17を設けて構成してある。
The microprocessor diagnostic apparatus 1 shown in FIG.
Reference numeral 1 designates a diagnosis unit for diagnosing a microprocessor 12 which performs various calculations necessary for the operation of a vehicle safety control system such as an airbag device and an antilock brake device. The calculation unit 12a, the interrupt timer unit 12b, and the input / output unit 12c
Is diagnosed by dedicated diagnostic means provided outside the microprocessor 12. The diagnostic means shown in the present embodiment is connected between the diagnostic signal output device 13 and the operation result determination device 15 in addition to the diagnosis signal output device 13, the operation selection device 14 and the operation result determination device 15 connected to the microprocessor 12. And a fail-safe processing device 17 connected to the calculation result determination device 15.

【0012】診断信号出力装置13は、マイクロプロセ
ッサ12に診断用に特定のデューティをもった診断信号
を出力するものであり、マイクロプロセッサ12の割り
込みタイマ部12bを介して演算部12aに診断信号を
出力し、同時にまた時間計測装置16と演算結果判定装
置15をそれぞれトリガする働きをする。演算選択装置
14は、予め決められた数種の演算を用意しており、こ
れらの演算の中からマイクロプロセッサ12に実行させ
る演算を選択し、入出力部12cを介してマイクロプロ
セッサ12内の演算部12aに入力する働きをする。マ
イクロプロセッサ12は、割り込みタイマ部12bを介
して供給される診断信号のデューティを計測するととも
に、デューティの計測結果を用いて演算選択装置14か
ら供給される演算を実行し、演算結果を入出力部12c
を介して演算結果判定装置15に出力する。具体的に
は、デューティの計測結果dを例えば演算式f(D)=
D×(1−D)の変数パラメータDに代入して演算を行
うなどの方法が採られる。
The diagnostic signal output device 13 outputs a diagnostic signal having a specific duty for diagnosis to the microprocessor 12, and outputs the diagnostic signal to the arithmetic unit 12 a via the interrupt timer unit 12 b of the microprocessor 12. Output, and at the same time, triggers the time measurement device 16 and the calculation result determination device 15, respectively. The operation selecting device 14 prepares several kinds of predetermined operations, selects an operation to be executed by the microprocessor 12 from among these operations, and selects an operation in the microprocessor 12 through the input / output unit 12c. It serves to input to the section 12a. The microprocessor 12 measures the duty of the diagnostic signal supplied via the interrupt timer unit 12b, executes the calculation supplied from the calculation selecting device 14 using the measurement result of the duty, and outputs the calculation result to the input / output unit. 12c
And outputs it to the calculation result determination device 15 via. More specifically, the duty measurement result d is calculated using, for example, an arithmetic expression f (D) =
A method of performing an operation by substituting into a variable parameter D of D × (1-D) is adopted.

【0013】演算結果判定装置15は、マイクロプロセ
ッサ12の演算結果を、診断波形出力装置13と演算選
択装置14の出力に基づいて判定するものであり、マイ
クロプロセッサ12の演算機能はここで良否判定され
る。時間計測装置16は、診断信号出力装置13がマイ
クロプロセッサ12に対して診断信号を出力した時点で
計時動作を開始し、一定時間Tが経過した時点で演算結
果判定装置15に対しタイムリミット信号を供給する。
フェールセーフ処理装置17は、時間計測装置16から
タイムリミット信号が供給されるまでに演算結果判定装
置15が正常判定を下さなかったときに、演算結果判定
装置15から異常判定信号を供給され、システム出力を
安全側に駆動してフェールセーフを実現する。
The operation result judging device 15 judges the operation result of the microprocessor 12 on the basis of the outputs of the diagnostic waveform output device 13 and the operation selecting device 14, and the operation function of the microprocessor 12 is determined here. Is done. The time measuring device 16 starts the timing operation when the diagnostic signal output device 13 outputs the diagnostic signal to the microprocessor 12, and sends a time limit signal to the calculation result determining device 15 when a certain time T has elapsed. Supply.
The fail-safe processing device 17 is supplied with an abnormality determination signal from the calculation result determination device 15 when the calculation result determination device 15 does not make a normal determination before the time limit signal is supplied from the time measurement device 16. Drive the output to the safe side to achieve fail-safe.

【0014】ここで、上記診断手段による診断は、マイ
クロプロセッサ12の計時機能と演算機能と入出力機能
に関して行われ、具体的には図2に示すフローチャート
に従って行われる。計時機能については、診断信号出力
装置13から出力される診断信号についてマイクロプロ
セッサ12にデューティを計測させ、この計測値からマ
イクロプロセッサ12のタイマ機能及び割り込み処理機
能が診断される。また、演算機能については、計測した
デューティをもとに予め決められた数種の演算の中から
演算選択装置14が指定する演算をマイクロプロセッサ
12が実行し、演算結果を監視することによって診断さ
れる。さらに、入出力機能については、診断信号出力装
置13が診断信号を出力した時点から、マイクロプロセ
ッサ12から演算結果判定装置15に正しい演算結果が
出力されるまでの所要時間に基づいて診断される。
Here, the diagnosis by the diagnosis means is performed with respect to the clock function, the arithmetic function, and the input / output function of the microprocessor 12, and specifically, according to the flowchart shown in FIG. As for the timekeeping function, the microprocessor 12 measures the duty of the diagnostic signal output from the diagnostic signal output device 13, and the timer function and the interrupt processing function of the microprocessor 12 are diagnosed from the measured value. The arithmetic function is diagnosed by the microprocessor 12 executing an operation specified by the operation selecting device 14 from among several types of predetermined operations based on the measured duty, and monitoring the operation result. You. Further, the input / output function is diagnosed based on the time required from when the diagnostic signal output device 13 outputs the diagnostic signal to when the correct arithmetic result is output from the microprocessor 12 to the arithmetic result determination device 15.

【0015】以下、マイクロプロセッサ12の診断動作
を図2を併せ参照して説明する。なお、診断信号出力装
置13が出力する診断信号の波形デューティdは、例え
ば40%か50%のように、最低2種類あれば十分であ
り、また演算選択装置14が選択する演算f(D)の種
類も、正常値が1種類に固定されるような2種類があれ
ば十分である。波形デューティdも演算f(D)も複数
種類用意したのは、偶然の一致による誤診断を排除する
ためであり、選択する波形デューティdと演算f(D)
を随時変更することで、診断精度を高めることができ
る。
Hereinafter, the diagnostic operation of the microprocessor 12 will be described with reference to FIG. The waveform duty d of the diagnostic signal output by the diagnostic signal output device 13 needs to be at least two types, for example, 40% or 50%, and the operation f (D) selected by the operation selecting device 14 is sufficient. It is sufficient if there are two types of the normal values are fixed to one type. The purpose of preparing a plurality of types of waveform duty d and calculation f (D) is to eliminate erroneous diagnosis due to accidental coincidence.
By changing at any time, the diagnostic accuracy can be increased.

【0016】システム稼働中にマイクロプロセッサ12
の診断時期が到来すると、まず、図2に示したステップ
(201)において、診断信号出力装置13がマイクロ
プロセッサ12の診断に用いる診断信号の波形デューテ
ィを予め用意された数種のなかから選択する。次に、ス
テップ(202)において、選択された診断信号をマイ
クロプロセッサ12に出力する。また、診断信号を出力
するのと同時に、ステップ(203)において、時間計
測装置16が計時動作を開始する。さらに、続くステッ
プ(204)において、演算選択装置14が複数用意さ
れた演算のなかから特定の演算を選択し、これをマイク
ロプロセッサ12の入出力部12cを介して演算部12
aに供給する。
During operation of the system, the microprocessor 12
When the diagnosis time comes, first, in step (201) shown in FIG. 2, the diagnostic signal output device 13 selects the waveform duty of the diagnostic signal used for the diagnosis of the microprocessor 12 from several types prepared in advance. . Next, in step (202), the selected diagnostic signal is output to the microprocessor 12. At the same time as outputting the diagnostic signal, in step (203), the time measuring device 16 starts the time counting operation. Further, in the following step (204), the operation selecting device 14 selects a specific operation from the plurality of prepared operations, and outputs the selected operation via the input / output unit 12c of the microprocessor 12.
a.

【0017】一方、マイクロプロセッサ12は、前記ス
テップ(202)において発された診断信号を受信した
ときに、割り込み機能とタイマ機能ならびに演算機能を
用い、ステップ(301)において受信信号のデューテ
ィ計測を実行する。さらにまた、前記ステップ(20
4)において選択された演算が供給されると、この演算
をステップ(302)において判別し、続くステップ
(303)において実行する。すなわち、マイクロプロ
セッサ12は、ステップ(301)において計測された
デューティに基づき、ステップ(302)において判別
した演算を実行し、演算実行後にステップ(304)に
示したように、演算結果判定装置15に対し演算結果を
出力する。
On the other hand, when the microprocessor 12 receives the diagnostic signal issued in the step (202), the microprocessor 12 executes the duty measurement of the received signal in the step (301) by using the interrupt function, the timer function and the arithmetic function. I do. Furthermore, the step (20)
When the operation selected in 4) is supplied, this operation is determined in step (302), and is executed in the following step (303). That is, the microprocessor 12 executes the calculation determined in the step (302) based on the duty measured in the step (301), and after the execution of the calculation, the microprocessor 12 sends the calculation result to the calculation result determination device 15 as shown in the step (304). Outputs the operation result.

【0018】マイクロプロセッサ12から演算結果を供
給された演算結果判定装置15は、ステップ(205)
において演算結果を読み込み、続く判断ステップ(20
6)において演算結果を正誤判定する。ここで、演算結
果に誤りがないことが判れば、そのまま診断を終える
が、演算結果に誤りのあることが判った場合は、続く判
断ステップ(207)において、診断時間のタイムリミ
ットが到来したかどうかの判断を行う。すなわち、診断
信号出力装置13がマイクロプロセッサ12に対して診
断信号を出力した時点から予め定めた一定時間Tが経過
するまでは、ステップ(204)を実行した後でステッ
プ(205)〜(207)を繰り返し実行する。従っ
て、一定時間Tが経過する前にマイクロプロセッサ12
から正しい診断結果が得られた場合は、異常なしと判定
し、これ以降もこれまでと同じ診断動作を定期的に実行
する。ただし、診断開始後一定時間Tが経過するまで正
常との判定が得られなかった場合は、判断ステップ(2
07)に続くステップ(208)において、フェールセ
ーフ処理装置17を作動させ、システムを安全側に停止
させる。
The operation result determination device 15 supplied with the operation result from the microprocessor 12 executes the step (205).
The result of the calculation is read in
In 6), the result of the operation is determined to be correct. Here, if it is determined that there is no error in the calculation result, the diagnosis is finished as it is. If it is determined that there is an error in the calculation result, it is determined in the following determination step (207) whether the time limit of the diagnosis time has arrived. Make a decision. In other words, after the diagnostic signal output device 13 outputs the diagnostic signal to the microprocessor 12 until the predetermined time T elapses, after performing the step (204), the steps (205) to (207) are performed. Is repeatedly executed. Therefore, before the predetermined time T elapses, the microprocessor 12
If a correct diagnosis result is obtained from, it is determined that there is no abnormality, and the same diagnostic operation as before is periodically performed thereafter. However, if the determination of normality is not obtained until a certain time T has elapsed after the start of the diagnosis, the determination step (2)
In step (208) following step 07), the fail-safe processing unit 17 is operated to stop the system safely.

【0019】このように、上記マイクロプロセッサ診断
装置11は、制御対象システムを制御するマイクロプロ
セッサ12に所定波形の診断信号を供給してデューティ
を計測させ、このデューティ計測結果に基づいてマイク
ロプロセッサ12の計時機能を診断するとともに、予め
用意した演算をデューティ計測結果を用いてマイクロプ
ロセッサ12に実行させ、演算結果に基づいてマイクロ
プロセッサ12の演算機能を診断する構成としたから、
制御対象システムの動作信頼性に関わるマイクロプロセ
ッサ12の諸機能を、一連の動作にて診断することがで
きる。また、診断対象となるマイクロプロセッサ12と
同程度のビット数のマイクロプロセッサを用意しなくと
も、例えば4ビット程度の低機能かつ低価格のフェール
セーフ用マイクロプロセッサとか、或いはマイクロプロ
セッサ12以外の電子部品で構成した診断手段を用意す
るだけで、システムの信頼性を確保でき、システムの小
型化ならびにコストダウンを図ることができる。
As described above, the microprocessor diagnostic apparatus 11 supplies a diagnostic signal having a predetermined waveform to the microprocessor 12 for controlling the system to be controlled to measure the duty, and based on the duty measurement result, the microprocessor 12 Since the timekeeping function is diagnosed, the microprocessor 12 executes a previously prepared operation using the duty measurement result, and diagnoses the operation function of the microprocessor 12 based on the operation result.
Various functions of the microprocessor 12 relating to the operation reliability of the control target system can be diagnosed by a series of operations. Further, even if a microprocessor having the same number of bits as the microprocessor 12 to be diagnosed is not prepared, for example, a low-function and low-cost fail-safe microprocessor of about 4 bits or an electronic component other than the microprocessor 12 is used. The reliability of the system can be ensured, and the system can be reduced in size and cost can be reduced only by preparing the diagnostic means configured as described above.

【0020】また、診断手段は、マイクロプロセッサ1
2に診断信号を供給した時点から一定時間を診断期間に
定め、この一定時間内に正しい演算結果が得られない場
合は異常有りとする構成としたから、マイクロプロセッ
サ12の計時機能と演算機能を診断する一方で診断時間
に一定の制限を設けることで、仮に正しい演算結果が得
られても、制限時間Tを超過している場合には、マイク
ロプロセッサ12の入出力機能に異常をきたしているも
のと判断することができ、一方また誤った演算結果が得
られた場合でも、一定時間Tが経過していないうちは正
しい演算結果が得られるまで異常判断を猶予すること
で、慎重かつ的確な診断が可能である。
The diagnostic means includes a microprocessor 1
2 is set as a diagnostic period from the time when the diagnostic signal is supplied to the diagnostic signal, and if a correct calculation result cannot be obtained within the predetermined time, it is determined that there is an abnormality. By providing a certain limit on the diagnosis time while diagnosing, even if a correct operation result is obtained, if the time limit T is exceeded, the input / output function of the microprocessor 12 is abnormal. Even if an erroneous operation result is obtained, the abnormality judgment is deferred until a correct operation result is obtained before the fixed time T has elapsed, so that the operation can be carefully and accurately performed. Diagnosis is possible.

【0021】さらにまた、前記診断手段は、診断により
マイクロプロセッサ12の異常を発見したときに、マイ
クロプロセッサ12の制御出力を安全側に強制するフェ
ールセーフ装置17を具備するので、診断の結果として
マイクロプロセッサ12に異常が発見された場合でも、
フェールセーフ装置17が作動してシステムを安全側に
セットしてフェールセーフ処理を施すことができ、マイ
クロプロセッサ12の異常が修復されるまでの安全対策
を徹底することができる。
Further, the diagnostic means includes a fail-safe device 17 for forcing the control output of the microprocessor 12 to a safe side when an abnormality of the microprocessor 12 is found by the diagnosis. Even if an abnormality is found in the processor 12,
The fail-safe device 17 is operated to set the system on the safe side to perform the fail-safe process, thereby ensuring thorough safety measures until the abnormality of the microprocessor 12 is repaired.

【0022】[0022]

【発明の効果】以上説明したように、本発明は、制御対
象システムを制御するマイクロプロセッサに所定波形の
診断信号を供給してデューティを計測させ、このデュー
ティ計測結果に基づいてマイクロプロセッサの計時機能
を診断するとともに、予め用意した演算をデューティ計
測結果を用いてマイクロプロセッサに実行させ、演算結
果に基づいてマイクロプロセッサの演算機能を診断する
構成としたから、制御対象システムの動作信頼性に関わ
るマイクロプロセッサの諸機能を、一連の動作にて診断
することができ、診断対象のマイクロプロセッサと同程
度のビット数のマイクロプロセッサを用意しなくとも、
例えば4ビット程度の低機能かつ低価格のフェールセー
フ用マイクロプロセッサとか、或いはマイクロプロセッ
サ以外の電子部品で構成した診断手段を用意するだけ
で、システムの信頼性を確保でき、システムの小型化な
らびにコストダウンを図ることができる。
As described above, the present invention supplies a diagnostic signal having a predetermined waveform to a microprocessor for controlling a system to be controlled and measures the duty. Based on the result of the duty measurement, the microprocessor has a timer function. In addition to diagnosing the operation of the microprocessor, the microprocessor performs an operation prepared in advance using the duty measurement result and diagnoses the operation function of the microprocessor based on the operation result. Various functions of the processor can be diagnosed by a series of operations, and even if a microprocessor having the same number of bits as the microprocessor to be diagnosed is not prepared,
For example, only by preparing a low-function and low-cost fail-safe microprocessor of about 4 bits or a diagnostic means composed of electronic components other than the microprocessor, the reliability of the system can be ensured, and the size and cost of the system can be reduced. Down can be planned.

【0023】また、診断手段は、マイクロプロセッサに
診断信号を供給した時点から一定時間を診断期間に定
め、この一定時間内に正しい演算結果が得られない場合
は異常有りとする構成としたから、マイクロプロセッサ
の計時機能と演算機能を診断する一方で診断時間に一定
の制限を設けることで、仮に正しい演算結果が得られて
も、制限時間を超過している場合には、マイクロプロセ
ッサの入出力機能に異常をきたしているものと判断する
ことができ、一方また誤った演算結果が得られた場合で
も、一定時間が経過していないうちは正しい演算結果が
得られるまで異常判断を猶予することで、慎重かつ的確
な診断が可能である等の効果を奏する。
Further, the diagnosis means is configured such that a predetermined time is set as a diagnosis period from the time when the diagnosis signal is supplied to the microprocessor, and if a correct operation result cannot be obtained within the predetermined time, it is determined that there is an abnormality. By diagnosing the timekeeping function and the calculation function of the microprocessor while providing a certain limit on the diagnosis time, if the correct calculation result is obtained, but the time limit is exceeded, the microprocessor input / output It is possible to judge that a malfunction has occurred in the function, and even if an incorrect operation result is obtained, defer the abnormality judgment until the correct operation result is obtained within a certain period of time, unless the predetermined time has elapsed Therefore, it is possible to perform a careful and accurate diagnosis.

【0024】さらにまた、前記診断手段は、前記診断に
より前記マイクロプロセッサの異常を発見したときに、
該マイクロプロセッサの制御出力を安全側に強制するフ
ェールセーフ装置を具備するので、診断の結果としてマ
イクロプロセッサに異常が発見された場合でも、フェー
ルセーフ装置が作動してシステムを安全側にセットして
フェールセーフ処理を施すことができ、マイクロプロセ
ッサの異常が修復されるまでの安全対策を徹底すること
ができる等の効果を奏する。
Further, when the diagnosis means finds an abnormality in the microprocessor by the diagnosis,
Since a fail-safe device for forcing the control output of the microprocessor to the safe side is provided, even if an abnormality is found in the microprocessor as a result of the diagnosis, the fail-safe device operates to set the system to the safe side. Fail-safe processing can be performed, and effects such as thorough safety measures until the abnormality of the microprocessor is repaired can be obtained.

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

【図1】本発明のマイクロプロセッサ診断装置の一実施
形態を示すブロック構成図である。
FIG. 1 is a block diagram showing an embodiment of a microprocessor diagnostic device according to the present invention.

【図2】図1に示したマイクロプロセッサ診断装置によ
るマイクロプロセッサの診断動作を説明するためのフロ
ーチャートである。
FIG. 2 is a flowchart for explaining a microprocessor diagnostic operation by the microprocessor diagnostic apparatus shown in FIG. 1;

【図3】従来のマイクロプロセッサ診断装置の一例を示
すブロック構成図である。
FIG. 3 is a block diagram showing an example of a conventional microprocessor diagnostic device.

【図4】従来のマイクロプロセッサ診断装置の他の例を
示すブロック構成図である。
FIG. 4 is a block diagram showing another example of a conventional microprocessor diagnostic device.

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

11 マイクロプロセッサ診断装置 12 マイクロプロセッサ 12a 演算部 12b 割り込みタイマ部 12c 入出力部 13 診断信号出力装置 14 演算選択装置 15 演算結果判定装置 16 時間計測装置 17 フェールセーフ処理装置 DESCRIPTION OF SYMBOLS 11 Microprocessor diagnostic device 12 Microprocessor 12a Operation part 12b Interrupt timer part 12c Input / output part 13 Diagnostic signal output device 14 Operation selection device 15 Operation result judgment device 16 Time measuring device 17 Fail safe processing device

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/22 - 11/277 G06F 15/78 G01R 31/28 G05B 23/00 - 23/02 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/22-11/277 G06F 15/78 G01R 31/28 G05B 23/00-23/02

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 制御対象システムを制御するマイクロプ
ロセッサと、該マイクロプロセッサに所定波形の診断信
号を供給してデューティを計測させ、該デューティ計測
結果に基づいて該マイクロプロセッサの計時機能を診断
するとともに、予め用意した演算を前記デューティ計測
結果を用いて前記マイクロプロセッサに実行させ、演算
結果に基づいて前記マイクロプロセッサの演算機能を診
断する診断手段とを具備することを特徴とするマイクロ
プロセッサ診断装置。
1. A microprocessor for controlling a system to be controlled, a diagnostic signal having a predetermined waveform supplied to the microprocessor, the duty is measured, and a clock function of the microprocessor is diagnosed based on the duty measurement result. Diagnostic means for causing the microprocessor to execute an operation prepared in advance using the duty measurement result, and diagnosing the operation function of the microprocessor based on the operation result.
【請求項2】 前記診断手段は、前記マイクロプロセッ
サに前記診断信号を供給した時点から一定時間を診断期
間に定め、該一定時間内に正しい演算結果が得られない
場合は異常有りとすることを特徴とする請求項1記載の
マイクロプロセッサ診断装置。
2. The diagnostic device according to claim 1, wherein a predetermined period is set as a diagnosis period from a point in time when the diagnosis signal is supplied to the microprocessor, and when a correct operation result cannot be obtained within the predetermined period, it is determined that there is an abnormality. The microprocessor diagnostic device according to claim 1, wherein:
【請求項3】 前記診断手段は、前記診断により前記マ
イクロプロセッサの異常を発見したときに、該マイクロ
プロセッサの制御出力を安全側に強制するフェールセー
フ装置を具備することを特徴とする請求項1記載のマイ
クロプロセッサ診断装置。
3. The fail-safe device according to claim 1, wherein the diagnostic means includes a fail-safe device for forcing a control output of the microprocessor to a safe side when an abnormality of the microprocessor is found by the diagnosis. A microprocessor diagnostic device as described.
JP30033997A 1997-10-31 1997-10-31 Microprocessor diagnostic device Expired - Fee Related JP3147054B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30033997A JP3147054B2 (en) 1997-10-31 1997-10-31 Microprocessor diagnostic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30033997A JP3147054B2 (en) 1997-10-31 1997-10-31 Microprocessor diagnostic device

Publications (2)

Publication Number Publication Date
JPH11134212A JPH11134212A (en) 1999-05-21
JP3147054B2 true JP3147054B2 (en) 2001-03-19

Family

ID=17883591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30033997A Expired - Fee Related JP3147054B2 (en) 1997-10-31 1997-10-31 Microprocessor diagnostic device

Country Status (1)

Country Link
JP (1) JP3147054B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7116304B2 (en) * 2018-06-28 2022-08-10 ミツミ電機株式会社 Electronic control devices, semiconductor integrated circuit devices for electronic control, and gas stoves

Also Published As

Publication number Publication date
JPH11134212A (en) 1999-05-21

Similar Documents

Publication Publication Date Title
US20170254325A1 (en) Drive control apparatus
JPWO2019167171A1 (en) Anomaly detection device and abnormality detection method
JP3147054B2 (en) Microprocessor diagnostic device
US5485379A (en) Method and system for detecting the proper functioning of an ABS control unit utilizing substantially identical programmed microprocessors
US9619619B2 (en) Method for error recognition in a control system of a medical treatment and/or diagnosis device
US11372706B2 (en) Vehicle control device
JP2925437B2 (en) Vehicle control computer system with self-diagnosis function
JPS623464B2 (en)
JPS60162959A (en) Electronic engine controller
JP4065131B2 (en) Control device having interrupt consistency monitoring and interrupt consistency monitoring method
US4710928A (en) Method and apparatus for detecting the uncontrollable operation of a control system
JP6757182B2 (en) Vehicle electronic control unit and timer diagnostic method
CN117034121A (en) Hall sensor fault display method, device, equipment and storage medium
EP2469063A1 (en) Drive unit control device and control method
JP2836084B2 (en) Computer inspection equipment
JPH09160808A (en) Flow monitor device for program
JPH0854922A (en) Process controller
US7516036B2 (en) System testing and methods therefor
CN114488991A (en) Robot safety monitoring system and method for diagnosing abnormity thereof
JP2001034500A (en) Microcomputer failure diagnosing device and method
JPH05241884A (en) Testing device of computer
JP2022181293A (en) Power testing device of vehicle, abnormality detection method of power testing device of vehicle, and program
JPS60144840A (en) Measurement system for program cycle
JPH08305673A (en) Multi-cpu monitor system
JPH0381839A (en) Method for resetting system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001205

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080112

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090112

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140112

Year of fee payment: 13

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees