JP2002195094A - Electronic control device of on-vehicle engine - Google Patents

Electronic control device of on-vehicle engine

Info

Publication number
JP2002195094A
JP2002195094A JP2001351521A JP2001351521A JP2002195094A JP 2002195094 A JP2002195094 A JP 2002195094A JP 2001351521 A JP2001351521 A JP 2001351521A JP 2001351521 A JP2001351521 A JP 2001351521A JP 2002195094 A JP2002195094 A JP 2002195094A
Authority
JP
Japan
Prior art keywords
data
battery
vehicle
eeprom
cpu
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
JP2001351521A
Other languages
Japanese (ja)
Other versions
JP3444295B2 (en
Inventor
Mika Uchiumi
美香 内海
Tetsuya Otaki
哲也 大瀧
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
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2001351521A priority Critical patent/JP3444295B2/en
Publication of JP2002195094A publication Critical patent/JP2002195094A/en
Application granted granted Critical
Publication of JP3444295B2 publication Critical patent/JP3444295B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a device capable of surely writing in data, without cutting off power source, in the middle of writing in the data. SOLUTION: This electronic control device of an on-vehicle engine controls an actuator arranged in a fuel injection pump, and controls a fuel injection quantity and the fuel injection timing of the diesel engine. A CPU 10 detects replacement of a battery 1, by using a standby bit for expressing a state of standby voltage to a backup RAM 14, and read out the data written in an EEPROM 7, and writes the readout data again in the EEPROM 7, when the vehicle speed is a prescribed value or higher, and an engine speed is a prescribed value or higher, after replacement of the battery.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、不揮発性メモリを備
えた車載エンジンの電子制御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic control unit for a vehicle-mounted engine having a nonvolatile memory.

【0002】[0002]

【従来の技術】従来、EEPROMを備えたシステム、
例えば、不揮発性メモリとしてEEPROMを備えた車
載エンジンの電子制御装置(エンジン制御用ECU;E
lectronic Control Unit)にお
いて、EEPROMのデータを正確に保持するための技
術としてデータの再書き込みがある。つまり、EEPR
OMには車両番号データや仕向地データ等が記憶される
が、このEEPROMのデータは書き換え回数に制限が
あり、かつ、データ保障が10年程度であるので、デー
タを正確に保持するためにデータの再書き込みが必要と
なる。そこで、ECUの構成機器であるCPUはEEP
ROMのデータの再書き込み処理を行っている。
2. Description of the Related Art Conventionally, a system having an EEPROM,
For example, an electronic control unit (engine control ECU; E) for an in-vehicle engine having an EEPROM as a nonvolatile memory.
In the electronic control unit, there is a technique for rewriting data as a technique for accurately retaining data in the EEPROM. That is, EEPR
The OM stores vehicle number data, destination data, and the like. However, since the number of rewrites in the EEPROM is limited and the data security is about 10 years, the data must be stored in order to hold the data accurately. Must be rewritten. Therefore, the CPU which is a component device of the ECU is EEP
The ROM data is being rewritten.

【0003】[0003]

【発明が解決しようとする課題】ところが、従来の車載
エンジンの電子制御装置では、データの書き込み処理を
行っている途中に電源が遮断され、確実にデータの書き
込みが行えないという問題がある。
However, the conventional electronic control unit for a vehicle-mounted engine has a problem in that the power is shut off during the data writing process, and the data cannot be written reliably.

【0004】この発明は上記問題点を解消するためにな
されたものであって、その目的は、データの書き込みの
途中で電源が遮断されることなく、確実にデータの書き
込みを行うことが可能な装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problem, and an object of the present invention is to ensure that data can be written without power being shut off during data writing. It is to provide a device.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に成された請求項1に記載の発明によれば、電源遮断可
能性検知手段によりバッテリからの電源の遮断の可能性
が無い時に、不揮発性メモリへの書き込みを行う車載エ
ンジンの電子制御装置であって、電源遮断可能性検知手
段は、車速が所定値以上若しくはエンジン回転数が所定
値以上の少なくともいずれか一方を満たす時、バッテリ
からの電源の遮断の可能性が無いと判定する車載エンジ
ンの電子制御装置をその要旨とする。
According to the first aspect of the present invention, there is provided a power supply control device, comprising: An electronic control unit for an in-vehicle engine that performs writing to a nonvolatile memory, wherein a power cut-off possibility detecting unit is configured to detect a power supply from a battery when the vehicle speed satisfies at least one of a predetermined value or more and an engine speed or more. The gist of the present invention is an electronic control unit for an in-vehicle engine that determines that there is no possibility of shutting off the power supply.

【0006】[0006]

【作用】請求項1に記載の発明によれば、電源遮断可能
性検知手段は、車速が所定値以上若しくはエンジン回転
数が所定値以上の少なくともいずれか一方を満たすと
き、バッテリからの電源の遮断の可能性が無いと判定
し、データの書き込みを行う。よって、データの書き込
みの途中で電源が遮断されることなく、確実にデータの
書き込みが行われる。
According to the first aspect of the present invention, when the vehicle speed satisfies at least one of the predetermined value or more and the engine speed is equal to or more than the predetermined value, the power cutoff possibility detecting means cuts off the power supply from the battery. It is determined that there is no possibility of writing, and data is written. Therefore, data writing can be performed reliably without power interruption during data writing.

【0007】[0007]

【実施例】以下、この発明を車載エンジンの電子制御装
置に具体化した一実施例を図面に従って説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is embodied in an electronic control unit of a vehicle engine will be described below with reference to the drawings.

【0008】図1には、電子制御装置(以下、ECUと
いう)4及びその周辺機器の構成を示す。自動車にはデ
ィーゼルエンジンが搭載され、ディーゼルエンジンには
燃料噴射ポンプが備えられ、燃料噴射ポンプから高圧燃
料がディーゼルエンジンに供給され、この燃料が噴射弁
から噴射されることにより同エンジンが駆動される。デ
ィーゼルエンジンの出力は車両の駆動輪に伝えられ、同
駆動輪を回転させるようになっている。図1に示すEC
U4は、ディーゼルエンジンの運転状態に基づいて燃料
噴射ポンプに設けられた燃料噴射量制御用アクチュエー
タと燃料噴射時期制御用アクチュエータをコントロール
することにより燃料噴射量および燃料噴射時期を制御す
るようになっている。
FIG. 1 shows the configuration of an electronic control unit (hereinafter referred to as an ECU) 4 and its peripheral devices. The automobile is equipped with a diesel engine, and the diesel engine is equipped with a fuel injection pump. High-pressure fuel is supplied to the diesel engine from the fuel injection pump, and the fuel is injected from the injection valve to drive the engine. . The output of the diesel engine is transmitted to the driving wheels of the vehicle, and the driving wheels are rotated. EC shown in FIG.
U4 controls the fuel injection amount and the fuel injection timing by controlling the fuel injection amount control actuator and the fuel injection timing control actuator provided in the fuel injection pump based on the operation state of the diesel engine. I have.

【0009】以下、詳細に説明する。図1において、バ
ッテリ1と車載機器2とECU4とは車両に搭載されて
いる。車載機器2は、各種センサと、燃料噴射量制御用
アクチュエータと燃料噴射時期制御用アクチュエータと
からなる。各種センサには、エンジン回転数センサ(ク
ランク角センサ)を含むディーゼルエンジンの運転状態
を検出するためのセンサと、車速センサとを含む。バッ
テリ1と車載機器2はコネクタ3を介してECU4にそ
れぞれ電気的に接続されている。
The details will be described below. In FIG. 1, a battery 1, an in-vehicle device 2, and an ECU 4 are mounted on a vehicle. The vehicle-mounted device 2 includes various sensors, a fuel injection amount control actuator, and a fuel injection timing control actuator. The various sensors include a sensor for detecting the operating state of the diesel engine including an engine speed sensor (crank angle sensor), and a vehicle speed sensor. The battery 1 and the vehicle-mounted device 2 are electrically connected to the ECU 4 via the connector 3.

【0010】ECU4は、電源回路5と、コントローラ
6と、データを電気的に書き込み可能で且つ消去可能な
EEPROM7と、エンジン制御プログラム等のデータ
を予め記憶したリードオンリメモリ(ROM)8と、ダ
イオード9とを備えている。さらに、コントローラ6
は、中央処理装置(以下、CPUという)10と、CP
U10の演算結果等のデータを一時的に記憶するランダ
ムアクセスメモリ(RAM)11と、入出力ポート12
とを備えている。RAM11、入出力ポート12、EE
PROM7及びROM8はそれぞれバス13を介してC
PU10に接続されている。
The ECU 4 includes a power supply circuit 5, a controller 6, an EEPROM 7 capable of electrically writing and erasing data, a read-only memory (ROM) 8 pre-stored with data such as an engine control program, and a diode. 9 is provided. Further, the controller 6
Is a central processing unit (hereinafter referred to as a CPU) 10 and a CP.
A random access memory (RAM) 11 for temporarily storing data such as the operation result of U10;
And RAM 11, input / output port 12, EE
The PROM 7 and the ROM 8 are connected to the C
It is connected to PU10.

【0011】EEPROM7には、一度書き込んだら更
新されることがない車両毎の固有ナンバー(車両番号)
や車両の仕向け地に関するデータ(仕向地データ)等が
記憶されている。このようにEEPROM7に記憶され
るデータは一度書き込むと長期間更新されないものであ
る。又、EEPROM7は、データの書き換え保障回数
が約1万回と回数に制限があるとともに、データ書き換
え後のデータ保障期間が10年程度である。
A unique number (vehicle number) for each vehicle which is not updated once written in the EEPROM 7
And data relating to the destination of the vehicle (destination data). As described above, data stored in the EEPROM 7 is not updated for a long time if written once. In addition, the EEPROM 7 has a limited number of times of data rewriting guarantee of about 10,000 times, and has a data guarantee period of about 10 years after data rewriting.

【0012】RAM11は、電源が供給されている状態
においてデータを記憶保持するバックアップRAM14
を備えている。このバックアップRAM14には排気ガ
ス浄化のための学習値や入出力信号の異常を示すデータ
等が記憶されている。又、入出力ポート12には、前記
車載機器2がコネクタ3の第1端子15を介して接続さ
れている。
A RAM 11 is a backup RAM 14 for storing and holding data when power is supplied.
It has. The backup RAM 14 stores a learning value for purifying exhaust gas, data indicating an abnormality of an input / output signal, and the like. The in-vehicle device 2 is connected to the input / output port 12 via a first terminal 15 of the connector 3.

【0013】第1電源ライン16はその一端が前記バッ
テリ1に接続されるとともに、他端が前記コネクタ3の
第2端子17を介して前記ECU4の電源回路5に接続
されている。イグニッションスイッチ18は、第1電源
ライン16の途中に介在され、図示しないイグニッショ
ンキーの操作によりオン・オフ(開閉)される。そし
て、イグニッションスイッチ18がオン(閉路)され
て、バッテリ1からの電圧(12ボルト)が電源回路5
に入力されると、同電源回路5はその入力電圧を所定の
電圧VDD(例えば、5ボルト)にして前記CPU1
0,RAM11,EEPROM7及びROM8にそれぞ
れ供給する。これにより、ECU4が起動される。
The first power supply line 16 has one end connected to the battery 1 and the other end connected to the power supply circuit 5 of the ECU 4 via the second terminal 17 of the connector 3. The ignition switch 18 is interposed in the middle of the first power supply line 16, and is turned on / off (open / closed) by operating an ignition key (not shown). Then, the ignition switch 18 is turned on (closed), and the voltage (12 volts) from the battery 1 is supplied to the power supply circuit 5.
, The power supply circuit 5 sets the input voltage to a predetermined voltage VDD (for example, 5 volts), and
0, RAM 11, EEPROM 7 and ROM 8, respectively. As a result, the ECU 4 is started.

【0014】第2電源ライン19はその一端がバッテリ
1に接続されるとともに、他端がコネクタ3の第3端子
20を介して前記電源回路5に接続されている。そし
て、バッテリ1からの電圧は電源回路5に常時供給さ
れ、同電源回路5はその入力電圧を所定の電圧VSTB
Yにして前記バックアップRAM14に常時供給する。
この構成により、バックアップRAM14はイグニッシ
ョンスイッチ18のオン・オフにかかわらず、データを
常に記憶保持することができる。
The second power supply line 19 has one end connected to the battery 1 and the other end connected to the power supply circuit 5 via the third terminal 20 of the connector 3. The voltage from the battery 1 is constantly supplied to the power supply circuit 5, and the power supply circuit 5 converts the input voltage to a predetermined voltage VSTB.
Y is always supplied to the backup RAM 14.
With this configuration, the backup RAM 14 can always store and hold data regardless of whether the ignition switch 18 is on or off.

【0015】尚、以下、このバックアップRAM14の
データ保持用の出力電圧VSTBYをスタンバイ電圧V
STBYといい、このスタンバイ電圧VSTBYは前記
CPU10等へ出力される電圧VDDとほぼ同一レベル
となっている。
Hereinafter, the output voltage VSTBY for holding data of the backup RAM 14 is changed to the standby voltage VST.
This standby voltage VSTBY is substantially at the same level as the voltage VDD output to the CPU 10 and the like.

【0016】ダイオード9は前記電源回路5のCPU1
0等への出力とバックアップRAM14への出力との間
に接続され、CPU10等への出力側からバックアップ
RAM14への出力側に向かって順方向に配置されてい
る。そして、バックアップRAM14へのスタンバイ電
圧VSTBYのレベルがCPU10等への出力電圧VD
Dのレベルより低下した場合には、その出力電圧VDD
がダイオード9を介してバックアップRAM14へスタ
ンバイ電圧VSTBYとして出力される。
The diode 9 is connected to the CPU 1 of the power supply circuit 5.
It is connected between the output to 0 or the like and the output to the backup RAM 14, and is arranged in the forward direction from the output side to the CPU 10 or the like to the output side to the backup RAM 14. Then, the level of the standby voltage VSTBY to the backup RAM 14 is changed to the output voltage VD to the CPU 10 or the like.
When the voltage falls below the level of D, the output voltage VDD
Is output to the backup RAM 14 via the diode 9 as the standby voltage VSTBY.

【0017】そして、イグニッションスイッチ18がオ
ンされてディーゼルエンジンの運転が開始されると、C
PU10は車載機器2のディーゼルエンジンの運転状態
を検出するためのセンサによりディーゼルエンジンの運
転状態を検知するとともにバックアップRAM14のデ
ータを用いて、ディーゼルエンジンの運転状態に応じて
車載機器2の燃料噴射量制御用アクチュエータと燃料噴
射時期制御用アクチュエータをコントロールすることに
より燃料噴射量および燃料噴射時期を制御する。又、C
PU10はエンジン制御中において排気ガス浄化のため
の定数を学習してその学習値をバックアップRAM14
に記憶する。さらに、CPU10は入出力信号のチェッ
クを行い、異常が発生すると異常を示すデータをバック
アップRAM14に記憶する。
When the ignition switch 18 is turned on and the operation of the diesel engine is started, C
The PU 10 detects the operation state of the diesel engine of the vehicle-mounted device 2 using a sensor for detecting the operation state of the diesel engine of the vehicle-mounted device 2 and uses the data in the backup RAM 14 to determine the fuel injection amount of the vehicle-mounted device 2 according to the operation state of the diesel engine. The fuel injection amount and the fuel injection timing are controlled by controlling the control actuator and the fuel injection timing control actuator. Also, C
The PU 10 learns a constant for purifying exhaust gas during engine control and stores the learned value in the backup RAM 14.
To memorize. Further, the CPU 10 checks an input / output signal, and when an abnormality occurs, stores data indicating the abnormality in the backup RAM 14.

【0018】又、本実施例では、CPU10によりバッ
テリ1の交換を含めたバックアップ電源の遮断が検出さ
れる。即ち、CPU10は、周辺機器の動作状態を表す
ためのステータスビットを有しており、このステータス
ビットは、バックアップRAM14へのスタンバイ電圧
VSTBYが所定時間基準レベル以下になると、ハード
ウェア的に「1→0」に変化するようになっている。
尚、以下、このスタンバイ電圧VSTBYの状態を表す
ためのステータスビットのことをスタンバイビットとい
う。
In this embodiment, the CPU 10 detects the interruption of the backup power supply including the replacement of the battery 1. That is, the CPU 10 has a status bit for indicating the operation state of the peripheral device. When the standby voltage VSTBY to the backup RAM 14 becomes lower than the reference level for a predetermined time, the status bit becomes “1 →”. "0".
Hereinafter, a status bit for indicating the state of the standby voltage VSTBY is referred to as a standby bit.

【0019】例えば、バッテリ1が交換等のために一時
的に取り外されたり、第2電源ライン19に断線が生じ
たり、或いは第3端子20に接触不良が生じたりして、
バックアップRAM14へのスタンバイ電圧VSTBY
が所定時間基準レベル以下になると、CPU10のスタ
ンバイビットが「1→0」に変化される。従って、この
状態で、イグニッションスイッチ18がオンされてEC
U4が起動されると、CPU10は、スタンバイビット
の「1→0」の変化に基づいて、バッテリの交換を含め
た第2電源ライン19からの電力供給が遮断されたこと
を検出する。
For example, when the battery 1 is temporarily removed for replacement or the like, the second power supply line 19 is disconnected, or the third terminal 20 has a poor contact,
Standby voltage VSTBY to backup RAM 14
Is below the reference level for a predetermined time, the standby bit of the CPU 10 is changed from “1 → 0”. Accordingly, in this state, the ignition switch 18 is turned on and the EC
When U4 is activated, the CPU 10 detects that the power supply from the second power supply line 19 including the replacement of the battery has been interrupted, based on the change of the standby bit from “1 → 0”.

【0020】そして、CPU10はイグニッションスイ
ッチ18のオン時にバックアップ電源の遮断があったこ
とを検知すると、バックアップRAM14のデータを全
てクリアするようになっている。
When the CPU 10 detects that the backup power supply has been cut off when the ignition switch 18 is turned on, the CPU 10 clears all data in the backup RAM 14.

【0021】このスタンバイビットは、ソフトウェアで
「1」を書かない限り、「0」の状態を保持している。
本実施例では、このスタンバイビットを利用してEEP
ROM7のデータの再書き込みを行うようにしている。
EEPROM7のデータの再書き込み処理(リフレッシ
ュ処理)の詳細については後述する。
This standby bit holds the state of "0" unless "1" is written by software.
In this embodiment, the EEP is used by utilizing this standby bit.
The data in the ROM 7 is rewritten.
The details of the data rewriting process (refreshing process) of the EEPROM 7 will be described later.

【0022】本実施例では、CPU10によりバッテリ
交換検出手段とデータ読出手段とデータ書込手段と電源
遮断可能性検知手段が構成されている。次に、このよう
に構成した車載エンジンの電子制御装置(EEPROM
のデータ再書込制御装置)の作用を説明する。
In this embodiment, the battery replacement detecting means, the data reading means, the data writing means, and the power shut-down possibility detecting means are constituted by the CPU 10. Next, an electronic control unit (EEPROM) for the vehicle-mounted engine thus configured.
The operation of the data rewriting control device will be described.

【0023】図2にはEEPROM7のデータ再書込制
御のためのフローチャートを示すとともに、図3にはタ
イミングチャートを示す。尚、図2の演算実行周期は、
例えば32ms毎あるいはクランク角センサからのパル
ス信号の入力毎(所定のクランク角毎)である。
FIG. 2 is a flowchart for controlling the data rewriting of the EEPROM 7, and FIG. 3 is a timing chart. The calculation execution cycle in FIG.
For example, every 32 ms or every input of a pulse signal from the crank angle sensor (every predetermined crank angle).

【0024】図3において、t1のタイミングにてイグ
ニッションスイッチ18がオンされ、その後、t2のタ
イミングにてイグニッションスイッチ18がオフされ、
この状態で、t3のタイミングにてバッテリ1が取り外
され、t4のタイミングにて新しいバッテリ1が取り付
けられたものとする。このバッテリ1の交換は10年間
に1,2回は必ず行われるものである。さらに、t5の
タイミングにてイグニッションスイッチ18がオンされ
たものとする。この図3において、t3でのバッテリ1
の取り外しによりスタンバイ電圧VSTBYがLレベル
になるとともにCPU10のスタンバイビットが「0」
にされ、その後のt4のタイミングでのバッテリ1の取
り付けによりスタンバイ電圧VSTBYがHレベルに復
帰する。
In FIG. 3, the ignition switch 18 is turned on at the timing of t1, and thereafter, the ignition switch 18 is turned off at the timing of t2.
In this state, it is assumed that the battery 1 is removed at the timing t3 and a new battery 1 is attached at the timing t4. The replacement of the battery 1 is always performed once or twice in 10 years. Further, it is assumed that the ignition switch 18 is turned on at the timing of t5. In FIG. 3, the battery 1 at t3
, The standby voltage VSTBY becomes L level and the standby bit of the CPU 10 becomes “0”.
The standby voltage VSTBY returns to the H level due to the attachment of the battery 1 at the timing of t4 thereafter.

【0025】図2において、CPU10はステップ10
0で、車速センサからの信号およびエンジン回転数セン
サ(クランク角センサ)からの信号により、車速が50
Km/h以上で、かつ、エンジン回転数が2000rp
m以上か否かを判定する。この処理は、バッテリ1から
の電源の遮断の可能性を検知するためのものであり、車
速とエンジン回転数とに基づいてバッテリ1からの電源
供給にて駆動されるディーゼルエンジンの状態を検知
し、このディーゼルエンジンの状態検知によりバッテリ
1からの電源の遮断の可能性を検知する。そして、CP
U10は、車速が50Km/h以上で、かつ、エンジン
回転数が2000rpm以上でないと、バッテリ1から
の電源の遮断の可能性があるとして、同ルーチンを終了
する(図3のt5〜t6の期間)。
In FIG. 2, the CPU 10 executes a step 10
0, the vehicle speed becomes 50 by the signal from the vehicle speed sensor and the signal from the engine speed sensor (crank angle sensor).
Km / h or more and the engine speed is 2000 rpm
m is determined. This process is for detecting the possibility of shutting off the power supply from the battery 1 and detecting the state of the diesel engine driven by the power supply from the battery 1 based on the vehicle speed and the engine speed. By detecting the state of the diesel engine, the possibility of shutting off the power supply from the battery 1 is detected. And CP
If the vehicle speed is not less than 50 km / h and the engine speed is not more than 2000 rpm, U10 determines that the power supply from the battery 1 may be shut off, and terminates the routine (period t5 to t6 in FIG. 3). ).

