Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3367379B2 - CPU output control circuit - Google Patents
[go: Go Back, main page]

JP3367379B2 - CPU output control circuit - Google Patents

CPU output control circuit

Info

Publication number
JP3367379B2
JP3367379B2 JP11811497A JP11811497A JP3367379B2 JP 3367379 B2 JP3367379 B2 JP 3367379B2 JP 11811497 A JP11811497 A JP 11811497A JP 11811497 A JP11811497 A JP 11811497A JP 3367379 B2 JP3367379 B2 JP 3367379B2
Authority
JP
Japan
Prior art keywords
output
signal
cpu
command signal
circuit
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
JP11811497A
Other languages
Japanese (ja)
Other versions
JPH10307601A (en
Inventor
俊彦 宮内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11811497A priority Critical patent/JP3367379B2/en
Publication of JPH10307601A publication Critical patent/JPH10307601A/en
Application granted granted Critical
Publication of JP3367379B2 publication Critical patent/JP3367379B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)
  • Control By Computers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はマイコンを利用する
電子回路の出力制御における誤出力の防止に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to prevention of erroneous output in output control of an electronic circuit using a microcomputer.

【0002】[0002]

【従来の技術】マイコンを利用した装置の出力制御回路
は、例えば実開平5−8649号公報に示されるものが
ある。図9はこの公報のものと類似のCPUの出力制御
回路を示すものである。図において1はCPUで多くの
入出力端子を有するが、ここではポート出力、リセット
(RESET)端子、制御出力を出力する出力ポートの
みを示している。2はCPU1の動作を監視するために
CPU1のポート出力に接続されたウオッチドッグタイ
マ(WDT)、3はCPU1の出力ポートに接続された
出力手段、4はこの装置が制御する他の制御対象装置で
ある。CPU1が正常な場合、ポート出力を通じてWD
T2に一定周期でクリアパルス21が出力され、WDT
2は所定の時間間隔内にクリアパルス21を次々に受け
ている間はCPU1が正常と判定する。
2. Description of the Related Art An output control circuit of a device using a microcomputer is disclosed in, for example, Japanese Utility Model Publication No. 5-8649. FIG. 9 shows an output control circuit of a CPU similar to that of this publication. In the figure, reference numeral 1 denotes a CPU, which has many input / output terminals, but here, only a port output, a reset (RESET) terminal, and an output port for outputting a control output are shown. 2 is a watchdog timer (WDT) connected to the port output of the CPU 1 to monitor the operation of the CPU 1; 3 is output means connected to the output port of the CPU 1; and 4 is another controlled device controlled by this device. Is. When CPU1 is normal, WD is output through port output
The clear pulse 21 is output at a constant cycle at T2, and WDT
2 indicates that the CPU 1 is normal while receiving the clear pulse 21 one after another within a predetermined time interval.

【0003】CPU1が異常になった場合はCPU1か
らクリアパルス21が出力されなくなり、WDT2がタ
イムアップしてリセット信号22が発生し、その信号に
よってCPU1がリセットされる。その後の処理は、例
えばCPU1がリスタートするとか、CPU1を停止さ
せたりするとか様々な方法があるが、この発明には直接
関係がないので詳細な説明は省略する。
When the CPU 1 becomes abnormal, the CPU 1 does not output the clear pulse 21, the WDT 2 times up, and the reset signal 22 is generated, which resets the CPU 1. There are various methods for the subsequent processing, such as the CPU 1 being restarted or the CPU 1 being stopped. However, since they are not directly related to the present invention, detailed description thereof will be omitted.

【0004】図10に図9のシステムが動作していると
きの一般的なプログラムのフローを示す。また、図11
にそのタイムチャートを示す。図に於いてメイン処理
(S2)で制御出力が行われるが、プログラムフローを
周回するたびにメイン処理(S2)とWDT2によるチ
ェック(S3)とが交互に行われるので、WDT2への
クリアパルス21を出力した直後(つまりCPU1が正
常と判断した直後)にCPU異常が発生した場合は、次
にWDT2でCPU異常を検出するまでの間はCPU異
常がわからず、リセットがかからないので、その間に誤
った出力動作をする可能性があった。なお、ここで言う
CPU異常の種類は、勿論CPU1が出力を出す動作だ
けは出来るという種類のものに限られている。出力信号
30を出すべき時になにも出さないと言うのも誤出力の
一種である。そして、結果として、WDT2が監視の役
に立たないと言うことになる。
FIG. 10 shows a general program flow when the system of FIG. 9 is operating. In addition, FIG.
Shows the time chart. In the figure, the control output is performed in the main process (S2), but the main process (S2) and the check by WDT2 (S3) are alternately performed every time the program flow is cycled, so the clear pulse 21 to the WDT2 If a CPU abnormality occurs immediately after the output of (that is, immediately after the CPU 1 determines that it is normal), the CPU abnormality is not known until the next WDT 2 detects the CPU abnormality and the reset is not applied. There was a possibility of output operation. It should be noted that the types of CPU abnormalities referred to here are of course limited to those of the type in which the CPU 1 can only perform an output operation. It is also a kind of erroneous output that the output signal 30 is not output when it should be output. And, as a result, it means that WDT2 is not useful for monitoring.

【0005】[0005]

【発明が解決しようとする課題】従来の、CPUの動作
を監視するウォッチドッグタイマを有するCPUにおい
て、出力制御回路は以上のように構成されていたので、
CPUが異常となった後、ウォッチドッグタイマが異常
検出信号を出力するまでの間に、CPUから誤出力信号
が出力されてしまう場合があるという問題があった。こ
の発明は、クリアパルスが出力された直後(つまりCP
Uの動作監視を行って、正常と判断した直後)にCPU
異常が発生した場合でも、誤った出力信号が送出される
恐れのないCPUの出力制御回路を得ようとするもので
ある。
In the conventional CPU having the watchdog timer for monitoring the operation of the CPU, since the output control circuit is configured as described above,
There has been a problem that an erroneous output signal may be output from the CPU after the CPU becomes abnormal until the watchdog timer outputs the abnormality detection signal. This invention is immediately after the clear pulse is output (that is, CP
Immediately after the U operation is monitored and it is determined that the CPU is normal, the CPU
It is intended to obtain an output control circuit of a CPU in which an erroneous output signal is not transmitted even when an abnormality occurs.

【0006】[0006]

【課題を解決するための手段】第1の発明によるCPU
の出力制御回路は、CPUと、このCPUの動作をクリ
ア信号を基に監視して異常を発見したとき信号を発する
ウォッチドッグタイマと、このCPUの出力信号を外部
に出力する出力手段とを有するCPUの出力制御回路で
あって、前記CPU、前記出力信号の出力期間中に
力指令信号を送出するよう構成するとともに、前記CP
Uとは別のハードウェアで構成され、前記出力指令信号
があらかじめ定めた信号仕様に一致するか否かを判定す
令信号判定回路と、前記CPUと前記出力手段との
間に挿入され、前記令信号判定回路が前記出力指令信
号を正規であると判定した場合に、前記出力信号が継続
して出力されていれば前記出力信号を前記出力手段に
力し、前記出力信号が出力されていなければ出力を遮断
するゲート又は記憶回路とを有するフェールセーフ手段
を有するものである。
A CPU according to the first invention
The output control circuit includes a CPU, a watchdog timer that outputs an output signal when an abnormality is found by monitoring the operation of the CPU based on a clear signal, and an output unit that outputs the output signal of the CPU to the outside. An output control circuit of a CPU, wherein the CPU is configured to send an output command signal during an output period of the output signal, and the CP
The U consists of separate hardware, is inserted between the finger command signal determination circuit for determining whether the output command signal matches the signal specifications predetermined said CPU and said output means, when the directive signal determination circuit determines the previous SL output command signal as a legitimate, the output signal is continued
And the output signal if the output out to said output means
Output, shut off the output if the output signal is not output
And a fail-safe means having a gate or a storage circuit .

【0007】第2の発明によるCPUの出力制御回路
は、CPUと、このCPUの動作をクリア信号を基に監
視して異常を発見したとき信号を発するウォッチドッグ
タイマと、このCPUの出力信号を外部に出力する出力
手段とを有するCPUの出力制御回路であって、前記C
PUが、前記出力信号の出力に続いて特定長さのパルス
又は所定の時間長さ以内に出力される複数のパルス信号
で構成される出力指令信号を送出するよう構成するとと
もに、前記CPUとは別のハードウェアで構成され、前
記出力指令信号があらかじめ定めた信号仕様に一致する
か否かを判定する指令信号判定回路と、前記CPUと前
記出力手段との間に挿入され、前記指令信号判定回路が
前記CPUから送出された前記出力指令信号を正規であ
ると判定した場合にのみ、前記出力信号を前記出力手段
に出力するゲート又は記憶回路とを有するフェールセー
フ手段を有するものである。
The output control circuit of the CPU according to the second invention monitors the CPU and the operation of the CPU based on a clear signal.
A watchdog that emits a signal when you detect an abnormality by looking at it
Timer and output that outputs the output signal of this CPU to the outside
An output control circuit of a CPU having means
The PU outputs a pulse of a specific length following the output of the output signal.
Or multiple pulse signals output within a predetermined time length
When configured to send an output command signal consisting of
At the same time, the hardware is different from the CPU,
The output command signal matches the predetermined signal specifications.
A command signal determination circuit for determining whether or not the CPU and the front
Is inserted between the output means and the command signal determination circuit
The output command signal sent from the CPU is normally
Only when it is determined that the output signal
Fail-safe having a gate or a memory circuit for outputting to
It has a means .

【0008】第3の発明によるCPUの出力制御回路
は、CPUと、このCPUの動作をクリア信号を基に監
視して異常を発見したとき信号を発するウォッチドッグ
タイマと、このCPUの出力信号を外部に出力する出力
手段とを有するCPUの出力制御回路であって、前記C
PU、前記出力信号の出力に続いて記憶指令信号と
力指令信号を送出するよう構成するとともに、前記C
PUとは別のハードウェアで構成され、前記記憶指令信
号及び前記出力指令信号があらかじめ定めた信号仕様に
一致するか否か判定する令信号判定回路と、前記C
PUと前記出力手段との間に挿入され、前記指令信号判
定回路が前記記憶指令信号を正規であると判定した場合
にのみ、前記出力信号を記憶し、前記出力信号の記憶に
続いて前記出力指令信号が送出され、かつ、前記令信
号判定回路が前記出力指令信号を正規であると判定した
場合にのみ、前記記憶されている出力信号を前記出力手
段に出力する記憶回路とを有するフェールセーフ手段を
有するものである。
An output control circuit of a CPU according to a third aspect of the present invention outputs the CPU, a watchdog timer which outputs a signal when an abnormality is found by monitoring the operation of the CPU based on a clear signal, and an output signal of the CPU. An output control circuit of a CPU having an output means for outputting to the outside, comprising:
Together with the PU, configured to sent the <br/> force command signal subsequently exits the store command signal in the output of the output signal, the C
The PU consists of separate hardware, the storage command signal
No. and a directive signal determination circuit for determining whether the output command signal matches the signal specifications predetermined said C
Inserted between the PU and the output means, the command signal judgment
When the constant circuit determines that the memory command signal is normal
Only stores the output signal, the storage of said output signal
Then the output command signal is sent out, and, only when the directive signal determination circuit determines the previous SL output command signal as a legitimate, storage for outputting an output signal that is the stored in the output means Fail-safe means with circuit
I have .

【0009】[0009]

【0010】[0010]

【発明の実施の形態】DETAILED DESCRIPTION OF THE INVENTION

実施の形態1.図1に本発明のブロック図を示す。図1
において1はCPUであり、多くの入力端子を有する
が、ここでは少なくともWDTクリア信号21を出力す
るポート出力、制御出力信号30を出力する出力ポー
ト、リセット信号22の入力端子、並びにクロック出力
信号23(以下クロック出力という)を出力するクロッ
ク出力端子を有し、正常時にはプログラムの1周期毎に
WDTクリアパルス21をポート出力に出力している。
なお、以下の説明において、クロック出力23は信号の
受け側から見てクロック入力23と呼ぶ場合もあるが同
じである。2は前記WDTクリアパルス21を受けて、
CPU1の異常を監視するウオッチドッグタイマ回路
(以下、WDTと言う)である。ウオッチドッグタイマ
回路の機能やクリア信号21については良く知られてい
るので詳細な説明は省略する。3は出力手段でCPU1
の制御出力信号30を制御に都合の良い例えば大電流接
点信号などに変換するとともに、信号が更新されるまで
状態を保持するためのものである。4は制御対象で例え
ばヒータとかポンプのモータである。
Embodiment 1. FIG. 1 shows a block diagram of the present invention. Figure 1
1 is a CPU, which has many input terminals, but here, at least a port output for outputting the WDT clear signal 21, an output port for outputting the control output signal 30, an input terminal for the reset signal 22, and a clock output signal 23. It has a clock output terminal for outputting (hereinafter referred to as clock output), and normally outputs the WDT clear pulse 21 to the port output every one cycle of the program.
In the following description, the clock output 23 may be referred to as the clock input 23 when viewed from the signal receiving side, but it is the same. 2 receives the WDT clear pulse 21,
It is a watchdog timer circuit (hereinafter referred to as WDT) that monitors the abnormality of the CPU 1. Since the function of the watchdog timer circuit and the clear signal 21 are well known, detailed description thereof will be omitted. 3 is an output means, and CPU 1
The control output signal 30 is converted into a high current contact signal, which is convenient for control, and the state is maintained until the signal is updated. Reference numeral 4 denotes a control target, such as a heater or a pump motor.

【0011】5はCPU1とは別のハードウェア例えば
シーケンシャルロジック等から構成されるフェールセー
フ手段で、図2に詳細を示すように、出力信号30の入
出力端子とクロック出力23(出力指令信号23)の入
力端子と出力指令信号判定回路11と出力信号30を遮
断したりあるいは出力手段3へ接続したりするゲート1
2とを持つものである。
Reference numeral 5 denotes a fail-safe means composed of hardware other than the CPU 1, such as sequential logic, and as shown in detail in FIG. 2, an input / output terminal of an output signal 30 and a clock output 23 (output command signal 23). 1) which cuts off the input terminal, the output command signal determination circuit 11 and the output signal 30 or connects to the output means 3
It has 2 and 2.

【0012】出力指令信号判定回路11は、入力された
クロック出力23がノイズやCPU1の誤動作に基づく
間違い信号でないことを確認する(あらかじめ定めた仕
様に一致する信号であるかどうか確認する)ためのもの
で、例えば図2に示すように、クロックを内蔵するカウ
ンター13などから構成され、クロック出力23のパル
ス時間長さやパルスの数などがあらかじめ定めたものか
どうかを確認できる。
The output command signal determination circuit 11 confirms that the input clock output 23 is not an error signal due to noise or malfunction of the CPU 1 (whether it is a signal that matches a predetermined specification). For example, as shown in FIG. 2, it is constituted by a counter 13 having a built-in clock and the like, and it is possible to confirm whether the pulse time length of the clock output 23 or the number of pulses is predetermined.

【0013】次に動作について説明する。図3は図1の
装置のプログラムのフローを、図4はそのタイムチャー
トを示すものである。CPU1が正常な時、CPU1は
WDT2を一定周期でリセットしながらプログラムを永
久ループしている。図3のS30はフェールセーフ手段
5の中でのフローを示している。CPU1の出力信号3
0は、フェールセーフ手段5に入力されてもゲート12
によって遮断され、直ちには出力手段3へは送られな
い。この時、CPU1の出力信号30は出力したまま次
の更新まで保持される。CPU1は出力信号30を送出
した(S21)後に、続いて(S22)でクロック出力
23を送出するようにあらかじめプログラムされてい
る。ゲート12は、あらかじめ定めた特定のクロック出
力23(出力指令信号に相当する)がクロック入力端子
に入ったことを出力指令信号判定回路11が確認すれば
(S31)、出力信号30を通過させる(S32)。
Next, the operation will be described. FIG. 3 shows a program flow of the apparatus of FIG. 1, and FIG. 4 shows its time chart. When the CPU 1 is normal, the CPU 1 resets the WDT 2 at a constant cycle and loops the program forever. S30 of FIG. 3 shows a flow in the fail-safe means 5. Output signal 3 of CPU1
Even if 0 is input to the fail safe means 5, the gate 12
It is blocked by and is not immediately sent to the output means 3. At this time, the output signal 30 of the CPU 1 is held as it is until the next update. The CPU 1 is preprogrammed to send the output signal 30 (S21), and subsequently (S22) to send the clock output 23. When the output command signal determination circuit 11 confirms that the predetermined specific clock output 23 (corresponding to the output command signal) has entered the clock input terminal (S31), the gate 12 passes the output signal 30 ( S32).

【0014】ここで、出力指令信号判定回路11は必ず
しもインテリジェントな構成である必要はなく、クロッ
ク出力23が正常であればゲート12を開くことが出来
るもの、例えばシーケンスロジックで構成されているも
のでも良い。CPU1から出力制御する場合、フェール
セーフ手段5のゲート12を開くためには、出力信号3
0を出力(S21)した後、クロック出力23を出力す
る(S22)というシーケンシャルな動作がなければ開
かない。具体的には、出力信号30をフェールセーフ手
段5に出力した後、あらかじめ定めたクロック出力23
をフェールセーフ手段5に与え、且つ、出力指令信号判
定回路11がクロック出力23を正規(正常)であると
判定しなければ、フェールセーフ手段5からの出力が行
われない。
Here, the output command signal determination circuit 11 does not necessarily have to have an intelligent configuration, and may be one that can open the gate 12 if the clock output 23 is normal, for example, one that is configured by a sequence logic. good. When controlling the output from the CPU 1, in order to open the gate 12 of the fail-safe means 5, the output signal 3
It does not open unless there is a sequential operation of outputting 0 (S21) and then outputting the clock output 23 (S22). Specifically, after outputting the output signal 30 to the fail-safe means 5, a predetermined clock output 23
To the fail safe means 5 and the output command signal judgment circuit 11 does not judge the clock output 23 to be normal (normal), the fail safe means 5 does not output.

【0015】次に、CPU異常が発生した場合につい
て、図5の異常時タイミングチャートにより説明する。
CPU異常が発生するとWDT2でCPU異常を検出す
るまでの間のCPU1の挙動は不定になるため、出力ポ
ートより誤出力を出す。しかし、前述のとおり、出力ポ
ートが出力手段3に直結しておらず、フェールセーフ手
段5内のゲート12を介さなければ出力されないため
に、CPU1の出力ポートからの信号を出力手段3に伝
えるためには、CPU1からのシーケンシャルな制御
(即ち、制御出力の後、クロック出力23が出ること)
が、更には、出力指令信号判定回路11がクロック出力
23が正規(正常)であると判定することが必要であ
る。
Next, a case in which a CPU abnormality occurs will be described with reference to the abnormality timing chart of FIG.
When a CPU abnormality occurs, the behavior of the CPU1 becomes unstable until the WDT2 detects the CPU abnormality, and thus an erroneous output is output from the output port. However, as described above, since the output port is not directly connected to the output means 3 and is output only through the gate 12 in the fail-safe means 5, the signal from the output port of the CPU 1 is transmitted to the output means 3. Sequential control from the CPU 1 (that is, the clock output 23 is output after the control output)
However, it is also necessary for the output command signal determination circuit 11 to determine that the clock output 23 is normal (normal).

【0016】また、クロック出力23は例えば特定長さ
の1つのパルスであるとか、所定の時間間隔であらかじ
め定めた数の複数のパルスを含むとか、きわめて特徴の
ある信号仕様を有するように構成されている。したがっ
て、CPU1が暴走しているにもかかわらず、CPU1
がシーケンシャルに正常な形の誤出力をする確率は非常
に低い、また、この期間は最長でもWDT2が異常を検
出するまでの1周期期間だけであるので、最終的に誤出
力がなされる確率はきわめて低いものとなる。
Further, the clock output 23 is configured to have a very characteristic signal specification, for example, one pulse having a specific length or including a predetermined number of plural pulses at a predetermined time interval. ing. Therefore, even though CPU1 is running out of control,
Has a very low probability of sequentially outputting a normal erroneous output. Also, since this period is only one cycle period until WDT2 detects an abnormality at the longest, the probability that an erroneous output will eventually occur is It will be extremely low.

【0017】なお、図4、図5ではクロック出力23
を、所定時間内に出力される2つのパルスで表現してい
るが、これはノイズやCPU1の誤動作で誤って出力さ
れる可能性のある信号との差が識別しやすい特徴のある
信号であれば何でも良く、例えば、所定の正確な時間長
さのパルスであるとか、所定の時間内にある定めた複数
個のパルスが出力されるようなものとするのが好まし
い。
In FIGS. 4 and 5, the clock output 23
Is expressed by two pulses output within a predetermined time. However, this may be a signal having a characteristic that a difference from a signal that may be erroneously output due to noise or a malfunction of the CPU 1 is easy to identify. Any kind of pulse may be used, for example, it is preferable that the pulse has a predetermined accurate time length, or that a plurality of predetermined pulses within a predetermined time are output.

