JP2000010825A - Microcomputer fault monitor system - Google Patents

Microcomputer fault monitor system

Info

Publication number
JP2000010825A
JP2000010825A JP10179317A JP17931798A JP2000010825A JP 2000010825 A JP2000010825 A JP 2000010825A JP 10179317 A JP10179317 A JP 10179317A JP 17931798 A JP17931798 A JP 17931798A JP 2000010825 A JP2000010825 A JP 2000010825A
Authority
JP
Japan
Prior art keywords
signal
microcomputer
output
circuit
pulse
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.)
Withdrawn
Application number
JP10179317A
Other languages
Japanese (ja)
Inventor
Tomohiko Gonda
友彦 権田
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP10179317A priority Critical patent/JP2000010825A/en
Publication of JP2000010825A publication Critical patent/JP2000010825A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To diagnose whether or not a microcomputer fault monitor system, which monitors a program run signal, functions normally without stopping the operation of a microcomputer. SOLUTION: A program run signal (p) outputted from the microcomputer 10 is switched by a gate circuit 21 in cycles T2 and the cycles of a signal outputted from the gate circuit 21 are monitored by counter circuits 28 and 29, latch circuits 30 and 31, an OR circuit 32, and an AND circuit 33. When the signal having the cycles T2 is outputted, namely, when the program run signal pr is outputted, a pulse signal is outputted as a diagnostic signal dd, but when not, an ON signal is outputted. The microcomputer 10 decides that the microcomputer 10 and a fault diagnostic part 16 operate normally when the pulse signal is outputted as the diagnostic signal dd and decides that the fault diagnostic part 16 is abnormal when the OFF signal is outputted continuously for the time longer than a specific time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータ(以下マイコンと記載)から出力されるプログラム
ラン信号を監視し、マイコンの暴走等によりプログラム
ラン信号が所定時間出力されなかった場合には異常検出
信号を出力するマイコン故障監視システムに関し、特に
マイコンからプログラムラン信号が出力されない場合と
マイコン故障監視システム自体に異常が生じた場合で
は、異なる信号を出力するマイコン故障監視システムに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention monitors a program run signal output from a microcomputer (hereinafter, referred to as a microcomputer), and detects an abnormality when the program run signal is not output for a predetermined time due to a runaway of the microcomputer. The present invention relates to a microcomputer failure monitoring system that outputs a signal, and more particularly to a microcomputer failure monitoring system that outputs different signals when a program run signal is not output from a microcomputer and when an abnormality occurs in the microcomputer failure monitoring system itself.

【0002】[0002]

【従来の技術】従来のマイコン故障監視システムとして
は、プログラムラン信号が所定時間以上出力されない場
合には、異常検出信号を出力するウオッチドッグタイマ
を利用したものが知られている。これらのマイコン故障
監視システムでは、マイコンが正常に作動してプログラ
ムラン信号が出力されている場合には、当然異常検出信
号は出力されないが、マイコン故障監視システム自体に
故障が生じたために、マイコンからプログラムラン信号
が出力されていないにも係らず異常検出信号が出力され
ない恐れがある。
2. Description of the Related Art As a conventional microcomputer failure monitoring system, a system using a watchdog timer for outputting an abnormality detection signal when a program run signal is not output for a predetermined time or longer is known. In these microcomputer failure monitoring systems, if the microcomputer operates normally and a program run signal is output, no abnormality detection signal is output, but the microcomputer failure monitoring system itself has failed. The abnormality detection signal may not be output even though the program run signal is not output.

【0003】このため、これらのマイコン故障監視シス
テムでは、マイコンの電源オン時に、プログラムランが
開始されプログラムラン信号が出力された後、一旦プロ
グラムラン信号をマイコン故障監視システムへ出力する
ことを停止し、所定時間内にマイコン故障監視システム
から異常検出信号がマイコンへ入力されたか否かで、マ
イコン故障監視システムの機能が正常か否かの診断を行
っていた。
Therefore, in these microcomputer failure monitoring systems, when the microcomputer is turned on, a program run is started and a program run signal is output, and then the output of the program run signal to the microcomputer failure monitoring system is temporarily stopped. The diagnosis of whether the function of the microcomputer failure monitoring system is normal is made based on whether an abnormality detection signal is input to the microcomputer from the microcomputer failure monitoring system within a predetermined time.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、プログ
ラムラン信号を停止しないとマイコン故障監視システム
の機能が正常か否かの診断が行えないため、マイコン動
作中に診断を行う場合には、マイコンの動作を一時的に
停止しなければならないという問題があった。本発明
は、このような従来の問題点に鑑み、マイコンの動作を
停止せずに、マイコン故障監視システムの機能が正常か
否かの診断を行うことができる信頼性の高いマイコン故
障監視システムを提供することを目的とする。
However, it is not possible to diagnose whether the function of the microcomputer failure monitoring system is normal or not unless the program run signal is stopped. Had to be temporarily stopped. The present invention has been made in view of the above-described conventional problems, and provides a highly reliable microcomputer failure monitoring system capable of diagnosing whether or not the function of the microcomputer failure monitoring system is normal without stopping the operation of the microcomputer. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】このため、本発明は、マ
イコンからのプログラムラン信号を診断手段に入力して
マイコンの作動状態を監視する故障監視システムであっ
て、診断手段は、プログラムラン信号に基づくパルス列
の一部を所定周期のタイミングで通過させてリセット信
号とするゲート手段と、リセット信号でリセットされて
所定時間を設定するタイマ手段と、タイマ手段で設定さ
れた所定時間ごとに発生しその後のリセット信号でリセ
ットされる確認パルスを発生する確認パルス発生手段と
を有して、確認パルスの出力状態によって、マイコンが
正常作動しているか、マイコンが故障しているか、ある
いは診断手段に異常があるかが識別されるものとした。
SUMMARY OF THE INVENTION Therefore, the present invention is a failure monitoring system for monitoring the operating state of a microcomputer by inputting a program run signal from a microcomputer to a diagnostic means, wherein the diagnostic means comprises a program run signal. Gate means for passing a part of a pulse train based on the above at a predetermined cycle timing as a reset signal, timer means for resetting by a reset signal to set a predetermined time, and generating at a predetermined time set by the timer means Check pulse generation means for generating a check pulse that is reset by a subsequent reset signal, depending on the output state of the check pulse, whether the microcomputer is operating normally, the microcomputer is faulty, or the diagnostic means is abnormal. Is identified.

【0006】上記ゲート手段は、プログラムラン信号に
基づくパルス列の一部を所定周期の1/N(Nは2以上
の整数値)ずつずらせたタイミングで通過させてN相の
リセット信号を出力し、タイマ手段は、N相ごとに所定
時間をカウントし、確認パルス発生手段は、N相ごとに
確認パルスを発生するよう構成され、各相の確認パルス
のいずれもがリセットされない状態が継続するときマイ
コンの故障と識別され、各相のいずれの確認パルスも出
力されないとき診断手段の異常と識別されるものとする
こともできる。
The gate means outputs an N-phase reset signal by passing a part of a pulse train based on the program run signal at a timing shifted by 1 / N (N is an integer of 2 or more) of a predetermined period, The timer means counts a predetermined time for each N phase, and the confirmation pulse generation means is configured to generate a confirmation pulse for each N phase. When the state in which none of the confirmation pulses of each phase is reset continues, the microcomputer And when no confirmation pulse is output for each phase, it can be determined that the diagnostic means is abnormal.

