JPS61234401A - On-vehicle controller - Google Patents

On-vehicle controller

Info

Publication number
JPS61234401A
JPS61234401A JP7696785A JP7696785A JPS61234401A JP S61234401 A JPS61234401 A JP S61234401A JP 7696785 A JP7696785 A JP 7696785A JP 7696785 A JP7696785 A JP 7696785A JP S61234401 A JPS61234401 A JP S61234401A
Authority
JP
Japan
Prior art keywords
data
storage means
control
stored
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7696785A
Other languages
Japanese (ja)
Other versions
JP2502968B2 (en
Inventor
Yasutaka Yamauchi
山内 康孝
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 JP60076967A priority Critical patent/JP2502968B2/en
Publication of JPS61234401A publication Critical patent/JPS61234401A/en
Application granted granted Critical
Publication of JP2502968B2 publication Critical patent/JP2502968B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
  • Control Of Vehicle Engines Or Engines For Specific Uses (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To attain the control with high reliability by replacing a data stored in a rewrite enable storage means into a data stored in a general-purpose data storage means when the data stored in the rewrite enable storage means is not effective. CONSTITUTION:An arithmetic control means M3 executes the control relating to the operation of a vehicle according to a procedure stored normally in a fixed storage means M1 and a data stored in the rewrite enable storage means M2 is used as to various factors on the control different depending on the controlled system. When the data stored in the means M2 is not effected to the execution of a prescribed control relating to the operation of the vehicle, it is detected by an ineffective data detection means M5. Then the data stored in the general-purpose data storage means M4 in advance is used in place of the ineffective data to perform the prescribed control relating to the operation of vehicle.

Description

【発明の詳細な説明】 及更五貝仰 [産業上の利用分野] 本発明は車両用制御装置に関し、詳しくは車両運転に関
する種々の制御を論理演算によって実現する車両用制御
装置において、制御に用いられるデータの変更の容易性
と信頼性とを好適に実現する車両用制御・装置に関する
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a vehicle control device, and more specifically, to a vehicle control device that implements various controls related to vehicle operation by logical operations. The present invention relates to a vehicle control/device that suitably realizes ease of changing data used and reliability.

、[従来の技術] 近年、自動車に搭載される制m11装置の電子化、とり
わけマイクロコンピュータ等の論理演算手段を用いたデ
ィジタル制御が、内燃機関の燃料噴射量制御等の制御装
置や自動変速制御装置、アンチスキッドあるいはトラク
ションコントロール装置などを中心に急速に普及してい
る。論理演算手段を用いた制御装置では、種々の条件に
応じて様々の制御を容易に行なうことができるので、精
度の高い制御や緻密な制御を実行することができる上、
同一の構成(ハードウェア)でも処理手順(ソフトウェ
ア)を変更するだけで、種々の制御に対処できるといっ
た利点も存在する。
, [Prior Art] In recent years, computerization of M11 control devices installed in automobiles, especially digital control using logical calculation means such as microcomputers, has become increasingly popular in control devices such as fuel injection amount control of internal combustion engines and automatic gear shift control. It is rapidly becoming popular mainly in anti-skid and traction control devices. A control device using logical operation means can easily perform various controls according to various conditions, so it is possible to perform highly accurate control and precise control.
Another advantage is that even with the same configuration (hardware), various controls can be handled by simply changing the processing procedure (software).

ところで、車両運転に関する制御が同一であっても制御
対象となるシステムはすこしずつ異なるのが普通であっ
て、例えば内燃機関の燃料噴射量制御装置では気筒数の
種類、吸入空気量検出手法の違い、内燃機関の燃料噴射
量制御装置と共働する自動変速制御装置やオートエアコ
ン等の種類、あるいはこれらの組合わせ等により、実際
に行なわれる制御は完全に同一とはならない。従って、
こうした制御対象にあわせて種の制御手順や制御に用い
るデータ等を用意しなければならない。論理演算によっ
て制御を行なう車両用制御装置では、通常、こうした予
め定められた処理手順や制御に必要なデータは、書き換
え不可能な形で記憶する固定記憶手段、例えばマスクR
OM等に記憶しておかれる。
By the way, even if the control related to vehicle operation is the same, the systems to be controlled are usually slightly different.For example, in the fuel injection amount control device for an internal combustion engine, there are differences in the number of cylinders and the intake air amount detection method. The control that is actually performed will not be completely the same depending on the type of automatic transmission control device or automatic air conditioner that cooperates with the fuel injection amount control device of the internal combustion engine, or a combination thereof. Therefore,
Species control procedures and data used for control must be prepared in accordance with these control targets. In a vehicle control device that performs control using logical operations, such predetermined processing procedures and data necessary for control are usually stored in fixed storage means that stores them in a non-rewritable form, such as mask R.
It is stored in OM etc.

ところが、マスクROMは半導体である為、マスクパタ
ーンの開発にかなりの時間とコストとを要し、またマス
クパターンの変更も容易には行なえないという問題があ
った。従って、新たな制御を実現する車両用制御装置を
開発するにあたっては、制御装置の完成に先立って相当
に長期の期間(すくなくとも月単位)をかけて制御装置
の仕様を定め、制御手順の正当性の証明、制御特性の評
価を繰返さねばならなかった。また、マスクROMの完
成後の制御手順、データ等の変更、プログラムの不具合
点(所謂バグ)の解消等は、マスクパターンを作りなお
す以外には行なうことができなかった。従って、マスク
ROMのような固定記憶手段を用いる場合には、多種類
に亘る機種別。
However, since the mask ROM is a semiconductor, it takes a considerable amount of time and cost to develop a mask pattern, and the mask pattern cannot be easily changed. Therefore, when developing a vehicle control device that realizes new control, it is necessary to determine the specifications of the control device over a considerable period of time (at least months) before completing the control device, and to evaluate the validity of the control procedure. It was necessary to repeatedly prove this and evaluate the control characteristics. Further, after the completion of the mask ROM, the control procedure, data, etc. can be changed, program defects (so-called bugs) can be eliminated, etc., only by re-creating the mask pattern. Therefore, when using a fixed storage means such as a mask ROM, there are many different models.

構成別の最適な制御手順・諸元を単一のマスクROMに
用意することは現実には困難なことであった。
In reality, it is difficult to prepare optimal control procedures and specifications for each configuration in a single mask ROM.

そこで、従来、一定の条件の下でデータを書き込むこと
ができる再書込可能記憶手段を用いて、上記の問題を解
決しようとする提案がなされている。例えば、特開昭5
9−28030号公報の「電子燃料噴射装置の異常時バ
ックアップ装置」のように、制御に用いられる一部のデ
ータをプログラマブルリードオンリーメモリ(FROM
)に記憶することによって、多種類の制御に共通する基
本的な制御に用いるデータと、機種毎、構成毎に異なる
制御のデータとを分離して、マスクROMの種類を減ら
して、多品種の車両用制御装置を実現しようとする提案
がなされている。
Conventionally, proposals have been made to solve the above problem by using rewritable storage means that allows data to be written under certain conditions. For example, JP-A-5
9-28030, a part of the data used for control is stored in a programmable read-only memory (FROM).
), the data used for basic control that is common to many types of control is separated from the data for control that differs for each model and configuration, reducing the number of types of mask ROM and making it possible to use multiple types of control. Proposals have been made to realize vehicle control devices.

[発明が解決しようとする問題点] かかる従来技術を背景として本発明が解決しようとする
のは次の問題である。
[Problems to be Solved by the Invention] Against the background of the prior art, the following problems are to be solved by the present invention.

(1) 一定の条件下でデータの書き込みができるよう
な記憶手段、例えばFROMを用いた場合、FROMに
記憶された内容(データ)が消去・書き換わってしまう
ということが現実にありえる。例えばFROMの実装上
のトラブル(ICソケットの接触不良等)が考えられる
。また、通常のPROMでは、FETで形成されたセル
にエネルギによってセルの性質を変えることによってデ
ータの書き込みを行なっており、このセルの状態を変更
するだけのエネルギが外部から与えられれば、データが
変ってしまうことがありえるからである。この事は、近
年急速に進められているPROMの大容量化、即ちセル
の大きさの縮小に従って、問題となることが考えられる
(1) When using a storage device that allows data to be written under certain conditions, such as a FROM, it is actually possible that the contents (data) stored in the FROM may be erased or rewritten. For example, there may be trouble in mounting the FROM (such as poor contact with the IC socket). In addition, in a normal PROM, data is written to a cell formed by a FET by changing the properties of the cell with energy, and if enough energy is applied from the outside to change the state of the cell, the data will be written. This is because things can change. This may become a problem as the capacity of PROMs is rapidly increased in recent years, that is, the cell size is reduced.

(2) また、FROMの実装まちがいによって、本来
用意されるべきデータに替えて誤ったデータが与えられ
ることがありえる。こうした誤りは、車両運転に関する
制御の種類が増え、これに対応したFROMの種類が増
加する程、生じる可能性が高くなる。ところがcpu、
マスクROM側から見た場合、異なるFROMであるか
否かの判断がしにくく、例えば4気筒の内燃機関に用い
られる同期燃料噴射制御用のデータで6気筒の内燃機関
を制御することになってしまい、最適な制御から逸脱し
たとしても、これを検出することは極めて困難であった
(2) Furthermore, due to a mounting error in FROM, incorrect data may be provided in place of the data that should have been prepared. Such errors are more likely to occur as the number of types of control related to vehicle operation increases and the number of corresponding FROMs increases. However, cpu,
When viewed from the mask ROM side, it is difficult to determine whether or not the FROM is different. For example, a 6-cylinder internal combustion engine is controlled using data for synchronous fuel injection control used in a 4-cylinder internal combustion engine. Therefore, even if there was a deviation from optimal control, it was extremely difficult to detect it.

(3) 更に、車両用制御装置では、上記(1)、(2
)のケースにおいて、例えば複数ビットからなるデータ
の1ビツトが何らかの異常によって消去または変更され
た場合、あるいは誤ったFROMが実装された為にデー
タが異なっている場合、車両の制御に与える影響がきわ
めて大きいという問題があった。わずか1ビツトの誤り
であっても、それが、例えば最上位ビットであれば論理
演算におけるデータとして、大きく相違することは容易
に諒解されよう。またそのビットが車両運転に関する何
らかの状態、例えば車載の変速機が自動変速機であるか
手動変速機であるかを示すフラグであれば、制御そのも
のが現実の制御対象に適合しなくなってしまうことも考
えられる。
(3) Furthermore, in the vehicle control device, the above (1) and (2)
), for example, if one bit of data consisting of multiple bits is erased or changed due to some abnormality, or if the data differs because the wrong FROM was installed, the impact on vehicle control will be extremely large. The problem was that it was big. It is easily understood that even if the error is only one bit, if it is the most significant bit, the data in the logical operation will be greatly different. Furthermore, if the bit is a flag indicating some state related to vehicle operation, for example, whether the in-vehicle transmission is an automatic transmission or a manual transmission, the control itself may no longer be compatible with the actual control target. Conceivable.

