JPH0520121U - Malfunction prevention device for micro computer system - Google Patents

Malfunction prevention device for micro computer system

Info

Publication number
JPH0520121U
JPH0520121U JP6865491U JP6865491U JPH0520121U JP H0520121 U JPH0520121 U JP H0520121U JP 6865491 U JP6865491 U JP 6865491U JP 6865491 U JP6865491 U JP 6865491U JP H0520121 U JPH0520121 U JP H0520121U
Authority
JP
Japan
Prior art keywords
cpu
reset
output
auxiliary
reset signal
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.)
Granted
Application number
JP6865491U
Other languages
Japanese (ja)
Other versions
JP2536789Y2 (en
Inventor
富士男 小野
Original Assignee
日本電子機器株式会社
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 日本電子機器株式会社 filed Critical 日本電子機器株式会社
Priority to JP6865491U priority Critical patent/JP2536789Y2/en
Publication of JPH0520121U publication Critical patent/JPH0520121U/en
Application granted granted Critical
Publication of JP2536789Y2 publication Critical patent/JP2536789Y2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)
  • Multi Processors (AREA)

Abstract

(57)【要約】 【目的】 補助CPUの暴走を回避する。 【構成】 主及び補助CPUを有するマイクロコンピュ
ータシステムであって、補助CPU2にリセット回路4
を有するものにおいて、そのリセット信号(Lレベル)
を主のCPU1が監視し、所定時間内に所定回数以上出
力された場合には、補助CPU2の回復を諦めて、その
使用を中止すべく、連続したリセット信号(Lレベル)
をアンド回路5を介して補助CPU2に出力する。
(57) [Abstract] [Purpose] Avoid runaway of the auxiliary CPU. A microcomputer system having a main CPU and an auxiliary CPU, wherein a reset circuit 4 is provided in the auxiliary CPU 2.
Reset signal (L level)
Is monitored by the main CPU 1 and, if it is output a predetermined number of times or more within a predetermined time, a continuous reset signal (L level) is given in order to give up the recovery of the auxiliary CPU 2 and stop its use.
Is output to the auxiliary CPU 2 via the AND circuit 5.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案は、マイクロコンピュータシステムの誤動作防止装置に関し、特に、主 CPUと補助CPUとの2つのCPUを備えたマイクロコンピュータシステムの 誤動作防止装置に関する。 The present invention relates to a malfunction prevention device for a microcomputer system, and more particularly to a malfunction prevention device for a microcomputer system including two CPUs, a main CPU and an auxiliary CPU.

【0002】[0002]

【従来の技術】[Prior Art]

自動車に搭載されるマイクロコンピュータシステムには、エンジン制御用のC PU(主CPU)と失火の診断や酸素センサの異常診断等用のCPU(補助CP U)との2つのCPUを備えたものがある。また、図4に示すように、これら主 CPU1及び補助CPU2からは、これらが正常に機能しているときには、所定 の周期で反転するプログラムラン(P−RUN)信号が第1リセット回路3及び 第2リセット回路4にそれぞれ出力されるようになっており、第1リセット回路 3及び第2リセット回路4では、これらプログラムラン信号の周期をモニターし て、所定の周期ではなくなったとき、当該CPUが暴走したと見做して、一定時 間幅のリセット信号(Lレベルの信号)を当該CPU1又は2に出力して、リセ ットをかけ、リセットにより当該CPUの機能が回復して、プログラムラン信号 の周期が正常に戻るようにしている(実開昭63−20246号公報参照)。 2. Description of the Related Art A microcomputer system mounted on an automobile has two CPUs, a CPU (main CPU) for controlling an engine and a CPU (auxiliary CPU) for diagnosing a misfire or diagnosing an oxygen sensor abnormality. is there. Further, as shown in FIG. 4, from the main CPU 1 and the auxiliary CPU 2, when they are functioning normally, a program run (P-RUN) signal which is inverted at a predetermined cycle is output from the first reset circuit 3 and the first reset circuit 3. 2 is output to each of the two reset circuits 4, and the first reset circuit 3 and the second reset circuit 4 monitor the cycle of these program run signals, and when the cycle is not a predetermined cycle, the CPU concerned On the assumption that the runaway has occurred, a reset signal (L level signal) of a fixed time width is output to the CPU 1 or 2 for resetting, the function of the CPU is restored by resetting, and the program run is executed. The signal cycle is made to return to normal (see Japanese Utility Model Laid-Open No. 63-20246).

