JP3308669B2 - System control unit - Google Patents

System control unit

Info

Publication number
JP3308669B2
JP3308669B2 JP20904593A JP20904593A JP3308669B2 JP 3308669 B2 JP3308669 B2 JP 3308669B2 JP 20904593 A JP20904593 A JP 20904593A JP 20904593 A JP20904593 A JP 20904593A JP 3308669 B2 JP3308669 B2 JP 3308669B2
Authority
JP
Japan
Prior art keywords
clock
processing device
signal
control
failure
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 - Fee Related
Application number
JP20904593A
Other languages
Japanese (ja)
Other versions
JPH0743257A (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.)
Mazda Motor Corp
Original Assignee
Mazda Motor 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP20904593A priority Critical patent/JP3308669B2/en
Publication of JPH0743257A publication Critical patent/JPH0743257A/en
Application granted granted Critical
Publication of JP3308669B2 publication Critical patent/JP3308669B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はシステム制御装置、特
に、車両用の種々のシステムを制御するのに適したシス
テム制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system controller, and more particularly to a system controller suitable for controlling various systems for vehicles.

【0002】[0002]

【従来の技術】近年では、自動車のシステム制御にマイ
クロプロセッサを用いるのがごく一般的になってきてい
る。このような車載用のシステム制御装置は、通常、2
つのプロセッシングユニットから構成される。すなわ
ち、主たるシステム制御を行うためのホスト側プロセッ
シングユニットと、周辺処理装置として従たるシステム
制御を行うためのサブ側プロセッシングユニットと、の
少なくとも2つのユニットが搭載されるのが一般的であ
る。また、これらのプロセッシングユニットとは別に、
これらプロセッシングユニットに異常が発生した場合
に、応急処置として臨時のシステム制御を行うための待
機系処理回路が更に設けられるのが一般的である。この
待機系処理回路は、通常は待機状態にあり、プロセッシ
ングユニットに異常が発生したときにだけ、必要最小限
のシステム制御を行う機能をもっている。また、異常を
自己検出する機能についても、種々のものが知られてい
る。たとえば、特開平1−199171号公報には、L
SI内の断線を検出する論理回路が開示されている。
2. Description of the Related Art In recent years, it has become very common to use a microprocessor for controlling the system of an automobile. Such an in-vehicle system control device usually includes two
It consists of one processing unit. That is, it is common to mount at least two units of a host-side processing unit for performing main system control and a sub-side processing unit for performing subordinate system control as a peripheral processing device. Also, apart from these processing units,
In general, a standby system processing circuit for performing temporary system control as an emergency measure when an abnormality occurs in these processing units is further provided. This standby processing circuit is normally in a standby state, and has a function of performing minimum necessary system control only when an abnormality occurs in the processing unit. Also, various functions are known for the function of self-detecting an abnormality. For example, Japanese Unexamined Patent Publication No. Hei.
A logic circuit for detecting a disconnection in an SI is disclosed.

【0003】[0003]

【発明が解決しようとする課題】上述したホスト側プロ
セッシングユニット、サブ側プロセッシングユニット、
待機系処理回路、はそれぞれ1チップに集積されて構成
されるのが普通である。このため、車載用システム制御
装置としては、これら3チップからなるユニットを基板
上に実装する必要があるため実装面積が比較的大きくな
り、装置全体の小型化が実現しにくいという問題があ
る。理論的には、これら3つのユニットをすべて1つの
チップ内に集積してしまうことも可能であるが、このよ
うな1チップ化は、装置全体の信頼性を低下させる要因
になるため好ましくない。すなわち、すべてを1チップ
化した場合は、そのチップの電源系に異常が発生した
り、クロック系に異常が発生したりすると、異常がチッ
プ内のすべてに波及し、待機系処理回路が本来のフェイ
ルセーフとしての機能を果たせなくなる危険性がでてく
るのである。
The host-side processing unit, the sub-side processing unit,
Normally, the standby processing circuits are integrated on one chip. Therefore, the on-board system controller needs to mount these three-chip units on a substrate, and therefore has a problem that the mounting area is relatively large, and it is difficult to reduce the size of the entire device. Theoretically, it is possible to integrate all three units in one chip, but such a single chip is not preferable because it reduces the reliability of the entire device. In other words, when all are integrated into one chip, if an abnormality occurs in the power supply system of the chip or an abnormality occurs in the clock system, the abnormality spreads to all parts in the chip, and the standby processing circuit becomes the original processing circuit. There is a risk of failing to function as a fail-safe.

【0004】そこで本発明は、信頼できるフェイルセー
フ機能を備えつつ、しかも、装置全体の小型化を図るこ
とができるシステム制御装置を提供することを目的とす
る。
It is an object of the present invention to provide a system control device having a reliable fail-safe function and capable of reducing the size of the entire device.

【0005】[0005]

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

(1) 本願第1の発明は、システム制御装置において、
主たるシステム制御を行うためのホスト処理装置を1チ
ップに集積化したホスト側プロセッシングユニットと、
従たるシステム制御を行うためのサブ処理装置と、通常
は待機状態にあって、異常発生時に応急処置として臨時
のシステム制御を行うための待機系処理装置と、を1チ
ップに集積化したサブ側プロセッシングユニットと、を
設け、ホスト処理装置を第1の電源系で動作させ、サブ
処理装置および待機系処理装置を第2の電源系で動作さ
せ、ホスト処理装置およびサブ処理装置を第1のクロッ
ク系で動作させ、待機系処理装置を第2のクロック系で
動作させるようにしたものである。
(1) The first invention of the present application is a system control device,
A host-side processing unit in which a host processing device for performing main system control is integrated on one chip;
A sub-side in which a sub-processing device for performing secondary system control and a standby processing device that is normally in a standby state and perform temporary system control as an emergency measure when an abnormality occurs are integrated on one chip. A processing unit, the host processing device is operated by a first power supply system, the sub-processing device and the standby processing device are operated by a second power supply system, and the host processing device and the sub-processing device are controlled by a first clock. And the standby processing device is operated by a second clock system.

【0006】(2) 本願第2の発明は、上述の第1の発
明に係るシステム制御装置において、ホスト処理装置、
サブ処理装置、待機系処理装置、のそれぞれに、自己の
故障を判定する故障自己判定実行回路を設け、自己に故
障が発生した場合には他の装置にその旨を通知する機能
を付加し、かつ、各故障自己判定実行回路が、自己の動
作に用いているクロック系とは逆のクロック系を用いて
故障判定を行うようにしたものである。
(2) The second invention of the present application is the system control device according to the first invention, wherein the host processing device,
Each of the sub-processing device and the standby processing device is provided with a failure self-determination execution circuit for determining its own failure, and when a failure occurs in itself, a function of notifying another device of the failure is added, In addition, each failure self-determination execution circuit is configured to perform failure determination using a clock system that is opposite to the clock system used for its own operation.

【0007】(3) 本願第3の発明は、上述の第2の発
明に係るシステム制御装置において、待機系処理装置の
故障自己判定実行回路が、第1のクロック系のクロック
信号CLK1を分周する第1の分周器と、第1のクロッ
ク系よりも遅い第2のクロック系のクロック信号CLK
2を分周する第2の分周器と、この第2の分周器による
分周信号の立ち上がりエッジおよび立ち下がりエッジに
同期したパルス信号を発生するダブルエッジ検出部と、
第1の分周器によって分周されたクロック信号に対する
カウントを行う機能を有し、ダブルエッジ検出部からパ
ルスが与えられた時点でカウント値を初期値に戻し、ダ
ブルエッジ検出部からパルスが与えられるまでにカウン
ト値が所定値に達した場合には所定の検出信号を出力す
るウォッチドッグタイマ部と、を設け、検出信号を、第
2のクロック系の故障検出信号として出力するようにし
たものである。
(3) The third invention of the present application is the system control device according to the second invention, wherein the failure self-determination execution circuit of the standby processing device divides the frequency of the clock signal CLK1 of the first clock system. And a clock signal CLK of a second clock system slower than the first clock system.
A second frequency divider that divides the frequency by 2; a double edge detector that generates a pulse signal synchronized with a rising edge and a falling edge of a frequency-divided signal generated by the second frequency divider;
It has a function of counting the clock signal divided by the first frequency divider. When a pulse is supplied from the double edge detection unit, the count value is returned to an initial value, and a pulse is supplied from the double edge detection unit. A watchdog timer unit that outputs a predetermined detection signal when the count value reaches a predetermined value before the count value reaches a predetermined value, and outputs the detection signal as a failure detection signal of the second clock system. It is.

【0008】(4) 本願第4の発明は、上述の第1の発
明に係るシステム制御装置において、複数のシステムに
おいて用いる制御実行値をそれぞれ記憶した制御実行値
テーブルと、この複数のシステムのうちのいずれか1つ
を選択する外部の設定に基づき、制御実行値テーブル内
の選択された1つのシステムについての制御実行値を読
み出す読出手段と、この読出手段によって読み出された
制御実行値を保持するレジスタと、ホスト処理装置から
与えられる制御実行値とレジスタ内に保持された制御実
行値とを比較し、両者が不一致の場合に故障検出信号を
出力する一致検出部と、を待機系処理装置内に設けたも
のである。
(4) The fourth invention of the present application is the system control device according to the first invention, wherein a control execution value table storing control execution values used in a plurality of systems is provided. Reading means for reading a control execution value for a selected one of the systems in the control execution value table based on an external setting for selecting any one of the above, and holding the control execution value read by this reading means And a match detection unit that compares a control execution value given from the host processing device with a control execution value held in the register, and outputs a failure detection signal when the two do not match, and a standby processing device. It is provided inside.

【0009】(5) 本願第5の発明は、第1のクロック
系で動作し、通常時のシステム制御を行うための通常系
処理装置と、第1のクロック系よりも遅い第2のクロッ
ク系で動作し、通常は待機状態にあって、異常発生時に
応急処置として臨時のシステム制御を行うための待機系
処理装置と、を備えたシステム制御装置において、待機
系処理装置内に、第1のクロック系のクロック信号CL
K1を分周する第1の分周器と、第2のクロック系のク
ロック信号CLK2を分周する第2の分周器と、この第
2の分周器による分周信号の立ち上がりエッジおよび立
ち下がりエッジに同期したパルス信号を発生するダブル
エッジ検出部と、第1の分周器によって分周されたクロ
ック信号に対するカウントを行う機能を有し、ダブルエ
ッジ検出部からパルスが与えられた時点でカウント値を
初期値に戻し、ダブルエッジ検出部からパルスが与えら
れるまでにカウント値が所定値に達した場合には所定の
検出信号を出力するウォッチドッグタイマ部と、を有す
る故障自己判定実行回路を設け、ウォッチドッグタイマ
部からの検出信号を、第2のクロック系の故障検出信号
として出力するようにしたものである。
(5) The fifth invention of the present application is directed to a normal processing device which operates on the first clock system and performs system control during normal operation, and a second clock system which is slower than the first clock system. And a standby system processing device that is normally in a standby state and performs temporary system control as an emergency measure when an abnormality occurs, and a first processing device in the standby system processing device. Clock signal CL of clock system
A first frequency divider for dividing K1, a second frequency divider for dividing the clock signal CLK2 of the second clock system, and a rising edge and a rising edge of the frequency-divided signal by the second frequency divider A double edge detector for generating a pulse signal synchronized with the falling edge, and a function for counting the clock signal divided by the first frequency divider, and when a pulse is given from the double edge detector, A failure self-determination execution circuit having a watchdog timer unit that returns a count value to an initial value and outputs a predetermined detection signal when the count value reaches a predetermined value before a pulse is supplied from a double edge detection unit. And outputs a detection signal from the watchdog timer unit as a failure detection signal of the second clock system.

【0010】[0010]

【作 用】[Operation]

(1) 本願第1の発明に係るシステム制御装置では、待
機系処理装置がサブ側プロセッシングユニット内に集積
化されているため、基板に実装すべきチップ数は、ホス
ト側プロセッシングユニットとサブ側プロセッシングユ
ニットとの2チップのみとなり、装置の小型化を図るこ
とができるようになる。また、各チップごとに別々の電
源系を用いるようにするとともに、待機系処理装置だけ
は別のクロック系を用いるようにしたため、信頼できる
フェイルセーフ機能を確保することが可能になる。
(1) In the system control device according to the first aspect of the present invention, since the standby processing device is integrated in the sub-side processing unit, the number of chips to be mounted on the board is limited to the host-side processing unit and the sub-side processing unit. Since only two chips are required for the unit, the size of the apparatus can be reduced. In addition, since a separate power supply system is used for each chip and a separate clock system is used only for the standby processing device, a reliable fail-safe function can be secured.

【0011】(2) 本願第2の発明に係るシステム制御
装置では、各処理装置内に故障自己判定実行回路が設け
られる。しかもこれら故障自己判定実行回路は、自己の
動作に用いているクロック系とは逆のクロック系を用い
て故障判定を行うように構成されているため、クロック
系の故障についても自己判定することができるようにな
る。
(2) In the system control device according to the second invention of the present application, a failure self-determination execution circuit is provided in each processing device. Moreover, since these failure self-determination execution circuits are configured to perform failure determination using a clock system that is opposite to the clock system used for their own operation, they can also perform self-determination for clock system failures. become able to.

【0012】(3) 本願第3の発明は、上述の故障自己
判定実行回路の具体的な構成を開示するものである。す
なわち、ウォッチドッグタイマ部は、逆のクロック系の
カウントを実行してゆくが、ダブルエッジ検出部からパ
ルスが与えられるたびにカウント値を初期値に戻す。ダ
ブルエッジ検出部は、自己のクロック系に基づいて所定
周期でパルスを発生する。したがって、自己のクロック
系が正常であれば、ウォッチドッグタイマ部は周期的に
カウント値を初期値に戻す処理を実行する。ところが、
自己のクロック系に異常が生じていると、ウォッチドッ
グタイマ部のカウント値は予め設定しておいた所定値に
達してしまい、故障検出信号が出力される。
(3) The third invention of the present application discloses a specific configuration of the above-described fault self-determination execution circuit. That is, the watchdog timer unit performs the counting of the opposite clock system, but returns the count value to the initial value every time a pulse is given from the double edge detection unit. The double edge detection unit generates a pulse at a predetermined cycle based on its own clock system. Therefore, if its own clock system is normal, the watchdog timer section periodically executes a process of returning the count value to the initial value. However,
If an abnormality occurs in its own clock system, the count value of the watchdog timer unit reaches a predetermined value set in advance, and a failure detection signal is output.

【0013】(4) 本願第4の発明に係るシステム制御
装置では、上述した各システム制御装置において、待機
系処理装置を汎用化することが可能になる。すなわち、
制御実行値テーブルには、予め複数のシステムにおいて
用いる制御実行値が記憶され、外部の設定に基づき、こ
のうちのいずれか1つのシステムについての制御実行値
が読み出されて利用される。このため、この複数のシス
テムを制御するために、同一の待機系処理装置を共用す
ることが可能になる。なお、ホスト処理装置は、各シス
テムごとに専用のものを用意することになるが、このホ
スト処理装置内にその特定のシステムについての制御実
行値を保存させておくようにすれば、この保存値を用い
て待機系処理装置内の制御実行値が正しいものであるか
をテストすることが可能になる。
(4) In the system control device according to the fourth aspect of the present invention, in each of the above-described system control devices, it is possible to generalize the standby processing device. That is,
The control execution value table stores control execution values used in a plurality of systems in advance, and reads and uses the control execution values for any one of the systems based on external settings. For this reason, the same standby processing device can be shared for controlling the plurality of systems. A dedicated host processing device is prepared for each system. However, if the control execution value for the specific system is stored in the host processing device, the stored value can be reduced. Can be used to test whether the control execution value in the standby processing device is correct.

【0014】(5) 本願第5の発明によれば、上述の第
3の発明に係るシステム制御装置を、より広く一般的な
システム制御装置に適用することが可能になる。
(5) According to the fifth aspect of the present invention, the system control device according to the third aspect can be applied to a wider and more general system control device.

【0015】[0015]

【実施例】以下、本発明を図示する実施例に基づいて説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiments.

【0016】§1 本発明に係るシステム制御装置の基本構成 図1は、本発明に係るシステム制御装置の基本構成を示
すブロック図である。この装置は、2つのLSIチップ
から構成されている。第1のLSIチップは、ホスト側
プロセッシングユニット100であり、第2のLSIチ
ップは、サブ側プロセッシングユニット200である。
図において、これらの各ブロックを縁取りしているハッ
チングパターンは、後述するように、各部が用いる電源
系およびクロック系の分類を示すものである。
§1 Basic Configuration of System Control Device According to the Present Invention FIG. 1 is a block diagram showing a basic configuration of a system control device according to the present invention. This device is composed of two LSI chips. The first LSI chip is the host-side processing unit 100, and the second LSI chip is the sub-side processing unit 200.
In the drawing, hatching patterns bordering these blocks indicate the classification of the power supply system and the clock system used by each unit, as described later.

【0017】ホスト側プロセッシングユニット100
は、主たるシステム制御を行うためのホスト処理装置を
1チップに集積化したものである。たとえば、自動車の
制御を行うための車載システム制御装置では、通常走行
時における燃料噴射制御や点火時期制御などの主たる制
御が、このホスト側プロセッシングユニット100によ
って実行される。一方、サブ側プロセッシングユニット
200は、従たるシステム制御を行うためのサブ処理装
置210と、通常は待機状態にあって、異常発生時に応
急処置として臨時のシステム制御を行うための待機系処
理装置220と、を1チップに集積化したものである。
サブ処理装置210は、ホスト処理装置に対して並列的
に処理動作を行うことができ、ホスト処理装置の処理を
助けるための周辺処理装置として機能する。また、待機
系処理装置220は、フェイルセーフ機能を果たす装置
であり、ホスト処理装置やサブ処理装置210が正常に
動作している間は待機状態にあり、これらに異常が発生
した場合に、必要最小限の制御を行う機能をもった装置
である。たとえば、車載システム制御装置では、この待
機系処理装置220は、自動車を整備工場まで運転して
ゆくために必要な最小限の制御を行う機能をもっていれ
ば十分であり、マイクロプロセッサを用いずに、論理素
子の組み合わせ回路によって構成するのが一般的であ
る。
The host-side processing unit 100
Is a device in which a host processing device for performing main system control is integrated on one chip. For example, in an in-vehicle system control device for controlling an automobile, main control such as fuel injection control and ignition timing control during normal running is executed by the host-side processing unit 100. On the other hand, the sub-side processing unit 200 is provided with a sub-processing device 210 for performing secondary system control and a standby-system processing device 220 which is normally in a standby state and performs temporary system control as an emergency measure when an abnormality occurs. And are integrated on one chip.
The sub-processing device 210 can perform processing operations in parallel with the host processing device, and functions as a peripheral processing device for assisting the processing of the host processing device. The standby processing device 220 is a device that performs a fail-safe function, and is in a standby state while the host processing device and the sub-processing device 210 are operating normally. This device has a function to perform minimum control. For example, in the in-vehicle system control device, the standby processing device 220 only needs to have a function of performing a minimum control necessary for driving the automobile to the maintenance shop, and without using a microprocessor, In general, it is constituted by a combination circuit of logic elements.

【0018】本発明の特徴のひとつは、このように、第
1のチップにホスト処理装置を設け、第2のチップにサ
ブ処理装置と待機系処理装置との両方を組み込むように
した点にある。従来、これらの各処理装置は、3つのチ
ップに分かれていたため、基板上での実装面積が広く必
要になり、装置全体の小型化が困難であった。本発明で
は、基板上に2つのチップを実装するだけですむため、
従来装置に比較して小型化を図ることができる。
One of the features of the present invention is that the host processing device is provided on the first chip and both the sub-processing device and the standby processing device are incorporated in the second chip. . Conventionally, each of these processing apparatuses has been divided into three chips, so that a large mounting area on a substrate is required, and it has been difficult to reduce the size of the entire apparatus. In the present invention, since only two chips need to be mounted on the substrate,
The size can be reduced as compared with the conventional device.

【0019】本発明のもうひとつの特徴は、各処理装置
に供給する電源系およびクロック系をそれぞれ2系統に
分けた点にある。まず、電源系について説明すると、ホ
スト側プロセッシングユニット100には、第1の電源
VCC1が供給され、サブ側プロセッシングユニット2
00には、第2の電源VCC2が供給される。別言すれ
ば、チップごとに用いる電源系を分離したことになる。
これにより、一方のチップの電源に異常が発生したとし
ても、他方のチップがその影響を受けることはない。次
に、クロック系について説明すると、ホスト側プロセッ
シングユニット100内のホスト処理装置、およびサブ
側プロセッシングユニット200内のサブ処理装置21
0に対しては、第1のクロックCLK1が供給され、サ
ブ側プロセッシングユニット200内の待機系処理装置
220に対しては、第2のクロックCLK2が供給され
る。別言すれば、通常時に動作する処理装置と、異常時
に動作する処理装置と、でクロック系を分離したことに
なる。なお、この実施例では、リセット系についてもク
ロック系と同様の分離を行っている。
Another feature of the present invention resides in that a power supply system and a clock system supplied to each processing device are divided into two systems. First, the power supply system will be described. The first power supply VCC1 is supplied to the host-side processing unit 100, and the sub-side processing unit 2
00 is supplied with the second power supply VCC2. In other words, the power supply system used for each chip is separated.
Thus, even if an abnormality occurs in the power supply of one chip, the other chip is not affected. Next, the clock system will be described. The host processing device in the host-side processing unit 100 and the sub-processing device 21 in the sub-side processing unit 200
0, the first clock CLK1 is supplied, and the standby processor 220 in the sub-side processing unit 200 is supplied with the second clock CLK2. In other words, the clock system is separated between the processing device that operates in the normal state and the processing device that operates in the abnormal state. In this embodiment, the reset system is separated in the same manner as the clock system.

【0020】このように、電源系およびクロック系につ
いて、それぞれ2系統の分離を行うようにしたのは、次
のような理由による。すなわち、フェイルセーフの観点
からは、3つの処理装置のそれぞれについて電源系およ
びクロック系を分けるのが理想的である。しかしなが
ら、電源系およびクロック系をそれぞれ3系統ずつ用意
することは、コストパフォーマンスを考慮すると合理的
ではない。フェイルセーフの機能を確保しつつ、コスト
パフォーマンスを維持するためには、いずれも2系統ず
つ用意するのが合理的である。そこで、2系統の電源お
よびクロックの割振りを考えてみる。本来的には、通常
時に動作する処理装置と、異常時に動作する処理装置
と、で電源系およびクロック系をそれぞれ分離するの
が、フェイルセーフの機能を確保する上では好ましい。
しかしながら、同一のチップ内に対して、2系統の電源
を供給することは、回路実装効率の点からは合理的では
ない。通常のLSI設計では、同一チップ内には1系統
の電源のみを用いるのが一般的であり、同一チップ内で
複数系統の電源を用いることは、コストパフォーマンス
の面から不利である。そこで、本発明では、上述したよ
うに、電源系を各チップごとに分離したのである。この
ように電源系を分離しておけば、少なくとも、電源系統
の異常が別のチップへ影響を及ぼすことはなくなる。
The reason why the two systems are separated from each other for the power supply system and the clock system is as follows. That is, from the viewpoint of fail-safe, it is ideal to divide the power supply system and the clock system for each of the three processing devices. However, it is not reasonable to prepare three power supply systems and three clock systems in consideration of cost performance. In order to maintain the cost performance while ensuring the fail-safe function, it is reasonable to prepare two systems each. Therefore, consider the allocation of power and clocks for two systems. Originally, it is preferable to separate the power supply system and the clock system between the processing device that operates in the normal state and the processing device that operates in the abnormal state, in order to ensure the fail-safe function.
However, supplying two systems of power to the same chip is not rational in terms of circuit mounting efficiency. In a normal LSI design, it is common to use only one power supply in the same chip, and using a plurality of power supplies in the same chip is disadvantageous in terms of cost performance. Therefore, in the present invention, the power supply system is separated for each chip as described above. By separating the power supply system in this way, at least the abnormality of the power supply system does not affect another chip.

【0021】これに対して、クロック系については、通
常時に動作する処理装置と、異常時に動作する処理装置
と、で分離することが比較的容易である。図1に示され
ているように、サブ側プロセッシングユニット200内
では、サブ処理装置210には第1のクロックCLK1
が供給され、待機系処理装置220には第2のクロック
CLK2が供給されている。このように、同一チップ内
に2系統のクロックが供給されることになるが、一般
に、待機系処理装置220が必要とする第2のクロック
CLK2は、通常のマイクロプロセッサを動作させるた
めに必要なクロックに比べてかなり遅いものでも十分で
ある。これは、前述のように、待機系処理装置220は
マイクロプロセッサを内蔵しておらず、論理素子の組み
合わせからなる回路で構成されているためである。より
具体的には、この実施例では、マイクロプロセッサを動
作させる必要がある第1のクロックCLK1としては、
10〜20MHz程度の高速クロック信号を用いてお
り、待機系処理装置220においてのみ用いられる第2
のクロックCLK2としては、50〜250kHz程度
の低速クロック信号を用いている。このように、第2の
クロックCLK2は、クロック信号としては比較的遅い
信号であり、LSIチップの内部において、クロック信
号専用の配線を用いなくても特に問題は生じない。した
がって、同一のLSIチップ内において、高速クロック
である第1のクロックCLK1は、クロック信号専用の
配線を用いて供給し、低速クロックである第2のクロッ
クCLK2は、一般の信号線を用いて供給することが可
能になる。このため、同一チップ内に2系統のクロック
を供給することは、比較的容易に実現できる。
On the other hand, regarding the clock system, it is relatively easy to separate the processing device that operates in the normal state from the processing device that operates in the abnormal state. As shown in FIG. 1, in the sub-side processing unit 200, the first clock CLK1 is supplied to the sub-processing device 210.
And the second clock CLK2 is supplied to the standby processing device 220. As described above, two clocks are supplied to the same chip. In general, the second clock CLK2 required by the standby processing device 220 is necessary for operating a normal microprocessor. A thing that is much slower than the clock is sufficient. This is because, as described above, the standby processing device 220 does not include a microprocessor and is configured by a circuit composed of a combination of logic elements. More specifically, in this embodiment, as the first clock CLK1 that needs to operate the microprocessor,
A high-speed clock signal of about 10 to 20 MHz is used, and the second clock used only in the standby processing device 220 is used.
As the clock CLK2, a low-speed clock signal of about 50 to 250 kHz is used. As described above, the second clock CLK2 is a signal that is relatively slow as a clock signal, and there is no particular problem without using a dedicated wiring for the clock signal inside the LSI chip. Therefore, in the same LSI chip, the first clock CLK1 that is a high-speed clock is supplied using a wiring dedicated to a clock signal, and the second clock CLK2 that is a low-speed clock is supplied using a general signal line. It becomes possible to do. Therefore, supplying two clocks to the same chip can be relatively easily realized.

【0022】§2 故障の自己判定機能 図1に示すシステム制御装置は、前述のように、ホスト
処理装置(ホスト側プロセッシングユニット100)、
サブ処理装置210、待機系処理装置220、の3つの
処理装置を備えているが、これら各処理装置は、それぞ
れ故障自己判定実行回路101,211,221を内蔵
しており、自己に故障が発生した場合には他の処理装置
にその旨を通知する機能を有する。すなわち、図1のブ
ロック図において、ホスト側プロセッシングユニット1
00内の故障自己判定実行回路101は、ホスト処理装
置が正常に動作しているか否かを診断し、故障と判定さ
れた場合には、ホスト側プロセッシングユニット故障検
出信号を出力し、これをサブ側プロセッシングユニット
200へ伝達する。また、サブ側プロセッシングユニッ
ト200内の故障自己判定実行回路211および221
は、それぞれサブ処理装置210および待機系処理装置
220が正常に動作しているか否かを診断し、故障と判
定された場合には、OR回路215に故障検出信号を出
力する。こうして、いずれかが故障した場合には、OR
回路215から、サブ側プロセッシングユニット故障検
出信号が出力され、これがホスト側プロセッシングユニ
ット100に伝達される。
§2 Failure self-judgment function As described above, the system control device shown in FIG. 1 includes a host processing device (host-side processing unit 100),
The three processing units, the sub-processing unit 210 and the standby processing unit 220, are provided. Each of these processing units has a built-in failure self-determination execution circuit 101, 211, and 221. In the case where the processing has been performed, a function is provided for notifying the other processing apparatuses of the fact. That is, in the block diagram of FIG.
The failure self-determination execution circuit 101 in the processor 00 determines whether or not the host processing device is operating normally. If the failure has been determined, the failure self-determination execution circuit 101 outputs a host-side processing unit failure detection signal. The information is transmitted to the side processing unit 200. Further, the failure self-determination execution circuits 211 and 221 in the sub-side processing unit 200
Diagnoses whether the sub-processing unit 210 and the standby processing unit 220 are operating normally, and outputs a failure detection signal to the OR circuit 215 when it is determined that a failure has occurred. In this way, if either of them fails, OR
The circuit 215 outputs a sub-side processing unit failure detection signal, which is transmitted to the host-side processing unit 100.

【0023】なお、故障検出を行う一般的な方法や、相
手側から故障検出信号が出力された場合の一般的な処置
方法については、既に公知の技術であるため、ここでは
説明を省略する。ただ、本発明における故障検出の特徴
は、各故障自己判定実行回路が、自己の動作に用いてい
るクロック系に加えて逆のクロック系を用いて故障判定
を行う機能を備えている点にある。具体的には、第1の
クロックCLK1で動作する故障自己判定実行回路10
1および211は、第2のクロックCLK2を用いて故
障判定を行い、第2のクロックCLK2で動作する故障
自己判定実行回路221は、第1のクロックCLK1を
用いて故障判定を行うのである(図1には、逆のクロッ
ク系を用いるための入力線は図示されていない)。この
ように、自己のクロック系とともに逆のクロック系を用
いることにより、自己のクロック系の異常を検出するこ
とが可能になり、より確実な故障検出動作が可能にな
る。これは、自己のクロック系だけを用いて故障診断を
行っていると、たとえば、自己のクロック系の速度が1
/2に低下したような場合は、その処理装置全体の動作
速度が1/2に低下してしまうため、あたかも正常動作
しているような診断結果が得られ、故障を検出すること
ができないためである。逆のクロック系を用いた診断で
は、このような場合の故障検出を行うことができるので
ある。
A general method for detecting a failure and a general method for processing when a failure detection signal is output from a partner side are already known technologies, and thus description thereof is omitted here. However, the feature of the fault detection according to the present invention is that each fault self-determination execution circuit has a function of performing a fault determination by using an opposite clock system in addition to a clock system used for its own operation. . Specifically, the fault self-determination execution circuit 10 that operates on the first clock CLK1
1 and 211 perform a failure determination using the second clock CLK2, and the failure self-determination execution circuit 221 that operates on the second clock CLK2 performs a failure determination using the first clock CLK1 (see FIG. 2). 1, an input line for using the reverse clock system is not shown). As described above, by using the reverse clock system together with the own clock system, it is possible to detect an abnormality of the own clock system, and to perform a more reliable failure detection operation. This is because if the failure diagnosis is performed using only the own clock system, for example, the speed of the own clock system becomes 1
If the processing speed is reduced to / 2, the operating speed of the entire processing apparatus is reduced to 1/2, so that a diagnosis result as if the normal operation is obtained is obtained, and a failure cannot be detected. It is. Diagnosis using a reverse clock system can detect a failure in such a case.

【0024】ここでは、このような逆のクロック系を用
いた自己診断処理を行うための具体的な回路構成を開示
しておく。図2は、待機系処理装置220内の故障自己
判定実行回路221に用いられている故障診断回路を示
す回路図である。前述したように、待機系処理装置22
0は、第2のクロックCLK2で動作するが、この回路
では、逆のクロック系である第1のクロックCLK1を
用いて自己診断を行うことにより、第2のクロックCL
K2の異常診断を行うことができる。第1のクロックC
LK1は分周器1によって所定の周波数に分周され、第
2のクロックCLK2は分周器2によって所定の周波数
に分周される。なお、各分周比は、以下に説明する動作
を実行する上で便利なように、適当な値に設定すればよ
い。この実施例では、分周器1としては、16ビットの
プリスケーラ回路を用い、分周器2としては、一般的な
分周カウンタを用いているが、この他、どのような分周
器を用いてもかまわない。
Here, a specific circuit configuration for performing the self-diagnosis processing using such an inverted clock system will be disclosed. FIG. 2 is a circuit diagram showing a failure diagnosis circuit used in the failure self-determination execution circuit 221 in the standby processing device 220. As described above, the standby processing device 22
0 operates with the second clock CLK2. In this circuit, the self-diagnosis is performed by using the first clock CLK1 which is the reverse clock system, so that the second clock CL2
K2 abnormality diagnosis can be performed. First clock C
LK1 is frequency-divided by the frequency divider 1 to a predetermined frequency, and the second clock CLK2 is frequency-divided by the frequency divider 2 to a predetermined frequency. Note that each division ratio may be set to an appropriate value so as to be convenient in executing the operation described below. In this embodiment, a 16-bit prescaler circuit is used as the frequency divider 1 and a general frequency division counter is used as the frequency divider 2, but any other frequency divider may be used. It doesn't matter.

【0025】分周器2で分周されたクロックCLK2
は、ダブルエッジ検出部3に与えられる。このダブルエ
ッジ検出部3は、与えられた信号の立ち上がりエッジお
よび立ち下がりエッジに同期したパルス信号を発生する
機能を有する。この機能は図3に明瞭に示されている。
図3において、「入力信号」と記されている信号は、分
周器2から出力された分周信号であり、「出力信号」と
記されている信号は、ダブルエッジ検出部3の出力信号
である。この出力信号は、ウォッチドッグタイマ4のリ
セット端子Rsに与えられる。また、このウォッチドッ
グタイマ4のクロック端子Ckには、分周器1の分周信
号が与えられる。このウォッチドッグタイマ4は、次の
ような動作を行うタイマである。すなわち、クロック端
子Ckに与えられたクロック信号の論理値が変化するご
とに1ずつカウントアップしてゆき、リセット端子Rs
にパルスが与えられた時点で、これまでのカウント値を
初期値0に戻す動作をする。そして、もしカウント値
が、予め定められた所定値に達した場合には、キャリー
アウト端子Coから故障検出信号を出力するのである。
The clock CLK2 divided by the frequency divider 2
Is given to the double edge detection unit 3. The double edge detection unit 3 has a function of generating a pulse signal synchronized with the rising edge and the falling edge of a given signal. This function is clearly shown in FIG.
In FIG. 3, a signal described as “input signal” is a frequency-divided signal output from the frequency divider 2, and a signal described as “output signal” is an output signal of the double edge detection unit 3. It is. This output signal is given to the reset terminal Rs of the watchdog timer 4. The clock signal Ck of the watchdog timer 4 is supplied with a frequency-divided signal of the frequency divider 1. This watchdog timer 4 is a timer that performs the following operation. That is, each time the logic value of the clock signal applied to the clock terminal Ck changes, the count is incremented by one, and the reset terminal Rs
When a pulse is given to the, the operation of returning the previous count value to the initial value 0 is performed. Then, if the count value reaches a predetermined value, a failure detection signal is output from the carry-out terminal Co.

【0026】このような回路による故障検出動作は次の
とおりである。前述したように、第1のクロックCLK
1に比べて、第2のクロックCLK2はかなり遅いクロ
ックである。したがって、分周器1からの分周信号の周
期に比べて、ダブルエッジ検出部3からのパルス出力周
期はかなり長いものとなる。このため、ウォッチドッグ
タイマ4が、分周器1からの分周信号に対するカウント
アップ動作を所定回数行うと、ダブルエッジ検出部3か
らのパルスがリセット端子Rsに到来してカウント値が
0に戻される、という動作が繰り返し行われることにな
る。ここで、たとえば、カウント値が90に達したとき
に、ちょうどリセット端子Rsにパルスが与えられるよ
うな動作が正常であったとすると、ウォッチドッグタイ
マ4には、このカウント値90よりもやや大きな所定
値、たとえば、値100を設定しておくのである。クロ
ックCLK2が正常であれば、ウォッチドッグタイマ4
のカウント値が90に達したころには、ダブルエッジ検
出部3からのパルスが到来してカウント値が0に戻され
るので、このカウント値が所定値100に到達すること
はない。ところが、クロックCLK2が遅れを生じたよ
うな場合は、リセット端子Rsにパルスが与えられるタ
イミングに遅れが生じ、カウント値が所定値100を越
えることになる。このような場合、キャリーアウト端子
Coから故障検出信号が出力され、クロックCLK2の
異常が検出されるのである。
The failure detection operation by such a circuit is as follows. As described above, the first clock CLK
Compared to 1, the second clock CLK2 is a clock that is considerably slower. Therefore, the pulse output cycle from the double edge detector 3 is considerably longer than the cycle of the frequency-divided signal from the frequency divider 1. Therefore, when the watchdog timer 4 performs a count-up operation for the frequency-divided signal from the frequency divider 1 a predetermined number of times, a pulse from the double edge detector 3 arrives at the reset terminal Rs, and the count value returns to 0. Is repeated. Here, for example, assuming that the operation in which a pulse is applied to the reset terminal Rs is normal when the count value reaches 90, the watchdog timer 4 has a predetermined value slightly larger than the count value 90. A value, for example, a value 100 is set. If the clock CLK2 is normal, the watchdog timer 4
When the count value reaches 90, the pulse from the double edge detector 3 arrives and the count value is returned to 0, so that the count value does not reach the predetermined value 100. However, when the clock CLK2 is delayed, the timing at which the pulse is applied to the reset terminal Rs is delayed, and the count value exceeds the predetermined value 100. In such a case, a failure detection signal is output from the carry-out terminal Co, and an abnormality of the clock CLK2 is detected.

【0027】§3 サブ側プロセッシングユニットの汎用化 図1に示すように、本発明に係るシステム制御装置は、
2つのLSIチップによって構成されている。ここで
は、コストパフォーマンスを更に向上させるために、サ
ブ側プロセッシングユニット200を汎用化するための
手法を開示する。たとえば、自動車を制御するためのシ
ステム制御装置を設計する場合を考える。ここでは、説
明の便宜上、自動車A〜Dまでの4つの異なる車種に搭
載するシステム制御装置を設計する場合を例にとる。通
常、車種が異なると制御内容も異なるため、ホスト側プ
ロセッシングユニット100については、それぞれ車種
ごとに別個のものを用意する必要がある。これに対し
て、サブ側プロセッシングユニット200については、
4つの車種で共用させることが可能である。したがっ
て、たとえば、自動車Cに搭載するシステム制御装置
は、自動車C専用のホスト側プロセッシングユニット1
00と、4車種共通のサブ側プロセッシングユニット2
00と、によって構成できる。ただし、待機系処理装置
220は、各車種ごとに異なる制御を行う必要がある。
以下に述べる実施例は、この待機系処理装置220を4
車種で共通化する工夫を施すことにより、サブ側プロセ
ッシングユニット200の共用化ができるようにしたも
のである。
§3 Generalization of Sub-Side Processing Unit As shown in FIG. 1, the system control device according to the present invention comprises:
It is composed of two LSI chips. Here, in order to further improve cost performance, a method for generalizing the sub-side processing unit 200 will be disclosed. For example, consider the case of designing a system control device for controlling an automobile. Here, for convenience of explanation, a case will be described as an example where a system control device mounted on four different types of vehicles A to D is designed. Normally, different types of vehicles have different control contents. Therefore, it is necessary to prepare a separate host-side processing unit 100 for each vehicle type. In contrast, for the sub-side processing unit 200,
It can be shared by four types of vehicles. Therefore, for example, the system control device mounted on the vehicle C is a host-side processing unit 1 dedicated to the vehicle C.
00 and sub-side processing unit 2 common to all four models
00 and However, the standby processing device 220 needs to perform different control for each vehicle type.
In the embodiment described below, this standby processing device 220
By making the device common to the vehicle types, the sub-side processing unit 200 can be shared.

【0028】図4は、4車種で共通化する工夫を施した
待機系処理装置220の基本構成を示すブロック図であ
る。これらの各構成要素は、実際には、サブ側プロセッ
シングユニット200内に集積化されていることにな
る。制御実行値テーブル225は、この実施例では、R
OMによって構成されており、4車種分の制御実行値が
テーブルとして記憶されている。すなわち、アドレスA
dd1に続く4バイトの領域には、自動車Aの応急時の
制御に用いる4つの制御実行値a1〜a4(いずれも1
バイトの値)が格納されている。同様に、アドレスAd
d2に続く4バイトの領域には、自動車Bのための制御
実行値b1〜b4が、アドレスAdd3に続く4バイト
の領域には、自動車Cのための制御実行値c1〜c4
が、アドレスAdd4に続く4バイトの領域には、自動
車Dのための制御実行値d1〜d4が、それぞれ格納さ
れている。
FIG. 4 is a block diagram showing the basic configuration of a standby processing unit 220 which is designed to be shared by four types of vehicles. These components are actually integrated in the sub-side processing unit 200. In this embodiment, the control execution value table 225 stores R
The control execution values for four types of vehicles are stored as a table. That is, address A
In a 4-byte area following dd1, there are four control execution values a1 to a4 (all of which are 1) used for emergency control of the vehicle A.
Byte value) is stored. Similarly, the address Ad
In the 4-byte area following d2, the control execution values b1 to b4 for the car B are stored, and in the 4-byte area following the address Add3, the control execution values c1 to c4 for the car C are set.
However, in the 4-byte area following the address Add4, control execution values d1 to d4 for the vehicle D are stored, respectively.

【0029】アドレスレジスタR0には、外部設定器2
30によって、アドレスAdd1〜Add4のうちのい
ずれか1つのアドレスの上位ビットが設定される。外部
設定器230は、たとえば、抵抗素子とDIPスイッチ
によって構成される設定器である。2ビットフリーラン
カウンタ222は、制御実行値テーブル225をアクセ
スするための下位アドレス「00」,「01」,「1
0」,「11」を順次発生させるカウンタであり、制御
実行値テーブル225は、アドレスレジスタR0から上
位アドレスの指定を受け、2ビットフリーランカウンタ
222から下位アドレスの指定を受けてアクセスされる
ことになる。また、この2ビットフリーランカウンタ2
22の出力はデコーダ226に与えられ、制御実行値テ
ーブル225から読み出されたデータを取り込むべきレ
ジスタが選択される。すなわち、2ビットフリーランカ
ウンタ222の出力が、「00」,「01」,「1
0」,「11」のときに、読み出されたデータは、それ
ぞれ制御実行値レジスタR1,R2,R3,R4に取り
込まれることになる。待機系処理装置220は、この4
つのレジスタR1〜R4内の制御実行値に基づいて、こ
の車両に対しての応急処置的な制御を行うことになる
が、この制御を行うための回路は、図4では省略してい
る。
The address register R0 has an external setting device 2
30 sets the upper bit of any one of the addresses Add1 to Add4. The external setting device 230 is, for example, a setting device including a resistance element and a DIP switch. The 2-bit free-run counter 222 has lower addresses “00”, “01”, and “1” for accessing the control execution value table 225.
The counter is a counter that sequentially generates “0” and “11”. The control execution value table 225 is accessed by receiving the designation of the upper address from the address register R0 and receiving the designation of the lower address from the 2-bit free-run counter 222. become. The 2-bit free-run counter 2
The output of 22 is supplied to the decoder 226, and the register to which the data read from the control execution value table 225 is to be taken is selected. That is, the output of the 2-bit free-run counter 222 is "00", "01", "1".
At the time of "0" and "11", the read data is taken into the control execution value registers R1, R2, R3 and R4, respectively. The standby processing device 220
Although emergency control for this vehicle is performed based on the control execution values in the registers R1 to R4, a circuit for performing this control is omitted in FIG.

【0030】一方、診断用レジスタR5には、ホスト処
理装置(ホスト側プロセッシングユニット)100内の
制御実行値マップ105に格納されている制御実行値が
1バイトずつ転送されてくる。このとき、1バイトの制
御実行値とともに、制御実行値マップ105内の下位ア
ドレス2ビットも一緒に転送されてくる。診断用レジス
タR5は、10ビットの長さを有し、1バイトの制御実
行値とともに2ビットの下位アドレス値を格納する。診
断用レジスタR5に格納されたデータのうち、2ビット
の下位アドレス値はセレクタ227に与えられ、1バイ
トの制御実行値は一致検出回路228に与えられる。セ
レクタ227は、与えられた下位アドレス値に基づい
て、制御実行値レジスタR1〜R4のうちのいずれか1
つを選択し、選択したレジスタに格納されているデータ
を読み出し、一致検出回路に与える。すなわち、下位ア
ドレス値が、「00」,「01」,「10」,「11」
のときに、それぞれ制御実行値レジスタR1,R2,R
3,R4を選択してデータを読み出す。一致検出回路2
28は、診断用レジスタR5から与えられた1バイトの
制御実行値と、セレクタ227から与えられた1バイト
の制御実行値と、を比較し、両者が不一致の場合に、故
障検出信号を出力する。
On the other hand, the control execution value stored in the control execution value map 105 in the host processor (host processing unit) 100 is transferred to the diagnostic register R5 one byte at a time. At this time, the lower 2 bits in the control execution value map 105 are transferred together with the 1-byte control execution value. The diagnostic register R5 has a length of 10 bits and stores a 2-bit lower address value together with a 1-byte control execution value. Of the data stored in the diagnostic register R5, the lower address value of 2 bits is provided to the selector 227, and the 1-byte control execution value is provided to the match detection circuit 228. The selector 227 outputs one of the control execution value registers R1 to R4 based on the applied lower address value.
One is selected, the data stored in the selected register is read, and given to the match detection circuit. That is, the lower address values are "00", "01", "10", "11".
, The control execution value registers R1, R2, R
3 and R4 are selected and data is read. Match detection circuit 2
Reference numeral 28 compares the 1-byte control execution value given from the diagnostic register R5 with the 1-byte control execution value given from the selector 227, and outputs a failure detection signal if they do not match. .

【0031】続いて、このような待機系処理装置220
を内蔵したサブ側プロセッシングユニット200を共用
化する手順について説明する。前述したように、自動車
A〜Dまでの4つの異なる車種に搭載するシステム制御
装置を設計する場合、ホスト側プロセッシングユニット
100については、それぞれ車種ごとに別個のものを用
意する必要があるが、サブ側プロセッシングユニット2
00については、図4に示すような待機系処理装置22
0を内蔵した共用タイプのものを1つ用意すれば十分で
ある。ここでは、自動車Cに搭載するためのシステム制
御装置を実装する場合を例にとって、以下の説明を行
う。自動車Cの制御を行うには、自動車C専用に作られ
たホスト側プロセッシングユニット100と、この汎用
のサブ側プロセッシングユニット200と、を基板上に
実装すればよい。このとき、作業者は、外部設定器23
0によって、アドレスAdd3の上位アドレスをアドレ
スレジスタR0に設定する。一方、2ビットフリーラン
カウンタは、下位アドレス「00」,「01」,「1
0」,「11」を順次発生するので、制御実行値テーブ
ル225からは、アドレスAdd3に続く4バイトのデ
ータ「c1」,「c2」,「c3」,「c4」が順次読
み出され、それぞれ、制御実行値レジスタR1〜R4に
取り込まれる。こうして、この待機系処理装置220
は、自動車Cのための制御実行値c1〜c4を用いた制
御を行うことができるようになる。
Subsequently, such a standby processing device 220
The procedure for sharing the sub-side processing unit 200 with the built-in is described. As described above, when designing a system control device to be mounted on four different types of vehicles A to D, it is necessary to prepare separate host-side processing units 100 for each type of vehicle. Side processing unit 2
For 00, the standby processing device 22 as shown in FIG.
It suffices to prepare one common type that incorporates 0. Here, the following description will be given taking a case where a system control device to be mounted on the automobile C is mounted as an example. In order to control the vehicle C, the host-side processing unit 100 dedicated to the vehicle C and the general-purpose sub-side processing unit 200 may be mounted on a board. At this time, the operator sets the external setting device 23
By 0, the upper address of the address Add3 is set in the address register R0. On the other hand, the 2-bit free-run counter stores lower addresses “00”, “01”, and “1”.
Since “0” and “11” are sequentially generated, the 4-byte data “c1”, “c2”, “c3”, and “c4” following the address Add3 are sequentially read from the control execution value table 225. , Are taken into the control execution value registers R1 to R4. Thus, the standby processing device 220
Can perform control using the control execution values c1 to c4 for the vehicle C.

【0032】次に、この待機系処理装置220内におい
て、正しい制御実行値が用いられているか否かを診断す
る手順について説明する。前述したように、ホスト処理
装置(ホスト側プロセッシングユニット)100は、自
動車C専用のものであり、内部に収容している制御実行
値マップ105には、自動車Cについて待機系処理装置
220で用いる制御実行値「c1」,「c2」,「c
3」,「c4」が格納されている。これらの値は、待機
系処理装置220内の制御実行値テーブル225に格納
された制御実行値「c1」,「c2」,「c3」,「c
4」と同一のものである。そこで、これらの制御実行値
を順次診断用レジスタR5に転送する。具体的には、ま
ず下位アドレス値「00」とともに制御実行値「c1」
が診断用レジスタR5内に格納される。セレクタ227
は、この下位アドレス値「00」に基づいて、制御実行
値レジスタR1内のデータ「c1」を読み出し、これを
一致検出回路228に与える。一方、診断用レジスタR
5内のデータ「c1」も、一致検出回路228に与えら
れる。一致検出回路は、両データを比較して一致を確認
する。以下、同様にして、データ「c2」,「c3」,
「c4」についても一致を確認する。外部設定器230
の設定や、待機系処理装置の動作が正常であれば、両デ
ータは常に一致するはずである。これらが不一致であれ
ば、何らかの異常が生じているものと判断できる。そこ
で、不一致が生じた場合には、一致検出回路228から
故障検出信号が出力される。
Next, a procedure for diagnosing whether or not a correct control execution value is used in the standby processing unit 220 will be described. As described above, the host processing device (host-side processing unit) 100 is dedicated to the vehicle C, and the control execution value map 105 housed therein contains the control used by the standby processing device 220 for the vehicle C. Execution values "c1", "c2", "c
3 "and" c4 "are stored. These values are the control execution values “c1”, “c2”, “c3”, “c” stored in the control execution value table 225 in the standby processing device 220.
4 ". Therefore, these control execution values are sequentially transferred to the diagnostic register R5. Specifically, first, the control execution value “c1” together with the lower address value “00”
Is stored in the diagnostic register R5. Selector 227
Reads the data "c1" in the control execution value register R1 based on the lower address value "00", and supplies the same to the match detection circuit 228. On the other hand, the diagnostic register R
The data “c1” in 5 is also supplied to the coincidence detection circuit 228. The coincidence detection circuit compares the two data to confirm the coincidence. Hereinafter, similarly, data “c2”, “c3”,
A match is also confirmed for “c4”. External setting device 230
If the setting of and the operation of the standby processing device are normal, the two data should always match. If they do not match, it can be determined that some abnormality has occurred. Therefore, if a mismatch occurs, a match detection circuit 228 outputs a failure detection signal.

【0033】§4 待機系処理装置220による制御例 前述したように、待機系処理装置220は、ホスト処理
装置やサブ処理装置に異常が発生した場合に、これらに
代わって応急的な制御を行う装置である。ここでは、自
動車のエンジンを制御する場合について、待機系処理装
置220による応急的な制御方法の一例を示しておく。
[0033]§4 Example of control by standby processing unit 220  As described above, the standby processing device 220
If an error occurs in the device or sub-processing device,
It is a device that performs emergency control instead. Here,
When controlling the engine of a moving vehicle,
An example of an emergency control method using the device 220 will be described.

【0034】図5は、燃料噴射制御の方法を示すタイミ
ングチャートである。この制御方法では、エンジンの回
転に同期した信号を入力して、予め定められた固定の燃
料噴射時間を指示する制御信号を出力している。この固
定の燃料噴射時間は、前述したように、1つの制御実行
値として制御実行値レジスタに格納されている値であ
る。制御信号1〜3は、それぞれエンジン回転同期信号
の1〜3周期ごとに燃料噴射を指示する信号であり、車
両の走行状況などを示す別なパラメータ入力に基づい
て、制御信号1〜3のうちのいずれか1つを選択して出
力することになる。
FIG. 5 is a timing chart showing a method of controlling fuel injection. In this control method, a signal synchronized with the rotation of the engine is input, and a control signal indicating a predetermined fixed fuel injection time is output. As described above, the fixed fuel injection time is a value stored in the control execution value register as one control execution value. The control signals 1 to 3 are signals for instructing fuel injection at every 1 to 3 cycles of the engine rotation synchronization signal, and the control signals 1 to 3 Is selected and output.

【0035】図6は、点火時期制御の方法を示すタイミ
ングチャートである。この制御方法でも、エンジンの回
転に同期した信号を入力し、この同期信号に基づいて制
御信号を出力している。この方法では、予め、Maxお
よびMinという2種類の制御実行値を定義しておき、
エンジン回転同期信号の立上がり時点(時刻t1)にお
いて、所定の傾きでクロックをカウントアップしてゆ
く。図に計数値として示した太線は、このカウントにお
ける計数値の変化を示すグラフである。そして、エンジ
ン回転同期信号の立ち下がり時点(時刻t2)におい
て、カウントダウン動作に切り換える。そして、計数値
がMinに一致した時点(時刻t3)において、制御信
号を立ち下げ、エンジン回転同期信号が再び立上がった
時点(時刻t4)において、制御信号を立ち上げる。こ
の動作を繰り返すことにより、点火時期制御のための制
御信号を発生させるのである。なお、カウントアップ動
作の途中で、計数値がMaxに到達してしまった場合
(時刻t5の直前)は、そこで計数値をホールドした状
態にする。こうして得られた制御信号の立ち下がりタイ
ミング(時刻t3,t6)において点火プラグへの充電
を開始し、立ち上がりタイミング(時刻t4,t7)に
おいて点火させるのである。
FIG. 6 is a timing chart showing a method of controlling the ignition timing. Also in this control method, a signal synchronized with the rotation of the engine is input, and a control signal is output based on the synchronization signal. In this method, two types of control execution values, Max and Min, are defined in advance,
At the time of rising of the engine rotation synchronization signal (time t1), the clock is counted up at a predetermined inclination. The bold line shown as the count value in the figure is a graph showing the change in the count value in this count. Then, at the time when the engine rotation synchronization signal falls (time t2), the operation is switched to the countdown operation. Then, at the time when the count value matches Min (time t3), the control signal falls, and when the engine rotation synchronization signal rises again (time t4), the control signal rises. By repeating this operation, a control signal for ignition timing control is generated. If the count value reaches Max during the count-up operation (immediately before time t5), the count value is held there. The charging of the spark plug is started at the falling timing (time t3, t6) of the control signal thus obtained, and the ignition is performed at the rising timing (time t4, t7).

【0036】図7は、上述の点火時期制御信号に対する
マスク処理を説明する図である。このようなマスク処理
により、エンジン回転数が小さい場合の点火を中止させ
ることが可能になる。すなわち、エンジン回転数がRP
M1よりも小さくなった場合には、マスクを実行し、上
述した点火時期制御信号を実際には点火系に出力しない
ようにするのである。そして、一旦、マスクが実行され
た後は、エンジン回転数がRPM2を越えるまではマス
クの実行を継続し、RPM2を越えた時点でマスクを解
除するのである(いわゆるヒステリシス制御)。なお、
ここで、RPM1およびRPM2は、予め設定された制
御実行値である。
FIG. 7 is a diagram for explaining a mask process for the above-described ignition timing control signal. Such mask processing makes it possible to stop ignition when the engine speed is low. That is, when the engine speed is RP
When it becomes smaller than M1, masking is performed so that the above-described ignition timing control signal is not actually output to the ignition system. Then, once the mask is executed, the execution of the mask is continued until the engine speed exceeds RPM2, and the mask is released when the engine speed exceeds RPM2 (so-called hysteresis control). In addition,
Here, RPM1 and RPM2 are control execution values set in advance.

【0037】以上、本発明を図示する実施例に基づいて
説明したが、本発明はこれらの実施例のみに限定される
ものではなく、この他にも種々の態様で実施可能であ
る。特に、上述の実施例では、自動車用のシステム制御
装置に本発明を適用したが、本発明はこの他にも種々の
システムの制御に適用可能である。
As described above, the present invention has been described based on the illustrated embodiments. However, the present invention is not limited to these embodiments, but can be implemented in various other modes. In particular, in the above-described embodiment, the present invention is applied to a system control device for an automobile. However, the present invention can be applied to control of various other systems.

【0038】[0038]

【発明の効果】以上のとおり、本発明に係るシステム制
御装置によれば、待機系処理装置をサブ側プロセッシン
グユニット内に集積化するようにしたため、基板に実装
すべきチップ数は、ホスト側プロセッシングユニットと
サブ側プロセッシングユニットとの2チップのみとな
り、装置の小型化を図ることができるようになる。ま
た、各チップごとに別々の電源系を用いるようにすると
ともに、待機系処理装置だけは別のクロック系を用いる
ようにしたため、信頼できるフェイルセーフ機能を確保
することが可能になる。
As described above, according to the system control device of the present invention, the standby processing device is integrated in the sub-side processing unit. Only two chips, the unit and the sub-side processing unit, are used, and the size of the device can be reduced. In addition, since a separate power supply system is used for each chip and a separate clock system is used only for the standby processing device, a reliable fail-safe function can be secured.

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

【図1】本発明に係るシステム制御装置の基本構成を示
すブロック図である。
FIG. 1 is a block diagram showing a basic configuration of a system control device according to the present invention.

【図2】図1に示す装置における待機系処理装置220
内の故障自己判定実行回路221に用いられている故障
診断回路を示す回路図である。
FIG. 2 is a standby processing unit 220 in the apparatus shown in FIG.
FIG. 3 is a circuit diagram showing a failure diagnosis circuit used in a failure self-determination execution circuit 221 in FIG.

【図3】図2に示すダブルエッジ検出部3の入出力信号
を示す波形図である。
FIG. 3 is a waveform diagram showing input / output signals of a double edge detection unit 3 shown in FIG.

【図4】4車種で共通化する工夫を施した待機系処理装
置220の基本構成を示すブロック図である。
FIG. 4 is a block diagram showing a basic configuration of a standby processing device 220 in which a common device is devised for four types of vehicles.

【図5】待機系処理装置による燃料噴射制御の一例を示
すタイミングチャートである。
FIG. 5 is a timing chart showing an example of fuel injection control by a standby processing device.

【図6】待機系処理装置による点火時期制御の一例を示
すタイミングチャートである。
FIG. 6 is a timing chart showing an example of ignition timing control by a standby processing device.

【図7】図6に示す点火時期制御信号に対するマスク処
理を説明する図である。
FIG. 7 is a diagram illustrating a mask process for the ignition timing control signal shown in FIG. 6;

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

1…分周器 2…分周器 3…ダブルエッジ検出部 4…ウォッチドッグタイマ 100…ホスト側プロセッシングユニット(ホスト処理
装置) 101…故障自己判定実行回路 105…制御実行値マップ 200…サブ側プロセッシングユニット 210…サブ処理装置 211…故障自己判定実行回路 215…OR回路 220…待機系処理装置 221…故障自己判定実行回路 222…2ビットフリーランカウンタ 225…制御実行値テーブル 226…デコーダ 227…セレクタ 228…一致検出回路 230…外部設定器 Add1〜Add4…アドレス R0…アドレスレジスタ R1〜R4…制御実行値レジスタ R5…診断用レジスタ
DESCRIPTION OF SYMBOLS 1 ... Divider 2 ... Divider 3 ... Double edge detection part 4 ... Watchdog timer 100 ... Host side processing unit (host processing unit) 101 ... Failure self-determination execution circuit 105 ... Control execution value map 200 ... Sub side processing Unit 210: Sub-processing device 211: Failure self-determination execution circuit 215: OR circuit 220: Standby processing device 221: Failure self-determination execution circuit 222: 2-bit free-run counter 225: Control execution value table 226: Decoder 227: Selector 228 ... Match detection circuit 230 ... External setting device Add1-Add4 ... Address R0 ... Address register R1-R4 ... Control execution value register R5 ... Diagnosis register

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−199171(JP,A) 特開 平5−52174(JP,A) 特開 平5−44570(JP,A) 特開 昭58−29240(JP,A) (58)調査した分野(Int.Cl.7,DB名) G01M 17/007 B60R 16/02 特許ファイル(PATOLIS)────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-1-199171 (JP, A) JP-A-5-52174 (JP, A) JP-A-5-44570 (JP, A) JP-A-58-1984 29240 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G01M 17/007 B60R 16/02 Patent file (PATOLIS)

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 主たるシステム制御を行うためのホスト
処理装置を1チップに集積化したホスト側プロセッシン
グユニットと、 従たるシステム制御を行うためのサブ処理装置と、通常
は待機状態にあって、異常発生時に応急処置として臨時
のシステム制御を行うための待機系処理装置と、を1チ
ップに集積化したサブ側プロセッシングユニットと、 を備え、前記ホスト処理装置を第1の電源系で動作さ
せ、前記サブ処理装置および前記待機系処理装置を第2
の電源系で動作させ、前記ホスト処理装置および前記サ
ブ処理装置を第1のクロック系で動作させ、前記待機系
処理装置を第2のクロック系で動作させるようにしたこ
とを特徴とするシステム制御装置。
1. A host processing unit in which a host processing device for performing main system control is integrated on one chip, a sub-processing device for performing sub system control, and usually in a standby state, A standby-side processing unit for performing temporary system control as an emergency measure when an error occurs, and a sub-side processing unit in which the host processing unit is integrated with a single chip. The sub-processing device and the standby processing device
Wherein the host processing device and the sub-processing device are operated by a first clock system, and the standby processing device is operated by a second clock system. apparatus.
【請求項2】 請求項1に記載のシステム制御装置にお
いて、 ホスト処理装置、サブ処理装置、待機系処理装置、のそ
れぞれに、自己の故障を判定する故障自己判定実行回路
を設け、自己に故障が発生した場合には他の装置にその
旨を通知する機能を付加し、かつ、各故障自己判定実行
回路が、自己の動作に用いているクロック系とは逆のク
ロック系を用いて故障判定を行うことを特徴とするシス
テム制御装置。
2. The system control device according to claim 1, wherein each of the host processing device, the sub-processing device, and the standby processing device has a fault self-determination execution circuit that determines its own fault, and the self-failure. When a failure occurs, a function to notify other devices of the occurrence is added, and each failure self-determination execution circuit determines failure using a clock system opposite to the clock system used for its own operation. A system control device characterized by performing:
【請求項3】 請求項2に記載のシステム制御装置にお
いて、 待機系処理装置の故障自己判定実行回路が、 第1のクロック系のクロック信号CLK1を分周する第
1の分周器と、 前記第1のクロック系よりも遅い第2のクロック系のク
ロック信号CLK2を分周する第2の分周器と、 この第2の分周器による分周信号の立ち上がりエッジお
よび立ち下がりエッジに同期したパルス信号を発生する
ダブルエッジ検出部と、 前記第1の分周器によって分周されたクロック信号に対
するカウントを行う機能を有し、前記ダブルエッジ検出
部からパルスが与えられた時点でカウント値を初期値に
戻し、前記ダブルエッジ検出部からパルスが与えられる
までにカウント値が所定値に達した場合には所定の検出
信号を出力するウォッチドッグタイマ部と、 を備え、前記検出信号を、第2のクロック系の故障検出
信号として出力するようにしたことを特徴とするシステ
ム制御装置。
3. The system control device according to claim 2, wherein the failure self-judgment execution circuit of the standby processing device includes: a first frequency divider that divides the frequency of the first clock clock signal CLK1; A second frequency divider for dividing a clock signal CLK2 of a second clock system, which is slower than the first clock system, and synchronized with rising edges and falling edges of the frequency-divided signal by the second frequency divider A double edge detection unit that generates a pulse signal; and a function of counting a clock signal divided by the first frequency divider, and counts a count value when a pulse is given from the double edge detection unit. A watchdog timer unit that outputs a predetermined detection signal when the count value reaches a predetermined value before the pulse is applied from the double edge detection unit to the initial value; Wherein the detection signal, the system controller being characterized in that so as to output as a failure detection signal of the second clock system.
【請求項4】 請求項1に記載のシステム制御装置にお
いて、 複数のシステムにおいて用いる制御実行値をそれぞれ記
憶した制御実行値テーブルと、 前記複数のシステムのうちのいずれか1つを選択する外
部の設定に基づき、前記制御実行値テーブル内の選択さ
れた1つのシステムについての制御実行値を読み出す読
出手段と、 前記読出手段によって読み出された制御実行値を保持す
るレジスタと、 ホスト処理装置から与えられる制御実行値と前記レジス
タ内に保持された制御実行値とを比較し、両者が不一致
の場合に故障検出信号を出力する一致検出部と、 を待機系処理装置内に設けたことを特徴とするシステム
制御装置。
4. The system control device according to claim 1, wherein a control execution value table storing control execution values used in the plurality of systems, respectively, and an external control unit for selecting any one of the plurality of systems. Reading means for reading a control execution value for one selected system in the control execution value table based on the setting; a register for holding the control execution value read by the reading means; And a match detection unit that compares a control execution value obtained in the register with the control execution value held in the register and outputs a failure detection signal when the two do not match, and provided in the standby processing device. System control device.
【請求項5】 第1のクロック系で動作し、通常時のシ
ステム制御を行うための通常系処理装置と、前記第1の
クロック系よりも遅い第2のクロック系で動作し、通常
は待機状態にあって、異常発生時に応急処置として臨時
のシステム制御を行うための待機系処理装置と、を備え
たシステム制御装置において、 前記待機系処理装置内に、 前記第1のクロック系のクロック信号CLK1を分周す
る第1の分周器と、 前記第2のクロック系のクロック信号CLK2を分周す
る第2の分周器と、 この第2の分周器による分周信号の立ち上がりエッジお
よび立ち下がりエッジに同期したパルス信号を発生する
ダブルエッジ検出部と、 前記第1の分周器によって分周されたクロック信号に対
するカウントを行う機能を有し、前記ダブルエッジ検出
部からパルスが与えられた時点でカウント値を初期値に
戻し、前記ダブルエッジ検出部からパルスが与えられる
までにカウント値が所定値に達した場合には所定の検出
信号を出力するウォッチドッグタイマ部と、 を有する故障自己判定実行回路を設け、前記検出信号
を、第2のクロック系の故障検出信号として出力するよ
うにしたことを特徴とするシステム制御装置。
5. A normal processing unit that operates on a first clock system and performs system control during normal operation, and operates on a second clock system that is slower than the first clock system and usually waits. A standby processing device for performing temporary system control as an emergency measure when an abnormality occurs, wherein the standby processing device includes: a clock signal of the first clock system. A first frequency divider for dividing the frequency of the clock signal CLK1, a second frequency divider for dividing the frequency of the clock signal CLK2 of the second clock system, a rising edge of the frequency-divided signal by the second frequency divider, A double edge detector for generating a pulse signal synchronized with a falling edge; and a function for counting the clock signal divided by the first frequency divider. A watchdog timer unit that returns a count value to an initial value at the time when the pulse is given, and outputs a predetermined detection signal when the count value reaches a predetermined value before the pulse is applied from the double edge detection unit. A system control device, comprising: a failure self-determination execution circuit having the following configuration, and outputting the detection signal as a failure detection signal of a second clock system.
JP20904593A 1993-07-30 1993-07-30 System control unit Expired - Fee Related JP3308669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20904593A JP3308669B2 (en) 1993-07-30 1993-07-30 System control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20904593A JP3308669B2 (en) 1993-07-30 1993-07-30 System control unit

Publications (2)

Publication Number Publication Date
JPH0743257A JPH0743257A (en) 1995-02-14
JP3308669B2 true JP3308669B2 (en) 2002-07-29

Family

ID=16566348

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20904593A Expired - Fee Related JP3308669B2 (en) 1993-07-30 1993-07-30 System control unit

Country Status (1)

Country Link
JP (1) JP3308669B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5973755B2 (en) * 2012-03-12 2016-08-23 ローム株式会社 Semiconductor devices, in-vehicle devices, vehicles
CN106462485B (en) * 2014-06-20 2019-02-22 日立汽车系统株式会社 Controller for motor
DE102015003194A1 (en) * 2015-03-12 2016-09-15 Infineon Technologies Ag Method and device for handling safety-critical errors
JP6109257B2 (en) 2015-07-21 2017-04-05 三菱電機株式会社 Drive device
WO2022185822A1 (en) * 2021-03-02 2022-09-09 株式会社デンソー Display control system for vehicle

Also Published As

Publication number Publication date
JPH0743257A (en) 1995-02-14

Similar Documents

Publication Publication Date Title
JPH05147477A (en) Vehicular control device
EP3343373B1 (en) Semiconductor device comprising watchdog timer
KR20190035480A (en) Microcontroller and control method of the same
JP3308669B2 (en) System control unit
US10102166B2 (en) Multiprocessor system
US5291425A (en) Test mode setting arrangement for use in microcomputer
JPS5833576B2 (en) Computer system failure diagnosis device
KR950012053B1 (en) Micro processor and intergated circuit
KR20070068405A (en) Data processing system with a variable clock speed
US20030140289A1 (en) Dual port RAM
JP3099927B2 (en) Microcomputer
US7188010B2 (en) Device and method for converting a diagnostic interface to SPI standard
JP2007535234A (en) Method and integrated circuit for improving jamming tolerance
JPH08115235A (en) Abnormality detector for controller and method therefor
US5481580A (en) Method and apparatus for testing long counters
JPH05274189A (en) Monitor and protection circuit device for controller
KR101876356B1 (en) Error detection circuit, vehicle electronic control system having the same, and operating method thereof
US20110251821A1 (en) Method and device for testing a computer core in a processor having at least two computer cores
US20230349969A1 (en) Processing system, related integrated circuit, device and method
EP0851351A2 (en) Emulation system and method for microcomputer
JPS61273677A (en) Collecting system for system information
JPS6362776B2 (en)
JP3433824B2 (en) Failure detection device for pulse input / output circuit
JPS6051729B2 (en) composite latch circuit
SU1451701A1 (en) Majority microprocessor device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees