JP2006118386A - Electronic control unit - Google Patents
Electronic control unit Download PDFInfo
- Publication number
- JP2006118386A JP2006118386A JP2004305095A JP2004305095A JP2006118386A JP 2006118386 A JP2006118386 A JP 2006118386A JP 2004305095 A JP2004305095 A JP 2004305095A JP 2004305095 A JP2004305095 A JP 2004305095A JP 2006118386 A JP2006118386 A JP 2006118386A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory
- electronic control
- control device
- keyword
- 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
Links
Images
Abstract
Description
本発明は、給電によりデータの保持機能を実現するメモリを備えて車両の運転を制御する電子制御装置に関する。 The present invention relates to an electronic control device that includes a memory that realizes a data holding function by power feeding and controls driving of a vehicle.
この種の電子制御装置としては、例えば内燃機関の運転を制御する電子制御装置がある。この電子制御装置は、内燃機関の冷却水温や吸気管内の圧力、吸気の温度等についての各種センサによる検出値を取り込み、内蔵するメモリ(RAM)にこれら検出値を一旦記憶するとともに、これら記憶する検出値に基づいて内燃機関の運転を制御する。具体的には、例えば内燃機関の始動前に吸気圧センサの検出値を取り込み、これを大気圧としてRAMに記憶するとともに、この記憶される大気圧に基づいて内燃機関の各種制御を行う。 An example of this type of electronic control device is an electronic control device that controls the operation of an internal combustion engine. This electronic control device takes in detected values by various sensors for the coolant temperature of the internal combustion engine, the pressure in the intake pipe, the temperature of the intake air, etc., and temporarily stores these detected values in a built-in memory (RAM). The operation of the internal combustion engine is controlled based on the detected value. Specifically, for example, the detected value of the intake pressure sensor is taken in before the internal combustion engine is started and stored in the RAM as the atmospheric pressure, and various controls of the internal combustion engine are performed based on the stored atmospheric pressure.
一方、上記車両の運転を制御する電子制御装置においては、一般に、電力供給源であるバッテリの電圧低下等に起因して、上記制御等にかかる各種演算を実行するマイクロコンピュータの動作が保証されなくなる懸念が生じることがある。 On the other hand, in the electronic control device that controls the operation of the vehicle, generally, the operation of the microcomputer that executes various calculations related to the control or the like is not guaranteed due to the voltage drop of the battery as the power supply source. Concerns may arise.
そこで従来、バッテリの電圧低下が検出されるとき、マイクロコンピュータをリセットするものも提案されている(特許文献1)。これにより、バッテリの電圧が低下した場合であっても、マイクロコンピュータの動作が保証されなくなる事態を回避することができるようになる。更に、こうしたリセットの後には、通常、上記内蔵するRAMに記憶されているデータがクリアされる。そして、所望されるデータが新たにRAMに取り込まれることで、RAMに記憶されるデータの信頼性の向上が図られている。 Therefore, conventionally, there has been proposed one that resets the microcomputer when a battery voltage drop is detected (Patent Document 1). Thereby, even when the voltage of the battery is lowered, it is possible to avoid a situation in which the operation of the microcomputer is not guaranteed. Further, after such a reset, data stored in the built-in RAM is usually cleared. The desired data is newly taken into the RAM, so that the reliability of the data stored in the RAM is improved.
ところで、上記態様にてリセットやRAMのクリア処理を行うことでRAMの信頼性の向上を図ることはできるものの、これらの処理に伴う次のような不都合も無視できないものとなっている。 By the way, although the reliability of the RAM can be improved by performing the reset or the clear process of the RAM in the above-described manner, the following inconveniences associated with these processes cannot be ignored.
すなわち、その検出として適切な期間が制限されているために、クリア処理の後、検出値が所望されているにもかかわらず、これを新たに取得することができないことがある。具体的には、例えば内燃機関始動に際してのスタータモータの起動に起因してバッテリの電圧が低下し、これに伴いリセットがなされると、リセットの復帰時には、上記RAMに保持される大気圧の検出値がクリアされる。このため、このクリアに伴い新たに大気圧を取り込む必要が生じる。しかし、内燃機関の始動により、吸気管内の圧力は大気圧と大きく相違したものとなっているため、吸気管の圧力を検出することによって大気圧を検出することはできない。 In other words, since an appropriate period is limited as the detection, it may not be possible to newly acquire the detection value after the clear process even though the detection value is desired. Specifically, for example, when the starter motor is started when the internal combustion engine is started and the voltage of the battery is reduced, and the reset is performed accordingly, the atmospheric pressure held in the RAM is detected when the reset is restored. The value is cleared. For this reason, it becomes necessary to newly take in atmospheric pressure with this clearing. However, since the pressure in the intake pipe is greatly different from the atmospheric pressure due to the start of the internal combustion engine, the atmospheric pressure cannot be detected by detecting the pressure in the intake pipe.
更に、上記クリア処理に伴い、RAMに記憶されていたデータを再度取得する必要が生じることから、電子制御装置において要求されている各種演算を迅速且つ適切に行うことが困難となることもある。 Furthermore, since the data stored in the RAM needs to be acquired again with the clear process, it may be difficult to quickly and appropriately perform various calculations required in the electronic control device.
なお、従来、電気的書き換え可能な不揮発性メモリ(EEPROM)等、給電の有無にかかわらずデータの保持機能を有するメモリを備えた電子制御装置も実現されている。こうした電子制御装置にあっては、上記データをEEPROM等に格納することで、上述した不都合を回避することはできる。しかし、この場合、EEPROM等の記憶領域の拡大につながるため好ましくない。
本発明は、給電の有無にかかわらずデータの保持機能を有するメモリを用いない場合であっても、所定の演算に用いられるデータである演算データをより適切に使用することのできる電子制御装置を提供することを目的とする。 The present invention provides an electronic control device that can more appropriately use calculation data, which is data used for a predetermined calculation, even when a memory having a data holding function is not used regardless of whether power is supplied or not. The purpose is to provide.
こうした目的を達成するため、第1の手段では、給電によりデータの保持機能を実現するメモリを備えたマイクロコンピュータを用いて車両の運転を制御するとともに、前記マイクロコンピュータをリセットする機能を有する電子制御装置において、前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとを前記メモリに書き込むとともに、前記リセットからの復帰に際し、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断するようにした。 In order to achieve such an object, in the first means, electronic control having a function of controlling the operation of the vehicle using a microcomputer provided with a memory that realizes a data holding function by power feeding and resetting the microcomputer. In the apparatus, keyword data that is data for diagnosing the state of data in the memory and operation data that is data for a predetermined operation are written into the memory, and the memory is restored upon return from the reset. The keyword data is read out from the above, and based on the validity of the keyword data, it is determined whether or not the operation data stored in the memory is valid.
リセットが行われる状態にメモリがおかれると、メモリに記憶されている演算データは、各種演算に用いられるものとして妥当なものでなくなることがある。この点、上記構成では、キーワードデータを用いることで、メモリに記憶されているデータの妥当性を判断することが可能となる。すなわち、メモリに記憶されているキーワードデータを読み出すとともに、読み出されたキーワードデータの妥当性に基づき、メモリに記憶されているその他のデータの妥当性を判断することができるようになる。これにより、演算データが妥当なものか否かを判断することができる。そして、リセットが行われた場合であっても、上記演算データが妥当なものと判断されるときには、この演算データをそのまま各種演算に用いることができるようになる。したがって、上記構成によれば、給電の有無にかかわらずデータの保持機能を有するメモリを用いない場合であっても、所定の演算に用いられるデータである演算データをより適切に使用することができるようになる。 If the memory is placed in a state where the reset is performed, the calculation data stored in the memory may not be valid for use in various calculations. In this regard, in the above configuration, the validity of the data stored in the memory can be determined by using the keyword data. In other words, the keyword data stored in the memory can be read, and the validity of other data stored in the memory can be determined based on the validity of the read keyword data. This makes it possible to determine whether the calculation data is valid. Even when the reset is performed, when it is determined that the calculation data is appropriate, the calculation data can be used as it is for various calculations. Therefore, according to the above configuration, even when a memory having a data holding function is not used regardless of whether power is supplied or not, calculation data that is data used for a predetermined calculation can be used more appropriately. It becomes like this.
また、手段2では、手段1において、前記リセットからの復帰に際し、前記メモリに記憶されているデータをクリアするクリア処理機能を有し、且つ前記メモリは、前記リセットに際してクリアされない記憶領域を備えるとともに、該クリアされない記憶領域に、前記キーワードデータと、前記演算データとを記憶するものであるようにした。 In the means 2, the means 1 has a clear processing function for clearing data stored in the memory when returning from the reset, and the memory includes a storage area that is not cleared in the reset. The keyword data and the calculation data are stored in the storage area that is not cleared.
このように、クリアされない記憶領域に上記演算データを記憶することで、リセットがなされた場合であっても、この演算データがクリアされることを回避することができるようになる。 Thus, by storing the calculation data in a storage area that is not cleared, it is possible to avoid the calculation data from being cleared even if the calculation data is reset.
なお、これら手段1及び手段2において、上記リセットが行われる条件に、当該電子制御装置への給電電圧が所定の値以下となることを含ませ、且つ前記所定の値を、前記メモリがデータを保持することができる電圧の最低値よりも高く設定する手段3の構成を採用することが望ましい。 In these means 1 and 2, the condition for performing the reset includes that the power supply voltage to the electronic control device is equal to or lower than a predetermined value, and the memory stores the data as the predetermined value. It is desirable to adopt the configuration of the means 3 for setting higher than the lowest voltage that can be held.
このように、リセットが行なわれる条件を設定することで、この条件をもって簡易的にメモリの信頼性の判断をすることができるようになる。ただし、こうした場合、リセットがなされるときであっても、メモリに記憶されているデータが正しく保持されている可能性がある。この点、手段3では、上記手段1又は上記手段2の構成を用いることで、これら手段1や手段2の有する作用効果を好適に奏することができるようになる。 In this way, by setting the conditions for resetting, it becomes possible to easily determine the reliability of the memory with these conditions. However, in such a case, there is a possibility that the data stored in the memory is correctly held even when the reset is performed. In this respect, the means 3 can suitably exhibit the effects of the means 1 and 2 by using the configuration of the means 1 or the means 2 described above.
また、手段4では、給電によりデータの保持機能を実現するメモリを備えて車両の運転を制御するとともに、前記メモリに記憶されているデータの信頼性が低下したと判断される所定の条件が成立するときに該メモリに記憶されているデータをクリアするクリア処理機能を有する電子制御装置において、前記メモリは、前記クリア処理機能によってクリアされない記憶領域を備えており、且つ前記クリアされない記憶領域に、前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとが書き込まれるものであり、前記所定の条件が成立するとき、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断するようにした。 In addition, the means 4 includes a memory that realizes a data holding function by power supply, controls the operation of the vehicle, and establishes a predetermined condition for determining that the reliability of the data stored in the memory has decreased. In the electronic control device having a clear processing function for clearing the data stored in the memory when the memory, the memory includes a storage area that is not cleared by the clear processing function, and in the storage area that is not cleared, Keyword data, which is data for diagnosing the state of data in the memory, and operation data, which is data for a predetermined operation, are written, and when the predetermined condition is satisfied, from the memory Operations that read the keyword data and are stored in the memory based on the validity of the keyword data Chromatography data was made to determine whether valid ones.
このように、クリアされない記憶領域を用いることで、上記所定の条件が成立した場合であっても、これら演算データやキーコードデータがクリアされることを回避することができる。更に、キーワードデータを用いることで、メモリに記憶されているデータの妥当性を判断することが可能となる。すなわち、メモリに記憶されているキーワードデータを読み出すとともに、読み出されたキーワードデータの妥当性に基づき、メモリに記憶されているその他のデータの妥当性を判断することができるようになる。これにより、演算データが妥当なものか否かを判断することができる。そして、キーワードデータを用いて上記演算データが妥当なものと判断されるときには、この演算データをそのまま各種演算に用いることができるようになる。したがって、上記構成によれば、給電の有無にかかわらずデータの保持機能を有するメモリを用いない場合であっても、所定の演算に用いられるデータである演算データをより適切に使用することができるようになる。 In this way, by using a storage area that is not cleared, it is possible to avoid clearing these calculation data and key code data even when the predetermined condition is satisfied. Furthermore, the validity of the data stored in the memory can be determined by using the keyword data. In other words, the keyword data stored in the memory can be read, and the validity of other data stored in the memory can be determined based on the validity of the read keyword data. This makes it possible to determine whether the calculation data is valid. When it is determined that the calculation data is appropriate using the keyword data, the calculation data can be used for various calculations as it is. Therefore, according to the above configuration, even when a memory having a data holding function is not used regardless of whether power is supplied or not, calculation data that is data used for a predetermined calculation can be used more appropriately. It becomes like this.
なお、この手段4において、前記所定の条件に、当該電子制御装置への給電電圧が所定の値以下となることを含ませ、且つ前記所定の値を、前記メモリがデータを保持することができる電圧の最低値よりも高く設定する手段5の構成を採用することが望ましい。 In this means 4, the predetermined condition includes that the power supply voltage to the electronic control device is not more than a predetermined value, and the memory can hold the predetermined value. It is desirable to employ the configuration of the means 5 for setting the voltage higher than the minimum value.
また、手段6では、給電によりデータの保持機能を実現するメモリを備えて車両の運転を制御する電子制御装置において、前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとを前記メモリに書き込み、且つ当該電子制御装置への給電電圧が所定の値以下となるとき、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断するようにした。 Further, in the electronic control device that controls the operation of the vehicle by providing a memory that realizes a data holding function by power feeding, the means 6 includes keyword data that is data for diagnosing the state of the data in the memory, and a predetermined data When the operation data, which is data for the operation, is written to the memory, and the power supply voltage to the electronic control device is a predetermined value or less, the keyword data is read from the memory, and the validity of the keyword data Based on the above, it is determined whether or not the operation data stored in the memory is valid.
給電によりデータの保持機能を実現するメモリでは、一般に、給電電圧が低下することで、そこに記憶されているデータの信頼性が低下することがある。また、給電電圧が低下すると、当該電子制御装置についても、その動作が不安定化する等、信頼性の低下が懸念されることがある。このため、こうした電子制御装置にあっては、これら信頼性の低下を示す指標として給電電圧を用いることが有効である。ただし、電子制御装置の動作が不安定となるおそれがあるか否かを定める電圧の閾値は、通常、メモリがデータを保持できなくなる電圧の最高値よりも高い。また、メモリに記憶されているデータの信頼性を給電電圧にて評価する場合には、通常、メモリがデータを保持できなくなる電圧の最高値よりもこの評価のための閾値を高く設定する(マージンを持たせる)ものと考えられる。このため、給電電圧を監視し、これが閾値(所定の値)以下となったことが確認されたとしても、実際には、メモリにデータが正しく保持されていることがある。 In a memory that realizes a data holding function by feeding, generally, the reliability of data stored therein may be lowered due to a drop in the feeding voltage. Further, when the power supply voltage is lowered, there is a concern that the reliability of the electronic control device may be deteriorated, for example, the operation becomes unstable. For this reason, in such an electronic control device, it is effective to use a power supply voltage as an index indicating the decrease in reliability. However, the threshold value of the voltage that determines whether or not the operation of the electronic control device may become unstable is usually higher than the highest voltage value at which the memory cannot hold data. In addition, when evaluating the reliability of data stored in the memory with the power supply voltage, the threshold for this evaluation is usually set higher than the maximum value of the voltage at which the memory cannot hold the data (margin). It is thought that For this reason, even if the power supply voltage is monitored and it is confirmed that the power supply voltage is equal to or lower than the threshold value (predetermined value), data may actually be correctly stored in the memory.
この点、上記構成では、キーワードデータを用いることで、メモリに記憶されているデータの妥当性を判断することが可能となる。すなわち、メモリに記憶されているキーワードデータを読み出すとともに、読み出されたキーワードデータの妥当性に基づき、メモリに記憶されているその他のデータの妥当性を判断することができるようになる。これにより、演算データが妥当なものか否かを判断することができる。そして、上記演算データが妥当なものと判断されるときには、この演算データをそのまま各種演算に用いることができるようになる。したがって、上記構成によれば、給電の有無にかかわらずデータの保持機能を有するメモリを用いない場合であっても、所定の演算に用いられるデータである演算データをより適切に使用することができるようになる。 In this regard, in the above configuration, the validity of the data stored in the memory can be determined by using the keyword data. In other words, the keyword data stored in the memory can be read, and the validity of other data stored in the memory can be determined based on the validity of the read keyword data. This makes it possible to determine whether the calculation data is valid. When it is determined that the calculation data is appropriate, the calculation data can be used as it is for various calculations. Therefore, according to the above configuration, even when a memory having a data holding function is not used regardless of whether power is supplied or not, calculation data that is data used for a predetermined calculation can be used more appropriately. It becomes like this.
また、手段7では、上記各手段1〜6において、前記キーワードデータは、前記演算データが所定の規則に従って変換されたデータを含み、且つ前記メモリに記憶されている演算データが妥当なものか否かの判断は、前記メモリに記憶されているキーワードデータが、前記メモリに記憶されている演算データを前記所定の規則に従って変換したものに等しいか否かの判断を含むようにした。 In the means 7, in the means 1 to 6, the keyword data includes data obtained by converting the operation data according to a predetermined rule, and whether the operation data stored in the memory is valid. This determination includes determining whether or not the keyword data stored in the memory is equal to the operation data stored in the memory converted according to the predetermined rule.
また、手段8では、上記各手段1〜7において、前記キーワードデータは、前記所定の値を有する第1のデータと、該第1のデータが所定の規則に従って変換されたデータである第2のデータとを含み、且つ前記メモリに記憶されている演算データが妥当なものか否かの判断は、前記メモリに記憶されている第2のデータが、前記メモリに記憶されている第1のデータを前記所定の規則に従って変換したものに等しいか否かの判断を含むようにした。 In the means 8, in each of the means 1 to 7, the keyword data is the first data having the predetermined value and the second data obtained by converting the first data according to a predetermined rule. Whether the operation data stored in the memory is valid or not is determined based on whether the second data stored in the memory is the first data stored in the memory Is determined to be equal to the one converted according to the predetermined rule.
メモリのデータが書き込んだ値から変化する(化ける)際、同一のデータは同じように変化する傾向がある。この点、上記手段7では、上記キーワードデータは演算データとはその値が異なるため、演算データを2つの記憶領域に記憶させておいてこれらを照合する場合と比較して、演算データが妥当なものであるか否かの判断をより精度よく行うことができるようになる。また、上記手段8では、上記第1のデータは上記第2のデータとはその値が異なるため、第1のデータを2つの記憶領域に記憶させておいてこれらを照合する場合と比較して、キーワードデータの妥当性をより精度よく判断することができるようになる。これにより、演算データが妥当なものであるか否かの判断をより精度よく行なうことができるようになる。 When the data in the memory changes (becomes) from the written value, the same data tends to change in the same way. In this respect, in the means 7, the keyword data has a value different from that of the operation data. Therefore, the operation data is more appropriate than the case where the operation data is stored in two storage areas and compared. It becomes possible to determine whether or not the object is more accurate. In the means 8, since the first data is different in value from the second data, the first data is stored in two storage areas and compared with the case where these are collated. The validity of the keyword data can be judged with higher accuracy. As a result, it is possible to more accurately determine whether or not the calculation data is valid.
また、手段9では、上記各手段1〜8において、読み出し専用メモリを更に備え、且つ前記キーワードデータは、予め設定された値を有するデータであって、且つ前記読み出し専用メモリに記憶されたデータを含むようにした。 The means 9 further includes a read-only memory in each of the means 1 to 8, and the keyword data is data having a preset value, and the data stored in the read-only memory is I included it.
このようにキーワードデータを読み出し専用メモリに記憶しておくことで、このメモリに記憶されているデータそのものを上記当該電子制御装置の有する情報とすることができ、この情報に基づくキーワードデータの妥当性の判断を簡易且つ高精度で行なうことができるようになる。 By storing the keyword data in the read-only memory in this way, the data itself stored in the memory can be used as information held by the electronic control unit, and the validity of the keyword data based on this information This determination can be performed easily and with high accuracy.
また、手段10では、上記各手段1〜9において、前記車両を駆動する内燃機関の吸気管の圧力であって所定の条件の下で検出される圧力を前記演算データとして取り込むとともに、該演算データを大気圧にかかるデータとして用いるようにした。
Further, in the
上記構成においては、吸気管内の圧力が大気圧と略等しいときにのみ、吸気管内の圧力を計測することで、これを大気圧として用いることが可能となる。しかし、吸気管の圧力が大気圧と相違する状況下において、上記メモリに記憶されているデータの信頼性が低下すると、大気圧データを用いた演算を適切に行なうことができなくなる。 In the above configuration, the pressure in the intake pipe is measured only when the pressure in the intake pipe is substantially equal to the atmospheric pressure, and this can be used as the atmospheric pressure. However, if the reliability of the data stored in the memory is reduced under a situation where the pressure in the intake pipe is different from the atmospheric pressure, the calculation using the atmospheric pressure data cannot be performed appropriately.
この点、上記構成では、上記手段1〜9の構成を通じて、メモリに記憶されている大気圧にかかるデータをより適切に使用することで、上記不都合を軽減することができるようになる。 In this regard, in the above configuration, the above inconvenience can be reduced by more appropriately using the data relating to the atmospheric pressure stored in the memory through the configuration of the means 1-9.
以下、本発明にかかる電子制御装置を自動2輪車に搭載される内燃機関の電子制御装置に適用した一実施の形態を図面を参照しつつ説明する。 Hereinafter, an embodiment in which an electronic control device according to the present invention is applied to an electronic control device for an internal combustion engine mounted on a motorcycle will be described with reference to the drawings.
図1に、本実施形態の電子制御装置が上記車両に搭載されたときの同電子制御装置及びその周辺部の構成を示す。 FIG. 1 shows a configuration of the electronic control device and its peripheral portion when the electronic control device of the present embodiment is mounted on the vehicle.
この電子制御装置(ECU)100は、バッテリBからの給電により駆動されるものである。電子制御装置100及びバッテリB間には、メインスイッチMSWが備えられており、このメインスイッチMSWのオン・オフによって、これら電子制御装置100及びバッテリB間の電気的な接続状態が制御される。なお、上記バッテリBは、更に機関出力軸であるクランク軸221に初期回転を付与するための原動機であるスタータモータSTにも給電可能となっている。 The electronic control unit (ECU) 100 is driven by power supplied from the battery B. A main switch MSW is provided between the electronic control unit 100 and the battery B, and an electrical connection state between the electronic control unit 100 and the battery B is controlled by turning on / off the main switch MSW. The battery B can also supply power to a starter motor ST that is a prime mover for applying initial rotation to the crankshaft 221 that is an engine output shaft.
上記電子制御装置100は、マイクロコンピュータ(MCU)110や、電源回路120、電気的書き換え可能な不揮発性メモリ(以下、EEPROM)130、内燃機関の制御に用いる各種アクチュエータを駆動するドライバ140を備えている。ここで、電源回路120は、バッテリBからの電力を電子制御装置100内の各部分に供給する機能や、所定の条件下、上記マイクロコンピュータ110をリセットする機能を有する。また、EEPROM130は、マイクロコンピュータ110内で用いられるデータのうち、電子制御装置100によってなされる故障診断についての結果等、電子制御装置100への給電の有無にかかわらず保持することが所望される所定のデータを記憶するものである。
The electronic control unit 100 includes a microcomputer (MCU) 110, a
上記マイクロコンピュータ110は、各種演算を実行する中央処理装置(CPU)111や、同中央処理装置111において実行されるプログラム等を記憶する読み出し専用メモリ(以下、ROM)112、各種センサから出力されるアナログ信号をディジタル信号に変換するアナログ/ディジタル変換器(A/D変換器)113、上記中央処理装置111等で処理されるデータを記憶するランダムアクセスメモリ(以下、RAM)114を備えている。ここで、上記ROM112は、給電の有無にかかわらずデータの保持機能を有したメモリ(不揮発性メモリ)であり、上記RAM114は、給電によりデータの保持機能を実現するメモリである。
The
上記各種センサとしては、例えば、内燃機関の吸気管内の圧力を検出する吸気圧センサ210や、上記クランク軸221の回転速度を検出するクランク角センサ220等がある。ここで、クランク角センサ220は、クランク軸221が回転する際に、同クランク軸221に設けられたシグナルロータ222の凹凸を感知することでクランク軸221の回転状態を検出するものである。
Examples of the various sensors include an
上記吸気圧センサ210による検出値は、内燃機関の負荷の算出に用いられる。更に、本実施形態においては、内燃機関が始動する以前等、吸気管内の圧力が大気の圧力となっていると想定される所定の条件下、上記吸気圧センサ210によって検出される吸気圧を大気圧として用いるようにしている。
The value detected by the
一方、本実施形態では、RAM114に記憶されたデータの信頼性が低下したと判断される所定の条件が成立するとき、RAM114に記憶されている各データの値を「0」とする処理(クリアする処理)を行うようにしている。そして、RAM114への記憶が所望されるデータについては、これを再度取得するための処理を行うことで、RAM114に記憶されているデータの信頼性を確保するようにしている。 On the other hand, in the present embodiment, when a predetermined condition for determining that the reliability of the data stored in the RAM 114 is lowered is satisfied, the value of each data stored in the RAM 114 is set to “0” (cleared). Process). For data that is desired to be stored in the RAM 114, the reliability of the data stored in the RAM 114 is ensured by performing processing for acquiring the data again.
ただし、上記RAM114のデータをクリアする処理がなされると、上記大気圧にかかるデータ(以下、大気圧データ)についても、上記吸気圧センサ210を通じた再度の取得の必要が生じることがある。しかし、吸気管内の圧力が大気の圧力を反映していると想定される上記所定の条件が成立しない限り、適切な大気圧データを再度取得することはできない。
However, if the process of clearing the data in the RAM 114 is performed, the data relating to the atmospheric pressure (hereinafter referred to as atmospheric pressure data) may need to be acquired again through the
そこで、本実施形態では、こうした状況下においても、大気圧データを適切に使用することを可能とすべく、以下のような構成とした。 Therefore, in the present embodiment, the following configuration is adopted in order to enable appropriate use of atmospheric pressure data even under such circumstances.
すなわち、上記RAM114は、上記クリアする処理のなされる記憶領域(以下、クリアされる領域)114cと、同クリアする処理のなされない記憶領域(以下、クリアされない領域)114kとを備えている。そして、このクリアされない領域114kには、大気圧データ(PAIGON)や、RAM114内のデータの状態を診断するためのデータであるキーワードデータ等を記憶するようにした。
That is, the RAM 114 includes a storage area (hereinafter, cleared area) 114c that is subjected to the clearing process, and a storage area (hereinafter referred to as an uncleared area) 114k that is not subjected to the clearing process. In the
ここで、上記キーワードデータは、上記大気圧データの論理を反転したデータである「大気圧データの反転データ(PAIGONB)」と、上記ROM112に記憶されたデータであるキーコード1とキーコード2とからなる。上記大気圧データの反転データは、上記吸気圧センサ210を通じて大気圧データが取得される度に、ROM112の保持する所定のプログラムの手続きに従って中央処理装置111により生成されるものである。また、キーコード1とキーコード2とは、例えば「$AA55」と「$55AA」等、互いに論理の反転した値を有するデータである。
Here, the keyword data includes “inverted data of atmospheric pressure data (PAIGONB)” which is data obtained by inverting the logic of the atmospheric pressure data, and key code 1 and key code 2 which are data stored in the
ここで、大気圧データの反転データや、キーコード1、キーコード2を用いた本実施形態の処理について、図2及び図3を用いて説明する。 Here, the process of the present embodiment using the inverted data of the atmospheric pressure data and the key code 1 and the key code 2 will be described with reference to FIGS.
図2は、上記ROM112に記憶されたプログラムに従い、上記中央処理装置111を通じて実行される処理の手順を示すフローチャートである。なお、ここで示す処理は、実際には適宜のフラグ処理や計数処理等のもとに、例えば所定時間毎に割り込み起動される。
FIG. 2 is a flowchart showing a procedure of processing executed through the
図2に示す処理は、上記メインスイッチMSWを通じた電子制御装置100への給電開始(図中、電源ON)、及び上記マイクロコンピュータ110のリセットをトリガとする。ここで、リセットは、電子制御装置100への給電電圧(例えば5V)が、マイクロコンピュータ110の動作が保証されなくなる電圧値(リセット電圧:例えば4V)となることをもって行われるものである。なお、本実施形態では、このリセット電圧は、RAM114がデータを保持することができる電圧の最低値(RAMデータ保持電圧:例えば2V)よりも高く設定されている。
The processing shown in FIG. 2 is triggered by the start of power supply to the electronic control device 100 through the main switch MSW (in the figure, power ON) and the reset of the
上記電子制御装置100への給電開始やマイクロコンピュータ110のリセットがあると、ステップS10において、マイクロコンピュータ110の初期化処理が行われる(初期値設定)。この初期化処理には、先の図1に示したクリアされる領域114cのデータをクリアする上述した処理が含まれている。すなわち、本実施形態では、上記リセットがなされることをもって、RAM114に記憶されているデータの信頼性が低下したと判断するようにしている。
When power supply to the electronic control device 100 is started or the
続くステップS20においては、上記クランク角センサ220の出力信号に基づいてクランク軸221が回転しているか否か、すなわち、スタータモータSTによるエンジン始動前であるか否かを判断する。そして、クランク軸221が回転していないと判断されると、ステップS40に移行する。
In the subsequent step S20, it is determined whether or not the crankshaft 221 is rotating based on the output signal of the
ステップS40では、上記吸気圧センサ210の出力信号を取り込み、これを大気圧データとして上記クリアされない領域114kに書き込むとともに、上記キーワードデータについてもこれをクリアされない領域114kに書き込む。なお、これらステップS20とステップS40とで構成される一連の処理では、吸気圧センサ210から取り込まれたデータがクランク軸221の回転の開始前の吸気圧の計測によって生じたデータであるかどうかを判断することはできない。このため、実際には、吸気圧センサ210から取り込まれたデータについて、このデータがクランク軸221の回転開始前の吸気圧の計測によって生じたデータであるかどうかの判断に基づき、この取り込まれたデータを上記クリアされない領域114kに記憶する処理となるようにすることが望ましい。
In step S40, the output signal of the
一方、上記ステップS20において、クランク軸221が回転していると判断されると、ステップS30に移行する。このステップS30では、上記クリアされない領域114kに記憶されている大気圧データが、使用可能な信頼度を有するデータであるかどうか、換言すれば、妥当なものか否かを判断する。このステップS30への移行は、それまでの一連の処理を通じて、RAM114に記憶されているデータの信頼性が低下している状態(リセットがなされた状態)の可能性があり、且つクランク軸221が回転しているために、再度大気圧データを計測によって取得することができないと判断されることに基づいている。
On the other hand, if it is determined in step S20 that the crankshaft 221 is rotating, the process proceeds to step S30. In this step S30, it is determined whether or not the atmospheric pressure data stored in the
このステップS30においては、上記クリアされない領域114kから、大気圧データ及びその反転データ、更に、上記キーコード1及びキーコード2を読み出す。そして、下記の(ア)及び(イ)の判断を行う。
(ア)読み出された大気圧データの反転データが、読み出された大気圧データを論理反転したものに等しいか否かの判断。
(イ)読み出されたキーコード2が、読み出されたキーコード1を論理反転したものに等しいか否かの判断。
In step S30, the atmospheric pressure data and its inverted data, and the key code 1 and key code 2 are read from the
(A) Judgment whether the inverted data of the read atmospheric pressure data is equal to the logically inverted data of the read atmospheric pressure data.
(A) Judgment whether or not the read key code 2 is equal to the logical inversion of the read key code 1.
ここで、上記読み出された大気圧データの反転データが、読み出された大気圧データを論理反転したものに等しいときには、大気圧データの反転データの妥当性が高いことを意味する。また、上記読み出されたキーコード2が、読み出されたキーコード1を論理反転したものに等しいときには、これらキーコード1及びキーコード2の妥当性が高いことを意味する。そして、これらキーコードデータの妥当性が高いことは、クリアされない領域114kに記憶されている任意のデータが妥当なものである可能性が高いことを意味する。
Here, when the inverted data of the read atmospheric pressure data is equal to the logically inverted version of the read atmospheric pressure data, it means that the validity of the inverted data of the atmospheric pressure data is high. When the read key code 2 is equal to the logical inversion of the read key code 1, it means that the validity of the key code 1 and the key code 2 is high. The high validity of the key code data means that there is a high possibility that any data stored in the
ちなみに、上記(ア)を行なうことは、RAM114の互いに異なる2つのアドレスの記憶領域に大気圧データをそれぞれ記憶しておき、これら2つの記憶領域に記憶された大気圧データ同士の照合を行なうよりも、これらのデータの妥当性の判断をより高い精度で行なうことができるものとなっている。これは、RAM114に記憶されているデータが変化する(化ける)場合、同一のデータは同じように変化する傾向があるためである。 Incidentally, the above (a) is performed by storing the atmospheric pressure data in the storage areas of two different addresses in the RAM 114 and comparing the atmospheric pressure data stored in these two storage areas. In addition, the validity of these data can be determined with higher accuracy. This is because when the data stored in the RAM 114 changes (is garbled), the same data tends to change in the same way.
同様に、キーコード1及びキーコード2を互いに論理反転した値とすることで、これらを互いに同一のデータとする場合と比較して、これらのデータの妥当性の判断をより高い精度で行なうことができるようになっている。 Similarly, by making the key code 1 and the key code 2 logically inverted from each other, the validity of these data can be judged with higher accuracy than when the same data is used. Can be done.
そして、本実施形態では、上記(ア)及び(イ)の判断において、いずれも論理反転したものに等しいと判断されたとき、大気圧データが妥当なものと判断するようにしている。 In the present embodiment, when it is determined in the determinations (a) and (b) that both are equal to the logically inverted one, it is determined that the atmospheric pressure data is valid.
上記ステップS30において、クリアされない領域114kに記憶されている大気圧データが妥当なものであると判断されると、ステップS50において、この大気圧データを以後の処理において用いる旨判断する(保持値を反映)。
If it is determined in step S30 that the atmospheric pressure data stored in the
一方、ステップS30において、クリアされない領域114kに記憶されている大気圧データが妥当なものではないと判断されると、ステップS60において、大気圧データ用に予め用意されているデフォルトデータを採用し、クリアされない領域114kのうち大気圧データを記憶する記憶領域にデフォルトデータを書き込む。このデフォルトデータの値は、吸気圧センサ210を通じて大気圧を計測することができないときに用いる値であり、例えば通常の車両走行環境において想定される大気圧の値に設定される。なお、このデフォルトデータは、例えばROM112やEEPROM130等、給電の有無にかかわらずデータの保持機能を有するメモリに記憶しておくことが望ましい。
On the other hand, if it is determined in step S30 that the atmospheric pressure data stored in the
こうしてステップS40からステップ60までのいずれかの処理が終了すると、ステップS70において、内燃機関の運転を制御する様々な処理を実行する(ベース処理)。このステップ70の処理は、上記大気圧データを用いる処理を含んでいる。なお、実際には、上記ステップS20からステップS40までの一連の処理に限らず、ステップS70においても、吸気管内の圧力が大気圧となると想定される所定の条件下において、大気圧データを取得する処理を行うことが望ましい。この条件は、例えば、吸気管において吸気の流れにかかる断面積を制御する図示しないスロットルバルブの開度が全開となる条件としてもよい。 When one of the processes from step S40 to step 60 is completed in this way, in step S70, various processes for controlling the operation of the internal combustion engine are executed (base process). The processing in step 70 includes processing using the atmospheric pressure data. Actually, the atmospheric pressure data is acquired not only in the series of processes from step S20 to step S40, but also in step S70 under a predetermined condition in which the pressure in the intake pipe is assumed to be atmospheric pressure. It is desirable to perform processing. This condition may be, for example, a condition in which the opening of a throttle valve (not shown) that controls the cross-sectional area related to the flow of intake air in the intake pipe is fully opened.
次に、図2に示した一連の処理によって生ずる作用について、図3を用いて説明する。図3は、図2に示す一連の処理にかかるタイムチャートである。詳しくは、図3(a)は先の図1に示したメインスイッチMSWの状態推移を、図3(b)は上記スタータモータSTの駆動状態の推移を、図3(c)は電子制御装置100への給電状態の推移を、図3(d)は上記マイクロコンピュータ110の作動状態の推移を、図3(e)は上記マイクロコンピュータ110において行われる処理の推移を、図3(f)は吸気管内の圧力の推移をそれぞれ示す。
Next, the operation caused by the series of processes shown in FIG. 2 will be described with reference to FIG. FIG. 3 is a time chart for the series of processes shown in FIG. Specifically, FIG. 3A shows a state transition of the main switch MSW shown in FIG. 1, FIG. 3B shows a transition of the driving state of the starter motor ST, and FIG. 3C shows an electronic control unit. FIG. 3D shows the transition of the operating state of the
図3において、時刻t1にメインスイッチMSWがオンとされると、電子制御装置100への給電が開始され、これに伴いマイクロコンピュータ110により様々な処理が実行される。具体的には、先の図2のステップS10に示す初期化にかかる処理をはじめ、同図2のステップS40における吸気圧の取得にかかる処理や内燃機関の運転状態や運転環境についての各種センサによる計測結果を取り込む処理(図3(a)中、センサ値計測)等が実行される。
In FIG. 3, when the main switch MSW is turned on at time t <b> 1, power supply to the electronic control device 100 is started, and various processes are executed by the
そして、時刻t2において、上記スタータモータSTが始動されると、これに給電しているバッテリBの電圧が低下し始める。更に、スタータモータSTの始動に伴い、上記クランク軸221が回転駆動されることから、吸気管内の圧力も低下し始める。そして、時刻t3において、電子制御装置100への給電電圧が上記リセット電圧(図3(c)中、Vrと表記)以下となると、先の図1に示した電源回路120は、マイクロコンピュータ110をリセットする。なお、図3(b)及び図3(e)に示すように、スタータモータSTの起動タイミングは、先の図2のステップS20及びステップS40の処理を必ず一回行えるようなタイミングに設定する。
At time t2, when the starter motor ST is started, the voltage of the battery B that supplies power to the starter motor ST starts to decrease. Further, as the starter motor ST is started, the crankshaft 221 is rotationally driven, so that the pressure in the intake pipe also starts to decrease. When the power supply voltage to the electronic control device 100 becomes equal to or lower than the reset voltage (denoted as Vr in FIG. 3C) at time t3, the
そして、時刻t4には、マイクロコンピュータ110がリセットから復帰し、先の図2に示した処理等を開始する。すなわち、先の図2のステップS10に示す初期化にかかる処理をはじめ、内燃機関の運転状態や運転環境についての計測結果を各種センサを通じて取り込む処理(図3(a)中、センサ値計測)等が実行される。ただし、図3(c)に示すように、電子制御装置への給電電圧が上記リセット電圧よりは低下するものの上記RAMデータ保持電圧(図3(c)中、Vthと表記)までは低下しない場合には、上記クリアされない領域114kに記憶されているデータは妥当なものであると考えられる。そして、この場合、先の図2に示した一連の処理を通じて、クリアされない領域114kに記憶されている大気圧データが更新されることなくそのまま用いられるようになる。このため、図3(f)に示すように、時刻t2以降、吸気管内の圧力が、図中一点鎖線にて示す大気圧と相違したとしても、実際の大気圧を正確に表した大気圧データを用いて内燃機関の運転を制御することができるようになる。
At time t4, the
このように実施形態では、図2に示す処理を行なうことで、内燃機関の始動時等、バッテリBの電圧が低下することでマイクロコンピュータ110がリセットされたとしても、正確な大気圧の値を用いて内燃機関を好適に制御することができるようになる。特に、本実施形態のように自動2輪車に搭載されたバッテリBにあっては、その蓄電容量も少ないため、機関始動時にその電圧が低下しやすい。このため、リセットが行なわれる確率も高いものとなっている。このため、本実施形態は、図2に示す処理によって生じる効果を特に好適に奏することができる構成となっている。
As described above, in the embodiment, by performing the processing shown in FIG. 2, even when the
更に、キーワードデータを用いてRAM114に記憶されているデータが妥当なものであるかどうかを判断することで、大気圧データの記憶領域を上記EEPROM130等に確保することなく、大気圧データを適切に使用することができるようになる。先に例示したように、通常、リセット電圧は、RAMデータ保持電圧よりもかなり高い値に設定されている。このため、リセットがなされたとしても、RAM114に記憶されたデータについては、これをそのまま使用することができる可能性が比較的高い。換言すれば、リセットがなされ、且つRAM114のデータが使用不可能となっているケースはまれである。こうした状況下、大気圧データを適切に使用することを可能とすべく、これをEEPROM130に記憶するようにすることは、まれにしか生じないケースのためにEEPROM130の記憶領域を拡大することとなってしまう。これに対し、本実施形態では、こうしたEEPROM130の記憶領域の拡大を回避しつつも、取得された大気圧データのより適切な使用が可能となっているのである。
Further, by determining whether the data stored in the RAM 114 is valid using the keyword data, the atmospheric pressure data can be appropriately stored without securing the storage area of the atmospheric pressure data in the
以上詳述したように、本実施の形態によれば、以下の効果が得られるようになる。 As described above in detail, according to the present embodiment, the following effects can be obtained.
(1)キーワードデータの妥当性に基づいてRAM114に記憶されている大気圧データが妥当なものか否かを判断することで、大気圧データをより適切に使用することができるようになる。 (1) By determining whether the atmospheric pressure data stored in the RAM 114 is valid based on the validity of the keyword data, the atmospheric pressure data can be used more appropriately.
(2)リセット電圧を、RAMデータ保持電圧よりも高く設定した。これにより、RAM114に記憶されているデータの信頼性を高く維持することができ、ひいては、電子制御装置100の信頼性を高く維持することができるようになる。 (2) The reset voltage was set higher than the RAM data holding voltage. As a result, the reliability of the data stored in the RAM 114 can be maintained high, and as a result, the reliability of the electronic control device 100 can be maintained high.
(3)キーワードデータに、上記大気圧データの反転データを含めた。これにより、キーワードデータの妥当性の判断を好適に行なうことができる。 (3) The inverted data of the atmospheric pressure data is included in the keyword data. Thereby, the validity of keyword data can be suitably determined.
(4)キーワードデータに、上記キーコード1とキーコード2とを含めた。これにより、キーワードデータの妥当性の判断を好適に行なうことができる。 (4) The key code 1 and the key code 2 are included in the keyword data. Thereby, the validity of keyword data can be suitably determined.
(5)上記(ア)及び(イ)の双方において妥当性が高いと判断された場合にのみ、大気圧データが妥当なものであると判断することで、より精度の高い判断を行なうことができる。 (5) Only when it is judged that the validity is high in both (a) and (b), it is possible to make a judgment with higher accuracy by judging that the atmospheric pressure data is valid. it can.
なお、上記各実施形態は、以下のように変更して実施してもよい。 Each of the above embodiments may be modified as follows.
・キーコード1及びキーコード2の双方を予めROM112に記憶しておく代わりに、いずれか一方を記憶しておくとともに他方は上記大気圧データの反転データの生成と同様の処理によって生成されるようにしてもよい。
Instead of storing both the key code 1 and the key code 2 in the
・また、読み出されたキーコード2が、読み出されたキーコード1を論理反転したものに等しいか否かの判断を行なう代わりに、これらキーコード1及びキーコード2をそれぞれROM112に記憶されているキーコード1及びキーコード2と照合するようにしてもよい。
In addition, instead of determining whether or not the read key code 2 is equal to the logical inversion of the read key code 1, these key code 1 and key code 2 are stored in the
・キーコード1及びキーコード2の値についても上述したものに限らず、任意でよい。ただし、任意のデータである第1のデータと、該第1のデータが所定の規則に従って変換されたデータである第2のデータとすることが望ましい。 The values of the key code 1 and the key code 2 are not limited to those described above, and may be arbitrary. However, it is desirable that the first data which is arbitrary data and the second data which is data obtained by converting the first data in accordance with a predetermined rule.
・大気圧データの反転データを用いる代わりに、大気圧データを上記クリアされない領域114kの複数の領域に記憶しておき、互いに照合することでそれらの妥当性を判断するようにしてもよい。これによっても、大気圧データが妥当か否かの判断はできる。ただし、キーワードデータとしては、大気圧データが所定の規則に従って変換されたデータとすることが望ましい。なお、こうした変換されたデータとしては、例えば大気圧データの各ビットの和によって生成されるデータの最下位ビット等がある。
Instead of using the inverted data of the atmospheric pressure data, the atmospheric pressure data may be stored in a plurality of areas of the
・更に、メモリ内のデータの状態を診断するためのデータであるキーワードデータとしては、上記実施形態及びその変形例で例示したものに限らず、例えば、当該電子制御装置の有する情報と予め定められた関係にあるデータとしてもよい。なお、ここでは、「情報」に、上記大気圧データ等のデータを含めることとする。すなわち、メモリに記憶されるキーワードデータをこうした態様にて設定することで、このキーワードデータを読み出し、電子制御装置の有する情報に基づいてその妥当性を判断することが可能となる。 Further, keyword data that is data for diagnosing the state of data in the memory is not limited to the data exemplified in the above embodiment and its modifications, and is predetermined as, for example, information of the electronic control device. It is good also as the data which have the relationship. Here, “information” includes data such as the atmospheric pressure data. That is, by setting the keyword data stored in the memory in such a manner, it is possible to read out the keyword data and determine its validity based on information held by the electronic control device.
・上記実施形態では、複数用意されたキーワードデータ全ての妥当性の判断を行い、これら全てが妥当であると判断されたときにのみ大気圧データが妥当であると判断する処理を例示したが、これに限らない。例えば、複数のキーワードのうちの所定の数以上のキーワードについて妥当性が高いとされたときに、大気圧データが妥当であると判断してもよい。こうした判断基準は、大気圧データについて要求される信頼性の度合い等に基づいて適宜設定すればよい。 In the above embodiment, the process of determining the validity of all the prepared keyword data and exemplifying that the atmospheric pressure data is valid only when all of these are determined to be valid is exemplified. Not limited to this. For example, the atmospheric pressure data may be determined to be valid when the validity of a predetermined number or more of a plurality of keywords is high. Such determination criteria may be set as appropriate based on the degree of reliability required for atmospheric pressure data.
・上記実施形態では、キーワードデータの妥当性に基づいて妥当なものか否かの判断がなされるデータとして、大気圧データを例示したがこれに限らず、マイクロコンピュータ110内の所定の演算のためのデータである演算データであればよい。こうした演算データとしては、例えば、制御対象の個体差や経年変化等に起因して制御対象を目標に制御する際に生じる定常的なずれを補償するための値である学習値がある。この学習値としては、具体的には、空燃比フィードバック制御に際し目標空燃比と実際の空燃比との定常的なずれを補償するための値である空燃比学習値や、電子スロットルバルブの全閉制御に用いるもの等がある。また、上記演算データとしては、例えば触媒コンバータの温度を、内燃機関の運転状態及び運転環境の少なくとも一方に基づいて推定算出する際の逐次の算出値等でもよい。この演算データは、(イ)車両の運転状態及び運転環境の少なくとも一方の履歴に基づいて生成されるデータや、(ロ)時間の経過に伴って変化する量であって且つその過去の値が電子制御装置において要求されることのある量に関してのデータであることが望ましい。
In the above embodiment, the atmospheric pressure data is exemplified as the data for determining whether or not the data is valid based on the validity of the keyword data. However, the present invention is not limited to this, but for a predetermined calculation in the
・電子制御装置によってその運転が制御される車両としては、自動2輪車に限らない。 The vehicle whose operation is controlled by the electronic control device is not limited to a motorcycle.
・更に、内燃機関の運転を制御するものに限らず、例えばオートマティックトランスミッション(AT)の制御に用いる電子制御装置に、本発明を適用することもできる。 Furthermore, the present invention can be applied not only to the control of the operation of the internal combustion engine but also to an electronic control device used for controlling an automatic transmission (AT), for example.
・本実施形態では、上記所定の演算のためのデータである演算データを記憶するメモリとして、給電によりデータの保持機能を実現するメモリのうち、当該電子制御装置への給電状態に連動したかたちで給電がなされるメモリに本発明を適用したがこれに限らない。例えば、給電によりデータの保持機能を実現するメモリであって、且つ当該電子制御装置への給電の有無にかかわらず常時給電のなされているメモリであるバックアップメモリに本発明を適用してもよい。この場合であっても、リセットがなされるときに、バッテリからの給電状態が正常でないためにバックアップメモリに記憶されるデータの信頼性が低下していることが懸念される場合等には、本発明は有効である。 In the present embodiment, as a memory for storing calculation data that is data for the predetermined calculation, in a memory that realizes a data holding function by power supply, in a form linked with a power supply state to the electronic control device Although the present invention is applied to a memory to which power is supplied, the present invention is not limited to this. For example, the present invention may be applied to a backup memory that is a memory that realizes a data holding function by power feeding and that is constantly powered regardless of whether power is supplied to the electronic control device. Even in this case, when resetting is performed, there is a concern that the reliability of data stored in the backup memory is lowered because the power supply state from the battery is not normal. The invention is effective.
・メモリを備えて車両の運転を制御する電子制御装置の構成は、先の図1に例示したものに限られない。例えば、この電子制御装置がリセットを行なう機能を有する場合、リセットを行なう条件は、上記実施形態で例示したものに限らない。例えば始動時に限らず一般にノイズによりマイクロコンピュータが誤動作をする懸念のあるとき等、要は、電子制御装置の信頼性が低下する所定の条件であればよい。また、給電によりデータの保持機能を実現するメモリの所定の領域をクリアするクリア処理機能を有する場合、クリア処理を行なう条件は、上記実施形態で例示したものに限らず、要は、給電によりデータの保持機能を実現するメモリに記憶されているデータの信頼性が低下したと判断される所定の条件であればよい。すなわち、例えば、データの信頼性が低下したと判断される所定の条件を、リセットを行なう条件とは別に設けてもよい。この場合、給電によりデータの保持機能を実現するメモリの信頼性の低下を給電電圧の値でもって判断する際の閾値には、通常マージンが設けられることとなる。このため、たとえ給電電圧がこの閾値を下回ったことをもって上記メモリに記憶されているデータの信頼性が低下したと判断したとしても、実際には、データが正常に記憶されていることもあり得る。この点、本発明によれば、こうした場合であっても、キーワードデータを用いてメモリに記憶されているデータが妥当なものか否かを判断することで、このデータをより適切に使用することができるようになる。 The configuration of the electronic control device that includes the memory and controls the driving of the vehicle is not limited to that illustrated in FIG. For example, when the electronic control device has a function of resetting, the conditions for resetting are not limited to those exemplified in the above embodiment. For example, not only at the time of start-up, but generally when there is a concern that the microcomputer malfunctions due to noise, the essential point may be a predetermined condition that reduces the reliability of the electronic control unit. Further, in the case of having a clear processing function for clearing a predetermined area of a memory that realizes a data holding function by power supply, the conditions for performing the clear processing are not limited to those exemplified in the above embodiment, Any predetermined condition may be used as long as it is determined that the reliability of the data stored in the memory that realizes the holding function is reduced. That is, for example, a predetermined condition for determining that the reliability of data has decreased may be provided separately from the condition for resetting. In this case, a normal margin is provided for the threshold value for determining the decrease in the reliability of the memory that realizes the data holding function by the power supply by the value of the power supply voltage. For this reason, even if it is determined that the reliability of the data stored in the memory has decreased because the power supply voltage has fallen below the threshold, the data may actually be stored normally. . In this regard, according to the present invention, even in such a case, it is possible to use this data more appropriately by determining whether or not the data stored in the memory is valid using the keyword data. Will be able to.
ST…スタータモータ、B…バッテリ、100…電子制御装置、110…マイクロコンピュータ、114…RAM、114c…クリアされる領域、114k…クリアされない領域、120…電源回路、210…吸気圧センサ。 ST ... starter motor, B ... battery, 100 ... electronic control unit, 110 ... microcomputer, 114 ... RAM, 114c ... area to be cleared, 114k ... area not to be cleared, 120 ... power supply circuit, 210 ... intake pressure sensor.
Claims (10)
前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとを前記メモリに書き込むとともに、前記リセットからの復帰に際し、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断することを特徴とする電子制御装置。 In an electronic control device having a function of resetting the microcomputer while controlling the operation of the vehicle using a microcomputer provided with a memory that realizes a data holding function by power feeding,
The keyword data that is data for diagnosing the state of data in the memory and the operation data that is data for a predetermined operation are written into the memory, and the keyword is read from the memory upon return from the reset. An electronic control device characterized by reading data and determining whether or not the operation data stored in the memory is valid based on the validity of the keyword data.
前記リセットからの復帰に際し、前記メモリに記憶されているデータをクリアするクリア処理機能を有し、且つ前記メモリは、前記リセットに際してクリアされない記憶領域を備えるとともに、該クリアされない記憶領域に、前記キーワードデータと、前記演算データとを記憶するものであることを特徴とする電子制御装置。 The electronic control device according to claim 1,
When returning from the reset, the memory has a clear processing function for clearing data stored in the memory, and the memory includes a storage area that is not cleared at the time of the reset, and the keyword that is stored in the storage area that is not cleared An electronic control device for storing data and the calculation data.
前記メモリは、前記クリア処理機能によってクリアされない記憶領域を備えており、且つ前記クリアされない記憶領域に、前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとが書き込まれるものであり、
前記所定の条件が成立するとき、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断することを特徴とする電子制御装置。 A memory for realizing a data holding function by power supply is provided to control the driving of the vehicle, and when a predetermined condition is determined that the reliability of the data stored in the memory is lowered, the memory is stored in the memory. In an electronic control device having a clear processing function for clearing stored data,
The memory includes a storage area that is not cleared by the clear processing function, and keyword data that is data for diagnosing the state of data in the memory and a predetermined calculation in the storage area that is not cleared. The calculation data that is the data of
When the predetermined condition is satisfied, the keyword data is read from the memory, and it is determined whether or not the operation data stored in the memory is valid based on the validity of the keyword data. Electronic control device.
前記メモリ内のデータの状態を診断するためのデータであるキーワードデータと、所定の演算のためのデータである演算データとを前記メモリに書き込み、且つ当該電子制御装置への給電電圧が所定の値以下となるとき、前記メモリから前記キーワードデータを読み出し、該キーワードデータの妥当性に基づいて前記メモリに記憶されている演算データが妥当なものか否かを判断することを特徴とする電子制御装置。 In an electronic control device that controls driving of a vehicle with a memory that realizes a data holding function by power feeding,
The keyword data, which is data for diagnosing the state of data in the memory, and the operation data, which is data for a predetermined operation, are written to the memory, and the power supply voltage to the electronic control device is a predetermined value The electronic control device, wherein the keyword data is read from the memory and whether or not the operation data stored in the memory is valid based on the validity of the keyword data when: .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004305095A JP2006118386A (en) | 2004-10-20 | 2004-10-20 | Electronic control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004305095A JP2006118386A (en) | 2004-10-20 | 2004-10-20 | Electronic control unit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006118386A true JP2006118386A (en) | 2006-05-11 |
Family
ID=36536503
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004305095A Pending JP2006118386A (en) | 2004-10-20 | 2004-10-20 | Electronic control unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006118386A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008232063A (en) * | 2007-03-22 | 2008-10-02 | Toyota Motor Corp | Control system for internal combustion engine |
JP2008291713A (en) * | 2007-05-23 | 2008-12-04 | Toyota Motor Corp | Control device for intake system |
US8135533B2 (en) | 2007-01-15 | 2012-03-13 | Denso Corporation | Electronic engine control apparatus having improved configuration for ensuring excellent engine startability |
KR20140007592A (en) * | 2012-07-09 | 2014-01-20 | 콘티넨탈 오토모티브 시스템 주식회사 | Vehicle control method based verification result of controlled variable |
CN109828553A (en) * | 2019-02-26 | 2019-05-31 | 中国人民解放军空军工程大学航空机务士官学校 | A kind of air data computer detection system |
WO2022107183A1 (en) * | 2020-11-17 | 2022-05-27 | 三菱電機株式会社 | Memory diagnosis device, memory diagnosis method, and program |
-
2004
- 2004-10-20 JP JP2004305095A patent/JP2006118386A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135533B2 (en) | 2007-01-15 | 2012-03-13 | Denso Corporation | Electronic engine control apparatus having improved configuration for ensuring excellent engine startability |
JP2008232063A (en) * | 2007-03-22 | 2008-10-02 | Toyota Motor Corp | Control system for internal combustion engine |
JP2008291713A (en) * | 2007-05-23 | 2008-12-04 | Toyota Motor Corp | Control device for intake system |
KR20140007592A (en) * | 2012-07-09 | 2014-01-20 | 콘티넨탈 오토모티브 시스템 주식회사 | Vehicle control method based verification result of controlled variable |
CN109828553A (en) * | 2019-02-26 | 2019-05-31 | 中国人民解放军空军工程大学航空机务士官学校 | A kind of air data computer detection system |
WO2022107183A1 (en) * | 2020-11-17 | 2022-05-27 | 三菱電機株式会社 | Memory diagnosis device, memory diagnosis method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3851881B2 (en) | Device for diagnosing failure of temperature sensor of cooling water in internal combustion engine | |
JP4636118B2 (en) | Electronic device and program | |
JP5176728B2 (en) | Electronic control device for vehicle | |
JP5195738B2 (en) | Rotation sensor abnormality determination device | |
JP2008051014A (en) | Automatic start control device for internal combustion engine | |
JP4552982B2 (en) | Electronic control unit | |
JP2007113460A (en) | Engine start control device and engine start control method | |
JP2006118386A (en) | Electronic control unit | |
CN112128000A (en) | Vehicle heating method and electronic control unit | |
JP2010001021A (en) | Electronic control device | |
JP2007162586A (en) | On-vehicle control device | |
JP5335594B2 (en) | Automatic stop and start device for internal combustion engine | |
JP2544334B2 (en) | Idling speed control method | |
JP5516509B2 (en) | Program writing system | |
JP5667810B2 (en) | Control apparatus and control method | |
JP3991963B2 (en) | Vehicle control device | |
JP2002295346A (en) | Device and method for preventing overrun of vehicle starter | |
JPH04292545A (en) | Electronic control device for automobile | |
JP2001323836A (en) | Abnormality detection method for crank synchronous task | |
JP4270108B2 (en) | Engine control device | |
JP2006077660A (en) | Abnormality diagnostic device for rotation angle sensor | |
KR100196352B1 (en) | Obstacle-check control method of car speed sensor installed in diesel engine vehicle | |
US6837216B1 (en) | Electronic throttle control system | |
WO2023175654A1 (en) | Catalyst deterioration analysis device | |
JP2011121462A (en) | Vehicle control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061221 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081028 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081111 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081223 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090508 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090701 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090724 |