【0007】また、上記ゲート手段は所定周期の1/N
(Nは2以上の整数値)ずつずらせたタイミングで立ち
上がるN個のタイミングパルスとプログラムラン信号に
基づくパルス列を入力し、リセット信号として論理積を
出力するN個のAND回路を有し、タイマ手段は、N個
のAND回路から出力される各々のリセット信号でリセ
ットされ、リセット後第2の所定時間が経過した場合に
セット信号を出力するN個のカウンタ回路を有し、確認
パルス発生手段は、N個のカウンタ回路から出力された
各々のセット信号により確認パルスを発生し、その後の
リセット信号により確認パルスをリセットするN個のラ
ッチ回路と、該N個のラッチ回路の出力の論理積を出力
するAND回路と論理和を出力するOR回路を有し、A
ND回路からのオン出力状態が継続するときマイコンの
故障と識別され、OR回路からオフ出力状態が継続する
ときには診断手段の異常と識別されるものとすることも
できる。
The above-mentioned gate means is 1 / N of a predetermined period.
A timer means for inputting a pulse train based on a program run signal and N timing pulses rising at a timing shifted by (N is an integer value of 2 or more) and outputting a logical product as a reset signal; Has N counter circuits that are reset by respective reset signals output from the N AND circuits and that output a set signal when a second predetermined time has elapsed after the reset. , A confirmation pulse is generated by each set signal outputted from the N counter circuits, and the N latch circuits resetting the confirmation pulse by the subsequent reset signal, and the logical product of the outputs of the N latch circuits. An AND circuit for outputting an OR circuit and an OR circuit for outputting a logical sum.
When the ON output state from the ND circuit continues, the microcomputer may be identified as a failure, and when the OFF output state continues from the OR circuit, it may be determined as an abnormality of the diagnostic means.

【0008】[0008]

【作用】本発明では、マイコンもマイコン故障監視シス
テムも正常に動作している場合には、まずゲート手段か
ら所定周期毎にリセット信号が出力され、確認パルス発
生手段では、リセット信号でのリセット後タイマ手段で
設定された所定時間毎に、確認パルスを発生し、この確
認パルスは上記リセット信号によりリセットされる。従
って、確認パルス発生手段の出力としては所定周期毎に
確認パルスが出力される。一方、もしマイコンが故障
し、プログラムラン信号の出力が停止してしまった場合
には、ゲート手段からのリセット信号の出力も停止され
る。このためプログラムラン信号が停止する直前のリセ
ット信号が出力されてから、タイマ手段で設定された所
定時間が経過した後、確認パルス発生手段で確認パルス
が発生され、出力が一旦オン状態となると、次のリセッ
ト信号が入力されないため、オン状態が継続される。ま
た、診断手段に異常が生じている場合には、リセット信
号や確認パルスが出力されない場合が多く、通常は確認
パルス発生手段の出力は、オフ状態となる。
According to the present invention, when both the microcomputer and the microcomputer failure monitoring system are operating normally, a reset signal is output from the gate means at predetermined intervals. A confirmation pulse is generated every predetermined time set by the timer means, and the confirmation pulse is reset by the reset signal. Therefore, a confirmation pulse is outputted as the output of the confirmation pulse generating means at every predetermined period. On the other hand, if the microcomputer breaks down and the output of the program run signal stops, the output of the reset signal from the gate means also stops. For this reason, after a predetermined time set by the timer means has elapsed since the reset signal immediately before the stop of the program run signal is output, a confirmation pulse is generated by the confirmation pulse generation means, and once the output is turned on, Since the next reset signal is not input, the ON state is continued. In addition, when an abnormality occurs in the diagnosis unit, a reset signal or a confirmation pulse is not output in many cases, and the output of the confirmation pulse generation unit is normally in an off state.

【0009】確認パルス発生手段の出力を、例えばマイ
コンへ入力すれば、マイコンでは、所定周期の確認パル
スが出力されている場合には、マイコン側も故障監視シ
ステム側も正常に動作していると判定でき、またオフ信
号が継続して出力された場合には、診断手段に異常が生
じていると判定し、適切な処置を実行できる。上記のよ
うに、診断手段に異常が生じた場合には、確認パルス発
生手段の出力状態の変化から判明するため、わざわざマ
イコンの動作を停止させて、マイコン故障監視システム
が正常に作動しているか否かの診断を行う必要はない。
If the output of the confirmation pulse generation means is input to, for example, a microcomputer, the microcomputer will determine that both the microcomputer and the failure monitoring system are operating normally if the confirmation pulse is output at a predetermined period. If the determination can be made, and if the OFF signal is continuously output, it is determined that an abnormality has occurred in the diagnostic means, and appropriate measures can be taken. As described above, if an abnormality occurs in the diagnosis unit, it is determined from the change in the output state of the confirmation pulse generation unit.Therefore, the operation of the microcomputer is bothersomely stopped and the microcomputer failure monitoring system is operating normally. There is no need to make a diagnosis.

【0010】また、ゲート手段から所定周期の1/N
(Nは2以上の整数)ずつずらせたタイミングでN相の
リセット信号を出力させ、確認パルス発生部からN相ご
とに確認パルスを発生すれば、プログラムラン信号の監
視をより頻繁に行うことができる。
Also, 1 / N of a predetermined period is supplied from the gate means.
(N is an integer of 2 or more). By outputting an N-phase reset signal at a timing shifted by each time and generating a confirmation pulse for each N phase from the confirmation pulse generator, the program run signal can be monitored more frequently. it can.

【0011】さらに、N個のタイミングパルスとプログ
ラムラン信号のパルス列の論理積をリセット信号として
出力するN個のAND回路と、所定時間を設定するN個
のカウンタ回路と、確認パルスを出力するラッチ回路
と、各ラッチ回路の論理積を出力するAND回路と、各
ラッチ回路の論理和を出力するOR回路を設ける。そし
て、例えば、OR回路の出力をマイコンへ入力し、マイ
コンでは診断手段の異常を監視する。AND回路の出力
はフェイルセイフ手段へ入力し、フェイルセイフ手段で
はAND回路からオン出力状態が継続した場合には、被
制御部をマイコンから切り離す等の対応を行う。これに
より、マイコンが暴走したために、プログラムラン信号
の出力が停止した場合などでも、適切な対応を行うこと
ができる。
Further, N AND circuits for outputting a logical product of N timing pulses and a pulse train of a program run signal as a reset signal, N counter circuits for setting a predetermined time, and a latch for outputting a confirmation pulse A circuit, an AND circuit that outputs a logical product of the latch circuits, and an OR circuit that outputs a logical sum of the latch circuits. Then, for example, the output of the OR circuit is input to the microcomputer, and the microcomputer monitors the abnormality of the diagnostic means. The output of the AND circuit is input to the fail-safe means, and the fail-safe means takes measures such as disconnecting the controlled part from the microcomputer when the ON output state continues from the AND circuit. Thus, even when the output of the program run signal is stopped due to the microcomputer running out of control, appropriate measures can be taken.

【0012】[0012]

