Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4357576B2 - Electronic control unit - Google Patents
[go: Go Back, main page]

JP4357576B2 - Electronic control unit - Google Patents

Electronic control unit Download PDF

Info

Publication number
JP4357576B2
JP4357576B2 JP2008112537A JP2008112537A JP4357576B2 JP 4357576 B2 JP4357576 B2 JP 4357576B2 JP 2008112537 A JP2008112537 A JP 2008112537A JP 2008112537 A JP2008112537 A JP 2008112537A JP 4357576 B2 JP4357576 B2 JP 4357576B2
Authority
JP
Japan
Prior art keywords
power supply
circuit
microprocessor
ignition switch
turned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008112537A
Other languages
Japanese (ja)
Other versions
JP2008180234A (en
JP2008180234A5 (en
Inventor
真吾 山口
将造 神崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2008112537A priority Critical patent/JP4357576B2/en
Publication of JP2008180234A publication Critical patent/JP2008180234A/en
Publication of JP2008180234A5 publication Critical patent/JP2008180234A5/ja
Application granted granted Critical
Publication of JP4357576B2 publication Critical patent/JP4357576B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Description

この発明は、例えば自動車の内燃機関の制御に使用される、データを保持する揮発性のメモリを備えた電子制御装置に関する。   The present invention relates to an electronic control device having a volatile memory for holding data, for example, used for controlling an internal combustion engine of an automobile.

内燃機関において、燃料噴射量や空気量、点火時期などのデータは、ばらつきや経年劣化により予め設定されているデータとの誤差が生じる。このような誤差は電子制御装置内のマイクロプロセッサによって演算され、演算結果を元に燃料噴射量や空気量等の誤差補正を行っている。そしてこのような誤差補正はマイクロプロセッサによって誤差補正データとして揮発性メモリとしての例えばRAMに記憶され、イグニッションスイッチがオフであってバッテリから主電源回路を介して給電されていない状態であっても、RAMはバッテリから副電源回路を介して常時給電されているため誤差補正データは保持される。   In an internal combustion engine, data such as the fuel injection amount, the air amount, and the ignition timing cause an error from preset data due to variations and aging deterioration. Such errors are calculated by a microprocessor in the electronic control unit, and errors such as the fuel injection amount and the air amount are corrected based on the calculation results. Such error correction is stored as error correction data by a microprocessor in, for example, a RAM as a volatile memory, and even when the ignition switch is off and power is not supplied from the battery via the main power supply circuit, Since the RAM is always supplied with power from the battery via the sub power supply circuit, the error correction data is held.

内燃機関に使用されているアクチュエータやセンサ等の故障状況はマイクロプロセッサにより監視し、故障と判断すると故障データをRAMに記憶する。   The failure status of the actuators and sensors used in the internal combustion engine is monitored by a microprocessor, and when it is determined that there is a failure, the failure data is stored in the RAM.

電子制御装置に給電するバッテリは劣化等の理由により交換される場合がある。また、RAMに記憶した故障データを初期化するためにバッテリを取り外すこともある。バッテリから副電源回路を介しての給電が停止された時、給電が停止されている時間によっては消去が不十分な状態となるためRAMに記憶された誤差補正データや故障データは不定値となる。不定値となった誤差補正データや故障データを用いて内燃機関の制御を実施すると、排気ガスの悪化や、ドライバビリティの悪化が発生する。従ってバッテリを再取り付け後に、イグニッションスイッチがオンされる時、マイクロプロセッサでRAMの初期化を行う必要がある。   The battery that supplies power to the electronic control device may be replaced for reasons such as deterioration. Also, the battery may be removed to initialize the failure data stored in the RAM. When power supply from the battery via the sub power supply circuit is stopped, the error correction data and failure data stored in the RAM become indefinite values because the erasure is insufficient depending on the time during which the power supply is stopped. . When control of the internal combustion engine is performed using error correction data and failure data that have become indefinite values, exhaust gas deterioration and drivability deterioration occur. Therefore, when the ignition switch is turned on after the battery is reinstalled, the RAM must be initialized by the microprocessor.

たとえば、特許文献1では、制御データと、制御データの反転したデータとを1組のデータとしてRAMに記憶し、バッテリからの副電源回路を介しての給電が停止された時、給電が停止されている時間によっては消去が不十分な状態となるため、RAMに記憶された誤差補正データは不定値となり、制御データと反転データの反転値が等しくならないことを用いてRAMを初期化する条件としている。   For example, in Patent Document 1, the control data and the inverted data of the control data are stored in the RAM as a set of data, and the power supply is stopped when the power supply from the battery via the sub power supply circuit is stopped. As the condition for initializing the RAM by using the fact that the error correction data stored in the RAM becomes an indefinite value and the inversion value of the control data and the inversion data is not equal because the erasure becomes insufficient depending on the period of time. Yes.

特開平6−250940号公報JP-A-6-250940

上記のような電子制御装置のRAMの初期化判定条件を用いると、バッテリを取り外した際にRAMに記憶された一部のデータのみが不定値となった場合に、制御データと反転データの反転値が等しくなる可能性があり、RAMの初期化が行われず、排気ガスの悪化や、ドライバビリティの悪化するような制御データとなっている可能性があった。   When using the RAM initialization judgment condition as described above, when only a part of the data stored in the RAM becomes indefinite when the battery is removed, the control data and the inverted data are inverted. There is a possibility that the values are equal, and the RAM is not initialized, and there is a possibility that the control data may cause exhaust gas deterioration or drivability deterioration.

また、制御データとともに反転データも記憶する容量が必要となるため、RAMの必要な記憶容量が2倍になってしまっていた。   Further, since the capacity for storing the inverted data as well as the control data is required, the required storage capacity of the RAM has been doubled.

また、制御データと反転データの反転値を比較する処理はイグニッションスイッチをオンした後の内燃機関を始動する前に必要なので、RAMの全領域のデータを比較する必要がある場合もあり、内燃機関が始動可能な状態になるまでに時間を要する場合があった。   Further, since the process of comparing the inverted value of the control data and the inverted data is necessary before starting the internal combustion engine after turning on the ignition switch, it may be necessary to compare the data in the entire area of the RAM. In some cases, it took time for the to start.

この発明は、余分なメモリ容量や時間を必要とせず、速やかに揮発性メモリの初期化の要否を判定する電子制御装置を提供することを目的とする。特に、揮発性メモリへ給電が開始された後の最初のマイクロプロセッサの動作開始時にのみ揮発性メモリの初期化を行うようにしたり、また揮発性メモリへの給電状態に基づき揮発性メモリの初期化の要否を判定するようにした。   An object of the present invention is to provide an electronic control device that quickly determines whether or not a volatile memory needs to be initialized without requiring extra memory capacity or time. In particular, initialization of the volatile memory is performed only when the first microprocessor starts operating after the power supply to the volatile memory is started, or the initialization of the volatile memory is performed based on the power supply state to the volatile memory. Judgment was made on the necessity.

この発明は、バッテリからイグニッションスイッチによって応動する開閉素子と主電源回路を介して給電されて動作するマイクロプロセッサと、上記主電源回路を介して給電されると共に上記バッテリから副電源回路を介して常時給電され、主電源回路から給電されない状態であっても副電源回路からの給電によりデータが保持されて、更新されるデータを一時記憶する揮発性メモリと、を備えた電子制御装置であって、上記バッテリから上記副電源回路を介して上記揮発性メモリへ給電が行われた後の、上記イグニッションスイッチの1回目のオンであることを示す初回起動信号を発生する初回起動信号発生手段と、上記バッテリと上記副電源回路との接続点にバッテリ配線断線検出回路を有し、上記イグニッションスイッチがオンされて上記マイクロプロセッサに上記主電源回路から給電がある状態で、上記バッテリから上記副電源回路を介して上記揮発性メモリへ給電が行われていないことを上記バッテリ配線断線検出回路を通じ検出した場合に副電源給電異常信号を発生する副電源給電異常信号発生手段と、上記初回起動信号に従って、上記揮発性メモリへ給電が行われた後の上記イグニッションスイッチの1回目のオン時に上記揮発性メモリの初期化を行う第1の揮発性メモリ初期化手段と、上記イグニッションスイッチがオンされて上記マイクロプロセッサに上記主電源回路から給電が開始された時に、上記副電源給電異常信号が発生されていれば、上記初回起動信号の状態を無視して上記揮発性メモリの初期化を行う第2の揮発性メモリ初期化手段と、上記副電源給電異常信号に基づきユーザへ警告を発生する副電源給電異常警告手段と、を備え、上記初回起動信号発生手段は上記イグニッションスイッチがオフしている状態で、上記副電源の給電が一旦切られてから再接続され、その後に上記イグニッションスイッチが再びオンしたことを示す第1レベルにより1回目のオンであることを記憶し、その後この記憶に基づき上記マイクロプロセッサに上記初回起動信号となる信号を発生し、上記第1レベルを第2レベルとすることにより2回目以降と判断できるように動作するラッチ手段を有し、上記第1の揮発性メモリ初期化手段は上記初回起動信号に基づいて上記揮発性メモリの初期化を行い、上記イグニッションスイッチがオンしている状態で、上記マイクロプロセッサが上記副電源給電異常信号発生手段の発生する副電源給電異常信号に従い、上記副電源給電異常と判定した場合に、上記第2の揮発性メモリ初期化手段を動作させない初期化禁止手段をさらに備え、上記副電源給電異常警告手段が、上記初期化禁止手段により上記第2の揮発性メモリ初期化手段を動作させない場合にも、上記イグニッションスイッチがオンされている状態での上記副電源給電異常信号に基づき、ユーザへ警告を発生し、上記初回起動信号発生手段は上記ラッチ手段を構成するラッチ回路と判定回路とラッチセット回路によって構成され、上記ラッチ回路は上記イグニッションスイッチがオフしている状態で、上記バッテリの接続が一旦切られてから再接続され、その後に上記イグニッションスイッチが再びオンしたときに出力信号が上記第1レベルのリセット状態となる記憶回路であり、上記判定回路は上記記憶回路の出力信号の論理レベルを判定して上記マイクロプロセッサに上記初回起動信号となる判定信号を入力する回路であり、上記ラッチセット回路は上記マイクロプロセッサが発生したセット指令信号によって、上記ラッチ回路に対してセット信号を供給して上記第2レベルの出力信号にする回路であり、上記第1の揮発性メモリ初期化手段は上記ラッチ回路と判定回路を介して入力された上記初回起動信号に基づいて上記揮発性メモリの初期化を行ってから、上記ラッチセット回路を介して上記ラッチ回路をセットし、上記初期化禁止手段は、上記副電源給電異常信号発生手段が発生する副電源給電異常信号に従い、上記マイクロプロセッサが副電源給電異常信号と判定した時に、上記イグニッションスイッチがオンした直後の初回動作では上記第2の揮発性メモリ初期化手段が有効とし、上記イグニッションスイッチがオンしている状態で上記副電源給電異常信号が発生した場合には上記第2の揮発性メモリ初期化手段を動作させないことを特徴とする電子制御装置にある。
The present invention provides an open / close element that is actuated by an ignition switch from a battery, a microprocessor that is supplied with power through a main power supply circuit, and a power that is supplied through the main power supply circuit and is always supplied from the battery through a sub power supply circuit. An electronic control device comprising: a volatile memory that temporarily stores data that is supplied and supplied with power from the sub power supply circuit even when the power is supplied and not supplied from the main power supply circuit; An initial activation signal generating means for generating an initial activation signal indicating that the ignition switch is turned on for the first time after power is supplied from the battery to the volatile memory via the sub power supply circuit; A battery wire disconnection detection circuit is provided at the connection point between the battery and the sub power circuit, and the ignition switch is turned on. When the microprocessor is supplied with power from the main power supply circuit and the battery wiring disconnection detection circuit detects that power is not supplied from the battery to the volatile memory via the secondary power supply circuit. Sub-power supply abnormality signal generating means for generating a power supply abnormality signal, and initialization of the volatile memory when the ignition switch is turned on for the first time after power is supplied to the volatile memory in accordance with the initial activation signal. A first volatile memory initialization means for performing the above-described operation, and if the secondary power supply abnormality signal is generated when the ignition switch is turned on and the power supply to the microprocessor is started from the main power supply circuit, Second volatile memory initializing means for initializing the volatile memory ignoring the state of the initial activation signal, and the sub power supply Sub power supply abnormality warning means for generating a warning to the user based on the abnormality signal, and the initial activation signal generating means is in a state where the power supply of the sub power supply is once turned off in a state where the ignition switch is turned off. A first level indicating that the ignition switch is turned on again after the reconnection is stored. Then, the first on is memorized based on this memory, and then the first start signal is generated in the microprocessor based on this memorization. The first volatile memory initialization means has a latch means that operates so that it can be determined as the second or later time by setting the first level to the second level, and the first volatile memory initialization means is volatile based on the initial activation signal. When the memory is initialized and the ignition switch is on, the microprocessor generates the sub power supply abnormal signal. The sub-power supply abnormality warning means further includes an initialization prohibiting means that does not operate the second volatile memory initialization means when the sub-power supply abnormality is determined according to the sub-power supply abnormality signal generated by the means. However, even when the second volatile memory initialization unit is not operated by the initialization prohibition unit, a warning is generated to the user based on the sub power supply power supply abnormality signal with the ignition switch turned on. The initial activation signal generating means includes a latch circuit, a determination circuit, and a latch set circuit that constitute the latch means. The latch circuit temporarily disconnects the battery while the ignition switch is off. And then the output signal is reset to the first level when the ignition switch is turned on again. The determination circuit is a circuit for determining the logic level of the output signal of the storage circuit and inputting the determination signal to be the initial activation signal to the microprocessor, and the latch set circuit is A circuit for supplying a set signal to the latch circuit according to a set command signal generated by the microprocessor to generate an output signal of the second level, wherein the first volatile memory initialization means is the latch circuit; The initialization of the volatile memory is performed based on the initial activation signal input through the determination circuit, and then the latch circuit is set through the latch set circuit. In accordance with the sub power supply power supply abnormality signal generated by the sub power supply power supply abnormality signal generating means, when the microprocessor determines that it is a sub power supply power supply abnormality signal, In the initial operation immediately after the ignition switch is turned on, the second volatile memory initialization means is valid, and when the sub power supply power supply abnormality signal is generated with the ignition switch turned on, the second volatile memory initialization means is activated. The electronic control device is characterized in that the volatile memory initialization means is not operated .

この発明では、余分なメモリ容量や時間を必要とせずに、速やかに揮発性メモリの初期化の要否を判定する。特に、揮発性メモリへ給電が開始された後の最初のイグニッションスイッチがオンされてマイクロプロセッサが動作を開始した時にのみ、揮発性メモリの初期化を行うようにしたり、また揮発性メモリへの給電状態に基づき揮発性メモリの初期化の要否を判定したことにより、揮発性メモリの初期化の効率化が図られた。   In the present invention, the necessity of initializing the volatile memory is quickly determined without requiring extra memory capacity or time. In particular, the volatile memory may be initialized only when the first ignition switch after the power supply to the volatile memory is started and the microprocessor starts to operate, or the power supply to the volatile memory. By determining the necessity of initialization of the volatile memory based on the state, the initialization of the volatile memory was made more efficient.

実施の形態1.
図1はこの発明による電子制御装置を設けた内燃機関の制御系の概略構成図である。内燃機関1において、吸気管131を介して吸入される空気はエアークリーナ130により浄化され、スロットル132により空気量が調整される。この吸入される空気量は吸気管131内に設置された圧力センサ112によって検出される。また、スロットル132の開度を検出するスロットル開度センサ113と、内燃機関1の回転角を検出する内燃機関回転角検出センサ114と、圧力センサ112との検出信号が電子制御装置100に入力され、内燃機関1の状態を認識し、内燃機関1に供給する燃料噴射量を調整する燃料噴射用インジェクタ120や点火装置121が制御される。
Embodiment 1 FIG.
FIG. 1 is a schematic configuration diagram of a control system of an internal combustion engine provided with an electronic control device according to the present invention. In the internal combustion engine 1, the air sucked through the intake pipe 131 is purified by the air cleaner 130 and the air amount is adjusted by the throttle 132. The amount of air sucked is detected by a pressure sensor 112 installed in the intake pipe 131. Detection signals from a throttle opening sensor 113 that detects the opening of the throttle 132, an internal combustion engine rotation angle detection sensor 114 that detects the rotation angle of the internal combustion engine 1, and a pressure sensor 112 are input to the electronic control unit 100. The fuel injection injector 120 and the ignition device 121 that recognize the state of the internal combustion engine 1 and adjust the fuel injection amount supplied to the internal combustion engine 1 are controlled.

電子制御装置100は内燃機関1の制御ばらつきを押さえるため、予め記憶しているデータを基に制御ばらつき量の補正データを記憶する機能を有する。また、電子制御装置100は内燃機関1の状態や、圧力センサ112やスロットル開度センサ113等のセンサの故障の判定も行なっており、その故障情報や内燃機関1の状態を警告装置127やサービス用テスタ128を介して外部のユーザ等に伝達する。補正データや故障情報は電子制御装置100内に保持される。さらに電子制御装置100は電源リレー103やイグニッションスイッチ104を介してバッテリ101より給電される。電子制御装置100の符号を付けた各端子は図2のものに対応する。   The electronic control device 100 has a function of storing correction data for the amount of control variation based on data stored in advance in order to suppress control variation of the internal combustion engine 1. The electronic control device 100 also determines the state of the internal combustion engine 1 and the failure of sensors such as the pressure sensor 112 and the throttle opening sensor 113, and the failure information and the state of the internal combustion engine 1 are notified to the warning device 127 and service. This is transmitted to an external user or the like via the tester 128. Correction data and failure information are held in the electronic control unit 100. Further, the electronic control unit 100 is supplied with power from the battery 101 via the power relay 103 and the ignition switch 104. Each terminal which attached | subjected the code | symbol of the electronic controller 100 respond | corresponds to the thing of FIG.

図2は電子制御装置100の構成の一例を示すものである。電子制御装置100にはバッテリ101が、このバッテリ101から常時給電される副電源端子102において接続され、副電源端子102は副電源回路124とダイオード125を介してマイクロプロセッサ200のRAM保持電源端子311に接続されている。   FIG. 2 shows an example of the configuration of the electronic control device 100. A battery 101 is connected to the electronic control unit 100 at a secondary power supply terminal 102 that is constantly supplied with power from the battery 101. The secondary power supply terminal 102 is connected to a RAM holding power supply terminal 311 of the microprocessor 200 via a secondary power supply circuit 124 and a diode 125. It is connected to the.

電子制御装置100にはまた、バッテリ101がイグニッションスイッチ104を介して端子401において接続され、端子401は電流制限抵抗111とダイオード106とを介してトランジスタ109のベースに接続され、トランジスタ109のコレクタは端子105aを介して電源リレー103の電磁コイル103aの一端に接続されていて、電磁コイル103aの他端はバッテリ101に接続されている。トランジスタ109のエミッタは接地されている。イグニッションスイッチ104をオンすることによりトランジスタ109のベースに給電が行われると、電磁コイル103aからトランジスタ109のコレクタに電流が流れて、電源リレー103の開閉素子103bはオン(閉じる)する。開閉素子103bは一端がバッテリ101、他端が主電源端子105に接続され、主電源端子105は主電源回路122を介してマイクロプロセッサ200のVcc端子に接続され、開閉素子103bがオンすることでバッテリ101からマイクロプロセッサ200に給電されてマイクロプロセッサ200は動作を開始する。   The electronic control device 100 is also connected to the battery 101 at the terminal 401 via the ignition switch 104. The terminal 401 is connected to the base of the transistor 109 via the current limiting resistor 111 and the diode 106, and the collector of the transistor 109 is The terminal 105 a is connected to one end of the electromagnetic coil 103 a of the power relay 103, and the other end of the electromagnetic coil 103 a is connected to the battery 101. The emitter of the transistor 109 is grounded. When power is supplied to the base of the transistor 109 by turning on the ignition switch 104, a current flows from the electromagnetic coil 103a to the collector of the transistor 109, and the switching element 103b of the power supply relay 103 is turned on (closed). The open / close element 103b has one end connected to the battery 101 and the other end connected to the main power supply terminal 105. The main power supply terminal 105 is connected to the Vcc terminal of the microprocessor 200 via the main power supply circuit 122, and the open / close element 103b is turned on. Power is supplied from the battery 101 to the microprocessor 200, and the microprocessor 200 starts its operation.

また、マイクロプロセッサ200が正しく動作している時に端子312より発生するWD信号により、ウォッチドッグタイマ(WDT)回路107は”Hi(H)”レベルを出力し(OUTE信号)、電流制限抵抗110とダイオード108を介してトランジスタ109のベースに”Hi”レベル信号が供給される。従って電磁コイル103aからトランジスタ109のコレクタに電流が流れて、電源リレー103の開閉素子103bはオンする。従ってマイクロプロセッサ200が正しく動作していればイグニッションスイッチ104がオフされてもマイクロプロセッサ200への給電は維持される。そしてイグニッションスイッチ104がオフになったことを示すイグニッションスイッチ信号がデジタル入力I/F(インターフェイス)115を介してマイクロプロセッサ200の端子313に入力されると、マイクロプロセッサ200はイグニッションスイッチ104がオフになったことを認識する。そしてマイクロプロセッサ200のCPU200cは動作停止処理を行い、動作停止処理終了時にWD信号が停止されてウォッチドッグタイマ(WDT)回路107の出力が”Lo(L)”レベルになると、開閉素子103bはオフ(開放)して、主電源端子105を介しての給電は停止される。   Also, the watchdog timer (WDT) circuit 107 outputs a “Hi (H)” level (OUTE signal) by the WD signal generated from the terminal 312 when the microprocessor 200 is operating correctly, and the current limiting resistor 110 and A “Hi” level signal is supplied to the base of the transistor 109 via the diode 108. Therefore, a current flows from the electromagnetic coil 103a to the collector of the transistor 109, and the switching element 103b of the power supply relay 103 is turned on. Therefore, if the microprocessor 200 is operating correctly, the power supply to the microprocessor 200 is maintained even when the ignition switch 104 is turned off. When an ignition switch signal indicating that the ignition switch 104 is turned off is input to the terminal 313 of the microprocessor 200 via the digital input I / F (interface) 115, the microprocessor 200 turns off the ignition switch 104. Recognize that Then, the CPU 200c of the microprocessor 200 performs an operation stop process, and when the operation stop process ends, when the WD signal is stopped and the output of the watchdog timer (WDT) circuit 107 becomes the "Lo (L)" level, the switching element 103b is turned off. (Open), and power supply via the main power supply terminal 105 is stopped.

電子制御装置100はバッテリ101とこれにより常時給電される副電源端子102でも接続されて、副電源回路124とダイオード125を介してマイクロプロセッサ200のRAM保持電源端子311に給電がされていれば、開閉素子103bの状態に関わらず、補正データや故障情報のような更新される回数の多いデータがマイクロプロセッサ200内の揮発性メモリとしての例えばRAM200bに一時記憶される。   The electronic control unit 100 is also connected to the battery 101 and the secondary power supply terminal 102 that is constantly supplied with power, and if power is supplied to the RAM holding power supply terminal 311 of the microprocessor 200 via the secondary power supply circuit 124 and the diode 125, Regardless of the state of the open / close element 103b, data that is frequently updated, such as correction data and failure information, is temporarily stored in, for example, the RAM 200b as a volatile memory in the microprocessor 200.

主電源回路122からマイクロプロセッサ200のVcc端子に給電されている場合は、ダイオード123を介してRAM保持電源端子311にも給電される。尚、ダイオード123、125はトランジスタの論理回路などを用いて構成してもよい。また、マイクロプロセッサ200の内部に示されているRAM200bは、RAM保持電源端子311と同様の端子を有するRAM(破線で示す)をマイクロプロセッサ200の外部に接続するようにしてもよい。   When power is supplied from the main power supply circuit 122 to the Vcc terminal of the microprocessor 200, power is also supplied to the RAM holding power supply terminal 311 via the diode 123. The diodes 123 and 125 may be configured using a logic circuit of a transistor. The RAM 200b shown inside the microprocessor 200 may connect a RAM (shown by a broken line) having the same terminal as the RAM holding power supply terminal 311 to the outside of the microprocessor 200.

ラッチ回路201(201a〜201d、300を含む)において、副電源端子102に接続された電流制限抵抗201aはトランジスタ201bのエミッタに接続され、トランジスタ201bのベースはトランジスタ201dのコレクタに接続され、トランジスタ201bのコレクタはトランジスタ201dのベースに接続され、トランジスタ201dのベースにはさらに電流制限抵抗201cが接続され、トランジスタ201dのエミッタは接地されている。そして電流制限抵抗201cに給電が行われれば、電流制限抵抗201cへの給電停止後も、トランジスタ201bと201dはオン状態となり、電流制限抵抗201aを介してトランジスタ201bのエミッタに流れる電流が遮断するまで、トランジスタ201bとトランジスタ201dのオン状態を維持し、ラッチポイント300が”Lo”レベルに保持される。   In the latch circuit 201 (including 201a to 201d and 300), the current limiting resistor 201a connected to the sub power supply terminal 102 is connected to the emitter of the transistor 201b, the base of the transistor 201b is connected to the collector of the transistor 201d, and the transistor 201b The collector of the transistor 201d is connected to the base of the transistor 201d, the current limiting resistor 201c is further connected to the base of the transistor 201d, and the emitter of the transistor 201d is grounded. If power is supplied to the current limiting resistor 201c, the transistors 201b and 201d are turned on even after the power supply to the current limiting resistor 201c is stopped until the current flowing through the emitter of the transistor 201b through the current limiting resistor 201a is cut off. The transistor 201b and the transistor 201d are kept on, and the latch point 300 is held at the “Lo” level.

ラッチセット回路203(203a〜203dを含む)において、マイクロプロセッサ200の端子314から出力A303が電流制限抵抗203dを介してトランジスタ203cのベースに接続され、トランジスタ203cのコレクタが電流制限抵抗203bを介してトランジスタ203aのベースに接続され、トランジスタ203cのエミッタは接地されている。トランジスタ203aのコレクタはラッチ回路201の電流制限抵抗201cに接続され、トランジスタ203aのエミッタは主電源回路122に接続されている。マイクロプロセッサ200の端子314からの出力A303が”Hi”レベルを示すとトランジスタ203cと203aは共にオンし、これにより主電源回路122からラッチ回路201の電流制限抵抗201cに給電を行う。   In the latch set circuit 203 (including 203a to 203d), the output A303 from the terminal 314 of the microprocessor 200 is connected to the base of the transistor 203c via the current limiting resistor 203d, and the collector of the transistor 203c is connected via the current limiting resistor 203b. It is connected to the base of the transistor 203a, and the emitter of the transistor 203c is grounded. The collector of the transistor 203 a is connected to the current limiting resistor 201 c of the latch circuit 201, and the emitter of the transistor 203 a is connected to the main power supply circuit 122. When the output A303 from the terminal 314 of the microprocessor 200 indicates the “Hi” level, the transistors 203c and 203a are both turned on, thereby supplying power from the main power supply circuit 122 to the current limiting resistor 201c of the latch circuit 201.

ラッチ回路201のトランジスタ201bのエミッタであるラッチポイント300は、副電源端子102から給電されている時にラッチセット回路203により”Lo”レベルにされれば、副電源端子102から給電されている限り”Lo”レベルを維持する。   The latch point 300, which is the emitter of the transistor 201b of the latch circuit 201, is set to “Lo” level by the latch set circuit 203 when power is supplied from the sub power supply terminal 102, so long as power is supplied from the sub power supply terminal 102. Maintain the Lo ”level.

判定回路202(202a〜202dを含む)において、トランジスタ202cのベースには電流制限抵抗202aを介してラッチ回路201のラッチポイント300が接続され、またトランジスタ202cのベース−エミッタ間には電圧分圧抵抗202bが接続され、さらにトランジスタ202cのエミッタは接地されている。トランジスタ202cのコレクタは電位固定抵抗202dの一端およびマイクロプロセッサ200の入力A301の端子315に接続されている。また電位固定抵抗202dの他端は主電源回路122に接続されている。そして主電源回路122が給電状態でラッチポイント300が”Lo”であれば、マイクロプロセッサ200の入力A301は”Hi”レベルとなり、ラッチポイント300が”Hi”であればマイクロプロセッサ200の入力A301は”Lo”レベルとなる。   In the determination circuit 202 (including 202a to 202d), the latch point 300 of the latch circuit 201 is connected to the base of the transistor 202c via the current limiting resistor 202a, and the voltage dividing resistor is connected between the base and emitter of the transistor 202c. 202b is connected, and the emitter of the transistor 202c is grounded. The collector of the transistor 202c is connected to one end of the potential fixing resistor 202d and the terminal 315 of the input A301 of the microprocessor 200. The other end of the potential fixing resistor 202d is connected to the main power supply circuit 122. If the main power supply circuit 122 is in a power supply state and the latch point 300 is “Lo”, the input A301 of the microprocessor 200 is at “Hi” level, and if the latch point 300 is “Hi”, the input A301 of the microprocessor 200 is “Lo” level.

バッテリ配線断線検出回路204(204a〜204cを含む)において、バッテリ101が副電源端子102を介して電流制限抵抗204aの一端に接続され、電流制限抵抗204aの他端はトランジスタ204cのベースに接続され、トランジスタ204cのコレクタはマイクロプロセッサ200の入力B302が入力される端子316と電位固定抵抗204bの一端とに接続され、電位固定抵抗204bの他端は主電源回路122に接続される。イグニッションスイッチ104をオンして主電源回路122が給電をしている状態で、バッテリ101が副電源端子102を介して電流制限抵抗204aに給電している時は、マイクロプロセッサ200の入力B302は”Lo”となり、バッテリ101が副電源端子102を介して電流制限抵抗204aに給電していない時はマイクロプロセッサ200の入力B302は”Hi”となり、副電源供給異常が判定できるようになっている。尚、電流制限抵抗204aの接続元は副電源回路124とダイオード125の間でもかまわない。   In the battery wiring disconnection detection circuit 204 (including 204a to 204c), the battery 101 is connected to one end of the current limiting resistor 204a via the sub power supply terminal 102, and the other end of the current limiting resistor 204a is connected to the base of the transistor 204c. The collector of the transistor 204c is connected to the terminal 316 to which the input B302 of the microprocessor 200 is input and one end of the potential fixing resistor 204b, and the other end of the potential fixing resistor 204b is connected to the main power supply circuit 122. When the ignition switch 104 is turned on and the main power supply circuit 122 is supplying power and the battery 101 is supplying power to the current limiting resistor 204a via the sub power supply terminal 102, the input B302 of the microprocessor 200 is " When the battery 101 is not supplying power to the current limiting resistor 204a via the sub power supply terminal 102, the input B302 of the microprocessor 200 is set to "Hi" so that the sub power supply abnormality can be determined. The connection source of the current limiting resistor 204a may be between the sub power supply circuit 124 and the diode 125.

さらに外部のスロットル開度センサ113、圧力センサ112、内燃機関回転角検出センサ114が、電子制御装置100の端子402〜404、アナログ入力I/F116、117、デジタル入力I/F118を介してマイクロプロセッサ200の端子317〜319にそれぞれに接続され、スロットル開度センサ信号、圧力センサ信号、内燃機関回転角検出センサ信号を入力する(アナログ信号はマイクロプロセッサ200内でA/D変換されて使用される)。また、外部の燃料噴射用インジェクタ120、点火装置121、警告装置127を、マイクロプロセッサ200の端子320〜322からのインジェクション信号出力304、点火信号出力305、警告信号出力306によりそれぞれ、電流制限抵抗120a、121a、127a、トランジスタ120b、121b、127b、電子制御装置100の端子406〜408を介して制御する。また、マイクロプロセッサ200の端子323と電子制御装置100の端子409間の通信I/F128aを介してサービス用テスタ128と通信を行い、さらにマイクロプロセッサ200の端子324には書き換え可能なROM126が接続されている。   Further, an external throttle opening sensor 113, a pressure sensor 112, and an internal combustion engine rotation angle detection sensor 114 are connected to the microprocessor via terminals 402 to 404, analog input I / Fs 116 and 117, and digital input I / F 118 of the electronic control unit 100. 200 is connected to terminals 317 to 319, respectively, and inputs a throttle opening sensor signal, a pressure sensor signal, and an internal combustion engine rotation angle detection sensor signal (analog signals are used after being A / D converted in the microprocessor 200) ). The external fuel injector 120, the ignition device 121, and the warning device 127 are connected to the current limiting resistor 120a by the injection signal output 304, the ignition signal output 305, and the warning signal output 306 from the terminals 320 to 322 of the microprocessor 200, respectively. , 121a, 127a, transistors 120b, 121b, 127b, and terminals 406 to 408 of the electronic control device 100. Further, communication is performed with the service tester 128 via a communication I / F 128 a between the terminal 323 of the microprocessor 200 and the terminal 409 of the electronic control device 100, and a rewritable ROM 126 is connected to the terminal 324 of the microprocessor 200. ing.

この発明は、バッテリ101からイグニッションスイッチ104によって応動する開閉素子103bと主電源回路122を介して給電されて動作するマイクロプロセッサ200と、バッテリ101から副電源回路124を介して常時給電され、更新される回数の多いデータを一時記憶する不揮発性のRAM200bとを備え、主電源回路122から給電されていない状態であっても副電源回路124からの給電によってRAM200bのデータが保持される電子制御装置100に関するものである。このような構成の装置の場合、バッテリ101が取り外されてしまうと、その間はRAM200bにおける消去が不十分な状態となることが起こり得る。このような不十分なデータの消去はデータを不確定なものにする。そこでこのような不確定なRAM200bのデータを制御に用いないようにするために、バッテリ101を副電源回路124に接続し、RAM200bに給電が行われた後のイグニッションスイッチ104の1回目のオンと2回目以降のオンとを判別するための初回起動信号(1回目のオンを示す)を発生するようにし、マイクロプロセッサ200の起動時に、RAMの初期化を行なうか否かの判定を行うためにこの初回起動信号を用いるようにした。そしてマイクロプロセッサ200は、RAM200bに給電が行われた後のイグニッションスイッチ104の1回目のオンであれば、RAMの初期化を行なうようにした。   In the present invention, the switching element 103b that is actuated by the ignition switch 104 from the battery 101 and the microprocessor 200 that is powered and operated via the main power circuit 122, and the battery 101 that is constantly powered and updated via the sub power circuit 124 are updated. The electronic control device 100 includes a nonvolatile RAM 200b that temporarily stores data with a large number of times, and holds data in the RAM 200b by power supply from the sub power circuit 124 even when power is not supplied from the main power circuit 122. It is about. In the case of an apparatus having such a configuration, if the battery 101 is removed, the erasure in the RAM 200b may be insufficient during that time. Such insufficient erasure of data makes the data indeterminate. Therefore, in order not to use such uncertain data in the RAM 200b for control, the battery 101 is connected to the sub power supply circuit 124, and the ignition switch 104 is turned on for the first time after the power is supplied to the RAM 200b. In order to determine whether or not to initialize the RAM when the microprocessor 200 is started so as to generate an initial activation signal (indicating the first on) for determining whether or not the second and subsequent times are on. This initial activation signal is used. The microprocessor 200 initializes the RAM if the ignition switch 104 is turned on for the first time after power is supplied to the RAM 200b.

初回起動信号の発生に関し、バッテリ101が副電源端子102に接続されて副電源回路124から給電が行われるようになってからイグニッションスイッチ104の1回目のオンでは、マイクロプロセッサ200の入力A301は”Lo”レベルであり、イグニッションスイッチ104の1回目のオンの時にマイクロプロセッサ200によりラッチポイント300を”Lo”レベルにさせた後のイグニッションスイッチ104の2回目以降のオンでは、マイクロプロセッサ200の入力A301は”Hi”レベルになり、マイクロプロセッサ200が、副電源端子102からバッテリ101により給電が行われてからイグニッションスイッチ104の1回目のオンか2回目以降のオンかを、マイクロプロセッサ200への入力A301(初回起動信号)のレベルが異なることにより認識できるようにしたものである。1回目のオンを示す初回起動信号は、入力A301が”Lo”レベルの信号となる。   Regarding the generation of the initial activation signal, when the ignition switch 104 is turned on for the first time after the battery 101 is connected to the sub power terminal 102 and power is supplied from the sub power circuit 124, the input A301 of the microprocessor 200 is " When the ignition switch 104 is at the “Lo” level, and the ignition switch 104 is turned on for the first time after the latch point 300 is set to the “Lo” level when the ignition switch 104 is turned on for the first time, the input A301 of the microprocessor 200 is turned on. Becomes “Hi” level, and the microprocessor 200 inputs to the microprocessor 200 whether the ignition switch 104 is turned on for the first time or after the second time after the power is supplied from the sub power supply terminal 102 by the battery 101. A301 (first time It can be recognized when the level of the activation signal is different. The initial activation signal indicating the first ON is a signal whose input A301 is at the “Lo” level.

またこの発明は、イグニッションスイッチ104がオンされてマイクロプロセッサ200に主電源回路122から給電がある状態で、バッテリ101から副電源回路124を介して給電されていない状態(副電源回路124にバッテリ101が接続されていない状態)を示す副電源給電異常信号を発生するようにし、これに従ってRAMの初期化を行なったり、警告の発生を行ったりする。   In the present invention, the ignition switch 104 is turned on and the microprocessor 200 is supplied with power from the main power supply circuit 122, but is not supplied with power from the battery 101 via the sub power supply circuit 124 (the battery 101 is connected to the sub power supply circuit 124). A sub-power supply power supply abnormality signal indicating that is not connected) is generated, and the RAM is initialized or a warning is generated accordingly.

副電源給電異常信号の発生に関し、イグニッションスイッチ104がオンされて主電源回路122が給電をしている状態で、バッテリ101が副電源端子102を介して電流制限抵抗204aに給電している時(副電源回路124にバッテリ101が接続された状態)は、マイクロプロセッサ200の入力B302は”Lo”レベルとなり、バッテリ101が副電源端子102を介して電流制限抵抗204aに給電していない時(副電源回路124にバッテリ101が接続されていない状態)はマイクロプロセッサ200の入力B302は”Hi”レベルとなる。副電源回路124を介して給電されていない状態(副電源回路124にバッテリ101が接続されていない状態)を示す副電源給電異常信号は、入力B302が”Hi”レベルの信号となる。   Regarding the generation of the sub power supply abnormality signal, when the battery 101 is supplying power to the current limiting resistor 204a via the sub power terminal 102 in a state where the ignition switch 104 is turned on and the main power supply circuit 122 is supplying power ( When the battery 101 is connected to the sub power circuit 124), the input B302 of the microprocessor 200 is at the “Lo” level, and the battery 101 is not supplying power to the current limiting resistor 204a via the sub power terminal 102 (sub power). In a state where the battery 101 is not connected to the power supply circuit 124), the input B302 of the microprocessor 200 is at the “Hi” level. A sub power supply power supply abnormality signal indicating a state in which power is not supplied through the sub power circuit 124 (a state in which the battery 101 is not connected to the sub power circuit 124) is a signal whose input B302 is at a “Hi” level.

また初回起動信号は、バッテリ101が副電源端子102に接続されたことを前提として、その後のイグニッションスイッチ104の1回目のオンと2回目以降のオンで異なるレベルの信号となるが、バッテリ101が副電源端子102に接続されていない状態では判定回路202のトランジスタ202cはオフとなり、マイクロプロセッサ200の入力A301は”Hi”レベルとなり、2回目以降のオンと判定してしまう。そこで上述の副電源給電異常信号により、バッテリ101が副電源端子102に接続されていないことがマイクロプロセッサ200の入力B302の状態により判定できるようにしたため、副電源給電異常と判定した場合は初回起動信号による判定は無効にしてRAMの初期化を行なうようにマイクロプロセッサ200が判断するようにする。   The initial activation signal is a signal at a different level depending on whether the ignition switch 104 is turned on for the first time and the second and subsequent times on the assumption that the battery 101 is connected to the sub power supply terminal 102. When not connected to the sub power supply terminal 102, the transistor 202c of the determination circuit 202 is turned off, and the input A301 of the microprocessor 200 is at the “Hi” level, and it is determined that the transistor is turned on for the second time and thereafter. In view of this, since the sub-power supply abnormality signal described above allows the determination that the battery 101 is not connected to the sub-power supply terminal 102 based on the state of the input B302 of the microprocessor 200, the first activation is performed when it is determined that the sub-power supply abnormality has occurred. The microprocessor 200 determines that the determination based on the signal is invalid and the RAM is initialized.

また副電源給電異常警告は、マイクロプロセッサ200の警告信号出力306と電流制限抵抗127aとトランジスタ127bにより行われ、マイクロプロセッサ200が副電源給電異常を判定したとき、電子制御装置100の外部に設置された警告装置127に信号を送り、ユーザに警告を促したり、また、マイクロプロセッサ200の端子324に接続された書き換え可能なROM(又は不揮発性RAMであってもよい)126に記憶して、通信I/F128aを介して外部のサービス用テスタ128に副電源給電異常であることが判るコードを転送する。ROM(又は不揮発性RAM)126は副電源端子102に給電されていない状態でもデータを記憶可能なメモリである。   The sub power supply power supply abnormality warning is issued by the warning signal output 306 of the microprocessor 200, the current limiting resistor 127a, and the transistor 127b. When the microprocessor 200 determines the sub power supply power supply abnormality, the sub power supply power supply abnormality warning is installed outside the electronic control device 100. A signal is sent to the warning device 127 to alert the user, or stored in a rewritable ROM (or a non-volatile RAM) 126 connected to the terminal 324 of the microprocessor 200 for communication. A code indicating that the sub power supply power supply is abnormal is transferred to the external service tester 128 via the I / F 128a. The ROM (or nonvolatile RAM) 126 is a memory capable of storing data even when power is not supplied to the sub power supply terminal 102.

なお、初回起動信号発生手段がラッチ回路201と判定回路202とラッチセット回路203とマイクロプロセッサ200(CPU200c)で構成され、副電源給電異常信号発生手段がバッテリ配線断線検出回路204とマイクロプロセッサ200(CPU200c)とで構成され、揮発性メモリ初期化手段および第2の揮発性メモリ初期化手段がマイクロプロセッサ200(CPU200c)で構成され、副電源給電異常警告手段がマイクロプロセッサ200(CPU200c)と電流制限抵抗127aとトランジスタ127bと警告装置127で構成され、副電源給電異常記憶手段がマイクロプロセッサ200(CPU200c)とROM(又は不揮発性RAM)126で構成される。   Note that the initial activation signal generating means includes a latch circuit 201, a determination circuit 202, a latch set circuit 203, and a microprocessor 200 (CPU 200c), and an auxiliary power supply abnormality signal generating means includes a battery wiring disconnection detection circuit 204 and a microprocessor 200 ( CPU 200c), the volatile memory initialization means and the second volatile memory initialization means are constituted by the microprocessor 200 (CPU 200c), and the sub power supply power supply abnormality warning means is the microprocessor 200 (CPU 200c) and the current limit. A resistor 127a, a transistor 127b, and a warning device 127 are included. A sub-power supply abnormality storage unit is configured by a microprocessor 200 (CPU 200c) and a ROM (or nonvolatile RAM) 126.

図3はこの発明における電子制御装置のマイクロプロセッサの処理を示すフローチャートであり、イグニッションスイッチ104がオフからオンになってマイクロプロセッサ200にバッテリ101から主電源回路122を介して給電があり、マイクロプロセッサ200が動作を開始した以降に実行される処理である。   FIG. 3 is a flowchart showing the processing of the microprocessor of the electronic control device according to the present invention. The ignition switch 104 is turned on from off, and power is supplied to the microprocessor 200 from the battery 101 via the main power supply circuit 122. 200 is a process executed after the operation starts.

ステップS1においてマイクロプロセッサ200の動作開始又は継続動作が判定され、ステップS2でマイクロプロセッサ200の入力B302のレベルが”Hi”レベルと判定された場合には、ステップS3でバッテリ101から副電源端子102に給電されておらず副電源給電異常と判定して、ステップS4でRAM200bの初期化の処理を行う。尚、ステップS4の処理後にも、後述のステップS8の出力A303のレベルを”Hi”レベルにする処理を実施してもよい。   If it is determined in step S1 that the microprocessor 200 starts or continues to operate, and if the level of the input B302 of the microprocessor 200 is determined to be "Hi" level in step S2, the sub-power supply terminal 102 from the battery 101 is determined in step S3. In step S4, the RAM 200b is initialized. Even after the process of step S4, a process of setting the level of output A303 in step S8 described later to the “Hi” level may be performed.

ステップS2において、マイクロプロセッサ200の入力B302のレベルが”Lo”レベルと判定された場合には、バッテリ101から副電源端子102に給電されていると判定して、ステップS5に進み、ステップS5でマイクロプロセッサ200の入力A301の状態を確認する処理を行い、マイクロプロセッサ200の入力A301のレベルが”Lo”レベルの場合には、ステップS6でイグニッションスイッチ104の1回目のオンかつバッテリ101から副電源端子102に給電されていると判定し、マイクロプロセッサ200はステップS7のRAM200bの初期化の処理を行なってからステップS8に進み、出力A303のレベルを”Hi”レベルにする。また、ステップS5でマイクロプロセッサ200の入力A301のレベルが”Hi”レベルの場合には、ステップS9でイグニッションスイッチ104の2回目以降のオンかつバッテリ101から副電源端子102に給電されていると判定する。尚、ステップS9の処理後に、ステップS8の出力A303のレベルを”Hi”にする処理を実施してもよい。   If it is determined in step S2 that the level of the input B302 of the microprocessor 200 is the “Lo” level, it is determined that power is being supplied from the battery 101 to the sub power supply terminal 102, and the process proceeds to step S5. Processing for confirming the state of the input A301 of the microprocessor 200 is performed. If the level of the input A301 of the microprocessor 200 is "Lo" level, the ignition switch 104 is turned on for the first time and the sub-power supply from the battery 101 in step S6. The microprocessor 200 determines that power is being supplied to the terminal 102, the microprocessor 200 performs the initialization process of the RAM 200b in step S7, and then proceeds to step S8, where the level of the output A303 is set to the “Hi” level. If the level of the input A301 of the microprocessor 200 is "Hi" level in step S5, it is determined in step S9 that the ignition switch 104 is turned on for the second time or later and the battery 101 supplies power to the sub power supply terminal 102. To do. In addition, after the process of step S9, you may implement the process which sets the level of the output A303 of step S8 to "Hi".

そしてその後、マイクロプロセッサ200に主電源回路122から給電がある通常の制御時において、ステップS12でイグニッションスイッチ104のオン/オフ状態を判定して、オフであれば処理を終了する。ステップS10でマイクロプロセッサ200の入力B302のレベルが”Hi”レベルと判定され、バッテリ101から副電源端子102に給電されていないと判定された場合には、RAMの初期化は行わずに、ステップS11で副電源給電異常と判定して、警告や異常の記憶を行い、その後に例えば処理を終了する。動作終了後は、マイクロプロセッサは他の制御プログラムを実行し、所定時間後には再度ステップS1〜S11を実行する。   After that, during normal control in which power is supplied from the main power supply circuit 122 to the microprocessor 200, the on / off state of the ignition switch 104 is determined in step S12. If it is determined in step S10 that the level of the input B302 of the microprocessor 200 is the “Hi” level and it is determined that the battery 101 does not supply power to the sub power supply terminal 102, the RAM is not initialized and the step is performed. In step S11, it is determined that the sub power supply power supply is abnormal, a warning or abnormality is stored, and then the process ends, for example. After the operation is completed, the microprocessor executes another control program, and after a predetermined time, executes the steps S1 to S11 again.

図4にはバッテリからの給電開始時からの電子制御装置の動作タイミングチャート、図5にはT4〜T5,T8〜T9,およびT10,T13時点でのそれぞれの各信号とマイクロプロセッサの動作の関係図を示す。図4において、給電前、副電源端子102および主電源端子105は”Lo”レベル(無給電状態)にあり、マイクロプロセッサ200は非動作状態、ラッチポイント300、マイクロプロセッサ200の入力A301、入力B302、出力A303はそれぞれ”Lo”レベルにある。時点T1は、バッテリ101の接続による副電源端子102への給電(電圧供給)が開始された状態を示す。これにより副電源端子102は”Hi”レベル(給電状態)になり、これに接続されたラッチポイント300も”Hi”レベルになる。   FIG. 4 is an operation timing chart of the electronic control device from the start of power supply from the battery, and FIG. 5 is a relationship between each signal and the operation of the microprocessor at time T4 to T5, T8 to T9, and T10 and T13. The figure is shown. In FIG. 4, before power feeding, the sub power terminal 102 and the main power terminal 105 are at the “Lo” level (non-powered state), the microprocessor 200 is in the non-operating state, the latch point 300, the input A301 and the input B302 of the microprocessor 200. The outputs A303 are each at the “Lo” level. Time T1 indicates a state in which power supply (voltage supply) to the sub power supply terminal 102 by connection of the battery 101 is started. As a result, the sub power supply terminal 102 is set to the “Hi” level (power supply state), and the latch point 300 connected thereto is also set to the “Hi” level.

時点T2は、イグニッションスイッチ104がオンされることにより、トランジスタ109がオン状態になり電源リレー103の開閉素子103bが閉じ、主電源端子105への給電が開始された状態を示す。これにより主電源端子105は”Hi”レベル(給電状態)になる。時点T3は、主電源回路122を介してマイクロプロセッサ200に給電が行われ、マイクロプロセッサ200が動作を開始した状態を示す。時点T4は、マイクロプロセッサ200の入力A301、入力B302が共に”Lo”レベルであることから、マイクロプロセッサ200が副電源端子102への給電開始後のイグニッションスイッチ104の1回目のオンと判定した状態を示す。副電源端子102からの”Hi”レベル信号によりトランジスタ202c、204cが共にオン状態になるため入力A301、入力B302は共に”Lo”レベルのままとなる。   Time T2 indicates a state in which, by turning on the ignition switch 104, the transistor 109 is turned on, the switching element 103b of the power supply relay 103 is closed, and power supply to the main power supply terminal 105 is started. As a result, the main power supply terminal 105 is set to the “Hi” level (power supply state). Time T3 indicates a state in which power is supplied to the microprocessor 200 via the main power supply circuit 122 and the microprocessor 200 starts operating. At time T4, since both the input A301 and the input B302 of the microprocessor 200 are at the “Lo” level, the microprocessor 200 determines that the ignition switch 104 is turned on for the first time after the power supply to the sub power supply terminal 102 is started. Indicates. Since the transistors 202c and 204c are both turned on by the “Hi” level signal from the sub power supply terminal 102, both the input A301 and the input B302 remain at the “Lo” level.

時点T5は、マイクロプロセッサ200のRAM200bを初期化し、マイクロプロセッサ200の出力A303が”Hi”レベルに設定され、ラッチポイント300を”Lo”レベルにすることにより、マイクロプロセッサ200の入力A301が”Hi”レベルにされる状態を示す。ここでは、マイクロプロセッサ200は図3のフローチャートのステップS2、S5〜S8に従い、入力B302、入力A301が共に”Lo”レベルなので、RAM200bの初期化、出力A303の”Hi”レベルへの設定を行う。これによりトランジスタ203c、203a、201d、201bかオン状態になり、ラッチポイント300が”Lo”レベルにされる。そしてラッチポイント300が”Lo”レベルにされたことによりトランジスタ202cはオフ状態になり入力A301が”Hi”レベルにされる。なおトランジスタ201b、201dによりラッチポイント300の”Lo”レベルは副電源端子102への給電がなくなるまで保持される。   At time T5, the RAM 200b of the microprocessor 200 is initialized, the output A303 of the microprocessor 200 is set to the “Hi” level, and the latch point 300 is set to the “Lo” level, whereby the input A301 of the microprocessor 200 is set to “Hi”. "Indicates the state to be set to the level. Here, the microprocessor 200 initializes the RAM 200b and sets the output A303 to the “Hi” level because the input B302 and the input A301 are both at the “Lo” level in accordance with steps S2 and S5 to S8 in the flowchart of FIG. . As a result, the transistors 203c, 203a, 201d, and 201b are turned on, and the latch point 300 is set to the “Lo” level. When the latch point 300 is set to the “Lo” level, the transistor 202c is turned off and the input A301 is set to the “Hi” level. Note that the “Lo” level of the latch point 300 is held by the transistors 201b and 201d until power is not supplied to the sub power supply terminal 102.

時点T6は、イグニッションスイッチ104がオフされたことにより開閉素子103bが開放され主電源端子105への給電が停止された状態を示す。ここでは、イグニッションスイッチ104がオフされたことにより、このことを示すイグニッションスイッチ信号がデジタル入力I/F(インターフェイス)115を介してマイクロプロセッサ200の端子313に入力され、マイクロプロセッサ200がイグニッションスイッチ104がオフになったことを認識するとCPU200cは動作停止処理を行い、動作停止処理終了時にWD信号が停止されてWDT回路107の出力が”Lo”レベルになるとトランジスタ109がオフ状態になり電磁コイル103aの電流が停止され、開閉素子103bは開放されて主電源端子105を介しての給電は停止される。これにより主電源端子105は”Lo”レベル(無給電状態)、マイクロプロセッサ200は非動作状態、主電源端子105に接続された入力A301は”Lo”レベルとなり、出力A303も”Lo”レベルに戻される(図3のステップS12参照)。   Time T6 indicates a state in which the opening / closing element 103b is opened and power supply to the main power supply terminal 105 is stopped due to the ignition switch 104 being turned off. Here, when the ignition switch 104 is turned off, an ignition switch signal indicating this is input to the terminal 313 of the microprocessor 200 via the digital input I / F (interface) 115, and the microprocessor 200 is connected to the ignition switch 104. When the CPU 200c recognizes that the transistor is turned off, the CPU 200c performs an operation stop process. When the WD signal is stopped at the end of the operation stop process and the output of the WDT circuit 107 becomes the "Lo" level, the transistor 109 is turned off and the electromagnetic coil 103a is turned off. Current is stopped, the open / close element 103b is opened, and power supply via the main power supply terminal 105 is stopped. As a result, the main power supply terminal 105 is at the “Lo” level (no power supply state), the microprocessor 200 is in the non-operating state, the input A301 connected to the main power supply terminal 105 is at the “Lo” level, and the output A303 is also at the “Lo” level. Returned (see step S12 in FIG. 3).

時点T7は、イグニッションスイッチ104が再度オンにされ開閉素子103bが閉じて主電源端子105への給電が開始された状態を示す。これにより主電源端子105は”Hi”レベル(給電状態)になり、ラッチポイント300が”Lo”レベルなのでトランジスタ202cはオフ状態にあるため、主電源回路122を介して主電源端子105に接続された入力A301は”Hi”レベルにされる。時点T8は、主電源回路122を介してマイクロプロセッサ200が給電されているため、マイクロプロセッサ200が動作を開始した状態を示す。時点T9は、マイクロプロセッサ200の入力A301が”Hi”レベル、入力B302が”Lo”レベルにあることから、マイクロプロセッサ200が副電源端子102への給電開始後のイグニッションスイッチ104の2回目以降のオンと判定した状態を示す。マイクロプロセッサ200は図3のフローチャートのステップS2、S5、S9に従い、入力A301が”Hi”レベル、入力B302が”Lo”レベルなのでRAM200bの初期化等は行わない。   Time T7 shows a state in which the ignition switch 104 is turned on again, the switching element 103b is closed, and power supply to the main power supply terminal 105 is started. As a result, the main power supply terminal 105 is set to the “Hi” level (power supply state), and the latch point 300 is set to the “Lo” level, so that the transistor 202c is in the off state. The input A301 is set to the “Hi” level. Time T8 indicates a state in which the microprocessor 200 starts operating because the microprocessor 200 is supplied with power through the main power supply circuit 122. At time T9, since the input A301 of the microprocessor 200 is at the “Hi” level and the input B302 is at the “Lo” level, the microprocessor 200 starts the power supply to the sub power supply terminal 102 for the second and subsequent ignition switches 104. Indicates the state determined to be on. The microprocessor 200 does not initialize the RAM 200b in accordance with steps S2, S5, and S9 in the flowchart of FIG. 3 because the input A301 is at the “Hi” level and the input B302 is at the “Lo” level.

時点T10は、通常の制御中にバッテリ配線の断線等の理由により副電源端子102への給電が停止してしまった状態を示す。これにより、副電源端子102は”Lo”レベル(無給電状態)になりトランジスタ204cがオフ状態になったことにより、入力A301、入力B302が共に”Hi”レベルになり、マイクロプロセッサ200は副電源給電異常と判定する。但しこの時は、RAM初期化判定の後なのでRAMの初期化は行わずに、上述の電子制御装置100の外部に設置された警告装置127に警告信号出力306を送り、ユーザに警告を促したり、また、マイクロプロセッサ200の端子324に接続された書き換え可能なROM(又は不揮発性RAM)126に副電源給電異常のデータを記憶して、例えば通信I/F128aを介して外部のサービス用テスタ128に副電源給電異常であることが判るコードを転送する(図3のステップS10〜S11参照)。そして時点T11は、イグニッションスイッチ104がオフされ開閉素子103bが開放され主電源端子105への給電が停止した状態を示す。これにより副電源端子102及び主電源端子105が共に”Lo”レベル(無給電状態)になり、マイクロプロセッサ200は非動作状態となり、入力A301、入力B302及び出力A303が全て”Lo”レベルとなる。   Time T10 indicates a state in which power supply to the sub power supply terminal 102 is stopped during normal control due to disconnection of the battery wiring or the like. As a result, the sub power supply terminal 102 is set to the “Lo” level (non-powered state) and the transistor 204c is turned off, so that both the input A301 and the input B302 are set to the “Hi” level. It is determined that the power supply is abnormal. However, at this time, since the RAM initialization determination is performed, the initialization of the RAM is not performed, and the warning signal output 306 is sent to the warning device 127 installed outside the electronic control device 100 to prompt the user to give a warning. Further, sub-power supply abnormality data is stored in a rewritable ROM (or non-volatile RAM) 126 connected to the terminal 324 of the microprocessor 200, and an external service tester 128, for example, via the communication I / F 128a. A code indicating that the sub power supply is abnormal is transferred to (see steps S10 to S11 in FIG. 3). At time T11, the ignition switch 104 is turned off, the open / close element 103b is opened, and power supply to the main power supply terminal 105 is stopped. As a result, both the sub power supply terminal 102 and the main power supply terminal 105 are set to the “Lo” level (non-powered state), the microprocessor 200 is set to the non-operating state, and the input A301, the input B302 and the output A303 are all set to the “Lo” level. .

時点T12は、イグニッションスイッチ104が再びオンされて開閉素子103bが閉じて主電源端子105への給電が開始される状態を示す。副電源端子102への給電がなくトランジスタ202c、204cが共にオフ状態なので入力A301及び入力B302は共に”Hi”レベルとなる。そして時点T13は、イグニッションスイッチ104がオンされてマイクロプロセッサ200が動作開始したマイクロプロセッサ200のRAM初期化判定時なので、マイクロプロセッサ200が判定を行い、入力A301及び入力B302が共に”Hi”レベルであるので、副電源給電異常と判定しさらにRAMを初期化する状態を示す(図3のステップS3〜S4参照)。   Time T12 indicates a state in which the ignition switch 104 is turned on again, the switching element 103b is closed, and power supply to the main power supply terminal 105 is started. Since there is no power supply to the sub power supply terminal 102 and the transistors 202c and 204c are both off, the input A301 and the input B302 are both at the “Hi” level. At time T13, the microprocessor 200 makes a RAM initialization determination when the ignition switch 104 is turned on and the microprocessor 200 starts to operate. Therefore, the microprocessor 200 makes a determination, and both the input A301 and the input B302 are at the “Hi” level. Therefore, it is determined that the sub power supply is abnormal and the RAM is initialized (see steps S3 to S4 in FIG. 3).

なお図3のステップS3においてRAMの初期化と同時に、図3のステップS11と同様に、上述の副電源給電異常に関する警告信号出力306を送り、ユーザに警告を促したり、また、ROM(又は不揮発性RAM)126に副電源給電異常のデータを記憶して、外部のサービス用テスタ128に副電源給電異常であることが判るコードを転送するようにしてもよい。また、副電源給電異常と判定し、RAMの初期化を行ったことを、警告信号出力306として送り、ユーザに警告を促したり、また、ROM(又は不揮発性RAM)126に副電源給電異常のデータとして記憶して、外部のサービス用テスタ128に副電源給電異常であることが判るコードを転送するようにしてもよい。   At the same time as the initialization of the RAM in step S3 in FIG. 3, as in step S11 in FIG. 3, the warning signal output 306 regarding the above-described sub power supply power supply abnormality is sent to alert the user, or the ROM (or nonvolatile memory) The auxiliary power supply abnormality data may be stored in the RAM 126 and a code indicating that the auxiliary power supply abnormality is detected may be transferred to the external service tester 128. Further, it is determined that the sub power supply power supply is abnormal and the initialization of the RAM is sent as a warning signal output 306 to alert the user, or the ROM (or nonvolatile RAM) 126 has a sub power supply power supply abnormality. Data stored as data may be transferred to an external service tester 128 that indicates a sub power supply power supply abnormality.

このように構成することにより、バッテリ101を接続した後のイグニッションスイッチ104が1回目のオンと2回目以降のオンを速やかに判定して、必要な時にRAMを初期化することができる。また、主電源端子105への給電がある時に、副電源端子102に給電されているか否かを確実に検出することができる。さらに、イグニッションスイッチ104をオンした後に副電源端子102に給電されていないときは、イグニッションスイッチ104が1回目のオンであるか否かの判定を無効にしてRAMの初期化を行うことで、不定値となったRAMの制御データを使用せずに内燃機関を制御できる。   By configuring in this way, the ignition switch 104 after the battery 101 is connected can quickly determine whether the switch is turned on for the first time and on after the second time, and the RAM can be initialized when necessary. In addition, when power is supplied to the main power supply terminal 105, it is possible to reliably detect whether power is supplied to the sub power supply terminal 102. Further, when power is not supplied to the sub power supply terminal 102 after the ignition switch 104 is turned on, the initialization of the RAM is performed by invalidating the determination as to whether or not the ignition switch 104 is turned on for the first time. The internal combustion engine can be controlled without using the RAM control data.

また、副電源端子102に給電されていないことを検知した場合に、副電源端子102に給電されていないことによる不確定な誤差補正データや故障データを記憶しているRAMがイグニッションスイッチ104をオンする度に初期化されることを異常としてユーザに警告することができる。   In addition, when it is detected that power is not supplied to the sub power supply terminal 102, the RAM that stores indefinite error correction data and failure data due to the fact that power is not supplied to the sub power supply terminal 102 turns on the ignition switch 104. It is possible to warn the user that it is initialized every time it is done.

また、副電源端子102に給電されていないことを検知した場合に、副電源端子102に給電されていないことを、給電されていない状態でもデータを記憶するROMや不揮発性RAMに記憶させることにより、サービス用テスタなどを介して外部に副電源給電異常を知らせることができる。   Further, when it is detected that power is not supplied to the sub power supply terminal 102, the fact that the power is not supplied to the sub power supply terminal 102 is stored in a ROM or nonvolatile RAM that stores data even in a state where power is not supplied. The sub power supply power supply abnormality can be notified to the outside through a service tester or the like.

この発明による電子制御装置を設けた内燃機関の制御系の概略構成図である。1 is a schematic configuration diagram of a control system of an internal combustion engine provided with an electronic control device according to the present invention. 図1の電子制御装置の構成の一例を示す図である。It is a figure which shows an example of a structure of the electronic controller of FIG. この発明による電子制御装置のマイクロプロセッサの処理を示すフローチャートである。It is a flowchart which shows the process of the microprocessor of the electronic controller by this invention. この発明におけるバッテリからの給電開始時からの電子制御装置の動作タイミングチャートである。It is an operation | movement timing chart of the electronic control apparatus from the time of the electric power feeding start from the battery in this invention. 図4の所定の時点でのそれぞれの各信号とマイクロプロセッサの動作の関係を示す図である。FIG. 5 is a diagram showing the relationship between each signal and the operation of the microprocessor at a predetermined time in FIG. 4.

符号の説明Explanation of symbols

1 内燃機関、100 電子制御装置、101 バッテリ、102 副電源端子、103 電源リレー、103a 電磁コイル、103b 開閉素子、104 イグニッションスイッチ、105 主電源端子、106,108,123,125 ダイオード、107 ウォッチドッグタイマ回路、109,120b,121b,127b,201b,201d,202c,203a,203c,204c トランジスタ、110,111,120a,127a,201a,201c,202a,203b,203d,204a 電流制限抵抗、112 圧力センサ、113 スロットル開度センサ、114 内燃機関回転角検出センサ、115,118 デジタル入力I/F、116,117 アナログ入力I/F、120 燃料噴射用インジェクタ、121 点火装置、122 主電源回路、124 副電源回路、126 書換え可能なROM、127 警告装置、128 サービス用テスタ、128a 通信インターフェイス、130 エアークリーナ、131 吸気管、132 スロットル、200 マイクロプロセッサ、200a ROM、200b RAM、200c CPU、201 ラッチ回路、202 判定回路、202b 電圧分圧抵抗、202d,204b 電位固定抵抗、203 ラッチセット回路、204 バッテリ配線断線検出回路、300 ラッチポイント、301 入力A、302 入力B、303 出力A、304 インジェクション信号出力、305 点火信号出力、306 警告信号出力、311 RAM保持電源端子、312〜324,401〜409 端子。   DESCRIPTION OF SYMBOLS 1 Internal combustion engine, 100 Electronic controller, 101 Battery, 102 Sub power terminal, 103 Power relay, 103a Electromagnetic coil, 103b Open / close element, 104 Ignition switch, 105 Main power terminal, 106, 108, 123, 125 Diode, 107 Watchdog Timer circuit 109, 120b, 121b, 127b, 201b, 201d, 202c, 203a, 203c, 204c Transistor, 110, 111, 120a, 127a, 201a, 201c, 202a, 203b, 203d, 204a Current limiting resistor, 112 Pressure sensor , 113 Throttle opening sensor, 114 Internal combustion engine rotation angle detection sensor, 115, 118 Digital input I / F, 116, 117 Analog input I / F, 120 Fuel injector 1 DESCRIPTION OF SYMBOLS 1 Ignition device, 122 Main power supply circuit, 124 Sub power supply circuit, 126 Rewritable ROM, 127 Warning device, 128 Service tester, 128a Communication interface, 130 Air cleaner, 131 Intake pipe, 132 Throttle, 200 Microprocessor, 200a ROM , 200b RAM, 200c CPU, 201 latch circuit, 202 determination circuit, 202b voltage dividing resistor, 202d, 204b fixed potential resistor, 203 latch set circuit, 204 battery wire disconnection detection circuit, 300 latch point, 301 input A, 302 input B, 303 output A, 304 injection signal output, 305 ignition signal output, 306 warning signal output, 311 RAM holding power supply terminal, 312 to 324, 401 to 409 terminal.

Claims (2)

バッテリからイグニッションスイッチによって応動する開閉素子と主電源回路を介して給電されて動作するマイクロプロセッサと、上記主電源回路を介して給電されると共に上記バッテリから副電源回路を介して常時給電され、主電源回路から給電されない状態であっても副電源回路からの給電によりデータが保持されて、更新されるデータを一時記憶する揮発性メモリと、を備えた電子制御装置であって、
上記バッテリから上記副電源回路を介して上記揮発性メモリへ給電が行われた後の、上記イグニッションスイッチの1回目のオンであることを示す初回起動信号を発生する初回起動信号発生手段と、
上記バッテリと上記副電源回路との接続点にバッテリ配線断線検出回路を有し、上記イグニッションスイッチがオンされて上記マイクロプロセッサに上記主電源回路から給電がある状態で、上記バッテリから上記副電源回路を介して上記揮発性メモリへ給電が行われていないことを上記バッテリ配線断線検出回路を通じ検出した場合に副電源給電異常信号を発生する副電源給電異常信号発生手段と、
上記初回起動信号に従って、上記揮発性メモリへ給電が行われた後の上記イグニッションスイッチの1回目のオン時に上記揮発性メモリの初期化を行う第1の揮発性メモリ初期化手段と、
上記イグニッションスイッチがオンされて上記マイクロプロセッサに上記主電源回路から給電が開始された時に、上記副電源給電異常信号が発生されていれば、上記初回起動信号の状態を無視して上記揮発性メモリの初期化を行う第2の揮発性メモリ初期化手段と、
上記副電源給電異常信号に基づきユーザへ警告を発生する副電源給電異常警告手段と、
を備え、
上記初回起動信号発生手段は上記イグニッションスイッチがオフしている状態で、上記副電源の給電が一旦切られてから再接続され、その後に上記イグニッションスイッチが再びオンしたことを示す第1レベルにより1回目のオンであることを記憶し、その後この記憶に基づき上記マイクロプロセッサに上記初回起動信号となる信号を発生し、上記第1レベルを第2レベルとすることにより2回目以降と判断できるように動作するラッチ手段を有し、上記第1の揮発性メモリ初期化手段は上記初回起動信号に基づいて上記揮発性メモリの初期化を行い、
上記イグニッションスイッチがオンしている状態で、上記マイクロプロセッサが上記副電源給電異常信号発生手段の発生する副電源給電異常信号に従い、上記副電源給電異常と判定した場合に、上記第2の揮発性メモリ初期化手段を動作させない初期化禁止手段をさらに備え、
上記副電源給電異常警告手段が、上記初期化禁止手段により上記第2の揮発性メモリ初期化手段を動作させない場合にも、上記イグニッションスイッチがオンされている状態での上記副電源給電異常信号に基づき、ユーザへ警告を発生し、
上記初回起動信号発生手段は上記ラッチ手段を構成するラッチ回路と判定回路とラッチセット回路によって構成され、
上記ラッチ回路は上記イグニッションスイッチがオフしている状態で、上記バッテリの接続が一旦切られてから再接続され、その後に上記イグニッションスイッチが再びオンしたときに出力信号が上記第1レベルのリセット状態となる記憶回路であり、
上記判定回路は上記記憶回路の出力信号の論理レベルを判定して上記マイクロプロセッサに上記初回起動信号となる判定信号を入力する回路であり、
上記ラッチセット回路は上記マイクロプロセッサが発生したセット指令信号によって、上記ラッチ回路に対してセット信号を供給して上記第2レベルの出力信号にする回路であり、
上記第1の揮発性メモリ初期化手段は上記ラッチ回路と判定回路を介して入力された上記初回起動信号に基づいて上記揮発性メモリの初期化を行ってから、上記ラッチセット回路を介して上記ラッチ回路をセットし、
上記初期化禁止手段は、上記副電源給電異常信号発生手段が発生する副電源給電異常信号に従い、上記マイクロプロセッサが副電源給電異常信号と判定した時に、上記イグニッションスイッチがオンした直後の初回動作では上記第2の揮発性メモリ初期化手段が有効とし、上記イグニッションスイッチがオンしている状態で上記副電源給電異常信号が発生した場合には上記第2の揮発性メモリ初期化手段を動作させない
ことを特徴とする電子制御装置。
An open / close element that is actuated by an ignition switch from a battery and a microprocessor that is powered and operated via a main power supply circuit, and that is powered via the main power supply circuit and constantly powered from the battery via a secondary power supply circuit. An electronic control device comprising: a volatile memory that temporarily stores data to be updated by holding data by power supply from the sub power circuit even in a state where power is not supplied from the power circuit;
An initial activation signal generating means for generating an initial activation signal indicating that the ignition switch is turned on for the first time after power is supplied from the battery to the volatile memory via the sub power supply circuit;
A battery wiring disconnection detection circuit is provided at a connection point between the battery and the sub power circuit, and the ignition switch is turned on and power is supplied from the main power circuit to the microprocessor. Sub power supply power supply abnormality signal generating means for generating a sub power supply power supply abnormality signal when it is detected through the battery wiring disconnection detection circuit that power supply to the volatile memory is not performed via
First volatile memory initialization means for initializing the volatile memory when the ignition switch is turned on for the first time after power is supplied to the volatile memory in accordance with the initial activation signal;
When the ignition switch is turned on and the power supply to the microprocessor is started from the main power supply circuit, if the sub power supply power supply abnormality signal is generated, the state of the initial activation signal is ignored and the volatile memory is ignored. Second volatile memory initialization means for performing initialization of
Sub power supply power supply abnormality warning means for generating a warning to the user based on the sub power supply power supply abnormality signal,
With
The first activation signal generating means is 1 by a first level indicating that the power supply of the sub power source is once turned off and then reconnected in a state where the ignition switch is turned off, and then the ignition switch is turned on again. It is memorized that it is on for the first time, and after that, based on this memory, a signal to be the first activation signal is generated in the microprocessor, and the first level is set to the second level, so that it can be judged as the second time or later. Latch means for operating, the first volatile memory initialization means initializes the volatile memory based on the initial activation signal,
In a state where the ignition switch is on, when the microprocessor determines that the sub power supply power supply abnormality is in accordance with the sub power supply power supply abnormality signal generated by the sub power supply power supply abnormality signal generating means, the second volatile property is generated. Further comprising an initialization prohibiting means for not operating the memory initializing means,
Even when the sub power supply power supply abnormality warning means does not operate the second volatile memory initialization means by the initialization prohibiting means, the sub power supply power supply abnormality signal in the state where the ignition switch is turned on. To warn the user ,
The initial activation signal generating means includes a latch circuit, a determination circuit, and a latch set circuit that constitute the latch means,
The latch circuit is in a state where the ignition switch is turned off, the battery is once disconnected and then reconnected, and then the output signal is reset to the first level when the ignition switch is turned on again. Memory circuit
The determination circuit is a circuit for determining a logic level of an output signal of the memory circuit and inputting a determination signal to be the initial activation signal to the microprocessor.
The latch set circuit is a circuit that supplies a set signal to the latch circuit according to a set command signal generated by the microprocessor to generate the second level output signal.
The first volatile memory initialization means initializes the volatile memory based on the initial activation signal input via the latch circuit and the determination circuit, and then performs the above-described via the latch set circuit. Set the latch circuit,
In the initial operation immediately after the ignition switch is turned on when the microprocessor determines that the sub power supply power supply abnormality signal is generated according to the sub power supply power supply abnormality signal generated by the sub power supply power supply abnormality signal generation means. The second volatile memory initialization unit is not activated when the second volatile memory initialization unit is enabled and the sub power supply power supply abnormality signal is generated with the ignition switch turned on. An electronic control device.
上記副電源給電異常信号に従い、上記マイクロプロセッサが副電源給電異常と判定した時に、これを記憶する副電源給電異常記憶手段をさらに備えたことを特徴とする請求項1に記載の電子制御装置。 2. The electronic control unit according to claim 1 , further comprising sub power supply power supply abnormality storage means for storing a sub power supply power supply abnormality signal according to the sub power supply power supply abnormality signal when the microprocessor determines that the sub power supply power supply abnormality has occurred.
JP2008112537A 2008-04-23 2008-04-23 Electronic control unit Expired - Fee Related JP4357576B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008112537A JP4357576B2 (en) 2008-04-23 2008-04-23 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008112537A JP4357576B2 (en) 2008-04-23 2008-04-23 Electronic control unit

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2004291291A Division JP4158918B2 (en) 2004-10-04 2004-10-04 Electronic control unit

Publications (3)

Publication Number Publication Date
JP2008180234A JP2008180234A (en) 2008-08-07
JP2008180234A5 JP2008180234A5 (en) 2008-11-20
JP4357576B2 true JP4357576B2 (en) 2009-11-04

Family

ID=39724294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008112537A Expired - Fee Related JP4357576B2 (en) 2008-04-23 2008-04-23 Electronic control unit

Country Status (1)

Country Link
JP (1) JP4357576B2 (en)

Also Published As

Publication number Publication date
JP2008180234A (en) 2008-08-07

Similar Documents

Publication Publication Date Title
CN103969543B (en) State of insulation detection device
JP6353648B2 (en) Semiconductor abnormality detection circuit
JP2009145077A (en) Method for processing output signal of atmospheric sensor, and device for controlling vehicle behavior
CN111799759A (en) Overcurrent protection circuit of vehicle ECU output power supply and its control method
US20240103080A1 (en) Malfunction detection method and electronic control device capable of detecting malfunction
JP4158918B2 (en) Electronic control unit
JP5099041B2 (en) Fuel pump control device
JP4357576B2 (en) Electronic control unit
JP6579042B2 (en) Vehicle abnormality determination device
WO2003067349A1 (en) Load failure diagnosis method and apparatus and load failure processing method and apparatus
JP5920244B2 (en) Anomaly detection device
KR101832278B1 (en) Method for diagnosing engine off timer
CN103287357B (en) Controller of vehicle, vehicle control system and control method for vehicle
KR102053991B1 (en) Self-diagnosing watchdog monitoring system
JP2004084655A (en) Engine start control device
JP4958924B2 (en) Glow plug fault diagnosis device
JP5959238B2 (en) Vehicle control apparatus and vehicle control method
JP5840532B2 (en) Fuel injection control system
KR100726595B1 (en) Restart device and method of engine control unit
KR100587923B1 (en) Sensor power supply control circuit of electronic control unit
JP5708334B2 (en) Microcomputer-equipped device
JP2005337735A (en) Failure diagnosis method for electromagnetic relay
JP4618617B2 (en) Fault diagnosis device for power supply path of external power supply type controller
KR101744985B1 (en) ISG Control Method for Preventing Abnormal Engine Start
KR20060108814A (en) Self-diagnosis circuit of PTC heater

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080423

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090317

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090513

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090609

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090709

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090804

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090804

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

Free format text: PAYMENT UNTIL: 20120814

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120814

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130814

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees