JPH0579379A - Control method - Google Patents

Control method

Info

Publication number
JPH0579379A
JPH0579379A JP23927491A JP23927491A JPH0579379A JP H0579379 A JPH0579379 A JP H0579379A JP 23927491 A JP23927491 A JP 23927491A JP 23927491 A JP23927491 A JP 23927491A JP H0579379 A JPH0579379 A JP H0579379A
Authority
JP
Japan
Prior art keywords
eeprom
writing
control method
learning parameter
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP23927491A
Other languages
Japanese (ja)
Inventor
Koji Ebata
浩二 江端
Masami Shida
正実 志田
Takashi Hasunuma
蓮沼  隆
Masahiro Zaitsu
政弘 財津
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.)
Hitachi Ltd
Astemo Ltd
Original Assignee
Hitachi Automotive Engineering Co Ltd
Hitachi 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 Hitachi Automotive Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Automotive Engineering Co Ltd
Priority to JP23927491A priority Critical patent/JPH0579379A/en
Publication of JPH0579379A publication Critical patent/JPH0579379A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)

Abstract

(57)【要約】 【目的】本発明の目的は、セルフシャットオフ機能のな
いシステムにおいて、できるだけ近い時期の学習パラメ
ータをEEPROMに記憶させ、バッテリー脱着などの
現象からそのデータを保護し、なおかつ指定されている
書き込み補償回数以上の書き込み動作を禁止して、EE
PROMを書き込み補償回数内で使用する方法を提供す
ることにある。 【構成】ある一定時間ごとに、学習パラメータと書き込
み回数をバックアップRAMからEEPROMに書き込
むことにより、そのデータを保護する。 【効果】本発明によれば、バッテリーの脱着などの現象
から学習パラメータを保護し、EEPROMの書き込み
補償回数超過による不具合を防止できる。
(57) [Summary] [Object] An object of the present invention is to store a learning parameter at a time as short as possible in an EEPROM in a system having no self-shut-off function, protect the data from a phenomenon such as battery removal, and specify the learning parameter. The write operation more than the specified number of write compensation times is prohibited, and EE
It is to provide a method of using a PROM within the number of write compensation times. [Structure] The data is protected by writing a learning parameter and the number of times of writing from a backup RAM to an EEPROM at regular intervals. According to the present invention, the learning parameter can be protected from the phenomenon such as the attachment / detachment of the battery, and the trouble due to the excess of the number of writing compensation of the EEPROM can be prevented.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はエンジン制御において、
その学習したデータを保持する方法に関する。
BACKGROUND OF THE INVENTION The present invention relates to engine control,
It relates to a method of retaining the learned data.

【0002】[0002]

【従来の技術】従来の装置は、特開昭55−138104号に記
載のようにRAM内のデータが消失する要因が発生した
とき、EEPROMへ退避するようになっていた。
2. Description of the Related Art In a conventional device, as described in JP-A-55-138104, when a factor causing the loss of data in a RAM occurs, it is saved in an EEPROM.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術ではセル
フシャットオフ機能(システムの供給電源が遮断される
様な要因が発生した場合、ある一連の動作が終了するま
で電源を供給する機能)がないシステムにおいて、シリ
アル通信の様な、転送速度の遅い通信方式で他の外部メ
モリに最デのデータを書き込むことについて配慮がされ
ておらず、この為、KEY SWをオフするとCPUは
動作を停止してしまい、KEY SWをオフする直前に
学習した最新のパラメータをシリアル通信方式のEEP
ROMに保持することができず、バックアップ電源が遮
断されるとバックアップRAM内のデータは不定状態と
なり、学習パラメータが失われるという問題があった。
また、EEPROMにはメーカーで書き込み回数が保証
されており、その回数をオーバーしていても書き込み動
作を行ってしまう恐れがあった。
The above-mentioned prior art does not have a self-shut-off function (a function of supplying power until a certain series of operations is completed when a factor such as power supply to the system is cut off). In the system, no consideration is given to writing the maximum amount of data to another external memory by a communication method with a low transfer rate such as serial communication. Therefore, when the KEY SW is turned off, the CPU stops operating. The latest parameter learned immediately before turning off the KEY SW is set to the EEP of the serial communication system.
There is a problem that the data cannot be held in the ROM, and when the backup power supply is cut off, the data in the backup RAM becomes indefinite and the learning parameter is lost.
In addition, the EEPROM guarantees the number of writing times by the manufacturer, and there is a risk that the writing operation may be performed even if the number of times is exceeded.

