JPH0581222A - Method for monitoring operation of two cpus - Google Patents
Method for monitoring operation of two cpusInfo
- Publication number
- JPH0581222A JPH0581222A JP3241672A JP24167291A JPH0581222A JP H0581222 A JPH0581222 A JP H0581222A JP 3241672 A JP3241672 A JP 3241672A JP 24167291 A JP24167291 A JP 24167291A JP H0581222 A JPH0581222 A JP H0581222A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- sub cpu
- main cpu
- cpus
- sub
- 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.)
- Pending
Links
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は2つのCPUで構成され
るシステムに於いて、CPU相互間のデータバスを用い
てデータの通信を行っている場合のCPU動作監視方法
に関する。例えば、内燃機関等の制御用コントロールユ
ニットに利用できる。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU operation monitoring method in a system composed of two CPUs when data communication is performed using a data bus between the CPUs. For example, it can be used for a control unit for control of an internal combustion engine or the like.
【0002】[0002]
【従来の技術】従来の技術としては、ARRANGMENT FOR M
ONITORING A COMPUTOR SYSTEM HAVINGTWO PROCESSORS I
N A MOTOR VEHICLE(USP4881227)で記載されている様
に、2CPUの動作監視方法は2つのCPU同士で監視し、
故障したCPUに対して正常なCPUからリセット信号
を出力して初期化から再起動させる方法があった。[Prior Art] The conventional technology is ARRANGMENT FOR M
ONITORING A COMPUTOR SYSTEM HAVINGTWO PROCESSORS I
As described in NA MOTOR VEHICLE (USP4881227), the operation monitoring method of 2 CPUs monitors two CPUs,
There has been a method in which a normal CPU outputs a reset signal to a defective CPU to restart from initialization.
【0003】[0003]
【発明が解決しようとする課題】このような従来の技術
では、CPUの動作を監視するための回路の構成が複雑
になり安価に製作することが出来ないと言う課題があっ
た。However, such a conventional technique has a problem that the circuit for monitoring the operation of the CPU has a complicated structure and cannot be manufactured at low cost.
【0004】また、2つのCPUのうち一方をメインC
PU、一方をサブCPUとして使用する場合、仮にメイ
ンCPUが故障したとすればサブCPUからメインCP
Uがリセットされるため、システムとしては機能する事
が出来ないと言う課題があった。One of the two CPUs is the main C
When using one of the PUs as the sub CPU, if the main CPU fails, the sub CPU sends the main CP
Since U was reset, there was a problem that it could not function as a system.
【0005】[0005]
【課題を解決するための手段】これらの課題を解決する
ために本発明では、2CPU間でデータバスを用いたデ
ータの通信を行っている場合、サブ側CPUの動作をメ
インCPUで監視し、サブCPUが故障した場合はメイ
ンCPUからサブCPUをリセットする方式とした。In order to solve these problems, in the present invention, when data communication using a data bus is performed between two CPUs, the operation of the sub CPU is monitored by the main CPU, When the sub CPU fails, the main CPU resets the sub CPU.
【0006】[0006]
【作用】ウオッチドッグタイマ回路は、メインCPUか
ら出力されるプログラムラン信号(例えば、10ms毎
に反転する矩形波)を監視して、メインCPUが故障し
た場合、プログラムラン信号が規定時間内に反転しなく
なる。メイン,サブ両方のCPUにリセット信号(RE
S)を出力する。このRES信号によりメイン,サブ両
方のCPUは初期化から再起動される。The watchdog timer circuit monitors the program run signal output from the main CPU (for example, a rectangular wave that inverts every 10 ms), and if the main CPU fails, the program run signal inverts within a specified time. Will not do. Reset signal (RE
S) is output. Both the main and sub CPUs are restarted from initialization by this RES signal.
【0007】サブCPUが故障した場合は、メインCP
Uとのデータ通信が不能となるため、メインCPU内で
あらかじめ設定したサブCPUの動作監視用フラグ(送
信モードフラグ,受信モードフラグ)が動作せず、サブ
CPU故障と判断し、メインCPUの出力ポートよりサ
ブCPU側へリセット信号(RES)を出力して、サブ
CPUをリセットさせ初期化から再起動させる。When the sub CPU fails, the main CP
Since the data communication with U is disabled, the operation monitoring flags (transmission mode flag, reception mode flag) of the sub CPU set in advance in the main CPU do not operate, it is determined that the sub CPU has failed, and the output of the main CPU A reset signal (RES) is output from the port to the sub CPU side to reset and restart the sub CPU.
【0008】ANDゲートは前記したように、メインC
PU故障時、またはサブCPU故障時の両方の場合に、
サブCPUにリセット信号を入力して、サブCPUを初
期化から再起動させる為に設けたものである。As described above, the AND gate is connected to the main C
In case of both PU failure and sub CPU failure,
It is provided to input a reset signal to the sub CPU and restart the sub CPU from initialization.
【0009】[0009]
【実施例】以下、本発明の一実施例を図面を用いて説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0010】図1に於いてメインCPU,サブCPU間
でデータバスを用いて定期的にデータの通信を行ってい
る場合、この通信を利用してメインCPU側からサブC
PUの動作を監視し、サブCPUの異常を検知した場合
は、サブCPUにリセットをかける。In FIG. 1, when data communication is regularly performed between the main CPU and the sub CPU using the data bus, the sub CPU is used from the main CPU side by utilizing this communication.
The operation of the PU is monitored, and when an abnormality of the sub CPU is detected, the sub CPU is reset.
【0011】メインCPUは、メインCPU内に設定し
たプログラムラン(P−RUN)信号(10ms毎に反
転する矩形波)をCPU外部のウオッチドッグタイマ回
路に入力することにより、動作の監視を行うものとし、
逆方向(サブCPU側からメインCPUへ)のリセット
は行わない。The main CPU monitors the operation by inputting a program run (P-RUN) signal (rectangular wave inverted every 10 ms) set in the main CPU to a watchdog timer circuit outside the CPU. age,
The reverse direction (from the sub CPU side to the main CPU) is not reset.
【0012】次に、図2の概略フローチャートにより動
作の詳細を説明する。Next, the details of the operation will be described with reference to the schematic flowchart of FIG.
【0013】(1) メインCPUのデータバス,サブC
PUのデュアルポートRAM(DPRAM)間で定期的
にデータの通信を行う。(1) Data bus of main CPU, sub C
Data communication is regularly performed between the dual port RAM (DPRAM) of PU.
【0014】データ通信の量は10ms間にメインCP
UからサブCPUへ48Byte、サブCPUからメイ
ンCPUへ16Byteとする。The amount of data communication is 10 ms in the main CP.
48 bytes from U to the sub CPU, and 16 bytes from the sub CPU to the main CPU.
【0015】(2) 1回の通信で送れるデータ量は15
Byteとすると、10ms間に複数回の書き込み/読
みだしを行う。(2) The amount of data that can be sent in one communication is 15
In the case of Byte, writing / reading is performed plural times in 10 ms.
【0016】(3) データ通信の起動は、メイン側CP
Uの10msJOBで行う。その後、双方向に「書き込
み終了/読みだし終了」の割り込みを掛け合って全デー
タの通信を行う。(3) The data communication is activated by the CP on the main side.
It is performed by U's 10 ms JOB. After that, all data communication is performed by bidirectionally interrupting "write end / read end".
【0017】(4) 1回分,15Byteの内、1By
teはその回に送るデータのポインタ(データバッファ
の先頭からのオフセット値)を送り、受信側でポインタ
の値をチェックする。値が正しい時だけ受信を行い、正
しくない時はなにもしない。 (5) メインCPU側では、送信開始時に「送信モード
フラグ」をセットし、全データ送信終了時にリセットす
る。その後「受信モードフラグ」をセットし全データ受
信終了時にリセットする。(4) 1 By, out of 15 Bytes
te sends a pointer of data to be sent at that time (offset value from the head of the data buffer), and the receiving side checks the value of the pointer. Receive only when the value is correct, and do nothing if it is incorrect. (5) On the main CPU side, the "transmission mode flag" is set at the start of transmission and reset at the end of transmission of all data. After that, the "reception mode flag" is set and reset at the end of reception of all data.
【0018】正常にデータ通信が終了すれば、次の10
msJOBのタイミングでは両フラグともリセットされ
ているはずである。When the data communication is normally completed, the next 10
Both flags should be reset at the timing of msJOB.
【0019】(6) メインCPU側またはサブCPU側
でポインタの不一致が発生した時は(4)により通信が終
了しないことになるので「送信モードフラグ」または
「受信モードフラグ」のいずれかがセットされたままに
なる。サブCPU側が暴走したような場合も同様であ
る。(6) When the pointers do not match on the main CPU side or the sub CPU side, the communication will not end due to (4), so either the "transmission mode flag" or the "reception mode flag" is set. Remains as it was. The same applies when the sub CPU side runs out of control.
【0020】(7) メインCPU側10msJOBで通
信起動前に「送信モードフラグ」,「受信モードフラ
グ」をチェックして、もしいずれかがセットされていた
ら前回の10msJOBの通信においてサブCPU側で
異常が発生したと判断する。(7) The main CPU side 10 ms JOB checks the "transmission mode flag" and the "reception mode flag" before starting communication, and if either is set, there is an error in the sub CPU side in the previous 10 ms JOB communication. Is determined to have occurred.
【0021】(8) (7)の状態が所定回(例えば、10
回)連続したら、一過性でない異常がサブCPU側に発
生したと判断し、メインCPUの出力ポートからリセッ
ト信号を出力してサブCPUを初期化から再起動する。(8) The state of (7) is repeated a predetermined number of times (for example, 10
If it continues, it is determined that a non-transient abnormality has occurred on the sub CPU side, and a reset signal is output from the output port of the main CPU to restart the sub CPU from initialization.
【0022】[0022]
【発明の効果】本発明によれば、2つのCPUから構成
されるシステムの場合、CPU相互間で通信を行ってい
れば、CPUの動作を監視するウオッチドッグタイマ回
路はメインCPU側一個のみで成立し、従って回路構成
が簡単になり安価にシステムを構成することができる。
また、サブCPUが暴走または故障により動作しない場
合でも、メインCPU側の制御内容はそのまま動作させ
ることが出来るため、安全性の面で従来技術よりも向上
させることができる。According to the present invention, in the case of a system composed of two CPUs, if the CPUs communicate with each other, only one watchdog timer circuit for monitoring the operation of the CPUs is provided on the main CPU side. Therefore, the circuit configuration is simplified and the system can be constructed at low cost.
Further, even if the sub CPU does not operate due to a runaway or failure, the control contents on the main CPU side can be operated as they are, so that it is possible to improve the safety in comparison with the related art.
【図1】本発明の2CPU構成の動作監視方法構成図で
ある。FIG. 1 is a configuration diagram of an operation monitoring method of a 2-CPU configuration of the present invention.
【図2】本発明の概略フローチャートである。FIG. 2 is a schematic flowchart of the present invention.
1…メインCPU、2…サブCPU、3…ウオッチドッ
グタイマ回路、4…ANDゲート。1 ... Main CPU, 2 ... Sub CPU, 3 ... Watchdog timer circuit, 4 ... AND gate.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 藤沢 正明 茨城県勝田市大字高場2520番地 株式会社 日立製作所自動車機器事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masaaki Fujisawa 2520 Takaba, Katsuta City, Ibaraki Prefecture Hitachi Ltd. Automotive Equipment Division
Claims (3)
で構成されるシステムにおいて、メインCPUとサブC
PUの間でデータバスを用いてデータ通信を行っている
場合のCPU動作監視方法で、メインCPUの動作は外
部に設けたウオッチドッグタイマ回路により監視され、
サブCPUの動作はメインCPUにより監視される事を
特徴とする2CPUの動作監視方法。1. Two CPUs, a main CPU and a sub CPU
In a system consisting of
In the CPU operation monitoring method when data communication is performed between PUs using a data bus, the operation of the main CPU is monitored by an external watchdog timer circuit,
The operation monitoring method for the two CPUs, wherein the operation of the sub CPU is monitored by the main CPU.
で、サブCPUとのデータ通信時、データの先頭または
末尾にあらかじめ設定したサブCPUの動作判定用フラ
グ(送信モードフラグ,受信モードフラグ)の有無によ
り、メインCPUでサブCPUの動作を監視する事を特
徴とする2CPUの動作監視方法。2. A method for monitoring operation of two CPUs according to claim 1, wherein during data communication with the sub CPU, an operation determination flag (transmission mode flag, reception mode flag) of the sub CPU which is preset at the beginning or end of data. A method of monitoring operation of two CPUs, characterized in that the operation of the sub CPU is monitored by the main CPU depending on the presence or absence of.
で、メインCPUが暴走または故障した場合は、外部に
設けたウオッチドッグタイマ回路より出力されるリセッ
ト信号によって、メインCPU,サブCPUとも初期化
から再起動し、また、サブCPUが暴走または故障した場
合は、メインCPUの出力ポートよりサブCPUへリセ
ット信号を出力して、サブCPUを初期化から再起動さ
せる事を特徴とする2CPUの動作監視方法。3. The method of monitoring the operation of the two CPUs according to claim 1, wherein when the main CPU goes out of control or fails, a reset signal output from a watchdog timer circuit provided outside initializes both the main CPU and the sub CPU. When the sub CPU runs away or fails, a reset signal is output from the output port of the main CPU to the sub CPU, and the sub CPU is restarted from initialization. Operation monitoring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3241672A JPH0581222A (en) | 1991-09-20 | 1991-09-20 | Method for monitoring operation of two cpus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3241672A JPH0581222A (en) | 1991-09-20 | 1991-09-20 | Method for monitoring operation of two cpus |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0581222A true JPH0581222A (en) | 1993-04-02 |
Family
ID=17077807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3241672A Pending JPH0581222A (en) | 1991-09-20 | 1991-09-20 | Method for monitoring operation of two cpus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0581222A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6230094B1 (en) | 1998-04-13 | 2001-05-08 | Denso Corporation | Electronic control system and method having monitor program |
US6411872B1 (en) | 2001-02-06 | 2002-06-25 | Mitsubishi Denki Kabushiki Kaisha | Vehicle controlling apparatus |
US6678586B2 (en) | 2000-09-29 | 2004-01-13 | Mitsubishi Denki Kabushiki Kaisha | Vehicle built-in electronic control apparatus |
US6732044B2 (en) | 2002-02-20 | 2004-05-04 | Mitsubishi Denki Kabushiki Kaisha | Vehicular electronic control apparatus |
US6805094B2 (en) | 2002-05-30 | 2004-10-19 | Mitsubishi Denki Kabushiki Kaisha | On-vehicle engine control apparatus |
US6883123B2 (en) | 2001-10-24 | 2005-04-19 | Mitsubishi Denki Kabushiki Kaisha | Microprocessor runaway monitoring control circuit |
US7107488B2 (en) | 2003-07-09 | 2006-09-12 | Mitsubishi Denki Kabushiki Kaisha | Electronic control unit including monitoring control circuit |
US7251551B2 (en) | 2003-09-24 | 2007-07-31 | Mitsubishi Denki Kabushiki Kaisha | On-vehicle electronic control device |
JP2008014274A (en) * | 2006-07-07 | 2008-01-24 | Toyota Motor Corp | Protection device for supercharging system |
CN102591237A (en) * | 2012-02-29 | 2012-07-18 | 四川航天系统工程研究所 | Electrical dual-core control system of underground risk-avoiding apparatus and control method thereof |
US9007385B2 (en) | 2011-08-05 | 2015-04-14 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus |
-
1991
- 1991-09-20 JP JP3241672A patent/JPH0581222A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6230094B1 (en) | 1998-04-13 | 2001-05-08 | Denso Corporation | Electronic control system and method having monitor program |
US6678586B2 (en) | 2000-09-29 | 2004-01-13 | Mitsubishi Denki Kabushiki Kaisha | Vehicle built-in electronic control apparatus |
US6411872B1 (en) | 2001-02-06 | 2002-06-25 | Mitsubishi Denki Kabushiki Kaisha | Vehicle controlling apparatus |
DE10143454B4 (en) * | 2001-02-06 | 2006-05-11 | Mitsubishi Denki K.K. | Device for controlling a vehicle |
US6883123B2 (en) | 2001-10-24 | 2005-04-19 | Mitsubishi Denki Kabushiki Kaisha | Microprocessor runaway monitoring control circuit |
US6732044B2 (en) | 2002-02-20 | 2004-05-04 | Mitsubishi Denki Kabushiki Kaisha | Vehicular electronic control apparatus |
US6805094B2 (en) | 2002-05-30 | 2004-10-19 | Mitsubishi Denki Kabushiki Kaisha | On-vehicle engine control apparatus |
US7107488B2 (en) | 2003-07-09 | 2006-09-12 | Mitsubishi Denki Kabushiki Kaisha | Electronic control unit including monitoring control circuit |
US7251551B2 (en) | 2003-09-24 | 2007-07-31 | Mitsubishi Denki Kabushiki Kaisha | On-vehicle electronic control device |
JP2008014274A (en) * | 2006-07-07 | 2008-01-24 | Toyota Motor Corp | Protection device for supercharging system |
US9007385B2 (en) | 2011-08-05 | 2015-04-14 | Panasonic Intellectual Property Management Co., Ltd. | Image processing apparatus |
CN102591237A (en) * | 2012-02-29 | 2012-07-18 | 四川航天系统工程研究所 | Electrical dual-core control system of underground risk-avoiding apparatus and control method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0773059A (en) | Fault-tolerant computer system | |
JPH0581222A (en) | Method for monitoring operation of two cpus | |
JPH0792765B2 (en) | Input / output controller | |
EP1308811B1 (en) | Electronic control device having control and monitoring CPUS | |
JPH05100879A (en) | Device and method for maintaining integrity of control information | |
US8392642B2 (en) | Timeout preventing device, a timeout preventing method and a program thereof | |
JP3175896B2 (en) | Bus collation type processing apparatus and method | |
US20130055017A1 (en) | Device and method for restoring information in a main storage unit | |
JPH06274361A (en) | Computer system for vehicle control | |
JPH06290160A (en) | Data communication method between microcomputers and multi-microcomputer system | |
JP2980550B2 (en) | Communication device | |
JP3031050B2 (en) | Fault diagnosis device | |
JP2879480B2 (en) | Switching system when redundant computer system loses synchronization | |
KR19990057809A (en) | Error prevention system | |
JP3344432B2 (en) | Information processing device | |
JPH09179835A (en) | Parallel processor system | |
CN117992278A (en) | Fault processing method and vehicle-mounted device | |
JP3211584B2 (en) | Saving and storing RAS data | |
JP2024082558A (en) | Electronic Control System | |
JPS602705B2 (en) | Optional connection method | |
JP3012402B2 (en) | Information processing system | |
JPH0323942B2 (en) | ||
JPS5850049A (en) | Multilogic device system | |
JPH07212844A (en) | Monitor and control data transfer device for vehicle | |
JPH04305758A (en) | Information processor |