【発明の実施の形態】本発明の実施の形態を実施例によ
り説明する。まず図1を用いて、本実施例の全体の構成
を説明する。本実施例は、アクチュエータ制御用のマイ
コンに本発明のマイコン故障監視システムを適用したも
のであり、Nとしては2を用いている。マイコン10
は、電源端子1、スイッチ信号入力端子2、センサ信号
入力端子3、ACTR制御信号出力端子4、診断信号入
力端子5、プログラムラン信号出力端子6およびマイコ
ンリセット信号入力端子7を備えている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described with reference to examples. First, the overall configuration of the present embodiment will be described with reference to FIG. In the present embodiment, the microcomputer failure monitoring system of the present invention is applied to a microcomputer for controlling an actuator. Microcomputer 10
Has a power supply terminal 1, a switch signal input terminal 2, a sensor signal input terminal 3, an ACTR control signal output terminal 4, a diagnostic signal input terminal 5, a program run signal output terminal 6, and a microcomputer reset signal input terminal 7.

【0013】電源端子1は、図示しないバッテリから供
給された電圧を基準電圧VCCに変換するレギュレータ
回路14と接続されている。マイコン10は、スイッチ
信号入力端子2へスイッチ11から入力される信号と、
センサ信号入力端子3へセンサ12から入力される信号
に基づいて、アクチュエータ13を制御するACTR制
御信号acを、ACTR制御信号出力端子4から出力す
る。
The power supply terminal 1 is connected to a regulator circuit 14 for converting a voltage supplied from a battery (not shown) to a reference voltage VCC. The microcomputer 10 outputs a signal input from the switch 11 to the switch signal input terminal 2,
An ACTR control signal ac for controlling the actuator 13 is output from an ACTR control signal output terminal 4 based on a signal input from the sensor 12 to the sensor signal input terminal 3.

【0014】ACTR制御信号出力端子4は、抵抗R1
を介して、アクチュエータ13を制御するACTR制御
用のトランジスタTR1のベースと抵抗2に接続されて
いる。抵抗2は、ACTR制御信号acがハイインピー
ダンスになった場合には、トランジスタTR1を確実に
オフさせるために接続される抵抗である。
The ACTR control signal output terminal 4 is connected to a resistor R1
Is connected to the resistor 2 and the base of an ACTR control transistor TR1 for controlling the actuator 13. The resistor 2 is a resistor connected to reliably turn off the transistor TR1 when the ACTR control signal ac becomes high impedance.

【0015】またACTR制御信号出力端子4は、フェ
イルセイフ制御用のトランジスタTR2にも接続されて
いる。トランジスタTR2は後述するフェイルセイフ信
号fsがオンになった場合には、ACTR制御信号ac
の信号レベルに係りなく、トランジスタTR1をオフに
するトランジスタである。診断信号入力端子5へはマイ
コン制御部15の故障診断部16から出力される診断信
号ddが入力される。プログラムラン信号出力端子6か
らは周期T1のパルス信号であるプログラムラン信号p
rが故障診断部16へ出力されている。マイコンリセッ
ト信号入力端子7へはNOR回路18からマイコンリセ
ット信号mrが入力される。
The ACTR control signal output terminal 4 is also connected to a transistor TR2 for fail-safe control. When a fail-safe signal fs described later is turned on, the transistor TR2 outputs the ACTR control signal ac.
Irrespective of the signal level of the transistor TR1. The diagnostic signal input terminal 5 receives the diagnostic signal dd output from the failure diagnostic unit 16 of the microcomputer control unit 15. From the program run signal output terminal 6, a program run signal p, which is a pulse signal of period T1,
r is output to the failure diagnosis unit 16. The microcomputer reset signal mr is input from the NOR circuit 18 to the microcomputer reset signal input terminal 7.

【0016】マイコン制御部15は、故障診断部16
と、基準電圧VCCの電位を監視して所定電圧以外にな
ったときにはパワーオンクリア信号clを出力するパワ
ーオンクリア回路17と、パワーオンクリア信号clと
異常検出信号odを入力しマイコンリセット信号mrを
出力するNOR回路18と、マイコンリセット信号mr
を入力してフェイルセイフ信号fsを出力するインバー
タ回路19から構成されている。マイコン制御部15へ
は、レギュレータ回路14から基準電圧VCCが入力さ
れている。
The microcomputer control unit 15 includes a failure diagnosis unit 16
And a power-on-clear circuit 17 for monitoring the potential of the reference voltage VCC and outputting a power-on-clear signal cl when the voltage becomes a voltage other than a predetermined voltage, a power-on-clear signal cl and an abnormality detection signal od, and a microcomputer reset signal mr. And a microcomputer reset signal mr
, And outputs an fail-safe signal fs. The reference voltage VCC is input from the regulator circuit 14 to the microcomputer control unit 15.

【0017】次に、図2は故障診断部16の詳細構成を
示す図である。故障診断部16はプログラムラン信号p
rが正常に出力されているか否かを診断し、また診断動
作が正常に行われているか否かの自己診断をおこない、
診断信号ddおよび異常検出信号odを出力する。エッ
ジ検出回路20は、マイコン10から出力されるプログ
ラムラン信号prと図示しないクロック回路から出力さ
れるクロック信号CLKを入力し、プログラムラン信号
prの立ち上がりエッジと立ち下がりエッジを検出し、
エッジ検出信号edをゲート回路21へ出力する。
Next, FIG. 2 is a diagram showing a detailed configuration of the failure diagnosis section 16. As shown in FIG. The failure diagnosis unit 16 outputs the program run signal p
diagnosing whether or not r is normally output, and performing a self-diagnosis as to whether or not the diagnostic operation is normally performed;
The diagnostic signal dd and the abnormality detection signal od are output. The edge detection circuit 20 receives the program run signal pr output from the microcomputer 10 and the clock signal CLK output from a clock circuit (not shown), detects a rising edge and a falling edge of the program run signal pr,
The edge detection signal ed is output to the gate circuit 21.

【0018】ゲート回路21は、クロック信号CLKを
分周してデューティ比50で周期T2のタイミングパル
スd1を出力する分周回路22と、タイミングパルスd
1とエッジ検出信号edを入力し、論理積をエッジ検出
信号e1として出力するAND回路23と、タイミング
パルスd1を反転させたタイミングパルスd2を出力す
るインバータ回路24と、タイミングパルスd2とエッ
ジ検出信号edを入力し論理積をエッジ検出信号e2と
して出力するAND回路25から構成される。エッジ検
出信号e1はOR回路26に入力され、エッジ検出信号
e2はOR回路27に入力される。
The gate circuit 21 divides the clock signal CLK and outputs a timing pulse d1 having a cycle T2 at a duty ratio of 50, and a timing pulse d.
1 and an edge detection signal ed, an AND circuit 23 that outputs a logical product as an edge detection signal e1, an inverter circuit 24 that outputs a timing pulse d2 obtained by inverting the timing pulse d1, a timing pulse d2 and an edge detection signal An AND circuit 25 receives ed and outputs a logical product as an edge detection signal e2. The edge detection signal e1 is input to the OR circuit 26, and the edge detection signal e2 is input to the OR circuit 27.

【0019】OR回路26は、エッジ検出信号e1とパ
ワーオンクリア回路17から出力されるパワーオンクリ
ア信号clの論理和であるリセット信号r1をカウンタ
回路28とラッチ回路30へ出力する。OR回路27
は、エッジ検出信号e2とパワーオンクリア信号clの
論理和であるリセット信号r2をカウンタ回路29とラ
ッチ回路31へ出力する。
The OR circuit 26 outputs to the counter circuit 28 and the latch circuit 30 a reset signal r1 which is the logical sum of the edge detection signal e1 and the power-on-clear signal cl output from the power-on-clear circuit 17. OR circuit 27
Outputs a reset signal r2 which is a logical sum of the edge detection signal e2 and the power-on clear signal cl to the counter circuit 29 and the latch circuit 31.

【0020】カウンタ回路28は、リセット信号r1に
よりカウント値がリセットされ、クロック信号CLKに
よりカウントアップし、カウント値が所定値以上になっ
た場合には、ラッチセット信号s1をラッチ回路30へ
出力する。カウンタ回路29は、リセット信号r2によ
りカウント値がリセットされ、クロック信号CLKによ
りカウントアップし、カウント値が所定値以上になった
場合には、ラッチセット信号s2をラッチ回路31へ出
力する。
The counter circuit 28 resets the count value by the reset signal r 1, counts up by the clock signal CLK, and outputs the latch set signal s 1 to the latch circuit 30 when the count value exceeds a predetermined value. . The counter circuit 29 resets the count value by the reset signal r2, counts up by the clock signal CLK, and outputs the latch set signal s2 to the latch circuit 31 when the count value becomes a predetermined value or more.

【0021】ラッチ回路30は、ラッチセット信号s1
によりオン状態にセットされ、リセット信号r1により
リセットされ、ラッチ出力信号o1をOR回路32およ
びAND回路33へ出力する。ラッチ回路31は、ラッ
チセット信号s2によりオン状態にセットされ、リセッ
ト信号r2によりリセットされ、ラッチ出力信号o2を
OR回路32およびAND回路33へ出力する。OR回
路32はラッチ出力信号o1およびラッチ出力信号o2
を入力し、論理和である診断信号ddを出力する。AN
D回路33では、ラッチ出力信号o1およびラッチ出力
信号o2を入力し、論理積である異常検出信号odを出
力する。
The latch circuit 30 has a latch set signal s1
, And is reset by the reset signal r1 to output the latch output signal o1 to the OR circuit 32 and the AND circuit 33. The latch circuit 31 is turned on by the latch set signal s2, is reset by the reset signal r2, and outputs the latch output signal o2 to the OR circuit 32 and the AND circuit 33. The OR circuit 32 has a latch output signal o1 and a latch output signal o2.
And outputs a diagnostic signal dd as a logical sum. AN
The D circuit 33 receives the latch output signal o1 and the latch output signal o2, and outputs an abnormality detection signal od which is a logical product.

【0022】なお、AND回路23および25は発明の
ゲート手段を構成し、カウンタ回路28、カウンタ回路
29はタイマ手段を、ラッチ回路30、ラッチ回路3
1、OR回路32およびAND回路33は発明の確認パ
ルス発生手段を構成する。また故障診断部16は診断手
段を構成する。ラッチ出力信号o1およびo2は発明の
確認パルスである。
The AND circuits 23 and 25 constitute the gate means of the present invention, and the counter circuit 28 and the counter circuit 29 constitute the timer means, and the latch circuits 30 and 3
1, the OR circuit 32 and the AND circuit 33 constitute the confirmation pulse generating means of the present invention. Further, the failure diagnosis unit 16 forms a diagnosis unit. Latch output signals o1 and o2 are confirmation pulses of the invention.

【0023】次に、本実施例のマイコン故障監視システ
ムの動作を説明する。まず図3に示すタイミングチャー
トを用いて、マイコン10および故障診断部16がとも
に正常に作動している場合の動作を説明する。時刻S1
に、電源が投入され電源電圧VCCがロウレベル(以下
Lレベルと記載)からハイレベル(以下Hレベルと記
載)へ変化すると、パワーオンクリア回路17から出力
され、図3の(a)に示されるパワーオンクリア信号c
lは、マイコン10の動作が安定する時刻S2までの
間、Hレベルとなる。
Next, the operation of the microcomputer failure monitoring system of this embodiment will be described. First, the operation when both the microcomputer 10 and the failure diagnosis unit 16 are operating normally will be described using the timing chart shown in FIG. Time S1
Then, when the power is turned on and the power supply voltage VCC changes from a low level (hereinafter referred to as L level) to a high level (hereinafter referred to as H level), it is output from the power-on clear circuit 17 and is shown in FIG. Power-on clear signal c
l is at the H level until time S2 when the operation of the microcomputer 10 is stabilized.

【0024】また、時刻S1から時刻S2の間は、NO
R回路18の入力端子には、パワーオンクリア信号cl
のHレベルと異常検出信号odのLレベルが入力するの
で、図3の(n)に示される出力であるマイコンリセッ
ト信号mrは、Lレベルとなる。マイコンリセット信号
mrがLレベルのときには、インバータ回路19により
反転したフェイルセイフ信号fsはHレベルとなる。こ
のフェイルセイフ信号fsの作用の詳細は後述する。
During the period from time S1 to time S2, NO
The input terminal of the R circuit 18 has a power-on clear signal cl
3 and the L level of the abnormality detection signal od are input, so that the microcomputer reset signal mr, which is the output shown in FIG. When the microcomputer reset signal mr is at L level, the fail-safe signal fs inverted by the inverter circuit 19 is at H level. The details of the operation of the fail-safe signal fs will be described later.

【0025】時刻S2には、パワーオンクリア信号cl
がLレベルに変化し、またこの時には、異常検出信号o
dもLレベルであるため、NOR回路18の両方の入力
がLレベルとなり、マイコンリセット信号mrはHレベ
ルとなり、マイコン10の各回路はリセットされ、時刻
S3にはマイコン10のプログラムラン信号出力端子6
からは、(b)に示す周期T1のプログラムラン信号p
rが出力される。故障診断部16も動作を開始し、エッ
ジ検出回路20は、プログラムラン信号prが入力され
ると、(c)に示すエッジ検出信号edを出力する。エ
ッジ検出回路20によりプログラムラン信号prのエッ
ジを検出することにより、プログラムラン信号prのパ
ルス形状やデューティ比が通常の状態から多少ずれた場
合でも、誤動作を防止する事ができる。
At time S2, the power-on clear signal cl
Changes to the L level, and at this time, the abnormality detection signal o
Since d is also at L level, both inputs of the NOR circuit 18 are at L level, the microcomputer reset signal mr is at H level, each circuit of the microcomputer 10 is reset, and at time S3, the program run signal output terminal of the microcomputer 10 6
From the program run signal p of the cycle T1 shown in FIG.
r is output. The failure diagnosis unit 16 also starts operating, and when the program run signal pr is input, the edge detection circuit 20 outputs an edge detection signal ed shown in (c). By detecting the edge of the program run signal pr by the edge detection circuit 20, a malfunction can be prevented even when the pulse shape and the duty ratio of the program run signal pr slightly deviate from the normal state.