【0004】本発明は、バックアップ電源を遮断しても
学習パラメータを保持し、かつ、保証されている書き込
み回数以上のEEPROMへの書き込みを禁止させるこ
とを目的としており、さらにセルフシャットオフ機能の
ないシステムにおいて、バックアップ電源遮断にもかか
わらず、以前学習した学習パラメータを用い再び学習制
御を行い、また書き込み回数の超過による不具合を防止
するシステムを提供することを目的とする。
An object of the present invention is to retain learning parameters even when the backup power supply is cut off, and to prohibit writing to the EEPROM more than the guaranteed number of times of writing, and further, there is no self-shut-off function. It is an object of the present invention to provide a system that performs learning control again by using a learning parameter that has been previously learned and prevents a problem due to an excess of the number of times of writing, in spite of shutting off the backup power supply.

【0005】[0005]

【課題を解決するための手段】上記課題を達成するた
め、ある一定時間ごとに、学習したパラメータをバック
アップRAMからEEPROMへ書き込み、その度ごと
に書き込み回数をカウントし、保証されている書き込み
回数になったら、EEPROMへの書き込み動作を行わ
ないように制御し上記課題を解決するものである。
In order to achieve the above object, the learned parameters are written from the backup RAM to the EEPROM at regular time intervals, and the number of times of writing is counted each time to obtain the guaranteed number of times of writing. Then, the above problem is solved by controlling so that the writing operation to the EEPROM is not performed.

【0006】[0006]

【作用】最初にシステムを起動したときを基準とし、そ
の時点から一定時間(T)を経過したときに書き込み回数
をイクリメントし、学習したパラメータとインクリメン
トした書き込み回数をシリアル通信によってバックアッ
プRAMからEEPROMへ書き込むタスク(1つの処理を完
了するために必要な一連のプログラムの単位)を設け
る。タスク合了後、再び一定時間(T)を経過した時CP
Uが書き込み回数を監視して保証されている書き込み回
数になっていなければ、再びタスクの一連の動作を実行
する。保証されている書き込み回数になっていれば、E
EPROMへの書き込み動作を禁止させる。
[Operation] When the system is first started, the write count is decremented after a certain time (T) has passed from that point, and the learned parameter and the incremented write count are transferred from the backup RAM to the EEPROM by serial communication. A writing task (a series of program units required to complete one process) is provided. After the completion of the task, when a certain time (T) has passed again, CP
If U does not reach the guaranteed write count by monitoring the write count, the series of operations of the task is executed again. If the guaranteed write count is reached, E
The writing operation to the EPROM is prohibited.

【0007】[0007]

【実施例】以下、本発明の一実施例を説明する。EXAMPLE An example of the present invention will be described below.

【0008】図1は、本発明における構成図を示してい
る。1はエンジン制御装置である。エンジン制御装置は
各センサやSWからアナログやデジタルの入力信号を内
部にある2のマイクロコンピュータへ取り入れ、3つの
CPUでそれを演算し、燃料噴射や点火などの制御を行
っている。3のCPUはそのかたわら学習を行い、それ
で得た学習パラメータを随時パラレル通信方式で接続さ
れている4のバックアップRAMへ格納している。4の
バックアップRAMと5のEEPROMはシリアル通信
方式で接続していて、一定時間(T)ごとにバックアップ
RAMから学習パラメータをEEPROMへ転送してい
る。
FIG. 1 is a block diagram of the present invention. Reference numeral 1 is an engine control device. The engine control device takes in analog or digital input signals from the respective sensors and SW into the internal two microcomputers, calculates them by the three CPUs, and controls fuel injection, ignition and the like. Meanwhile, the CPU 3 performs learning and stores the learning parameters obtained thereby in the backup RAM 4 connected by the parallel communication system as needed. The backup RAM 4 and the EEPROM 5 are connected by a serial communication method, and the learning parameters are transferred from the backup RAM to the EEPROM at regular time intervals (T).

【0009】図2はマイクロコンピュータとEEPRO
M間での学習パラメータと書き込み回数の書き込み動作
および読み込み動作のデータおよび制御の流れを示して
いる。まず、書き込み動作から説明する。先にも述べた
が、マイクロコンピュータはエンジン制御を行いながら
学習制御を行っている。学習された学習パラメータは経
路6を使い、CPUからバックアップRAMへと送られ
る。CPUは起動後から一定時間(T)をカウントしその
カウント値(A)を随時バックアップRAMへ経路8を使
って書き込む。カウントした値が一定時間(T)になった
時、CPUはバックアップRAMにある書き込み回数と
ROMなどにあらかじめインプットされている保証して
ある書き込み回数とを対比させ、前者が大ならばEEP
ROMへの書き込みを禁止する。また、前者が小もしく
は同じ値ならば書き込み回数をインクリメントし、経路
7を使ったバックアップRAMへ書き込み、EEPROMへの
書き込みを許可して、バックアップRAMから経路9,
10(シリアル通信)により学習パラメータおよび書き
込み回数をEEPROMへ送信する。このような一連の
動作をするタスクをCPUは繰り返し、EEPROMに
新しい学習パラメータとそれまでの書き込み回数を記憶
させる。次に、読み込み動作について説明する。KEY
SWをOFFの状態からONにした時、まずCPUは
RESETルーチンで経路12を使いバックアップRA
Mのデータチェックを行う。チェックした結果がOKで
あれば、そのままバックアップRAMの学習パラメータ
と書き込み回数、一定時間(T)のカウント値(A)を演算
に使用する。もし、バッテリーが外されるなどしてRA
Mの値が不定状態となりチェックした結果がNGであれ
ば、CPUは経路9,10のシリアル通信でEEPRO
Mから学習パラメータと書き込み回数を読み込み演算に
使用する。このとき一定時間(T)のカウント値(A)はク
リアし、カウント値は0から再び処理をスタートする。
FIG. 2 shows a microcomputer and EEPRO.
The learning parameter and the number of times of writing between M, the data and control flow of the write operation and the read operation are shown. First, the write operation will be described. As mentioned above, the microcomputer performs learning control while controlling the engine. The learned learning parameters are sent from the CPU to the backup RAM using the route 6. The CPU counts a fixed time (T) after starting and writes the count value (A) into the backup RAM using the path 8 as needed. When the counted value reaches a certain time (T), the CPU compares the number of writes in the backup RAM with the guaranteed number of writes that has been input in the ROM beforehand, and if the former is large, the EEP
Prohibit writing to ROM. If the former is a small value or the same value, the write count is incremented, writing to the backup RAM using the path 7 and writing to the EEPROM is permitted, and the path from the backup RAM to the path 9,
The learning parameter and the number of times of writing are transmitted to the EEPROM by 10 (serial communication). The CPU repeats the task of performing such a series of operations, and causes the EEPROM to store new learning parameters and the number of times of writing up to that time. Next, the reading operation will be described. KEY
When the SW is turned ON from the OFF state, the CPU first uses the path 12 in the RESET routine to perform the backup RA.
Check M data. If the check result is OK, the learning parameter of the backup RAM, the number of times of writing, and the count value (A) of the constant time (T) are used for the calculation. If the battery is removed, RA
If the value of M becomes indefinite and the check result is NG, the CPU performs EEPRO by serial communication of paths 9 and 10.
The learning parameter and the write count are read from M and used in the calculation. At this time, the count value (A) for a certain period of time (T) is cleared, and the count value restarts from 0.

【0010】[0010]

【発明の効果】本発明によれば、セルフシャットオフ機
能のないシステムにおいて、学習パラメータをEEPR
OMに記憶させ、バックアップ電源が遮断されても新し
い学習パラメータで学習制御をさせることができ、か
つ、保証されている書き込み回数以上のEEPROMへ
の書き込みを禁止させることにより、書き込み回数の超
過による不具合を防止できる。
According to the present invention, the learning parameter is set to EEPR in the system without the self-shutoff function.
The problem can be caused by exceeding the number of write operations by storing in the OM and enabling learning control with new learning parameters even when the backup power supply is cut off, and by prohibiting writing to the EEPROM more than the guaranteed number of write operations. Can be prevented.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

【図2】EEPROMへ書き込む際および読み込む際の
データ及び制御の流れを示す図である。
FIG. 2 is a diagram showing data and a flow of control at the time of writing to and reading from an EEPROM.

【図3】本発明の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of the present invention.

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

1…エンジン制御装置、2…マイクロコンピュータ、3
…CPU、4…バックアップRAM、5…EEPRO
M、6…マイクロコンピュータ内の学習パラメータの動
き、7…マイクロコンピュータ内の書き込み回数の動
き、8…一定時間(T)のカウント値の動き、9…マイク
ロコンピュータとEEPROM間の学習パラメータの動
き、10…マイクロコンピュータとEEPROM間の書
き込み回数の動き、11…CPUからのシリアル送受信
の命令、12…再起動時のバックアップRAMチェック
動作。
1 ... Engine control device, 2 ... Microcomputer, 3
… CPU, 4… backup RAM, 5… EEPRO
M, 6 ... Movement of learning parameter in microcomputer, 7 ... Movement of write number in microcomputer, 8 ... Movement of count value for a fixed time (T), 9 ... Movement of learning parameter between microcomputer and EEPROM, 10 ... Movement of the number of times of writing between the microcomputer and the EEPROM, 11 ... Command of serial transmission / reception from CPU, 12 ... Backup RAM check operation at restart.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 志田 正実 茨城県勝田市大字高場2520番地 株式会社 日立製作所自動車機器事業部内 (72)発明者 蓮沼 隆 茨城県勝田市大字高場字鹿島谷津2477番地 3 日立オートモテイブエンジニアリング 株式会社内 (72)発明者 財津 政弘 茨城県勝田市大字高場字鹿島谷津2477番地 3 日立オートモテイブエンジニアリング 株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Masami Shida Inventor Masami Shida 2520 Takaba, Takata, Ibaraki Prefecture, Hitachi Ltd. Automotive Equipment Division (72) Inventor Takashi Hasunuma 2477 Kashima Yatsu, Katsuta, Ibaraki, Japan 3 Hitachi Automotive Engineering Co., Ltd. (72) Inventor Masahiro Zaitsu 2477 Kashima Yatsu Kashima, Katsuta City, Ibaraki Prefecture 3 Hitachi Automotive Engineering Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】マイクロコンピュータとバックアップRA
MとEEPROM(ユーザが電気的にプログラムを消去
できるROM)から成る、燃料噴射,点火時期等を制御
するシステムにおいて、一定時間ごとに学習したパラメ
ータをEEPROMに書き込んでおくことを特徴とする
制御方法。
1. A microcomputer and a backup RA
In a system for controlling fuel injection, ignition timing, etc., which is composed of M and EEPROM (ROM that allows a user to electrically erase a program), the control method is characterized in that the learned parameters are written into the EEPROM in advance. ..
【請求項2】請求項1における制御方法において、バッ
クアップRAM(システムの供給電源が遮断されても、
バックアップ電源によりデータを確保しておくことので
きるRAM)からEEPROMに書き込んだ回数をカウ
ントして、保証された書き込み回数になったらEEPR
OMへの書き込みを禁止することを特徴とする制御方
法。
2. The control method according to claim 1, wherein the backup RAM (even if the power supply to the system is cut off,
The number of times data is written to the EEPROM from the RAM that can secure data by the backup power supply is counted, and when the guaranteed number of times of writing is reached, the EEPR
A control method characterized by inhibiting writing to an OM.
【請求項3】請求項1における制御方法において、シリ
アル通信方式(単一の信号線を用い1ビットずつ転送す
る通信方式)のEEPROMを用いることを特徴とする
制御方法。
3. The control method according to claim 1, wherein an EEPROM of a serial communication system (communication system in which a single signal line is used to transfer bit by bit) is used.
JP23927491A 1991-09-19 1991-09-19 Control method Pending JPH0579379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23927491A JPH0579379A (en) 1991-09-19 1991-09-19 Control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23927491A JPH0579379A (en) 1991-09-19 1991-09-19 Control method

Publications (1)

Publication Number Publication Date
JPH0579379A true JPH0579379A (en) 1993-03-30

Family

ID=17042321

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23927491A Pending JPH0579379A (en) 1991-09-19 1991-09-19 Control method

Country Status (1)

Country Link
JP (1) JPH0579379A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0755916A (en) * 1993-08-13 1995-03-03 Nec Corp Phased array radar
US6243630B1 (en) 1997-03-17 2001-06-05 Denso Corporation Vehicle control system
US6614179B1 (en) 1996-07-29 2003-09-02 Nichia Kagaku Kogyo Kabushiki Kaisha Light emitting device with blue light LED and phosphor components

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0755916A (en) * 1993-08-13 1995-03-03 Nec Corp Phased array radar
US7215074B2 (en) 1996-07-29 2007-05-08 Nichia Corporation Light emitting device with blue light led and phosphor components
US6614179B1 (en) 1996-07-29 2003-09-02 Nichia Kagaku Kogyo Kabushiki Kaisha Light emitting device with blue light LED and phosphor components
US7026756B2 (en) 1996-07-29 2006-04-11 Nichia Kagaku Kogyo Kabushiki Kaisha Light emitting device with blue light LED and phosphor components
US7071616B2 (en) 1996-07-29 2006-07-04 Nichia Kagaku Kogyo Kabushiki Kaisha Light emitting device with blue light led and phosphor components
US7126274B2 (en) 1996-07-29 2006-10-24 Nichia Corporation Light emitting device with blue light LED and phosphor components
US7362048B2 (en) 1996-07-29 2008-04-22 Nichia Kagaku Kogyo Kabushiki Kaisha Light emitting device with blue light led and phosphor components
US7943941B2 (en) 1996-07-29 2011-05-17 Nichia Corporation Device for emitting various colors
US8148177B2 (en) 1996-07-29 2012-04-03 Nichia Corporation Light emitting device and display
US8309375B2 (en) 1996-07-29 2012-11-13 Nichia Corporation Light emitting device and display
US8610147B2 (en) 1996-07-29 2013-12-17 Nichia Corporation Light emitting device and display comprising a plurality of light emitting components on mount
US8679866B2 (en) 1996-07-29 2014-03-25 Nichia Corporation Light emitting device and display
US8754428B2 (en) 1996-07-29 2014-06-17 Nichia Corporation Light emitting device and display
US6243630B1 (en) 1997-03-17 2001-06-05 Denso Corporation Vehicle control system

Similar Documents

Publication Publication Date Title
JP3932654B2 (en) Vehicle control device and vehicle control system
DE69602693T2 (en) Control for a machine with controllable overwriting of the control programs or data after the machine has stopped
US6480928B2 (en) Memory rewriting system for vehicle controller
JP4061694B2 (en) Electronic control device and control system
JP2000020407A (en) Electronic control unit
US7203581B2 (en) Electronic control unit for controlling updating of data in non-volatile memory
US6636989B1 (en) Electronic control apparatus and method for on-board rewriting of non-volatile memories
US6430709B1 (en) Apparatus and method for diagnosing microcomputer memory
JP4248624B2 (en) Electronic control device for internal combustion engine.
JPH10171644A (en) Electronic control unit
JP3097580B2 (en) Electronic control unit
JPH0579379A (en) Control method
US6907495B2 (en) Rewriting system for rewriting a memory on a vehicle controller
US5408421A (en) Portable battery back-up data cartridge
JP3551855B2 (en) Vehicle control device
JP2007257473A (en) In-vehicle control device
JP2016126699A (en) Electronic control unit for automobile
JPH08287697A (en) Memory device
JPH0435958Y2 (en)
JPH1199891A (en) In-vehicle memory rewriting system
JP3796837B2 (en) Memory writing device for electronic device
US7110830B2 (en) Microprocessor system and method for protecting the system from the exchange of modules
JP2004021520A (en) Vehicle electronic control unit
JP4707411B2 (en) Electronic control device for vehicle
JPH09171459A (en) Electronic control unit