【0018】また、図5においてクロック出力23はク
リアパルス21の直後に出力されるように記載している
が、これはクリアパルス21の直後に故障が発生しても
問題がないことを説明するためであって、クリアパルス
21とクロック出力23との間に特定の時間関係が必要
と言うことではない。このように、CPU1が異常にな
った場合でもWDT2のCPU異常検出不感期間(図5
の異常発生〜故障検出の期間)において、CPU1が出
力した誤出力を外部へ出力しない高信頼な機器(システ
ム)を実現できる。
Further, in FIG. 5, the clock output 23 is described as being output immediately after the clear pulse 21, but it will be explained that there is no problem even if a failure occurs immediately after the clear pulse 21. This is because the clear pulse 21 and the clock output 23 require a specific time relationship. In this way, even when the CPU 1 becomes abnormal, the WDT 2 CPU abnormality detection dead period (see FIG. 5).
It is possible to realize a highly reliable device (system) that does not output the erroneous output output by the CPU 1 to the outside during the period from the abnormality occurrence to the failure detection.

【0019】実施の形態2.実施の形態1の図2におい
て、CPU1の出力信号を遮断し、条件が整ったときに
出力信号30を通過させる手段としてゲート12を用い
たが、例えばメモリー(記憶回路)を用いることでも良
い。即ち、CPU1の出力信号30を一旦記憶回路に記
憶し、続いて出力されるクロック出力23が正常である
と判定されたら記憶していた出力信号30を出力手段3
へ送出すればよい。ゲート12を用いている場合には、
出力信号30を通過させる時点でCPU1の出力が正常
であることが必要であるが、一旦記憶回路に記憶する方
法を用いれば、一旦記憶してしまえばその後にCPU1
の出力30が異常になっても異常な出力が出力されてし
まうことが無いというメリットがある。
Embodiment 2. In FIG. 2 of the first embodiment, the gate 12 is used as means for cutting off the output signal of the CPU 1 and allowing the output signal 30 to pass when conditions are satisfied, but a memory (memory circuit) may be used, for example. That is, the output signal 30 of the CPU 1 is temporarily stored in the storage circuit, and when the subsequently output clock output 23 is determined to be normal, the stored output signal 30 is output means 3
You can send it to. If you are using gate 12,
It is necessary that the output of the CPU 1 is normal at the time when the output signal 30 is passed. However, if the method of once storing in the memory circuit is used, once it is stored, then the CPU 1
There is an advantage that an abnormal output will not be output even if the output 30 of is abnormal.

【0020】実施の形態3.CPU1の異常の起り方は
様々であるから、CPU1が異常であるにも係わらず、
たまたま、クロック出力23があたかも正常であるかの
ように出力されてしまうと言うことがない訳ではない。
このような場合には実施の形態1、2で示したものの場
合、誤出力が出力されてしまう。そこで、このような偶
然による誤出力の機会を更に減少する方法を図6のブロ
ック図、図7の部分詳細ブロック図、図8のタイミング
チャートに示す。
Embodiment 3. Since there are various ways of occurrence of abnormality in the CPU 1, even though the CPU 1 is abnormal,
It does not mean that the clock output 23 happens to be output as if it were normal.
In such a case, an erroneous output will be output in the case of the first and second embodiments. Therefore, a method for further reducing the chance of such an accidental erroneous output is shown in the block diagram of FIG. 6, the partial detailed block diagram of FIG. 7, and the timing chart of FIG.

【0021】図6において、7は実施の形態3による第
2のフェールセーフ手段である。25はCPU1から出
力信号30に続いて出力されるクロックA信号で、26
はクロックA信号25に続いて出力されるクロックB信
号である。これらの信号はノイズなどと識別が容易な特
定の信号パターン(信号仕様)を有していて、出力指令
信号を構成している。
In FIG. 6, 7 is a second fail-safe means according to the third embodiment. 25 is a clock A signal output from the CPU 1 following the output signal 30.
Is a clock B signal output following the clock A signal 25. These signals have a specific signal pattern (signal specification) that can be easily distinguished from noise or the like, and form an output command signal.

【0022】第2のフェールセーフ手段7はCPU1と
は異なる別のハードウェアとして構成され、記憶するこ
とと記憶の読出し(即ち出力)とが、それぞれクロック
A信号25(記憶指令信号に相当)、クロックB信号2
6(出力指令信号に相当)によって制御される記憶回路
8を有している。11は出力指令信号判定回路で、CP
U1からクロックA信号25、クロックB信号26が入
力されたとき、これらの信号が前述した特定の仕様に一
致しているか否かを判定するものである。即ち、これら
の信号が正規のものであるか否かを判定するのである。
勿論、クロックA信号25とクロックB信号26とは異
なる形の信号であって何ら差支えない。
The second fail-safe means 7 is configured as another hardware different from the CPU 1, and storing and reading (that is, output) of the memory are performed by a clock A signal 25 (corresponding to a storage command signal), Clock B signal 2
It has a memory circuit 8 controlled by 6 (corresponding to an output command signal). 11 is an output command signal determination circuit, which is CP
When the clock A signal 25 and the clock B signal 26 are input from U1, it is determined whether or not these signals match the above-mentioned specific specifications. That is, it is determined whether or not these signals are legitimate.
Of course, the clock A signal 25 and the clock B signal 26 are signals of different shapes, and there is no difference.

【0023】そして、CPU1から出力信号30が出力
されても、それが直ちには記憶回路8に記憶されず、C
PU1からクロックA信号25が入力され、なおかつ、
それが正規であると判定されなければ記憶されない。更
に、記憶された信号が出力手段3に出力されるために
は、クロックB信号26が入力され、なおかつ、それが
正規であると判定されなければならない。このように、
フェールセーフ手段7は出力信号30が出力されるため
の条件が2重に必要であるため、誤出力が出力される確
率が実施の形態1のものよりも更に低くなる。クロック
B信号26は、記憶回路8から記憶データを読出す指令
であるから記憶読出し指令とも言う。
Then, even if the output signal 30 is output from the CPU 1, it is not immediately stored in the storage circuit 8, and C
The clock A signal 25 is input from PU1, and
It is not stored unless it is determined to be regular. Furthermore, in order for the stored signal to be output to the output means 3, the clock B signal 26 must be input and it must be determined that it is normal. in this way,
Since the fail-safe means 7 has a double condition for outputting the output signal 30, the probability of erroneous output is further lower than that in the first embodiment. Since the clock B signal 26 is a command for reading the stored data from the storage circuit 8, it is also called a storage read command.

【0024】[0024]

【発明の効果】本発明の第1の発明によるCPUの出力
制御回路は、CPUが、出力信号の出力期間中に出力指
令信号を送出するよう構成するとともに、CPUとは別
のハードウェアで構成され、出力指令信号があらかじめ
定めた信号仕様に一致するか否かを判定する指令信号判
定回路と、CPUと出力手段との間に挿入され、指令信
号判定回路が出力指令信号を正規であると判定した場合
に、出力信号が継続して出力されていれば出力信号を出
力手段に出力し、出力信号が出力されていなければ出力
を遮断するゲート又は記憶回路とを有するフェールセー
フ手段を有するようにしているので、誤出力が出力され
てしまう確率が低くなる。
The output control circuit of the CPU according to the first aspect of the present invention is such that the CPU outputs an output signal during the output period of the output signal.
Command signal, and separate from the CPU
It is composed of hardware of
Command signal judgment to determine whether the specified signal specifications are met
The command signal is inserted between the constant circuit, the CPU and the output means.
When the signal judgment circuit judges that the output command signal is normal
If the output signal is continuously output,
Output to the output means, and output if the output signal is not output
With a gate or a memory circuit for shutting off
Since it is provided with a switching means, the probability that an erroneous output will be output is reduced.

【0025】第2の発明によるCPUの出力制御回路
CPUが、出力信号の出力に続いて特定長さのパル
ス又は所定の時間長さ以内に出力される複数のパルス信
号で構成される出力指令信号を送出するよう構成すると
ともに、CPUとは別のハードウェアで構成され、出力
指令信号があらかじめ定めた信号仕様に一致するか否か
を判定する指令信号判定回路と、CPUと前記出力手段
との間に挿入され、指令信号判定回路がCPUから送出
された出力指令信号を正規であると判定した場合にの
み、出力信号を出力手段に出力するゲート又は記憶回路
とを有するフェールセーフ手段を有するようにしたの
で、CPUが誤動作して出力されてしまう可能性がきわ
めて低くなる。
The output control circuit of the CPU that by the second aspect of the present invention
Is, CPU is the specific length Following the output of the output signal pulse
Or multiple pulse signals output within a specified time length.
Signal output command signal
Both are configured with hardware separate from the CPU, and output
Whether the command signal matches the predetermined signal specifications
Command signal determination circuit for determining the CPU, the CPU and the output means
And the command signal judgment circuit is sent from the CPU.
When the output command signal is judged to be normal,
Only, a gate or memory circuit for outputting an output signal to the output means
Since to have a fail-safe means having bets, possibility the CPU malfunctions would be output becomes extremely low.

【0026】本発明の第3の発明によるCPUの出力制
御回路は、CPUが、出力信号の出力に続いて記憶指令
信号と出力指令信号とを送出するよう構成するととも
に、CPUとは別のハードウェアで構成され、記憶指令
信号及び出力指令信号があらかじめ定めた信号仕様に一
致するか否かを判定する指令信号判定回路と、CPUと
出力手段との間に挿入され、指令信号判定回路が記憶指
令信号を正規であると判定した場合にのみ、出力信号を
記憶し、出力信号の記憶に続いて出力指令信号が送出さ
れ、かつ、指令信号判定回路が出力指令信号を正規であ
ると判定した場合にのみ、記憶されている出力信号を出
力手段に出力する記憶回路とを有するフェールセーフ手
段を有するようにしたので、ウォッチドッグタイマによ
る監視周期の狭間で誤出力が出力されてしまう確率が低
減される。
In the output control circuit of the CPU according to the third aspect of the present invention, the CPU issues a storage command following the output of the output signal.
It is configured to send out a signal and an output command signal.
In addition, it is configured with hardware different from the CPU
Signals and output command signals must meet the predetermined signal specifications.
Command signal determination circuit for determining whether or not to match, and CPU
It is inserted between the output means and the command signal judgment circuit
Output signal only when it is determined that the
The output command signal is sent after storing the output signal.
And the command signal determination circuit outputs the output command signal normally.
If it is determined that the stored output signal is
Fail safe hand with memory circuit for outputting to force means
Since to have a stage, the probability that erroneous output Between the monitoring cycle by the watchdog timer from being outputted is reduced.

【0027】[0027]

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

【図1】 この発明の実施の形態1のCPUの出力制御
回路ブロック図である。
FIG. 1 is a block diagram of an output control circuit of a CPU according to a first embodiment of the present invention.

【図2】 図1の回路のフェールセーフ手段の詳細構成
を示す図である。
FIG. 2 is a diagram showing a detailed configuration of a fail-safe means of the circuit of FIG.

【図3】 図1の回路のプログラムのフローチャートで
ある。
FIG. 3 is a flow chart of a program for the circuit of FIG.

【図4】 図3のフローの正常時のタイミングチャート
である。
FIG. 4 is a timing chart when the flow of FIG. 3 is normal.

【図5】 図3のフローの異常時のタイミングチャート
である。
5 is a timing chart when the flow of FIG. 3 is abnormal.

【図6】 実施の形態3による第2のフェールセーフ手
段のブロック図である。
FIG. 6 is a block diagram of a second fail-safe means according to the third embodiment.

【図7】 図6の回路の第2のフェールセーフ手段の詳
細構成を示す図である。
7 is a diagram showing a detailed configuration of a second fail-safe means of the circuit of FIG.

【図8】 図6の第2のフェールセーフ手段の制御タイ
ミングチャートである。
FIG. 8 is a control timing chart of the second fail-safe means shown in FIG.

【図9】 CPUの従来の出力制御回路のブロック図で
ある。
FIG. 9 is a block diagram of a conventional output control circuit of a CPU.

【図10】図9の回路のプログラムのフローチャートで
ある。
10 is a flowchart of a program for the circuit of FIG.

【図11】図10のフローの動作タイミングチャートで
ある。
11 is an operation timing chart of the flow of FIG.

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

1:CPU 2:ウォッチドッグタイマ
(WDT) 3:出力手段 4:制御対象 5:フェールセーフ手段 6:記憶回路 7:第2のフェールセーフ手段 8:記憶回路 11:出力指令信号判定回
路 12:ゲート 21:WDTクリア信号 22:リセット信号 23:クロック出力信号(出力指令信号) 25:クロックA信号(記憶指令信号) 26:クロックB信号(記憶読出し指令信号) 30:出力信号
1: CPU 2: Watchdog timer (WDT) 3: Output means 4: Control object 5: Fail safe means 6: Memory circuit 7: Second fail safe means 8: Memory circuit 11: Output command signal determination circuit 12: Gate 21: WDT clear signal 22: Reset signal 23: Clock output signal (output command signal) 25: Clock A signal (memory command signal) 26: Clock B signal (memory read command signal) 30: Output signal

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 9/00 - 9/05 G05B 23/00 - 23/02 G06F 11/00 G05B 15/02 ─────────────────────────────────────────────────── ─── Continued Front Page (58) Fields surveyed (Int.Cl. 7 , DB name) G05B 9/00-9/05 G05B 23/00-23/02 G06F 11/00 G05B 15/02

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CPUと、このCPUの動作をクリア信
号を基に監視して異常を発見したとき信号を発するウォ
ッチドッグタイマと、このCPUの出力信号を外部に出
力する出力手段とを有するCPUの出力制御回路であっ
て、 前記CPU、前記出力信号の出力期間中に出力指令信
号を送出するよう構成するとともに、 前記CPUとは別のハードウェアで構成され、前記出力
指令信号があらかじめ定めた信号仕様に一致するか否か
を判定する令信号判定回路と、前記CPUと前記出力
手段との間に挿入され、前記令信号判定回路が前記出
力指令信号を正規であると判定した場合に、前記出力信
号が継続して出力されていれば前記出力信号を前記出力
手段に出力し、前記出力信号が出力されていなければ出
力を遮断するゲート又は記憶回路とを有するフェールセ
ーフ手段を有することを特徴とするCPUの出力制御回
路。
1. A CPU having a CPU, a watchdog timer that outputs a signal when an abnormality is found by monitoring the operation of the CPU based on a clear signal, and an output unit that outputs the output signal of the CPU to the outside. Of the output control circuit, the CPU is configured to send an output command signal during the output period of the output signal, and is configured by hardware different from the CPU, and the output command signal is predetermined. a directive signal determination circuit for determining whether matching signal specifications, is inserted between the output means and the CPU, and the directive signal decision circuit is normal the previous SL output command signal determination The output signal
Signal is continuously output, the output signal is output to the output means, and if the output signal is not output, the output signal is output.
An output control circuit for a CPU, comprising a fail-safe means having a gate or a memory circuit for cutting off power .
【請求項2】 CPUと、このCPUの動作をクリア信
号を基に監視して異常を発見したとき信号を発するウォ
ッチドッグタイマと、このCPUの出力信号を外部に出
力する出力手段とを有するCPUの出力制御回路であっ
て、 前記CPUが、前記出力信号の出力に続いて特定長さの
パルス又は所定の時間長さ以内に出力される複数のパル
ス信号で構成される出力指令信号を送出するよう構成す
るとともに、 前記CPUとは別のハードウェアで構成され、前記出力
指令信号があらかじめ定めた信号仕様に一致するか否か
を判定する指令信号判定回路と、前記CPUと前記出力
手段との間に挿入され、前記指令信号判定回路が前記C
PUから送出された前記出力指令信号を正規であると判
定した場合にのみ、前記出力信号を前記出力手段に出力
するゲート又は記憶回路とを有するフェールセーフ手段
を有することを特徴とする CPUの出力制御回路。
2. A CPU and a clear signal of the operation of the CPU.
No. that sends a signal when an abnormality is found by monitoring based on the
Output the output signal of the CPU and the dog dog timer to the outside.
An output control circuit of a CPU having an output means for applying
The CPU outputs a signal of a specific length following the output of the output signal.
Pulses or multiple pulses output within a predetermined time length
Output command signal composed of
In addition, the output is configured by hardware different from the CPU.
Whether the command signal matches the predetermined signal specifications
Command signal determining circuit for determining the CPU, the CPU and the output
Means for inserting the command signal determination circuit into the C
The output command signal sent from the PU is judged to be normal.
Output the output signal to the output means only when
Fail-safe means having a gate or a memory circuit
An output control circuit of a CPU having:
【請求項3】 CPUと、このCPUの動作をクリア信
号を基に監視して異常を発見したとき信号を発するウォ
ッチドッグタイマと、このCPUの出力信号を外部に出
力する出力手段とを有するCPUの出力制御回路であっ
て、 前記CPU、前記出力信号の出力に続いて記憶指令信
号と出力指令信号を送出するよう構成するとともに、 前記CPUとは別のハードウェアで構成され、前記記憶
指令信号及び前記出力指令信号があらかじめ定めた信号
仕様に一致するか否か判定する令信号判定回路と、
前記CPUと前記出力手段との間に挿入され、前記指令
信号判定回路が前記記憶指令信号を正規であると判定し
た場合にのみ、前記出力信号を記憶し、前記出力信号の
記憶に続いて前記出力指令信号が送出され、かつ、前記
令信号判定回路が前記出力指令信号を正規であると判
定した場合にのみ、前記記憶されている出力信号を前記
出力手段に出力する記憶回路とを有するフェールセーフ
手段を有することを特徴とするCPUの出力制御回路。
3. A CPU having a CPU, a watchdog timer which outputs a signal when an abnormality is found by monitoring the operation of the CPU based on a clear signal, and an output means which outputs the output signal of the CPU to the outside. the output control circuit, the CPU is, signal storage command subsequent to an output of said output signal
No. and thereby adapted to deliver an output command signal, is constituted by separate hardware and the CPU, the memory
A directive signal determination circuit for determining whether the command signal and the output command signal matches the signal specifications predetermined
The command is inserted between the CPU and the output means.
The signal determination circuit determines that the memory command signal is normal.
Only when the output signal is stored ,
The output command signal is transmitted following storage, and
Only when the directive signal determination circuit determines the previous SL output command signal as a legitimate, that have a fail-safe means that having a storage circuit for outputting an output signal that is the stored in the output means the output control circuit of the CPU, wherein the this.
JP11811497A 1997-05-08 1997-05-08 CPU output control circuit Expired - Lifetime JP3367379B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11811497A JP3367379B2 (en) 1997-05-08 1997-05-08 CPU output control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11811497A JP3367379B2 (en) 1997-05-08 1997-05-08 CPU output control circuit

Publications (2)

Publication Number Publication Date
JPH10307601A JPH10307601A (en) 1998-11-17
JP3367379B2 true JP3367379B2 (en) 2003-01-14

Family

ID=14728382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11811497A Expired - Lifetime JP3367379B2 (en) 1997-05-08 1997-05-08 CPU output control circuit

Country Status (1)

Country Link
JP (1) JP3367379B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3616367B2 (en) 2001-10-24 2005-02-02 三菱電機株式会社 Electronic control device
JP2009265711A (en) * 2008-04-22 2009-11-12 Hitachi High-Technologies Corp Control system

Also Published As

Publication number Publication date
JPH10307601A (en) 1998-11-17

Similar Documents

Publication Publication Date Title
JP2001206296A (en) Method and apparatus for generating maintenance messages
US4627057A (en) Method and arrangement for the functional testing of computers
JP3367379B2 (en) CPU output control circuit
JPH01298446A (en) Double microcomputer system runaway preventing circuit
US20020174377A1 (en) Method for automatically detecting and correcting duplicate controller SCSI ids
KR102438148B1 (en) Abnormality detection apparatus, system and method for detecting abnormality of embedded computing module
EP0509479B1 (en) Multiprocessor system
JP4613019B2 (en) Computer system
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JPS622685Y2 (en)
JP2508305B2 (en) Initial value determination device
KR102213254B1 (en) Method for detecting error of plural micom using single watchdog and apparatus thereof
JPH02281343A (en) Cpu operation monitor system
JPS5855535B2 (en) Multi-computer device for vehicles
JPH08202589A (en) Information processor and fault diagnostic method
JPH0273451A (en) Controller
US7016995B1 (en) Systems and methods for preventing disruption of one or more system buses
JPH01310422A (en) Microcomputer reset circuit
JP3082806B2 (en) Fault diagnosis device
KR200183293Y1 (en) recovery device of abnormality occurrence for persnal computer
JP2770051B2 (en) Input/Output Control Unit
JPH04127206A (en) Supervisory unit for abnormality of controller
JPH0916434A (en) Detecting method for failure information at time of runaway of cpu
CA2168076A1 (en) Power supply controller for magnetic disk apparatus
JPH05324407A (en) Cpu monitor system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071108

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081108

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091108

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101108

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111108

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121108

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20131108

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term