JPH0218734B2 - - Google Patents

Info

Publication number
JPH0218734B2
JPH0218734B2 JP59202959A JP20295984A JPH0218734B2 JP H0218734 B2 JPH0218734 B2 JP H0218734B2 JP 59202959 A JP59202959 A JP 59202959A JP 20295984 A JP20295984 A JP 20295984A JP H0218734 B2 JPH0218734 B2 JP H0218734B2
Authority
JP
Japan
Prior art keywords
circuit
signal
output
abnormality
outputs
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 - Lifetime
Application number
JP59202959A
Other languages
Japanese (ja)
Other versions
JPS6182245A (en
Inventor
Takeshi Akita
Hideo Nakamura
Yoshio Sasajima
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.)
Nippon Signal Co Ltd
Railway Technical Research Institute
Original Assignee
Nippon Signal Co Ltd
Railway Technical Research Institute
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 Nippon Signal Co Ltd, Railway Technical Research Institute filed Critical Nippon Signal Co Ltd
Priority to JP59202959A priority Critical patent/JPS6182245A/en
Publication of JPS6182245A publication Critical patent/JPS6182245A/en
Publication of JPH0218734B2 publication Critical patent/JPH0218734B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は特にマイクロコンピユータの異常検出
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention particularly relates to an abnormality detection device for a microcomputer.

〈従来の技術〉 近年では各種の制御装置としてマイクロコンピ
ユータ(以下マイコンとする)が広く使用されて
いる。この場合、マイコンに異常が生じるとマイ
コンが暴走して正常な制御が行えなくなるので、
通常その安全対策としてマイコンの異常を検出す
るための装置が設けられている。
<Prior Art> In recent years, microcomputers (hereinafter referred to as microcomputers) have been widely used as various control devices. In this case, if an abnormality occurs in the microcomputer, the microcomputer will run out of control and will not be able to perform normal control.
As a safety measure, a device is usually provided to detect abnormalities in the microcomputer.

従来のかかる異常検出装置としては、マイコン
のデータバスのデータ信号に基づいて異常検出用
信号を取り出し、かかる異常検出用信号をマイコ
ン自身が読み込んで異常か否かを判定し異常検出
を行うようにしている。
Such a conventional abnormality detection device extracts an abnormality detection signal based on a data signal of a data bus of a microcomputer, and the microcontroller itself reads the abnormality detection signal to determine whether or not an abnormality exists, and performs abnormality detection. ing.

〈発明が解決しようとする問題点〉 ところが、このようにマイコン自身で異常検出
を行うものでは、マイコンの異常時にその異常検
出機能自体も異常になる恐れがあるため正確に検
出が行えず、マイコンの暴走を確実に防止できる
とは限らず確実性の点で問題があつた。
<Problems to be Solved by the Invention> However, with this type of abnormality detection performed by the microcomputer itself, the abnormality detection function itself may become abnormal when an abnormality occurs in the microcomputer, so accurate detection cannot be performed, and the microcomputer There was a problem in terms of reliability as it was not always possible to reliably prevent runaway behavior.

そこで、本発明は上記の実情に鑑みてなされた
もので、マイコンの異常を正確に検出して暴走を
確実に防止できる異常検出装置を提供することを
目的とする。
Therefore, the present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to provide an abnormality detection device that can accurately detect abnormalities in a microcomputer and reliably prevent runaway.

〈問題点を解決するための手段〉 このため本発明は、マイコンのデータ信号に基
づいて異常判定用信号を形成する信号形成回路
と、該信号形成回路からの信号を入力して前記デ
ータ信号が異常か否かを判定し異常時にはこれを
記憶保持すると共に自己の異常時にも異常判定信
号を出力する異常判定回路とで構成した。
<Means for Solving the Problems> Therefore, the present invention provides a signal forming circuit that forms an abnormality determination signal based on a data signal of a microcomputer, and a signal forming circuit that inputs a signal from the signal forming circuit to generate the data signal. It is composed of an abnormality determination circuit that determines whether or not there is an abnormality, stores this information in the event of an abnormality, and outputs an abnormality determination signal even when its own abnormality occurs.

〈作 用〉 これにより、マイコン異常時には、異常判定回
路がこれを検出して例えばマイコンへの電力供給
を停止する回路に出力し、マイコンを不動作状態
にしてマイコンの暴走を確実に防止する。また、
異常判定回路内部に故障が生じたときには、異常
判定回路自身によつてこれを検出し、前述と同様
にしてマイコンの動作を停止するようになつてい
る。
<Function> As a result, when a microcomputer abnormality occurs, the abnormality determination circuit detects this and outputs it to a circuit that stops power supply to the microcomputer, for example, to put the microcomputer in an inoperable state and reliably prevent the microcomputer from running out of control. Also,
When a failure occurs inside the abnormality determination circuit, the failure is detected by the abnormality determination circuit itself, and the operation of the microcomputer is stopped in the same manner as described above.

〈実施例〉 以下本発明の一実施例を図面に基づいて説明す
る。
<Example> An example of the present invention will be described below based on the drawings.