そこで、本発明は、上記の問題点を解決することを目的
としてなされ、FROM等の再書込可能記憶手段を用い
て多様な制御を実現しうるように構成された車両用制御
装置において、この記憶手段に記憶されたデータの確か
らしぎを保証して安全性の高い制御を実現する車両用制
御装置を提案するものである。
SUMMARY OF THE INVENTION Therefore, the present invention has been made with the aim of solving the above-mentioned problems, and is directed to a vehicle control device configured to realize various controls using a rewritable storage means such as FROM. The present invention proposes a vehicle control device that guarantees the reliability of data stored in a storage means and realizes highly safe control.

凡」L璽感。Ordinary' L seal feeling.

[問題を解決するための手段] かかる目的を達成すべく、本発明は問題を解決するため
の手段として、次の構成をとった。即ち、第1図に示す
ように、 すくなくとも車両運転に関する所定の制御に対応した処
理手順を含むデータを記憶し、該記憶されたデータが消
去・書換えられることのない固定記憶手段M1と、 データを所定の条件において書込むことができ、前記車
両運転に関する所定の制御に用いる特定のデータを記憶
する再書込可能記憶手段M2と、該記憶された特定のデ
ータを用い、前記記憶された手順に従う処理を実行する
ことによって、前記車両運転に関する所定の制御に用い
られる制御量を集中処理する論理演算手段M3と、を備
えた車両制御装置において、 前記車両運転に関する所定の制御を行なうのに最低限必
要なデータを保存する汎用データ記憶手段M4と、 前記再書込可能記憶手段M2に記憶されたデータが、前
記車両運転に関する所定の制御の実行にとって有効でな
い場合、これを検出する無効データ検出手段M5と、 を備えると共に、 前記論理演算手段M3が、 前記無効データ検出手段M5によって前記再書込可能記
憶手段M2に記憶されたデータが有効でないとの検出が
なされた時、該データに替えて、前記汎用データ記憶手
段M4に記憶されたデータを用いて、前記制御量を集中
処理するよう構成されたことを特徴とする車両用制御装
置の構成がそれである。
[Means for solving the problem] In order to achieve the above object, the present invention has the following configuration as a means for solving the problem. That is, as shown in FIG. 1, fixed storage means M1 stores data including at least processing procedures corresponding to predetermined control regarding vehicle operation, and the stored data cannot be erased or rewritten; Rewritable storage means M2 that can be written under predetermined conditions and stores specific data used for predetermined control regarding the vehicle operation, and the stored procedure is followed using the stored specific data. A vehicle control device comprising a logic operation means M3 that centrally processes a control amount used for a predetermined control related to the vehicle operation by executing a process, the minimum amount required to perform the predetermined control related to the vehicle operation. general-purpose data storage means M4 for storing necessary data; and invalid data detection means for detecting when the data stored in the rewritable storage means M2 is not valid for execution of a predetermined control regarding the vehicle operation. M5, and when the invalid data detection means M5 detects that the data stored in the rewritable storage means M2 is not valid, the logic operation means M3 replaces the data with the data stored in the rewritable storage means M2. This is a configuration of a vehicle control device characterized in that it is configured to centrally process the control amount using data stored in the general-purpose data storage means M4.

ここで、固定記憶手段M1とは、例えばマスクROMや
ヒユーズROM等であって、マスクパターン等により一
旦書き込まれたデータは消去・書き換えられることなく
保存される。      。
Here, the fixed storage means M1 is, for example, a mask ROM or a fuse ROM, and data once written using a mask pattern or the like is stored without being erased or rewritten. .

再書込可能記憶手段M2とは、例えば紫外線の照射によ
ってデータを消去でき、高い電圧を用いてデータを書き
込むことによって結果的にデ〒りを書換えられるEPR
OM(イレーザブルFROM)等種々のメモリが知られ
ており、マスクROMのような製造工数・コストを必要
としないり一ドオンリメモリである。
The rewritable storage means M2 is, for example, an EPR in which data can be erased by irradiation with ultraviolet rays, and data can be rewritten by writing data using a high voltage.
Various types of memories such as OM (erasable FROM) are known, and they are one-time only memories that do not require the manufacturing steps and costs of mask ROMs.

論理演算手段M3は中央処理ユニットCPLJ(MPL
Iと呼ばれることもある)を備え、入力手段を介して読
み込んだデータに対し、予め再書込可能記憶手段M2等
に記憶しておいたデータを用い、固定記憶手段Ml等に
予め記憶された制御手順に従って条件判断や演算等を行
ない、その結果を必要に応じて出力手段を介して出力す
るといった制御を行なうものである。通常は複数ビット
を同時に扱う構成を有し、4ビツト、8ビツト、16ビ
ツト、32ビツト等の各種のものが知られている。
The logic operation means M3 is a central processing unit CPLJ (MPL
(sometimes referred to as I), and for data read through the input means, the data stored in advance in the rewritable storage means M2 etc. is used, and the data stored in advance in the fixed storage means Ml etc. It performs control such as determining conditions, performing calculations, etc. according to a control procedure, and outputting the results via an output means as necessary. It usually has a configuration that handles multiple bits at the same time, and various types such as 4 bits, 8 bits, 16 bits, and 32 bits are known.

汎用データ記憶手段M4とは、車両用制御装置の行なう
車両運転に関する所定の制御に用いる最小限必要なデー
タを保存するものであって、例えば上記の固定記憶手段
M1と同様にマスクROM等に記憶したり、随時書き込
みが禁止され確実な電源バックアップ手段を有するスタ
ンバイRAM等であっても、更には今ひとつのFROM
であってもよい。ここで保存される最低限のデータとは
、車両用制御装置が実行する制御によって種々異なるが
、例えば点火時期制御を行なう場合には、適用される内
燃機関によらずノッキング等を生じることのない点火進
角等、車両運転の安全を充分に確保できるようなデータ
である。
The general-purpose data storage means M4 stores the minimum necessary data used for predetermined control regarding vehicle operation performed by the vehicle control device, and is stored in, for example, a mask ROM or the like like the above-mentioned fixed storage means M1. Even if it is a standby RAM that is prohibited from writing at any time and has a reliable power backup method, it is even more difficult to use FROM
It may be. The minimum data stored here varies depending on the control executed by the vehicle control device, but for example, when performing ignition timing control, it is necessary to ensure that knocking does not occur regardless of the internal combustion engine to which it is applied. This is data such as ignition advance angle that can sufficiently ensure vehicle driving safety.

無効データ検出手段M5とは、再書込可能記憶手段M2
に記憶されたデータが、車両用データにおいて行なわれ
る制御にとって有効なデータでない場合にこれを検出す
るものであって、例えば再書込可能記憶手段M2のデー
タに対してパリティやチェックサム等を施しておき、こ
れからデータに誤りが生じたことを検出する手段等が考
えられる。この他、再書込可能記憶手段M2内のデータ
を予め2組用意しておき、論理演算手段M3が、この2
組のデータの一致を確認するような処理によって、無効
データ検出手段M5を構成することもできる。
The invalid data detection means M5 is the rewritable storage means M2.
This is to detect when the data stored in the vehicle data is not valid data for the control performed in the vehicle data, for example, by applying parity, checksum, etc. to the data in the rewritable storage means M2. Then, it is possible to consider a means for detecting that an error has occurred in the data. In addition, two sets of data in the rewritable storage means M2 are prepared in advance, and the logical operation means M3
The invalid data detecting means M5 can also be configured by a process of checking whether the sets of data match.

[作用] 上記構成を有する本発明の車両用側m装置によれば、演
算制御手段M3は、通常、固定記憶手段M1に記憶され
た手順に従って、車両運転に関する制御を実行し、制御
対象によって異なる制御上の諸元等については再書込可
能記憶手段M2に記憶されたデータを用いる。しかるに
、再書込可能記憶手段M2のデータが消去あるいは書き
換えられた時、もしくは誤った再書込可能記憶手段M2
が用いられたりそのデータが用意されなかった時、無効
データ検出手段M5によってこれを検出し、このデータ
に替えて予め汎用データ記憶手段M4に保存されたデー
タを用いて、車両運転に関する所定の制御を行なうよう
に働く。
[Function] According to the vehicle side m-device of the present invention having the above configuration, the arithmetic control means M3 normally executes control related to vehicle operation according to the procedure stored in the fixed storage means M1, and performs control that differs depending on the object to be controlled. For control specifications, etc., data stored in the rewritable storage means M2 is used. However, when the data in the rewritable storage means M2 is erased or rewritten, or when the data in the rewritable storage means M2 is
is used or the data is not prepared, the invalid data detection means M5 detects this, and replaces this data with data previously stored in the general-purpose data storage means M4 to perform predetermined control regarding vehicle operation. work to accomplish this.

従って、燃料噴射制御や点火時期制御といった内燃機関
の制御装置、変速機やトラクションコントロール、アン
チスキッドコントロールといった制御を行なう制御装置
等において、各々多種の機種、構成が存在する場合、こ
れに応じたデータを再書込可能記憶手段M2毎に用意し
て緻密な制御を実現すると共に、このデータが有効でな
くなった時には、各制御対象を安全に制御しうるデータ
を用いて制御を行なうように働くのである。
Therefore, when there are various models and configurations of internal combustion engine control devices such as fuel injection control and ignition timing control, and control devices that perform control such as transmission, traction control, and anti-skid control, data corresponding to these devices is available. is prepared for each rewritable storage means M2 to achieve precise control, and when this data is no longer valid, it works to perform control using data that can safely control each controlled object. be.

[実施例] 以下、本発明の実施例を図面に基づいて詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail based on the drawings.

第2図は本発明一実施例としてのエンジン制御を行なう
車両用制御装置の構成を示すブロック図である。本実施
例では内燃機関本体の構成等は発明の要旨に直接関係な
いので、特に説明しない。
FIG. 2 is a block diagram showing the configuration of a vehicle control device that controls an engine as an embodiment of the present invention. In this embodiment, the structure of the internal combustion engine main body and the like are not directly related to the gist of the invention, and therefore will not be particularly described.

図において、1はエンジンの点火時期や燃料噴射量等を
制御する電子制御回路(ECU)であって、論理演算手
段M3としての周知のCPU (例えばモトローラ社M
6801等)3.固定記憶手段M1としてのマスクRO
M5.ランダムアクセスメモリ(RAM>7.再書込可
能記憶手段M2としてのFROM(例えば富士通MBM
27064等)9.スタンバイRAM11.入力回路1
2゜出力回路14等をコモンバス16を介して相互に接
続しデータ等のやりとりを行なうよう構成されている。
In the figure, reference numeral 1 denotes an electronic control circuit (ECU) that controls engine ignition timing, fuel injection amount, etc., and includes a well-known CPU (for example, Motorola M
6801 etc.) 3. Mask RO as fixed storage means M1
M5. Random access memory (RAM>7. FROM as rewritable storage means M2 (e.g. Fujitsu MBM)
27064 etc.) 9. Standby RAM11. Input circuit 1
The 2° output circuit 14 and the like are connected to each other via a common bus 16 to exchange data and the like.

ここに、スタンバイRAMI 1とは、バッテリ20か
らイグニッションスイッチ22を介してECtJlに供
給される電源が切られても、猶、電源電圧の供給をうけ
て、その内容を保存するランダムアクセスメモリとして
構成される。スタンバイRAM11用の電源は、イグニ
ッションスイッチ22を介することなくバッテリ20か
ら供給するよう構成してもよいし、ECUl等に内蔵さ
れた二次電池等を用いてバックアップする構成としても
よい。
Here, the standby RAMI 1 is configured as a random access memory that continues to receive power supply voltage and store its contents even if the power supplied from the battery 20 to the ECtJl via the ignition switch 22 is turned off. be done. The power for the standby RAM 11 may be configured to be supplied from the battery 20 without going through the ignition switch 22, or may be configured to be backed up using a secondary battery or the like built in the ECU1 or the like.

入力回路12は、エンジンに設けられた各種センサから
の信号を入力する回路であって、例えば、エンジンの回
転数Neを回転数センサ30からのパルス信号として、
エンジンの吸入空気量Qaをエアフロメータ31からの
アナログ信号として、エンジンの冷却水温Thwを水温
センサ32からのアナログ信号として、各々入力する。
The input circuit 12 is a circuit that inputs signals from various sensors provided in the engine, and for example, inputs the engine rotation speed Ne as a pulse signal from the rotation speed sensor 30.
The intake air amount Qa of the engine is input as an analog signal from the air flow meter 31, and the engine cooling water temperature Thw is input as an analog signal from the water temperature sensor 32, respectively.

また、入力回路12には、自己診断の結果の表示を行な
わせる場合のテスト信号Tを入力するダイアグ端子33
も接続されている。
The input circuit 12 also includes a diagnostic terminal 33 to which a test signal T is input when displaying the self-diagnosis results.
is also connected.

一方、出力回路14は、上述の各センサから入力された
エンジンの運転条件に基づいて定められた点火時期や燃
料噴射量を実現するように各種の制御信号を出力する回
路であって、本実施例では、燃料噴射量制御を制御する
Inj信号を電磁式燃料噴射弁40に、点火時期を制御
するIC1t信号をイグナイタ41に、自己診断の結果
を出力するW信号をダイアグ表示器43に、各々出力す
るよう構成されている。
On the other hand, the output circuit 14 is a circuit that outputs various control signals so as to realize the ignition timing and fuel injection amount determined based on the engine operating conditions input from each of the above-mentioned sensors. In the example, the Inj signal that controls fuel injection amount control is sent to the electromagnetic fuel injection valve 40, the IC1t signal that controls ignition timing is sent to the igniter 41, and the W signal that outputs the self-diagnosis result is sent to the diagnostic display 43. is configured to output.

E、CUlのCPtJ3は、マスクROM7内に予め記
憶された処理手順に従って基本制御として点火時期制御
や燃料噴射量制御等を行なうが、これらの制御に用いら
れる各種の補正係数、例えばエンジン冷却水温に基づく
暖機増量補正係数FthW等の計算には、予め機種毎に
定められたマツプを用いる。以下、CPU3の実行する
制御について第3図、第5図のフローチャートに基づい
て説明する。
CPtJ3 of E, CU1 performs basic control such as ignition timing control and fuel injection amount control according to the processing procedure stored in advance in the mask ROM 7, but it also controls various correction coefficients used for these controls, such as engine cooling water temperature. A map predetermined for each model is used to calculate the warm-up increase correction coefficient FthW and the like. Hereinafter, the control executed by the CPU 3 will be explained based on the flowcharts of FIGS. 3 and 5.

第3図は、本実施例の制御ルーチンを示すフローチャー
トであって、イグニッションスイッチ22がオンとされ
た後、ステップ100より処理を開始する。まず、各ス
テップでの処理・判断について説明する。
FIG. 3 is a flowchart showing the control routine of this embodiment, and the process starts from step 100 after the ignition switch 22 is turned on. First, the processing and judgment at each step will be explained.

ステップ100:出力回路14を介した制御出力、RA
M7.スタンバイRAM11等の初期化を行なう。
Step 100: Control output via output circuit 14, RA
M7. Initialize the standby RAM 11, etc.

ステップ110 : PROM9の所定の番地、本実施
例では$07FE、$07FFのデータPCODEを読
み出す処理を行なう。
Step 110: Data PCODE at predetermined addresses in the PROM 9, $07FE and $07FF in this embodiment, is read out.

ステップ120ニステツプ110で読み出したデータP
CODEの内容をマスクROM5内のデータと付合わせ
て、ECUlに実装されたPROM9が適合するPRO
Mであるか否かの判断を行なう。マスクROM5は、所
定の番地にPCODEを解析するデータ、例えば次表に
その一部を示す如きデータを有する。
Step 120 Data P read out in step 110
By combining the contents of CODE with the data in mask ROM5, PROM9 mounted in ECU1 is compatible with PRO.
It is determined whether or not it is M. The mask ROM 5 has data for analyzing the PCODE at a predetermined address, for example data as shown in part in the following table.

表1 ここでビット位置A1.A2等はデータPCODEを4
ビツトずつ区切った値であって、例えばA1はアドレス
$C7FEの上位4ビツト、A2はアドレス$07FE
の下位4ビツト、A3はアドレス$07FFの上位4ビ
ツト、・・・といったように定められている。
Table 1 where bit position A1. For A2 etc., data PCODE is 4
Values separated by bits, for example, A1 is the upper 4 bits of address $C7FE, A2 is address $07FE.
The lower 4 bits of address $07FF, A3 are defined as the upper 4 bits of address $07FF, and so on.

従って、ステップ120では、FROM9のデータPC
ODEを読み出して、この値が予めマスクROM5内に
用意された対応表1の内容に対応したものであるか否か
を判断し、FROM9がエンジン制御を行なうこの車両
用制御装置に正しく適合するものであるか否かの判断を
行なうのである。
Therefore, in step 120, the data PC of FROM9 is
ODE is read and it is determined whether this value corresponds to the contents of the correspondence table 1 prepared in advance in the mask ROM 5, and FROM 9 is the one that correctly matches this vehicle control device which performs engine control. The decision is made as to whether or not it is.

ステップ130 : PROMQ内の記憶されたデータ
に誤りがないか否かの判断を行なう。これは、例えばF
ROM9内に必要なテーブル等の値を予め2組用意して
おき、これらのデータを全て比較することによって、記
憶されたデータが正しいか否かの判断を行なうのである
。本実施例では2組のデータは互いに反転されたデータ
として用意されている。この様子を第4図に概念的に示
した。
Step 130: Determine whether the data stored in PROMQ is free of errors. This is, for example, F
Two sets of necessary table values and the like are prepared in advance in the ROM 9, and by comparing all of these data, it is determined whether the stored data is correct or not. In this embodiment, two sets of data are prepared as mutually inverted data. This situation is conceptually shown in FIG.

尚、これ以外にも各データにパリティを付しておきこれ
をチェックする手法や、幾つかのデータ毎にその和(チ
ェックサム)をとっておいてこれをチェックする方法等
が考えられる。
In addition, there are other methods that can be considered, such as adding parity to each piece of data and checking it, or adding the sum (checksum) of each piece of data and checking it.

ステップ140.ステップ150:上記のステップ11
0ないしステップ130での処理・判断に従って、初期
値OのフラグFの値を、ステップ140ではF=Oに、
ステップ150ではF=1にセットする処理を行なう。
Step 140. Step 150: Step 11 above
According to the processing and judgment in step 130, the value of the flag F is set to the initial value O, and in step 140, F=O.
In step 150, processing is performed to set F=1.

以上のステップ110ないしステップ150が、無効デ
ータ検出手段M5として働く。
The above steps 110 to 150 function as invalid data detection means M5.

ステップ160ニスタンバイRAM11より所定のアド
レスのデータ(スタンバイRAMコード)KEYWDを
読み出す処理を行なう。
Step 160 A process of reading data (standby RAM code) KEYWD at a predetermined address from the standby RAM 11 is performed.

ステップ170:データKEYWDが$55AAである
か否かの判断を行なう。初めて本制御ルーチンが実行さ
れた時、あるいは電源電圧低下等何らかの異常によって
スタンバイRAM11の内容が破壊された時には、デー
タKEYWDの値は後述するステップ195で書き込ま
れたデータ$55AAから変更されると考えられるので
、これによりスタンバイRAM11の内容が正しいか否
かの判断を行なう。
Step 170: Determine whether the data KEYWD is $55AA. When this control routine is executed for the first time, or when the contents of the standby RAM 11 are destroyed due to some abnormality such as a drop in the power supply voltage, the value of the data KEYWD is considered to be changed from the data $55AA written in step 195, which will be described later. Therefore, it is determined whether the contents of the standby RAM 11 are correct or not.

ステップ180ニステツプ170での判断が「NO」、
即ちスタンバイRAM11の内容が正しくないと判断さ
れた時に実行され、フラグFの値が零であるか否かの判
断を行なう。
Step 180 If the judgment in step 170 is "NO",
That is, it is executed when it is determined that the contents of the standby RAM 11 are incorrect, and it is determined whether or not the value of the flag F is zero.

ステップ190ニステツプ180での判断において、フ
ラグF=Oの時、即ちステップ110ないしステップ1
40での処理によりFROM9のデータが有効と判断さ
れている時、ステップ195と共に実行され、PROM
Q内のテーブル等のデータをスタンバイRAM11の所
定の領域に転送する処理が行なわれる。
In the judgment at step 180, if the flag F=O, that is, from step 110 to step 1.
When the data in FROM9 is determined to be valid by the process in step 40, it is executed together with step 195, and the data in PROM9 is determined to be valid.
Processing is performed to transfer data such as tables in Q to a predetermined area of standby RAM 11.

ステップ195ニスタンバイRAM11に正しくデータ
のセットが行なわれたとして、スタンバイRAM11の
所定のアドレスにスタンバイRAMコードとしてKEY
WD=$55AAを書込む処理が行なわれる。
Step 195 Assuming that the data has been correctly set in the standby RAM 11, the KEY is stored at a predetermined address in the standby RAM 11 as a standby RAM code.
Processing to write WD=$55AA is performed.

ステップ200 : KEYWD=$55AAとなった
後(ステップ170またはステップ195の後)に実行
され、PROMQ内のデータが有効であるか否か、即ち
フラグF=Oであるか否かの判断が行なわれる。
Step 200: Executed after KEYWD=$55AA (after step 170 or step 195), it is determined whether the data in PROMQ is valid, that is, whether flag F=O. It will be done.

ステップ210ニステツプ200の判断においてフラグ
F=Oであった時に実行され、FROM9内の所定のテ
ーブルのデータとスタンバイRAM11に既にロードさ
れた同一のテーブルのデータとが全て一致するか否かの
判断が行なわれる。
Step 210 is executed when the flag F=O in the judgment of step 200, and it is judged whether the data of a predetermined table in FROM 9 and the data of the same table already loaded in standby RAM 11 all match. It is done.

ステップ220ニステツプ210の判断においてFRO
M9のデータとスタンバイRAM11のデータとが一致
した時に実行され、以後使用すべきデータの格納場所を
示すフラグFDをFD=$OO1即ちFROM9内のデ
ータを使用すると定める処理を行なう。
In step 220 and step 210, FRO
A process is executed when the data in M9 and the data in standby RAM 11 match, and the flag FD indicating the storage location of the data to be used from now on is set to FD=$OO1, that is, the data in FROM9 will be used.

ステップ230 : FROM9内のデータが有効でな
くスタンバイRAM11内のデータが正しいと判断され
た時(ステップ200での判断またはステップ210で
の判断がrNOJの時)、フラグFDの値を$FF1即
ち使用すべきデータとしてスタンバイRAM11のデー
タを選択すると定める処理を行なう。
Step 230: When it is determined that the data in FROM 9 is not valid and the data in standby RAM 11 is correct (when the determination in step 200 or step 210 is rNOJ), the value of flag FD is $FF1, that is, used. When the data in the standby RAM 11 is selected as the data to be processed, processing is performed.

以上のステップ200ないしステップ230では一旦有
効であると判断されたPROM9のデータがスタンバイ
RAM11上にロードされた後において、スタンバイR
AM11のデータが正常な場合(KEYWD=$55A
Aの場合)には、PROM9のデータとスタンバイRA
M11のデータとが一致するか否かを判断して、一致し
ない時にはスタンバイRAM11データのデータが正し
く、一致する時にはPROM9のデータを用いることが
できる、との判断を行なうのである。
In steps 200 to 230 above, after the PROM 9 data once determined to be valid is loaded onto the standby RAM 11, the standby R
If AM11 data is normal (KEYWD=$55A
In case A), PROM9 data and standby RA
It is determined whether or not the data in M11 matches, and if they do not match, it is determined that the data in the standby RAM 11 is correct, and if they match, it is determined that the data in PROM 9 can be used.

ステップ240ニステツプ180の判断において、フラ
グFの値が零でない時、即ちスタンバイRAM11内の
データの正しさが保証されず、かつPROM9のデータ
も有効でないと判断された時に実行され、使用すべきデ
ータをマスクROM5内のデータであると決定し、フラ
グFD=$AAと定める。こうした状況はECUlに実
装されたPROM9が適合しない機種のものである場合
や、PROM9の内容が消去されるなどの不具合が鋤生
じた後でスタンバイRAM11内のデータがその電源電
圧の低下等によって書換えられてしまった時などに生じ
る。
Step 240 is executed when the value of flag F is not zero in step 180, that is, when it is determined that the correctness of the data in standby RAM 11 is not guaranteed and that the data in PROM 9 is not valid. is determined to be the data in the mask ROM 5, and the flag FD=$AA is set. Such a situation may occur if the PROM 9 installed in the ECU is of an incompatible model, or after a problem occurs such as the contents of the PROM 9 being erased, the data in the standby RAM 11 is rewritten due to a drop in the power supply voltage, etc. Occurs when someone is hurt.

ステップ250:以上のステップ110ないしステップ
240の処理によって、データの有効性の判断を行なっ
た俊に実行され、周知の燃料噴射制御や点火時期制御等
を上記の処理によって選択されたメモリ上のデータを用
いて実行する制御ルーチンである。PROM9.スタン
バイRAM11またはマスクROM5のデータを選択し
て実行される制御の一例については、第5図に拠って後
述する。
Step 250: As soon as the validity of the data has been determined through the processing of steps 110 to 240, well-known fuel injection control, ignition timing control, etc. This is a control routine executed using PROM9. An example of control executed by selecting data in the standby RAM 11 or mask ROM 5 will be described later with reference to FIG.

ステップ260:ダイアグ制御ルーチンであって、50
m5ecに1回の割合でエンジン制御装置内の各センサ
や制御対象の動作等を含む自己診断を例えばフラグFの
値が零以外の場合にはPROM9のデータに異常がある
として、ダイアグ表示器43を点灯するような制御を行
なう。
Step 260: Diagnosis control routine, comprising:
Once every m5ec, the diagnostic display 43 performs a self-diagnosis that includes the operation of each sensor and controlled object in the engine control device, and if the value of the flag F is other than zero, it is assumed that there is an abnormality in the data in the PROM 9. control to turn on the light.

ステップ260の処理の後、ステップ110へ戻って、
上記のステップ110ないしステップ260の処理を繰
返す。
After the processing in step 260, return to step 110 and
The above steps 110 to 260 are repeated.

以上のように構成された本制御ルーチンによれば、 (1)  PROM9のデータが有効であると判断され
る時(F=0かつKEYWD=$55AA)には、PR
OMQ内のデータを用いるようにフラグFDの値を$O
Oとし、 (2)  PROM9のデータが有効でなく(F−=1
)スタンバイRAM11のデータが正しいと判断される
時(KEYWD=$55AA>には、スタンバイRAM
IIのデータを用いるようにフラグFDの値を$FFと
し、 (3)  PROM9のデータが有効でなく(F=1)
、スタンバイRAM11のデータも正しくない時<KE
YWD=$55AA)には、マスクROM5のデータを
用いるようにフラグFDの値を$AAとし、 ステップ250のエンジン制御ルーチンを実行するので
ある。
According to this control routine configured as above, (1) When it is determined that the data in PROM9 is valid (F=0 and KEYWD=$55AA), PR
Change the value of flag FD to $O to use the data in OMQ.
(2) PROM9 data is not valid (F-=1
) When the data in the standby RAM 11 is judged to be correct (KEYWD=$55AA>, the standby RAM
Set the value of flag FD to $FF so that the data of II is used, (3) PROM9 data is not valid (F = 1)
, when the data in standby RAM 11 is also incorrect <KE
When YWD=$55AA), the value of the flag FD is set to $AA so as to use the data in the mask ROM 5, and the engine control routine of step 250 is executed.

そこで次に、本実施例におけるエンジン制御ルーチン(
ステップ250)のうち、燃料噴射量τを算出するにあ
たって用いられる暖機増量補正係数Fthwを求める処
理について説明する。この“補正係数算出ルーチンは第
5図のフローチャートに示すようにステップ300から
開始されるが、まずステップ300ではフラグFDの値
についての判別が行なわれる。フラグFDは使用すべき
データがどのメモリ上にあるか示すものである。
Therefore, next, the engine control routine (
In step 250), the process of determining the warm-up increase correction coefficient Fthw used in calculating the fuel injection amount τ will be described. This "correction coefficient calculation routine" starts from step 300 as shown in the flowchart of FIG. 5. First, in step 300, the value of the flag FD is determined. It shows whether there is.

(1)  FDの値が$OOの場合には処理はステップ
310へ進み、PROM9のデータが有効であることか
ら、PROM9内の暖機増量補正係数1” t hw痒
出用テーブルFWLの先頭アドレスPADがインデクス
レジスタIXにロードされる。
(1) If the value of FD is $OO, the process advances to step 310, and since the data in PROM9 is valid, the warm-up increase correction coefficient 1" t hw in PROM9 is set to the start address of the itching table FWL. PAD is loaded into index register IX.

この際、直接先頭アドレスPADを参照するのではなく
、一旦先頭アドレスPADの値がおかれたポインタを参
照し、これを介して先頭アドレスPADを知る方法が用
いられる。これは、テーブルの種類が増えてその先頭ア
ドレスの変更を余儀なくされた場合でも、プログラムの
格納されたマスクROM5の内容を変更することなく処
理できるようにしたものでシステムの柔軟性を高め好適
である。
At this time, instead of directly referring to the starting address PAD, a method is used in which a pointer in which the value of the starting address PAD is once placed is referenced, and the starting address PAD is known through this pointer. This makes it possible to process the program without changing the contents of the mask ROM 5 in which the program is stored, even if the number of table types increases and the start address has to be changed. be.

(2) 一方、フラグFDの値が$FFであれば処理は
ステップ320へ進み、PROM9のデータが有効では
なく、これに替えてスタンバイRAM11のデータを用
いるとして、インデクスレジスタIXに、スタンバイR
AMII上に正常であった時点においてPROM9より
展開されたテーブルFWLの先頭アドレスSADをロー
ドする処理が行なわれる。
(2) On the other hand, if the value of the flag FD is $FF, the process proceeds to step 320, in which the standby R
A process is performed to load the start address SAD of the table FWL developed from the PROM 9 at the time of normality on the AMII.

(3) 上記(1)、(2>以外の場合、即ちフラグF
Dの値が$OOまたは$FF以外の場合には処理はステ
ップ330へ進み、テーブルFWLの先頭アドレスとし
てマスクROM5内に用意された暖機増量補正係数のテ
ーブルFWLの先頭アドレスMADをインデクスレジス
タIXにロードする。ここで、マスクROM5内に用意
されたテーブルFWLの汎用データとは、ECUlに実
装されたマスクROM5の制御プログラムが対応する複
数の機種、構成に対して共通に用いることができるよう
なデータであって、燃料噴射量の算出に用いられる暖機
増量補正係数Fthwについて言えば、適用機種の中で
最も大きな暖機増量補正係数程度のデータからなるテー
ブルとして構成される。テーブルは数種類用意しておい
てもよいが、限られたマスクROM5の記憶容量を有効
に利用する為に、例えば同一のテーブルを用い、これに
機種や制御装置の構成の違いに対応した係数を演算して
補正係数を求めるよう構成することもできる。機種や各
制御装置の構成等はPROMQ内に記憶されてもいるが
、これとは別に入力回路12の特定ポートに対応づけら
れたディップスイッチ等の設定から知るよう構成してお
くことができる。
(3) In cases other than (1) and (2> above, that is, flag F
If the value of D is other than $OO or $FF, the process proceeds to step 330, and the start address MAD of the warm-up increase correction coefficient table FWL prepared in the mask ROM 5 is set as the start address of the table FWL in the index register IX. Load into. Here, the general-purpose data of the table FWL prepared in the mask ROM 5 is data that can be commonly used for multiple models and configurations supported by the control program of the mask ROM 5 installed in the ECU1. Regarding the warm-up increase correction coefficient Fthw used to calculate the fuel injection amount, it is configured as a table consisting of data about the largest warm-up increase correction coefficient among the applicable models. Although several types of tables may be prepared, in order to effectively utilize the limited storage capacity of the mask ROM 5, for example, the same table may be used, and coefficients corresponding to differences in model and control device configuration may be added to the table. It can also be configured to calculate the correction coefficient. Although the model and configuration of each control device are stored in the PROMQ, it can be configured to be known from the settings of dip switches, etc., associated with specific ports of the input circuit 12.

以上のステップ300ないしステップ330の判断・処
理において、フラグFDの値が$00゜$FF以外の場
合にマスクROM5内の汎用データテーブルFWLを用
いるよう構成したのは、電源電圧の低下等によってこの
フラグFDの値が書き替えられてしまったような場合に
、最も安全なデータを用いることができるように配慮し
たものである。
In the judgment/processing of steps 300 to 330 above, the general-purpose data table FWL in the mask ROM 5 is used when the value of the flag FD is other than $00゜$FF. This is done so that the safest data can be used even if the value of the flag FD is rewritten.

ステップ310ないしステップ330の処理の終了後、
ステップ340ではレジスタAの値とインデクスレジス
タIXの示すアドレスの内容(以下、これを(IX>と
して表わす)との比較が行なわれる。ここでレジスタA
には入力回路12を介して水温センサ32から読み込ま
れたエンジンの冷却水温Thwの値が保持されているも
のとする。
After completing the processing from step 310 to step 330,
In step 340, the value of register A is compared with the content of the address indicated by index register IX (hereinafter expressed as (IX>). Here, register A
It is assumed that the value of the engine cooling water temperature Thw read from the water temperature sensor 32 via the input circuit 12 is held.

′  ステップ340での判断が「YES」、即ち冷却
水温ThWの値が(IX)の値よりも大きければ処理は
ステップ350へ進み、インデクスレジスタIXの値を
2だけインクリメントし、そのアドレスのデータをレジ
スタBにロードする処理(B←(IX))を行なう。更
にステップ360ではレジスタBの値との比較が行なわ
れる。
' If the determination in step 340 is "YES", that is, the value of the cooling water temperature ThW is greater than the value of (IX), the process proceeds to step 350, increments the value of the index register IX by 2, and stores the data at that address. Perform processing to load register B (B←(IX)). Further, in step 360, a comparison with the value of register B is performed.

第6図は本実施例で用いられる暖機増量補正係数のテー
ブルFWLを理解しやすいようにグラフ化したものであ
るが、このテーブルFWLは実際には冷却水IThwと
これに対応した暖機増量補正係数FttIWとを一組と
して、これを複数組用意したテーブルとしてメモリ上に
展開されている。
Fig. 6 is a graph for easy understanding of the table FWL of the warm-up increase correction coefficient used in this embodiment, but this table FWL actually shows the cooling water IThw and the corresponding warm-up increase. A plurality of sets of correction coefficients FttIW and FttIW are developed as a table in the memory.

次表2はPROM9上のアドレス$C00Oから$C0
0O+2nまでに用意されたデータの一例を示しており
、ここでXI 、 X2、−Xn−1、Xnは冷却水温
1’−hwに対応した値を、Yl 、 Y2 。
The following table 2 shows the addresses on PROM9 from $C00O to $C0.
An example of data prepared up to 0O+2n is shown, where XI, X2, -Xn-1, and Xn are values corresponding to the cooling water temperature 1'-hw, and Yl and Y2 are values corresponding to the cooling water temperature 1'-hw.

・・・Yn−1、’y’nは各々対応する暖機増量補正
係数FH)wの値を、示している。尚、アドレス$C0
00+2nのデータ$FFはこのテーブルFWLの終了
を示すものである。
...Yn-1 and 'y'n each indicate the value of the corresponding warm-up increase correction coefficient FH)w. In addition, address $C0
Data $FF of 00+2n indicates the end of this table FWL.

従って、ステップ350でのインデクスレジスタIXの
値2だけのインクリメント及びステップ360でのレジ
スタAとレジスタ8間の比較(A≦8?)を繰返すこと
によって、ステップ360での判断がrYEsJとなっ
た時には実際の水温Thwより大きくかつ最も近いテー
ブル上の水温Xiが求められるのである。
Therefore, by repeating the increment of the value of index register IX by 2 in step 350 and the comparison between register A and register 8 (A≦8?) in step 360, when the judgment in step 360 becomes rYEsJ, The water temperature Xi on the table that is larger and closest to the actual water temperature Thw is determined.

表2 以上の処理の後、ステップ370ではレジスタBの値が
$FFであるか否かの判断が行なわれる。
Table 2 After the above processing, in step 370, it is determined whether the value of register B is $FF.

$FFでなければ、ステ、ツブ380へ進んで、補間デ
ータを暖機増量補正係数Fthwとして求める処理を行
なう。ここで補間データの算出は、thW = (Thw−Xi−1)・(Yi −Yi−1>/ 
(Xi −Xi−1> +Yi−1として算出される。
If it is not $FF, the process proceeds to step 380 and performs processing to obtain the interpolated data as the warm-up increase correction coefficient Fthw. Here, the calculation of interpolation data is as follows: thW = (Thw-Xi-1)・(Yi -Yi-1>/
(Xi −Xi-1> +Yi-1).

尚、水温Thwの値はレジスタAに残されている。Note that the value of water temperature Thw remains in register A.

一方、ステップ370においてレジスタBの値が$FF
となった時には、処理はステップ390へ進み、上限値
に対応したデータYnが暖機増量補正係数1”thwに
算入される。
Meanwhile, in step 370, the value of register B is $FF.
When this happens, the process proceeds to step 390, and the data Yn corresponding to the upper limit value is included in the warm-up increase correction coefficient 1''thw.

尚、ステップ340においてレジスタAの値、即ち冷却
水@ThwがテーブルFWLの下限値より小ざい時には
処理はステップ400に進み、下限値に対応する値が暖
機増量補正係数Fthwとして算入される。
Incidentally, when the value of the register A, that is, the cooling water @Thw, is smaller than the lower limit value of the table FWL in step 340, the process proceeds to step 400, and the value corresponding to the lower limit value is included as the warm-up increase correction coefficient Fthw.

ステップ380.ステップ390もしくはステップ40
0の処理後、NEXTへ扱けて本制御ルーチンを終了し
、以下暖機増量補正係数Fthwを用いて燃料噴射量τ
の算出、また場合によっては点火時期θの算出等が行な
われる。
Step 380. Step 390 or Step 40
After processing 0, the control routine is completed by proceeding to NEXT, and the fuel injection amount τ is determined using the warm-up increase correction coefficient Fthw.
In addition, in some cases, the ignition timing θ is calculated.

以上詳細に説明したように、エンジン制御を行なう本実
施例の車両用制御装置は、機種や構成の違いに応じて最
適のデータをPROM9によって供給することができ、
製造工数・時間・コストのかかるマスクROMを多種類
用意する必要がないという優れたものである。しかも本
実施例の車両用制御装置は、PROM9の内容(データ
)が有効であるか否かを判断し、PROM9のデータが
消去されていた場合には、スタンバイRAM11に保存
されたPROM9のデータが猶有効であればこれを用い
るので、PROM9のデータが何らかの要因で無効とな
っても正しい制御量(例えば暖機増量補正係数F t 
hw)を求めて制御を継続することができる。更に、ス
タンバイRAM11に保存されていた有効なPROM9
のデータが失われたり、ECtJlに実装されたPRO
M9が適合しない機種のものであった場合等には、予め
マスクROM5内に用意された汎用データを用いて制御
量(例えば暖機増量補正係数Fthw)は算出されるの
で、充分な制御が継続される。従って、PROM9のデ
ータが有効でなくなった場合でも、無効となったデータ
を用いて誤った制御量を求めてしまうことはなく、燃料
噴射量や点火時期等のエンジンの制御量も適切に求めら
れる。この結果、PROM9のデータが失われても、エ
ンジンストールヤノッキング等の不具合を生じることは
ない。
As explained in detail above, the vehicle control device of this embodiment that performs engine control can supply optimal data using the PROM 9 depending on the model and configuration.
This is an excellent feature in that there is no need to prepare many types of mask ROMs, which requires manufacturing man-hours, time, and costs. Moreover, the vehicle control device of this embodiment judges whether the contents (data) of the PROM 9 are valid or not, and if the data of the PROM 9 has been erased, the data of the PROM 9 stored in the standby RAM 11 is If it is still valid, it is used, so even if the data in PROM9 becomes invalid for some reason, the correct control amount (for example, warm-up increase correction coefficient F t
hw) and control can be continued. Furthermore, the valid PROM 9 stored in the standby RAM 11
data is lost or PRO implemented in ECtJl
If the M9 is of an incompatible model, the control amount (for example, warm-up increase correction coefficient Fthw) is calculated using general-purpose data prepared in advance in the mask ROM 5, so sufficient control continues. be done. Therefore, even if the data in PROM9 becomes invalid, the invalid data will not be used to determine incorrect control variables, and engine control variables such as fuel injection amount and ignition timing can be determined appropriately. . As a result, even if data in the PROM 9 is lost, problems such as engine stalling and knocking will not occur.

また、本実施例では詳細な説明は省いたが、フラグF、
FD等にPROM9やスタンバイRAM11のデータが
有効であるか否かの判断が反映されているので、例えば
ダイアグ端子33をアクティブな状態にして信号Tを入
力した時、フラグの値に従って、ダイアグ表示器43に
不良の状態を表示させ、メンテナンスを容易にすること
もできる。
Further, although detailed explanation is omitted in this embodiment, the flag F,
Since the judgment as to whether or not the data in PROM 9 and standby RAM 11 is valid is reflected in the FD etc., for example, when the diagnosis terminal 33 is made active and the signal T is input, the diagnosis display will be displayed according to the value of the flag. It is also possible to make maintenance easier by displaying the defective state on 43.

以上、本発明の一実施例について説明したが、本発明は
この実施例に同等限定されるものではなく、他の車両運
転に関する制御、自動変速機の制御やアンチスキッド、
トラクションコントロール等に適用することはもとより
、例えばPROM9やスタンバイRAM11のデータの
チェックを電源電圧低下時(例えばスタータスイッチが
オンとなってスタータの負荷がかかった時)には行なわ
ないようにしてデータの有効・無効に関する誤判定を避
ける構成や、汎用データをマスクROM5内におかず、
今ひとつのPROM内に用意するといった構成など、本
発明の要旨を変更しない範囲において、種々なる態様に
て実施できることは勿以上詳述したように、本発明の車
両用制御装置によれば、機種や構成に応じて異なる最適
の制御用データを再書込可能記憶手段によって提供する
ことによって、高精度で緻密な制御を実現すると共に、
この再書込可能記憶手段に記憶されたデータが有効でな
くなった時にも予め汎用データ記憶手段に記憶したデー
タを用いて制御を行なって、車両運転に関する制御を十
分に保証することができるという優れた効果を奏する。
Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and can be applied to other vehicle operation-related controls, automatic transmission control, anti-skid control, etc.
In addition to being applied to traction control, for example, data in PROM 9 and standby RAM 11 can be checked by not checking data when the power supply voltage drops (for example, when the starter switch is turned on and the starter is loaded). A configuration that avoids erroneous judgment regarding validity/invalidity, general-purpose data is stored in the mask ROM 5,
It goes without saying that the vehicle control device of the present invention can be implemented in various ways without changing the gist of the present invention, such as a configuration in which it is provided in a single PROM. By providing optimal control data that differs depending on the configuration using a rewritable storage means, high precision and precise control is achieved.
The advantage is that even when the data stored in the rewritable storage means is no longer valid, control can be performed using the data previously stored in the general-purpose data storage means, thereby fully guaranteeing control over vehicle operation. It has a great effect.

従って、車両の制御に関する安全性も高められる。Therefore, safety regarding vehicle control is also improved.

また、開発・製造工数9時間やコストの大きな固定記憶
手段を多種類用意する必要がなく、車両運転に関する制
御を容易に変更しうるなと車両用制御装置設計・開発上
の柔軟性も高めることができる。
In addition, there is no need to prepare multiple types of fixed storage means, which requires 9 hours of development and manufacturing man-hours and is costly, and the controls related to vehicle operation can be easily changed, increasing flexibility in the design and development of vehicle control devices. I can do it.

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

第1図は本発明の基本的構成図、第2図は本発明一実施
例の車両用制御装置の概略構成を示すブロック図、第3
図は同じ〈実施例における制御の手順を示すフローチャ
ート、第4図はPROM内に格納されたデータの一例を
示す概念図、第5図はエンジン制御ルーチンの一部を示
すフローチャート、第6図は暖機増量補正係数を求める
テーブルの内容を図示したグラフ、である。 1・・・電子制御回路(ECLI) 3・・・CPU (論理演算手段M3)5・・・ROM
 (固定記憶手段M1)7・−RA M 9・・・PROM (再書込可能記憶手段M2)32・
・・水温センサ 40・・・電磁式燃料噴射弁
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a block diagram showing a schematic configuration of a vehicle control device according to an embodiment of the present invention, and FIG.
The figures are the same (a flowchart showing the control procedure in the embodiment, Fig. 4 is a conceptual diagram showing an example of data stored in the PROM, Fig. 5 is a flowchart showing a part of the engine control routine, and Fig. 6 is a flowchart showing a part of the engine control routine. It is a graph illustrating the contents of a table for determining a warm-up increase correction coefficient. 1...Electronic control circuit (ECLI) 3...CPU (logic operation means M3) 5...ROM
(Fixed storage means M1) 7.-RAM 9...PROM (Rewritable storage means M2) 32.
... Water temperature sensor 40 ... Electromagnetic fuel injection valve

Claims (1)

【特許請求の範囲】 1 すくなくとも車両運転に関する所定の制御に対応し
た処理手順を含むデータを記憶し、該記憶されたデータ
が消去・書換えられることのない固定記憶手段と、 データを所定の条件において書込むことができ、前記車
両運転に関する所定の制御に用いる特定のデータを記憶
する再書込可能記憶手段と、 該記憶された特定のデータを用い、前記記憶された手順
に従う処理を実行することによって、前記車両運転に関
する所定の制御に用いられる制御量を集中処理する論理
演算手段と、 を備えた車両制御装置において、 前記車両運転に関する所定の制御を行なうのに最低限必
要なデータを保存する汎用データ記憶手段と、 前記再書込可能記憶手段に記憶されたデータが、前記車
両運転に関する所定の制御の実行にとって有効でない場
合、これを検出する無効データ検出手段と、 を備えると共に、 前記論理演算手段が、 前記無効データ検出手段によって前記再書込可能記憶手
段に記憶されたデータが有効でないとの検出がなされた
時、該データに替えて、前記汎用データ記憶手段に記憶
されたデータを用いて、前記制御量を集中処理するよう
構成されたことを特徴とする車両用制御装置。 2 汎用データ記憶手段が、マスクROMを用いた固定
記憶手段と一体に構成された特許請求の範囲第1項記載
の車両用制御装置。 3 再書込可能記憶手段が、互いに対応した値を有する
2組のデータを記憶するよう構成され、無効データ検出
手段が該2組のデータの対応を比較することにより、デ
ータが有効でないことを検出するよう構成された特許請
求の範囲第1項または第2項車両用制御装置。
[Scope of Claims] 1. Fixed storage means that stores data including at least processing procedures corresponding to predetermined control regarding vehicle operation, and the stored data is not erased or rewritten; and rewritable storage means that can be written and stores specific data used for predetermined control regarding the vehicle operation; and using the stored specific data to execute processing according to the stored procedure. a logical calculation means for centrally processing a control amount used for predetermined control regarding the vehicle operation; and a vehicle control device that stores the minimum necessary data to perform the predetermined control regarding the vehicle operation. general-purpose data storage means; and invalid data detection means for detecting when the data stored in the rewritable storage means is not valid for execution of predetermined control regarding the vehicle operation, and the logic When the invalid data detection means detects that the data stored in the rewritable storage means is not valid, the calculation means replaces the data with the data stored in the general-purpose data storage means. A vehicle control device characterized in that the control device is configured to centrally process the control amount using the control device. 2. The vehicle control device according to claim 1, wherein the general-purpose data storage means is integrated with fixed storage means using a mask ROM. 3. The rewritable storage means is configured to store two sets of data having values that correspond to each other, and the invalid data detection means detects that the data is invalid by comparing the correspondence between the two sets of data. A vehicle control device according to claim 1 or 2, which is configured to detect.
JP60076967A 1985-04-11 1985-04-11 Vehicle control device Expired - Fee Related JP2502968B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60076967A JP2502968B2 (en) 1985-04-11 1985-04-11 Vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60076967A JP2502968B2 (en) 1985-04-11 1985-04-11 Vehicle control device

Publications (2)

Publication Number Publication Date
JPS61234401A true JPS61234401A (en) 1986-10-18
JP2502968B2 JP2502968B2 (en) 1996-05-29

Family

ID=13620554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60076967A Expired - Fee Related JP2502968B2 (en) 1985-04-11 1985-04-11 Vehicle control device

Country Status (1)

Country Link
JP (1) JP2502968B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0267658A (en) * 1988-09-01 1990-03-07 Fujitsu Ten Ltd Method for diagnosing fault in non-volatile memory
US5583989A (en) * 1992-05-28 1996-12-10 Honda Giken Kogyo Kabushiki Kaisha Vehicle control system having program generator and convertor
JP2003058285A (en) * 2001-08-10 2003-02-28 Fujitsu Ten Ltd Control system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140007592A (en) * 2012-07-09 2014-01-20 콘티넨탈 오토모티브 시스템 주식회사 Vehicle control method based verification result of controlled variable

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5713502A (en) * 1980-06-25 1982-01-23 Yokogawa Hokushin Electric Corp Controller
JPS59203589A (en) * 1983-04-30 1984-11-17 ブラザー工業株式会社 Electronic sewing machine capable of discriminating correction and error of data
JPS6091401A (en) * 1983-10-24 1985-05-22 Mazda Motor Corp Car controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5713502A (en) * 1980-06-25 1982-01-23 Yokogawa Hokushin Electric Corp Controller
JPS59203589A (en) * 1983-04-30 1984-11-17 ブラザー工業株式会社 Electronic sewing machine capable of discriminating correction and error of data
JPS6091401A (en) * 1983-10-24 1985-05-22 Mazda Motor Corp Car controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0267658A (en) * 1988-09-01 1990-03-07 Fujitsu Ten Ltd Method for diagnosing fault in non-volatile memory
US5583989A (en) * 1992-05-28 1996-12-10 Honda Giken Kogyo Kabushiki Kaisha Vehicle control system having program generator and convertor
JP2003058285A (en) * 2001-08-10 2003-02-28 Fujitsu Ten Ltd Control system

Also Published As

Publication number Publication date
JP2502968B2 (en) 1996-05-29

Similar Documents

Publication Publication Date Title
US4339801A (en) Automatic control system for method and apparatus for checking devices of an automotive vehicle in use with a microcomputer
US4402057A (en) Method of and apparatus for ensuring correct operation of a microcomputer in the event of power outage
US5394327A (en) Transferable electronic control unit for adaptively controlling the operation of a motor vehicle
JPH06298015A (en) Self-diagnostic device for vehicle
US6496946B2 (en) Electronic control apparatus with memory validation and method
USRE31582E (en) Automatic control system for method and apparatus for checking devices of an automotive vehicle in use with a microcomputer
US4532593A (en) Electronic control method and apparatus for internal combustion engine
US20050076266A1 (en) Method and apparatus for ensuring integrity of critical RAM variables
GB2244161A (en) Method and apparatus for inspecting microprocessor-based unit and/or component thereof
JPS61234401A (en) On-vehicle controller
US20090235019A1 (en) Securing safety-critical variables
JPH0633828A (en) On-vehicle electronic control
JPH11223578A (en) Vehicle diagnosing system
US7386714B2 (en) Transmitting data from a single storage unit between multiple processors during booting
JP2000112837A (en) Memory checking device and method therefor
JPH11141391A (en) Controller for automobile
JP2767857B2 (en) Control system having a plurality of processor units
JP2002334024A (en) Electronic controller
JP3846398B2 (en) Vehicle control device
JP2000035923A (en) Abnormality detecting method and abnormality detecting device
US6904543B2 (en) Electronic control having floating-point data check function
JP3438270B2 (en) Data backup device and vehicle failure diagnosis device in electronic control system
JP2599262B2 (en) Failure diagnosis device for electronic engine control device
JP4308349B2 (en) Control method and control apparatus for internal combustion engine
JP4639920B2 (en) Electronic control unit

Legal Events

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