JPS622683Y2 - - Google Patents

Info

Publication number
JPS622683Y2
JPS622683Y2 JP6213781U JP6213781U JPS622683Y2 JP S622683 Y2 JPS622683 Y2 JP S622683Y2 JP 6213781 U JP6213781 U JP 6213781U JP 6213781 U JP6213781 U JP 6213781U JP S622683 Y2 JPS622683 Y2 JP S622683Y2
Authority
JP
Japan
Prior art keywords
microcomputers
pulses
microcomputer
output
diagnostic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP6213781U
Other languages
Japanese (ja)
Other versions
JPS57175239U (en
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 filed Critical
Priority to JP6213781U priority Critical patent/JPS622683Y2/ja
Publication of JPS57175239U publication Critical patent/JPS57175239U/ja
Application granted granted Critical
Publication of JPS622683Y2 publication Critical patent/JPS622683Y2/ja
Expired legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Description

【考案の詳細な説明】 本考案は、マイクロコンピユータに診断パルス
を送出するための特別な出力ポートを設けること
なくして故障の診断が行なえるマイクロコンピユ
ータの故障診断回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a fault diagnosis circuit for a microcomputer that can diagnose a fault without providing a special output port for sending diagnostic pulses to the microcomputer.

近年、マイクロコンピユータの使用が急速に進
み、各種電子機器が複数のマイクロコンピユータ
によつて駆動制御される傾向にある。この場合、
マイクロコンピユータそのものが故障すると、重
大な事故に発展する危険が生ずるために、複数の
マイクロコンピユータが相互に故障を診断するこ
とによつて故障診断回路を形成し、故障を検出し
たならば制御系を安全側に強制制御することによ
りフエールセーフ系を構成して安全性を大幅に向
上させている。
In recent years, the use of microcomputers has rapidly progressed, and there is a tendency for various electronic devices to be driven and controlled by a plurality of microcomputers. in this case,
If a microcomputer itself breaks down, there is a risk of a serious accident. Therefore, multiple microcomputers mutually diagnose faults to form a fault diagnosis circuit, and if a fault is detected, the control system is activated. By forcing control to the safe side, a fail-safe system is constructed, greatly improving safety.

第1図は従来一般に用いられている相互診断に
よるマイクロコンピユータの故障診断回路の一例
を示す回路図である。この場合、2個のマイクロ
コンピユータ1,2は、データバスDB1,DB2
介して出力される各種制御出力を出力ポート
P10,P20から出力されるラツチパルスL1,L2によ
つてラツチ回路3,4に取り込んで出力すること
により、各制御部をコントロールする。一方、マ
イクロコンピユータ1,2は、出力ポートP11
P23から第2図に示す一定周期Tの診断パルス
A,Bを送出している。そして、この診断パルス
A,Bは、マイクロコンピユータ1,2が相互に
相手の発生した診断パルスB,Aを入力ポート
P12,P22を介して取り込み、矩形波の診断パルス
A,Bの周期Tによつてサンプリングすることに
よつて監視が行なわれている。つまり、相手側の
マイクロコンピユータ1,2が正常に動作してい
るならば、診断パルスA,Bのサンプリング出力
は常に“H”,“L”を交互に繰り返すはずであ
る。これに対し、マイクロコンピユータ1,2が
暴走したり、あるいは閉ループに入つてしまう等
の故障を発生した場合には、そのマイクロコンピ
ユータから送出される診断パルスA,Bの周期が
乱れたり、あるいは“H”または“L”のいずれ
かのレベルに固定されてしまうことになる。従つ
て、他方のマイクロコンピユータは、この正常時
とは異なる診断パルスを順次サンプリングして、
正常時に対するずれが規準値以上にずれた場合を
故障検出してフエールセーフ制御を行なつてい
る。
FIG. 1 is a circuit diagram showing an example of a fault diagnosis circuit for a microcomputer based on mutual diagnosis, which has been commonly used in the past. In this case, the two microcomputers 1 and 2 output various control outputs via data buses DB 1 and DB 2 to output ports.
The latch pulses L 1 and L 2 output from P 10 and P 20 are taken into the latch circuits 3 and 4 and outputted, thereby controlling each control section. On the other hand, the microcomputers 1 and 2 have output ports P 11 ,
From P23 , diagnostic pulses A and B with a constant period T shown in FIG. 2 are sent out. The microcomputers 1 and 2 each receive the diagnostic pulses B and A generated by the other at input ports.
Monitoring is performed by taking in via P 12 and P 22 and sampling with period T of square wave diagnostic pulses A and B. That is, if the microcomputers 1 and 2 on the other side are operating normally, the sampling outputs of the diagnostic pulses A and B should always alternate between "H" and "L". On the other hand, if the microcomputers 1 and 2 run out of control or enter a closed loop or other malfunction, the cycles of the diagnostic pulses A and B sent from the microcomputers may be disrupted, or This results in the output being fixed at either the "H" or "L" level. Therefore, the other microcomputer sequentially samples the diagnostic pulses different from the normal one, and
Fail-safe control is performed by detecting a failure when the deviation from the normal state exceeds a standard value.

しかしながら、上述した構成に於いては、各マ
イクロコンピユータ1,2に一定周期の矩形波を
診断パルスとして出力するためのみに出力ポート
P11,P23を必要とする。この場合、マイクロコン
ピユータは、限られた出力ポートを有効に利用し
ており、1個の出力ポートが診断パルスの送出の
みに専有されることは極めて不利であり、この出
力ポートを他に利用出来ればマイクロコンピユー
タの機能が更に大幅向上させることが出来るもの
である。
However, in the above-mentioned configuration, the output port is only used to output a fixed period rectangular wave as a diagnostic pulse to each microcomputer 1, 2.
Requires P 11 and P 23 . In this case, the microcomputer makes effective use of its limited output ports, and it is extremely disadvantageous for one output port to be used exclusively for sending out diagnostic pulses, and this output port cannot be used for anything else. In other words, the functionality of microcomputers can be greatly improved.

従つて、本考案による目的は、マイクロコンピ
ユータに対して診断パルス送出用の出力ポートを
不用にしたマイクロコンピユータの故障診断回路
を提供することである。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a fault diagnosis circuit for a microcomputer that does not require an output port for transmitting diagnostic pulses to the microcomputer.

このような目的を達成するために本考案は、少
なくとも1ループ制御に1回出力されるラツチパ
ルス等の他の出力ポート信号を用いてフリツプフ
ロツプ回路をトリガし、このフリツプフロツプ回
路の出力を診断パルスとして他方のマイクロコン
ピユータの診断パルス入力ポートに供給するもの
である。以下、図面を用いて本考案によるマイク
ロコンピユータの故障診断回路を詳細に説明す
る。
To achieve this purpose, the present invention uses another output port signal, such as a latch pulse, which is output at least once for one loop control, to trigger a flip-flop circuit, and the output of this flip-flop circuit is used as a diagnostic pulse to trigger the other output port signal. This is used to supply the diagnostic pulse input port of the microcomputer. Hereinafter, the microcomputer failure diagnosis circuit according to the present invention will be explained in detail with reference to the drawings.

第3図は本考案によるマイクロコンピユータの
故障診断回路の一実施例を示す回路図であり、第
1図と同一部分は同一記号を用いてその詳細説明
を省略してある。同図に於いて5,6はT型のフ
リツプフロツプであり、このフリツプフロツプ
5,6はマイクロコンピユータ1,2の出力ポー
トP10,P20から1ループ制御毎に送出される第4
図aに示す周期TのラツチパルスL1,L2をトリ
ガ入力している。従つて、このフリツプフロツプ
5,6の出力端Qからは、第4図bに示すよう
に、周期T毎に“H”,“L”に反転する矩形波が
出力されることになる。このフリツプフロツプ
5,6の出力信号は、それぞれ相手方のマイクロ
コンピユータ2,1の診断パルス入力端P12,P22
にそれぞれ供給されている。
FIG. 3 is a circuit diagram showing an embodiment of the microcomputer failure diagnosis circuit according to the present invention, and the same parts as in FIG. 1 are denoted by the same symbols and detailed explanation thereof is omitted. In the figure, numerals 5 and 6 are T-type flip-flops, and these flip-flops 5 and 6 are used for the fourth output from the output ports P 10 and P 20 of the microcomputers 1 and 2 for each loop control.
Latch pulses L 1 and L 2 of period T shown in Figure a are input as a trigger. Therefore, the output terminals Q of the flip-flops 5 and 6 output a rectangular wave that is inverted to "H" and "L" at every cycle T, as shown in FIG. 4b. The output signals of the flip-flops 5 and 6 are connected to the diagnostic pulse input terminals P 12 and P 22 of the opposing microcomputers 2 and 1, respectively.
are supplied respectively.

従つて、このように構成されたマイクロコンピ
ユータの故障診断回路に於いては、マイクロコン
ピユータの1ループ制御毎に出力される周期Tの
ラツチパルスL1,L2が発生される毎にフリツプ
フロツプ5,6がトリガされることになり、トリ
ガされる毎に反転されて第4図bに示す診断パル
スA,Bが送出される。この診断パルスA,B
は、それぞれトリガ用のラツチパルスL1,L2
受けたマイクロコンピユータとは反対側のマイク
ロコンピユータ2,1にそれぞれ供給される。マ
イクロコンピユータ1,2は、フリツプフロツプ
6,5から供給される診断パルスB,Aをそれぞ
れ診断パルス入力端P12,P22を介して周期T毎に
サンプリングして取り込む。この場合、マイクロ
コンピユータ1,2は正常に動作を行なつていれ
ば、ラツチパルスL1,L2はそれぞれ周期Tで順
次送出される。従つて、フリツプフロツプ5,6
はラツチパルスL1,L2が発生される毎に必ずト
リガされ、時間T毎に“H”,“L”に反転する診
断パルスA,Bが送出されることになる。これに
対して、他方のマイクロコンピユータ2,1は、
周期Tのタイミングで順次診断パルスA,Bをサ
ンプリングしている。この結果、診断パルスA,
Bのサンプリング出力は、相手方のマイクロコン
ピユータが正常に動作していれば常に“H”,
“L”を繰り返すことになる。これに対し、マイ
クロコンピユータ1,2が何かの原因によつてプ
ログラムが暴走あるいは閉ループに入る等の故障
を発生すると、ラツチパルスL1,L2の発生周期
が乱れたり、あるいは“H”または“L”の状態
で停止することになる。ラツチパルスL1,L2
このように異常状態を示すと、フリツプフロツプ
5,6の動作も乱れるために、結果としてフリツ
プフロツプ5,6から送出される診断パルスA,
Bも乱れてしまうことになる。このようにして、
診断パルスA,Bに乱れが生ずると、相手方の診
断パルスA,Bをサンプリングするマイクロコン
ピユータ1,2のサンプリング出力が順次
“H”,“L”とはならなくなる。マイクロコンピ
ユータ1,2は、診断パルスB,Aのサンプリン
グ出力が、正常時に対して予め定められた基準値
以上にわたつてその量または回数がずれた場合に
は、相手方のマイクロコンピユータに故障が発生
しているものとして、故障検出信号を送出すると
ともに、故障時に於けるフエールセーフ制御を行
なう。
Therefore, in the fault diagnosis circuit for the microcomputer configured in this way, the flip-flops 5 and 6 are activated every time the latch pulses L 1 and L 2 of period T are output for each loop control of the microcomputer. will be triggered, and each time it is triggered, it will be inverted and the diagnostic pulses A and B shown in FIG. 4b will be sent out. This diagnostic pulse A, B
are supplied to the microcomputers 2 and 1 on the opposite side from the microcomputers that received the trigger latch pulses L 1 and L 2 , respectively. The microcomputers 1 and 2 sample and take in the diagnostic pulses B and A supplied from the flip-flops 6 and 5 at every cycle T via diagnostic pulse input terminals P 12 and P 22 , respectively. In this case, if the microcomputers 1 and 2 are operating normally, the latch pulses L 1 and L 2 are sequentially sent out at a period T, respectively. Therefore, flip-flops 5, 6
is always triggered every time the latch pulses L 1 and L 2 are generated, and the diagnostic pulses A and B, which are inverted to "H" and "L" at every time T, are sent out. On the other hand, the other microcomputers 2 and 1
Diagnostic pulses A and B are sampled sequentially at period T timing. As a result, diagnostic pulse A,
The sampling output of B is always “H” if the other party’s microcomputer is operating normally.
“L” will be repeated. On the other hand, if the microcomputers 1 and 2 malfunction for some reason, such as the program running out of control or entering a closed loop, the generation cycle of the latch pulses L 1 and L 2 may be disrupted, or the latching pulses L 1 and L 2 may become "H" or " It will stop in the "L" state. When the latch pulses L 1 and L 2 exhibit an abnormal state in this way, the operation of the flip-flops 5 and 6 is also disturbed, and as a result, the diagnostic pulses A,
B will also be disrupted. In this way,
If a disturbance occurs in the diagnostic pulses A and B, the sampling outputs of the microcomputers 1 and 2 that sample the diagnostic pulses A and B of the other party will no longer become "H" and "L" in sequence. If the sampling output of diagnostic pulses B and A deviates from the normal state by more than a predetermined reference value, the microcomputers 1 and 2 detect a failure in the other microcomputer. As such, it not only sends out a failure detection signal, but also performs fail-safe control in the event of a failure.

従つて、このような構成に於いては、ラツチパ
ルスL1,L2を利用して診断パルスを発生させる
関係上、マイクロコンピユータ1,2は従来必要
としていた診断パルス送出用の出力ポートがそれ
ぞれ不要になる。このために、マイクロコンピユ
ータ1,2は限られたポートの中で、不用となつ
た診断パルス送出用の出力ポートを有効に利用す
ることが出来、これによつて機能が更に大幅に向
上する。この場合、フリツプフロツプ素子が2個
必要になるが、マイクロコンピユータの出力ポー
トが1個有効に利用出来る点に比較すれば格段に
有利である。
Therefore, in such a configuration, since the latch pulses L 1 and L 2 are used to generate diagnostic pulses, the microcomputers 1 and 2 do not need output ports for transmitting diagnostic pulses, which were required in the past. become. Therefore, among the limited ports, the microcomputers 1 and 2 can effectively utilize the output ports for transmitting diagnostic pulses that are no longer needed, thereby significantly improving their functionality. In this case, two flip-flop elements are required, but this is much more advantageous than the fact that one output port of the microcomputer can be effectively used.

なお、上記実施例に於いては、ラツチパルスを
用いて診断パルス発生用のフリツプフロツプをト
リガした場合についてのみ説明したが、本考案は
これに限定されるものではなく、少なくともプロ
グラムの1ループに於いて1回発生される信号で
あればいかなるものであつても良いことは言うま
でもない。
In the above embodiment, only the case where the latch pulse is used to trigger the flip-flop for generating the diagnostic pulse is explained, but the present invention is not limited to this, and the present invention is not limited to this. It goes without saying that any signal may be used as long as it is generated once.

以上説明したように、本考案は互いに相手方か
ら供給される一定周期の診断パルスを監視し合う
ことによつて故障を検出するマイクロコンピユー
タの故障診断回路に於いて、少なくとも1ループ
制御に於いて1回発生される他の出力ポート信号
を利用してフリツプフロツプをトリガし、このフ
リツプフロツプ出力を診断パルスとして相手方の
マイクロコンピユータに供給するものである。従
つて、マイクロコンピユータはそれぞれ診断パル
スを送出するためのみに用いられていた出力ポー
トが不用になり、この出力ポートを他の機能に有
効利用することが出来る優れた効果を有する。
As explained above, the present invention provides a fault diagnosis circuit for a microcomputer that detects a fault by mutually monitoring diagnostic pulses of a fixed period supplied from each other. Another output port signal generated twice is used to trigger a flip-flop, and the flip-flop output is supplied as a diagnostic pulse to the other microcomputer. Therefore, the microcomputer has the advantage that the output ports used only for sending out diagnostic pulses are no longer needed, and these output ports can be effectively used for other functions.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来のマイクロコンピユータの故障診
断回路を示す回路図、第2図は第1図の動作波形
図、第3図は本考案によるマイクロコンピユータ
の故障診断回路の一実施例を示す回路図、第4図
a,bは第3図の各部動作波形図である。 1,2……マイクロコンピユータ、5,6……
フリツプフロツプ。
Fig. 1 is a circuit diagram showing a conventional fault diagnosis circuit for a microcomputer, Fig. 2 is an operating waveform diagram of Fig. 1, and Fig. 3 is a circuit diagram showing an embodiment of a fault diagnosis circuit for a microcomputer according to the present invention. , FIGS. 4a and 4b are operation waveform diagrams of each part of FIG. 3. 1, 2... microcomputer, 5, 6...
Flip flop.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 第1および第2のマイクロコンピユータと、前
記第1および第2のマイクロコンピユータから少
なくとも1ループ制御に1回出力される他の制御
出力信号を利用してそれぞれトリガされるととも
に、その出力をトリガ信号の供給を受けない側の
マイクロコンピユータに診断パルスとして供給す
るフリツプフロツプとを備え、第1、第2マイク
ロコンピユータは診断パルスの異常を検出するこ
とにより相互に故障診断を行なうマイクロコンピ
ユータの故障診断回路。
The first and second microcomputers are each triggered using another control output signal output from the first and second microcomputers at least once for one loop control, and the output thereof is used as a trigger signal. a flip-flop that supplies diagnostic pulses to the microcomputer on the side that does not receive the supply; the first and second microcomputers mutually diagnose failures by detecting an abnormality in the diagnostic pulses.
JP6213781U 1981-04-28 1981-04-28 Expired JPS622683Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6213781U JPS622683Y2 (en) 1981-04-28 1981-04-28

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6213781U JPS622683Y2 (en) 1981-04-28 1981-04-28

Publications (2)

Publication Number Publication Date
JPS57175239U JPS57175239U (en) 1982-11-05
JPS622683Y2 true JPS622683Y2 (en) 1987-01-22

Family

ID=29858346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6213781U Expired JPS622683Y2 (en) 1981-04-28 1981-04-28

Country Status (1)

Country Link
JP (1) JPS622683Y2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2534909Y2 (en) * 1990-12-14 1997-05-07 日本電気ホームエレクトロニクス株式会社 Arithmetic control unit

Also Published As

Publication number Publication date
JPS57175239U (en) 1982-11-05

Similar Documents

Publication Publication Date Title
JPS6182201A (en) Fail-safe controlling circuit
JP3520662B2 (en) Monitoring device for electronic control unit
JPS622683Y2 (en)
JPS6213119A (en) Non-contact proximity switch
CN114545829B (en) Signal output device, signal output control method, and construction machine
KR940006652Y1 (en) Signal input device
SU661551A2 (en) Device for switching over channels of computing system
KR100277457B1 (en) Interlocking system control device and method of railway
KR100256316B1 (en) A self-tesing apparatus of washing machine
SU598078A1 (en) Information interlocking arrangement
SU1091167A1 (en) Device for checking pulse sequence source
JPS62214446A (en) Interface diagnosing device
JPH0267973A (en) Operation ensuring circuit of diagnostic circuit
SU881678A1 (en) Device for testing terminals
JPS6213153Y2 (en)
JPS61221698A (en) Safety protective device for nuclear reactor
JPH0433054B2 (en)
JPS5836362B2 (en) Error determination device
JPS5916302B2 (en) Check device
JPS63181001A (en) Fault diagnosing device
JPH04346122A (en) Analog input device
JPS6121535A (en) Diagnostic fault processing system
JPS6267478A (en) System for confirming operation of alarm detection circuit
JPS61150027A (en) Timer circuit diagnostic system of serial printer
JPS6118046A (en) Microcomputer