第1図は本実施例の要部回路図で、第2図は本
実施例の構成を示すブロツク図である。
FIG. 1 is a circuit diagram of the main part of this embodiment, and FIG. 2 is a block diagram showing the configuration of this embodiment.

まず、第2図に基づいて本実施例の概略構成を
説明する。
First, the schematic configuration of this embodiment will be explained based on FIG. 2.

図において、1,2はそれぞれ例えば8ビツト
のデータバスa0〜a7,b0〜b7を有するマイコン
で、互いに同期してa0とb0,a1とb1,…a7とb7
それぞれ同一のデータ信号を出力するようになつ
ている。10は前記各マイコン1,2のデータバ
スa0〜a7,b0〜b7からのデータ信号を入力して異
常検出用信号を形成する信号形成回路で、マイコ
ン1,2から入力される16個のデータ信号から一
対の異常検出用信号を出力する。20は前記信号
形成回路10からの一対の異常検出用信号に基づ
いてマイコン1,2が異常か否かを判定し、異常
時にはこれを記憶保持すると共に異常判定信号を
出力する異常判定回路である。また、該異常判定
回路20は自己の異常時にも異常判定信号を出力
する。30は前記異常判定信号が出力されたとき
各マイコン1,2への通電回路に介装されたリレ
ー3を開作動する駆動回路であり、この駆動回路
30とリレー3によつて電力供給停止手段を構成
ている。尚、4は電源、5はマイコン1,2の電
源スイツチである。
In the figure, 1 and 2 are microcomputers each having, for example, 8-bit data buses a 0 to a 7 and b 0 to b 7 . b 7 are configured to output the same data signal. 10 is a signal forming circuit that inputs data signals from the data buses a0 to a7 , b0 to b7 of each of the microcomputers 1 and 2 and forms an abnormality detection signal; Outputs a pair of abnormality detection signals from 16 data signals. Reference numeral 20 denotes an abnormality determination circuit that determines whether or not the microcomputers 1 and 2 are abnormal based on the pair of abnormality detection signals from the signal forming circuit 10, and when abnormal, stores this information and outputs an abnormality determination signal. . Further, the abnormality determination circuit 20 outputs an abnormality determination signal even when its own abnormality occurs. Reference numeral 30 denotes a drive circuit that opens a relay 3 interposed in the energizing circuit to each microcomputer 1, 2 when the abnormality determination signal is output. It consists of Note that 4 is a power supply, and 5 is a power switch for the microcomputers 1 and 2.

次に第1図に基づいて信号形成回路及び異常判
定回路の構成を詳述する。
Next, the configurations of the signal forming circuit and the abnormality determining circuit will be described in detail based on FIG.

まず、信号形成回路10は同一の構成からなる
7つの比較回路11〜17からなる。そして、前
記比較回路11〜17の構成は、比較回路11を
例にとつて説明すると、4つのAND回路A1〜A4
と2つのOR回路B1,B2及び2つのインバータ
D1,D2からなり、AND回路A1〜A4にはマイコ
ン1のデータバスa0,a1からのデータ信号とマイ
コン2のデータバスb0,b1からのデータ信号の反
転信号が所定の組み合わせでそれぞれ2つ入力し
ており、AND回路A1とA2の出力はOR回路B1
入力し、AND回路A3とA4の出力はOR回路B2
入力する。尚、マイコン2のデータ信号はインバ
ータD1とD2によつてそれぞれ反転し所定のAND
回路に入力する。そして、比較回路11,12の
出力は次段の比較回路15に、また比較回路1
3,14の出力は比較回路16にそれぞれ入力
し、更に比較回路15,16の出力は比較回路1
7に入力するよう構成され、マイコン1,2から
の16個のデータ信号から最終的には2つの一対の
異常検出信号を作り出している。
First, the signal forming circuit 10 consists of seven comparison circuits 11 to 17 having the same configuration. The configuration of the comparison circuits 11 to 17 will be explained by taking the comparison circuit 11 as an example. Four AND circuits A 1 to A 4
and two OR circuits B 1 , B 2 and two inverters
D 1 and D 2 , and AND circuits A 1 to A 4 receive data signals from data buses a 0 and a 1 of microcomputer 1 and inverted signals of data signals from data buses b 0 and b 1 of microcomputer 2. There are two inputs each in a predetermined combination, the outputs of AND circuits A 1 and A 2 are input to OR circuit B 1 , and the outputs of AND circuits A 3 and A 4 are input to OR circuit B 2 . Furthermore, the data signal of the microcomputer 2 is inverted by inverters D1 and D2 , respectively, and then converted into a predetermined AND signal.
input to the circuit. The outputs of the comparison circuits 11 and 12 are sent to the next stage comparison circuit 15, and the outputs of the comparison circuits 11 and 12
The outputs of the comparators 3 and 14 are input to the comparator circuit 16, and the outputs of the comparator circuits 15 and 16 are input to the comparator circuit 1.
7, and ultimately generates two pairs of abnormality detection signals from the 16 data signals from the microcomputers 1 and 2.

次に異常判定回路の構成を説明する。 Next, the configuration of the abnormality determination circuit will be explained.

本実施例の異常判定回路20は、信号形成回路
10から出力される一対の判定検出用信号の一方
を遅延させる第1遅延回路21と、前記一対の異
常検出用信号を直接及び前記第1遅延回路21を
介してそれぞれ入力し、両入力信号が互いに相反
する出力レベルのとき出力する第1Exclusive
OR回路(以下第1EOR回路とする)22と、第
1EOR回路22の出力をトリガ信号として入力信
号を記憶保持しこれを出力する第1フリツプフロ
ツプ回路(以下第1F・F回路とする)23と、
後述する第2Exclusive OR回路(以下第2EOR回
路とする)25に入力する第1F・F回路23の
出力の一方を遅延させる第2遅延回路24と、第
1F・F回路23の出力を直接及び第2遅延回路
24を介してそれぞれ入力し両入力信号が互いに
相反する出力レベルのとき出力する前述の第
2EOR回路25と、第2EOR回路25の出力をト
リガ信号として入力信号を記憶保持しこれを出力
する第2フリツプフロツプ回路(以下第2F・F
回路とする)26とを有し、第2F・F回路26
の出力を第1F・F回路23に入力し、第1EOR回
路22に直接入力する異常検出用信号を第2F・
F回路26に入力し、かつ第1及び第2F・F回
路23,26の両出力を異常判定信号として駆動
回路30へ出力する構成である。
The abnormality determination circuit 20 of this embodiment includes a first delay circuit 21 that delays one of the pair of determination detection signals outputted from the signal forming circuit 10, and a first delay circuit 21 that delays one of the pair of determination detection signals outputted from the signal forming circuit 10, and a first delay circuit 21 that delays one of the pair of determination detection signals outputted from the signal forming circuit 10, and a first delay circuit 21 that delays one of the pair of determination detection signals outputted from the signal forming circuit 10, and a first delay circuit 21 that delays one of the pair of determination detection signals output from the signal forming circuit 10. A first Exclusive input signal is inputted through the circuit 21 and outputted when both input signals have opposite output levels.
The OR circuit (hereinafter referred to as the first EOR circuit) 22 and the
a first flip-flop circuit (hereinafter referred to as the first F.F circuit) 23 that stores and holds an input signal using the output of the 1EOR circuit 22 as a trigger signal and outputs it;
A second delay circuit 24 that delays one of the outputs of the first F.F circuit 23 that is input to a second Exclusive OR circuit (hereinafter referred to as a second EOR circuit) 25, which will be described later;
The output of the 1F/F circuit 23 is inputted directly and via the second delay circuit 24, respectively, and output when both input signals are at opposite output levels.
2EOR circuit 25 and a second flip-flop circuit (hereinafter referred to as 2nd F.F.
circuit) 26, and the second F/F circuit 26
The output is input to the 1st F・F circuit 23, and the abnormality detection signal input directly to the 1st EOR circuit 22 is input to the 2nd F・F circuit 23.
The signal is input to the F circuit 26, and both outputs of the first and second F/F circuits 23, 26 are outputted to the drive circuit 30 as an abnormality determination signal.

尚、第1F・F回路23は初期状態ではセツト
信号Sの入力によつてセツトされ出力が“1”と
なり、また第2F・F回路26はリセツト信号R
の入力によつてリセツトされ出力が“0”となる
ようにしてある。
In the initial state, the first F.F circuit 23 is set by the input of the set signal S and its output becomes "1", and the second F.F circuit 26 is set by the input of the reset signal R.
It is reset by the input of , so that the output becomes "0".

次に第3図及び第4図のタイムチヤートを参照
しながら作用を説明する。
Next, the operation will be explained with reference to the time charts of FIGS. 3 and 4.

まず、マイコン1,2が正常な場合の信号形成
回路10の動作について説明する。マイコン1,
2が正常のときには、マイコン1,2とが同期し
ており、データバスa0とb0,…a7とb7は、同一の
データ信号が出力される。
First, the operation of the signal forming circuit 10 when the microcomputers 1 and 2 are normal will be described. Microcomputer 1,
2 is normal, the microcomputers 1 and 2 are synchronized, and the same data signals are output from the data buses a 0 and b 0 , . . . a 7 and b 7 .

例えばa0=b0=“1”でa1=b1=“0”のデータ
信号が出力されたとすると、比較回路11の
AND回路A1〜A4の出力はそれぞれ“1”、“0”、
“0”、“0”となる。従つて、OR回路B1の出力
は“1”となりOR回路B2の出力は“0”とな
る。このようにして、正常時には比較回路11の
2つの出力は互いに反転した出力となる。これ
は、各比較回路12〜17でも同様であり、従つ
て、マイコン1,2が正常な場合には、信号形成
回路10の最終の比較回路17から出力される2
つの異常検出用信号は、互いに反転した“1”と
“0”の信号が出力されることになる。
For example, if a 0 = b 0 = “1” and a data signal of a 1 = b 1 = “0” is output, the comparison circuit 11
The outputs of AND circuits A 1 to A 4 are “1”, “0”, and
It becomes “0”, “0”. Therefore, the output of OR circuit B1 becomes "1" and the output of OR circuit B2 becomes "0". In this way, under normal conditions, the two outputs of the comparator circuit 11 are inverted from each other. This is the same for each comparison circuit 12 to 17. Therefore, when the microcomputers 1 and 2 are normal, the 2 output from the final comparison circuit 17 of the signal forming circuit 10 is
The two abnormality detection signals are output as "1" and "0" signals that are inverted from each other.

次に異常判定回路20の動作を第3図のタイム
チヤートに従つて説明する。
Next, the operation of the abnormality determination circuit 20 will be explained with reference to the time chart shown in FIG.

今、信号形成回路10の2つの出力をそれぞれ
C1,C2とする。そして、C1とC2から第3図に示
す如く相反するパルス信号が出力されると、C1
C2の出力は共に第1EOR回路22に入力するが、
C1の方は直接入力し、C2の方は第1遅延回路2
1を介して第3図示の如くt1時間遅延されて入力
する(第3図C3参照)。従つて、第1EOR回路2
2の出力は第3図中のC4の如くなる。この第
1EOR回路22の出力は第1F・F回路23に入力
し、第1F・F回路23は前記第1EOR回路22の
出力が“1”のときトリガされそのとき入力する
第2F・F回路26の出力を記憶保持すると共に
これを出力する。そして、第1F・F回路23は
初期状態では、セツト信号Sによつて出力が
“1”で、第2F・F回路26はリセツト信号Rに
よつて出力C8は“0”になつているので、第
1F・F回路23は、第1EOR回路22の最初のト
リガ信号で“0”を記憶保持するとともにその出
力が“1”から“0”になる(第3図C5参照)。
Now, the two outputs of the signal forming circuit 10 are
Let them be C 1 and C 2 . Then, when contradictory pulse signals are output from C 1 and C 2 as shown in FIG. 3, C 1 ,
The outputs of C 2 are both input to the first EOR circuit 22,
C 1 is input directly, C 2 is input to the first delay circuit 2
1, and is inputted after being delayed by t1 time as shown in the third figure (see C3 in FIG. 3 ). Therefore, the first EOR circuit 2
The output of 2 is as shown in C 4 in Figure 3. This first
The output of the 1EOR circuit 22 is input to the first F/F circuit 23, and the first F/F circuit 23 is triggered when the output of the first EOR circuit 22 is "1", and the output of the second F/F circuit 26 is input at that time. It stores and outputs this. In the initial state, the first F.F circuit 23 outputs "1" due to the set signal S, and the output C8 of the second F.F circuit 26 becomes "0" due to the reset signal R. So, the first
The 1F/F circuit 23 stores and holds "0" in response to the first trigger signal of the first EOR circuit 22, and its output changes from "1" to "0" (see C5 in FIG. 3).

次に、第1F・F回路23の出力C5は第2EOR回
路25に直接及び第2遅延回路24を介してt2
間遅延されて入力する(第3図中C6参照)。従つ
て、第2EOR回路25の出力C7は第3図示のよう
になり、第1F・F回路23の出力C5が変化した
ときに立ち上がり第2F・F回路26をトリガす
る。そして、第2F・F回路26は前記トリガ信
号によつて、入力する信号形成回路10の一方の
出力C1の“1”を記憶保持すると共にこれを出
力するので、その出力C8は“0”から“1”に
変化する。
Next, the output C5 of the first F.F circuit 23 is input to the second EOR circuit 25 directly and after being delayed for t2 time via the second delay circuit 24 (see C6 in FIG. 3). Therefore, the output C 7 of the second EOR circuit 25 becomes as shown in the third diagram, and rises to trigger the second F·F circuit 26 when the output C 5 of the first F·F circuit 23 changes. Then, the second F/F circuit 26 stores and outputs " 1 " of one output C1 of the input signal forming circuit 10 according to the trigger signal, so that its output C8 becomes "0". ” to “1”.

以上のような動作によつて、信号形成回路10
の出力C1,C2が正常に互いに反転したパルス信
号を出力している場合には、異常判定回路20の
各回路からの出力タイムチヤートは第3図のよう
になり、異常判定回路20の出力、即ち第1及び
第2F・F回路23,26の出力C5,C8は互いに
反転した同位相のパルス信号となる。
Through the above operations, the signal forming circuit 10
When the outputs C 1 and C 2 of the circuit normally output pulse signals inverted from each other, the output time chart from each circuit of the abnormality determination circuit 20 becomes as shown in FIG. The outputs, ie, the outputs C 5 and C 8 of the first and second F·F circuits 23 and 26, are pulse signals having the same phase and are inverted from each other.

次に、マイコン1又は2に異常が生じた場合に
ついて説明する。
Next, a case where an abnormality occurs in the microcomputer 1 or 2 will be explained.

例えばマイコン2に異常が生じデータバスb0
b7の1つ例えばb0のデータ信号が“1”のところ
が“0”を出力たとする。すると、a0=“1”、b0
=“0”でa1=b1=“0”の場合に、4つのAND
回路A1〜A4の出力は、“1”、“0”、“0”、“1”
となり、OR回路B1,B2の出力が共に“1”とな
る。このようにマイコン1又は2に異常が発生す
ると、異常のデータ信号が入力する比較回路の2
つの出力は共に同じになり、従つて、信号形成回
路10の出力C1,C2が同一になる。
For example, an error occurs in microcomputer 2 and the data bus b 0 ~
Suppose that one of b7 , for example b0 , has a data signal of "1" and outputs "0". Then, a 0 = “1”, b 0
= “0” and a 1 = b 1 = “0”, then 4 AND
The outputs of circuits A 1 to A 4 are “1”, “0”, “0”, “1”
Therefore, the outputs of OR circuits B 1 and B 2 both become "1". In this way, when an abnormality occurs in microcomputer 1 or 2, 2 of the comparator circuit to which the abnormal data signal is input
Therefore, the outputs C 1 and C 2 of the signal forming circuit 10 become the same.

今、第4図に示す如く出力C2に一度だけ異常
信号が発生し、出力C2が立ち下がらずそのまま
“1”の信号が出力されたとする。すると、正常
であれば、第1遅延回路21からの出力C3の立
ち下がり信号で第1EOR回路22からトリガ信号
が出力されるところが、この場合には、出力C1
の立ち下がり信号で第1EOR回路22の出力C4
“1”となり第1F・F回路23へトリガ信号を出
力することになる。このとき、第1F・F回路2
3は第2F・F回路26の出力C8の“0”を記憶
保持し、かつ出力する。そして、第2EOR回路2
5は第1F・F回路23の出力C5が“1”から
“0”に変化した時点でその出力C7が“1”とな
り第2F・F回路26をトリガする。この時点で
は出力C1は“1”であり、従つて第2F・F回路
26は“1”を記憶保持すると共にその出力C8
が“0”から“1”に変化する。
Now, suppose that an abnormal signal is generated at the output C2 only once as shown in FIG. 4, and the output C2 does not fall and continues to output a signal of "1". Then, normally, the trigger signal would be output from the first EOR circuit 22 at the falling signal of the output C 3 from the first delay circuit 21, but in this case, the trigger signal is output from the output C 1
At the falling signal of , the output C4 of the first EOR circuit 22 becomes "1" and a trigger signal is output to the first F.F circuit 23. At this time, the 1st F/F circuit 2
3 stores and outputs "0" of the output C8 of the second F.F circuit 26. And the second EOR circuit 2
5, when the output C 5 of the first F.F circuit 23 changes from "1" to "0", its output C 7 becomes "1" and triggers the second F.F circuit 26. At this point, the output C 1 is "1", so the second F.F circuit 26 stores "1" and its output C 8
changes from “0” to “1”.

そして、その後再びマイコン2が正常に戻り出
力C2が正常に復帰したとすると、前述した如く
第1遅延回路21の出力C3が立ち下がつた時点
で第1EOR回路22の出力C4が“1”となり第
1F・F回路23がトリガされ、そのときの入力
“1”を記憶保持すると共に出力C5が“0”から
“1”となる。この出力C5の変化に同期して第
2F・F回路26がトリガされ、出力C1の“1”
を記憶保持しかつ出力するが、前回で第2F・F
回路26の出力C8は“1”になつており、第
2F・F回路26の出力C8は変化せず“1”のま
まとなる。
Then, if the microcomputer 2 returns to normal again and the output C 2 returns to normal, the output C 4 of the first EOR circuit 22 becomes “ 1”
The 1F/F circuit 23 is triggered, stores and holds the input "1" at that time, and output C5 changes from "0" to "1". synchronized with the change in this output C5 .
The 2F/F circuit 26 is triggered and the output C1 becomes “1”
is stored and output, but the 2nd F and F
The output C8 of the circuit 26 is “1”, and the
The output C8 of the 2F/F circuit 26 does not change and remains at "1".

このため、次に第1F・F回路23がトリガさ
れてもその出力C5は“1”のまま変化しないこ
とになる。
Therefore, even if the first F.F circuit 23 is triggered next time, its output C5 remains at "1" and does not change.

このような動作によつて、少なくともマイコン
1又は2が異常のときには、異常判定回路20の
出力C5及びC8はパルス信号にはならず、同レベ
ルの直流信号になつてしまう。
Due to this operation, at least when the microcomputer 1 or 2 is abnormal, the outputs C 5 and C 8 of the abnormality determination circuit 20 do not become pulse signals, but become DC signals of the same level.

ところで、本実施例の異常判定回路20によれ
ば、異常判定回路20自体に故障が発生した場合
にも異常判定信号を出力する。
By the way, according to the abnormality determination circuit 20 of this embodiment, an abnormality determination signal is output even when a failure occurs in the abnormality determination circuit 20 itself.

以下にかかる故障発生時の動作を説明する。 The following describes the operation when such a failure occurs.

例えば、第1遅延回路21が故障して遅延機能
が作動しなくなつた場合には、第1EOR回路22
の出力C4は“0”から“1”に1度立ち上がつ
た後は出力が変化しない。このため、第1F・F
回路23は1度トリガされるだけでその後出力
C5の変化はなく、これにより第2EOR回路25も
“0”から“1”に1度立ち上がるだけとなり第
2F・F回路26も1度トリガされるだけとなる
ので、異常判定回路20の出力C5,C8はマイコ
ンの異常時と同様に変化せず交流波形ではなくな
る。
For example, if the first delay circuit 21 fails and the delay function no longer operates, the first EOR circuit 21
The output C4 does not change after rising from "0" to "1" once. For this reason, the 1st F.
Circuit 23 only needs to be triggered once and then outputs
There is no change in C5 , and as a result, the second EOR circuit 25 only rises from “0” to “1” once, and the
Since the 2F/F circuit 26 is also triggered only once, the outputs C 5 and C 8 of the abnormality determination circuit 20 do not change and are no longer AC waveforms, similar to when the microcomputer is abnormal.

また第2遅延回路24の故障時には、第2EOR
回路25の出力C7が立ち上がらず、第2F・F回
路26はトリガされない。このため、第1F・F
回路23は正常にトリガされるにも拘わらずその
出力変化はなく、従つて異常判定回路20の出力
C5,C8は交流波形ではなくなる。
In addition, when the second delay circuit 24 fails, the second EOR
The output C 7 of the circuit 25 does not rise and the second F.F circuit 26 is not triggered. For this reason, the 1st F.
Although the circuit 23 is normally triggered, its output does not change, so the output of the abnormality determination circuit 20 does not change.
C 5 and C 8 are no longer AC waveforms.

次に第1EOR回路22又は第2EOR回路25が
故障した場合には、第1及び第2F・F回路23,
26がトリガされなくなるので、やはり異常判定
回路20の出力C5,C8は交流波形ではなくなる。
また、第1又は第2F・F回路23又は26の出
力側が故障して出力が変化しなくなつたときに
は、言うまでもなくやはり異常判定回路20の出
力C5,C8は交流波形ではなくなる。
Next, if the first EOR circuit 22 or the second EOR circuit 25 fails, the first and second F/F circuits 23,
26 is no longer triggered, the outputs C 5 and C 8 of the abnormality determination circuit 20 no longer have AC waveforms.
Furthermore, when the output side of the first or second F/F circuit 23 or 26 fails and the output no longer changes, needless to say, the outputs C 5 and C 8 of the abnormality determination circuit 20 no longer have AC waveforms.

更に、第1及び第2F・F回路23,26の故
障として入力信号がそのまま出力信号として出力
されてしまう場合がある。
Furthermore, due to a failure of the first and second F/F circuits 23 and 26, the input signal may be outputted as an output signal.

まず、第1F・F回路23に前記故障が発生し
たときには、第2F・F回路26の出力C8の変化
に同期して第1F・F回路23の出力C5が変化し、
かつ同じレベルの出力となる。従つて、異常判定
回路20の出力は同一のパルス信号が出力され
る。また、第2F・F回路26に故障が生じた場
合には、第2F・F回路26は信号形成回路10
の出力C1の変化に同期してその出力C8が変化し、
一方第1F・F回路23の出力C5は第1遅延回路
21の遅延時間t1だけ遅延されて変化するので、
異常判定回路20の出力はt1時間互いに位相のず
れたパルス信号が出力される。更に、マイコン及
び第2F・F回路23及び26が共に故障した場
合は、共に信号形成回路10の出力C1の変化に
同期て、その出力C5,C8が変化することになり、
異常判定回路20の出力は同一のパルス信号にな
る。
First, when the failure occurs in the first F.F circuit 23, the output C5 of the first F.F circuit 23 changes in synchronization with the change in the output C8 of the second F.F circuit 26,
And the output will be at the same level. Therefore, the same pulse signal is outputted from the abnormality determination circuit 20. Further, if a failure occurs in the second F.F circuit 26, the second F.F circuit 26 is connected to the signal forming circuit 10.
Its output C 8 changes in synchronization with the change in output C 1 of
On the other hand, the output C 5 of the first F·F circuit 23 is delayed by the delay time t 1 of the first delay circuit 21 and changes.
The abnormality determination circuit 20 outputs pulse signals whose phases are shifted from each other for an hour t1 . Furthermore, if both the microcomputer and the second F/F circuits 23 and 26 fail, their outputs C 5 and C 8 will change in synchronization with the change in the output C 1 of the signal forming circuit 10.
The output of the abnormality determination circuit 20 becomes the same pulse signal.

そして、以上述べた異常判定回路20の動作に
基づく出力信号は駆動回路30へ出力される。こ
の駆動回路30は、前述した正常時に出力される
同位相の互いに反転したパルス信号のときのみ増
巾作用を行う交流増巾回路で構成されている。こ
のため、正常時のみリレー3を励磁してその接点
を閉状態に保持しマイコン1,2への通電が可能
となり、異常時には、リレー3が消磁されてその
接点が開放されるため、マイコン1,2への通電
が遮断されマイコン1,2を不動作状態とする。
尚、初期状態では、電源スイツチ5のオン動作に
同期して出力される第1及び第2F・F回路23,
26へのセツト信号S、リセツト信号Rによる各
第2F・F回路23,26の出力に基づいてリレ
ー3が励磁されて接点が閉成しマイコン1,2へ
の通電が行われ正常であれば継続される。
Then, an output signal based on the operation of the abnormality determination circuit 20 described above is output to the drive circuit 30. This drive circuit 30 is constituted by an AC amplification circuit that performs an amplification effect only when pulse signals of the same phase and mutually inverted are outputted during normal operation as described above. Therefore, only in normal conditions, relay 3 is energized and its contacts are kept closed, allowing power to be applied to microcontrollers 1 and 2. In abnormal conditions, relay 3 is demagnetized and its contacts are opened, so microcontroller 1 , 2 is cut off, rendering the microcomputers 1 and 2 inoperable.
In addition, in the initial state, the first and second F/F circuits 23, which are output in synchronization with the ON operation of the power switch 5,
Based on the outputs of the second F and F circuits 23 and 26 by the set signal S and reset signal R to 26, the relay 3 is excited, the contacts are closed, and the microcontrollers 1 and 2 are energized, and if normal. Continued.

従つて、マイコン1,2及び異常判定回路20
の異常時には、これを記憶保持し確実にマイコン
1,2の動作を停止状態に保持でき、マイコン
1,2の暴走を防止することができる。
Therefore, the microcomputers 1 and 2 and the abnormality determination circuit 20
In the event of an abnormality, this information can be stored and the operation of the microcomputers 1 and 2 can be reliably maintained in a stopped state, thereby preventing the microcomputers 1 and 2 from running out of control.

尚、本実施例では、マイコンの異常検出の例を
示したが、これに限らず、互いに相反するパルス
信号を出力する他の制御装置の異常検出にも適用
できることは言うまでもない。また、異常時にマ
イコンの動作を停止させる構成は本実施例に限定
するものではなく、マイコンへの電力供給を停止
させる構成であればよい。
Although this embodiment shows an example of abnormality detection in a microcomputer, it goes without saying that the invention is not limited to this and can be applied to abnormality detection in other control devices that output mutually contradictory pulse signals. Further, the configuration for stopping the operation of the microcomputer in the event of an abnormality is not limited to this embodiment, and any configuration that stops the power supply to the microcomputer may be used.

〈発明の効果〉 以上述べたように本発明によれば、マイコンの
異常発生時にはこれを検出かつ記憶して例えばマ
イコンへの電力供給を停止する構成としたので、
異常時にはマイコンの動作を確実に停止し、かつ
その状態を記憶するため、マイコンの暴走をより
一層確実に防止することができる。また、異常判
定回路自身の故障時にもマイコンの動作を停止す
るので、安全性が格段に優れたものである。
<Effects of the Invention> As described above, according to the present invention, when an abnormality occurs in the microcomputer, the abnormality is detected and stored, and, for example, the power supply to the microcomputer is stopped.
In the event of an abnormality, the operation of the microcomputer is reliably stopped and the status is memorized, making it possible to more reliably prevent the microcomputer from running out of control. Furthermore, since the operation of the microcomputer is stopped even when the abnormality determination circuit itself fails, safety is significantly improved.

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

第1図は本発明の一実施例の要部回路図、第2
図は同上実施例の全体ブロツク図、第3図及び第
4図は同上実施例の動作を説明するためのタイム
チヤートで、第3図は正常時、第4図は異常発生
時の一例を示すものである。 1,2…マイコン、3…リレー、4…電源、1
0…信号形成回路、20…異常判定回路、21…
第1遅延回路、22…第1EOR回路、23…第
1F・F回路、24…第2遅延回路、25…第
2EOR回路、26…第2F・F回路、30…駆動回
路。
FIG. 1 is a circuit diagram of the main part of one embodiment of the present invention, and FIG.
The figure is an overall block diagram of the above embodiment, and Figures 3 and 4 are time charts for explaining the operation of the above embodiment. Figure 3 shows an example in normal operation, and Figure 4 shows an example in the event of abnormality. It is something. 1, 2...Microcomputer, 3...Relay, 4...Power supply, 1
0... Signal forming circuit, 20... Abnormality determination circuit, 21...
1st delay circuit, 22...1st EOR circuit, 23...th
1F/F circuit, 24...second delay circuit, 25...second
2EOR circuit, 26...2nd F/F circuit, 30...drive circuit.

Claims (1)

【特許請求の範囲】 1 マイクロコンピユータのデータ信号に基づい
てマイクロコンピユータの異常を検出する異常検
出装置において、前記データ信号に基づいて異常
検出用信号を形成する信号形成回路を備えると共
に、前記信号形成回路からの信号に基づいて前記
データ信号が異常か否かを判定するデータ信号判
定回路、異常時にこの異常判定を記憶保持する記
憶回路及び前記異常判定及び記憶保持動作の異常
判定を行う自己動作判定回路からなる異常判定回
路を備えて構成したことを特徴とするマイクロコ
ンピユータの異常検出装置。 2 異常判定回路は、前記信号形成回路からの一
対の異常検出用信号の一方を直接入力し他方を第
1遅延回路を介して入力し両入力信号が互いに相
反する出力レベルのとき出力する第1論理回路
と、該第1論理回路の出力をトリガ信号として入
力信号を記憶保持しこれを出力する第1記憶回路
と、該第1記憶回路の出力を直接及び第2遅延回
路を介してそれぞれ入力し両入力信号が互いに相
反する出力レベルのとき出力する第2論理回路
と、第2論理回路の出力をトリガ信号として入力
信号を記憶保持しこれを出力する第2記憶回路と
を有し、第2記憶回路の出力を第1記憶回路に入
力すると共に第1論理回路に直接入力する信号形
成回路の一方の異常検出用信号を第2記憶回路に
入力する一方、第1及び第2記憶回路の両出力を
異常判定信号として出力する構成とした特許請求
の範囲第1項記載のマイクロコンピユータの異常
検出装置。
[Scope of Claims] 1. An abnormality detection device that detects an abnormality in a microcomputer based on a data signal of the microcomputer, comprising a signal forming circuit that forms an abnormality detection signal based on the data signal, and a signal forming circuit that forms an abnormality detection signal based on the data signal. a data signal determination circuit that determines whether or not the data signal is abnormal based on a signal from the circuit; a memory circuit that stores and retains the abnormality determination in the event of an abnormality; and a self-operation determination circuit that performs the abnormality determination and the abnormality determination of the memory retention operation. What is claimed is: 1. An abnormality detection device for a microcomputer, characterized in that it is configured to include an abnormality determination circuit consisting of a circuit. 2. The abnormality determination circuit receives one of the pair of abnormality detection signals from the signal forming circuit directly, inputs the other through the first delay circuit, and outputs the first signal when both input signals have opposite output levels. a logic circuit, a first memory circuit that stores and outputs an input signal using the output of the first logic circuit as a trigger signal, and inputs the output of the first memory circuit directly and through a second delay circuit, respectively. and a second logic circuit that outputs an output when both input signals have opposite output levels, and a second storage circuit that stores and outputs the input signal using the output of the second logic circuit as a trigger signal. The output of the two memory circuits is input to the first memory circuit, and the abnormality detection signal of one of the signal forming circuits directly input to the first logic circuit is input to the second memory circuit. An abnormality detection device for a microcomputer according to claim 1, wherein both outputs are configured to output as an abnormality determination signal.
JP59202959A 1984-09-29 1984-09-29 Abnormality detecting device of microcomputer Granted JPS6182245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59202959A JPS6182245A (en) 1984-09-29 1984-09-29 Abnormality detecting device of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59202959A JPS6182245A (en) 1984-09-29 1984-09-29 Abnormality detecting device of microcomputer

Publications (2)

Publication Number Publication Date
JPS6182245A JPS6182245A (en) 1986-04-25
JPH0218734B2 true JPH0218734B2 (en) 1990-04-26

Family

ID=16465993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59202959A Granted JPS6182245A (en) 1984-09-29 1984-09-29 Abnormality detecting device of microcomputer

Country Status (1)

Country Link
JP (1) JPS6182245A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4647128B2 (en) * 2001-04-09 2011-03-09 学校法人日本大学 Bus verification circuit

Also Published As

Publication number Publication date
JPS6182245A (en) 1986-04-25

Similar Documents

Publication Publication Date Title
JPS5868163A (en) System failure detection method
JPH0411891B2 (en)
JPH0218734B2 (en)
JPS6156906B2 (en)
JPS5840674A (en) Fault deciding method of microcomputer
JPH0333204B2 (en)
JPS6084602A (en) Malfunction preventing circuit
JPS5855535B2 (en) Multi-computer device for vehicles
JPS5936786B2 (en) Failure detection device for weighing machine control
JPS6252536B2 (en)
JPS6129309B2 (en)
JPS6138500B2 (en)
JPH0231888Y2 (en)
JP2002024049A (en) Computer for controlling space machine
JPS5942340B2 (en) Failure detection device
JPH0393435A (en) Operation testing circuit for uninterruptible power source switching apparatus
JPS629938B2 (en)
JPH0527682U (en) Vehicle current detection circuit
JPS5838813B2 (en) logical device
JPH03150017A (en) Automatic inspection system for digital relay
JPS6252650A (en) Memory checking method
JPS6111877A (en) Multiprocessor system
JPS6081664A (en) Microcomputer system
JPH01191951A (en) Microcontroller runaway monitoring circuit
JPS58112159A (en) Control switching method of redundant system