【0026】一方、CPU10は車速が50Km/h以
上で、かつ、エンジン回転数が2000rpm以上であ
ると(図3のt6のタイミング)、バッテリ1からの電
源の遮断の可能性が無いとして、ステップ101に移行
してスタンバイビットの状態が「1」であるか否か判定
する。そして、CPU10は「1」である場合には、バ
ッテリ1の交換が行われていないと判断する。つまり、
バッテリ1の取り外しがない場合には、スタンバイ電圧
VSTBYのレベルが低下しないので、スタンバイビッ
トは、「1」の状態で保持される。従って、このような
場合には、CPU10はバッテリ1の交換がなかったと
判断して、同ルーチンを終了する。
On the other hand, if the vehicle speed is equal to or higher than 50 km / h and the engine speed is equal to or higher than 2000 rpm (timing t6 in FIG. 3), the CPU 10 determines that there is no possibility of shutting off the power supply from the battery 1 and determines in step S10. The process proceeds to 101 to determine whether or not the state of the standby bit is “1”. If the value is “1”, the CPU 10 determines that the battery 1 has not been replaced. That is,
If the battery 1 is not removed, the level of the standby voltage VSTBY does not decrease, so that the standby bit is kept at “1”. Therefore, in such a case, the CPU 10 determines that the battery 1 has not been replaced, and ends the routine.

【0027】一方、CPU10はステップ101におい
て、スタンバイビットの状態が「1」でない場合、すな
わち「1→0」に変化されている場合には、バッテリ1
の交換が行われたと判断する。
On the other hand, if the state of the standby bit is not “1” in step 101, that is, if the state of the standby bit is changed from “1 → 0”, the CPU 10
Is determined to have been exchanged.

【0028】つまり、バッテリ1の取り外しがあった場
合には、スタンバイ電圧VSTBYが所定時間基準レベ
ル以下になって、CPU10のスタンバイビットが「1
→0」に変化される。従って、このような場合には、バ
ッテリ1の交換がなされたと判断して、ステップ102
に移行する。
That is, when the battery 1 is removed, the standby voltage VSTBY becomes lower than the reference level for a predetermined time, and the standby bit of the CPU 10 becomes "1".
→ "0". Therefore, in such a case, it is determined that the battery 1 has been replaced, and
Move to

【0029】CPU10はステップ102でEEPRO
M7の内容(書き込まれているデータ)を読み出し、さ
らにステップ103に移行する。CPU10はステップ
103で、読み出したデータの内容をEEPROM7に
再度書き込む。さらに、CPU10はステップ104で
スタンバイビットを「1」にする(図3のt6でのスタ
ンバイビットの立ち上げ動作)。
At step 102, the CPU 10 executes the EEPRO
The contents (written data) of M7 are read, and the process proceeds to step 103. In step 103, the CPU 10 writes the contents of the read data into the EEPROM 7 again. Further, the CPU 10 sets the standby bit to "1" in step 104 (start-up operation of the standby bit at t6 in FIG. 3).

【0030】このようにして、EEPROM7のデータ
再書き込みがバッテリ交換後の所定の条件成立時(車速
が50Km/h以上で、かつ、エンジン回転数が200
0rpm以上)に行われる。
As described above, when the rewriting of the data in the EEPROM 7 is performed under a predetermined condition after the replacement of the battery (when the vehicle speed is 50 km / h or more and the engine speed is 200
0 rpm or more).

【0031】尚、第2電源ライン19が断線されたり第
3端子20に接触不良が生じたりした場合にも、前記バ
ッテリ1の交換時と同じく、スタンバイ電圧VSTBY
のレベルが低下して、スタンバイビットが「1→0」に
変化する。従って、その後イグニッションスイッチ18
がオンされたとき、EEPROM7のデータの再書き込
みが行われる。しかし、このような場合でもEEPRO
M7の書き込み回数の制限の1万回をオーバーする可能
性は低く、支障は生じない。
When the second power supply line 19 is disconnected or the third terminal 20 has a poor contact, the standby voltage VSTBY is the same as when the battery 1 is replaced.
Is lowered, and the standby bit changes from “1 → 0”. Therefore, after that, the ignition switch 18
Is turned on, the data in the EEPROM 7 is rewritten. However, even in such a case, EEPRO
There is a low possibility that the limit of the number of times of writing of M7 exceeds 10,000, and no problem occurs.

