JPH05163998A - Backup control device for processor - Google Patents

Backup control device for processor

Info

Publication number
JPH05163998A
JPH05163998A JP3333622A JP33362291A JPH05163998A JP H05163998 A JPH05163998 A JP H05163998A JP 3333622 A JP3333622 A JP 3333622A JP 33362291 A JP33362291 A JP 33362291A JP H05163998 A JPH05163998 A JP H05163998A
Authority
JP
Japan
Prior art keywords
processor
arithmetic processing
input
control
processing program
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
Application number
JP3333622A
Other languages
Japanese (ja)
Inventor
Tetsuo Ishii
徹郎 石井
Akira Saito
昭 斉藤
Shiro Nagasawa
四郎 長沢
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.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP3333622A priority Critical patent/JPH05163998A/en
Publication of JPH05163998A publication Critical patent/JPH05163998A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To realize cost reduction and to improve controlprocessing speed by composing a multi-processor type backup control device to be fully applicable at normal time and to display a sufficient function even at backup time. CONSTITUTION:In the case where a main processor is normal, a subprocessor 3 inputs a car speed signal SPD and outputs a control ISC for the fine control of the target number of revolutions in the control of the number of idle revolutions. In the case where the main processor is abnormal, the input of the car speed signal SPD is changed into the input of engine speed signal Ne by a multiplexer 17, and a processing program to be executed is changed from a fuel-cut signal processing program into a fuel injection rate control signal processing program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、2つのプロセッサを有
し、一方のプロセッサの異常時には他方のプロセッサに
おいて演算処理を実行するプロセッサのバックアップ制
御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a backup control device for a processor which has two processors and executes arithmetic processing in the other processor when one of the processors is abnormal.

【0002】[0002]

【従来の技術】従来、特開昭63−183254号公報
や、特開平3−70837号公報に記載の車両の内燃機
関用電子制御装置において、マルチプロセッサ式のバッ
クアップ制御装置が知られている。これら公報記載の装
置では、メインプロセッサと全く同等の演算機能を有し
たサブプロセッサによるフルバックアップシステムが採
用されている。
2. Description of the Related Art Conventionally, a multiprocessor type backup control device is known as an electronic control device for an internal combustion engine of a vehicle described in JP-A-63-183254 and JP-A-3-70837. In the devices described in these publications, a full backup system using a sub-processor having the same arithmetic function as the main processor is adopted.

【0003】このため、メインプロセッサとサブプロセ
ッサでは主要な入力信号及び出力信号を並列にして各プ
ロセッサとの入出力を行わなければならなかった。従っ
て、メインプロセッサもサブプロセッサも同数の入出力
ポート(以下、I/Oポートという)を備えたものが必
要となった。
Therefore, in the main processor and the sub-processor, main input signals and output signals must be arranged in parallel to perform input / output with each processor. Therefore, both the main processor and the sub processor are required to have the same number of input / output ports (hereinafter referred to as I / O ports).

【0004】[0004]

【発明が解決しようとする課題】ところで、プロセッサ
においてI/Oポート数が増加すると大幅なコストアッ
プになることが知られている。また、多数のI/Oポー
トを使用する場合には、各ポートへの割り込み処理を行
わなければならず、割り込み回数の増加に伴って制御処
理速度が制約を受けていた。
By the way, it is known that an increase in the number of I / O ports in a processor causes a significant increase in cost. Further, when a large number of I / O ports are used, interrupt processing for each port must be performed, and the control processing speed is restricted as the number of interrupts increases.

【0005】従って、従来のフルバックアップシステム
では、コストアップと共に、正常時の制御処理速度が制
約を受けるという問題があった。そこで、バックアップ
機能を備えつつ、フルバックアップの如く系全体として
多数のI/Oポート数を必要としないプロセッサのバッ
クアップ制御装置を提供することを目的として本発明を
完成した。なお、主眼はI/Oポート数の低減にある
が、別に正常時における制御処理速度の向上を達成する
ことのできるプロセッサのバックアップ制御装置を提供
することをも目的とする。
Therefore, in the conventional full backup system, there is a problem that the control processing speed in a normal condition is restricted as the cost increases. Therefore, the present invention has been completed for the purpose of providing a backup control device for a processor which has a backup function and does not require a large number of I / O ports in the entire system like a full backup. Although the main object is to reduce the number of I / O ports, it is another object to provide a backup control device for a processor that can achieve an improvement in control processing speed in a normal state.

【0006】[0006]

【課題を解決するための手段及び作用】かかる目的を達
成すべく、本発明においては、請求項1に記載する如
く、検出対象から入力される信号に基づいて第1の演算
処理プラグラムを実行して得た制御信号を制御対象に出
力する第1のプロセッサと、第1のプロセッサの異常を
検出する異常検出手段と、第1のプロセッサ異常時には
第1のプロセッサに代わって前記第1の演算処理プログ
ラムを実行するサブプロセッサとを備えたプロセッサの
バックアップ制御装置において、前記第2のプロセッサ
は、前記第1のプロセッサが正常時に系全体として実行
すべき演算処理の内、前記第1の演算処理以外の制御処
理のための入出力を割り付けられて前記第1のプロセッ
サの実行する演算処理とは重複しない演算処理を実行
し、前記異常検出手段が第1のプロセッサの異常を検出
した場合には、前記第2のプロセッサの入出力の割り付
け状態を、第1のプロセッサの実行していた前記第1の
演算処理を実行可能な入出力の割り付け状態に切り換え
る割付状態切換手段を備えたことを特徴とする。
In order to achieve such an object, in the present invention, as described in claim 1, the first arithmetic processing program is executed based on the signal input from the detection target. A first processor for outputting the obtained control signal to a control target; an abnormality detecting means for detecting an abnormality of the first processor; and the first arithmetic processing in place of the first processor when the first processor is abnormal In a backup control device for a processor including a sub-processor that executes a program, the second processor is one of the arithmetic processing to be executed by the first processor as a whole when normal, except the first arithmetic processing. Input / output for the control processing of the first processor is executed, and the arithmetic processing that does not overlap with the arithmetic processing executed by the first processor is executed. When an abnormality of the first processor is detected, the input / output allocation state of the second processor is changed to the input / output allocation state capable of executing the first arithmetic processing that was being executed by the first processor. It is characterized by comprising an allocation state switching means for switching to.

【0007】上記請求項1記載のプロセッサのバックア
ップ制御装置によれば、第1のプロセッサの正常時に
は、第2のプロセッサは、第1のプロセッサとは重複し
ない制御処理を行う。従って、第1のプロセッサ側とし
ては、この第2のプロセッサが受け持つこととなる制御
処理特有の検出対象から入力信号を受ける必要がなく、
かつその様な制御処理に基づく出力もする必要がない。
従って、これらの分だけ第1のプロセッサが備えるべき
入出力ポート数を低減することができる。このことは、
また、第1のプロセッサについての割り込み処理回数を
減少させることができ、第1のプロセッサはそれの受け
持った制御処理を迅速に実行することができる。一方、
第1のプロセッサに異常が発生した場合には、割付状態
切換手段によって、第2のプロセッサの入出力ポートの
割り付け状態が切り換えられる。
According to the backup control apparatus for a processor of the first aspect, when the first processor is normal, the second processor performs a control process which does not overlap with the first processor. Therefore, it is not necessary for the first processor side to receive an input signal from the detection target peculiar to the control process that is to be handled by the second processor.
Moreover, there is no need to output based on such control processing.
Therefore, the number of input / output ports that the first processor should have can be reduced by these amounts. This is
In addition, the number of interrupt processes for the first processor can be reduced, and the first processor can quickly execute the control process under its control. on the other hand,
When an abnormality occurs in the first processor, the allocation status switching means switches the allocation status of the input / output port of the second processor.

【0008】具体的には、例えば、請求項2記載のプロ
セッサのバックアップ制御装置の様に、前記割付状態切
換手段は、第2のプロセッサの特定の入出力ポートが第
1のプロセッサ正常時に接続されている検出対象又は制
御対象に代えて、前記第1の演算処理に必要な検出対象
又は制御対象との接続状態に切り換える手段であり、当
該切り換えの後は、当該切り換えられた入出力ポートに
関係して第1のプロセッサ正常時に実行されていた演算
処理プログラムに代えて、前記第1の演算処理プログラ
ムを実行可能な状態に切り換えるプログラム切換手段を
も備えるものとして構成することができる。
Specifically, for example, like the backup controller of the processor according to claim 2, the allocation state switching means is connected to a specific input / output port of the second processor when the first processor is normal. Means for switching to a connection state with a detection target or a control target necessary for the first arithmetic processing instead of the detection target or the control target being present, and after the switching, it is related to the switched input / output port. Then, instead of the arithmetic processing program that was being executed when the first processor was operating normally, a program switching means for switching the first arithmetic processing program to an executable state can be provided.

【0009】この結果、第1のプロセッサ異常時には、
第2のプロセッサが、第1のプロセッサに代わって第1
の演算処理プログラムを実行する。このため、例えば請
求項4記載の様に、前記第1の演算処理プログラムは系
全体で実行すべき演算処理の内、重要度が高い演算処理
として構成すれば、少なくとも重要度の高い制御処理は
第1のプロセッサ異常時にもバックアップして実行する
ことができ、バックアップ時の制御処理としては十分と
いえる。
As a result, when the first processor is abnormal,
The second processor replaces the first processor with the first processor
The calculation processing program of is executed. For this reason, for example, if the first arithmetic processing program is configured as an arithmetic processing having a high degree of importance among the arithmetic processing to be executed in the entire system, at least a control processing having a high degree of importance is executed. Even when the first processor is abnormal, it can be backed up and executed, which can be said to be sufficient as control processing at the time of backup.

【0010】この様に、請求項1記載のプロセッサのバ
ックアップ制御装置によれば、十分なバックアップ機能
を備えると共に、I/Oポート数を低減することができ
る。そして、第1のプロセッサの正常時の割り込み処理
負担をも低減し、迅速な処理を実行することが可能とな
るという顕著な作用をも奏する。そして、請求項2記載
のプロセッサのバックアップ制御装置によれば、第2の
プロセッサについても最初から第1の演算処理に必要な
割付をしなくてよいから、フルバックアップの場合に比
べて系全体でのI/Oポート数の低減効果は極めて高
く、結局は従来のフルバックアップ装置のI/Oポート
数を半減したものとして系全体を構成することができ
る。
As described above, according to the processor backup control device of the first aspect, it is possible to provide a sufficient backup function and reduce the number of I / O ports. Then, the interrupt processing load of the first processor at the normal time is also reduced, and the remarkable effect that it becomes possible to execute the speedy processing is exerted. According to the processor backup control device of the second aspect, the allocation necessary for the first arithmetic processing does not have to be allocated to the second processor from the beginning, so that the entire system is compared with the case of the full backup. The effect of reducing the number of I / O ports is extremely high, and in the end, the entire system can be configured by reducing the number of I / O ports of the conventional full backup device by half.

【0011】ところで、第1のプロセッサのI/Oポー
ト数を低減することは系全体のI/Oポート数の低減に
極めて有効であるばかりか、正常時の割り込み処理負担
の低減による迅速処理の達成という観点からも極めて顕
著な作用を奏する。従って、系全体のI/Oポート数を
半減しなくてもかかる作用を奏するならば、極めて技術
的に有効な装置となる。
By the way, reducing the number of I / O ports of the first processor is extremely effective not only in reducing the number of I / O ports in the entire system, but also reduces the interrupt processing load during normal operation, which results in quick processing. It also has a very remarkable effect from the viewpoint of achievement. Therefore, if such an action is achieved without reducing the number of I / O ports in the entire system by half, the device is extremely technically effective.

【0012】かかる観点にたてば、請求項3記載の様
に、請求項1記載のプロセッサのバックアップ制御装置
において、前記第2のプロセッサは、最初から、第1の
演算処理プログラムに関連する検出対象又は制御対象に
ついて割り付けられた入出力ポートをも備え、前記割付
状態切換手段は、第1のプロセッサ正常時には第2のプ
ロセッサの前記第1の演算処理プログラムに関連する検
出対象又は制御対象について割り付けられた入出力ポー
トに対する入力又は出力の禁止若しくは第1の演算処理
プログラムの実行の禁止を設定すると共に、第1のプロ
セッサ異常時には当該禁止を解除する手段であることを
特徴とするプロセッサのバックアップ制御装置として構
成しても本発明の目的を十分に達成することができる。
From this point of view, in the backup control device for a processor according to claim 1, as described in claim 3, the second processor detects from the beginning the detection related to the first arithmetic processing program. An input / output port allocated to a target or a control target is also provided, and the allocation state switching means allocates a detection target or a control target related to the first arithmetic processing program of the second processor when the first processor is normal. Backup control of the processor, which is means for setting prohibition of input or output to the input / output port or prohibition of execution of the first arithmetic processing program and canceling the prohibition when the first processor is abnormal. Even when configured as a device, the object of the present invention can be sufficiently achieved.

【0013】この請求項3記載の装置によれば、正常時
には、第2のプロセッサは第1の演算処理プログラム以
外の処理についてのみ入出力及びそれに伴う演算処理を
行い、異常時のみフルバックアップに必要な全ての入出
力及び演算処理を行う。この結果、異常時になって初め
て第1の演算処理プログラム(例えば、請求項4記載の
ように系全体で実行すべき演算処理の内、重要度が高い
演算処)が第2のプロセッサ側で開始されることにな
る。従って、正常時には重要な制御処理に必要な入出力
ポートはないのと同じことになり、正常時の第2のプロ
セッサにおける割り込み処理をすべきポート数を減少で
きて迅速な処理に対応することができる。第1のプロセ
ッサについても割り込み処理負担を低減できることはも
ちろんである。また、異常時には重要な処理を含めた全
ての処理をバックアップすることができる。
According to the apparatus of the third aspect, during normal operation, the second processor performs input / output and accompanying arithmetic processing only for processing other than the first arithmetic processing program, and is required for full backup only during abnormal operation. All input / output and arithmetic processing are performed. As a result, the first arithmetic processing program (for example, the arithmetic processing with high importance in the arithmetic processing to be executed by the entire system as claimed in claim 4) is started on the second processor side only when an abnormality occurs. Will be done. Therefore, it is the same as that there is no input / output port required for important control processing under normal conditions, and the number of ports for interrupt processing in the second processor under normal conditions can be reduced, enabling quick processing. it can. It goes without saying that the interrupt processing load can be reduced for the first processor as well. Moreover, all processes including important processes can be backed up at the time of abnormality.

【0014】この請求項3記載の装置によれば、系全体
のI/Oポート数を半減とまではできないものの、従来
のフルバックアップシステムに比べれば系全体でははる
かに少ないI/Oポート数で装置全体を構成することが
でき、しかもフルバックアップをすることもできるので
ある。
According to the apparatus of the third aspect, although the number of I / O ports in the entire system cannot be reduced to half, the number of I / O ports in the entire system is much smaller than that in the conventional full backup system. The entire device can be configured and full backup can be performed.

【0015】[0015]

【実施例】以下、本発明を車両の内燃機関における燃料
噴射制御等を行う装置のバックアップ制御装置に適用し
た実施例について図面に基づいて説明する。第1実施例
は、図1に示す様に、メインプロセッサ1(第1のプロ
セッサ)と、サブプロセッサ3(第2のプロセッサ)
と、両者を監視するモニタ回路5(異常検出手段)とか
らなるマルチプロセッサ式のバックアップ制御装置であ
って、特に重要な処理として噴射弁7への噴射量制御信
号TFに関するバックアップ時出力切換回路9を有して
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a backup control device for a device for controlling fuel injection in an internal combustion engine of a vehicle will be described below with reference to the drawings. In the first embodiment, as shown in FIG. 1, a main processor 1 (first processor) and a sub processor 3 (second processor).
And a monitor circuit 5 (abnormality detecting means) for monitoring both of them, which is a multiprocessor type backup control device, and a backup output switching circuit 9 relating to the injection amount control signal TF to the injection valve 7 as a particularly important process. have.

【0016】メインプロセッサ1は、回転数センサ11
からの回転数信号NeをキャプチャポートCP11に入力
すると共に、その他の検出対象からの信号IN11,IN
12,IN13をも入力し、燃料噴射量制御信号TFやその
他の制御信号OUT11,OUT12等を演算し、噴射弁7
等のそれぞれの制御対象に出力する。
The main processor 1 includes a rotation speed sensor 11
The rotation speed signal Ne from is input to the capture port CP11 and signals IN11 and IN from other detection targets are input.
12 and IN13 are also input to calculate the fuel injection amount control signal TF and other control signals OUT11 and OUT12, and the injection valve 7
Etc. to each controlled object.

【0017】サブプロセッサ3は、車速センサ13から
の車速信号SPDをキャプチャポートCP31に入力する
と共に、その他の検出対象からの信号IN31,IN32,
IN33をも入力し、例えばアイドル回転数制御の目標回
転数の微調整や燃料カットのための演算を行い、それぞ
れの制御対象に出力する。
The sub-processor 3 inputs the vehicle speed signal SPD from the vehicle speed sensor 13 to the capture port CP31, and also receives signals IN31, IN32,
IN33 is also input, for example, fine adjustment of the target speed of idle speed control and calculation for fuel cut are performed, and output to each control target.

【0018】ここで、本実施例の装置においては、正常
時には回転数信号Neがサブプロセッサ3へは入力され
ていない点に一つの特徴がある。このため、サブプロセ
ッサ3側では、従来のフルバックアップシステム(主要
な処理だけのフルバックアップシステムも含む)と比べ
た場合に、正常時にはキャプチャポートCP31を他の信
号(本実施例では車速信号SPD)の入力ポートとして
使用することができるのである。
Here, one feature of the apparatus of this embodiment is that the rotation speed signal Ne is not input to the sub-processor 3 under normal conditions. Therefore, on the side of the sub-processor 3, when compared with the conventional full backup system (including the full backup system for only the main processing), the capture port CP31 normally outputs another signal (vehicle speed signal SPD in this embodiment). It can be used as an input port of.

【0019】即ち、本実施例のシステムでは、最も重要
な処理である燃料噴射量制御信号TFの演算・出力はメ
インプロセッサ1が受持ち、重用度の劣るアイドル回転
数制御の目標回転数の微調整の演算・出力はサブプロセ
ッサ3が受け持つという構成を採用している。このた
め、正常時にはメインプロセッサ1は車速信号SPDに
基づくアイドル回転数制御の目標回転数の微調整の演算
・出力を行う機能を備える必要がない。従って、メイン
プロセッサ1について見た場合には、サブプロセッサ3
が受け持つこととなった制御処理用の入力ポートを節約
できるばかりでなく、正常時の各種制御処理を行う場合
の割り込み処理の必要回数が減り、制御処理の迅速化も
可能になっている。
That is, in the system of this embodiment, the main processor 1 takes charge of calculation and output of the fuel injection amount control signal TF, which is the most important processing, and fine adjustment of the target rotational speed of the idle rotational speed control, which is less important, is performed. The sub-processor 3 is in charge of the calculation and output of. Therefore, during normal operation, the main processor 1 does not need to have a function of performing calculation / output of fine adjustment of the target rotation speed of the idle rotation speed control based on the vehicle speed signal SPD. Therefore, when looking at the main processor 1, the sub processor 3
Not only is it possible to save the input port for control processing, which has been taken charge of by, but also the number of times interrupt processing is required when performing various normal control processing is reduced, and control processing can be speeded up.

【0020】モニタ回路5は、いわゆるウォッチドッグ
タイマ回路による監視を行っており、メインプロセッサ
1に異常があることを検出した場合には、それに基づい
てサブプロセッサ3へ異常検知信号SF1を出力する。
この異常検知信号SF1は、メインプロセッサ1のリセ
ット端子RSTに与えられると同時に、バックアップ時
出力切換回路9へも与えられ、噴射弁7と各プロセッサ
1,3との接続状態が切り換えられる。なお、モニタ回
路5は、サブプロセッサ3が異常であるか否かも監視を
しており、サブプロセッサ3が異常な場合にはその旨の
異常検知信号SF2を、メインプロセッサ1へ与えると
同時にサブプロセッサのリセット端子RSTへも与え
る。この結果、異常検知信号SF1が入力されるとメイ
ンプロセッサ1はリセット状態となり、かつサブプロセ
ッサ3はメインプロセッサ1が異常であることを検知す
ることになる。逆に、異常検知信号SF2が入力された
ら、サブプロセッサ3はリセット状態となり、かつメイ
ンプロセッサ1はサブプロセッサ1が異常であることを
検知することになる。なお、本実施例で重要なのは異常
検知信号SF1が入力された場合、即ちメインプロセッ
サ1が異常となった場合である。以下、メインプロセッ
サ1が異常の場合に実行される制御処理について説明す
る。
The monitor circuit 5 monitors by a so-called watchdog timer circuit, and when it detects that the main processor 1 has an abnormality, it outputs an abnormality detection signal SF1 to the sub processor 3 based on the abnormality.
This abnormality detection signal SF1 is given to the reset terminal RST of the main processor 1 and at the same time to the backup output switching circuit 9 to switch the connection state between the injection valve 7 and each processor 1, 3. The monitor circuit 5 also monitors whether or not the sub-processor 3 is abnormal. When the sub-processor 3 is abnormal, the monitor circuit 5 gives an abnormality detection signal SF2 to that effect to the main processor 1 and at the same time. Is also applied to the reset terminal RST. As a result, when the abnormality detection signal SF1 is input, the main processor 1 enters the reset state, and the sub processor 3 detects that the main processor 1 is abnormal. On the contrary, when the abnormality detection signal SF2 is input, the sub processor 3 is in the reset state, and the main processor 1 detects that the sub processor 1 is abnormal. The important point in this embodiment is when the abnormality detection signal SF1 is input, that is, when the main processor 1 becomes abnormal. Hereinafter, the control process executed when the main processor 1 is abnormal will be described.

【0021】メインプロセッサ1が異常となり、異常検
知信号SF1を読み込むと、サブプロセッサ3は、キャ
プチャポートCP31からの入力により実行すべき演算処
理プログラムを、アイドル回転数制御の目標回転数の微
調整の演算処理プログラムから燃料噴射量制御信号演算
処理プログラムに切り換える処理を行う。
When the main processor 1 becomes abnormal and the abnormality detection signal SF1 is read, the sub processor 3 executes the arithmetic processing program to be executed by the input from the capture port CP31 for fine adjustment of the target rotational speed of the idle rotational speed control. Processing for switching from the arithmetic processing program to the fuel injection amount control signal arithmetic processing program is performed.

【0022】一方、車速センサ13とサブプロセッサ3
のキャプチャポートCP31とを接続する入力経路15の
途中には、キャプチャポートCP31への入力信号を車速
信号SPDから回転数信号Neに切り換えるためのマル
チプレクサ17(割付状態切換手段)が介装されてい
る。図1に模式化して表す様に、このマルチプレクサ1
7は、センサ側にNe端子17aとSPD端子17bを
有すると共に、プロセッサ側にキャプチャ端子17cを
有している。そして、モニタ回路5から異常検知信号S
F1が入力されない間は図示実線の様に端子17b−1
7c間を接続状態としているが、異常検知信号SF1が
入力されると図示点線の様に端子17a−17c間を接
続状態とする切り換えを実行する。
On the other hand, the vehicle speed sensor 13 and the sub processor 3
A multiplexer 17 (allocation state switching means) for switching the input signal to the capture port CP31 from the vehicle speed signal SPD to the rotation speed signal Ne is provided in the middle of the input path 15 connecting the capture port CP31 of the above. .. As shown schematically in FIG. 1, this multiplexer 1
7 has a Ne terminal 17a and an SPD terminal 17b on the sensor side and a capture terminal 17c on the processor side. Then, the abnormality detection signal S from the monitor circuit 5
While F1 is not input, the terminal 17b-1
7c are connected, but when the abnormality detection signal SF1 is input, switching between terminals 17a-17c is performed as indicated by the dotted line in the figure.

【0023】この様に構成されているから、実施例のバ
ックアップ制御装置では、メインプロセッサ1に異常が
あった場合には、モニタ回路5からバックアップ時出力
切換回路9,サブプロセッサ3及びマルチプレクサ17
へ同時に異常検知信号SF1が入力される。すると、マ
ルチプレクサ17において車速信号SPDから回転数信
号Neへのサブプロセッサ入力信号の切り換えが実行さ
れる。また、サブプロセッサ3においてメインプロセッ
サ1のリセット処理と、キャプチャポートCP31からの
入力により実行すべき演算処理プログラムをアイドル回
転数制御の目標回転数の微調整の演算処理プログラムか
ら燃料噴射量制御信号演算処理プログラムに切り換える
処理と、が共に実行される。そして、バックアップ時出
力切換回路9において噴射弁7への制御信号出力プロセ
ッサの切り換えが実行される。なお、メインプロセッサ
1の出力状態がリセット入力により異常時特有の出力状
態として確定する場合は、切換回路9へは異常検知信号
SF1を入力しなくてもよく、かかる異常時特有の出力
状態を受け入れないゲートとして構成していてもよい。
With such a configuration, in the backup control device of the embodiment, when the main processor 1 is abnormal, the monitor circuit 5 switches the backup output switching circuit 9, the sub processor 3, and the multiplexer 17 to each other.
At the same time, the abnormality detection signal SF1 is input. Then, the multiplexer 17 switches the sub-processor input signal from the vehicle speed signal SPD to the rotation speed signal Ne. Further, in the sub-processor 3, the reset processing of the main processor 1 and the arithmetic processing program to be executed by the input from the capture port CP31 are used to calculate the fuel injection amount control signal from the arithmetic processing program for the fine adjustment of the target rotational speed of the idle rotational speed control. The processing of switching to the processing program is executed together. Then, the backup output switching circuit 9 switches the control signal output processor to the injection valve 7. When the output state of the main processor 1 is determined by the reset input as the output state peculiar to the abnormality, it is not necessary to input the abnormality detection signal SF1 to the switching circuit 9, and the output state peculiar to the abnormality is accepted. It may be configured as a non-gate.

【0024】この結果、メインプロセッサ1が異常とな
った後は、最重要な処理である燃料噴射量制御がサブプ
ロセッサ3により実行される。そして異常時には、重要
度の低いアイドル回転数制御の目標回転数の微調整の制
御は行われなくなる。次に、第2実施例を説明する。第
2実施例は、図2に示す様に、第1実施例とほぼ同様の
構成であるが、マルチプレクサ117によりバックアッ
プ時に回転数信号Neに切り換えられる入力がスイッチ
入力である点と、バックアップ時出力切換回路109に
おいては正常時にスイッチ制御対象120に対して出力
を行っていたアウトプットコンペアOCRを噴射弁10
7への出力に切り換える点とが異なる。
As a result, after the main processor 1 becomes abnormal, the fuel injection amount control, which is the most important process, is executed by the sub processor 3. Then, at the time of abnormality, the control of fine adjustment of the target rotation speed of the idle rotation speed control, which is of low importance, is not performed. Next, a second embodiment will be described. As shown in FIG. 2, the second embodiment has substantially the same configuration as that of the first embodiment, except that the input that is switched to the rotation speed signal Ne at the time of backup by the multiplexer 117 is the switch input, and the output at the time of backup. In the switching circuit 109, the output compare OCR, which was normally output to the switch control target 120, is injected into the injection valve 10
The difference is that the output is switched to 7.

【0025】即ち、サブプロセッサ103は、ある種の
スイッチ113からの検出信号SWをキャプチャポート
CP1031へ入力し、該当するスイッチ制御対象120へ
制御信号を出力している。そして、モニタ回路105か
ら異常検知信号SF1が出力されると、マルチプレクサ
117において、サブプロセッサ103のキャプチャポ
ートCP1031への入力が回転数信号Neに切り換えられ
る。これと同時に、サブプロセッサ103は、メインプ
ロセッサ101へリセット信号RSTを出力すると共
に、キャプチャポートCP1031からの入力により実行す
べき演算処理プログラムをスイッチ制御処理プログラム
から燃料噴射量制御信号演算処理プログラムに切り換え
る処理を行う。また、バックアップ時出力切換回路10
9は、それまでスイッチ制御対象120と接続されてい
たサブプロセッサ103のアウトプットコンペアOCR
を噴射弁107と接続される状態に切り換えると共に、
メインプロセッサ101の燃料噴射量制御信号出力ポー
トをオフに切り換える。
That is, the sub processor 103 inputs a detection signal SW from a certain type of switch 113 to the capture port CP 1031 and outputs a control signal to the corresponding switch control target 120. When the abnormality detection signal SF1 is output from the monitor circuit 105, the multiplexer 117 switches the input to the capture port CP1031 of the sub-processor 103 to the rotation speed signal Ne. At the same time, the sub processor 103 outputs the reset signal RST to the main processor 101 and switches the arithmetic processing program to be executed by the input from the capture port CP 1031 from the switch control processing program to the fuel injection amount control signal arithmetic processing program. Perform processing. Further, the output switching circuit 10 at the time of backup
9 is an output compare OCR of the sub-processor 103 which has been connected to the switch control target 120 until then.
Is switched to a state in which it is connected to the injection valve 107, and
The fuel injection amount control signal output port of the main processor 101 is switched off.

【0026】この様に、第2実施例においては、マルチ
プレクサ117ばかりでなくバックアップ時出力切換回
路109も割付状態切換手段に相当する。この様に構成
されているから、第2実施例のバックアップ制御装置で
は、メインプロセッサ101に異常があった場合には、
最重要な処理である燃料噴射量制御がサブプロセッサ1
03により実行され、重要度の低いスイッチ入力に応じ
た制御は行われなくなる。
As described above, in the second embodiment, not only the multiplexer 117 but also the backup output switching circuit 109 corresponds to the allocation state switching means. With this configuration, in the backup control device according to the second embodiment, when the main processor 101 has an abnormality,
The fuel injection amount control, which is the most important process, is the sub processor 1
03, the control according to the less important switch input is not performed.

【0027】以上の様に、各実施例によれば、正常時に
はメインプロセッサ1,101とサブプロセッサ3,1
03で各種の制御処理を分担する。この結果、メインプ
ロセッサ1,101及びサブプロセッサ3,103の演
算処理における割り込みによる処理時間の遅れをなくす
ることができる。一方、メインプロセッサ異常時には、
それまでメインプロセッサ1,101が実行していた重
要な処理をサブプロセッサ3,103により的確にバッ
クアップすることができる。そして、正常時の分担と異
常時の入出力の切り換えにより、入出力ポート数を減少
させることができ、プロセッサの高額化を抑制するのに
役立つ。正常時の割り込み処理負担の軽減は、特に高速
走行を常とするレースカーの様な対象に適用すると極め
て好ましい効果を奏する。
As described above, according to each embodiment, the main processor 1, 101 and the sub processor 3, 1 are normally operated.
In 03, various control processes are shared. As a result, it is possible to eliminate the delay in the processing time due to the interruption in the arithmetic processing of the main processor 1, 101 and the sub processors 3, 103. On the other hand, when the main processor is abnormal,
The important processing that was being executed by the main processors 1 and 101 until then can be backed up accurately by the sub processors 3 and 103. The number of input / output ports can be reduced by switching between the normal sharing and the abnormal input / output, which helps to prevent the processor from becoming expensive. Reducing the interrupt processing load during normal operation has a very favorable effect particularly when applied to an object such as a race car that normally runs at high speed.

【0028】また、キャプチャポートをバックアップ時
の切り換え対象にしておくことで、メイン,サブ合わせ
てのキャプチャポート数を減らすことができ、プロセッ
サのチップ面積を減少する点での効果も高い。以上本発
明の一実施例について説明したが、本発明は何等この実
施例に限定されるものではなく、その要旨を逸脱しない
範囲の種々なる態様にて実施することができる。
Further, by setting the capture port as a switching target at the time of backup, it is possible to reduce the number of main and sub capture ports together, and it is highly effective in reducing the chip area of the processor. Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment and can be implemented in various modes within the scope not departing from the gist thereof.

【0029】例えば、燃料噴射量制御信号ではなく、点
火信号の演算処理をバックアップする構成とすることも
できるし、車両の内燃機関の制御装置に限らず、各種の
電子制御装置に適用することができる。また、キャプチ
ャポートやアウトプットコンペアではなく通常ポートに
ついて切り換えを行う構成としたり、出力ポートだけを
切り換える構成としてもよいし、異常時には複数の入力
ポート及び/又は複数の出力ポートを同時に切り換える
構成としても構わないことはいうまでもない。
For example, the calculation processing of the ignition signal instead of the fuel injection amount control signal can be configured to be backed up, and the invention can be applied not only to the control device of the internal combustion engine of the vehicle but also to various electronic control devices. it can. Further, the configuration may be such that the normal port is switched instead of the capture port or the output compare, or only the output port is switched, or in the case of an abnormality, a plurality of input ports and / or a plurality of output ports may be simultaneously switched. Needless to say, it doesn't matter.

【0030】さらに、サブプロセッサをフルバックアッ
プシステムとして全ての処理に必要な数の入出力ポート
を備えたものとして構成し、異常が検知されるまでは一
部のポートのみの入出力を許可し、他の入出力ポート
(ここにはメインプロセッサに割り付けられた入出力対
象がメインプロセッサと並列に入出力される)の入出力
を禁止する構成とし、異常検知時にこれらの禁止を解除
する構成としてもよい。具体的には、正常時には特定の
制御処理プログラムの割り込み実行を禁止しておき、異
常時これを解除する構成とすることができる。また、メ
インプロセッサと並列の入力となるこれらの入出力ポー
トと入出力対象との間に接続・非接続の切り換えを行う
切換回路を介装しておいても構わない。即ち、請求項3
記載の構成とすることによっても本発明の目的は十分に
達成できるのである。
Further, the sub-processor is configured as a full backup system having the necessary number of input / output ports for all processing, and the input / output of only some ports is permitted until an abnormality is detected. I / O ports of other I / O ports (where I / O targets assigned to the main processor are input / output in parallel with the main processor) can be prohibited, and these prohibitions can be released when an error is detected. Good. Specifically, the interrupt execution of a specific control processing program can be prohibited during normal operation, and can be canceled during abnormal operation. Further, a switching circuit for switching connection / disconnection between these input / output ports which are parallel inputs to the main processor and the input / output target may be provided. That is, claim 3
The object of the present invention can be sufficiently achieved even with the configuration described above.

【0031】[0031]

【発明の効果】以上詳述したように本発明の各請求項記
載のプロセッサのバックアップ制御装置によれば、第1
のプロセッサが備えるべき入出力ポート数を低減するこ
とができる。この結果、第1のプロセッサにおける割り
込み処理回数を減少させることができ、正常時におい
て、例えば重要な処理を迅速に実行することができる。
一方、異常時には、重要度の高い制御処理を的確にバッ
クアップすることができる。従って、プロセッサ自体を
構造簡単な低コストのものにすることができ、かつ異常
時には必要最低限の制御処理をバックアップできるだけ
でなく、正常時の制御処理における割り込み処理の負担
を軽減して、従来よりも迅速な制御処理を行うことがで
きる。
As described in detail above, according to the backup control device for a processor described in each claim of the present invention,
It is possible to reduce the number of input / output ports that the processor of FIG. As a result, the number of interrupt processes in the first processor can be reduced, and in normal times, for example, important processes can be executed quickly.
On the other hand, in the event of an abnormality, it is possible to accurately back up highly important control processing. Therefore, the processor itself can have a simple structure and low cost, and in addition to backing up the minimum necessary control processing in the event of an abnormality, the burden of interrupt processing in normal control processing can be reduced, and Can also perform a quick control process.

【0032】請求項2記載のプロセッサのバックアップ
制御装置によれば、バックアップ用として備えた第2の
プロセッサについても入出力ポートの節約と割り込み処
理の軽減とを達成することができる。また、請求項3記
載のプロセッサのバックアップ制御装置によれば、請求
項1記載の装置が奏する効果を奏する上に、フルバック
アップが可能である。
According to the processor backup control device of the second aspect, it is possible to achieve the saving of the input / output port and the reduction of the interrupt processing even for the second processor provided for backup. Further, according to the processor backup control device of the third aspect, in addition to the effect of the device of the first aspect, full backup is possible.

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

【図1】 第1実施例のマルチプロセッサ式のバックア
ップ制御装置の概略構成図である。
FIG. 1 is a schematic configuration diagram of a multiprocessor type backup control device of a first embodiment.

【図2】 第2実施例のマルチプロセッサ式のバックア
ップ制御装置の概略構成図である。
FIG. 2 is a schematic configuration diagram of a multiprocessor type backup control device of a second embodiment.

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

1,101・・・メインプロセッサ、3,103・・・
サブプロセッサ、5,105・・・モニタ回路、7,1
07・・・噴射弁、9,109・・・バックアップ時出
力切換回路、11,111・・・回転数センサ、13・
・・車速センサ、15・・・入力経路、17,117・
・・マルチプレクサ、17a,117a・・・Ne端
子、17b,117b・・・SPD端子、17c,11
7c・・・キャプチャ端子、120・・・スイッチ制御
対象、CP11,CP31,CP1011,CP1031・・・キャ
プチャポート、OCR・・・アウトプットコンペア。
1, 101 ... Main processor, 3, 103 ...
Sub-processor, 5,105 ... Monitor circuit, 7,1
07 ... injection valve, 9,109 ... backup output switching circuit, 11,111 ... rotation speed sensor, 13 ...
..Vehicle speed sensor, 15 ... Input path, 17,117 ...
..Multiplexers, 17a, 117a ... Ne terminals, 17b, 117b ... SPD terminals, 17c, 11
7c ... Capture terminal, 120 ... Switch control target, CP11, CP31, CP1011, CP1031 ... Capture port, OCR ... Output compare.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 検出対象から入力される信号に基づいて
第1の演算処理プラグラムを実行して得た制御信号を制
御対象に出力する第1のプロセッサと、第1のプロセッ
サの異常を検出する異常検出手段と、第1のプロセッサ
異常時には第1のプロセッサに代わって前記第1の演算
処理プログラムを実行するサブプロセッサとを備えたプ
ロセッサのバックアップ制御装置において、 前記第2のプロセッサは、前記第1のプロセッサが正常
時に系全体として実行すべき演算処理の内、前記第1の
演算処理以外の制御処理のための入出力を割り付けられ
て前記第1のプロセッサの実行する演算処理とは重複し
ない演算処理を実行し、 前記異常検出手段が第1のプロセッサの異常を検出した
場合には、前記第2のプロセッサの入出力の割り付け状
態を、第1のプロセッサの実行していた前記第1の演算
処理を実行可能な入出力の割り付け状態に切り換える割
付状態切換手段を備えたことを特徴とするプロセッサの
バックアップ制御装置。
1. A first processor that outputs a control signal obtained by executing a first arithmetic processing program to a control target based on a signal input from the detection target, and detects an abnormality of the first processor. A backup control device for a processor, comprising: an abnormality detecting means; and a sub processor that executes the first arithmetic processing program in place of the first processor when the first processor is abnormal, wherein the second processor is the second processor. Of the arithmetic processing to be executed by the one processor as a whole in the normal state, the input / output for the control processing other than the first arithmetic processing is allocated and does not overlap with the arithmetic processing executed by the first processor. When the abnormality detecting means detects an abnormality in the first processor by executing arithmetic processing, the input / output allocation state of the second processor is changed. First processor that was running the first processing backup control unit of a processor, comprising the allocation status switching means for switching the allocation status of viable input and output.
【請求項2】 請求項1記載のプロセッサのバックアッ
プ制御装置において、 前記割付状態切換手段は、第2のプロセッサの特定の入
出力ポートが第1のプロセッサ正常時に接続されている
検出対象又は制御対象に代えて、前記第1の演算処理に
必要な検出対象又は制御対象との接続状態に切り換える
手段であり、 当該切り換えの後は、当該切り換えられた入出力ポート
に関係して第1のプロセッサ正常時に実行されていた演
算処理プログラムに代えて、前記第1の演算処理プログ
ラムを実行可能な状態に切り換えるプログラム切換手段
をも備えることを特徴とするプロセッサのバックアップ
制御装置。
2. The backup control device for a processor according to claim 1, wherein the allocation state switching means is a detection target or a control target to which a specific input / output port of the second processor is connected when the first processor is normal. Instead of the above, it is a means for switching to a connection state with a detection target or a control target necessary for the first arithmetic processing, and after the switching, the first processor normal in relation to the switched input / output port. A backup control device for a processor, further comprising program switching means for switching the first arithmetic processing program to an executable state in place of the arithmetic processing program that is being executed at the time.
【請求項3】 請求項1記載のプロセッサのバックアッ
プ制御装置において、 前記第2のプロセッサは、最初から、第1の演算処理プ
ログラムに関連する検出対象又は制御対象について割り
付けられた入出力ポートをも備え、 前記割付状態切換手段は、第1のプロセッサ正常時には
第2のプロセッサの前記第1の演算処理プログラムに関
連する検出対象又は制御対象について割り付けられた入
出力ポートに対する入力又は出力の禁止若しくは第1の
演算処理プログラムの実行の禁止を設定すると共に、第
1のプロセッサ異常時には当該禁止を解除する手段であ
ることを特徴とするプロセッサのバックアップ制御装
置。
3. The backup control device for a processor according to claim 1, wherein the second processor also has an input / output port assigned to a detection target or a control target related to the first arithmetic processing program from the beginning. The allocation state switching means includes, when the first processor is normal, prohibiting or inputting or outputting to an input / output port allocated to a detection target or a control target related to the first arithmetic processing program of the second processor. A backup control device for a processor, which is means for setting prohibition of execution of the first arithmetic processing program and canceling the prohibition when the first processor is abnormal.
【請求項4】 前記第1の演算処理プログラムは系全体
で実行すべき演算処理の内、重要度が高い演算処理であ
ることを特徴とする請求項1〜請求項3のいずれかに記
載のプロセッサのバックアップ制御装置。
4. The first arithmetic processing program is an arithmetic processing having a high degree of importance among the arithmetic processing to be executed in the entire system. Backup controller for the processor.
JP3333622A 1991-12-17 1991-12-17 Backup control device for processor Pending JPH05163998A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3333622A JPH05163998A (en) 1991-12-17 1991-12-17 Backup control device for processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3333622A JPH05163998A (en) 1991-12-17 1991-12-17 Backup control device for processor

Publications (1)

Publication Number Publication Date
JPH05163998A true JPH05163998A (en) 1993-06-29

Family

ID=18268116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3333622A Pending JPH05163998A (en) 1991-12-17 1991-12-17 Backup control device for processor

Country Status (1)

Country Link
JP (1) JPH05163998A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08109847A (en) * 1994-10-13 1996-04-30 Nissan Motor Co Ltd Control device for diesel engine
JP2011134025A (en) * 2009-12-23 2011-07-07 Autonetworks Technologies Ltd Processor and control method
JP2019526889A (en) * 2016-08-25 2019-09-19 ニコベンチャーズ ホールディングス リミテッド Control circuit for steam supply system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08109847A (en) * 1994-10-13 1996-04-30 Nissan Motor Co Ltd Control device for diesel engine
JP2011134025A (en) * 2009-12-23 2011-07-07 Autonetworks Technologies Ltd Processor and control method
JP2019526889A (en) * 2016-08-25 2019-09-19 ニコベンチャーズ ホールディングス リミテッド Control circuit for steam supply system

Similar Documents

Publication Publication Date Title
JPH11294252A (en) Electronic control device
JP2009030543A (en) In-vehicle engine control device
JPH04169350A (en) Event drive type vehicle control computer
JPH0742888B2 (en) Engine controller
JPS6149154A (en) Control device for automobile
JPH05163998A (en) Backup control device for processor
JP4419943B2 (en) Data transfer device between CPUs
JPS62219030A (en) Computer having interrupt program
JPH06305376A (en) Control device for vehicle
JP2845616B2 (en) Multiprocessor system
US20180173559A1 (en) Electronic Control Device and Stack Usage Method
JPH0599061A (en) Controller for automobile
JP2019164680A (en) Electronic control device
JPH07281912A (en) Stack abnormality detecting device
JPH0544570A (en) Run away monitoring device for engine control device
JPH0240730A (en) Abnormality detecting device for control unit for vehicle
JP2001256063A (en) Controller and engine controller
JPS597272A (en) Self-diagnosis starting system of self-diagnosing device of engine for motorcar
JP3617445B2 (en) Information processing device
JPS6040761A (en) Method of controlling fuel injection of internal- combustion engine
JP2850691B2 (en) Engine digital control unit
JPH01131466A (en) Electronic controller
JPH02309429A (en) Device for monitoring cpu runaway
JPH1020968A (en) Selective hardware resetting circuit
JP2021076021A (en) Electronic control unit