【0003】[0003]

【考案が解決しようとする課題】[Problems to be solved by the device]

しかしながら、このような従来の誤動作防止装置にあっては、図5に示すよう に、補助CPU2からのプログラムラン信号の周期に異常が生じてリセットをか ける場合、1回目のリセット信号にて、当該CPUが正常復帰しない場合には、 所定の間隔をおいて2回目のリセット信号が出力され、当該CPUが正常復帰す るまで断続的にリセット信号が出力されるので、前回のリセット信号と次回のリ セット信号との間Tに、暴走状態にあるCPUが作動することになり、当然、出 力が異常値となり、システムの信頼性が悪化するという問題点があった。 However, in such a conventional malfunction prevention device, as shown in FIG. 5, when an abnormality occurs in the cycle of the program run signal from the auxiliary CPU 2 for resetting, the first reset signal causes If the CPU does not return to normal, the second reset signal is output at a predetermined interval, and the reset signal is output intermittently until the CPU returns to normal. Between the reset signal and the reset signal, the CPU in a runaway state is activated, which naturally causes an abnormal output and deteriorates system reliability.

【0004】 本考案は、このような従来の問題点に鑑み、システムの信頼性をより向上させ ることのできるマイクロコンピュータシステムの誤動作防止装置を提供すること を目的とする。The present invention has been made in view of such conventional problems, and an object thereof is to provide a malfunction preventing device for a microcomputer system capable of further improving the reliability of the system.

【0005】[0005]

【課題を解決するための手段】[Means for Solving the Problems]

上記の目的を達成するため、本考案は、主CPUと補助CPUとを備えるマイ クロコンピュータシステムであって、両CPUの正常動作時に周期的に出力され るプログラムラン信号をそれぞれ入力し、該プログラムラン信号の異常時に一定 時間幅のリセット信号を当該CPUに出力して当該CPUをリセットする主CP U用の第1リセット回路と補助CPU用の第2リセット回路とを有するものにお いて、前記主CPUに、前記第2リセット回路によるリセット信号の発生を監視 し該リセット信号が所定時間内に所定回数以上出力されたときに前記補助CPU に対し強制的に連続したリセット信号を出力する強制連続リセット手段を具備さ せる構成とする。 In order to achieve the above object, the present invention is a micro computer system including a main CPU and an auxiliary CPU, wherein a program run signal that is periodically output during normal operation of both CPUs is input and the program is executed. A first reset circuit for the main CPU and a second reset circuit for the auxiliary CPU, which outputs a reset signal having a constant time width to the CPU when the run signal is abnormal and resets the CPU, Forced continuous monitoring of the generation of a reset signal by the second reset circuit to the main CPU and forcibly outputting a continuous reset signal to the auxiliary CPU when the reset signal is output a predetermined number of times or more within a predetermined time. The configuration is such that reset means is provided.

【0006】[0006]

【作用】[Action]

上記の構成によると、主CPUに具備させた強制連続リセット手段により、第 2リセット回路によるリセット信号の発生を監視して、そのリセット信号が所定 時間内に所定回数以上出力されたときに、補助CPUの回復を諦めて、補助CP Uに対し強制的に連続したリセット信号を出力させる。これにより、一定時間幅 で断続的に出力されるリセット信号の発生間に、異常状態にある補助CPUが作 動して、不都合を生じるのを回避することができる。尚、そのシステムの主なる 制御にかかわるものではない例えば診断用のような補助CPUの場合は、その作 動を停止させても、そのシステムの基本的な制御に支障はない。 According to the above configuration, the forced continuous reset means provided in the main CPU monitors the generation of the reset signal by the second reset circuit, and when the reset signal is output a predetermined number of times or more within a predetermined time, the auxiliary The recovery of the CPU is abandoned, and the auxiliary CPU is forced to output a continuous reset signal. As a result, it is possible to avoid the inconvenience caused by the operation of the auxiliary CPU in an abnormal state during the generation of the reset signal which is intermittently output with a constant time width. In the case of an auxiliary CPU that is not related to the main control of the system, for example, for diagnosis, even if the operation is stopped, the basic control of the system is not hindered.