【0026】分周回路22からは、(d)に示す周期T
2でデューティ比50のタイミングパルスd1が出力さ
れ、AND回路23およびインバータ回路24へ入力さ
れる。インバータ回路24からは、(e)に示す周期が
反転されたタイミングパルスd2が出力され、AND回
路25へ入力される。
From the frequency dividing circuit 22, the period T shown in FIG.
At 2, a timing pulse d1 having a duty ratio of 50 is output and input to the AND circuit 23 and the inverter circuit 24. From the inverter circuit 24, a timing pulse d2 whose cycle shown in (e) is inverted is output and input to the AND circuit 25.

【0027】AND回路23からは、(f)に示すエッ
ジ検出信号e1が出力されOR回路26へ入力される。
エッジ検出信号e1は、上記タイミングパルスd1がH
レベルの間は、エッジ検出信号edと同様の時間幅を有
するパルス信号となり、タイミングパルスd1がLレベ
ルの間はLレベルとなる。OR回路26からは、パワー
オンクリア信号clとエッジ検出信号e1の論理和であ
るリセット信号r1が出力される。同様に、AND回路
25からは、パルス信号とLレベルを交互に繰り返す
(g)に示すエッジ検出信号e2が出力され、OR回路
27からは、リセット信号r2が出力される。
From the AND circuit 23, an edge detection signal e1 shown in (f) is output and input to the OR circuit 26.
The edge detection signal e1 indicates that the timing pulse d1 is H
During the level, the pulse signal has the same time width as the edge detection signal ed, and is at the L level while the timing pulse d1 is at the L level. The OR circuit 26 outputs a reset signal r1 which is a logical sum of the power-on clear signal cl and the edge detection signal e1. Similarly, the AND circuit 25 outputs an edge detection signal e2 shown in (g) that alternately repeats the pulse signal and the L level, and the OR circuit 27 outputs a reset signal r2.

【0028】カウンタ回路28では、CLK信号により
カウントアップされ、カウント値が所定値を超えるとき
パルス信号であるラッチセット信号s1を出力する。ま
たリセット信号r1がHレベルになるとカウント値はリ
セットされる。すなわち、リセット信号r1がLレベル
の状態がカウント値が所定値に達するまでの時間である
監視時間T3以上継続するとパルス信号を出力する。
(h)に示すように、ラッチセット信号s1では、時刻
S3から時刻S5までの間はリセット信号r1としてパ
ルス信号が出力されているため、リセットが繰り返さ
れ、カウント値が所定値を超えることはない。
The counter circuit 28 counts up by the CLK signal, and outputs a latch set signal s1 as a pulse signal when the count value exceeds a predetermined value. When the reset signal r1 goes high, the count value is reset. That is, when the state of the reset signal r1 at the L level continues for the monitoring time T3 which is the time until the count value reaches the predetermined value, a pulse signal is output.
As shown in (h), in the latch set signal s1, since the pulse signal is output as the reset signal r1 from the time S3 to the time S5, the reset is repeated, and the count value may not exceed the predetermined value. Absent.

【0029】時刻S5以降リセット信号R1のLレベル
状態が継続するので、カウントアップされ、時刻S5か
ら監視時間T3後の時刻S6には、パルス信号が出力さ
れる。時刻S7には、またリセット信号r1がパルス状
態になるので、リセットが繰り返される。以後同様に、
周期T2でパルス信号が出力される。同様に、カウンタ
回路29から出力される(i)に示すラッチセット信号
s2では、リセット信号r2のLレベル状態が監視時間
T3以上の間継続した時刻S4でパルス信号が出力さ
れ、以後周期T2でパルス信号が出力される。
Since the L level state of the reset signal R1 continues after the time S5, the count is incremented, and a pulse signal is output at a time S6 after a monitoring time T3 from the time S5. At time S7, the reset signal r1 is pulsed again, so that the reset is repeated. Thereafter, similarly,
A pulse signal is output in the cycle T2. Similarly, in the latch set signal s2 shown in (i) output from the counter circuit 29, a pulse signal is output at time S4 when the L level state of the reset signal r2 has continued for the monitoring time T3 or more, and thereafter in the cycle T2. A pulse signal is output.

【0030】ラッチ回路30からは、(j)に示すよう
に、ラッチセット信号s1が入力されるた時刻S6でH
レベルになり、リセット信号r1が入力された時刻S7
でLレベルになり、以後同様に周期T2毎にHレベルに
なるラッチ出力信号o1が出力される。ラッチ回路31
からは、時刻S4から周期T2でHレベルになる(k)
に示されるラッチ出力信号o2が出力される。
As shown in (j), the latch circuit 30 goes high at time S6 when the latch set signal s1 is input.
Level S7 when the reset signal r1 is input
, And thereafter, a latch output signal o1 is output which also becomes H level every cycle T2. Latch circuit 31
From the time S4, the level becomes the H level in the cycle T2 from the time S4 (k)
Is output.

【0031】OR回路32からは、ラッチ出力信号o1
とラッチ出力信号o2の論理和である(l)に示される
診断信号ddが出力され、マイコン10の診断信号入力
端子5へ入力される。通常の状態では、診断信号ddは
周期T2/2でHレベルのパルス信号となる。AND回
路33からは、ラッチ出力信号o1とラッチ出力信号o
2の論理積である(m)に示される異常検出信号odが
出力され、NOR回路18へ出力される。通常の状態で
はラッチ出力信号o1とラッチ出力信号o2がともにH
レベルになることはないので、異常検出信号odはLレ
ベルとなる。
The OR circuit 32 outputs a latch output signal o1
A diagnostic signal dd indicated by (l), which is a logical sum of the latch output signal o2 and the latch output signal o2, is input to the diagnostic signal input terminal 5 of the microcomputer 10. In a normal state, the diagnostic signal dd is an H-level pulse signal with a period T2 / 2. From the AND circuit 33, the latch output signal o1 and the latch output signal o
An abnormality detection signal od indicated by (m), which is a logical product of 2, is output to the NOR circuit 18. In a normal state, both the latch output signal o1 and the latch output signal o2 are at H level.
Since the level does not reach the level, the abnormality detection signal od goes to the L level.

【0032】時刻S2以後は、パワーオンクリア信号c
lはLレベルであるので、異常検出信号odがLレベル
であれば、(n)に示すマイコンリセット信号mrはH
レベルであり、従ってフェイルセイフ信号fsはLレベ
ルになり、フェイルセイフ動作は行われない。またマイ
コン10は、診断信号入力端子5から入力される信号が
周期T2/2のパルス信号である場合には、マイコン1
0および故障診断部16の両方が正常に動作していると
判定する。
After time S2, the power-on clear signal c
Since l is at the L level, if the abnormality detection signal od is at the L level, the microcomputer reset signal mr shown in FIG.
Level, so that the fail-safe signal fs becomes L level, and the fail-safe operation is not performed. When the signal input from the diagnostic signal input terminal 5 is a pulse signal having a period T2 / 2, the microcomputer 10
0 and the failure diagnosis unit 16 are both determined to be operating normally.

【0033】次に、マイコン10が故障して、プログラ
ムラン信号prが停止した場合の動作を図4を用いて説
明する。時刻S9までの間正常に動作していたマイコン
10に、時刻S10に異常が生じプログラムラン信号p
rの出力が停止した場合の動作を説明する。プログラム
ラン信号prの出力が停止されると、エッジ検出信号e
d、エッジ検出信号e1およびエッジ検出信号e2も時
刻S10以降はLレベルとなる。
Next, the operation when the microcomputer 10 fails and the program run signal pr stops will be described with reference to FIG. An abnormality occurs at time S10 in the microcomputer 10 which has been operating normally until time S9, and the program run signal p
The operation when the output of r is stopped will be described. When the output of the program run signal pr is stopped, the edge detection signal e
d, the edge detection signal e1 and the edge detection signal e2 also become L level after time S10.

【0034】カウンタ回路28は時刻S9からカウント
アップを行っているので、時刻S9から監視時間T3後
の時刻S11には(h)に示すように、ラッチセット信
号s1であるパルス信号をラッチ回路30に出力する。
(j)に示すラッチ出力信号o1は、このラッチセット
信号s1により、時刻S11にHレベルとなるが、リセ
ット信号r1が入力されないため以後はHレベルを継続
する。
Since the counter circuit 28 counts up from the time S9, at the time S11 after the monitoring time T3 from the time S9, as shown in FIG. Output to
The latch output signal o1 shown in (j) goes high at time S11 due to the latch set signal s1, but keeps the high level thereafter since the reset signal r1 is not input.

【0035】カウンタ回路29はリセット信号r2がL
レベルになった時刻S10からカウントアップを開始
し、監視時間T3後の時刻S12には(i)に示すよう
に、パルス信号をラッチ回路31へ出力する。(k)に
示すラッチ出力信号o2は、ラッチセット信号s2によ
り時刻S12にHレベルとなるが、リセット信号r2が
入力されないため、以後はHレベルを継続する。
In the counter circuit 29, when the reset signal r2 is L
The count-up is started from the time S10 when the level becomes the level, and a pulse signal is output to the latch circuit 31 at the time S12 after the monitoring time T3 as shown in (i). The latch output signal o2 shown in (k) goes high at the time S12 due to the latch set signal s2, but keeps the high level thereafter since the reset signal r2 is not input.

【0036】従って、診断信号ddは時刻S11以降H
レベルとなり、異常検出信号odも時刻S12以降はH
レベルとなる。異常検出信号odがHレベルとなると、
NOR回路18の出力である(n)に示すマイコンリセ
ット信号mrはLレベルとなり、従ってフェイルセイフ
信号fsはHレベルとなる。フェイルセイフ信号fsが
Hレベルとなるとフェイルセイフ動作が行われる。フェ
イルセイフ制御用のトランジスタTR2がオンになり、
マイコン10のACTR制御信号出力端子4から出力さ
れるACTR制御信号acが接地され、ACTR制御用
のトランジスタTR1がオフになり、マイコン10とア
クチュエータ13が切り離される。
Therefore, the diagnostic signal dd becomes H after time S11.
Level, and the abnormality detection signal od becomes H after time S12.
Level. When the abnormality detection signal od becomes H level,
The microcomputer reset signal mr shown in (n), which is the output of the NOR circuit 18, goes low, and the fail-safe signal fs goes high. When the fail-safe signal fs becomes H level, a fail-safe operation is performed. The transistor TR2 for failsafe control is turned on,
The ACTR control signal ac output from the ACTR control signal output terminal 4 of the microcomputer 10 is grounded, the transistor TR1 for ACTR control is turned off, and the microcomputer 10 and the actuator 13 are disconnected.

【0037】次に、故障診断部16が故障した場合の動
作を図5を用いて説明する。時刻S9までの間正常に動
作していた故障診断部16に、時刻S13に異常が生
じ、プログラムラン信号prが出力しているにも係ら
ず、ラッチセット信号s1およびラッチセット信号s2
の出力が停止したものとする。ラッチセット信号s1お
よびラッチセット信号s2の出力が停止されると、時刻
S14にラッチ回路30がセットされることも、時刻S
15にラッチ回路31がセットされることもなくなり、
ラッチ出力信号o1およびラッチ出力信号o2は時刻S
13以降オフの状態が継続される。マイコン10は、診
断信号入力端子5にT2/2時間以上オフ信号が継続し
て入力されると、故障診断部16に異常が生じていると
判定し、ACTR制御信号出力端子4から出力されるA
CTR制御信号acをオフにして、アクチュエータ13
の制御を停止する。
Next, the operation when the failure diagnosis unit 16 has failed will be described with reference to FIG. The failure diagnosis unit 16 that has been operating normally until the time S9 has an abnormality at the time S13, and despite the output of the program run signal pr, the latch set signal s1 and the latch set signal s2.
Output has stopped. When the output of the latch set signal s1 and the latch set signal s2 is stopped, the latch circuit 30 is set at time S14,
15, the latch circuit 31 is no longer set,
The latch output signal o1 and the latch output signal o2 are at time S
The off state is continued after 13. When the OFF signal is continuously input to the diagnostic signal input terminal 5 for T2 / 2 hours or more, the microcomputer 10 determines that an abnormality has occurred in the failure diagnostic unit 16 and outputs the abnormality from the ACTR control signal output terminal 4. A
When the CTR control signal ac is turned off, the actuator 13
Stop control of.

【0038】以上説明したように、マイコン10から周
期T1でプログラムラン信号が出力され、マイコン10
も故障診断部16も正常に作動している場合には、診断
信号ddとしては周期T2/2のパルス信号を出力し、
異常検出信号odとしてはLレベルのオフ信号を出力す
る。プログラムラン信号prが出力されていない場合に
は診断信号ddとしてHレベルのオン信号を出力し、異
常検出信号odとしてもオン信号を出力する。異常検出
信号odがオン信号になると、フェイルセイフ信号fs
もオンになり、アクチュエータ13はマイコン10から
切り離される。
As described above, the program run signal is output from the microcomputer 10 at the cycle T1, and
When both the failure diagnosis unit 16 and the failure diagnosis unit 16 are operating normally, a pulse signal having a period T2 / 2 is output as the diagnosis signal dd.
An L level off signal is output as the abnormality detection signal od. When the program run signal pr is not output, an H-level ON signal is output as the diagnostic signal dd, and an ON signal is also output as the abnormality detection signal od. When the abnormality detection signal od turns on, the fail-safe signal fs
Is also turned on, and the actuator 13 is disconnected from the microcomputer 10.

【0039】故障診断部16に異常が生じ、診断信号d
dも異常検出信号odもLレベルのオフ信号が継続して
出力されると、マイコン10はACTR制御信号acを
オフにして、アクチュエータ13の制御を停止する。上
記のように、故障診断部16に異常が生じた場合には、
診断信号ddの状態変化から判明するため、マイコンの
動作を停止せずに、マイコン故障監視システムの機能が
正常か否かの診断を行うことができ、マイコン故障監視
システムの信頼性を向上させることができる。
An abnormality occurs in the failure diagnosis section 16 and the diagnosis signal d
When the off signal of the L level is continuously output for both d and the abnormality detection signal od, the microcomputer 10 turns off the ACTR control signal ac and stops the control of the actuator 13. As described above, when an abnormality occurs in the failure diagnosis unit 16,
Since it is clear from the state change of the diagnostic signal dd, it is possible to diagnose whether or not the function of the microcomputer failure monitoring system is normal without stopping the operation of the microcomputer, thereby improving the reliability of the microcomputer failure monitoring system. Can be.

【0040】[0040]

【発明の効果】本発明では、マイコンもマイコン故障監
視システムも正常に動作している場合には、確認パルス
発生手段の出力としては所定周期毎に確認パルスが出力
され、一方、マイコンが故障し、プログラムラン信号の
出力が停止してしまった場合には、確認パルス発生手段
の出力としては、オン状態が継続される。また、診断手
段に異常が生じている場合には、通常は確認パルス発生
手段の出力は、オフ状態となる。これらの確認パルス発
生手段の出力を、マイコンへ入力すれば、マイコンで
は、所定周期の確認パルスが出力されている場合には、
マイコン側も故障監視システム側も正常に動作している
と判定でき、またオフ信号が継続して出力された場合に
は、診断手段に異常が生じていると判定し、適切な処置
を実行できる。上記のように、マイコンの動作を停止さ
せずに、確認パルス発生手段の出力状態の変化からマイ
コン故障監視システムの機能が正常か否かの診断を行う
ことができ信頼性の高いマイコン故障監視システムを提
供できる。
According to the present invention, when both the microcomputer and the microcomputer failure monitoring system are operating normally, the confirmation pulse is output as the output of the confirmation pulse generation means at predetermined intervals, while the microcomputer fails. On the other hand, when the output of the program run signal is stopped, the output of the confirmation pulse generating means is kept on. When an abnormality has occurred in the diagnostic means, the output of the confirmation pulse generating means is normally turned off. If the output of these confirmation pulse generating means is input to the microcomputer, the microcomputer outputs a confirmation pulse of a predetermined period when the confirmation pulse is output.
It can be determined that both the microcomputer side and the failure monitoring system are operating normally, and if the OFF signal is continuously output, it can be determined that an abnormality has occurred in the diagnostic means, and appropriate measures can be taken. . As described above, a reliable microcomputer failure monitoring system that can diagnose whether the function of the microcomputer failure monitoring system is normal or not from the change in the output state of the confirmation pulse generation means without stopping the operation of the microcomputer Can be provided.

【0041】また、ゲート手段から所定周期の1/N
(Nは2以上の整数)ずつずらせたタイミングでN相の
リセット信号を出力させ、確認パルス発生部からN相ご
とに確認パルスを発生すれば、プログラムラン信号の監
視をより頻繁に行うことができる。さらに、N個のAN
D回路によりゲート手段を構成し、所定時間を設定する
N個のカウンタ回路と、確認パルスを出力するラッチ回
路と、各ラッチ回路の論理積を出力するAND回路と、
各ラッチ回路の論理和を出力するOR回路を設け、OR
回路の出力をマイコンへ入力し、マイコンでは診断手段
の異常を監視する。AND回路の出力をフェイルセイフ
手段へ入力し、フェイルセイフ手段ではAND回路から
オン出力状態が継続した場合には、被制御部をマイコン
から切り離す等の対応を行う。これにより、マイコンが
暴走したために、プログラムラン信号の出力が停止した
場合などでも、適切な対応を行うことができ、より利便
性のよいマイコン故障監視システムを提供できる。
Further, 1 / N of a predetermined cycle is supplied from the gate means.
(N is an integer of 2 or more). By outputting an N-phase reset signal at a timing shifted by each time and generating a confirmation pulse for each N phase from the confirmation pulse generator, the program run signal can be monitored more frequently. it can. In addition, N ANs
A gate means constituted by a D circuit, N counter circuits for setting a predetermined time, a latch circuit for outputting a confirmation pulse, and an AND circuit for outputting a logical product of the latch circuits;
An OR circuit for outputting the logical sum of each latch circuit is provided.
The output of the circuit is input to the microcomputer, and the microcomputer monitors the abnormality of the diagnostic means. The output of the AND circuit is input to the fail-safe means, and the fail-safe means takes measures such as disconnecting the controlled unit from the microcomputer when the ON output state continues from the AND circuit. As a result, even when the output of the program run signal is stopped due to the microcomputer running out of control, appropriate measures can be taken, and a more convenient microcomputer failure monitoring system can be provided.

【0042】なお、本実施例においては、ゲート部を2
個のAND回路から構成したがこれに限定されるもので
はなく、単一のAND回路からゲート手段を構成し、カ
ウント回路およびラッチ回路も一組のみでそれぞれタイ
マ手段および確認パルス発生手段を構成すれば、回路を
簡略化することができる。さらに、カウンタ回路により
タイマ手段を構成したが、これに限定されるものではな
く、ゲート手段からリセット信号が出力されてからの経
過時間を監視するものであればよく、コンデンサの充電
時間または放電時間を利用して経過時間を監視するもの
を用いれば、一層コストを低減できる。
In this embodiment, the gate portion is connected to two.
However, the present invention is not limited to this. The gate means is constituted by a single AND circuit, and the timer means and the confirmation pulse generating means are constituted by a single set of the count circuit and the latch circuit, respectively. If this is the case, the circuit can be simplified. Furthermore, although the timer means is constituted by the counter circuit, the present invention is not limited to this. Any means may be used as long as it monitors the time elapsed since the reset signal was output from the gate means. If a device that monitors the elapsed time by using the method is used, the cost can be further reduced.

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

【図1】本発明の実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.

【図2】故障診断部の構成を示す図である。FIG. 2 is a diagram illustrating a configuration of a failure diagnosis unit.

【図3】実施例の動作を説明するタイミングチャートで
ある。
FIG. 3 is a timing chart illustrating the operation of the embodiment.

【図4】実施例の動作を説明するタイミングチャートで
ある。
FIG. 4 is a timing chart illustrating the operation of the embodiment.

【図5】実施例の動作を説明するタイミングチャートで
ある。
FIG. 5 is a timing chart for explaining the operation of the embodiment.

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

1 電源端子 2 スイッチ信号入力端子 3 センサ信号入力端子 4 ACTR制御信号出力端子 5 診断信号入力端子 6 プログラムラン信号出力端子 7 マイコンリセット信号入力端
子 10 マイコン 11 スイッチ 12 センサ 13 アクチュエータ 14 レギュレータ回路 15 マイコン制御部 16 故障診断部 17 パワーオンクリア回路 18 NOR回路 19、24 インバータ回路 20 エッジ検出回路 21 ゲート回路 22 分周回路 23、25、33 AND回路 26、27、32 OR回路 28、29 カウンタ回路 30、31 ラッチ回路 R1、R2 抵抗 TR1、TR2 トランジスタ
1 power terminal 2 switch signal input terminal 3 sensor signal input terminal 4 ACTR control signal output terminal 5 diagnostic signal input terminal 6 program run signal output terminal 7 microcomputer reset signal input terminal 10 microcomputer 11 switch 12 sensor 13 actuator 14 regulator circuit 15 microcomputer control Unit 16 failure diagnosis unit 17 power-on-clear circuit 18 NOR circuit 19, 24 inverter circuit 20 edge detection circuit 21 gate circuit 22 divider circuit 23, 25, 33 AND circuit 26, 27, 32 OR circuit 28, 29 counter circuit 30, 31 Latch circuit R1, R2 Resistance TR1, TR2 Transistor

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 マイコンからのプログラムラン信号を診
断手段に入力してマイコンの作動状態を監視する故障監
視システムであって、診断手段は、前記プログラムラン
信号に基づくパルス列の一部を所定周期のタイミングで
通過させてリセット信号とするゲート手段と、前記リセ
ット信号でリセットされて所定時間を設定するタイマ手
段と、タイマ手段で設定された所定時間ごとに発生しそ
の後のリセット信号でリセットされる確認パルスを発生
する確認パルス発生手段とを有して、前記確認パルスの
出力状態によって、マイコンが正常作動しているか、マ
イコンが故障しているか、あるいは診断手段に異常があ
るかが識別されることを特徴とするマイコン故障監視シ
ステム。
1. A failure monitoring system for monitoring an operation state of a microcomputer by inputting a program run signal from a microcomputer to a diagnosis unit, wherein the diagnosis unit converts a part of a pulse train based on the program run signal into a predetermined period. Gate means for passing a reset signal at a timing, timer means for setting a predetermined time after being reset by the reset signal, confirmation that the reset signal is generated every predetermined time set by the timer means and reset by a subsequent reset signal Having a check pulse generating means for generating a pulse, and determining whether or not the microcomputer is operating normally, whether or not the microcomputer is faulty, or whether or not the diagnostic means is abnormal, based on an output state of the check pulse. Microcomputer failure monitoring system.
【請求項2】 前記ゲート手段は、プログラムラン信号
に基づくパルス列の一部を所定周期の1/N(Nは2以
上の整数値)ずつずらせたタイミングで通過させてN相
のリセット信号を出力し、前記タイマ手段は、前記N相
ごとに所定時間を設定し、前記確認パルス発生手段は、
前記N相ごとに確認パルスを発生するよう構成され、各
相の確認パルスのいずれもがリセットされない状態が継
続するときマイコンの故障と識別され、各相のいずれの
確認パルスも出力されないとき診断手段の異常と識別さ
れることを特徴とする請求項1記載のマイコン故障監視
システム。
2. The gate means outputs an N-phase reset signal by passing a part of a pulse train based on a program run signal at a timing shifted by 1 / N (N is an integer of 2 or more) of a predetermined cycle. The timer means sets a predetermined time for each of the N phases, and the confirmation pulse generating means
A confirmation pulse is generated for each of the N phases, and when a state in which none of the confirmation pulses of each phase is reset continues, the microcomputer is identified as a malfunction of the microcomputer, and when none of the confirmation pulses of each phase is output, the diagnosis means. 2. The microcomputer failure monitoring system according to claim 1, wherein the microcomputer is identified as an abnormality.
【請求項3】 前記ゲート手段は所定周期の1/N(N
は2以上の整数値)ずつずらせたタイミングで立ち上が
るN個のタイミングパルスとプログラムラン信号に基づ
くパルス列を入力し、リセット信号として論理積を出力
するN個のAND回路を有し、前記タイマ手段は、前記
N個のAND回路から出力される各々のリセット信号で
リセットされ、リセット後第2の所定時間が経過した場
合にセット信号を出力するN個のカウンタ回路を有し、
前記確認パルス発生手段は、前記N個のカウンタ回路か
ら出力された各々のセット信号により確認パルスを発生
し、その後のリセット信号により確認パルスをリセット
するN個のラッチ回路と、該N個のラッチ回路の出力の
論理積を出力するAND回路と論理和を出力するOR回
路を有し、前記AND回路からのオン出力状態が継続す
るときマイコンの故障と識別され、前記OR回路からオ
フ出力状態が継続するときには診断手段の異常と識別さ
れることを特徴とする請求項1または2記載のマイコン
故障監視システム。
3. The method according to claim 1, wherein the gate means is 1 / N (N
(N is an integer value of 2 or more), and N pulse circuits based on a program run signal and N timing pulses rising at timings shifted by 2 are input, and N AND circuits outputting a logical product as a reset signal are provided. And N counter circuits that are reset by respective reset signals output from the N AND circuits and output a set signal when a second predetermined time has elapsed after the reset,
The confirmation pulse generating means generates a confirmation pulse in accordance with each set signal output from the N counter circuits, and resets the confirmation pulse in response to a reset signal thereafter. An AND circuit that outputs a logical product of outputs of the circuit and an OR circuit that outputs a logical sum; when the ON output state from the AND circuit continues, it is identified as a microcomputer failure; and the OFF output state is output from the OR circuit. 3. The microcomputer failure monitoring system according to claim 1, wherein the microcomputer is identified as an abnormality of the diagnosis unit when the operation is continued.
JP10179317A 1998-06-25 1998-06-25 Microcomputer fault monitor system Withdrawn JP2000010825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10179317A JP2000010825A (en) 1998-06-25 1998-06-25 Microcomputer fault monitor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10179317A JP2000010825A (en) 1998-06-25 1998-06-25 Microcomputer fault monitor system

Publications (1)

Publication Number Publication Date
JP2000010825A true JP2000010825A (en) 2000-01-14

Family

ID=16063729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10179317A Withdrawn JP2000010825A (en) 1998-06-25 1998-06-25 Microcomputer fault monitor system

Country Status (1)

Country Link
JP (1) JP2000010825A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232766A (en) * 2014-06-09 2015-12-24 矢崎総業株式会社 Fixed cycle signal monitoring circuit and backup signal generation circuit for controlling load

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015232766A (en) * 2014-06-09 2015-12-24 矢崎総業株式会社 Fixed cycle signal monitoring circuit and backup signal generation circuit for controlling load
CN105320029A (en) * 2014-06-09 2016-02-10 矢崎总业株式会社 Constant period signal monitoring circuit and load control backup signal generating circuit
CN105320029B (en) * 2014-06-09 2019-12-20 矢崎总业株式会社 Constant period signal monitoring circuit and load control standby signal generating circuit

Similar Documents

Publication Publication Date Title
KR100296984B1 (en) Monitoring System For Electronic Control System
KR900001444B1 (en) Engine control apparatus
US5642069A (en) Clock signal loss detection and recovery apparatus in multiple clock signal system
JP2593915B2 (en) Double microcomputer system runaway prevention circuit
JP2000010825A (en) Microcomputer fault monitor system
JP2002089336A (en) Failure detection device for electronic control system of vehicle
US11656276B2 (en) Monitoring circuit and method for function monitoring
JP3230471B2 (en) PWM control device and PWM control method
US20190146547A1 (en) Semiconductor integrated circuit device
JP2003140779A (en) Watch dog timer diagnosing system
JPH0789399B2 (en) Encoder transmission line abnormality detection circuit
JPH11143841A (en) Collation circuit
JP3724034B2 (en) Control circuit for production equipment
JPH11316615A (en) Power noise preventing circuit for mcu
JPH0792793B2 (en) Micro computer
JPH04291634A (en) Fault detecting circuit for microcomputer
JPH03292258A (en) Time element relay
JPH0328009B2 (en)
JP2588290B2 (en) Data input / output system
KR100197107B1 (en) Self-diagnostic fault preventing method of outputing actuator
JP2023122184A (en) electronic controller
JPH05173841A (en) Monitor circuit for watchdog timer
KR100775328B1 (en) Apparatus for resetting micoms
JP2004252555A (en) Microcomputer built-in sensor having self-diagnostic function
JPS6138500B2 (en)

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050906