【0032】このように本実施例では、CPU10は図
2のステップ101の処理にてバッテリ1の交換を検出
し、バッテリ1の交換に基づいてステップ102の処理
にてEEPROM7に書き込まれているデータを読み出
すとともにステップ103の処理にて読み出されたデー
タを再度、EEPROM7に書き込む。よって、バッテ
リ交換のタイミングでEEPROM7のデータの再書き
込みが行われる。つまり、EEPROM7のデータを保
持するには10年間に1,2回の書き換えが必要であ
り、10年間に少なくとも1,2回は必ず行われるバッ
テリ交換のタイミングでEEPROM7のデータの再書
き込みを行う。その結果、適切な時期にEEPROM7
のデータを書き込み(同一の値を上書き)することによ
り、従来必要としていたデータの再書き込みのためのE
EPROMのデータ記憶領域が不要となり、又、多数決
といったデータの再書き込みのための複雑な処理を用い
ることなく、さらに、データが消滅することなく高い信
頼性も確保される。このようにしてEEPROM7のデ
ータを正確かつ半永久的に保存することができる。
As described above, in this embodiment, the CPU 10 detects the replacement of the battery 1 in the process of step 101 in FIG. 2, and based on the replacement of the battery 1, the data written in the EEPROM 7 in the process of step 102. And the data read in the process of step 103 is written into the EEPROM 7 again. Therefore, the data of the EEPROM 7 is rewritten at the timing of battery replacement. That is, in order to retain the data in the EEPROM 7, one or two rewrites are required in ten years, and the data in the EEPROM 7 is rewritten at least once or twice in ten years at the timing of battery replacement. As a result, the EEPROM 7
By writing the same data (overwriting the same value), the E required for rewriting data conventionally required
The data storage area of the EPROM becomes unnecessary, and high reliability is secured without using complicated processing for rewriting data such as majority decision, and without losing data. In this manner, the data in the EEPROM 7 can be accurately and semi-permanently stored.

【0033】又、CPU10は図2のステップ101の
処理においてスタンバイビットを利用してバッテリ1の
交換を検出するようにしたので、専用のバッテリ交換検
出手段(例えば、バッテリの取り外しにてオンするリミ
ットスイッチ等)を用いることなく、容易にバッテリの
交換を検出することができ、構成を簡単にして製作コス
トの低減を図ることができる。
Since the CPU 10 detects the replacement of the battery 1 by using the standby bit in the process of step 101 in FIG. 2, a dedicated battery replacement detecting means (for example, a limit which is turned on when the battery is removed). The replacement of the battery can be easily detected without using a switch or the like, and the configuration can be simplified to reduce the manufacturing cost.

【0034】さらに、CPU10は図2のステップ10
0の処理にてバッテリ交換後においてバッテリ1からの
電源の遮断の可能性を検知し、バッテリ1からの電源の
遮断の可能性が無い時に、つまり、バッテリ1からの電
源供給にて駆動されるディーゼルエンジンの状態にて
(車速が所定値以上で、かつエンジン回転数が所定値以
上のとき)、データの再書き込みを行うようにした。よ
って、車速が所定値以上で、かつエンジン回転数が所定
値以上のときには電源が断たれることは有り得ないの
で、充分書き込み時間が確保でき、データの再書き込み
の途中で電源が遮断されることなく、確実にデータの再
書き込みを行うことができる。
Further, the CPU 10 executes step 10 in FIG.
In the process of 0, the possibility of shutting off the power from the battery 1 is detected after the replacement of the battery, and when there is no possibility of shutting off the power from the battery 1, that is, driven by the power supply from the battery 1 In the state of the diesel engine (when the vehicle speed is equal to or higher than a predetermined value and the engine speed is equal to or higher than a predetermined value), the data is rewritten. Therefore, when the vehicle speed is equal to or higher than the predetermined value and the engine speed is equal to or higher than the predetermined value, the power cannot be cut off.Therefore, a sufficient write time can be secured, and the power is cut off during data rewriting. And the data can be rewritten reliably.

【0035】この発明の他の態様として、図2のステッ
プ100においてバッテリ1からの電源の遮断の可能性
の検出は車速が所定値以上またはエンジン回転数が所定
値以上のいずれか一方を満たすとき、バッテリからの電
源の遮断の可能性が無いと判定してもよい。
As another aspect of the present invention, the possibility of shutting off the power supply from the battery 1 is detected in step 100 of FIG. 2 when the vehicle speed satisfies either a predetermined value or more or the engine speed exceeds a predetermined value. Alternatively, it may be determined that there is no possibility of power interruption from the battery.

【0036】又、この発明は、エンジン制御用ECUの
他にも各種の装置に具体化できるものである。
The present invention can be embodied in various devices other than the engine control ECU.

【0037】[0037]

【発明の効果】以上詳述したように請求項1に記載の発
明によれば、データの書き込みの途中で電源が遮断され
ることなく、確実にデータの再書き込みを行うことがで
きる。
As described in detail above, according to the first aspect of the present invention, data can be reliably rewritten without turning off the power during the data writing.

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

【図1】車載エンジンの電子制御装置及びその周辺機器
を示す構成図。
FIG. 1 is a configuration diagram showing an electronic control unit of a vehicle-mounted engine and peripheral devices thereof.

【図2】作用を説明するためのフローチャート。FIG. 2 is a flowchart for explaining the operation.

【図3】作用を説明するためのタイミングチャート。FIG. 3 is a timing chart for explaining an operation.

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

1 バッテリ 7 EEPROM 10 バッテリ交換検出手段、データ読出手段、データ
書込手段、電源遮断可能性検知手段を構成するCPU 14 バックアップRAM
DESCRIPTION OF REFERENCE NUMERALS 1 battery 7 EEPROM 10 CPU constituting battery replacement detecting means, data reading means, data writing means, power cut possibility detecting means 14 backup RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 不揮発性メモリと、 バッテリからの電源の遮断の可能性を検知する電源遮断
可能性検知手段とを備え、 該電源遮断可能性検知手段により前記バッテリからの電
源の遮断の可能性が無い時に、前記不揮発性メモリへの
書き込みを行う車載エンジンの電子制御装置であって、 前記電源遮断可能性検知手段は、車速が所定値以上若し
くはエンジン回転数が所定値以上の少なくともいずれか
一方を満たす時、前記バッテリからの電源の遮断の可能
性が無いと判定することを特徴とする車載エンジンの電
子制御装置。
1. A non-volatile memory, and a power shutoff possibility detecting means for detecting a possibility of power shutoff from a battery, wherein the power shutoff possibility detecting means is capable of shutting off power from the battery. When there is no, the electronic control unit of the vehicle-mounted engine that performs writing to the non-volatile memory, wherein the power cut-off possibility detecting means, at least one of the vehicle speed is equal to or more than a predetermined value or the engine speed is equal to or more than a predetermined value When the condition is satisfied, it is determined that there is no possibility that the power supply from the battery is cut off.
JP2001351521A 2001-11-16 2001-11-16 Electronic control unit for vehicle engine Expired - Lifetime JP3444295B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001351521A JP3444295B2 (en) 2001-11-16 2001-11-16 Electronic control unit for vehicle engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001351521A JP3444295B2 (en) 2001-11-16 2001-11-16 Electronic control unit for vehicle engine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP29529894A Division JP3644058B2 (en) 1994-11-29 1994-11-29 Electronic control device for vehicle engine and data rewrite control device for EEPROM

Publications (2)

Publication Number Publication Date
JP2002195094A true JP2002195094A (en) 2002-07-10
JP3444295B2 JP3444295B2 (en) 2003-09-08

Family

ID=19163825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001351521A Expired - Lifetime JP3444295B2 (en) 2001-11-16 2001-11-16 Electronic control unit for vehicle engine

Country Status (1)

Country Link
JP (1) JP3444295B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009281389A (en) * 2009-08-07 2009-12-03 Fuji Heavy Ind Ltd Data recording device and its shut-down method
US20120078553A1 (en) * 2009-06-26 2012-03-29 Nissan Motor Co., Ltd. Battery charge amount increase facility information provision device and method
US9983809B2 (en) 2013-10-29 2018-05-29 Denso Corporation Data-refresh apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120078553A1 (en) * 2009-06-26 2012-03-29 Nissan Motor Co., Ltd. Battery charge amount increase facility information provision device and method
JP2009281389A (en) * 2009-08-07 2009-12-03 Fuji Heavy Ind Ltd Data recording device and its shut-down method
US9983809B2 (en) 2013-10-29 2018-05-29 Denso Corporation Data-refresh apparatus

Also Published As

Publication number Publication date
JP3444295B2 (en) 2003-09-08

Similar Documents

Publication Publication Date Title
JP5176728B2 (en) Electronic control device for vehicle
JP4345708B2 (en) Electronic control device for vehicle
US5095438A (en) Engine controller with low voltage reset
US7003382B2 (en) Electronic control unit for a vehicle
US6401163B1 (en) Apparatus and method for rewriting data from volatile memory to nonvolatile memory
JP4552982B2 (en) Electronic control unit
US6182004B1 (en) Apparatus and method for controlling electric power supply in nonvolatile memory rewriting operation
JP3460256B2 (en) Battery disconnection detector
JP2003002132A (en) Vehicle control device
JP3444295B2 (en) Electronic control unit for vehicle engine
JP3644058B2 (en) Electronic control device for vehicle engine and data rewrite control device for EEPROM
JP2002041367A (en) Vehicle controller
US11314634B2 (en) Electronic control unit and data protection method therefor
JP2007062632A (en) Electronic control unit and storing method of data for abnormality generated time storage
JP2008196441A (en) Control device for vehicle
US6853295B2 (en) Vehicular control unit with self shut-off function and abnormality detection function
JP4281222B2 (en) Nonvolatile memory writing device
JP2000257502A (en) Electronic controller for automobile
JP3846398B2 (en) Vehicle control device
JPH05289949A (en) Vehicle control device
JP4270108B2 (en) Engine control device
JP2002334023A (en) Electronic controller
JP4998816B2 (en) Electronic controller program rewriting system
JP2000192844A (en) Engine control device
JPS623312A (en) Electronic controller for vehicle

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030527

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090627

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100627

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100627

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110627

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120627

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120627

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130627

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140627

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term