【0007】[0007]

【実施例】【Example】

以下に、本考案の実施例を図1〜図3に基づいて説明する。 図1を参照して、本実施例のシステムを説明する。1つのコントロールユニッ ト内に主CPU(例えば、エンジン制御用)1と補助CPU(例えば、失火等の 診断用)2とを内蔵している。主CPU1からは、それが正常に動作していると きに、周期的にプログラムラン信号が第1リセット回路に出力され、第1リセッ ト回路3においてその周期を監視し、異常時に一定時間幅のリセット信号を主C PU1に出力して、主CPUの回復を図るようにしている。 An embodiment of the present invention will be described below with reference to FIGS. The system of the present embodiment will be described with reference to FIG. A main CPU (for engine control, for example) 1 and an auxiliary CPU (for diagnosis for misfire, etc.) 2 are built in one control unit. When it is operating normally, the main CPU 1 periodically outputs a program run signal to the first reset circuit, and the first reset circuit 3 monitors the cycle, and when there is an abnormality, it outputs a fixed time width. The reset signal is output to the main CPU 1 to recover the main CPU.

【0008】 一方、補助CPU2からも同様に、それが正常に動作しているときに、周期的 にプログラムラン信号が第2リセット回路4に出力される。第2リセット回路4 のリセット信号出力ポートAは、アンド回路5を介して補助CPU2のリセット 端子Bに接続される。また、リセット信号(Lレベル)の発生を監視させるため 、第2リセット回路4のリセット信号出力ポートAを主CPU1の入力ポートC に接続すると共に、強制リセットを可能にするため、主CPU1の出力ポートD をアンド回路5を介して補助CPU2のリセット端子Bに接続する。On the other hand, the auxiliary CPU 2 also periodically outputs a program run signal to the second reset circuit 4 when it is operating normally. The reset signal output port A of the second reset circuit 4 is connected to the reset terminal B of the auxiliary CPU 2 via the AND circuit 5. In addition, in order to monitor the generation of the reset signal (L level), the reset signal output port A of the second reset circuit 4 is connected to the input port C 1 of the main CPU 1 and the output of the main CPU 1 is output to enable forced reset. The port D 1 is connected to the reset terminal B of the auxiliary CPU 2 via the AND circuit 5.

【0009】 主CPU1では、その入力ポートCに第2リセット回路4からのリセット信号 を受けており、所定時間内に所定回数以上のリセット信号を検出したときに、強 制連続リセット手段により、出力ポートDからアンド回路5を経て、連続したL レベル信号を補助CPUのリセット端子Bに出力し、その作動を中止させる。 図2のフローチャートを参照して、強制連続リセット手段としてのルーチンを 説明する。The main CPU 1 receives the reset signal from the second reset circuit 4 at its input port C, and when the reset signal is detected a predetermined number of times or more within a predetermined time, the forced continuous reset means outputs the signal. A continuous L level signal is output from the port D through the AND circuit 5 to the reset terminal B of the auxiliary CPU to stop its operation. The routine as the forced continuous reset means will be described with reference to the flowchart of FIG.

【0010】 ステップ1(図中、S1と記す。以下同様)では、主CPU1の入力ポートC に第2リセット回路4からリセット信号が入力されたか否かを判定し、入力され たとき(YESのとき)ステップ2に進む。 ステップ2では、リセット信号計測用のカウント値nを1ずつカウントアップ (図3参照)し、ステップ3で、その値が1であるか否かを判定し、1のときの みステップ4でタイマをスタートさせる。In step 1 (denoted as S1 in the figure; the same applies hereinafter), it is determined whether or not a reset signal is input from the second reset circuit 4 to the input port C 1 of the main CPU 1, and when it is input (YES in YES). When) Go to step 2. In step 2, the count value n for reset signal measurement is incremented by 1 (see FIG. 3), and in step 3, it is determined whether the value is 1 or not. To start.

【0011】 次に、ステップ5で、タイマ値より所定時間経過したか否かを判定し、所定時 間経過していないとき(NOのとき)は、ステップ6で、カウント値nが所定値 以上であるか否かを判定し、NOのときは補助CPU2が暴走し続けてはいない と見做して、このルーチンを終了するが、YESのときは所定時間内に所定回数 以上のリセット信号が出力されたことになるので、補助CPU2の回復を諦めて 、その使用を中止すべく、ステップ7に進み、強制的に連続したLレベルのリセ ット信号(図3参照)をアンド回路5を介して補助CPU2に出力し、補助CP U2の使用を中止し、このルーチンを終了する。Next, in step 5, it is determined whether or not a predetermined time has elapsed from the timer value. If the predetermined time has not elapsed (NO), in step 6, the count value n is equal to or greater than the predetermined value. If NO, the auxiliary CPU 2 assumes that the runaway CPU 2 is not continuously running out of control, and this routine is ended, but if YES, the reset signal is output a predetermined number of times or more within a predetermined time. Since this has been output, in order to give up the recovery of the auxiliary CPU 2 and stop its use, proceed to step 7 and forcibly output a continuous L level reset signal (see FIG. 3) to the AND circuit 5. Output to the auxiliary CPU 2 via the auxiliary CPU 2 to stop the use of the auxiliary CPU 2 and terminate this routine.

【0012】 一方、CPU5の判定で、YESのときは、ステップ8に進み、次回のために カウント値を0に戻し、またステップ9でタイマをリセットしてルーチンを終了 する。On the other hand, if the result of the determination by the CPU 5 is YES, the process proceeds to step 8, the count value is returned to 0 for the next time, and the timer is reset in step 9 to end the routine.

【0013】[0013]

【考案の効果】[Effect of the device]

以上説明したように、本考案によると、補助CPUからのプログラムラン信号 の異常時に、一定時間幅のリセット信号を断続的に出力して機能の回復を図るが 、所定時間内に所定回数以上のリセット信号の出力を要するような、補助CPU の機能回復が期待できない場合には、機能回復を諦めて、主CPUにより、補助 CPUを使用しないように、強制的に連続したリセット信号を補助CPUに出力 するようにしたので、断続したリセット信号の発生間に、異常状態にある補助C PUを使用することを回避できる。 As described above, according to the present invention, when the program run signal from the auxiliary CPU is abnormal, a reset signal having a constant time width is intermittently output to recover the function. If the function recovery of the auxiliary CPU, which requires the output of a reset signal, cannot be expected, give up the function recovery and force the main CPU to send a continuous reset signal to the auxiliary CPU so that the auxiliary CPU is not used. Since the output is performed, it is possible to avoid using the auxiliary CPU in an abnormal state while the intermittent reset signal is generated.

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

【図1】 本考案の一実施例を示すシステム図FIG. 1 is a system diagram showing an embodiment of the present invention.

【図2】 本実施例の制御内容を示すフローチャートFIG. 2 is a flowchart showing the control contents of the present embodiment.

【図3】 暴走時の信号を示すタイムチャート[Fig. 3] Time chart showing signals during runaway

【図4】 従来例を示すシステム図FIG. 4 is a system diagram showing a conventional example.

【図5】 従来の暴走時の信号を示すタイムチャートFIG. 5 is a time chart showing signals during a conventional runaway.

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

1 主CPU 2 補助CPU 4 第2リセット回路 5 アンド回路 1 main CPU 2 auxiliary CPU 4 second reset circuit 5 AND circuit

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】主CPUと補助CPUとを備えるマイクロ
コンピュータシステムであって、両CPUの正常動作時
に周期的にそれぞれ出力されるプログラムラン信号をそ
れぞれ入力し、該プログラムラン信号の異常時に一定時
間幅のリセット信号を当該CPUに出力して当該CPU
をリセットする主CPU用の第1リセット回路と補助C
PU用の第2リセット回路とを有するものにおいて、 前記主CPUに、前記第2リセット回路によるリセット
信号の発生を監視し該リセット信号が所定時間内に所定
回数以上出力されたときに前記補助CPUに対し強制的
に連続したリセット信号を出力する強制連続リセット手
段を具備させたことを特徴とするマイクロコンピュータ
システムの誤動作防止装置。
1. A microcomputer system comprising a main CPU and an auxiliary CPU, each of which inputs a program run signal that is periodically output during normal operation of both CPUs, and a predetermined period of time when the program run signal is abnormal. Output a width reset signal to the CPU
Reset circuit for main CPU and auxiliary C
A second reset circuit for PU, wherein the main CPU monitors the generation of a reset signal by the second reset circuit, and when the reset signal is output a predetermined number of times or more within a predetermined time, the auxiliary CPU A malfunction preventing device for a microcomputer system, comprising: a forced continuous reset means for forcibly outputting a continuous reset signal.
JP6865491U 1991-08-28 1991-08-28 Device for preventing malfunction of microcomputer system Expired - Fee Related JP2536789Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6865491U JP2536789Y2 (en) 1991-08-28 1991-08-28 Device for preventing malfunction of microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6865491U JP2536789Y2 (en) 1991-08-28 1991-08-28 Device for preventing malfunction of microcomputer system

Publications (2)

Publication Number Publication Date
JPH0520121U true JPH0520121U (en) 1993-03-12
JP2536789Y2 JP2536789Y2 (en) 1997-05-28

Family

ID=13379907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6865491U Expired - Fee Related JP2536789Y2 (en) 1991-08-28 1991-08-28 Device for preventing malfunction of microcomputer system

Country Status (1)

Country Link
JP (1) JP2536789Y2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334381A (en) * 1994-06-03 1995-12-22 Brother Ind Ltd Device abnormality detection device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5299281B2 (en) * 2007-09-25 2013-09-25 富士通株式会社 Information processing apparatus and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07334381A (en) * 1994-06-03 1995-12-22 Brother Ind Ltd Device abnormality detection device

Also Published As

Publication number Publication date
JP2536789Y2 (en) 1997-05-28

Similar Documents

Publication Publication Date Title
US6883123B2 (en) Microprocessor runaway monitoring control circuit
JP3633092B2 (en) Microcomputer failure monitoring device
US6356821B1 (en) Electronic control unit for vehicle having reduced circuit scale
US6076172A (en) Monitoting system for electronic control unit
JP2593915B2 (en) Double microcomputer system runaway prevention circuit
JP2536789Y2 (en) Device for preventing malfunction of microcomputer system
JP2002196948A (en) Operation control device
JPH08202589A (en) Information processor and fault diagnostic method
JP2870250B2 (en) Microprocessor runaway monitor
JPS622685Y2 (en)
JPS5822462A (en) Program monitoring circuit
JP2557809Y2 (en) Runaway monitoring device
JP3163904B2 (en) CPU device with runaway monitoring function
JP2004310291A (en) CPU system with watchdog timer failure detection circuit
JPS5814204A (en) Microcomputer control device
JPH05189271A (en) Detecting device for abnormality of central processing unit
JPH0395636A (en) Diagnostic system for fail-safe circuit
JPH0830490A (en) How to monitor the start of multiple programs
JP4063699B2 (en) Program runaway detection circuit
JP2885342B2 (en) Protection control device
JPS5868166A (en) Processor fault monitoring device
JP2591690Y2 (en) Runaway monitoring device for CPU
JP3204177B2 (en) Fault diagnosis device for waveform shaping circuit
JPH0498501A (en) Controller
JP3009238B2 (en) Register failure detection device for microcomputer addition

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R323111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees