JPH0932615A - Engine controller - Google Patents

Engine controller

Info

Publication number
JPH0932615A
JPH0932615A JP18419095A JP18419095A JPH0932615A JP H0932615 A JPH0932615 A JP H0932615A JP 18419095 A JP18419095 A JP 18419095A JP 18419095 A JP18419095 A JP 18419095A JP H0932615 A JPH0932615 A JP H0932615A
Authority
JP
Japan
Prior art keywords
converter
engine
abnormality
engine control
interrupt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP18419095A
Other languages
Japanese (ja)
Inventor
Chihiro Touwaki
千裕 東脇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP18419095A priority Critical patent/JPH0932615A/en
Publication of JPH0932615A publication Critical patent/JPH0932615A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To suitably compensate engine control when an A/D converter is in its abnormal state by eliminating arrangement such as a backup circuit. SOLUTION: Analog output such as an intake pipe inner pressure sensor 3 and an engine water temperature sensor 4 out of sensors for detecting the operating condition of an engine is converted into a digital value by an A/D converter 63 and put in a microcomputer 60. At that time, in the microcomputer 60, an A/D conversion value is stored in an RAM 603 by SIN(serial input) interruption. While in the microcomputer 60, a controlled variable on the basis of the A/D conversion value is calculated on a base routine, and this controlled variable calculated by NE interruption on the basis of a pulse from a crank angle sensor 1 is outputted to a controlled part driving circuit 64. When the A/D converter 63 is in its abnormal state, in the microcomputer 60, a fail-safe value is outputted to the driving circuit 64 by the NE interruption whose priority order is higher than the SIN interruption.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、エンジンの燃料噴射
や点火にかかる動作を電子制御するエンジン制御装置に
関し、特にエンジンの運転状態を示すアナログ量をA/
D変換器にてディジタル量に変換して取り込む制御装置
にあって、A/D変換器の異常時にもエンジン制御を適
正に維持するための同制御装置構成の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an engine control device for electronically controlling an operation related to fuel injection and ignition of an engine, and more particularly to an analog quantity which indicates an operating state of the engine.
The present invention relates to an improvement of a control device configuration for maintaining a proper engine control even when an abnormality occurs in the A / D converter in a control device for converting into a digital amount by a D converter.

【0002】[0002]

【従来の技術】こうしたエンジン制御装置にあっては一
般に、上記A/D変換器と、その変換されるディジタル
量に基づきエンジンの制御量を演算するマイクロコンピ
ュータとの間で、図10に示されるようなシリアル通信
が行われる。
2. Description of the Related Art Generally, such an engine control device is shown in FIG. 10 between the A / D converter and a microcomputer which calculates an engine control amount based on the converted digital amount. Such serial communication is performed.

【0003】すなわち、 (1)マイクロコンピュータでは、例えば1ms(ミリ
秒)毎等、一定時間毎に発生するタイマ割り込みによ
り、A/D変換器に対しA/Dチャネル指定のもとにA
/D変換要求をシリアル送信する(SOUT)。 (2)これによりA/D変換器では、その指定されたA
/Dチャネル(CH1、CH2…)のアナログ入力をA
/D変換し、そのA/D変換値をマイクロコンピュータ
にシリアル送信する(SIN)。 といった態様のシリアル通信がこれらA/D変換器とマ
イクロコンピュータとの間で行われる。
That is, (1) In a microcomputer, a timer interrupt is generated at regular time intervals such as 1 ms (milliseconds), so that the A / D converter is designated by A / D channel designation.
The / D conversion request is serially transmitted (SOUT). (2) As a result, in the A / D converter, the specified A
A / D channel (CH1, CH2 ...) analog input
A / D conversion is performed, and the A / D converted value is serially transmitted to the microcomputer (SIN). Such serial communication is performed between the A / D converter and the microcomputer.

【0004】なお、これらの通信は、マイクロコンピュ
ータからA/D変換器に対して出力されるクロックに同
期して行われる。図11に、該クロックに基づき授受さ
れる上記A/Dチャネル(A/D変換要求)及びA/D
変換値についてそのシリアルデータ送信構造を示す。
Note that these communications are performed in synchronization with the clock output from the microcomputer to the A / D converter. FIG. 11 shows the A / D channel (A / D conversion request) and A / D that are transmitted and received based on the clock.
The serial data transmission structure of the converted value is shown.

【0005】因みに、これらA/DチャネルとA/D変
換値とは基本的に共通のデータ送信構造を有しており、
図11(b)に示される如く、 ・論理L(ロー)レベルとなるSTARTbit(スタ
ートビット) ・例えば8bit(ビット)からなるデータビット ・論理H(ハイ)レベルとなるSTOPbit(ストッ
プビット) により構成されるシリアルデータが、同図11(a)に
示されるクロックに同期して送信されるようになる。
Incidentally, these A / D channels and A / D converted values basically have a common data transmission structure,
As shown in FIG. 11B, a START bit (start bit) that becomes a logic L (low) level, a data bit that consists of, for example, 8 bits (bit), and a STOP bit (stop bit) that becomes a logic H (high) level. The serial data to be transmitted is transmitted in synchronization with the clock shown in FIG.

【0006】マイクロコンピュータでは、このような構
造を有するA/D変換値を受信すると、その内部におい
て、図11(c)に示されるような割り込み要求信号が
発生され、SIN(シリアルイン)割り込みにかかる処
理が実行される。なお、このSIN割り込みにかかる要
求信号は、上記STARTbitが検出されて10数ビ
ット後に、同マイクロコンピュータの内部回路から自動
発生される。また、該SIN割り込みでは、上記受信さ
れたA/D変換値をRAMに格納する処理が行われる。
図12に、このSIN割り込みにかかる処理を、また図
13に、同マイクロコンピュータによる上記タイマ割り
込みにかかる処理をそれぞれ参考までに示す。
In the microcomputer, when the A / D converted value having such a structure is received, an interrupt request signal as shown in FIG. 11 (c) is generated in the microcomputer, and the SIN (serial in) interrupt is generated. Such processing is executed. The request signal for the SIN interrupt is automatically generated from the internal circuit of the microcomputer 10 or more bits after the START bit is detected. Further, in the SIN interrupt, a process of storing the received A / D conversion value in the RAM is performed.
FIG. 12 shows the processing related to the SIN interrupt, and FIG. 13 shows the processing related to the timer interrupt by the microcomputer, respectively, for reference.

【0007】一方、マイクロコンピュータにおいては、
これらSIN割り込み或いはタイマ割り込みにかかる処
理とは別に、その基本処理として、図14に示されるよ
うなベースルーチンに基づく演算処理が繰り返し実行さ
れる。
On the other hand, in the microcomputer,
In addition to the processing related to the SIN interrupt or the timer interrupt, as the basic processing, arithmetic processing based on the base routine as shown in FIG. 14 is repeatedly executed.

【0008】すなわち同マイクロコンピュータでは、上
記割り込みが発生しない限り、この図14に示されるベ
ースルーチンに従って、エンジンの回転数NE(rp
m)、燃料噴射量TAU(μs)、点火時期TESA
(μs)、等々についての計算を繰り返し実行する。
That is, in the microcomputer, unless the above-mentioned interrupt occurs, the engine speed NE (rp) of the engine follows the base routine shown in FIG.
m), fuel injection amount TAU (μs), ignition timing TESA
(Μs) and so on are repeatedly executed.

【0009】ここで、燃料噴射量TAU及び点火時期T
ESA等の制御量は、その都度計算される回転数NEを
はじめ、上記A/D変換器を通じてA/D変換されるエ
ンジン水温や吸気管内圧力等の値をもとに算出されるよ
うになる。
Here, the fuel injection amount TAU and the ignition timing T
The control amount of the ESA or the like is calculated on the basis of the rotational speed NE calculated each time, and the values of the engine water temperature and the intake pipe internal pressure which are A / D converted through the A / D converter. .

【0010】また、それら算出された制御量は、クラン
ク角センサからの入力パルスによって発生するいわゆる
NE割り込みに基づき出力される。図15に、こうした
NE割り込みに基づく各制御量の出力態様を、図16
に、このNE割り込みにかかる処理手順をそれぞれ示
す。
The calculated control amount is output based on a so-called NE interrupt generated by an input pulse from the crank angle sensor. FIG. 15 shows an output mode of each control amount based on such an NE interrupt.
The processing procedures involved in this NE interrupt are shown in FIG.

【0011】すなわち該NE割り込みは、図15(a)
に示されるクランク角センサからの入力パルスの立下り
エッジによってマイクロコンピュータの内部に割り込み
要求信号が発生することに基づき起動される。そして、
同割り込みルーチンでは最初に、図16のステップS1
601の処理として、前回のNE割り込み発生時刻と今
回のNE割り込み発生時刻との差から180°CA(ク
ランク角)間の時間T180(μs)が算出される。因
みに、上記ベースルーチン(図14)におけるエンジン
回転数NE(rpm)の計算は、該算出される時間T1
80(μs)をもとに行われる。
That is, the NE interrupt is shown in FIG.
It is activated based on the generation of an interrupt request signal inside the microcomputer at the falling edge of the input pulse from the crank angle sensor shown in FIG. And
In the interrupt routine, first, step S1 in FIG.
As the processing of 601, the time T180 (μs) between 180 ° CA (crank angle) is calculated from the difference between the previous NE interrupt generation time and the current NE interrupt generation time. Incidentally, the calculation of the engine speed NE (rpm) in the base routine (FIG. 14) is performed at the calculated time T1.
It is performed based on 80 (μs).

【0012】こうして時間T180(μs)が算出され
ると次に、図16のステップS1602の処理として、
図15(b)に示される態様で、インジェクタに対する
燃料噴射パルスの出力処理が実行される。この燃料噴射
パルス出力処理については、図17に、その具体手順を
示す。
When the time T180 (μs) is calculated in this way, next, as the processing of step S1602 in FIG.
In the mode shown in FIG. 15B, the output process of the fuel injection pulse to the injector is executed. FIG. 17 shows a specific procedure for this fuel injection pulse output processing.

【0013】すなわち、該燃料噴射パルスの出力に際し
てはまず、ステップS1701にてインジェクタがON
(オン)され、次のステップS1702で、上記ベース
ルーチン(図14)にて算出された燃料噴射量TAU
(μs)の値がタイマAに書き込まれる。これによりマ
イクロコンピュータでは、図15(b)に示されるよう
に、該時間TAU(μs)の経過後、インジェクタを自
動的にOFF(オフ)とする。なお、こうしたタイマ制
御は、マイクロコンピュータの内部回路を通じて自動実
行される。
That is, when outputting the fuel injection pulse, first, in step S1701, the injector is turned on.
It is turned on, and in the next step S1702, the fuel injection amount TAU calculated in the above base routine (FIG. 14).
The value of (μs) is written to timer A. Thereby, in the microcomputer, as shown in FIG. 15B, the injector is automatically turned off after the elapse of the time TAU (μs). Note that such timer control is automatically executed through the internal circuit of the microcomputer.

【0014】またNE割り込みでは、こうして燃料噴射
パルスの出力処理を終えると次に、図16のステップS
1603の処理として、図15(c)に示される態様
で、イグナイタに対する点火時期パルスの出力処理が実
行される。この点火時期パルス出力処理については、図
18に、その具体手順を示す。
In the NE interrupt, when the output process of the fuel injection pulse is completed in this way, next, step S in FIG.
As the processing of 1603, the processing of outputting the ignition timing pulse to the igniter is executed in the mode shown in FIG. FIG. 18 shows a specific procedure of this ignition timing pulse output processing.

【0015】すなわち、該点火時期パルスの出力に際し
てはまず、ステップS1801にて図15(c)に示さ
れるイグナイタON(オン)時間TIGON(μs)が
計算される。これは例えば、 TIGON=T180/3 (μs) として算出される。そして次に、ステップS1802に
て、先に算出された時間T180(μs)から、今回算
出された時間TIGON(μs)及び上記ベースルーチ
ン(図14)にて算出された点火時期TESA(μs)
を差し引いた時間(T180−TIGON−TESA)
がタイマBに書き込まれ、更にステップS1803に
て、同イグナイタON時間TIGON(μs)がタイマ
Cに書き込まれる。これによりマイクロコンピュータで
は、図15(c)に示されるように、タイマBに書き込
まれた時間(T180−TIGON−TESA)の経過
後、イグナイタを自動的にONとし、更にタイマCに書
き込まれた時間TIGONの経過後、同イグナイタを自
動的にOFFとする。これらのタイマ制御も、マイクロ
コンピュータの内部回路を通じて自動実行される。
That is, when outputting the ignition timing pulse, first, in step S1801, the igniter ON time TIGON (μs) shown in FIG. 15C is calculated. This is calculated as, for example, TIGON = T180 / 3 (μs). Then, in step S1802, from the time T180 (μs) previously calculated, the time TIGON (μs) calculated this time and the ignition timing TESA (μs) calculated in the above base routine (FIG. 14).
Time minus (T180-TIGON-TESA)
Is written in the timer B, and the igniter ON time TIGON (μs) is written in the timer C in step S1803. As a result, in the microcomputer, as shown in FIG. 15C, after the time (T180-TIGON-TESA) written in the timer B has elapsed, the igniter is automatically turned ON and further written in the timer C. After the lapse of time TIGON, the igniter is automatically turned off. These timer controls are also automatically executed through the internal circuit of the microcomputer.

【0016】以上のように、こうしたエンジン制御装置
にあっては、エンジンの燃料噴射量TAUや点火時期T
ESA等の制御量が、上記A/D変換器を通じてA/D
変換されるエンジン水温や吸気管内圧力等の値をもとに
算出される。このため、上記A/D変換器に何らかの異
常が来たしたような場合には、上述したエンジン制御を
正常に維持することができなくなる不都合がある。
As described above, in such an engine control device, the fuel injection amount TAU of the engine and the ignition timing T
The amount of control such as ESA can be converted to A / D through the A / D converter.
It is calculated based on the converted engine water temperature and intake pipe pressure. Therefore, if some abnormality occurs in the A / D converter, there is a disadvantage that the above-described engine control cannot be normally maintained.

【0017】そこで従来は、例えば特開平3−2331
60号公報に記載の装置のように、A/D変換器の異常
時には、そのA/D変換値に代えて、予め設定した固定
値によりそれら制御量を演算するといったエンジン制御
手法が提案されている。
Therefore, in the prior art, for example, Japanese Patent Laid-Open No. 3-23331.
An engine control method has been proposed in which, when the A / D converter is abnormal, as in the device described in Japanese Patent Laid-Open No. 60, the control amounts are calculated using preset fixed values instead of the A / D converted values. There is.

【0018】[0018]

【発明が解決しようとする課題】A/D変換器の異常
時、このように予め設定した固定値によりそれら制御量
を演算する制御手法によれば、異常なA/D変換値に基
づく異常な制御量が演算されることもなく、正常なエン
ジン制御が維持されるかのようにみえる。
When the A / D converter is in an abnormal state, the control method for calculating the controlled variables with the preset fixed values as described above causes an abnormal state based on the abnormal A / D converted value. It seems as if normal engine control is maintained without calculating the control amount.

【0019】しかし一般に、上記マイクロコンピュータ
(或いはそのベースルーチン)に対する割り込みの優先
順位は、各種制御量の出力処理にかかるNE割り込みが
最も高く、上記A/D変換値の取り込みにかかるSIN
割り込みは比較的低い。上述したエンジン制御装置にお
けるそれら割り込みの優先順位を図19に参考までに示
す。
However, in general, the priority of the interrupt to the microcomputer (or its base routine) is the highest for the NE interrupt related to the output processing of various control amounts, and the SIN related to the acquisition of the A / D conversion value.
Interrupts are relatively low. The priorities of the interrupts in the engine control device described above are shown in FIG. 19 for reference.

【0020】上述のように、こうしたエンジン制御装置
にあっては通常、 (A)ベースルーチン(図14)によって、エンジンの
回転数NE(rpm)、燃料噴射量TAU(μs)、点
火時期TESA(μs)、等々についての計算を繰り返
し実行する。 (B)タイマ割り込み(図13)によって、A/D変換
器に対しA/D変換要求(A/Dチャネル)を発する。 (C)SIN割り込み(図12)によって、受信された
A/D変換値をRAMに格納する。 (D)NE割り込み(図16)によって、燃料噴射パル
ス並びに点火時期パルスを出力する。 といった内容の制御が行われる。
As described above, in such an engine control system, the engine speed NE (rpm), fuel injection amount TAU (μs), ignition timing TESA ( μs), etc. are repeatedly performed. (B) Issue an A / D conversion request (A / D channel) to the A / D converter by a timer interrupt (FIG. 13). (C) The A / D conversion value received by the SIN interrupt (FIG. 12) is stored in the RAM. (D) The NE interrupt (FIG. 16) outputs the fuel injection pulse and the ignition timing pulse. The contents are controlled.

【0021】ここで、上記燃料噴射パルス並びに点火時
期パルスは、クランク角センサからの入力に対する出力
タイミングが極めて重要であり、特に点火時期パルス
は、これが正確なタイミングで出力されないとノッキン
グを起こしたりする。このため通常は、図19に示され
るように、これらパルスの出力を行う上記NE割り込み
が最も高い優先順位におかれるようになっている。
The output timing of the fuel injection pulse and the ignition timing pulse with respect to the input from the crank angle sensor is very important. Especially, the ignition timing pulse causes knocking unless it is output at accurate timing. . For this reason, normally, as shown in FIG. 19, the NE interrupt for outputting these pulses has the highest priority.

【0022】これに対し、受信されたA/D変換値をR
AMに格納する上記SIN割り込みは、エンジン制御に
とって上述のようなタイミング的な制約はあまりないた
め、同図19に示されるように低い優先順位におかれる
のが普通である。
On the other hand, the received A / D conversion value is converted to R
The SIN interrupt stored in the AM is usually given a low priority as shown in FIG. 19 because there are not so many timing restrictions as described above for engine control.

【0023】一方、燃料噴射量TAUや点火時期TES
A等の制御量は、エンジン水温、吸気管内圧力等に関す
るA/D変換値をもとに多くの演算を実行したり、各種
補正を加えたりと、比較的長い処理時間を要するため、
通常は上述のように、ベースルーチンによって算出され
る。
On the other hand, the fuel injection amount TAU and the ignition timing TES
Since the control amount of A and the like requires a relatively long processing time, for example, many calculations are executed based on the A / D converted values related to the engine water temperature, the intake pipe pressure, etc., and various corrections are required.
Usually, it is calculated by the base routine as described above.

【0024】このような背景によると、上記従来の ・A/D変換器の異常時、A/D変換値に代えて、予め
設定した固定値により制御量を演算する。 といった制御手法も、例えば同A/D変換器からのA/
D変換値をシリアル入力する通信線(SIN)がGND
(グランド)ショートしたような場合には、次のような
不都合が新たに生じることとなっていた。
According to such a background, when the conventional A / D converter is abnormal, the control amount is calculated using a preset fixed value instead of the A / D converted value. The control method such as, for example, A / D from the same A / D converter
The communication line (SIN) for serially inputting the D conversion value is GND
In the case of (ground) short circuit, the following inconveniences would occur.

【0025】すなわち、このシリアル入力通信線がGN
Dショートした場合、マイクロコンピュータでは常に上
記論理LレベルとなるSTARTbitが検出されるよ
うになり、ひいては図11(c)に示される内部割り込
み要求信号に基づく上述したSIN割り込みが多発され
るようになる。そしてこのため、上記ベースルーチンは
全く回らなくなり、燃料噴射量TAUや点火時期TES
A等の制御量の演算も行われなくなる。こうした実情
は、A/D変換値に代えて、上記固定値を用いる場合で
あっても同様である。
That is, this serial input communication line is GN
When the D is short-circuited, the microcomputer always detects the START bit that is at the logical L level, and as a result, the above-mentioned SIN interrupt based on the internal interrupt request signal shown in FIG. . As a result, the above base routine does not rotate at all, and the fuel injection amount TAU and ignition timing TES
The calculation of the control amount such as A is not performed either. This situation is the same even when the fixed value is used instead of the A / D converted value.

【0026】しかもこのとき、該SIN割り込みよりも
優先順位の高い上記NE割り込みによって、燃料噴射パ
ルスや点火時期パルスの出力にかかる処理は確保される
こととなり、こうした異常が来たす直前の燃料噴射量T
AUや点火時期TESA等に基づいて、これら燃料噴射
パルスや点火時期パルスが出力されることとなる。
At this time, the NE interrupt, which has a higher priority than the SIN interrupt, secures the processing related to the output of the fuel injection pulse and the ignition timing pulse, and the fuel injection amount T immediately before such an abnormality occurs.
These fuel injection pulse and ignition timing pulse are output based on AU, ignition timing TESA, and the like.

【0027】したがって、この異常が来たす直前、エン
ジンの運転状態により、例えば上記点火時期TESAが
「最進角」していたり、或いは上記燃料噴射量TAUが
空燃比「リーン」の状態になっていたりした場合には、
良好なエンジン制御が行われず、ストールに陥ったり、
ノッキングを起こしたりすることともなる。
Therefore, immediately before the occurrence of this abnormality, for example, the ignition timing TESA is "advanced" or the fuel injection amount TAU is in the air-fuel ratio "lean" depending on the operating state of the engine. If you do,
Good engine control is not performed, it may stall,
It may also cause knocking.

【0028】また、リセット回路(ウォッチドッグ回
路)によりその動作が監視されるマイクロコンピュータ
にあっては、こうしてベースルーチンの処理が停止され
ることにより、該リセット回路に対するウォッチドッグ
クリア(WDC)信号の出力も停止される。結局、この
ようなマイクロコンピュータでは、リセットがかかり続
け、上記燃料噴射パルスや点火時期パルスの出力も完全
に停止されてしまうこととなる。
Further, in the microcomputer whose operation is monitored by the reset circuit (watchdog circuit), the processing of the base routine is stopped in this way, whereby the watchdog clear (WDC) signal to the reset circuit is sent. Output is also stopped. After all, in such a microcomputer, the reset continues to be applied, and the outputs of the fuel injection pulse and the ignition timing pulse are completely stopped.

【0029】なお、上記公報記載のもう1つの装置のよ
うにバックアップ回路を別途設け、A/D変換器の異常
時には、このバックアップ回路によって当該エンジン制
御を補償するようにすれば、こうした不都合も確かに回
避されるようにはなる。しかしこの場合、バックアップ
回路を別途設けることによるスペース的及びコスト的な
不都合が無視できないものとなる。
Incidentally, if a backup circuit is additionally provided like the other device described in the above publication and the engine control is compensated by this backup circuit when the A / D converter is abnormal, such inconvenience will certainly occur. Will be avoided. However, in this case, the space and cost inconveniences caused by separately providing the backup circuit cannot be ignored.

【0030】この発明は、こうした実情に鑑みてなされ
たものであり、バックアップ回路等の配設を不要とし
て、A/D変換器の異常時におけるエンジン制御を好適
に補償することのできるエンジン制御装置を提供するこ
とを目的とする。
The present invention has been made in view of the above circumstances, and an engine control device capable of suitably compensating the engine control when the A / D converter is in an abnormal state without providing a backup circuit or the like. The purpose is to provide.

【0031】[0031]

【課題を解決するための手段】こうした目的を達成する
ため、請求項1記載の発明では、エンジンの運転状態を
検出する運転状態検出手段と、該運転状態検出手段のア
ナログ出力をディジタル値に変換するA/D変換器と、
このA/D変換器によるA/D変換値をその変換完了割
り込みに基づき取り込んでエンジン制御量を演算する制
御量演算手段と、前記変換完了割り込みよりも優先順位
の高い割り込みに基づき該演算されたエンジン制御量を
出力する制御量出力手段と、この出力される制御量に応
じてエンジン被制御部を駆動する駆動手段とを有してエ
ンジンの運転を制御するエンジン制御装置として、前記
A/D変換器の異常を検出する異常検出手段を具え、前
記制御量出力手段は、この異常検出手段によってA/D
変換器の異常が検出されるとき、前記演算されたエンジ
ン制御量に代わる所定のフェールセーフ値を前記駆動手
段に対して出力する構成とする。
In order to achieve such an object, in the invention described in claim 1, the operating condition detecting means for detecting the operating condition of the engine and the analog output of the operating condition detecting means are converted into digital values. A / D converter
Control amount calculation means for calculating the engine control amount by fetching the A / D converted value by the A / D converter based on the conversion completion interrupt, and the calculation based on the interrupt having a higher priority than the conversion completion interrupt. As an engine control device for controlling the operation of an engine, the A / D is provided with a control amount output means for outputting an engine control amount, and a drive means for driving an engine controlled part according to the output control amount. The control amount output means includes an abnormality detecting means for detecting an abnormality of the converter, and the control amount output means uses the abnormality detecting means.
When a converter abnormality is detected, a predetermined fail-safe value that replaces the calculated engine control amount is output to the drive means.

【0032】また、請求項2記載の発明では、該請求項
1記載の発明の構成において、前記異常検出手段は、前
記A/D変換器の、少なくともその変換完了状態が持続
される異常についてこれを検出するものであるとする。
Further, in the invention of claim 2, in the configuration of the invention of claim 1, the abnormality detecting means detects an abnormality of the A / D converter in which at least the conversion completion state is maintained. Is to be detected.

【0033】また、請求項3記載の発明では、該請求項
2記載の発明の構成において、前記制御量演算手段は、
ループ処理に基づく前記エンジン制御量の繰り返しの演
算に伴いウォッチドッグクリア信号を繰り返し生成して
これをウォッチドッグ回路に出力するものであるとする
とき、前記エンジン制御装置を、前記異常検出手段によ
って前記A/D変換器の変換完了状態が持続される異常
が検出されるとき、前記変換完了割り込みよりも優先順
位の高い周期割り込みに基づき前記ウォッチドッグクリ
ア信号を前記ウォッチドッグ回路に対し強制出力する手
段を更に具えるものとして構成する。
According to a third aspect of the invention, in the configuration of the second aspect of the invention, the control amount computing means is:
When it is assumed that a watchdog clear signal is repeatedly generated and is output to a watchdog circuit in accordance with repeated calculation of the engine control amount based on loop processing, the engine control device is configured to operate by the abnormality detection means. Means for forcibly outputting the watchdog clear signal to the watchdog circuit based on a periodic interrupt having a higher priority than the conversion completion interrupt when an abnormality in which the conversion completion state of the A / D converter is sustained is detected. Is further provided.

【0034】また、請求項4記載の発明では、これら請
求項1または2または3記載の発明の構成において、前
記エンジンの回転数を検出する回転数検出手段と、該検
出される回転数に応じて前記フェールセーフ値を変更す
るフェールセーフ値変更手段とを更に具える構成とす
る。
According to the invention of claim 4, in the structure of the invention of claim 1, 2 or 3, the number of revolutions detecting means for detecting the number of revolutions of the engine and the number of revolutions detected are detected. Fail-safe value changing means for changing the fail-safe value.

【0035】また、請求項5記載の発明では、エンジン
の運転状態を検出する運転状態検出手段と、該運転状態
検出手段のアナログ出力をディジタル値に変換するA/
D変換器と、このA/D変換器によるA/D変換値をそ
の変換完了割り込みに基づき取り込んでエンジン制御量
を演算する制御量演算手段と、前記変換完了割り込みよ
りも優先順位の高い割り込みに基づき該演算されたエン
ジン制御量を出力する制御量出力手段と、この出力され
る制御量に応じてエンジン被制御部を駆動する駆動手段
とを有してエンジンの運転を制御するエンジン制御装置
として、前記A/D変換器の異常を検出する異常検出手
段を具え、前記制御量演算手段は、この異常検出手段に
よってA/D変換器の異常が検出されるとき、前記変換
完了割り込みを禁止し、前記演算すべきエンジン制御量
に代わる所定のフェールセーフ値を前記制御量出力手段
に与える構成とする。
According to the fifth aspect of the invention, the operating state detecting means for detecting the operating state of the engine and the A / A for converting the analog output of the operating state detecting means into a digital value.
A D converter, control amount calculation means for calculating an engine control amount by fetching an A / D conversion value by the A / D converter based on the conversion completion interrupt, and an interrupt having a higher priority than the conversion completion interrupt. As an engine control device for controlling the operation of the engine, which has a control amount output means for outputting the calculated engine control amount based on the above, and a drive means for driving the engine controlled part according to the output control amount. The control amount calculation means prohibits the conversion completion interrupt when the abnormality detecting means detects an abnormality in the A / D converter. A predetermined fail-safe value in place of the engine control amount to be calculated is given to the control amount output means.

【0036】また、請求項6記載の発明では、該請求項
5記載の発明の構成において、前記異常検出手段は、前
記A/D変換器の、少なくともその変換完了状態が持続
される異常についてこれを検出するものであるとする。
Further, in the invention of claim 6, in the configuration of the invention of claim 5, the abnormality detecting means detects an abnormality of the A / D converter in which at least the conversion completion state is maintained. Is to be detected.

【0037】また、請求項7記載の発明では、これら請
求項5または6記載の発明の構成において、前記エンジ
ンの回転数を検出する回転数検出手段と、該検出される
回転数に応じて前記フェールセーフ値を変更するフェー
ルセーフ値変更手段とを更に具える構成とする。
Further, in the invention according to claim 7, in the structure of the invention according to claim 5 or 6, the rotational speed detecting means for detecting the rotational speed of the engine, and the rotational speed detecting means according to the detected rotational speed. The configuration further comprises fail-safe value changing means for changing the fail-safe value.

【0038】また、請求項8記載の発明では、これら請
求項1〜7の何れかに記載の発明の構成において、前記
異常検出手段によってA/D変換器の異常が検出された
旨の情報が格納されるメモリと、該メモリにこのA/D
変換器が異常である旨の情報が存在することに基づいて
適宜の警報処理を実行する警報手段とを更に具える構成
とする。
According to the invention of claim 8, in the configuration of the invention according to any one of claims 1 to 7, there is provided information indicating that an abnormality of the A / D converter is detected by the abnormality detecting means. The memory to be stored and this A / D
The configuration further includes an alarm unit that executes appropriate alarm processing based on the presence of information indicating that the converter is abnormal.

【0039】[0039]

【作用】エンジン制御装置として、上記請求項1記載の
発明の ・前記A/D変換器の異常を検出する異常検出手段を具
え、前記制御量出力手段は、この異常検出手段によって
A/D変換器の異常が検出されるとき、前記演算された
エンジン制御量に代わる所定のフェールセーフ値を前記
駆動手段に対して出力する。 といった構成によれば、A/D変換器の如何なる異常に
際しても、前記優先順位の高い割り込みに基づいて、フ
ェールセーフ値が前記駆動手段に対し出力されるように
なる。
As an engine control device, the invention according to the above-mentioned claim 1 is provided with: abnormality detecting means for detecting abnormality of the A / D converter, and the control amount output means uses the abnormality detecting means for A / D conversion. When a malfunction of the vessel is detected, a predetermined fail-safe value that replaces the calculated engine control amount is output to the drive means. With such a configuration, in the event of any abnormality in the A / D converter, the fail-safe value is output to the drive means based on the interrupt with the high priority.

【0040】すなわち、A/D変換器に異常が来たす直
前のエンジン運転状態が如何なるものであったとして
も、A/D変換器の異常発生後は、このフェールセーフ
値に基づき、前記ストールに陥ったり、ノッキングを起
こしたりすることのない適正なエンジン制御が維持され
るようになる。
That is, no matter what the engine operating condition is just before the A / D converter becomes abnormal, after the A / D converter has failed, the stall is caused based on the fail-safe value. Proper engine control without causing knocking or knocking will be maintained.

【0041】また、上記請求項2記載の発明の ・前記異常検出手段は、前記A/D変換器の、少なくと
もその変換完了状態が持続される異常についてこれを検
出する。 といった構成によれば、例えば前述したシリアル入力線
のGNDショート等によってA/D変換器の変換完了割
り込み(SIN割り込み)が多発し、前記制御量演算手
段によるエンジン制御量の演算そのものが停止される場
合でも、こうした事態を的確に検出することができるよ
うになる。そしてこの場合であれ、上述した優先順位の
高い割り込みに基づくフェールセーフ値の出力は確保さ
れるため、同フェールセーフ値に基づく適正なエンジン
制御は好適に維持される。
In the invention according to claim 2, the abnormality detecting means detects an abnormality of the A / D converter in which at least the conversion completion state is maintained. With such a configuration, conversion completion interrupts (SIN interrupts) of the A / D converter occur frequently due to, for example, the GND short circuit of the serial input line described above, and the calculation of the engine control amount itself by the control amount calculation means is stopped. Even in such a case, such a situation can be accurately detected. Even in this case, since the output of the fail-safe value based on the interrupt with the high priority described above is ensured, the appropriate engine control based on the fail-safe value is appropriately maintained.

【0042】またこの場合、上記請求項3記載の発明の ・前記制御量演算手段は、ループ処理に基づく前記エン
ジン制御量の繰り返しの演算に伴いウォッチドッグクリ
ア信号を繰り返し生成してこれをウォッチドッグ回路に
出力する。 ・前記エンジン制御装置は、前記異常検出手段によって
前記A/D変換器の変換完了状態が持続される異常が検
出されるとき、前記変換完了割り込みよりも優先順位の
高い周期割り込みに基づき前記ウォッチドッグクリア信
号を前記ウォッチドッグ回路に対し強制出力する手段を
更に具える。 といった構成によれば、同制御装置としての動作が上記
ウォッチドッグ回路によって監視される場合であれ、そ
してA/D変換器の当該異常により、前記制御量演算手
段によるエンジン制御量の演算そのものが停止される場
合であれ、同制御装置自身の動作がこのウォッチドッグ
回路によってリセットされるようなことはなくなる。
Further, in this case, according to the invention of claim 3, the control amount calculation means repeatedly generates a watchdog clear signal in accordance with the repeated calculation of the engine control amount based on the loop processing, and outputs the watchdog clear signal. Output to the circuit. When the abnormality detecting means detects an abnormality in which the conversion completion state of the A / D converter is maintained, the engine control device performs the watchdog based on a periodic interrupt having a higher priority than the conversion completion interrupt. It further comprises means for forcibly outputting a clear signal to the watchdog circuit. With such a configuration, even when the operation as the control device is monitored by the watchdog circuit, and due to the abnormality of the A / D converter, the calculation of the engine control amount itself by the control amount calculation means is stopped. In this case, the operation of the control device itself will not be reset by the watchdog circuit.

【0043】したがってこの場合も、前記優先順位の高
い割り込みに基づくフェールセーフ値の出力は確保さ
れ、同フェールセーフ値に基づく適正なエンジン制御が
好適に維持されるようになる。
Therefore, also in this case, the output of the fail-safe value based on the interrupt with the higher priority is secured, and the proper engine control based on the fail-safe value can be preferably maintained.

【0044】一方、請求項4記載の発明によるように、 ・前記エンジンの回転数を検出する回転数検出手段を具
える。 ・該検出される回転数に応じて前記フェールセーフ値を
変更するフェールセーフ値変更手段を具える。 といった構成を採用すれば、A/D変換器異常時の、前
記フェールセーフ値に基づくエンジン制御をより適正な
ものとすることができるようになる。
On the other hand, according to the fourth aspect of the present invention, it comprises: a rotation speed detecting means for detecting the rotation speed of the engine. A fail safe value changing means for changing the fail safe value according to the detected rotation speed. By adopting such a configuration, it becomes possible to make the engine control based on the fail-safe value more appropriate when the A / D converter is abnormal.

【0045】また、同エンジン制御装置として、上記請
求項5記載の発明の ・前記A/D変換器の異常を検出する異常検出手段を具
え、前記制御量演算手段は、この異常検出手段によって
A/D変換器の異常が検出されるとき、前記変換完了割
り込みを禁止し、前記演算すべきエンジン制御量に代わ
る所定のフェールセーフ値を前記制御量出力手段に与え
る。 といった構成によっても、A/D変換器の異常時、前記
制御量出力手段には確実にフェールセーフ値が与えら
れ、この与えられたフェールセーフ値に応じて前記駆動
手段がエンジン被制御部を駆動するようになる。
Further, the engine control device of the invention according to claim 5 is provided with: abnormality detecting means for detecting an abnormality of the A / D converter, and the control amount calculating means is When an abnormality of the / D converter is detected, the conversion completion interrupt is prohibited, and a predetermined fail-safe value in place of the engine control amount to be calculated is given to the control amount output means. With such a configuration, when the A / D converter is in an abnormal state, the fail safe value is surely given to the control amount output means, and the drive means drives the engine controlled portion according to the given fail safe value. Come to do.

【0046】すなわちこの場合、A/D変換器の異常時
にその変換完了割り込みが禁止されるため、前記制御量
演算手段がループ処理によってエンジン制御量の演算を
行うものであったとしてもその処理が停止されることは
なくなる。そしてこのとき、同制御量演算手段では、A
/D変換値によることなく、フェールセール値を前記制
御量出力手段に与える処理を行うことから、この場合
も、異常な挙動を起こすことのない適正なエンジン制御
が維持されるようになる。
That is, in this case, since the conversion completion interrupt is prohibited when the A / D converter is abnormal, even if the control amount calculating means calculates the engine control amount by a loop process, the process is executed. It will not be stopped. At this time, the same control amount calculation means
Since the processing for giving the fail-sale value to the control amount output means is performed without depending on the / D conversion value, proper engine control without causing abnormal behavior can be maintained in this case as well.

【0047】なおこのとき、制御量演算手段では、前記
従来の制御手法として示した例の如く、予め設定した固
定値により制御量を演算することなく、フェールセール
値を直接、制御量出力手段に与えることで、それら演算
に必要とされるメモリ空間を節約することができること
ともなる。
At this time, the control amount calculating means directly outputs the fail-sale value to the control amount output means without calculating the control amount with a preset fixed value as in the example shown as the conventional control method. By giving it, the memory space required for those operations can be saved.

【0048】また、こうした構成を前提とした上記請求
項6記載の発明の ・前記異常検出手段は、前記A/D変換器の、少なくと
もその変換完了状態が持続される異常についてこれを検
出する。 といった構成によれば、この場合も、前述したシリアル
入力線のGNDショート等によって、通常であればA/
D変換器の変換完了割り込み(SIN割り込み)が多発
する事態を的確に検出することができるようになる。し
かもこの場合には上述の如く、制御量演算手段によって
該割り込みが即座に禁止され、その後は同制御量演算手
段を通じてフェールセール値が制御量出力手段に与えら
れることとなるため、同フェールセーフ値に基づく適正
なエンジン制御はこの場合も好適に維持される。
Further, in the invention according to the above-mentioned claim 6 on the premise of such a configuration, the abnormality detecting means detects the abnormality of the A / D converter in which at least the conversion completion state is maintained. According to the above configuration, in this case as well, due to the GND short circuit of the serial input line or the like, normally, A /
It becomes possible to accurately detect the situation where the conversion completion interrupt (SIN interrupt) of the D converter frequently occurs. Moreover, in this case, as described above, the interrupt is immediately prohibited by the control amount calculation means, and thereafter, the fail-sale value is given to the control amount output means through the control amount calculation means. Proper engine control based on .alpha.

【0049】一方、これら構成において、請求項7記載
の発明によるように、 ・前記エンジンの回転数を検出する回転数検出手段を具
える。 ・該検出される回転数に応じて前記フェールセーフ値を
変更するフェールセーフ値変更手段を具える。 といった構成を採用すれば、この場合も、A/D変換器
異常時の、前記フェールセーフ値に基づくエンジン制御
はより適正なものとなる。
On the other hand, in these configurations, as in the invention according to claim 7, it comprises: a rotation speed detecting means for detecting the rotation speed of the engine. A fail safe value changing means for changing the fail safe value according to the detected rotation speed. If such a configuration is adopted, in this case as well, engine control based on the fail-safe value when the A / D converter is abnormal becomes more appropriate.

【0050】また、以上の何れの構成であれ、請求項8
記載の発明によるように、 ・前記異常検出手段によってA/D変換器の異常が検出
された旨の情報が格納されるメモリを具える。 ・該メモリにこのA/D変換器が異常である旨の情報が
存在することに基づいて適宜の警報処理を実行する警報
手段を具える。 といった構成を更に採用するものとすれば、A/D変換
器の異常が検出された旨を運転者やディーラー等に確実
に知らしめることができるようになる。
Further, in any of the above constructions,
According to the invention described above, a memory is provided for storing information indicating that an abnormality of the A / D converter is detected by the abnormality detecting means. An alarm means is provided for executing appropriate alarm processing based on the presence of information indicating that the A / D converter is abnormal in the memory. If such a configuration is further adopted, the fact that the abnormality of the A / D converter is detected can be surely notified to the driver or the dealer.

【0051】すなわち、当該車両をその後も通常に走行
すべきか、或いは退避走行すべきか等についての判断
を、上記警報処理を通じて好適に支援することができる
ようになる。
That is, it becomes possible to favorably support the judgment as to whether the vehicle should normally run afterwards or whether to run in the escape mode through the alarm processing.

【0052】なお、上記メモリに格納された異常情報に
基づく同警報処理としては、例えば警告ランプの点灯や
ブザーの鳴動、或いはディーラー等での診断処理時にお
ける同旨の警告若しくはエラー表示等がある。
The alarm processing based on the abnormality information stored in the memory includes, for example, lighting of a warning lamp, sounding of a buzzer, or warning or error display of the same at the time of diagnosis processing at a dealer or the like.

【0053】[0053]

【実施例】図1に、この発明にかかるエンジン制御装置
の一実施例を示す。この実施例のエンジン制御装置は、
エンジンの燃料噴射や点火にかかる動作を電子制御する
に際し、該エンジンの運転状態を示すアナログ量をディ
ジタル量に変換するA/D変換器に異常が来たした場合
でも同制御を適正に維持することのできる装置として構
成されている。
1 shows an embodiment of an engine control device according to the present invention. The engine control device of this embodiment is
When electronically controlling the operation related to fuel injection or ignition of the engine, the control is appropriately maintained even when an abnormality occurs in the A / D converter that converts the analog amount indicating the operating state of the engine into a digital amount. It is configured as a device that can.

【0054】はじめに、図1を参照して、同実施例の装
置の構成について説明する。図1に示されるように、同
実施例の装置は、大きくは制御対象となるエンジン(図
示せず)の運転状態を検出するセンサ群1〜5、電子制
御装置6、及びこの電子制御装置6によってその駆動が
制御される警告ランプ7やアクチュエータ群8〜9を有
して構成されている。
First, with reference to FIG. 1, the structure of the apparatus of the embodiment will be described. As shown in FIG. 1, the apparatus according to the embodiment is mainly composed of sensor groups 1 to 5 for detecting an operating state of an engine (not shown) to be controlled, an electronic control unit 6, and this electronic control unit 6. It has a warning lamp 7 and a group of actuators 8 to 9 whose drive is controlled by.

【0055】このうち、センサ群は、これも大きくは、
ディジタル量を出力するものとアナログ量を出力するも
のとに分類される。すなわち、エンジンのクランク軸に
配設されてその回転に対応した先の図15(a)に示さ
れるようなパルスを出力するクランク角センサ1、及び
当該車両の変速機がニュートラル位置にあるか否かを検
出するニュートラル検出スイッチ2などはディジタル量
を出力するものとして分類される。他方、エンジンの吸
気管内圧力を検出する吸気管内圧力センサ3やエンジン
の冷却水温を検出するエンジン水温センサ4、更にはエ
ンジン吸気温を検出する吸気温センサ5等は、アナログ
量を出力するものとして分類される。
Of these, the sensor group is
It is classified into one that outputs a digital quantity and one that outputs an analog quantity. That is, whether or not the crank angle sensor 1 which is arranged on the crankshaft of the engine and outputs a pulse corresponding to the rotation thereof as shown in FIG. 15A and the transmission of the vehicle are in the neutral position. The neutral detection switch 2 or the like for detecting whether or not is classified as a device that outputs a digital amount. On the other hand, the intake pipe internal pressure sensor 3 for detecting the pressure in the intake pipe of the engine, the engine water temperature sensor 4 for detecting the cooling water temperature of the engine, and the intake air temperature sensor 5 for detecting the engine intake air temperature are assumed to output analog quantities. being classified.

【0056】また、電子制御装置6は、マイクロコンピ
ュータ60をはじめ、ディジタルインターフェース6
1、アナログインターフェース62、A/D変換器6
3、駆動回路64、及びリセット回路(ウォッチドッグ
回路)65を基本的に具えて構成される同実施例のエン
ジン制御装置の中枢をなす装置である。
The electronic control unit 6 includes the microcomputer 60 and the digital interface 6
1, analog interface 62, A / D converter 6
3, a drive circuit 64 and a reset circuit (watchdog circuit) 65 are basically included in the engine control device of the embodiment.

【0057】この電子制御装置6では、上記センサ群1
〜5から出力される信号を取り込みつつ、それら信号内
容に応じた所定の演算を実行して、当該車両の計器パネ
ル等に配される警告ランプ7の点灯や当該エンジンの被
制御部であるインジェクタ8及びイグナイタ9の駆動を
制御する。
In this electronic control unit 6, the sensor group 1
5 to 5 while performing the predetermined calculation according to the contents of these signals, lighting the warning lamp 7 arranged on the instrument panel or the like of the vehicle and the injector which is the controlled part of the engine. 8 and igniter 9 are controlled.

【0058】ここで、上記ディジタル量を出力するもの
として分類されるクランク角センサ1やニュートラル検
出スイッチ2の出力は、該電子制御装置6の上記ディジ
タルインターフェース61に入力され、ここで「0」ま
たは「5」Vの2値電圧信号に変換されてマイクロコン
ピュータ60に取り込まれる。
Here, the outputs of the crank angle sensor 1 and the neutral detection switch 2 which are classified as those which output the digital amount are input to the digital interface 61 of the electronic control unit 6, where "0" or It is converted into a binary voltage signal of "5" V and taken into the microcomputer 60.

【0059】他方、上記アナログ量を出力するものとし
て分類される吸気管内圧力センサ3やエンジン水温セン
サ4、吸気温センサ5等の出力は、同電子制御装置6の
上記アナログインターフェース62に入力され、ここで
ノイズ除去等が行われた後、A/D変換器63の各A/
Dチャネルに入力される。
On the other hand, the outputs of the intake pipe internal pressure sensor 3, the engine water temperature sensor 4, the intake air temperature sensor 5, etc., which are classified as those which output the analog amount, are input to the analog interface 62 of the electronic control unit 6, After noise removal or the like is performed here, each A / D converter 63
Input to D channel.

【0060】このA/D変換器63とマイクロコンピュ
ータ60との間では、先の図10、図11に示されるよ
うなシリアル通信が行われている。すなわち、マイクロ
コンピュータ60から前記クロックに同期したSOUT
としてA/Dチャネルが指定されることによりA/D変
換器63が起動され、その該当するセンサ信号のA/D
変換値が、これも前記クロックに同期したSINとして
マイクロコンピュータ60に受信される。また、こうし
てA/D変換値がマイクロコンピュータ60に受信され
ることにより、該マイクロコンピュータ60では、その
内部において、図11(c)に示されるような割り込み
要求信号が発生され、SIN割り込みにかかる処理が開
始されるようになる。
Between the A / D converter 63 and the microcomputer 60, serial communication as shown in FIGS. 10 and 11 is performed. That is, SOUT synchronized with the clock from the microcomputer 60
The A / D converter 63 is activated by specifying the A / D channel as
The converted value is received by the microcomputer 60 as SIN which is also synchronized with the clock. Further, by receiving the A / D converted value by the microcomputer 60 in this way, in the microcomputer 60, an interrupt request signal as shown in FIG. 11C is generated in the microcomputer 60, and the SIN interrupt is generated. Processing will start.

【0061】マイクロコンピュータ60自身は、図1に
併せ示されるように、CPU601をはじめ、該CPU
601によって実行される制御プログラムや制御データ
が予登録されたROM602、同制御に際しての演算値
や上記A/D変換値等が一時格納されるRAM603、
バッテリバックアップされた不揮発性データメモリであ
るバックアップRAM604、タイマ制御に使用される
タイマ605等々を有して構成される周知の装置であ
る。
As shown in FIG. 1, the microcomputer 60 itself includes the CPU 601 and the CPU
A ROM 602 in which a control program executed by 601 and control data are pre-registered, a RAM 603 in which a calculated value at the time of the control, the A / D conversion value, and the like are temporarily stored,
This is a well-known device configured to have a backup RAM 604 which is a non-volatile data memory backed up by a battery, a timer 605 used for timer control, and the like.

【0062】そしてその動作として、基本的には、上記
制御プログラムをもとに上記センサ群1〜5の出力に応
じて燃料噴射パルス幅及び点火時期パルス幅を演算し、
それら演算した燃料噴射パルス幅及び点火時期パルス幅
をタイマ605の出力として発生する。これにより駆動
回路64では、該演算された燃料噴射パルス幅でインジ
ェクタ8を駆動し、また同演算された点火時期パルス幅
でイグナイタ9を駆動する。
As its operation, basically, the fuel injection pulse width and the ignition timing pulse width are calculated according to the outputs of the sensor groups 1 to 5 based on the control program.
The calculated fuel injection pulse width and ignition timing pulse width are generated as the output of the timer 605. As a result, the drive circuit 64 drives the injector 8 with the calculated fuel injection pulse width and drives the igniter 9 with the calculated ignition timing pulse width.

【0063】一方、マイクロコンピュータ60は、上記
リセット回路(ウォッチドッグ回路)65を通じてその
動作が監視されており、上記制御プログラムの実行に際
し、該リセット回路65にWDC(ウォッチドッグクリ
ア)信号を出力する(該WDC信号の反転を繰り返す)
ことで、自らが正常に動作している旨を同リセット回路
65に伝達する。すなわち、上記制御プログラムが正常
に動作しなくなり、上記WDC信号の出力(反転)が停
止されるとき、リセット回路65から同マイクロコンピ
ュータ60に対してリセットがかかるようになってい
る。
On the other hand, the operation of the microcomputer 60 is monitored through the reset circuit (watchdog circuit) 65 and outputs a WDC (watchdog clear) signal to the reset circuit 65 when the control program is executed. (Repeat the WDC signal repeatedly)
As a result, the fact that the device is operating normally is transmitted to the reset circuit 65. That is, when the control program does not operate normally and the output (inversion) of the WDC signal is stopped, the reset circuit 65 resets the microcomputer 60.

【0064】また、同実施例の装置において、マイクロ
コンピュータ60は、A/D変換器63の異常の有無を
常に監視しており、該A/D変換器63に異常が検出さ
れるときには、その旨示すフラグを上記RAM603ま
たはバックアップRAM604にセットするとともに上
記警告ランプ7を点灯駆動し、更には以下に説明するエ
ンジン制御の補償処理を実行する。
Further, in the apparatus of the present embodiment, the microcomputer 60 constantly monitors the presence / absence of an abnormality in the A / D converter 63, and when an abnormality is detected in the A / D converter 63, the abnormality is detected. A flag to that effect is set in the RAM 603 or the backup RAM 604, the warning lamp 7 is driven to light, and the compensation process for engine control described below is executed.

【0065】図2〜図7は、上記マイクロコンピュータ
60によるA/D変換器63の異常検出処理も含めて、
そのエンジン制御にかかる制御手順、並びに補償処理手
順を示したものであり、次に、これら図2〜図7を併せ
参照して、同実施例の装置のエンジン制御動作を更に詳
述する。
2 to 7, including the abnormality detection processing of the A / D converter 63 by the microcomputer 60,
The control procedure relating to the engine control and the compensation processing procedure are shown. Next, the engine control operation of the apparatus of the embodiment will be described in further detail with reference to FIGS.

【0066】まず、A/D変換器63の異常を、その通
信線の異常も含めて検出する方法について説明する。こ
の異常検出は、図2に示されるマイクロコンピュータ6
0のタイマ割り込みにかかる処理、並びに図3に示され
る同マイクロコンピュータ60の上記SIN割り込みに
かかる処理を通じて行われる。なお前述したように、タ
イマ割り込みは、例えば1ms(ミリ秒)毎に周期的に
発生する割り込みであり、SIN割り込みは、A/D変
換値の前記STARTbit(図11参照)が検出され
て10数ビット後に発生する割り込みである。
First, a method of detecting an abnormality of the A / D converter 63 including an abnormality of the communication line will be described. This abnormality detection is performed by the microcomputer 6 shown in FIG.
This is performed through the processing related to the timer interrupt of 0 and the processing related to the SIN interrupt of the microcomputer 60 shown in FIG. As described above, the timer interrupt is an interrupt that is periodically generated, for example, every 1 ms (millisecond), and the SIN interrupt is 10 or more when the START bit (see FIG. 11) of the A / D conversion value is detected. This is an interrupt that occurs after a bit.

【0067】また、これら図2及び図3において、カウ
ンタCADCERは、A/D変換器63自身の故障、或
いはその通信線が断線したような異常を検出するカウン
タであり、それら異常が発生した旨判断されるとき、フ
ラグXADCERがセット(=1)される。一方、カウ
ンタCADCERSは、A/D変換器63との通信線が
GNDショートしたような異常、すなわち前述の如く、
上記SIN割り込みが多発するような異常を検出するカ
ウンタであり、こうした異常が発生した旨判断されると
きには、フラグXADCERSがセット(=1)され
る。なお、これらフラグXADCER及びXADCER
Sは、上記RAM603またはバックアップRAM60
4にセットされる。バックアップRAM604に対して
セットされた場合には電子制御装置6への給電停止後
も、それらフラグ内容は保持される。何れの場合も異常
検出時、ディーラー等における車両診断の際に、それら
フラグ内容に基づく適宜の警報処理(例えばエラー表
示)が行われる。そして同実施例の装置にあっては、こ
れらフラグXADCER及びXADCERSがRAM6
03またはバックアップRAM604にセットされるこ
とにより、上記警告ランプ7が点灯制御され、A/D変
換器63に異常が発生した旨、運転者等に警告される。
In FIG. 2 and FIG. 3, the counter CADCER is a counter for detecting a failure of the A / D converter 63 itself or an abnormality such as a disconnection of its communication line. When judged, the flag XADCER is set (= 1). On the other hand, the counter CADCERS is abnormal such that the communication line with the A / D converter 63 is GND shorted, that is, as described above.
This is a counter for detecting an abnormality in which the SIN interrupts occur frequently, and when it is determined that such an abnormality has occurred, the flag XADCERS is set (= 1). Note that these flags XADCER and XADCER
S is the RAM 603 or the backup RAM 60
Set to 4. When set in the backup RAM 604, the contents of these flags are retained even after the power supply to the electronic control unit 6 is stopped. In either case, when an abnormality is detected and a vehicle is diagnosed by a dealer or the like, appropriate alarm processing (for example, error display) is performed based on the flag contents. And in the apparatus of the embodiment, these flags XADCER and XADCERS are stored in the RAM 6
03 or the backup RAM 604, the warning lamp 7 is controlled to be turned on, and the driver or the like is warned that an abnormality has occurred in the A / D converter 63.

【0068】さて、この異常検出に際し、マイクロコン
ピュータ60では、図2に示されるタイマ割り込み、並
びに図3に示されるSIN割り込みにおいて、それぞれ
次の処理を実行する。
Upon detection of this abnormality, the microcomputer 60 executes the following processes in the timer interrupt shown in FIG. 2 and the SIN interrupt shown in FIG.

【0069】マイクロコンピュータ60はまず、タイマ
割り込みがかかる都度、そのステップS201にて、上
記カウンタCADCERの計数値が最大値(「25
5」)となっているか否かをチェックし、最大値に達し
ていなければ、次のステップS202にて、同カウンタ
CADCERの計数値をインクリメントする。なお、こ
のカウンタCADCERの計数値は、SIN割り込みが
かかることによって「0」にリセットされる(図3ステ
ップS303)。
Whenever a timer interrupt occurs, the microcomputer 60 first sets the count value of the counter CADCER to the maximum value ("25" in step S201).
5 ”), and if the maximum value has not been reached, the count value of the counter CADCER is incremented in the next step S202. The count value of the counter CADCER is reset to "0" by the SIN interrupt (step S303 in FIG. 3).

【0070】そしてマイクロコンピュータ60では、該
タイマ割り込みのステップS203にて、このカウンタ
CADCERの計数値が CADCER>10 であるとき、すなわち10msを経て、その間、一度も
SIN割り込みがかからないとき、A/D変換器63自
身が故障、或いはその通信線が断線しているとして、ス
テップS204にて上記フラグXADCERをセットす
る。他方、同カウンタCADCERの計数値が CADCER≦10 であるときには、ステップS205で同フラグXADC
ERをクリア(=0)して、次のステップS206の処
理に進む。
In the microcomputer 60, in step S203 of the timer interrupt, when the count value of the counter CADCER is CADCER> 10, that is, when the SIN interrupt is not applied during 10 ms, the A / D Assuming that the converter 63 itself is out of order or its communication line is broken, the flag XADCER is set in step S204. On the other hand, when the count value of the counter CADCER is CADCER ≦ 10, the flag XADC of the flag is determined in step S205.
ER is cleared (= 0), and the process proceeds to the next step S206.

【0071】ステップS206では、もう一方のカウン
タCADCERSの計数値がチェックされる。このカウ
ンタCADCERSは、図3に示されるSIN割り込み
にてその計数値がインクリメントされるカウンタであ
る。すなわち、そのステップS301にて最大値(「2
55」)か否かがチェックされ、最大値に達していなけ
れば、次のステップS302にて、同計数値がインクリ
メントされる。
In step S206, the count value of the other counter CADCERS is checked. The counter CADCERS is a counter whose count value is incremented by the SIN interrupt shown in FIG. That is, the maximum value (“2
55 "), and if the maximum value is not reached, the same count value is incremented in the next step S302.

【0072】このため、このステップS206でのチェ
ックにおいて、上記カウンタCADCERSの計数値が
幾つになっているか、すなわち1ms間にSIN割り込
みが何回かかっているかによって、その割り込み頻度を
見ることができる。そしてここでは、同カウンタCAD
CERSの計数値が CADCERS>10 であるとき、すなわち1ms間に10回を超えてSIN
割り込みがかかっているとき、該SIN割り込みが多発
している、すなわちA/D変換器63との通信線がGN
Dショートしているとして、ステップS207にて上記
フラグXADCERSをセットする。他方、同カウンタ
CADCERSの計数値が CADCERS≦10 であるときには、ステップS208で同フラグXADC
ERSをクリア(=0)し、更に次のステップS209
で、当該カウンタCADCERSの計数値を「0」にリ
セットする。
Therefore, in the check in step S206, it is possible to see the interrupt frequency depending on how many counts the above-mentioned counter CADCERS has, that is, how many SIN interrupts are taken in 1 ms. And here, the counter CAD
When the count value of CERS is CADCERS> 10, that is, when the SIN exceeds 10 times in 1 ms.
When interrupts occur, the SIN interrupts occur frequently, that is, the communication line with the A / D converter 63 is GN.
Assuming that there is a D short circuit, the flag XADCERS is set in step S207. On the other hand, when the count value of the counter CADCERS is CADCERS ≦ 10, the same flag XADC is determined in step S208.
ERS is cleared (= 0), and the next step S209 is performed.
Then, the count value of the counter CADCERS is reset to "0".

【0073】こうしてA/D変換器63の異常検出を終
えたマイクロコンピュータ60は、従来と同様、タイマ
割り込み(図2)では、A/Dチャネルを算出し(ステ
ップS210)、この算出したA/DチャネルをA/D
変換器63に送信する(ステップS211)。またSI
N割り込み(図3)では、その結果このA/D変換器6
3から返されたA/D変換値を上記RAM(A/D格納
RAM)603に格納する(ステップS304)。
In this way, the microcomputer 60 which has completed the abnormality detection of the A / D converter 63 calculates the A / D channel in the timer interrupt (FIG. 2) as in the conventional case (step S210), and calculates the calculated A / D channel. A / D on D channel
The data is transmitted to the converter 63 (step S211). Also SI
As a result of the N interrupt (FIG. 3), this A / D converter 6
The A / D conversion value returned from No. 3 is stored in the RAM (A / D storage RAM) 603 (step S304).

【0074】次に、同実施例の装置のマイクロコンピュ
ータ60において、同じく図2に示されるタイマ割り込
みを通じて実行される上記WDC(ウォッチドッグクリ
ア)信号の処理について説明する。
Next, the processing of the WDC (watch dog clear) signal executed by the microcomputer 60 of the apparatus of this embodiment through the timer interrupt shown in FIG. 2 will be described.

【0075】このWDC信号の処理には、同図2及び図
4に示されるカウンタCWDCが用いられる。このカウ
ンタCWDCは、該タイマ割り込みを通じてインクリメ
ントされ、図4に示されるベースルーチン(ステップS
404)によって「0」にリセットされるカウンタであ
る。
The counter CWDC shown in FIGS. 2 and 4 is used for processing the WDC signal. This counter CWDC is incremented through the timer interrupt, and the base routine shown in FIG. 4 (step S
The counter is reset to "0" by 404).

【0076】すなわちマイクロコンピュータ60では、
同タイマ割り込みに際し、上記A/Dチャネルの送信を
終えた次のステップS212にて、上記カウンタCWD
Cの計数値が最大値(「255」)となっているか否か
をチェックし、最大値に達していなければ、次のステッ
プS213にて、これをインクリメントする。
That is, in the microcomputer 60,
At the time of the timer interruption, the counter CWD is set in the next step S212 after the transmission of the A / D channel is completed.
It is checked whether or not the count value of C is the maximum value (“255”), and if it has not reached the maximum value, it is incremented in the next step S213.

【0077】そしてマイクロコンピュータ60では、ス
テップS214にて、A/D変換器63との通信線がG
NDショートしている旨を示す上記フラグXADCER
Sの状態をチェックし、これがセット(=1)されてい
る場合には、ステップS216にて、WDC信号を上記
リセット回路65に強制出力(その論理レベルを強制反
転)する。これにより、少なくともA/D変換器63と
の通信線がGNDショートしている異常状態にあって
は、同タイマ割り込みにかかる1ms毎に、マイクロコ
ンピュータ60からリセット回路65に対しWDC信号
が出力されるようになる。すなわちその間、マイクロコ
ンピュータ60の動作がリセットされることはなくな
る。これは、該GNDショートによってSIN割り込み
が多発し、図4に示されるベースルーチンが正常に回ら
なくなった場合でも、後述のNE割り込みに基づく補償
処理は確保されるようにするための配慮である。
In the microcomputer 60, the communication line to the A / D converter 63 is set to G in step S214.
The flag XADCER indicating that the ND is shorted
The state of S is checked, and if it is set (= 1), the WDC signal is forcibly output to the reset circuit 65 (the logical level thereof is forcibly inverted) in step S216. As a result, in an abnormal state where at least the communication line with the A / D converter 63 is GND short-circuited, the WDC signal is output from the microcomputer 60 to the reset circuit 65 at every 1 ms of the timer interrupt. Become so. That is, during that time, the operation of the microcomputer 60 is not reset. This is to ensure that the compensation processing based on the NE interrupt, which will be described later, is secured even if the SIN interrupts occur frequently due to the GND short circuit and the base routine shown in FIG. 4 does not normally rotate.

【0078】一方、上記ステップS214でのチェック
において、フラグXADCERSがセットされていない
場合、マイクロコンピュータ60は、次のステップS2
15にて、上記カウンタCWDCの計数値をチェックす
る。そしてこれが CWDC>50 であるとき、すなわち50msを超えても同カウンタC
WDCの計数値がベースルーチンによってリセットされ
なかったとき、マイクロコンピュータ60は、上記WD
C信号の出力(論理レベル反転)を停止する。他方、同
カウンタCWDCの計数値が CWDC≦50 であれば、ステップS216にて、同WDC信号を通常
に出力(論理レベル反転)する。すなわち、上記カウン
タCWDCの計数値が50ms以内にベースルーチンに
よってリセットされる場合には、通常に(1ms毎に)
WDC信号が出力され続け、同計数値が50msを経て
もリセットされない場合には、同WDC信号の出力は停
止され、リセット回路65によってマイクロコンピュー
タ60がリセットされるようになる。図5に、こうした
WDC信号とリセット回路65によるリセットタイミン
グとの関係を示す。
On the other hand, if the flag XADCERS is not set in the check in step S214, the microcomputer 60 proceeds to the next step S2.
At 15, the count value of the counter CWDC is checked. When this is CWDC> 50, that is, even if it exceeds 50 ms, the counter C
When the count value of WDC is not reset by the base routine, the microcomputer 60 determines the WD.
The output of the C signal (logic level inversion) is stopped. On the other hand, if the count value of the counter CWDC is CWDC ≦ 50, the WDC signal is normally output (logical level inversion) in step S216. That is, when the count value of the counter CWDC is reset by the base routine within 50 ms, normally (every 1 ms).
When the WDC signal continues to be output and the count value is not reset even after 50 ms, the output of the WDC signal is stopped and the reset circuit 65 resets the microcomputer 60. FIG. 5 shows the relationship between the WDC signal and the reset timing by the reset circuit 65.

【0079】この図5(a)及び(b)に示されるよう
に、上記リセット回路65では、WDC信号の論理レベ
ル反転が停止し、最後の反転があってから40msの間
論理レベル反転がなかったとき、その直後から10ms
間だけマイクロコンピュータ60にリセットをかける。
そして、その後も同リセット回路65ではWDC信号の
論理レベルを監視し続け、その後更に40msの間該W
DC信号に論理レベル反転がなければ、再度、その直後
から10ms間だけマイクロコンピュータ60にリセッ
トをかける。こうした動作が繰り返し実行される。
As shown in FIGS. 5A and 5B, in the reset circuit 65, the logic level inversion of the WDC signal is stopped, and there is no logic level inversion for 40 ms after the last inversion. 10ms immediately after
The microcomputer 60 is reset only during the period.
Then, after that, the reset circuit 65 continues to monitor the logic level of the WDC signal, and thereafter, the WDC signal is further monitored for 40 ms.
If there is no logic level inversion in the DC signal, the microcomputer 60 is reset again for 10 ms immediately after that. These operations are repeatedly executed.

【0080】なお、マイクロコンピュータ60では、こ
のようにリセットされ続けた場合、燃料噴射パルスや点
火時期パルスの出力も完全に停止されるようになること
は前述した。このため同実施例の装置では上述のよう
に、A/D変換器63との通信線がGNDショートして
いる旨を示すフラグXADCERSがセットされている
とき、タイマ割り込みを通じてこのWDC信号を強制出
力するようにしている。これにより、ベースルーチンが
正常に回らなくなった場合でも、以下のNE割り込みに
基づく補償処理は確保されるようになる。
As described above, in the microcomputer 60, the output of the fuel injection pulse and the ignition timing pulse is completely stopped when the reset is continued in this way. Therefore, in the apparatus of the embodiment, as described above, when the flag XADCERS indicating that the communication line with the A / D converter 63 is GND shorted is set, this WDC signal is forcibly output through the timer interrupt. I am trying to do it. As a result, even if the base routine does not rotate normally, the following compensation processing based on the NE interrupt is ensured.

【0081】次に、上記A/D変換器63の異常が検出
されたときの補償処理も含めて、該NE割り込みに基づ
き実行される同実施例の装置による燃料噴射制御並びに
点火時期制御について説明する。
Next, the fuel injection control and the ignition timing control by the apparatus of the embodiment executed based on the NE interrupt, including the compensation processing when the abnormality of the A / D converter 63 is detected, will be described. To do.

【0082】同実施例の装置において、マイクロコンピ
ュータ60は、割り込みが発生しない限り、図4に示さ
れるベースルーチンに従って、エンジン回転数NEを計
算し(ステップS401)、燃料噴射量TAUを計算し
(ステップS402)、点火時期TESAを計算し(ス
テップS403)、上記カウンタCWDCをリセットす
る(ステップS404)、といった動作を繰り返し実行
する。
In the apparatus of the embodiment, the microcomputer 60 calculates the engine speed NE (step S401) and the fuel injection amount TAU according to the base routine shown in FIG. 4 unless an interrupt occurs (step S401). In step S402, the ignition timing TESA is calculated (step S403), and the counter CWDC is reset (step S404).

【0083】なおここで、上記燃料噴射量TAU及び点
火時期TESA等の制御量は、その都度計算される回転
数NEをはじめ、上記A/D変換器63を通じてA/D
変換される吸気管内圧力センサ3の出力やエンジン水温
センサ4の出力等をもとに算出されること、そしてそれ
ら算出された制御量は、図16に示されるクランク角セ
ンサ1からの入力パルスによって発生するNE割り込み
に基づき、図15に示される態様で出力されること、等
々は先の従来の装置と同様である。
Here, the control amounts of the fuel injection amount TAU, the ignition timing TESA, etc. are calculated by A / D converter 63 through the A / D converter 63 as well as the rotational speed NE calculated each time.
It is calculated based on the output of the intake pipe pressure sensor 3 and the output of the engine water temperature sensor 4 which are converted, and the calculated control amount is determined by the input pulse from the crank angle sensor 1 shown in FIG. Based on the NE interrupt that occurs, the output is performed in the mode shown in FIG. 15, and the like are the same as those of the conventional device.

【0084】そして、こうしたエンジン制御装置にあっ
ては、A/D変換器63の異常時、そのA/D変換値に
代えて、予め設定した固定値により制御量を演算するよ
うにしても、A/D変換器63との通信線がGNDショ
ートしたような場合には、 ・SIN割り込みの多発により上記ベースルーチンが全
く回らなくなる。 ・ただし、該SIN割り込みよりも優先順位の高い上記
NE割り込みによって、燃料噴射パルスや点火時期パル
スの出力にかかる処理は確保される。 ・そしてこの出力にかかる処理は、この異常が来たす直
前の燃料噴射量TAUや点火時期TESA等に基づいて
行われる。 ・このため、該異常が来たす直前、エンジンの運転状態
により、例えば上記点火時期TESAが「最進角」して
いたり、或いは上記燃料噴射量TAUが空燃比「リー
ン」の状態になっていたりした場合には、良好なエンジ
ン制御が行われず、ストールに陥ったり、ノッキングを
起こしたりすることがある。 といった不都合が生じることも前述した。
In such an engine control device, when the A / D converter 63 is abnormal, the control amount is calculated by a preset fixed value instead of the A / D converted value. When the communication line with the A / D converter 63 is GND short-circuited: The base routine cannot be executed at all due to the frequent occurrence of SIN interrupts. However, the NE interrupt having a higher priority than the SIN interrupt secures the processing related to the output of the fuel injection pulse and the ignition timing pulse. The processing related to this output is performed based on the fuel injection amount TAU, the ignition timing TESA, etc. immediately before the occurrence of this abnormality. Therefore, immediately before the occurrence of the abnormality, for example, the ignition timing TESA is "advanced" or the fuel injection amount TAU is in an air-fuel ratio "lean" state depending on the operating state of the engine. In this case, good engine control may not be performed, resulting in stall or knocking. As described above, such inconvenience may occur.

【0085】そこで、同実施例の装置では、NE割り込
みにてその都度の回転数に対応する時間T180(図1
5(a)及び図16ステップS1601参照)を算出し
た後、図6に示されるルーチンに従って燃料噴射パルス
の出力を行い、図7に示されるルーチンに従って点火時
期パルスの出力を行うようにしている。
Therefore, in the apparatus of the present embodiment, the time T180 (FIG.
5 (a) and step S1601 in FIG. 16) are calculated, the fuel injection pulse is output according to the routine shown in FIG. 6, and the ignition timing pulse is output according to the routine shown in FIG.

【0086】まず、図6に示される燃料噴射パルスの出
力処理について説明する。この燃料噴射パルスの出力に
際してはまず、ステップS601でインジェクタがON
(オン)された後、次のステップS602及びS603
にて、上記フラグXADCER及びXADCERSのセ
ットの有無がチェックされる。そして、同フラグXAD
CER及びXADCERSの何れか一方でもセットされ
ている場合には、ステップS604にてフェールセーフ
値による補償が行われる。すなわちここでは、タイマA
にフェールセーフ値(μs)が書き込まれる。このフェ
ールセーフ値は、上記ベースルーチン(図4)にて算出
される燃料噴射量TAU(μs)に代わる値として、ア
イドル状態でもストール(エンスト)せず、且つ退避走
行の可能な値に選ばれる。
First, the output processing of the fuel injection pulse shown in FIG. 6 will be described. When outputting this fuel injection pulse, first, in step S601, the injector is turned on.
After being turned on, the next steps S602 and S603 are performed.
Then, it is checked whether or not the flags XADCER and XADCERS are set. And the same flag XAD
If either CER or XADCERS is set, compensation is performed by the fail-safe value in step S604. That is, here, the timer A
The fail-safe value (μs) is written in. This fail-safe value is selected as a value that does not stall (stalling) even in the idle state and that allows retreat traveling as a value that replaces the fuel injection amount TAU (μs) calculated in the base routine (FIG. 4). .

【0087】他方、上記ステップS602及びS603
のチェックにおいて、上記フラグXADCER及びXA
DCERSが何れもクリアされている旨判断される場合
には、ステップS605にて、従来同様、上記ベースル
ーチンにて算出された燃料噴射量TAU(μs)がタイ
マAに書き込まれる。
On the other hand, steps S602 and S603 described above.
In the check of, the above flags XADCER and XA
When it is determined that all DCERS have been cleared, the fuel injection amount TAU (μs) calculated in the above base routine is written in the timer A in step S605 as in the conventional case.

【0088】こうしてフェールセーフ値若しくはベース
ルーチンにて算出された燃料噴射量TAUがタイマAに
書き込まれることにより、マイクロコンピュータ60で
は、それらタイマAに書き込まれた時間の経過後、イン
ジェクタ8を自動的にOFF(オフ)とする制御を自動
実行する。
By writing the fuel injection amount TAU calculated by the fail safe value or the base routine in the timer A in this way, the microcomputer 60 automatically operates the injector 8 after the time written in the timer A has elapsed. The control to turn it off is automatically executed.

【0089】次に、図7に示される点火時期パルスの出
力処理について説明する。この点火時期パルスの出力に
際してはまず、ステップS701にて先の図15(c)
に示されるイグナイタON(オン)時間TIGON(μ
s)が計算される。これも例えば、 TIGON=T180/3 (μs) として算出される。そして次に、ステップS702及び
S703にて、上記フラグXADCER及びXADCE
RSのセットの有無がチェックされ、これらフラグXA
DCER及びXADCERSの何れか一方でもセットさ
れている場合には、ステップS704にてフェールセー
フ値による補償が行われる。すなわちここでは、先に算
出された時間T180(μs)から、今回算出された時
間TIGON(μs)及びフェールセーフ値(μs)を
差し引いた時間(T180−TIGON−フェールセー
フ値)がタイマBに書き込まれる。このフェールセーフ
値は、上記ベースルーチン(図4)にて算出される点火
時期TESA(μs)に代わる値として、ノッキングを
起こさず、且つ退避走行の可能な値に選ばれる。
Next, the output process of the ignition timing pulse shown in FIG. 7 will be described. At the time of outputting this ignition timing pulse, first, in step S701, FIG.
Igniter ON (on) time TIGON (μ
s) is calculated. This is also calculated as, for example, TIGON = T180 / 3 (μs). Then, next, in steps S702 and S703, the flags XADCER and XADCE are set.
Whether or not RS is set is checked, and these flags XA
If either DCER or XADCERS is set, compensation by the fail-safe value is performed in step S704. That is, here, the time (T180-TIGON-failsafe value) obtained by subtracting the time TIGON (μs) and the failsafe value (μs) calculated this time from the previously calculated time T180 (μs) is written in the timer B. Be done. This fail-safe value is selected as a value that does not cause knocking and is capable of retreat travel as a value that replaces the ignition timing TESA (μs) calculated in the base routine (FIG. 4).

【0090】他方、上記ステップS702及びS703
のチェックにおいて、上記フラグXADCER及びXA
DCERSが何れもクリアされている旨判断される場合
には、ステップS705にて、従来同様、先に算出され
た時間T180(μs)から、今回算出された時間TI
GON(μs)及び上記ベースルーチンにて算出された
点火時期TESA(μs)を差し引いた時間(T180
−TIGON−TESA)がタイマBに書き込まれる。
On the other hand, steps S702 and S703 described above.
In the check of, the above flags XADCER and XA
When it is determined that all DCERS have been cleared, in step S705, the time TI calculated this time is calculated from the time T180 (μs) previously calculated as in the conventional case.
GON (μs) and time (T180) obtained by subtracting the ignition timing TESA (μs) calculated in the above base routine.
-TIGON-TESA) is written to timer B.

【0091】こうして時間(T180−TIGON−フ
ェールセーフ値)若しくは(T180−TIGON−T
ESA)がタイマBに書き込まれた後は、ステップS7
06にて、上記算出されたイグナイタON時間TIGO
N(μs)がタイマCに書き込まれる。
Thus, the time (T180-TIGON-fail safe value) or (T180-TIGON-T
After ESA) is written to timer B, step S7
At 06, the above calculated igniter ON time TIGO
N (μs) is written to timer C.

【0092】これによりマイクロコンピュータ60で
は、上記タイマBに書き込まれた時間の経過後、イグナ
イタ9をON(オン)とし、更に上記タイマCに書き込
まれた時間TIGONの経過後、イグナイタ9をOFF
(オフ)とする制御を自動実行する。
As a result, in the microcomputer 60, the igniter 9 is turned on after the time written in the timer B has passed, and the igniter 9 is turned off after the time TIGON written in the timer C has passed.
The control to turn it off is automatically executed.

【0093】同実施例の装置によればこのように、A/
D変換器63の如何なる異常に際しても、SIN割り込
みよりも優先順位の高いNE割り込みに基づいて、フェ
ールセーフ値が駆動回路64に対し出力されるようにな
る。
According to the apparatus of the same embodiment, A /
In case of any abnormality of the D converter 63, the fail-safe value is output to the drive circuit 64 based on the NE interrupt having a higher priority than the SIN interrupt.

【0094】このため、A/D変換器63に異常が来た
す直前のエンジン運転状態が如何なるものであったとし
ても、A/D変換器63の異常発生後は、同フェールセ
ーフ値に基づき、前記ストールに陥ったり、ノッキング
を起こしたりすることのない適正なエンジン制御が維持
されるようになる。
Therefore, no matter what the engine operating state is just before the A / D converter 63 becomes abnormal, after the abnormality of the A / D converter 63 occurs, based on the same fail safe value, Proper engine control is maintained without stalls or knocking.

【0095】しかも同実施例の装置によれば、マイクロ
コンピュータ60の動作がリセット回路(ウォッチドッ
グ回路)65によって監視される場合であれ、A/D変
換器63との通信線のGNDショート等によってベース
ルーチンが停止される場合には、同マイクロコンピュー
タ60の動作がリセットされることなく、該NE割り込
みにかかる処理が適正に確保される。
Further, according to the apparatus of the embodiment, even when the operation of the microcomputer 60 is monitored by the reset circuit (watchdog circuit) 65, it is caused by the GND short circuit of the communication line with the A / D converter 63. When the base routine is stopped, the operation related to the NE interrupt is properly secured without resetting the operation of the microcomputer 60.

【0096】なお、同実施例の装置では、上記燃料噴射
量TAUや点火時期TESAに対応した各フェールセー
フ値として、それぞれストールやノッキングを起こすこ
とのない固定の値が選ばれるものとした。しかしこれ
は、上記NE割り込みにてその都度の回転数に対応して
算出される時間T180に応じて変更される構成として
もよい。こうした構成によれば、A/D変換器異常時
の、上記フェールセーフ値に基づくエンジン制御をより
適正なものとすることができるようにもなる。
In the apparatus of the embodiment, fixed values that do not cause stall or knock are selected as the fail-safe values corresponding to the fuel injection amount TAU and the ignition timing TESA. However, this may be changed according to the time T180 calculated corresponding to the number of revolutions at each time by the NE interruption. With such a configuration, it becomes possible to make the engine control based on the fail-safe value more appropriate when the A / D converter is abnormal.

【0097】また同実施例の装置では、A/D変換器6
3の異常検出時、その旨示すフラグXADCER及びX
ADCERSをRAM603またはバックアップRAM
604にセットすることで、こうしたフェールセーフ値
に基づく補償処理を行うとともに、警告ランプ7を点灯
して運転者等に警告することとした。しかしこれに加
え、図1に破線にて併せ示すように、同A/D変換器6
3の異常検出時にはこれをリセットする構成とすること
もできる。この異常がA/D変換器63自身の動作異常
によるものであった場合、こうしたリセットによってこ
れが正常復帰することもある。
Further, in the apparatus of the same embodiment, the A / D converter 6
When abnormality 3 is detected, flags XADCER and X indicating that
ADCERS to RAM603 or backup RAM
By setting to 604, the compensation process based on such a fail-safe value is performed, and the warning lamp 7 is turned on to warn the driver or the like. However, in addition to this, as shown by the broken line in FIG.
It is also possible to adopt a configuration in which this is reset when abnormality 3 is detected. If this abnormality is due to an operation abnormality of the A / D converter 63 itself, such reset may restore it to normal.

【0098】ところで、マイクロコンピュータによって
は、上記各割り込みをその制御プログラムによって禁止
する機能を有しているものもある。例えば、上記SIN
割り込みが多発してベースルーチンが回らなくなったよ
うな場合、同SIN割り込みの割り込み要求信号が発生
してもSIN割り込みに入らないようにする。これは一
般に、ある特定のレジスタに制御フラグとして「1」ま
たは「0」を書き込むことによって行われる。
By the way, some microcomputers have a function of inhibiting each of the above interrupts by the control program thereof. For example, the SIN
When the base routine does not rotate due to frequent interrupts, the SIN interrupt is not entered even if the interrupt request signal of the SIN interrupt is generated. This is typically done by writing a "1" or "0" as a control flag to a particular register.

【0099】図8〜図9に、前記マイクロコンピュータ
60としてこのようなタイプのマイクロコンピュータが
用いられる場合を想定した、この発明にかかるエンジン
制御装置の他の実施例を示す。
FIGS. 8 to 9 show another embodiment of the engine control device according to the present invention, assuming that a microcomputer of this type is used as the microcomputer 60.

【0100】すなわち、該他の実施例にあっては、これ
ら図8及び図9に示されるように、SIN割り込みが多
発されるときにはこれを禁止して、ベースルーチンにて
上記各フェールセーフ値を設定するようにする。以下、
図8及び図9の参照のもとにその詳細を説明する。
That is, in the other embodiment, as shown in FIGS. 8 and 9, when the SIN interrupt is frequently generated, the SIN interrupt is prohibited and the fail safe values are set in the base routine. Try to set it. Less than,
The details will be described with reference to FIGS. 8 and 9.

【0101】はじめに、図8に示されるタイマ割り込み
ルーチンについて説明する。この実施例においても、同
図8に示されるタイマ割り込みと先の図3に示されるS
IN割り込みとを通じて、A/D変換器63の異常を、
その通信線の異常も含めて検出する。
First, the timer interrupt routine shown in FIG. 8 will be described. Also in this embodiment, the timer interrupt shown in FIG. 8 and the S shown in FIG.
Through the IN interrupt, the abnormality of the A / D converter 63
It also detects the abnormality of the communication line.

【0102】なお、このタイマ割り込みが例えば1ms
(ミリ秒)毎に周期的に発生する割り込みであること、
また同図8において、カウンタCADCERがA/D変
換器63自身の故障、或いはその通信線が断線したよう
な異常を検出するカウンタであり、カウンタCADCE
RSがA/D変換器63との通信線がGNDショートし
たような異常、すなわち上記SIN割り込みが多発する
ような異常を検出するカウンタであることは先の実施例
の場合と同様である。それら異常が検出された場合、そ
れぞれ対応するフラグXADCER或いはXADCER
Sが前記RAM603またはバックアップRAM604
にセットされることとなる。それらセットされたフラグ
XADCER或いはXADCERSに基づきディーラー
等において適宜の警報処理が行われ、また前記警告ラン
プ7が点灯制御されることも先の実施例の場合と同様で
ある。
This timer interrupt is, for example, 1 ms.
It must be an interrupt that occurs periodically every (millisecond),
Further, in FIG. 8, a counter CADCER is a counter for detecting a failure of the A / D converter 63 itself or an abnormality such as a disconnection of its communication line.
The RS is a counter for detecting an abnormality such as a GND short-circuit of the communication line with the A / D converter 63, that is, an abnormality such that the SIN interrupt occurs frequently, as in the case of the previous embodiment. When these abnormalities are detected, the corresponding flags XADCER or XADCER
S is the RAM 603 or the backup RAM 604
Will be set to. It is the same as in the previous embodiment that appropriate alarm processing is performed in the dealer or the like based on the set flags XADCER or XADCERS, and that the warning lamp 7 is controlled to light.

【0103】さて、この図8に示されるタイマ割り込み
において、マイクロコンピュータはまず、ステップS8
01にて、上記カウンタCADCERの計数値が最大値
(「255」)となっているか否かをチェックし、最大
値に達していなければ、次のステップS802にて、同
カウンタCADCERの計数値をインクリメントする。
なお、このカウンタCADCERの計数値が、SIN割
り込みがかかることによって「0」にリセットされるこ
とは前述した(図3ステップS303)。
In the timer interrupt shown in FIG. 8, the microcomputer first executes step S8.
In 01, it is checked whether or not the count value of the counter CADCER is the maximum value (“255”). If the count value has not reached the maximum value, the count value of the counter CADCER is determined in the next step S802. Increment.
The count value of the counter CADCER is reset to "0" by the SIN interrupt (step S303 in FIG. 3).

【0104】そしてマイクロコンピュータでは、該タイ
マ割り込みのステップS803にて、このカウンタCA
DCERの計数値が CADCER>10 であるとき、すなわち10msを経て、その間、一度も
SIN割り込みがかからないとき、A/D変換器63自
身が故障、或いはその通信線が断線しているとして、ス
テップS804にて上記フラグXADCERをセットす
る。他方、同カウンタCADCERの計数値が CADCER≦10 であるときには、ステップS805で同フラグXADC
ERをクリア(=0)して、次のステップS806の処
理に進む。
Then, in the microcomputer, at step S803 of the timer interruption, the counter CA
When the count value of DCER is CADCER> 10, that is, when no SIN interrupt occurs during 10 ms, during that period, it is determined that the A / D converter 63 itself has a failure or its communication line is broken, step S804. Then, the flag XADCER is set. On the other hand, when the count value of the counter CADCER is CADCER ≦ 10, the same flag XADC is determined in step S805.
ER is cleared (= 0), and the process proceeds to the next step S806.

【0105】ステップS806では、もう一方のカウン
タCADCERSの計数値がチェックされる。このカウ
ンタCADCERSが、図3に示されるSIN割り込み
にてその計数値がインクリメントされるカウンタである
ことも前述した。そしてここでも、同カウンタCADC
ERSの計数値が CADCERS>10 であるとき、すなわち1ms間に10回を超えてSIN
割り込みがかかっているとき、該SIN割り込みが多発
している、すなわちA/D変換器63との通信線がGN
Dショートしているとして、ステップS807にて上記
フラグXADCERSをセットする。そして、同実施例
においてはこの場合、ステップS809にてその後のS
IN割り込みを禁止する。他方、同カウンタCADCE
RSの計数値が CADCERS≦10 であるときには、ステップS808にて、上記フラグX
ADCERSの復帰処理は行わずに直接、同カウンタC
ADCERSの計数値をリセットする。これは、上記ス
テップS809にて一度SIN割り込みを禁止すると、
同カウンタCADCERSのインクリメントは行われな
くなり、該異常検出処理の復帰、すなわちフラグXAD
CERSの復帰(クリア)そのものが不可能となるため
である。したがって同実施例の場合、フラグXADCE
RSをバックアップRAM604にセットするよりは、
RAM603にセットして、キースイッチのOFFから
ONへの切り替わり時に、同フラグXADCERSを復
帰(クリア)させることが望ましい。
In step S806, the count value of the other counter CADCERS is checked. It was also described above that the counter CADCERS is a counter whose count value is incremented by the SIN interrupt shown in FIG. And here again, the same counter CADC
When the count value of ERS is CADCERS> 10, that is, when the SIN exceeds 10 times in 1 ms.
When interrupts occur, the SIN interrupts occur frequently, that is, the communication line with the A / D converter 63 is GN.
Assuming that there is a D short circuit, the flag XADCERS is set in step S807. In this case, in this embodiment, in step S809, the subsequent S
Disable IN interrupt. On the other hand, the same counter CADCE
When the count value of RS is CADCERS ≦ 10, in step S808, the flag X
Without returning the ADCERS, the counter C
Reset the count value of ADCERS. This is because once the SIN interrupt is disabled in step S809,
The counter CADCERS is no longer incremented, and the abnormality detection process returns, that is, the flag XAD.
This is because it is impossible to return (clear) the CERS itself. Therefore, in the case of the embodiment, the flag XADCE
Rather than setting RS in backup RAM 604,
It is desirable to set it in the RAM 603 and to reset (clear) the flag XADCERS when the key switch is switched from OFF to ON.

【0106】こうしてA/D変換器63の異常検出を終
えたマイクロコンピュータは、従来或いは先の実施例と
同様、A/Dチャネルを算出し(ステップS810)、
該算出したA/DチャネルをA/D変換器63に送信す
る(ステップS811)。
The microcomputer which has completed the abnormality detection of the A / D converter 63 in this way calculates the A / D channel (step S810) as in the conventional or previous embodiments.
The calculated A / D channel is transmitted to the A / D converter 63 (step S811).

【0107】ただし同実施例の場合、上記SIN割り込
みの禁止によって、図9に示されるベースルーチンは回
り続けるため、次のWDC(ウォッチドッグクリア)信
号の処理は、先の実施例の場合とは異なったものとな
る。
However, in the case of the present embodiment, the base routine shown in FIG. 9 continues to rotate due to the prohibition of the SIN interrupt, so that the processing of the next WDC (watch dog clear) signal is different from that of the previous embodiment. It will be different.

【0108】すなわち、このWDC信号の処理にカウン
タCWDCが用いられ、その計数値がタイマ割り込みを
通じてインクリメントされることは先の実施例と同様で
あるが、同実施例の場合、上記フラグXADCERSが
セットされる異常が発生していても、図9に示されるベ
ースルーチンが回り続ける以上、該カウンタCWDCの
リセット動作は維持される。このため、先の図2に示さ
れるステップS214の処理は不要であり、同図2のス
テップS215及びS216での処理に相当するステッ
プS814及びS815の処理のみが行われる。すなわ
ち、ステップS814にて上記カウンタCWDCの計数
値をチェックし、これが CWDC>50 であるとき、すなわち50msを超えても同カウンタC
WDCの計数値がベースルーチンによってリセットされ
なかったとき、上記WDC信号の出力(論理レベル反
転)が停止される。他方、同カウンタCWDCの計数値
が CWDC≦50 であれば、ステップS815にて、同WDC信号の出力
(論理レベル反転)は維持される。
That is, the counter CWDC is used for the processing of this WDC signal, and its count value is incremented through a timer interrupt, as in the previous embodiment. However, in the case of this embodiment, the flag XADCERS is set. Even if the abnormality occurs, the reset operation of the counter CWDC is maintained as long as the base routine shown in FIG. 9 continues to rotate. Therefore, the process of step S214 shown in FIG. 2 is unnecessary, and only the processes of steps S814 and S815 corresponding to the processes of steps S215 and S216 of FIG. 2 are performed. That is, in step S814, the count value of the counter CWDC is checked.
When the count value of WDC is not reset by the base routine, output of the WDC signal (logical level inversion) is stopped. On the other hand, if the count value of the counter CWDC is CWDC ≦ 50, the output (logical level inversion) of the WDC signal is maintained in step S815.

【0109】次に、上記A/D変換器63の異常が検出
されたときの補償処理も含めて、図9に示される当該実
施例のベースルーチンでの処理について説明する。同実
施例の装置において、マイクロコンピュータは、割り込
みが発生しない限り、図9に示されるベースルーチンに
従って、それら設定された処理を繰り返し実行する。
Next, the processing in the base routine of the embodiment shown in FIG. 9 including the compensation processing when the abnormality of the A / D converter 63 is detected will be described. In the apparatus of the embodiment, the microcomputer repeatedly executes the set processes according to the base routine shown in FIG. 9 unless an interrupt occurs.

【0110】すなわち、このベースルーチンの実行に際
してはまず、ステップS901にてエンジン回転数NE
が演算された後、次のステップS902及びS903に
て、上記フラグXADCER及びXADCERSのセッ
トの有無がチェックされる。そして、同フラグXADC
ER及びXADCERSの何れか一方でもセットされて
いる場合には、ステップS904及びS905にて、フ
ェールセーフ値による補償が行われる。すなわちここで
は、同ベースルーチンにおいて算出すべき燃料噴射TA
U(μs)及び点火時期TESA(μs)に代わる各フ
ェールセール値がそれら値TAU及びTESAとして代
入される。なおこの場合も、燃料噴射TAUに代入され
るフェールセーフ値としては、アイドル状態でもストー
ル(エンスト)せず、且つ退避走行の可能な値が選ば
れ、また点火時期TESAに代入されるフェールセーフ
値としては、ノッキングを起こさず、且つ退避走行の可
能な値が選ばれることとなる。
That is, when executing this base routine, first, at step S901, the engine speed NE is set.
Is calculated, the presence or absence of the setting of the flags XADCER and XADCERS is checked in the next steps S902 and S903. Then, the same flag XADC
If either ER or XADCERS is set, compensation is performed by the fail-safe value in steps S904 and S905. That is, here, the fuel injection TA to be calculated in the same base routine.
Each fail-sale value in place of U (μs) and ignition timing TESA (μs) is substituted as these values TAU and TESA. In this case as well, as the fail-safe value assigned to the fuel injection TAU, a value that does not stall (stalling) even in the idle state and is capable of retreat traveling is selected, and the fail-safe value assigned to the ignition timing TESA is selected. As a result, a value that does not cause knocking and is capable of retreat traveling is selected.

【0111】他方、上記ステップS902及びS903
のチェックにおいて、上記フラグXADCER及びXA
DCERSが何れもクリアされている旨判断される場合
には、ステップS906にて燃料噴射量TAUが計算さ
れ、ステップS907にて点火時期TESAが計算され
る。なお、これら計算される燃料噴射量TAU及び点火
時期TESA等の制御量が、その都度計算される回転数
NEをはじめ、上記A/D変換器63を通じてA/D変
換される吸気管内圧力センサ3の出力やエンジン水温セ
ンサ4の出力等をもとに算出されることは前述した通り
である。
On the other hand, steps S902 and S903 described above.
In the check of, the above flags XADCER and XA
When it is determined that all DCERS are cleared, the fuel injection amount TAU is calculated in step S906, and the ignition timing TESA is calculated in step S907. The calculated fuel injection amount TAU, the ignition timing TESA, and other control amounts are A / D converted through the A / D converter 63, including the rotational speed NE calculated each time. As described above, it is calculated based on the output of the engine water temperature sensor 4 and the output of the engine water temperature sensor 4.

【0112】こうして、制御量TAU及びTESAにつ
いての演算、若しくはフェールセーフ値の代入を終えた
マイクロコンピュータは、ステップS908にて上記カ
ウンタCWDCをリセットして、上記ステップS901
の処理に戻る。なお、これら演算された制御量TAU及
びTESA、若しくは上記フェールセーフ値が代入され
た制御量TAU及びTESAは、同実施例の場合、先の
図16に示されるNE割り込みに基づき、それぞれ図1
7及び図18に示される手順で、前記駆動回路64に出
力されることとなる。
In this way, the microcomputer which has completed the calculation of the control amounts TAU and TESA or the substitution of the fail-safe value resets the counter CWDC in step S908, and then executes the above-mentioned step S901.
Return to processing. In the case of the embodiment, the calculated control amounts TAU and TESA or the control amounts TAU and TESA in which the fail-safe value is substituted are based on the NE interrupt shown in FIG.
In the procedure shown in FIG. 7 and FIG. 18, it is output to the drive circuit 64.

【0113】このように、図1に示されるエンジン制御
装置として、図8に示されるようなタイマ割り込みを行
い、図9に示されるようなベースルーチンを実行する構
成によっても、A/D変換器63の異常時、出力ルーチ
ンには確実にフェールセーフ値が与えられ、この与えら
れたフェールセーフ値に応じてインジェクタ8及びイグ
ナイタ9がそれぞれ駆動されるようになる。
As described above, the engine control apparatus shown in FIG. 1 also performs the timer interrupt as shown in FIG. 8 and executes the base routine as shown in FIG. 9 by the A / D converter. When 63 is abnormal, the fail-safe value is surely given to the output routine, and the injector 8 and the igniter 9 are driven in accordance with the given fail-safe value.

【0114】そしてこのため、同実施例の構成によって
も、A/D変換器63に異常が来たす直前のエンジン運
転状態によることなく、A/D変換器63の異常発生後
は、ストールに陥ったり、ノッキングを起こしたりする
ことのない適正なエンジン制御が維持されるようにな
る。
Therefore, even with the configuration of the embodiment, the stall may occur after the abnormality of the A / D converter 63 occurs regardless of the engine operating state immediately before the abnormality of the A / D converter 63. Therefore, proper engine control without causing knocking can be maintained.

【0115】なお、同実施例の装置にあっては、その図
9に示されるベースルーチンにおいて、A/D変換器の
異常時、A/D変換値の代わりに予め設定した固定値に
基づき上記各制御量TAU及びTESAを演算する構成
とすることもできる。ただしこの場合、前記ROM60
2及びRAM603には該演算のための余分なメモリ空
間が必要とされることにもなる。一般に退避走行するだ
けであれば、フェールセーフ値としても上述のような固
定値で十分であることに鑑みれば、同フェールセール値
を直接それら制御量として代入する同実施例の構成は、
それら演算に必要とされるメモリ空間を節約する上でも
有効な構成であるといえる。もっとも、それらフェール
セーフ値を、その都度計算される回転数NEに応じて変
更することができることは、先の実施例の場合と同様で
ある。
In the apparatus of the embodiment, in the base routine shown in FIG. 9, when the A / D converter is abnormal, the above-described fixed value is used instead of the A / D converted value. The control amounts TAU and TESA may be calculated. However, in this case, the ROM 60
2 and the RAM 603 also require an extra memory space for the calculation. In general, if the vehicle runs only in the evacuation mode, the fixed value as described above is sufficient as the fail-safe value.
It can be said that this configuration is effective in saving the memory space required for those calculations. However, the fail-safe value can be changed in accordance with the rotation speed NE calculated each time, as in the case of the previous embodiment.

【0116】また、同実施例の装置にあっても、A/D
変換器63の異常検出時にはこれをリセットする構成と
することができる。この異常がA/D変換器63自身の
動作異常によるものであった場合、こうしたリセットに
よってこれが正常復帰することがあることは前述した通
りである。
Further, even in the apparatus of the same embodiment, the A / D
When an abnormality of the converter 63 is detected, this may be reset. As described above, if this abnormality is caused by the operation abnormality of the A / D converter 63 itself, the reset may restore the normal operation.

【0117】また、同実施例の装置においても先の実施
例と同様、前記フラグXADCER或いはXADCER
Sがセットされる場合には、警告ランプ7を点灯して運
転者等にA/D変換器63が異常である旨の注意を促す
とした。しかし、これに代えて、或いはこれに併せて、
ブザー等の鳴動や表示パネル等へのエラー表示を行う構
成としてもよいことは勿論である。要は、運転者等に上
記異常の旨を知らしめることができる手段を有するもの
でありさえすればよい。
Also in the apparatus of this embodiment, the flag XADCER or XADCER is the same as in the previous embodiment.
When S is set, the warning lamp 7 is turned on to alert the driver or the like that the A / D converter 63 is abnormal. However, instead of this, or in addition to this,
Needless to say, the configuration may be such that a buzzer sounds or an error is displayed on the display panel or the like. In short, what is necessary is just to have a means that can notify the driver of the above-mentioned abnormality.

【0118】[0118]

【発明の効果】以上説明したように、この発明によれ
ば、バックアップ回路等の配設は何等不要として、A/
D変換器の異常時におけるエンジン制御を好適に補償、
維持することができるようになる。
As described above, according to the present invention, there is no need to provide a backup circuit, etc.
Suitable compensation for engine control when the D converter is abnormal,
You will be able to maintain.

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

【図1】この発明にかかるエンジン制御装置の一実施例
を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of an engine control device according to the present invention.

【図2】同実施例のタイマ割り込み処理手順を示すフロ
ーチャート。
FIG. 2 is a flowchart showing a timer interrupt processing procedure of the embodiment.

【図3】同実施例のSIN割り込み処理手順を示すフロ
ーチャート。
FIG. 3 is a flowchart showing a SIN interrupt processing procedure of the embodiment.

【図4】同実施例のベースルーチン処理手順を示すフロ
ーチャート。
FIG. 4 is a flowchart showing a base routine processing procedure of the embodiment.

【図5】リセット回路によるリセットタイミングを示す
タイムチャート。
FIG. 5 is a time chart showing reset timing by a reset circuit.

【図6】同実施例の燃料噴射パルス出力手順を示すフロ
ーチャート。
FIG. 6 is a flowchart showing a fuel injection pulse output procedure of the embodiment.

【図7】同実施例の点火時期パルス出力手順を示すフロ
ーチャート。
FIG. 7 is a flowchart showing an ignition timing pulse output procedure of the embodiment.

【図8】他の実施例のタイマ割り込み処理手順を示すフ
ローチャート。
FIG. 8 is a flowchart showing a timer interrupt processing procedure of another embodiment.

【図9】同他の実施例のベースルーチン処理手順を示す
フローチャート。
FIG. 9 is a flowchart showing a base routine processing procedure of another embodiment.

【図10】A/D変換値のシリアル通信態様を示すブロ
ック図。
FIG. 10 is a block diagram showing a serial communication mode of A / D converted values.

【図11】主に該シリアル通信データのデータ構造を示
すタイムチャート。
FIG. 11 is a time chart mainly showing the data structure of the serial communication data.

【図12】従来一般のSIN割り込み処理手順を示すフ
ローチャート。
FIG. 12 is a flowchart showing a conventional general SIN interrupt processing procedure.

【図13】従来一般のタイマ割り込み処理手順を示すフ
ローチャート。
FIG. 13 is a flowchart showing a conventional general timer interrupt processing procedure.

【図14】従来一般のベースルーチン処理手順を示すフ
ローチャート。
FIG. 14 is a flowchart showing a conventional general base routine processing procedure.

【図15】NE割り込みに基づく制御量出力態様を示す
タイムチャート。
FIG. 15 is a time chart showing a control amount output mode based on an NE interrupt.

【図16】従来一般のNE割り込み処理手順を示すフロ
ーチャート。
FIG. 16 is a flowchart showing a conventional general NE interrupt processing procedure.

【図17】従来一般の燃料噴射パルス出力手順を示すフ
ローチャート。
FIG. 17 is a flowchart showing a conventional general fuel injection pulse output procedure.

【図18】従来一般の点火時期パルス出力手順を示すフ
ローチャート。
FIG. 18 is a flowchart showing a conventional general ignition timing pulse output procedure.

【図19】各種割り込みの一般的な優先順位を示す略
図。
FIG. 19 is a schematic diagram showing the general priority of various interrupts.

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

1…クランク角センサ、2…ニュートラル検出スイッ
チ、3…吸気管内圧力センサ、4…エンジン水温セン
サ、5…吸気温センサ、6…電子制御装置、7…警告ラ
ンプ、8…インジェクタ、9…イグナイタ、60…マイ
クロコンピュータ、61…ディジタルインターフェー
ス、62…アナログインターフェース、63…A/D変
換器、64…駆動回路、65…リセット回路(ウォッチ
ドッグ回路)、601…CPU、602…ROM、60
3…RAM、604…バックアップRAM、605…タ
イマ。
1 ... Crank angle sensor, 2 ... Neutral detection switch, 3 ... Intake pipe pressure sensor, 4 ... Engine water temperature sensor, 5 ... Intake temperature sensor, 6 ... Electronic control unit, 7 ... Warning lamp, 8 ... Injector, 9 ... Igniter, 60 ... Microcomputer, 61 ... Digital interface, 62 ... Analog interface, 63 ... A / D converter, 64 ... Drive circuit, 65 ... Reset circuit (watchdog circuit), 601 ... CPU, 602 ... ROM, 60
3 ... RAM, 604 ... Backup RAM, 605 ... Timer.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】エンジンの運転状態を検出する運転状態検
出手段と、該運転状態検出手段のアナログ出力をディジ
タル値に変換するA/D変換器と、このA/D変換器に
よるA/D変換値をその変換完了割り込みに基づき取り
込んでエンジン制御量を演算する制御量演算手段と、前
記変換完了割り込みよりも優先順位の高い割り込みに基
づき該演算されたエンジン制御量を出力する制御量出力
手段と、この出力される制御量に応じてエンジン被制御
部を駆動する駆動手段とを有してエンジンの運転を制御
するエンジン制御装置であって、 前記A/D変換器の異常を検出する異常検出手段を具
え、 前記制御量出力手段は、この異常検出手段によってA/
D変換器の異常が検出されるとき、前記演算されたエン
ジン制御量に代わる所定のフェールセーフ値を前記駆動
手段に対して出力することを特徴とするエンジン制御装
置。
1. An operating state detecting means for detecting an operating state of an engine, an A / D converter for converting an analog output of the operating state detecting means into a digital value, and an A / D conversion by the A / D converter. Control amount calculation means for calculating the engine control amount by taking in a value based on the conversion completion interrupt; and control amount output means for outputting the calculated engine control amount based on an interrupt having a higher priority than the conversion completion interrupt. An abnormality detection for detecting an abnormality of the A / D converter, the engine control apparatus having a driving unit for driving an engine controlled unit according to the output control amount to control the operation of the engine. The control amount output means includes an A /
An engine control device, which outputs a predetermined fail-safe value in place of the calculated engine control amount to the drive means when an abnormality of the D converter is detected.
【請求項2】前記異常検出手段は、前記A/D変換器
の、少なくともその変換完了状態が持続される異常につ
いてこれを検出するものである請求項1記載のエンジン
制御装置。
2. The engine control device according to claim 1, wherein the abnormality detecting means detects an abnormality of the A / D converter in which at least the conversion completion state is maintained.
【請求項3】請求項2記載のエンジン制御装置におい
て、 前記制御量演算手段は、ループ処理に基づく前記エンジ
ン制御量の繰り返しの演算に伴いウォッチドッグクリア
信号を繰り返し生成してこれをウォッチドッグ回路に出
力するものであり、 前記エンジン制御装置は、前記異常検出手段によって前
記A/D変換器の変換完了状態が持続される異常が検出
されるとき、前記変換完了割り込みよりも優先順位の高
い周期割り込みに基づき前記ウォッチドッグクリア信号
を前記ウォッチドッグ回路に対し強制出力する手段を更
に具えることを特徴とするエンジン制御装置。
3. The engine control device according to claim 2, wherein the control amount calculation means repeatedly generates a watchdog clear signal in accordance with a repeated calculation of the engine control amount based on a loop process, and outputs this to a watchdog circuit. When the abnormality detecting unit detects an abnormality in which the conversion completion state of the A / D converter is maintained, the engine control device has a higher priority cycle than the conversion completion interrupt. The engine control device further comprising means for forcibly outputting the watchdog clear signal to the watchdog circuit based on an interrupt.
【請求項4】請求項1または2または3記載のエンジン
制御装置において、 前記エンジンの回転数を検出する回転数検出手段と、 該検出される回転数に応じて前記フェールセーフ値を変
更するフェールセーフ値変更手段とを更に具えることを
特徴とするエンジン制御装置。
4. The engine control device according to claim 1, 2 or 3, wherein a rotation speed detecting means for detecting the rotation speed of the engine and a fail-safe value for changing the fail-safe value according to the detected rotation speed. An engine control device further comprising safe value changing means.
【請求項5】エンジンの運転状態を検出する運転状態検
出手段と、該運転状態検出手段のアナログ出力をディジ
タル値に変換するA/D変換器と、このA/D変換器に
よるA/D変換値をその変換完了割り込みに基づき取り
込んでエンジン制御量を演算する制御量演算手段と、前
記変換完了割り込みよりも優先順位の高い割り込みに基
づき該演算されたエンジン制御量を出力する制御量出力
手段と、この出力される制御量に応じてエンジン被制御
部を駆動する駆動手段とを有してエンジンの運転を制御
するエンジン制御装置であって、 前記A/D変換器の異常を検出する異常検出手段を具
え、 前記制御量演算手段は、この異常検出手段によってA/
D変換器の異常が検出されるとき、前記変換完了割り込
みを禁止し、前記演算すべきエンジン制御量に代わる所
定のフェールセーフ値を前記制御量出力手段に与えるこ
とを特徴とするエンジン制御装置。
5. An operating state detecting means for detecting an operating state of the engine, an A / D converter for converting an analog output of the operating state detecting means into a digital value, and an A / D conversion by the A / D converter. Control amount calculation means for calculating the engine control amount by taking in a value based on the conversion completion interrupt; and control amount output means for outputting the calculated engine control amount based on an interrupt having a higher priority than the conversion completion interrupt. An abnormality detection for detecting an abnormality of the A / D converter, the engine control apparatus having a driving unit for driving an engine controlled unit according to the output control amount to control the operation of the engine. Means for controlling the amount of control by the abnormality detecting means.
An engine control device, wherein when an abnormality of the D converter is detected, the conversion completion interrupt is prohibited and a predetermined fail-safe value in place of the engine control amount to be calculated is given to the control amount output means.
【請求項6】前記異常検出手段は、前記A/D変換器
の、少なくともその変換完了状態が持続される異常につ
いてこれを検出するものである請求項5記載のエンジン
制御装置。
6. The engine control device according to claim 5, wherein the abnormality detecting means detects an abnormality of the A / D converter in which at least the conversion completion state is maintained.
【請求項7】請求項5または6記載のエンジン制御装置
において、 前記エンジンの回転数を検出する回転数検出手段と、 該検出される回転数に応じて前記フェールセーフ値を変
更するフェールセーフ値変更手段とを更に具えることを
特徴とするエンジン制御装置。
7. The engine control device according to claim 5, wherein a rotation speed detecting means for detecting the rotation speed of the engine, and a fail safe value for changing the fail safe value according to the detected rotation speed. An engine control device further comprising a changing unit.
【請求項8】請求項1〜7の何れかに記載のエンジン制
御装置において、 前記異常検出手段によってA/D変換器の異常が検出さ
れた旨の情報が格納されるメモリと、 該メモリにこのA/D変換器が異常である旨の情報が存
在することに基づいて適宜の警報処理を実行する警報手
段とを更に具えることを特徴とするエンジン制御装置。
8. The engine control device according to claim 1, wherein the abnormality detection unit stores information indicating that an abnormality of the A / D converter is detected, and the memory is stored in the memory. An engine control device further comprising alarm means for executing appropriate alarm processing based on the presence of information indicating that the A / D converter is abnormal.
JP18419095A 1995-07-20 1995-07-20 Engine controller Pending JPH0932615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18419095A JPH0932615A (en) 1995-07-20 1995-07-20 Engine controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18419095A JPH0932615A (en) 1995-07-20 1995-07-20 Engine controller

Publications (1)

Publication Number Publication Date
JPH0932615A true JPH0932615A (en) 1997-02-04

Family

ID=16148938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18419095A Pending JPH0932615A (en) 1995-07-20 1995-07-20 Engine controller

Country Status (1)

Country Link
JP (1) JPH0932615A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006273239A (en) * 2005-03-30 2006-10-12 Fujitsu Ten Ltd Vehicular control device, and vehicle stopping method
JP2010043536A (en) * 2008-08-08 2010-02-25 Denso Corp Control apparatus for vehicle
JP2016072731A (en) * 2014-09-29 2016-05-09 日立オートモティブシステムズ株式会社 Automobile electronic control apparatus and diagnostic method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006273239A (en) * 2005-03-30 2006-10-12 Fujitsu Ten Ltd Vehicular control device, and vehicle stopping method
JP2010043536A (en) * 2008-08-08 2010-02-25 Denso Corp Control apparatus for vehicle
JP2016072731A (en) * 2014-09-29 2016-05-09 日立オートモティブシステムズ株式会社 Automobile electronic control apparatus and diagnostic method

Similar Documents

Publication Publication Date Title
JP2625148B2 (en) In-vehicle electronic control unit
JP6754743B2 (en) In-vehicle electronic control unit and its abnormal processing method
JPS6377244A (en) Communication control equipment
JP3596433B2 (en) Automotive electronic control unit
JP2001165818A (en) Vehicle diagnostic instrument
JPH0932615A (en) Engine controller
JP2007211714A (en) Engine control unit, abnormality judgment device and program
JPH1173203A (en) Electronic control unit
US6879892B2 (en) Electronic control system and method thereof
JP3157067B2 (en) Air-fuel ratio detection device abnormality diagnosis device
JP2000303898A (en) Equipment for detecting abnormality in water temperature sensor
US5020492A (en) Warning system for marine propulsion engine
JP2009275712A (en) Economical running control device and control method
JPH04292545A (en) Electronic control device for automobile
JP4538852B2 (en) Vehicle control device
JPH1122529A (en) Control device for engine
JP2775008B2 (en) In-vehicle control device
JP5628142B2 (en) Electronic control unit
JPH10259769A (en) Fuel pump control device
JPH06314101A (en) Controller for actuator
EP1052495B1 (en) Internal combustion engine diagnostic apparatus
JP3119408B2 (en) Malfunction prevention device for in-vehicle microcomputer
JP2003167601A (en) Electronic controller for vehicle
JPH09251027A (en) Fault diagnostic device of car speed sensor system
JPS611552A (en) Control unit for vehicles