JP2001090600A - Engine control device - Google Patents

Engine control device

Info

Publication number
JP2001090600A
JP2001090600A JP27092599A JP27092599A JP2001090600A JP 2001090600 A JP2001090600 A JP 2001090600A JP 27092599 A JP27092599 A JP 27092599A JP 27092599 A JP27092599 A JP 27092599A JP 2001090600 A JP2001090600 A JP 2001090600A
Authority
JP
Japan
Prior art keywords
signal
level
value
time
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP27092599A
Other languages
Japanese (ja)
Other versions
JP2001090600A5 (en
JP4475704B2 (en
Inventor
Takayoshi Honda
隆芳 本多
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 JP27092599A priority Critical patent/JP4475704B2/en
Priority to US09/665,693 priority patent/US6341253B1/en
Publication of JP2001090600A publication Critical patent/JP2001090600A/en
Publication of JP2001090600A5 publication Critical patent/JP2001090600A5/ja
Application granted granted Critical
Publication of JP4475704B2 publication Critical patent/JP4475704B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related 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 provide an engine control device capable of correctly discriminating cylinders even when a sensor for outputting cylinder discriminating signals or its wiring is malfunctioned. SOLUTION: An engine control device generates 30-degree CA signals NE2 rising at every 30-degrees CA in accordance with rotation signals (NE signals) from a crank angle sensor and counts up a value (count value) CNT for a crank counter in an range of 0-23 using the signals NE2. Each time reference position signals K out of the NE signals are detected, the levels of cylinder discrimination signals (G signals) from a cam angle sensor are read out, and if the leading level is low, the count value CNT is initialized to be 20, and if the leading level is high, the count value CNT is initialized to be 8. The device which discriminates cylinders in accordance with the count values CNT is constructed not to initialize the count values CNT if the previous leading level of the G signal is the same as the current leading level.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、4サイクルエンジ
ンを制御するエンジン制御装置に関し、特にエンジンの
気筒判別に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an engine control device for controlling a four-stroke engine, and more particularly to a cylinder discrimination of an engine.

【0002】[0002]

【従来の技術】従来より、エンジン制御装置として、エ
ンジンのクランク軸が所定角度回転する毎にパルス信号
を出力すると共に、そのクランク軸の回転位置が予め設
定された基準位置に来た時にはパルス信号に代えて基準
位置信号を出力するクランク角センサと、クランク軸の
回転に対し1/2の比率で回転するエンジンのカム軸の
回転位置に応じて、論理レベルがハイレベルとロウレベ
ルとに変化する気筒判別用信号を出力するカム角センサ
とを備え、上記クランク角センサから基準位置信号が出
力されたタイミングでの気筒判別用信号の論理レベルに
基づいて、気筒判別を行うものがある(例えば特開平6
−213058号公報)。
2. Description of the Related Art Conventionally, an engine control device outputs a pulse signal every time a crankshaft of an engine rotates a predetermined angle, and outputs a pulse signal when the rotational position of the crankshaft reaches a predetermined reference position. The logic level changes between a high level and a low level in accordance with a crank angle sensor that outputs a reference position signal instead of the reference position signal and a rotation position of a camshaft of an engine that rotates at a ratio of 1/2 to the rotation of the crankshaft. There is a cam angle sensor that outputs a cylinder discrimination signal, and performs a cylinder discrimination based on the logical level of the cylinder discrimination signal at the timing when the reference position signal is output from the crank angle sensor (for example, Kaihei 6
No. -213058).

【0003】ここで、このようなエンジン制御装置で実
施される気筒判別方法の具体例について、図11を用い
て説明する。まず、この例において、クランク角センサ
から出力される信号NE(一般に回転信号と呼ばれるも
のであり、以下、NE信号という)は、クランク軸が1
0°回転する毎(10°CA毎)にロウレベル→ハイレ
ベル→ロウレベルといった具合にパルス状に変化すると
共に、クランク軸の回転位置が予め設定された1つの基
準位置に来た時には、立ち上がりの間隔が3倍長くな
る。つまり、10°CA毎にパルス状に変化する部分が
パルス信号となり、また、立ち上がりの間隔が3倍長く
なる(即ちパルス信号が2回欠落する)期間が、基準位
置信号Kとなっている。そして、この基準位置信号K
は、クランク軸が1回転する毎(360°CA毎)に発
生する。
Here, a specific example of a cylinder discriminating method performed by such an engine control device will be described with reference to FIG. First, in this example, a signal NE output from the crank angle sensor (generally called a rotation signal, hereinafter, referred to as an NE signal) is a signal from the crankshaft 1.
Each time it rotates 0 ° (every 10 ° CA), it changes in a pulse form, such as low level → high level → low level, and when the rotational position of the crankshaft comes to one preset reference position, the rising interval Is three times longer. That is, a portion that changes in a pulse shape at every 10 ° CA becomes a pulse signal, and a period in which the rising interval is tripled (that is, the pulse signal is lost twice) is the reference position signal K. Then, the reference position signal K
Is generated every time the crankshaft makes one rotation (every 360 ° CA).

【0004】また、この例において、カム角センサから
出力される気筒判別用信号G(以下、G信号という)
は、クランク角センサからパルス信号が出力されている
期間中に論理レベルが1回反転するようになっている。
このため、G信号は、クランク軸が2回転する期間(7
20°CAの期間)を1周期とし、クランク角センサか
ら基準位置信号Kが出力されるタイミングでは、その各
タイミング毎に交互に異なった論理レベルとなる。尚、
このようなカム角センサとしては、例えば特開平8−1
14411号公報に記載されているように、磁気抵抗素
子を用いたものがある。
[0004] In this example, a cylinder discriminating signal G (hereinafter referred to as a G signal) output from a cam angle sensor.
The logic level is inverted once during the period when the pulse signal is output from the crank angle sensor.
For this reason, the G signal is output during the period (7
A period of 20 ° CA) is defined as one cycle, and at the timing when the reference position signal K is output from the crank angle sensor, the logic level is alternately different at each timing. still,
As such a cam angle sensor, for example, JP-A-8-1
As described in Japanese Patent No. 14411, there is one using a magnetoresistive element.

【0005】次に、エンジン制御装置は、上記NE信号
及びG信号と、エンジンを始動させるためのスタータス
イッチがオンされた時にハイレベルとなるスタータ信号
STAとに基づいて、以下の動作を行う。まず、図11
の時刻t11に示すように、スタータ信号STAがハイ
レベルになると(スタータスイッチがオンされると)、
NE信号中における基準位置信号Kの検出動作を開始す
る。また、この時、内部のクランクカウンタの値(カウ
ント値)を0にクリアする。
Next, the engine control device performs the following operation based on the NE signal and the G signal and a starter signal STA which goes high when a starter switch for starting the engine is turned on. First, FIG.
As shown at time t11, when the starter signal STA becomes high level (when the starter switch is turned on),
The detection operation of the reference position signal K in the NE signal is started. At this time, the value (count value) of the internal crank counter is cleared to zero.

【0006】そして、時刻t12に示すように、スター
タ信号STAがハイレベルになってから最初に基準位置
信号Kの発生を検出すると、以後、NE信号を分周し
て、30°CA毎(クランク軸が30°回転する毎)に
立ち上がる30°CA信号NE2を生成すると共に、そ
の30°CA信号NE2が立ち上がる毎に(即ち、NE
信号に基づきクランク軸が30°回転したことを検出す
る毎に)、クランクカウンタの値を1ずつカウントアッ
プさせる。
Then, as shown at time t12, when the generation of the reference position signal K is first detected after the starter signal STA has become high level, the NE signal is frequency-divided thereafter, and every 30 ° CA (crank). A 30 ° CA signal NE2 rising every time the shaft rotates 30 ° is generated, and each time the 30 ° CA signal NE2 rises (ie, NE).
Each time the crankshaft is rotated by 30 ° based on the signal), the value of the crank counter is incremented by one.

【0007】ここで、クランクカウンタの値は、クラン
ク軸の2回転分の累積回転角度を、30°を分解能とし
て示すものであり、この例では0から23までの値とな
る。つまり、エンジン制御装置は、クランクカウンタの
値が23になると、その次の30°CA信号NE2の立
ち上がりタイミングで、クランクカウンタの値を0に戻
すことにより、そのクランクカウンタの値を、クランク
軸の2回転分を1サイクルとして繰り返しカウントアッ
プする。
Here, the value of the crank counter indicates the cumulative rotation angle for two rotations of the crankshaft with a resolution of 30 °, and in this example is a value from 0 to 23. That is, when the value of the crank counter reaches 23, the engine control device returns the value of the crank counter to 0 at the next rising timing of the 30 ° CA signal NE2, thereby changing the value of the crank counter to the value of the crankshaft. It counts up repeatedly for two rotations as one cycle.

【0008】そして更に、エンジン制御装置は、NE信
号中の基準位置信号Kを検出する毎に、G信号の論理レ
ベルを読み取って、その論理レベルがロウレベルの場合
には、クランクカウンタの値を20に初期化し、逆にG
信号の論理レベルがハイレベルの場合には、クランクカ
ウンタの値を8に初期化する。
Further, every time the engine control device detects the reference position signal K in the NE signal, it reads the logic level of the G signal, and if the logic level is low, the engine control device sets the value of the crank counter to 20. , And conversely G
When the logic level of the signal is high, the value of the crank counter is initialized to 8.

【0009】このため、図11の時刻t12に示すよう
に、スタータ信号STAがハイレベルになってから最初
の基準位置信号Kの発生タイミングで、G信号がロウレ
ベルであったならば、クランクカウンタの値が20に初
期化され、以後、クランクカウンタの値は、20→21
→22→23→0→1→2→3…とカウントアップされ
ていく。
For this reason, as shown at time t12 in FIG. 11, if the G signal is at the low level at the first generation timing of the reference position signal K after the starter signal STA goes to the high level, the crank counter The value is initialized to 20, and thereafter, the value of the crank counter becomes 20 → 21
→ 22 → 23 → 0 → 1 → 2 → 3 ...

【0010】そして、時刻t13に示すように、次の基
準位置信号Kの発生タイミングでは、G信号が時刻t1
2とは反対のハイレベルとなるため、その時刻t13で
は、クランクカウンタの値が8に初期化される。また、
時刻t14に示すように、次の基準位置信号Kの発生タ
イミングでは、G信号が時刻t13とは反対のロウレベ
ルとなるため、その時刻t14では、クランクカウンタ
の値が20に初期化される。そして、8と20は、クラ
ンク軸の1回転分(360°CA分)に相当する値だけ
互いに異なった値であるため、上記初期化によってクラ
ンクカウンタの値の連続性を損なうことはない。つま
り、上記初期化で設定される値(8と20)は、仮に上
記初期化が行われなかったとしても、クランクカウンタ
の値がなるべき値となっている。
Then, as shown at time t13, at the next generation timing of the reference position signal K, the G signal changes at time t1.
Since the high level is opposite to 2, the value of the crank counter is initialized to 8 at time t13. Also,
As shown at time t14, at the next generation timing of the reference position signal K, the G signal is at the low level opposite to that at time t13, so at that time t14, the value of the crank counter is initialized to 20. Since the values 8 and 20 are different from each other by a value corresponding to one rotation of the crankshaft (360 ° CA), the initialization does not impair the continuity of the value of the crank counter. That is, the values (8 and 20) set in the initialization are values that the value of the crank counter should become even if the initialization is not performed.

【0011】以後は、図11の時刻t14〜時刻t17
及び時刻t17以降に示すように、時刻t12〜時刻t
14と同様の動作が繰り返される。そして、エンジン制
御装置は、G信号の論理レベルを最初に読み取った時
(即ち、スタータスイッチがオンされてから最初に基準
位置信号Kの発生を検出した時刻t12)からのクラン
クカウンタの値に基づいて、点火すべき気筒を判別す
る。
Thereafter, time t14 to time t17 in FIG.
And from time t17 to time t17,
The same operation as 14 is repeated. Then, the engine control device determines the logical level of the G signal for the first time (that is, based on the value of the crank counter from the time t12 when the generation of the reference position signal K is first detected after the starter switch is turned on). Then, the cylinder to be ignited is determined.

【0012】例えば、エンジンがV型6気筒エンジンで
あるとすると、クランクカウンタの値が0の時に、第1
気筒の上死点前(BTDC)30°CAと判断し、クラ
ンクカウンタの値が4の時に、第2気筒のBTDC30
°CAと判断し、クランクカウンタの値が8の時に、第
3気筒のBTDC30°CAと判断し、クランクカウン
タの値が12の時に、第4気筒のBTDC30°CAと
判断し、クランクカウンタの値が16の時に、第5気筒
のBTDC30°CAと判断し、クランクカウンタの値
が20の時に、第6気筒のBTDC30°CAと判断す
る。
For example, assuming that the engine is a V-type six-cylinder engine, when the value of the crank counter is 0, the first
It is determined that the cylinder is 30 ° CA before the top dead center (BTDC) of the cylinder, and when the value of the crank counter is 4, the BTDC 30 of the second cylinder is determined.
When the value of the crank counter is 8, it is determined that the BTDC of the third cylinder is 30 ° CA when the value of the crank counter is 8, and when the value of the crank counter is 12, it is determined that the BTDC is 30 ° CA of the fourth cylinder. Is 16 when the crank counter value is 20, it is determined that the BTDC is 30 ° CA for the sixth cylinder.

【0013】尚、スタータスイッチがオンされて最初に
基準位置信号Kを検出した時だけでなく、その後も、基
準位置信号Kを検出する毎にG信号の論理レベルを読み
取って、クランクカウンタの値を8か20に初期化する
ようにしているのは、万一、ノイズの影響等によってク
ランクカウンタの値が正常値から外れても、それを速や
かに正常値へと戻せるようにするためである。
The logic level of the G signal is read each time the reference position signal K is detected, not only when the reference position signal K is detected for the first time after the starter switch is turned on, and the value of the crank counter is read. Is initialized to 8 or 20 so that even if the value of the crank counter deviates from the normal value due to the influence of noise or the like, it can be quickly returned to the normal value. .

【0014】そして、図11のような気筒判別用の動作
を行うエンジン制御装置によれば、スタータスイッチが
オンされてから早期に気筒判別を行うことができ、延い
ては、エンジンの始動性を向上させることができる。つ
まり、カム角センサとして、カム軸の1回転(クランク
軸の2回転)に1パルスの気筒判別用信号を出力するも
のを用いると共に、NE信号中の基準位置信号Kを検出
してから、NE信号の一定パルス数分の判定区間内にカ
ム角センサからパルスが出力された場合にだけ、クラン
クカウンタの値を0に初期化する、といったオーソドッ
クスな処理を行う装置の場合には、スタータスイッチが
オンされてから最初に基準位置信号Kを検出した際の上
記判定区間で、仮にカム角センサからパルスが出力され
たとしても、その判定区間が終了した時点でしかクラン
クカウンタのカウント動作を開始することができず、そ
の分、気筒判別が遅れてしまう。これは、基準位置信号
Kの発生タイミングとカム角センサからパルスが出力さ
れるタイミングとの時間差が、センサの個体差や経時変
化、或いは更に、カム軸を操作して吸排気バルブの開閉
タイミングを可変にする制御などによって、常に一定と
はならないためである。
According to the engine control apparatus which performs the cylinder discriminating operation as shown in FIG. 11, the cylinder discrimination can be performed early after the starter switch is turned on, and the startability of the engine can be improved. Can be improved. That is, a sensor that outputs a cylinder discrimination signal of one pulse for one rotation of the camshaft (two rotations of the crankshaft) is used as the cam angle sensor, and after detecting the reference position signal K in the NE signal, NE In the case of a device that performs orthodox processing such as initializing the value of the crank counter to 0 only when a pulse is output from the cam angle sensor within the determination section for a fixed number of pulses of the signal, the starter switch is Even if a pulse is output from the cam angle sensor in the above-described determination section when the reference position signal K is first detected after being turned on, the count operation of the crank counter is started only at the end of the determination section. Cannot be performed, and the cylinder determination is delayed accordingly. This is because the time difference between the generation timing of the reference position signal K and the timing at which the pulse is output from the cam angle sensor depends on the individual difference of the sensor or the change with time, or furthermore, the opening and closing timing of the intake and exhaust valves by operating the cam shaft. This is because it is not always constant due to variable control or the like.

【0015】これに対して、図11のような気筒判別用
の動作を行うエンジン制御装置によれば、NE信号中の
基準位置信号Kを最初に検出した時点から気筒判別を行
って、エンジンの始動性を向上させることができるので
ある。
On the other hand, according to the engine control apparatus which performs the cylinder discriminating operation as shown in FIG. 11, the cylinder discrimination is performed from the time point when the reference position signal K in the NE signal is first detected, and the engine is controlled. Startability can be improved.

【0016】[0016]

【発明が解決しようとする課題】ここで、図11を用い
て説明したエンジン制御装置では、上記のように早期の
気筒判別が可能となるが、カム角センサからエンジン制
御装置の信号処理部分へ至る配線や、カム角センサ自身
に異常が発生して、G信号の論理レベルが変化しなくな
ると(固定されてしまうと)、360°CA毎に、クラ
ンクカウンタの値が8と20との何れか一方だけに初期
化されてしまい、もはや正常な気筒判別を行うことがで
きないという問題がある。
Here, the engine control device described with reference to FIG. 11 enables early cylinder discrimination as described above, but from the cam angle sensor to the signal processing portion of the engine control device. If the logic level of the G signal does not change (is fixed) due to the occurrence of an abnormality in the wiring or the cam angle sensor itself, the value of the crank counter becomes 8 or 20 every 360 ° CA. There is a problem that initialization is performed only on one of the cylinders and normal cylinder discrimination cannot be performed anymore.

【0017】例えば、図12に示すように、図11の時
刻t14と時刻t15との間の時刻に相当する時刻t1
4’にて、カム角センサからの配線やカム角センサ自身
に異常が発生して、G信号がロウレベルに固定されてし
まった場合には、その後、NE信号中の基準位置信号K
が検出される毎(図12の時刻t15,t16,t1
7)に、クランクカウンタの値が20に初期化されて、
クランクカウンタの値の連続性が損なわれてしまい、正
しく気筒判別することができなくなってしまう。
For example, as shown in FIG. 12, a time t1 corresponding to a time between time t14 and time t15 in FIG.
At 4 ', if an error occurs in the wiring from the cam angle sensor or the cam angle sensor itself and the G signal is fixed to the low level, then the reference position signal K in the NE signal
Is detected (at times t15, t16, t1 in FIG. 12).
7), the value of the crank counter is initialized to 20, and
The continuity of the value of the crank counter is impaired, and the cylinder cannot be correctly determined.

【0018】本発明は、こうした問題に鑑みなされたも
のであり、気筒判別用信号(G信号)のレベルを読み取
って早期気筒判別を行うエンジン制御装置において、気
筒判別用信号を出力するセンサやその配線に異常が生じ
ても、気筒判別を正しく行うことができるようにするこ
とを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of such a problem, and an engine control device that reads a level of a cylinder discrimination signal (G signal) to perform early cylinder discrimination and a sensor that outputs a cylinder discrimination signal, An object of the present invention is to make it possible to correctly perform cylinder discrimination even when an abnormality occurs in wiring.

【0019】[0019]

【課題を解決するための手段、及び発明の効果】上記目
的を達成するためになされた請求項1に記載のエンジン
制御装置は、第1の信号発生手段と第2の信号発生手段
とを備えており、第1の信号発生手段は、エンジンのク
ランク軸の回転に応じて、クランク軸が所定角度回転す
る毎にパルス信号を出力すると共に、クランク軸の回転
位置が予め設定された1つの基準位置に来た時には前記
パルス信号に代えて基準位置信号を出力する。このた
め、基準位置信号は360°CA毎に発生する。
Means for Solving the Problems and Effects of the Invention An engine control apparatus according to a first aspect of the present invention, which has been made to achieve the above object, includes first signal generating means and second signal generating means. The first signal generating means outputs a pulse signal each time the crankshaft rotates by a predetermined angle in accordance with the rotation of the crankshaft of the engine, and the rotational position of the crankshaft is set to one predetermined reference. When it comes to the position, it outputs a reference position signal instead of the pulse signal. Therefore, the reference position signal is generated every 360 ° CA.

【0020】また、第2の信号発生手段は、前記クラン
ク軸の回転に対し1/2の比率で回転する回転軸の回転
に応じて、気筒判別用信号を出力するが、この気筒判別
用信号は、第1の信号発生手段から前記パルス信号が出
力されている期間中に論理レベルが変化すると共に、第
1の信号発生手段から前記基準位置信号が出力されるタ
イミングでは、その各タイミング毎に交互に異なった論
理レベルとなる。
The second signal generating means outputs a cylinder discriminating signal in accordance with the rotation of the rotating shaft which rotates at a ratio of 1/2 with respect to the rotation of the crankshaft. The logic level changes during the period when the pulse signal is being output from the first signal generation means, and the reference position signal is output from the first signal generation means at each timing. Alternately at different logic levels.

【0021】そして、請求項1に記載のエンジン制御装
置では、レベル読取手段が、第1の信号発生手段から基
準位置信号が出力されたことを検出すると、第2の信号
発生手段からの気筒判別用信号の論理レベルを読み取
る。また、カウント手段が、第1の信号発生手段から出
力されるパルス信号に基づきクランク軸が所定の単位角
度回転したことを検出して、その検出時毎に、前記単位
角度を分解能としてクランク軸の2回転分の累積回転角
度を示すカウント値を、カウントアップ或いはカウント
ダウンさせるが、第1の信号発生手段から基準位置信号
が出力されてレベル読取手段により気筒判別用信号の論
理レベルが読み取られると、初期化手段により、前記カ
ウント値は、前記読み取られた気筒判別用信号の論理レ
ベルに応じて、該論理レベルがロウレベルの場合には第
1の値に初期化され、逆に前記論理レベルがハイレベル
の場合には第2の値に初期化される。
In the engine control device according to the first aspect, when the level reading means detects that the reference position signal has been output from the first signal generation means, the cylinder discrimination from the second signal generation means is performed. Read the logical level of the application signal. Further, the counting means detects that the crankshaft has rotated by a predetermined unit angle based on the pulse signal output from the first signal generating means, and every time the detection is performed, the unit angle is set as a resolution and the crankshaft is rotated. The count value indicating the cumulative rotation angle for two rotations is counted up or down. When the reference position signal is output from the first signal generation means and the logic level of the cylinder discrimination signal is read by the level reading means, The initialization means initializes the count value to a first value according to the logical level of the read cylinder determination signal when the logical level is low, and conversely, the logical level is high. In the case of the level, it is initialized to the second value.

【0022】そして、この第1の値と第2の値は、前記
カウント値の連続性を維持できるようにクランク軸の1
回転分(360°CA分)に相当する値だけ互いに異な
った値となっており、このエンジン制御装置では、レベ
ル読取手段により気筒判別用信号の論理レベルが最初に
読み取られてからの前記カウント値に基づいて、エンジ
ンの気筒判別を行う。
The first value and the second value are set so that the continuity of the count value can be maintained.
The values are different from each other by a value corresponding to the rotation (360 ° CA). In this engine control device, the count value after the logical level of the cylinder discriminating signal is first read by the level reading means is read. , The cylinder of the engine is determined.

【0023】つまり、請求項1に記載のエンジン制御装
置では、図11を用いて説明したような気筒判別方法を
実施している。このため、第1の信号発生手段からの基
準位置信号を最初に検出した時点から気筒判別を行うこ
とができるのであるが、前述したように、第2の信号発
生手段やその手段からの配線に異常が発生して、気筒判
別用信号の論理レベルがハイレベルとロウレベルとの何
れかに固定されてしまうと、第1の信号発生手段から基
準位置信号が出力される毎(360°CA毎)に、前記
カウント値が第1の値と第2の値との何れか一方だけに
初期化されてしまい、正しく気筒判別することができな
くなってしまう。
That is, in the engine control apparatus according to the first aspect, the cylinder discriminating method as described with reference to FIG. 11 is performed. For this reason, the cylinder discrimination can be performed from the time point when the reference position signal from the first signal generating means is first detected. However, as described above, the second signal generating means and the wiring from the means can be used. When an abnormality occurs and the logical level of the cylinder discriminating signal is fixed to either the high level or the low level, each time the first signal generating means outputs the reference position signal (every 360 ° CA). In addition, the count value is initialized to only one of the first value and the second value, and it becomes impossible to correctly determine the cylinder.

【0024】そこで特に、請求項1に記載のエンジン制
御装置では、禁止手段を設け、その禁止手段が、レベル
読取手段により気筒判別用信号の論理レベルが読み取ら
れると、その今回読み取られた論理レベルと、レベル読
取手段により前回読み取られた論理レベルとを比較し
て、両論理レベルが一致していると判定すると、初期化
手段の動作を禁止するようにしている。
In particular, in the engine control device according to the first aspect of the present invention, the prohibiting means is provided, and when the prohibiting means reads the logical level of the cylinder discriminating signal by the level reading means, the currently read logical level is used. Is compared with the logic level read last time by the level reading means, and when it is determined that both logic levels match, the operation of the initialization means is prohibited.

【0025】換言すれば、レベル読取手段により気筒判
別用信号の論理レベルが読み取られると、その今回読み
取られた論理レベルと、レベル読取手段により前回読み
取られた論理レベルとを比較して、両論理レベルが相違
している場合に、初期化手段を動作させて前記カウント
値を第1の値或いは第2の値に初期化するようにしてい
る。
In other words, when the logic level of the cylinder discriminating signal is read by the level reading means, the logic level read this time is compared with the logic level previously read by the level reading means, and both logic levels are read. When the levels are different, the initialization means is operated to initialize the count value to a first value or a second value.

【0026】このため、請求項1に記載のエンジン制御
装置によれば、第2の信号発生手段自身やその手段から
の配線に異常が発生して、気筒判別用信号の論理レベル
が固定されてしまっても、前記カウント値の連続性を維
持することができ、正しく気筒判別することができるよ
うになる。
Therefore, according to the engine control device of the first aspect, an abnormality occurs in the second signal generation means itself and the wiring from the second signal generation means, and the logical level of the cylinder discrimination signal is fixed. Even if it does, the continuity of the count value can be maintained, and the cylinder can be correctly determined.

【0027】次に、請求項2に記載のエンジン制御装置
は、上記請求項1のエンジン制御装置と比較して、禁止
手段だけが異なっている。即ち、請求項2に記載のエン
ジン制御装置では、禁止手段が、レベル読取手段により
気筒判別用信号の論理レベルが前回読み取られてから今
回読み取られるまでの間に、気筒判別用信号の論理レベ
ルが反転したか否かを判定し、一度も反転していないと
判定すると、初期化手段の動作を禁止する。
Next, the engine control device according to claim 2 differs from the engine control device according to claim 1 only in the prohibiting means. In other words, in the engine control device according to the second aspect, the prohibiting means sets the logical level of the cylinder discriminating signal between the previous reading of the logical level of the cylinder discriminating signal and the present reading of the cylinder discriminating signal by the level reading means. It is determined whether or not it has been inverted, and if it is determined that it has never been inverted, the operation of the initialization means is prohibited.

【0028】換言すれば、レベル読取手段により気筒判
別用信号の論理レベルが前回読み取られてから今回読み
取られるまでの間に、気筒判別用信号の論理レベルが1
回以上反転していれば、初期化手段を動作させて前記カ
ウント値を第1の値或いは第2の値に初期化するように
している。
In other words, the logic level of the cylinder discriminating signal is set to 1 between the time when the logic level of the cylinder discriminating signal is read by the level reading means and the time when it is read this time.
If the count value has been inverted more than once, the initialization means is operated to initialize the count value to the first value or the second value.

【0029】そして、このような請求項2に記載のエン
ジン制御装置によっても、請求項1のエンジン制御装置
と同様の効果を得ることができる。
According to the engine control device of the second aspect, the same effect as that of the engine control device of the first aspect can be obtained.

【0030】[0030]

【発明の実施の形態】以下、本発明が適用された実施形
態のエンジン制御装置について、図面を用いて説明す
る。まず、図1は、第1実施形態のエンジン制御装置の
構成を表す構成図であり、図2は、このエンジン制御装
置で正常時に行われる気筒判別用の動作を表すタイムチ
ャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An engine control device according to an embodiment of the present invention will be described below with reference to the drawings. First, FIG. 1 is a configuration diagram illustrating a configuration of the engine control device according to the first embodiment, and FIG. 2 is a time chart illustrating a cylinder discriminating operation performed by the engine control device in a normal state.

【0031】尚、このエンジン制御装置は、例えばV型
6気筒の4サイクルエンジンを制御対象とし、6個の気
筒に対応して、6個の燃料噴射弁11〜16と6個の点
火コイル21〜26とを備えている。そして、このエン
ジン制御装置は、前述した図11と同じ要領で気筒判別
を行うものである。
The engine control apparatus controls, for example, a V-type six-cylinder four-cycle engine, and controls six fuel injection valves 11 to 16 and six ignition coils 21 corresponding to the six cylinders. To 26. This engine control device performs the cylinder determination in the same manner as in FIG. 11 described above.

【0032】図1に示すように、本第1実施形態のエン
ジン制御装置は、マイクロコンピュータ(以下、CPU
という)31、入力バッファ33,35,37、A/D
変換器39、出力バッファ41、及び信号処理回路43
を備えた電子制御ユニット(以下、ECUという)45
を中心に構成されている。
As shown in FIG. 1, the engine control device according to the first embodiment includes a microcomputer (hereinafter referred to as a CPU).
31, input buffers 33, 35, 37, A / D
Converter 39, output buffer 41, and signal processing circuit 43
Electronic control unit (hereinafter referred to as ECU) 45 provided with
It is mainly configured.

【0033】そして、エンジンに取り付けられたクラン
ク角センサ47からの回転信号NE(NE信号)が、入
力バッファ33を介して信号処理回路43に入力され、
また、エンジンに取り付けられたカム角センサ49から
の気筒判別用信号G(G信号)が、入力バッファ35を
介して信号処理回路43に入力される。
The rotation signal NE (NE signal) from the crank angle sensor 47 attached to the engine is input to the signal processing circuit 43 via the input buffer 33,
Further, a cylinder determination signal G (G signal) from a cam angle sensor 49 attached to the engine is input to the signal processing circuit 43 via the input buffer 35.

【0034】ここで、クランク角センサ47は、第1の
信号発生手段に相当するものであり、エンジンのクラン
ク軸に固定されたロータ47aと、そのロータ47aの
外周に対向して設けられ、該ロータ47aの外周に10
°CAの間隔で形成された歯を検出してパルス信号を出
力する光電式やホールIC式の信号出力部47bとから
なる。そして、上記ロータ47aの外周には、歯が2個
欠損した欠歯部が設けられている。
Here, the crank angle sensor 47 corresponds to a first signal generating means, and is provided so as to face a rotor 47a fixed to the crankshaft of the engine and an outer periphery of the rotor 47a. 10 on the outer circumference of the rotor 47a
A signal output unit 47b of a photoelectric type or a Hall IC type that detects a tooth formed at an interval of ° CA and outputs a pulse signal. The outer periphery of the rotor 47a is provided with a toothless portion having two missing teeth.

【0035】このため、クランク角センサ47から入力
バッファ33を介して信号処理回路43に入力されるN
E信号は、前述した図11と同様の図2に示すように、
クランク軸が10°回転する毎(10°CA毎)にロウ
レベル→ハイレベル→ロウレベルといった具合にパルス
状に変化すると共に、クランク軸の回転位置が上記ロー
タ47aの欠歯部に対応する1つの基準位置(即ち、ロ
ータ47aの欠歯部が信号出力部47bに対向する位
置)に来た時には、立ち上がりの間隔が3倍長くなる。
そして、10°CA毎にパルス状に変化する部分がパル
ス信号となり、また、立ち上がりの間隔が3倍長くなる
(即ちパルス信号が2回欠落する)期間が360°CA
毎に発生して、この期間が基準位置信号Kとなっている
(図3及び図5参照)。
For this reason, N input from the crank angle sensor 47 to the signal processing circuit 43 via the input buffer 33
The E signal is, as shown in FIG. 2 similar to FIG.
Each time the crankshaft rotates 10 ° (every 10 ° CA), it changes in a pulse-like manner from low level to high level to low level, and the rotational position of the crankshaft corresponds to one reference corresponding to the toothless portion of the rotor 47a. When it comes to the position (that is, the position where the missing tooth portion of the rotor 47a faces the signal output portion 47b), the rising interval becomes three times longer.
A portion that changes in a pulse shape every 10 ° CA becomes a pulse signal, and a period in which the rising interval is tripled (that is, the pulse signal is lost twice) is 360 ° CA.
This period is used as the reference position signal K (see FIGS. 3 and 5).

【0036】また、カム角センサ49は、第2の信号発
生手段に相当するものであり、クランク軸の回転に対し
1/2の比率で回転するエンジンのカム軸に固定された
ロータ49aと、そのロータ49aの回転に応じて、該
ロータ49aが1/2回転する毎(即ち360°CA
毎)に論理レベルが反転するG信号を出力する磁気抵抗
素子式の信号出力部49bとからなる。
The cam angle sensor 49 corresponds to a second signal generating means, and includes a rotor 49a fixed to a camshaft of an engine which rotates at a ratio of 1/2 to the rotation of the crankshaft; In accordance with the rotation of the rotor 49a, every time the rotor 49a makes a half turn (that is, 360 ° CA
And a signal output unit 49b of a magnetoresistive element type that outputs a G signal whose logic level is inverted each time.

【0037】そして、カム角センサ49から入力バッフ
ァ35を介して信号処理回路43に入力されるG信号
は、図2に示すように、クランク角センサ47からパル
ス信号が出力されている期間中に論理レベルが1回反転
し、クランク角センサ47から上記基準位置信号Kが出
力されるタイミングでは、その各タイミング毎に交互に
異なった論理レベルとなる。
The G signal input from the cam angle sensor 49 to the signal processing circuit 43 via the input buffer 35 during the period when the pulse signal is output from the crank angle sensor 47 as shown in FIG. At the timing when the logic level is inverted once and the reference position signal K is output from the crank angle sensor 47, the logic level is alternately different at each timing.

【0038】一方、ECU45内のCPU31には、エ
ンジンを始動させるためのスタータスイッチ51がオン
された時にハイレベルとなるスタータ信号STAや、ア
クセルペダルが全閉の時にオンされるアイドルスイッチ
53からの信号など、エンジンの運転状態を示す各種ス
イッチ信号が、入力バッファ37を介して入力される。
On the other hand, the CPU 31 in the ECU 45 has a starter signal STA which goes high when the starter switch 51 for starting the engine is turned on, and an idle switch 53 which is turned on when the accelerator pedal is fully closed. Various switch signals indicating the operation state of the engine, such as signals, are input via the input buffer 37.

【0039】そして更に、CPU31には、吸入空気量
を検出するエアフロメータ55,スロットル操作量を検
出するスロットルセンサ57,及び冷却水温を検出する
水温センサ59などの各種センサからの信号が、A/D
変換器39を介して入力される。
Further, the CPU 31 receives signals from various sensors such as an air flow meter 55 for detecting an intake air amount, a throttle sensor 57 for detecting a throttle operation amount, and a water temperature sensor 59 for detecting a cooling water temperature. D
It is input via a converter 39.

【0040】また、信号処理回路43には、入力バッフ
ァ37からスタータ信号STAも入力されており、この
信号処理回路43は、そのスタータ信号STAと上記N
E信号及びG信号とに基づいて、後述する手順により、
30°CA毎に立ち上がる30°CA信号NE2と、気
筒判別用の第1信号TDC及び第2信号G2とを生成し
て、CPU31へ出力する。
A starter signal STA is also input to the signal processing circuit 43 from the input buffer 37. The signal processing circuit 43
On the basis of the E signal and the G signal,
A 30 ° CA signal NE2 rising every 30 ° CA and a first signal TDC and a second signal G2 for cylinder discrimination are generated and output to the CPU 31.

【0041】そして、CPU31は、信号処理回路43
からの上記信号NE2,TDC,G2に基づいて気筒判
別を行うと共に、その判別結果と上記各種スイッチ信号
及び上記各種センサからの信号とに基づいて、エンジン
の最適な点火時期や燃料噴射時期及び噴射量等を演算
し、その演算結果に基づき、出力バッファ41を介し
て、各気筒の燃料噴射弁11〜16を駆動すると共に、
イグナイタ61を駆動して所定の気筒の点火コイル21
〜26に通電する。
The CPU 31 has a signal processing circuit 43
Cylinder determination based on the signals NE2, TDC, and G2 from the ECU, and based on the determination result, the various switch signals and the signals from the various sensors, the optimum ignition timing, fuel injection timing, and injection timing of the engine. The amount and the like are calculated, and based on the calculation result, the fuel injection valves 11 to 16 of each cylinder are driven via the output buffer 41,
The igniter 61 is driven to drive the ignition coil 21 of a predetermined cylinder.
To 26.

【0042】次に、信号処理回路43は、クランク角セ
ンサ47から基準位置信号Kが出力されたことを検出す
る欠歯検出部63と、この欠歯検出部63により上記基
準位置信号Kの発生が検出された時に、カム角センサ4
9からのG信号の論理レベルを読み取るレベル読取部6
5と、クランク角センサ47から出力されるNE信号中
のパルス信号から30°CA信号NE2を生成する30
°CA信号生成部67と、クランク軸の2回転分の累積
回転角度を30°を分解能として示すクランクカウンタ
68の値CNT(カウント値に相当)を、上記30°C
A信号NE2が立ち上がる毎に(即ち、NE信号に基づ
きクランク軸が30°回転したことを検出する毎に)更
新するクランクカウンタカウント部69と、上記クラン
クカウンタ68の値CNTに基づいて、CPU31が気
筒判別を行うための上記第1信号TDCと第2信号G2
とを生成する判別用信号生成部71とを備えている。
Next, the signal processing circuit 43 includes a missing tooth detecting section 63 for detecting that the reference position signal K has been output from the crank angle sensor 47, and the generation of the reference position signal K by the missing tooth detecting section 63. Is detected, the cam angle sensor 4
Level reading section 6 for reading the logical level of the G signal from
5, and a 30 ° CA signal NE2 is generated from the pulse signal in the NE signal output from the crank angle sensor 47.
The CA signal generation unit 67 and the value CNT (corresponding to a count value) of the crank counter 68 indicating the cumulative rotation angle for two rotations of the crankshaft as a resolution of 30 ° are converted to the above-mentioned 30 ° C.
Based on the value CNT of the crank counter 68 and the CPU 31 based on the value CNT of the crank counter 68, the crank counter count unit 69 updates each time the A signal NE2 rises (that is, every time the crankshaft rotates 30 ° based on the NE signal). The first signal TDC and the second signal G2 for performing the cylinder discrimination.
And a discrimination signal generation unit 71 that generates

【0043】尚、前述したように、クランク角センサ4
7からは、クランク軸の回転に伴いロータ47aの欠歯
部が信号出力部47bに対向する位置に来た時に、基準
位置信号Kが出力されるため、本実施形態では、その基
準位置信号Kの検出を、“欠歯検出”ともいっている。
As described above, the crank angle sensor 4
7, the reference position signal K is output when the toothless portion of the rotor 47a comes to a position facing the signal output portion 47b with the rotation of the crankshaft. Is also referred to as "missing tooth detection".

【0044】そして、欠歯検出部63は、スタータ信号
STAがハイレベルになると(スタータスイッチがオン
されると)、以後、図3に示す手順により、NE信号中
の基準位置信号Kの検出を行う。即ち、図3に示すよう
に、まず欠歯検出部63は、NE信号がロウレベルから
ハイレベルへと立ち上がる毎に、計時用のタイマ値T2
を0にリセットすると共に、そのリセットする直前のタ
イマ値T2から、NE信号の最新の立ち上がり間隔T1
を計測している。そして更に、図3における一点鎖線に
示す如く、上記計測した立ち上がり間隔T1をN倍し
て、基準位置信号検出用のしきい値時間(N×T1)を
設定する。
When the starter signal STA goes high (when the starter switch is turned on), the missing tooth detecting section 63 thereafter detects the reference position signal K in the NE signal according to the procedure shown in FIG. Do. That is, as shown in FIG. 3, first, each time the NE signal rises from the low level to the high level, the missing tooth detection unit 63 sets the timer value T2 for clocking.
Is reset to 0, and the latest rising interval T1 of the NE signal is calculated from the timer value T2 immediately before the resetting.
Is being measured. Further, as shown by the one-dot chain line in FIG. 3, the measured rising interval T1 is multiplied by N to set a threshold time (N × T1) for detecting the reference position signal.

【0045】ここで、本実施形態では、前述したよう
に、クランク角センサ47のロータ47aに設けられた
欠歯部が、歯を2個欠損させたものであり、基準位置信
号Kは、10°CA毎のパルス信号が2回欠落する期間
であるため、上記Nは、2〜3の間の例えば2.5に設
定されている。
In this embodiment, as described above, the tooth missing portion provided on the rotor 47a of the crank angle sensor 47 has two missing teeth, and the reference position signal K is Since this is a period in which the pulse signal for each ° CA is lost twice, N is set to, for example, 2.5 between 2 and 3.

【0046】そして、欠歯検出部63は、上記タイマ値
T2がしきい値時間(N×T1)を越えた時、即ち、図
3の例では時刻taであり、NE信号の前回の立ち上が
りタイミングから、その時に設定しているしきい値時間
(N×T1)が経過しても、NE信号が立ち上がらない
ことを検出した時に、クランク角センサ47から基準位
置信号Kが出力されたと判断して、欠歯検出信号FKを
一定の期間だけハイレベルにする。
When the timer value T2 exceeds the threshold time (N × T1), that is, at the time ta in the example of FIG. Therefore, when it is detected that the NE signal does not rise even after the threshold time (N × T1) set at that time has elapsed, it is determined that the reference position signal K has been output from the crank angle sensor 47. , The tooth missing detection signal FK is set to a high level for a certain period.

【0047】尚、欠歯検出信号FKは、例えばNE信号
が次に立ち下がったタイミングで、ロウレベルに戻され
る。また、この欠歯検出信号FKのハイレベルへの立ち
上がりにより、レベル読取部65、30°CA信号生成
部67、及びクランクカウンタカウント部69が、基準
位置信号Kの発生を知ることとなる。
The missing tooth detection signal FK is returned to a low level, for example, at the timing when the NE signal falls next. The rising of the missing tooth detection signal FK to the high level allows the level reading section 65, the 30 ° CA signal generation section 67, and the crank counter counting section 69 to know the generation of the reference position signal K.

【0048】そして、レベル読取部65は、図3に示す
ように、上記欠歯検出信号FKが立ち上がると、そのタ
イミングで、カム角センサ49からのG信号の論理レベ
ルを読み取り、その読み取ったG信号の論理レベル(以
下、読取レベルともいう)Grを記憶する。尚、この読
取レベルGrは、後述するように、クランクカウンタカ
ウント部69によって参照される。
As shown in FIG. 3, when the missing tooth detection signal FK rises, the level reading section 65 reads the logical level of the G signal from the cam angle sensor 49 at that timing, and reads the read G signal. The logic level (hereinafter, also referred to as read level) Gr of the signal is stored. The reading level Gr is referred to by the crank counter counting unit 69 as described later.

【0049】次に、30°CA信号生成部67は、スタ
ータ信号STAがハイレベルになってから上記欠歯検出
信号FKが最初に立ち上がると、内部カウンタの値を0
にリセットして、以後、NE信号が立ち上がる毎に図4
のフローチャートで示す動作を行うことにより、30°
CA信号NE2を生成する。
Next, when the missing tooth detection signal FK first rises after the starter signal STA goes high, the 30 ° CA signal generation section 67 resets the value of the internal counter to 0.
After that, every time the NE signal rises,
30 ° by performing the operation shown in the flowchart of FIG.
A CA signal NE2 is generated.

【0050】即ち、図4に示すように、30°CA信号
生成部67は、NE信号が立ち上がると、まず、上記内
部カウンタの値を1インクリメントし(S110)、次
に、その内部カウンタの値が34になったか否かを判定
する(S120)。そして、内部カウンタの値が34に
なっていなければ(S120:NO)、内部カウンタの
値を3で割った余りが1であるか否かを判定して(S1
30)、1であれば(S130:YES)、30°CA
信号NE2をハイレベルにする(S140)。また、内
部カウンタの値を3で割った余りが1でなければ(S1
30:NO)、内部カウンタの値を3で割った余りが0
であるか否かを判定して(S150)、0であれば(S
150:YES)、30°CA信号NE2をロウレベル
にし(S160)、0でなければ(S150:NO)、
30°CA信号NE2の論理レベルを変えることなく、
NE信号の次の立ち上がりを待つ。
That is, as shown in FIG. 4, when the NE signal rises, the 30 ° CA signal generation section 67 first increments the value of the internal counter by 1 (S110), and then increases the value of the internal counter. Is determined to be 34 (S120). If the value of the internal counter is not 34 (S120: NO), it is determined whether or not the remainder obtained by dividing the value of the internal counter by 3 is 1 (S1).
30) If 1 (S130: YES), 30 ° CA
The signal NE2 is set to a high level (S140). The remainder obtained by dividing the value of the internal counter by 3 is not 1 (S1
30: NO), the remainder of dividing the value of the internal counter by 3 is 0
Is determined (S150), and if it is 0, (S150)
150: YES), the 30 ° CA signal NE2 is set to low level (S160), and if not 0 (S150: NO),
Without changing the logic level of the 30 ° CA signal NE2,
Wait for the next rising of the NE signal.

【0051】一方、内部カウンタの値が34になった場
合には(S120:YES)、その時点から一定時間後
に30°CA信号NE2がロウレベルとなるように内部
タイマをセットすると共に(S170)、内部カウンタ
の値を0に戻し(S180)、更に、30°CA信号N
E2をハイレベルにする(S140)。このため、内部
カウンタの値が34から0に戻された場合、30°CA
信号NE2は、ロウレベルからハイレベルになると共
に、上記内部タイマによる一定時間後にロウレベルへ戻
ることとなる。
On the other hand, when the value of the internal counter has reached 34 (S120: YES), the internal timer is set so that the 30 ° CA signal NE2 goes low after a certain time from that point (S170). The value of the internal counter is returned to 0 (S180), and the 30 ° CA signal N
E2 is set to a high level (S140). Therefore, when the value of the internal counter is returned from 34 to 0, 30 ° CA
The signal NE2 changes from the low level to the high level, and returns to the low level after a certain period of time by the internal timer.

【0052】つまり、30°CA信号生成部67は、図
5に示すように、基準位置信号Kの発生時を起点とし
て、NE信号が立ち上がる毎に、内部カウンタの値を1
ずつカウントアップさせると共に、その値が34になる
と0に戻すようにしている。そして更に、内部カウンタ
の値が1〜33の場合には、その内部タイマの値を3で
割った余りが1と2の場合に30°CA信号NE2をハ
イレベルにし、内部タイマの値を3で割った余りが0の
場合に30°CA信号NE2をロウレベルにし、また、
内部カウンタの値を34から0に戻した時には、30°
CA信号NE2を上記内部タイマによる一定時間だけハ
イレベルにするようにしている。
That is, as shown in FIG. 5, the 30 ° CA signal generator 67 sets the value of the internal counter to 1 every time the NE signal rises, starting from the time when the reference position signal K is generated.
The count is incremented by one, and when the value reaches 34, it is returned to 0. Further, when the value of the internal counter is 1 to 33, when the remainder of dividing the value of the internal timer by 3 is 1 or 2, the 30 ° CA signal NE2 is set to the high level, and the value of the internal timer is set to 3 When the remainder after division by 0 is 0, the 30 ° CA signal NE2 is set to low level.
When the value of the internal counter is returned from 34 to 0, 30 °
The CA signal NE2 is set to a high level for a predetermined time by the internal timer.

【0053】そして、30°CA信号生成部67は、こ
うした動作により、30°CA信号NE2が、NE信号
に同期して30°CA毎に立ち上がる信号となるように
している。次に、クランクカウンタカウント部69は、
スタータ信号STAがハイレベルになると、クランクカ
ウンタ68の値CNTを0にする。そして、以後、30
°CA信号NE2が立ち上がる毎に図6のフローチャー
トで示す処理を行うことにより、クランクカウンタ68
の値CNTの初期化及びカウントアップを行う。尚、図
6において、G-newは、レベル読取部65によって今回
読み取られたG信号の最新の読取レベルGr(今回の読
取レベルGr)を格納するための1ビットの記憶部であ
り、G-oldは、レベル読取部65によって前回読み取ら
れたG信号の読取レベルGr(前回の読取レベルGr)
を格納するための1ビットの記憶部である。
The 30 ° CA signal generation section 67 makes the 30 ° CA signal NE2 a signal that rises every 30 ° CA in synchronization with the NE signal by such an operation. Next, the crank counter counting unit 69
When the starter signal STA goes high, the value CNT of the crank counter 68 is set to zero. And after that, 30
Each time the CA signal NE2 rises, the processing shown in the flowchart of FIG.
The value CNT is initialized and counted up. In FIG. 6, G-new is a 1-bit storage unit for storing the latest read level Gr (current read level Gr) of the G signal read this time by the level read unit 65. old is the read level Gr of the G signal previously read by the level reading unit 65 (previous read level Gr)
Is a 1-bit storage unit for storing.

【0054】図6に示すように、クランクカウンタカウ
ント部69は、30°CA信号NE2が立ち上がると、
まずS210にて、欠歯検出部63からの欠歯検出信号
FKがハイレベルであるか否かを判定する。そして、欠
歯検出信号FKがハイレベルであれば、欠歯検出部63
によってNE信号中の基準位置信号Kが検出された欠歯
検出タイミングであると判断し、この場合には、今回3
0°CA信号NE2が立ち上がる直前に、レベル読取部
65によってG信号の論理レベルが読み取られているた
め、S220に進んで、G-new内の論理レベルをG-old
に格納し、続くS230にて、G-newに、レベル読取部
65によって今回読み取られたG信号の読取レベルGr
を格納する。
As shown in FIG. 6, when the 30 ° CA signal NE2 rises, the crank counter counting section 69
First, in S210, it is determined whether the missing tooth detection signal FK from the missing tooth detecting unit 63 is at a high level. If the missing tooth detection signal FK is at a high level, the missing tooth detection unit 63
Is determined to be the missing tooth detection timing at which the reference position signal K in the NE signal is detected.
Immediately before the 0 ° CA signal NE2 rises, the logic level of the G signal is read by the level reading unit 65, so the process proceeds to S220, and the logic level in G-new is changed to G-old.
, And in S230, the reading level Gr of the G signal read this time by the level reading unit 65 is set to G-new.
Is stored.

【0055】但し、スタータ信号STAがハイレベルに
なってから、上記S210にて欠歯検出信号FKがハイ
レベルであると初めて判定した場合には、G信号の前回
の読取レベルGrが存在しないため、上記S220で
は、G-oldに、レベル読取部65によって今回読み取ら
れた読取レベルGrとは反対の論理レベルを格納する。
However, if it is determined for the first time that the missing tooth detection signal FK is at the high level in S210 after the starter signal STA has changed to the high level, the previous read level Gr of the G signal does not exist. In S220, the logical level opposite to the read level Gr read this time by the level read unit 65 is stored in G-old.

【0056】上記S220及びS230の処理を終える
と、クランクカウンタカウント部69は、次のS240
にて、G-new内の論理レベルとG-old内の論理レベルと
が不一致であるか否かを判定し、その両論理レベルが不
一致であれば、S250に進んで、G-new内の論理レベ
ル(即ち、今回の読取レベルGr)がハイレベルである
か否かを判定する。
When the processing of S220 and S230 is completed, the crank counter counting section 69 proceeds to the next S240.
It is determined whether or not the logic level in G-new and the logic level in G-old do not match. If the two logic levels do not match, the process proceeds to S250, and It is determined whether the logical level (that is, the current read level Gr) is at the high level.

【0057】そして、G-new内の論理レベルがハイレベ
ルでなければ(即ち、ロウレベルであれば)、続くS2
60にて、クランクカウンタ68の値CNTを第1の値
に相当する20に初期化し、その後、処理を終了する。
また逆に、上記S250でG-new内の論理レベルがハイ
レベルであると判定した場合には、S270に移行し
て、クランクカウンタ68の値CNTを第2の値に相当
する8に初期化し、その後、処理を終了する。
If the logic level in G-new is not high (that is, if it is low), the following S2
At 60, the value CNT of the crank counter 68 is initialized to 20 corresponding to the first value, and then the processing is terminated.
Conversely, if it is determined in S250 that the logic level in G-new is the high level, the flow shifts to S270 to initialize the value CNT of the crank counter 68 to 8 corresponding to the second value. After that, the process ends.

【0058】一方、上記S210にて、欠歯検出信号F
Kがハイレベルではなく、欠歯検出タイミングではない
と判断した場合、或いは、上記S240にて、G-new内
の論理レベルとG-old内の論理レベルとが一致している
と判定した場合には、S280に移行して、クランクカ
ウンタ68の値CNTを1インクリメント(1つカウン
トアップ)する。
On the other hand, in step S210, the missing tooth detection signal F
If it is determined that K is not the high level and it is not the missing tooth detection timing, or if it is determined in S240 that the logical level in G-new matches the logical level in G-old. In step S280, the value CNT of the crank counter 68 is incremented by one (one is counted up).

【0059】そして、続くS290にて、クランクカウ
ンタ68の値CNTが23を越えたか否かを判定し、2
3を越えていなければ、そのまま処理を終了するが、2
3を越えていれば(即ち、24に達したならば)、S3
00にてクランクカウンタ68の値CNTを0に戻して
から処理を終了する。
At S290, it is determined whether or not the value CNT of the crank counter 68 has exceeded 23.
If the number does not exceed 3, the processing is terminated.
If it exceeds three (that is, if it reaches 24), S3
At 00, the value CNT of the crank counter 68 is returned to 0, and the process is terminated.

【0060】つまり、クランクカウンタカウント部69
は、基本的には、30°CA信号NE2が立ち上がる毎
に、S280〜300の処理により、クランクカウンタ
68の値CNTを、720°CA分に相当する0〜23
の範囲で1ずつカウントアップさせるが、欠歯検出部6
3によりNE信号中の基準位置信号Kが検出されてレベ
ル読取部65によりG信号の論理レベルが読み取られた
直後の30°CA信号NE2の立ち上がりタイミング
(S210:YES)では、S220〜S270の処理
により、クランクカウンタ68の値CNTを初期化すべ
きか否かを判断すると共に、初期化する場合には、下記
の表1に示すように、クランクカウンタ68の値CNT
を、G信号の今回の読取レベルGr(今回の欠歯検出時
点のG信号レベル)に応じて、今回の読取レベルGrが
ロウレベルであれば20に初期化し、逆に今回の読取レ
ベルGrがハイレベルであれば8に初期化するようにし
ている。
That is, the crank counter counting section 69
Basically, every time the 30 ° CA signal NE2 rises, the value CNT of the crank counter 68 is increased from 0 to 23 corresponding to 720 ° CA by the processing of S280 to S300.
Is counted up one by one in the range of
3, the reference timing signal K in the NE signal is detected, and the rising edge of the 30 ° CA signal NE2 immediately after the logic level of the G signal is read by the level reading unit 65 (S210: YES), the processing of S220 to S270. It is determined whether or not the value CNT of the crank counter 68 should be initialized, and when it is to be initialized, as shown in Table 1 below, the value CNT of the crank counter 68 is
Is initialized to 20 according to the current reading level Gr of the G signal (the G signal level at the time of detection of the missing tooth) if the current reading level Gr is low, and conversely, the current reading level Gr is high. If it is a level, it is initialized to 8.

【0061】[0061]

【表1】 [Table 1]

【0062】具体的には、表1における「スタータスイ
ッチオン後の1回目」の欄と「場合1」及び「場合2」
の各欄に示すように、スタータスイッチがオンされてか
ら初めてレベル読取部65によりG信号の論理レベルが
読み取られた場合と、G信号の前回の読取レベルGr
(前回の欠歯検出時点のG信号レベル)と今回の読取レ
ベルGr(今回の欠歯検出時点のG信号レベル)とが一
致していない正常な場合には(S240:YES)、S
250〜S270の処理により、クランクカウンタ68
の値CNTを、今回の読取レベルGrがロウレベルなら
ば20に初期化し、逆に今回の読取レベルGrがハイレ
ベルならば8に初期化するようにしている。
More specifically, in the column of “First time after starter switch is turned on” in Table 1, “Case 1” and “Case 2”
As shown in the respective columns, the case where the logical level of the G signal is read by the level reading unit 65 for the first time since the starter switch is turned on, and the case where the previous read level Gr of the G signal is
If (the G signal level at the time of the previous missing tooth detection) and the current reading level Gr (the G signal level at the time of the current missing tooth detection) do not match (S240: YES), the process proceeds to S240.
By the processing of 250 to S270, the crank counter 68
Is initialized to 20 if the current read level Gr is low, and to 8 if the current read level Gr is high.

【0063】これに対して、表1における「場合3」及
び「場合4」の各欄に示すように、G信号の前回の読取
レベルGrと今回の読取レベルGrとが一致している場
合には(S240:NO)、S250〜S270による
クランクカウンタ68の値CNTの初期化を行わずに、
通常のカウントアップを行うようにしている(S28
0)。
On the other hand, as shown in the “Case 3” and “Case 4” columns in Table 1, when the previous read level Gr of the G signal matches the current read level Gr, (S240: NO), without initializing the value CNT of the crank counter 68 in S250 to S270,
Normal count-up is performed (S28).
0).

【0064】このため、本実施形態のエンジン制御装置
において、カム角センサ49からECU45の信号処理
回路43へ入力されるG信号が正常である場合には、ク
ランクカウンタ68の値が、前述した図11と同じ要領
で更新されることとなる。即ち、図2に例示するよう
に、まず時刻t1にて、スタータ信号STAがハイレベ
ルになると、欠歯検出部63がNE信号中の基準位置信
号Kの検出動作を開始し、また、クランクカウンタカウ
ント部69によりクランクカウンタ68の値CNTが0
にクリアされる。
For this reason, in the engine control device of the present embodiment, when the G signal input from the cam angle sensor 49 to the signal processing circuit 43 of the ECU 45 is normal, the value of the crank counter 68 is changed to the value shown in FIG. It will be updated in the same manner as 11. That is, as illustrated in FIG. 2, when the starter signal STA goes high at time t1, the missing tooth detecting unit 63 starts the operation of detecting the reference position signal K in the NE signal. The value CNT of the crank counter 68 is set to 0 by the counting unit 69.
Is cleared.

【0065】そして、その後、クランク角センサ47か
ら最初に基準位置信号Kが出力され、時刻t2にて、そ
の基準位置信号Kが欠歯検出部63により検出される
と、レベル読取部65がカム角センサ49からのG信号
の論理レベルを読み取り、また、その時点から、30°
CA信号生成部67がNE信号の立ち上がり毎に図4及
び図5に示した動作を行うことにより、30°CA信号
を生成する。
Thereafter, the reference position signal K is first output from the crank angle sensor 47, and when the reference position signal K is detected by the missing tooth detection unit 63 at time t2, the level reading unit 65 The logic level of the G signal from the angle sensor 49 is read, and from that point, 30 °
The CA signal generator 67 performs the operation shown in FIGS. 4 and 5 every time the NE signal rises, thereby generating a 30 ° CA signal.

【0066】尚、図2では、欠歯検出部63が基準位置
信号Kを検出するタイミング(時刻t2,t3,t4,
t5,t6,t7)と、基準位置信号Kが終了するNE
信号の立ち上がりタイミングとが、同じのように表され
ているが、実際には、欠歯検出部63が基準位置信号K
を検出するタイミングは、図3の時刻taで示したよう
に、基準位置信号Kが終了するNE信号の立ち上がりタ
イミングよりも若干前である。そして、このことは、後
述する図7及び図10についても同様である。
In FIG. 2, the timing at which the missing tooth detecting section 63 detects the reference position signal K (time t2, t3, t4, t4).
t5, t6, t7) and NE at which the reference position signal K ends.
Although the rising timing of the signal is expressed in the same manner, in practice, the missing tooth detecting unit 63 outputs the reference position signal K
Is slightly before the rising timing of the NE signal at which the reference position signal K ends, as shown at time ta in FIG. This also applies to FIGS. 7 and 10 described later.

【0067】ここで、この例の場合、スタータ信号ST
Aがハイレベルになってから最初に基準位置信号Kが発
生した時に、G信号がロウレベルであり、時刻t2でレ
ベル読取部65により読み取られるG信号の読取レベル
Grがロウレベルとなるため、その時刻t2の直後の3
0°CA信号NE2の立ち上がりタイミングにて、クラ
ンクカウンタ68の値CNTが、クランクカウンタカウ
ント部69により20に初期化されることとなる。そし
て、以後、クランクカウンタ68の値CNTは、30°
CA信号NE2が立ち上がる毎に、20→21→22→
23→0→1→2→3…とカウントアップされていく。
Here, in the case of this example, the starter signal ST
When the reference position signal K is first generated after the signal A becomes high level, the G signal is low level, and the read level Gr of the G signal read by the level reading unit 65 at time t2 becomes low level. 3 immediately after t2
At the rising timing of the 0 ° CA signal NE2, the value CNT of the crank counter 68 is initialized to 20 by the crank counter counting unit 69. Thereafter, the value CNT of the crank counter 68 becomes 30 °
Every time the CA signal NE2 rises, 20 → 21 → 22 →
23 → 0 → 1 → 2 → 3...

【0068】そして、次に基準位置信号Kが発生して、
その基準位置信号Kが欠歯検出部63により検出される
時刻t3では、G信号が時刻t2とは反対のハイレベル
となり、レベル読取部65によって読み取られるG信号
の読取レベルGrがハイレベルとなるため、その時刻t
3の直後の30°CA信号NE2の立ち上がりタイミン
グにて、クランクカウンタ68の値CNTが、クランク
カウンタカウント部69により8に初期化されることと
なる。そして、以後、クランクカウンタ68の値CNT
は、30°CA信号NE2が立ち上がる毎に、8→9→
10→11→12→13…とカウントアップされてい
く。
Then, a reference position signal K is generated.
At time t3 when the reference position signal K is detected by the missing tooth detection unit 63, the G signal is at a high level opposite to the time t2, and the read level Gr of the G signal read by the level reading unit 65 is at a high level. Therefore, the time t
At the rising timing of the 30 ° CA signal NE2 immediately after 3, the value CNT of the crank counter 68 is initialized to 8 by the crank counter counting unit 69. Thereafter, the value CNT of the crank counter 68 is
Is 8 → 9 → every time the 30 ° CA signal NE2 rises.
It counts up from 10 → 11 → 12 → 13 ...

【0069】そして更に、次に基準位置信号Kが発生し
て、その基準位置信号Kが欠歯検出部63により検出さ
れる時刻t4では、G信号が時刻t3とは反対のロウレ
ベルとなり、レベル読取部65によって読み取られるG
信号の読取レベルGrがロウレベルとなるため、その時
刻t4の直後の30°CA信号NE2の立ち上がりタイ
ミングにて、クランクカウンタ68の値CNTが、クラ
ンクカウンタカウント部69により20に初期化される
こととなる。そして、以後、クランクカウンタ68の値
CNTは、30°CA信号NE2が立ち上がる毎に、2
0→21→22→23→0→1→2→3…とカウントア
ップされていく。
Further, at time t4 when the reference position signal K is generated next and the reference position signal K is detected by the missing tooth detecting section 63, the G signal becomes the low level opposite to the time t3, and the level is read. G read by the unit 65
Since the read level Gr of the signal becomes low level, the value CNT of the crank counter 68 is initialized to 20 by the crank counter counting unit 69 at the rising timing of the 30 ° CA signal NE2 immediately after the time t4. Become. Thereafter, the value CNT of the crank counter 68 becomes 2 every time the 30 ° CA signal NE2 rises.
0 → 21 → 22 → 23 → 0 → 1 → 2 → 3...

【0070】ここで、8と20は、クランクカウンタ6
8の値CNTとして、360°CA分に相当する値(1
2)だけ互いに異なった値であるため、上記初期化によ
ってクランクカウンタ68の値CNTの連続性を損なう
ことはない。つまり、上記初期化で設定される8と20
は、仮に上記初期化が行われなかったとしても、クラン
クカウンタ68の値CNTがなるべき値となっている。
Here, 8 and 20 are the crank counter 6
As a value CNT of 8, a value (1
Since the values 2) are different from each other, the continuity of the value CNT of the crank counter 68 is not impaired by the above initialization. That is, 8 and 20 set by the above initialization
Is the value that the value CNT of the crank counter 68 should be, even if the initialization is not performed.

【0071】そして、以後は、図2の時刻t4〜時刻t
7及び時刻t7以降に示すように、時刻t2〜時刻t4
と同様の動作が繰り返される。次に、信号処理回路43
の判別用信号生成部71は、図2に示すように、スター
タ信号STAがハイレベルになってから最初に30°C
A信号NE2が立ち上がるまでの間は、CPU31への
第1信号TDCをハイレベルにすると共に、CPU31
への第2信号G2をロウレベルにする。そして、判別用
信号生成部71は、スタータ信号STAがハイレベルに
なってから最初に30°CA信号NE2が立ち上がる
と、それ以後、クランクカウンタ68の値CNTが0又
は12である場合に、第1信号TDCをロウレベルにす
ると共に、クランクカウンタ68の値CNTが0〜11
である場合に、第2信号G2をハイレベルにし、また、
クランクカウンタ68の値CNTが12〜23である場
合に、第2信号G2をロウレベルにする。
Thereafter, from time t4 to time t in FIG.
7 and after time t7, time t2 to time t4
The same operation as is repeated. Next, the signal processing circuit 43
As shown in FIG. 2, the discrimination signal generation unit 71 first determines that the starter signal STA has reached 30 ° C.
Until the A signal NE2 rises, the first signal TDC to the CPU 31 is kept at a high level, and the CPU 31
To the low level. When the 30 ° CA signal NE2 rises for the first time after the starter signal STA becomes high level, the discriminating signal generation unit 71 determines whether or not the value CNT of the crank counter 68 is 0 or 12 thereafter. 1 signal TDC is set to low level, and the value CNT of the crank counter 68 is set to 0 to 11
, The second signal G2 is set to a high level, and
When the value CNT of the crank counter 68 is 12 to 23, the second signal G2 is set to a low level.

【0072】そして、CPU31は、スタータ信号ST
Aがハイレベルになってから最初に30°CA信号NE
2が立ち上がると、その時点から、例えば以下のように
気筒判別を行う。 (1)まず、スタータ信号STAがハイレベルになって
から最初に30°CA信号NE2が立ち立ち上がった時
に、第2信号G2がロウレベルであれば、クランクカウ
ンタ68の値CNTが20であるということであるた
め、第6気筒の上死点前(BTDC)30°CAと判断
する。
Then, the CPU 31 outputs the starter signal ST
30A CA signal NE first after A becomes high level
When 2 is started, cylinder discrimination is performed from that point, for example, as follows. (1) First, when the 30 ° CA signal NE2 first rises after the starter signal STA goes high and the second signal G2 is low, the value CNT of the crank counter 68 is 20. Therefore, it is determined that the temperature is 30 ° CA before the top dead center (BTDC) of the sixth cylinder.

【0073】(2)また、スタータ信号STAがハイレ
ベルになってから最初に30°CA信号NE2が立ち立
ち上がった時に、第2信号G2がハイレベルであれば、
クランクカウンタ68の値CNTが8であるということ
であるため、第3気筒のBTDC30°CAと判断す
る。
(2) When the 30 ° CA signal NE2 first rises after the starter signal STA goes high, if the second signal G2 is high,
Since the value CNT of the crank counter 68 is 8, it is determined that the BTDC of the third cylinder is 30 ° CA.

【0074】(3)一方、上記(1)及び(2)以外の
時には、第1信号TDCがロウレベルで且つ第2信号G
2がハイレベルになった時に、クランクカウンタ68の
値CNTが0であるということであるため、第1気筒の
BTDC30°CAと判断する。そして、その後、30
°CA信号NE2が4回立ち上がったことを検出した時
に、クランクカウンタ68の値CNTが4であるという
ことであるため、第2気筒のBTDC30°CAと判断
し、更にその後、30°CA信号NE2が4回立ち上が
ったことを検出した時に、クランクカウンタ68の値C
NTが8であるということであるため、第3気筒のBT
DC30°CAと判断する。
(3) On the other hand, in cases other than the above (1) and (2), the first signal TDC is at a low level and the second signal G
Since the value CNT of the crank counter 68 is 0 when 2 becomes high level, it is determined that the BTDC of the first cylinder is 30 ° CA. And then, 30
When it is detected that the CA signal NE2 has risen four times, the value CNT of the crank counter 68 is 4, so it is determined that the BTDC of the second cylinder is 30 ° CA, and thereafter, the 30 ° CA signal NE2 Is detected four times, the value C of the crank counter 68 is detected.
Since NT is 8, the BT of the third cylinder
Judge as DC 30 ° CA.

【0075】また、第1信号TDCがロウレベルで且つ
第2信号G2がロウレベルになった時に、クランクカウ
ンタ68の値CNTが12であるということであるた
め、第4気筒のBTDC30°CAと判断する。そし
て、その後、30°CA信号NE2が4回立ち上がった
ことを検出した時に、クランクカウンタ68の値CNT
が16であるということであるため、第5気筒のBTD
C30°CAと判断し、更にその後、30°CA信号N
E2が4回立ち上がったことを検出した時に、クランク
カウンタ68の値CNTが20であるということである
ため、第6気筒のBTDC30°CAと判断する。
Further, when the first signal TDC is at the low level and the second signal G2 is at the low level, the value CNT of the crank counter 68 is 12, so it is determined that the BTDC of the fourth cylinder is 30 ° CA. . Then, when it is detected that the 30 ° CA signal NE2 has risen four times, the value CNT of the crank counter 68 is detected.
Is 16 so that the BTD of the fifth cylinder
C is determined to be 30 ° CA, and then the 30 ° CA signal N
When it is detected that E2 has risen four times, it means that the value CNT of the crank counter 68 is 20, so it is determined that the BTDC of the sixth cylinder is 30 ° CA.

【0076】そして、CPU31は、信号処理回路43
によって出力される30°CA信号NE2,第1信号T
DC,及び第2信号G2から、上記(1)〜(3)のよ
うに気筒判別を行うことにより、結局、クランクカウン
タ68の値CNTに基づいて気筒判別を行っているので
ある。
Then, the CPU 31 executes the signal processing circuit 43
CA signal NE2, first signal T output by
By performing the cylinder discrimination as described in (1) to (3) above from the DC and the second signal G2, the cylinder discrimination is ultimately performed based on the value CNT of the crank counter 68.

【0077】このような本第1実施形態のエンジン制御
装置によれば、クランク角センサ47からの基準位置信
号Kを最初に検出した時点(図2の時刻t2)から、気
筒判別を行ってエンジンの制御を開始することができる
のであるが、仮に、クランクカウンタカウント部69が
図6のS220〜S240の処理を行わないものとする
と、カム角センサ49自身或いはカム角センサ49から
の配線に異常が発生して、G信号の論理レベルがハイレ
ベルとロウレベルとの何れかに固定されてしまった場合
には、図12に示したように、クランク角センサ47か
らの基準位置信号Kが検出される毎(360°CA毎)
に、クランクカウンタ68の値CNTが8と20との何
れか一方だけに初期化されてしまい、正しく気筒判別す
ることができなくなってしまう。
According to the engine control device of the first embodiment, the cylinder discrimination is performed from the time when the reference position signal K from the crank angle sensor 47 is first detected (time t2 in FIG. 2). However, if the crank counter counting section 69 does not perform the processing of S220 to S240 in FIG. 6, the cam angle sensor 49 itself or the wiring from the cam angle sensor 49 may be abnormal. Occurs, and the logic level of the G signal is fixed to one of the high level and the low level, the reference position signal K from the crank angle sensor 47 is detected as shown in FIG. Every time (every 360 ° CA)
At the same time, the value CNT of the crank counter 68 is initialized to only one of 8 and 20, and the cylinder cannot be correctly determined.

【0078】そこで、本第1実施形態のエンジン制御装
置では、クランクカウンタカウント部69が図6のS2
20〜S240の処理を行うことにより、レベル読取部
65によってG信号の論理レベルが読み取られると、そ
の今回読み取られた論理レベルと、レベル読取部65に
よって前回読み取られた論理レベルとを比較して、両論
理レベルが一致している場合には、S250〜S270
の処理によるクランクカウンタ68の値CNTの初期化
を行わないようにしている。換言すれば、レベル読取部
65によってG信号の論理レベルが読み取られると、そ
の今回読み取られた論理レベルと、レベル読取部65に
よって前回読み取られた論理レベルとが相違している場
合にだけ、クランクカウンタ68の値CNTを、今回読
み取られたG信号の論理レベルに応じて8か20に初期
化するようにしている。
Therefore, in the engine control device according to the first embodiment, the crank counter counting section 69 sets S2 in FIG.
When the logic level of the G signal is read by the level reading section 65 by performing the processing of S20 to S240, the logic level read this time is compared with the logic level previously read by the level reading section 65. If both logical levels match, S250 to S270
The initialization of the value CNT of the crank counter 68 by the processing of (1) is not performed. In other words, when the logic level of the G signal is read by the level reading section 65, the cranking is performed only when the logic level read this time is different from the logic level previously read by the level reading section 65. The value CNT of the counter 68 is initialized to 8 or 20 according to the logic level of the G signal read this time.

【0079】このため、本第1実施形態のエンジン制御
装置によれば、図7に例示するように、図2の時刻t4
と時刻t5との間の時刻に相当する時刻t4’にて、カ
ム角センサ49からの配線やカム角センサ49自身に異
常が発生し、G信号がロウレベルに固定されてしまった
場合には、その後の時刻t5,t6,t7にて欠歯検出
部63によりNE信号中の基準位置信号Kが検出されて
も、クランクカウンタ68の値CNTは、G信号の読取
レベルGrに応じて初期化されなくなる。
For this reason, according to the engine control device of the first embodiment, as illustrated in FIG.
At time t4 ′ corresponding to a time between the time t5 and the time t5, when an abnormality occurs in the wiring from the cam angle sensor 49 or the cam angle sensor 49 itself and the G signal is fixed to the low level, Even when the missing tooth detection unit 63 detects the reference position signal K in the NE signal at the subsequent times t5, t6, and t7, the value CNT of the crank counter 68 is initialized according to the read level Gr of the G signal. Disappears.

【0080】よって、本第1実施形態のエンジン制御装
置によれば、カム角センサ49やカム角センサ49から
の配線に異常が生じても、図2と図7との比較からも分
かるように、クランクカウンタ68の値CNTの連続性
を正常時と同様に維持することができ、その結果、正し
く気筒判別することができるようになる。
Therefore, according to the engine control device of the first embodiment, even if an abnormality occurs in the cam angle sensor 49 or the wiring from the cam angle sensor 49, it can be seen from the comparison between FIG. 2 and FIG. Therefore, the continuity of the value CNT of the crank counter 68 can be maintained in the same manner as in the normal state, and as a result, the cylinder can be correctly determined.

【0081】尚、本第1実施形態では、欠歯検出部63
とレベル読取部65とが、レベル読取手段に相当してい
る。また、30°CA信号生成部67と、クランクカウ
ンタカウント部69が行う図6の処理のうちのS280
〜S300の処理とが、カウント手段に相当し、クラン
クカウンタカウント部69が行う図6の処理のうちのS
210及びS250〜S270の処理が、初期化手段に
相当している。そして、クランクカウンタカウント部6
9が行う図6の処理のうちのS210及びS220〜S
240の処理が、禁止手段に相当している。
In the first embodiment, the missing tooth detecting section 63
And the level reading unit 65 correspond to a level reading unit. 6 performed by the 30 ° CA signal generating unit 67 and the crank counter counting unit 69 in S280.
To S300 correspond to the counting means, and the processing of S300 of the processing of FIG.
Steps 210 and S250 to S270 correspond to an initialization unit. Then, the crank counter counting unit 6
9 performed in S210 and S220 to S220 in FIG.
Step 240 corresponds to the prohibition means.

【0082】次に、第2実施形態のエンジン制御装置に
ついて説明する。本第2実施形態のエンジン制御装置
は、前述した第1実施形態と比較して、下記の及び
の点が異なっている。:図8に示すように、信号処理
回路43には、カム角センサ49からのG信号のエッジ
(立ち上がりエッジと立ち下がりエッジとの両方)を検
出するエッジ検出部73が追加して設けられている。
Next, an engine control device according to a second embodiment will be described. The engine control device of the second embodiment differs from the first embodiment in the following points. : As shown in FIG. 8, the signal processing circuit 43 additionally includes an edge detection unit 73 for detecting the edge (both the rising edge and the falling edge) of the G signal from the cam angle sensor 49. I have.

【0083】そして、このエッジ検出部73は、クラン
クカウンタカウント部69からのエッジ検出開始指令を
受けると、同じくクランクカウンタカウント部69から
のエッジ検出終了指令を受けるまでの間、G信号を監視
して、その期間中にG信号がレベル反転すると(G信号
にエッジが発生すると)、G-edge 内の値を1にする。
尚、G-edge は、G信号のエッジ検出結果を格納するた
めの1ビットの記憶部であり、その値はクランクカウン
タカウント部69によって参照される。
Upon receiving an edge detection start command from the crank counter counting section 69, the edge detecting section 73 monitors the G signal until receiving an edge detection end command from the crank counter counting section 69. If the level of the G signal is inverted during this period (when an edge occurs in the G signal), the value in the G-edge is set to 1.
G-edge is a 1-bit storage unit for storing the edge detection result of the G signal, and its value is referred to by the crank counter counting unit 69.

【0084】:クランクカウンタカウント部69は、
図6の処理に代えて図9の処理を行う。そこで次に、本
第2実施形態のクランクカウンタカウント部69で行わ
れる処理について、図9を用い説明する。尚、図9にお
いて、前述した図6と同じ内容の処理については、同一
のステップ番号を付しているため、詳しい説明は省略す
る。また、図9において、G-flgは、上記G-edge と同
様に、G信号のエッジ検出結果を格納するための1ビッ
トの記憶部である。
The crank counter counting section 69
The processing of FIG. 9 is performed instead of the processing of FIG. Therefore, next, a process performed by the crank counter counting unit 69 of the second embodiment will be described with reference to FIG. Note that, in FIG. 9, the processes having the same contents as those in FIG. 6 described above are denoted by the same step numbers, and thus detailed description is omitted. In FIG. 9, G-flg is a 1-bit storage unit for storing the edge detection result of the G signal, similarly to the G-edge.

【0085】まず、クランクカウンタカウント部69
は、スタータ信号STAがハイレベルになると、クラン
クカウンタ68の値CNTと上記G-edge 内の値とを0
にし、以後、30°CA信号NE2が立ち上がる毎に図
9に示す処理を行う。そして、図9に示すように、クラ
ンクカウンタカウント部69は、30°CA信号NE2
が立ち上がると、まずS210にて、前述したように、
欠歯検出部63からの欠歯検出信号FKに基づいて欠歯
検出タイミング(欠歯検出部63によってNE信号中の
基準位置信号Kが検出されたタイミング)であるか否か
を判断し、欠歯検出タイミングであると判断した場合に
は、S410に進んで、スタータスイッチオン後の1回
目、即ち、スタータ信号STAがハイレベルになってか
ら初めて欠歯検出タイミングであると判断した場合か否
かを判定する。
First, the crank counter counting section 69
When the starter signal STA goes high, the value CNT of the crank counter 68 and the value in the G-edge are set to 0.
Thereafter, every time the 30 ° CA signal NE2 rises, the processing shown in FIG. 9 is performed. Then, as shown in FIG. 9, the crank counter counting section 69 outputs the 30 ° CA signal NE2.
Rises, first in S210, as described above,
Based on the missing tooth detection signal FK from the missing tooth detection unit 63, it is determined whether or not it is the missing tooth detection timing (the timing at which the reference position signal K in the NE signal is detected by the missing tooth detection unit 63). If it is determined that the timing is the tooth detection timing, the process proceeds to S410, and the first time after the starter switch is turned on, that is, whether the timing is determined to be the missing tooth detection timing only after the starter signal STA becomes high level. Is determined.

【0086】ここで、スタータスイッチオン後の一回目
であると判定した場合には、S420でG-flgに1をセ
ットしてから、S230に進む。そして、このS230
にて、前述したように、G-newに、レベル読取部65に
よって今回読み取られたG信号の読取レベルGrを格納
し、次のS430にて、エッジ検出部73へエッジ検出
開始指令を与える。すると、エッジ検出部73は、G信
号のエッジ検出動作を開始することとなる。
Here, if it is determined that this is the first time after the starter switch is turned on, G-flg is set to 1 in S420, and then the flow proceeds to S230. And this S230
As described above, the read level Gr of the G signal read this time by the level reading unit 65 is stored in G-new, and an edge detection start command is given to the edge detection unit 73 in the next S430. Then, the edge detection unit 73 starts the edge detection operation of the G signal.

【0087】そして更に、続くS440にて、G-flg内
の値が1であるか否かを判定し、G-flg内の値が1であ
れば、前述したS250〜S270の処理により、クラ
ンクカウンタ68の値CNTをG信号の今回の読取レベ
ルGr(G-new内の論理レベル)に応じて8か20に初
期化し、その後、処理を終了する。
Further, in subsequent S440, it is determined whether or not the value in G-flg is 1, and if the value in G-flg is 1, the crankshaft is determined by the above-described processing in S250 to S270. The value CNT of the counter 68 is initialized to 8 or 20 in accordance with the current read level Gr of the G signal (logic level in G-new), and then the process is terminated.

【0088】また、上記S440にて、G-flg内の値が
1でなければ(0であれば)、前述したS280〜S3
00の処理により、クランクカウンタ68の値CNTの
カウントアップを行い、その後、処理を終了する。但
し、上記S410でスタータスイッチオン後の1回目と
判定した場合には、S420でG-flgに1がセットされ
るため、S440では必ず肯定判定され、クランクカウ
ンタ68の値CNTは、S250〜S270の処理によ
り8か20に初期化されることとなる。
If the value in G-flg is not 1 (if 0) in S440, the above-mentioned S280 to S3
By the process of 00, the value CNT of the crank counter 68 is counted up, and then the process ends. However, if it is determined in S410 that this is the first time after the starter switch is turned on, G-flg is set to 1 in S420, so that an affirmative determination is always made in S440, and the value CNT of the crank counter 68 is determined in S250 to S270. Is initialized to 8 or 20.

【0089】一方、上記S410にて、スタータスイッ
チオン後の1回目ではないと判定した場合には、S45
0に進んで、エッジ検出部73へエッジ検出終了指令を
与える。すると、エッジ検出部73は、G信号のエッジ
検出動作を停止することとなる。
On the other hand, if it is determined in S410 that this is not the first time after the starter switch is turned on, the process proceeds to S45.
The process proceeds to 0, and an edge detection end command is given to the edge detection unit 73. Then, the edge detection unit 73 stops the edge detection operation of the G signal.

【0090】次に、S460にて、エッジ検出部73に
よって1か0がセットされているG-edge 内の値を、G
-flgに格納する。そして、続くS470にて、G-edge
の値を0にリセットしてから、S230に進む。する
と、この場合にも、G-newに、レベル読取部65によっ
て今回読み取られたG信号の読取レベルGrが格納され
る。そして、次のS430にて、エッジ検出部73へエ
ッジ検出開始指令が与えられることにより、エッジ検出
部73は、G信号のエッジ検出動作を再開始することと
なる。そして更に、続くS440にて、G-flg内の値が
1であるか否かが判定され、G-flg内の値が1であれ
ば、S250〜S270の処理により、クランクカウン
タ68の値CNTが8か20に初期化されるが、G-flg
内の値が0であれば、クランクカウンタ68の値CNT
の初期化は行われず、S280〜S300の処理による
通常のカウントアップが行われることとなる。
Next, in S460, the value in G-edge for which 1 or 0 is set by the edge detection unit 73 is
Store in -flg. Then, in the following S470, the G-edge
After resetting the value to 0, the process proceeds to S230. Then, also in this case, the read level Gr of the G signal read this time by the level reading unit 65 is stored in G-new. Then, in the next S430, an edge detection start command is given to the edge detection unit 73, so that the edge detection unit 73 restarts the edge detection operation of the G signal. Then, in S440, it is determined whether or not the value in G-flg is 1. If the value in G-flg is 1, the value CNT of the crank counter 68 is determined by the processing in S250 to S270. Is initialized to 8 or 20, but G-flg
Is 0, the value CNT of the crank counter 68
Is not performed, and the normal count-up by the processing of S280 to S300 is performed.

【0091】よって、S210にて欠歯検出タイミング
であると前回判定されてから、同S210にて欠歯検出
タイミングであると今回判定されるまでの間に、G信号
が一度もレベル反転していなければ、エッジ検出部73
によってG信号のエッジが検出されずに、上記S440
で判定されるG-flg内の値が0となるため、クランクカ
ウンタ68の値CNTの初期化が禁止されることとな
る。
Therefore, the level of the G signal has never been inverted between the time when it was previously determined to be the missing tooth detection timing in S210 and the time when the present time was determined to be the missing tooth detection timing in S210. If not, the edge detector 73
As a result, the edge of the G signal is not detected,
Since the value in G-flg determined by the above becomes 0, the initialization of the value CNT of the crank counter 68 is prohibited.

【0092】つまり、本第2実施形態では、下記の表2
における「スタータスイッチオン後の1回目」の欄と
「場合1」及び「場合2」の各欄に示すように、スター
タスイッチがオンされてから初めてレベル読取部65に
よりG信号の論理レベルが読み取られた場合と、レベル
読取部65によりG信号の論理レベルが前回読み取られ
てから今回読み取られるまでの期間である判定区間内
に、G信号のレベル反転が有った場合には(S440:
YES)、クランクカウンタ68の値CNTを、G信号
の今回の読取レベルGr(今回の欠歯検出時点のG信号
レベル)に応じて8か20に初期化するようにしてい
る。
That is, in the second embodiment, the following Table 2
, The logic level of the G signal is read by the level reading unit 65 only after the starter switch is turned on, as shown in the “first time after starter switch is turned on” column and the “case 1” and “case 2” columns. And when there is a level inversion of the G signal in the determination section which is a period from the previous reading of the logic level of the G signal by the level reading section 65 to the present reading (S440:
YES), the value CNT of the crank counter 68 is initialized to 8 or 20 according to the current reading level Gr of the G signal (the G signal level at the time of detecting the missing tooth).

【0093】これに対して、表2における「場合3」及
び「場合4」の各欄に示すように、上記判定区間内に、
G信号のレベル反転が一度も無かった場合には(S44
0:NO)、クランクカウンタ68の値CNTの初期化
を行わずに、通常のカウントアップを行うようにしてい
る。
On the other hand, as shown in the “Case 3” and “Case 4” columns in Table 2,
If the level of the G signal has never been inverted (S44)
0: NO), the normal count-up is performed without initializing the value CNT of the crank counter 68.

【0094】[0094]

【表2】 [Table 2]

【0095】このため、本第2実施形態のエンジン制御
装置では、例えば、図7と同様の図10に示すように、
欠歯検出部63によりNE信号中の基準位置信号Kが検
出されてレベル読取部65によりG信号の論理レベルが
読み取られる各時刻t2,t3,t4,t5,t6,t
7のうちで、時刻t2〜t3の判定区間では、G信号が
ロウレベルからハイレベルへと立ち上がっているため、
時刻t3の直後の30°CA信号NE2の立ち上がりタ
イミングにて、クランクカウンタ68の値CNTは8に
初期化されることとなる。また同様に、時刻t3〜t4
の判定区間では、G信号がハイレベルからロウレベルへ
と立ち下がっているため、時刻t4の直後の30°CA
信号NE2の立ち上がりタイミングにて、クランクカウ
ンタ68の値CNTは20に初期化されることとなる。
For this reason, in the engine control device of the second embodiment, for example, as shown in FIG.
Each time t2, t3, t4, t5, t6, t at which the reference position signal K in the NE signal is detected by the missing tooth detecting section 63 and the logical level of the G signal is read by the level reading section 65.
7, the G signal rises from the low level to the high level in the determination period from the time t2 to the time t3.
At the rising timing of the 30 ° CA signal NE2 immediately after the time t3, the value CNT of the crank counter 68 is initialized to 8. Similarly, at times t3 to t4
Since the G signal has fallen from the high level to the low level in the determination section of, the 30 ° CA immediately after the time t4.
At the rising timing of the signal NE2, the value CNT of the crank counter 68 is initialized to 20.

【0096】これに対して、例えば、時刻t4と時刻t
5との間の時刻t4’で、カム角センサ49からの配線
やカム角センサ49自身に異常が発生し、G信号がロウ
レベルに固定されてしまった場合には、その後の時刻t
5,t6,t7にて、欠歯検出部63によりNE信号中
の基準位置信号Kが検出されても、クランクカウンタ6
8の値CNTはG信号の読取レベルGrに応じて初期化
されなくなる。
On the other hand, for example, time t4 and time t4
5 at time t4 ', if an abnormality occurs in the wiring from the cam angle sensor 49 or the cam angle sensor 49 itself, and the G signal is fixed to the low level, the subsequent time t4'
At 5, t6 and t7, even if the reference position signal K in the NE signal is detected by the missing tooth detector 63, the crank counter 6
The value CNT of 8 is not initialized according to the read level Gr of the G signal.

【0097】以上のように、本第2実施形態のエンジン
制御装置では、レベル読取部65によりG信号の論理レ
ベルが前回読み取られてから今回読み取られるまでの間
に、G信号の論理レベルが一度も反転していない場合に
は、クランクカウンタ68の値CNTの初期化を止める
ようにしており、このような本第2実施形態によって
も、第1実施形態のエンジン制御装置と同様の効果、即
ち、カム角センサ49やカム角センサ49からの配線に
異常が生じても、クランクカウンタ68の値CNTの連
続性を正常時と同様に維持して、正しく気筒判別するこ
とができるようになる、という効果を得ることができ
る。
As described above, in the engine control device according to the second embodiment, the logical level of the G signal is once Is not inverted, the initialization of the value CNT of the crank counter 68 is stopped. According to the second embodiment, the same effect as that of the engine control device of the first embodiment, that is, Even if an abnormality occurs in the cam angle sensor 49 or the wiring from the cam angle sensor 49, the continuity of the value CNT of the crank counter 68 is maintained in the same manner as in the normal state, and the cylinder can be correctly determined. The effect described above can be obtained.

【0098】尚、本第2実施形態では、エッジ検出部7
3と、クランクカウンタカウント部69が行う図9の処
理のうちのS210及びS430〜S470の処理と
が、禁止手段に相当している。以上、本発明の一実施形
態について説明したが、本発明は、種々の形態を採り得
ることは言うまでもない。
In the second embodiment, the edge detector 7
3 and the processing of S210 and S430 to S470 of the processing of FIG. 9 performed by the crank counter counting unit 69 correspond to the prohibition means. As mentioned above, although one Embodiment of this invention was described, it cannot be overemphasized that this invention can take various forms.

【0099】例えば、クランクカウンタ68の値CNT
を初期化する値は、8と20に限るものではない。つま
り、0と12や、5と17といった具合に、360°C
A分だけ互いに異なった値であれば良い。また、上記各
実施形態では、クランクカウンタ68の値CNTをカウ
ントアップさせたが、クランクカウンタ68の値CNT
をカウントダウンさせるように構成しても良い。
For example, the value CNT of the crank counter 68
Are not limited to 8 and 20. That is, 360 ° C, such as 0 and 12, 5 and 17
It suffices if the values differ from each other by A. In each of the above embodiments, the value CNT of the crank counter 68 is counted up.
May be configured to count down.

【0100】具体的に説明すると、例えば、図6及び図
9において、S280では、クランクカウンタ68の値
CNTを1デクリメント(1つカウントダウン)する。
そして、S290では、クランクカウンタ68の値CN
Tが0よりも小さくなったか否かを判定し、0よりも小
さければ、S300にて、クランクカウンタ68の値C
NTを最大値の23に戻す。また、S260では、クラ
ンクカウンタ68の値CNTを例えば3に初期化し、S
270では、クランクカウンタ68の値CNTを例えば
15に初期化すれば良い。そして、このような変更に合
わせて、第1信号TDC及び第2信号G2の生成方法や
CPU31での気筒判別方法を変えれば良い。
More specifically, for example, in FIGS. 6 and 9, in step S280, the value CNT of the crank counter 68 is decremented by one (one countdown).
Then, in S290, the value CN of the crank counter 68 is
It is determined whether T has become smaller than 0. If T is smaller than 0, the value C of the crank counter 68 is determined in S300.
Return NT to the maximum value of 23. In S260, the value CNT of the crank counter 68 is initialized to, for example, 3, and
In 270, the value CNT of the crank counter 68 may be initialized to, for example, 15. Then, in accordance with such a change, the method of generating the first signal TDC and the second signal G2 and the method of determining the cylinder in the CPU 31 may be changed.

【0101】一方、上記各実施形態では、カム角センサ
49から出力されるG信号が、360°CA毎に1回だ
けレベル反転するものであったが、G信号は、クランク
角センサ47から基準位置信号Kが出力される各タイミ
ング毎に交互に異なった論理レベルとなっていれば良
く、クランク角センサ47からパルス信号が出力されて
いる期間中に複数回レベル反転する信号であっても良
い。
On the other hand, in each of the above embodiments, the G signal output from the cam angle sensor 49 is inverted only once every 360 ° CA. It is sufficient that the logic level is alternately different at each timing when the position signal K is output. The signal may be a signal whose level is inverted a plurality of times during the period when the pulse signal is output from the crank angle sensor 47. .

【0102】また、レベル読取部65は、欠歯検出部6
3からの欠歯検出信号FKが立ち上がってからNE信号
が最初に立ち上がったタイミング、即ち図3の時刻tb
にて、G信号の論理レベルを読み取るように構成しても
良い。また更に、上記各実施形態では、信号処理回路4
3の各部がスタータスイッチのオンを起点に最初から動
作するものとして説明したが、信号処理回路43の各部
は、例えば電源オンのパワーオンリセット時や、エンジ
ン回転数が0であることを検出した時等、他の要因が発
生した時を起点として最初から動作するように構成する
こともできる。
The level reading section 65 includes the missing tooth detecting section 6.
The timing when the NE signal first rises after the missing tooth detection signal FK from the third rises, that is, the time tb in FIG.
, The logical level of the G signal may be read. Furthermore, in each of the above embodiments, the signal processing circuit 4
Although the description has been made on the assumption that the respective units of No. 3 operate from the start when the starter switch is turned on, the respective units of the signal processing circuit 43 detect, for example, a power-on reset when the power is turned on or that the engine speed is 0. It can also be configured to start from the beginning when other factors occur, such as time.

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

【図1】 第1実施形態のエンジン制御装置の構成を表
す構成図である。
FIG. 1 is a configuration diagram illustrating a configuration of an engine control device according to a first embodiment.

【図2】 第1実施形態のエンジン制御装置で正常時に
行われる気筒判別用の動作を表すタイムチャートであ
る。
FIG. 2 is a time chart illustrating a cylinder discriminating operation performed in a normal state by the engine control device of the first embodiment.

【図3】 第1実施形態のエンジン制御装置における欠
歯検出部及びレベル読取部の動作を表すタイムチャート
である。
FIG. 3 is a time chart illustrating operations of a missing tooth detection unit and a level reading unit in the engine control device of the first embodiment.

【図4】 第1実施形態のエンジン制御装置における3
0°CA信号生成部の動作を表すフローチャートであ
る。
FIG. 4 is a diagram illustrating a third embodiment of the engine control device according to the first embodiment;
5 is a flowchart illustrating an operation of a 0 ° CA signal generation unit.

【図5】 第1実施形態のエンジン制御装置における3
0°CA信号生成部の動作を表すタイムチャートであ
る。
FIG. 5 is a diagram illustrating the engine control device according to the first embodiment;
6 is a time chart illustrating an operation of a 0 ° CA signal generation unit.

【図6】 第1実施形態のエンジン制御装置におけるク
ランクカウンタカウント部で行われる処理を表すフロー
チャートである。
FIG. 6 is a flowchart illustrating a process performed by a crank counter counting unit in the engine control device according to the first embodiment.

【図7】 第1実施形態のエンジン制御装置の作用及び
効果を説明するタイムチャートである。
FIG. 7 is a time chart illustrating the operation and effect of the engine control device of the first embodiment.

【図8】 第2実施形態のエンジン制御装置の構成を表
す構成図である。
FIG. 8 is a configuration diagram illustrating a configuration of an engine control device according to a second embodiment.

【図9】 第2実施形態のエンジン制御装置におけるク
ランクカウンタカウント部で行われる処理を表すフロー
チャートである。
FIG. 9 is a flowchart illustrating a process performed by a crank counter counting unit in the engine control device according to the second embodiment.

【図10】 第2実施形態のエンジン制御装置の作用及
び効果を説明するタイムチャートである。
FIG. 10 is a time chart illustrating the operation and effect of the engine control device according to the second embodiment.

【図11】 従来のエンジン制御装置で行われる気筒判
別用の動作を表すタイムチャートである。
FIG. 11 is a time chart illustrating an operation for cylinder determination performed by a conventional engine control device.

【図12】 従来のエンジン制御装置の問題を説明する
タイムチャートである。
FIG. 12 is a time chart for explaining a problem of the conventional engine control device.

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

11〜16…燃料噴射弁 21〜26…点火コイル 31…マイクロコンピュータ(CPU) 33,3
5,37…入力バッファ 39…A/D変換器 41…出力バッファ 43…
信号処理回路 45…電子制御ユニット(ECU) 47…クランク
角センサ 49…カム角センサ 51…スタータスイッチ 5
3…アイドルスイッチ 55…エアフロメータ 57…スロットルセンサ
59…水温センサ 61…イグナイタ 63…欠歯検出部 65…レベ
ル読取部 67…30°CA信号生成部 68…クランクカウン
タ 69…クランクカウンタカウント部 71…判別用信
号生成部 73…エッジ検出部
11 to 16: fuel injection valves 21 to 26: ignition coil 31: microcomputer (CPU) 33, 3
5, 37 input buffer 39 A / D converter 41 output buffer 43
Signal processing circuit 45 ... Electronic control unit (ECU) 47 ... Crank angle sensor 49 ... Cam angle sensor 51 ... Starter switch 5
3: Idle switch 55: Air flow meter 57: Throttle sensor
Reference numeral 59: water temperature sensor 61: igniter 63: missing tooth detecting unit 65: level reading unit 67: 30 ° CA signal generating unit 68: crank counter 69: crank counter counting unit 71: discriminating signal generating unit 73: edge detecting unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 3G084 AA03 BA15 CA01 DA27 DA30 EA05 EA07 EA11 EB24 EC02 FA36 FA38 FA39 3G301 HA06 JB01 JB09 KA01 MA18 NB03 NB11 NC08 NE23 PA01Z PA11Z PE03Z PE04Z PE05B PE05Z PE08Z PF16Z  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 3G084 AA03 BA15 CA01 DA27 DA30 EA05 EA07 EA11 EB24 EC02 FA36 FA38 FA39 3G301 HA06 JB01 JB09 KA01 MA18 NB03 NB11 NC08 NE23 PA01Z PA11Z PE03Z PE04Z PE05B PE05Z PE08Z

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 エンジンのクランク軸の回転に応じて、
前記クランク軸が所定角度回転する毎にパルス信号を出
力すると共に、前記クランク軸の回転位置が予め設定さ
れた1つの基準位置に来た時には前記パルス信号に代え
て基準位置信号を出力する第1の信号発生手段と、 該第1の信号発生手段から前記パルス信号が出力されて
いる期間中に論理レベルが変化すると共に、前記第1の
信号発生手段から前記基準位置信号が出力されるタイミ
ングでは、その各タイミング毎に交互に異なった論理レ
ベルとなる気筒判別用信号を、前記クランク軸の回転に
対し1/2の比率で回転する回転軸の回転に応じて出力
する第2の信号発生手段と、 前記第1の信号発生手段から前記基準位置信号が出力さ
れたことを検出すると、前記第2の信号発生手段からの
気筒判別用信号の論理レベルを読み取るレベル読取手段
と、 前記第1の信号発生手段から出力されるパルス信号に基
づき、前記クランク軸が所定の単位角度回転したことを
検出して、その検出時毎に、前記単位角度を分解能とし
て前記クランク軸の2回転分の累積回転角度を示すカウ
ント値を、カウントアップ或いはカウントダウンさせる
カウント手段と、 前記レベル読取手段により前記気筒判別用信号の論理レ
ベルが読み取られると、前記カウント値を、前記読み取
られた論理レベルに応じて、該論理レベルがロウレベル
の場合には第1の値に初期化し、前記論理レベルがハイ
レベルの場合には第2の値に初期化する初期化手段と、 を備え、前記第1の値と前記第2の値は、前記カウント
値の連続性を維持できるように前記クランク軸の1回転
分に相当する値だけ互いに異なった値であると共に、前
記レベル読取手段により前記気筒判別用信号の論理レベ
ルが最初に読み取られてからの前記カウント値に基づい
て、前記エンジンの気筒判別を行うように構成されたエ
ンジン制御装置において、 前記レベル読取手段により前記気筒判別用信号の論理レ
ベルが読み取られると、その今回読み取られた論理レベ
ルと、前記レベル読取手段により前回読み取られた論理
レベルとを比較して、両論理レベルが一致していると判
定すると、前記初期化手段の動作を禁止する禁止手段を
備えていること、 を特徴とするエンジン制御装置。
1. According to the rotation of a crankshaft of an engine,
Outputting a pulse signal every time the crankshaft rotates a predetermined angle, and outputting a reference position signal instead of the pulse signal when the rotation position of the crankshaft comes to one preset reference position. At the timing when the logic level changes during the period when the pulse signal is output from the first signal generating means, and when the reference position signal is output from the first signal generating means. A second signal generating means for outputting a cylinder discriminating signal having a different logic level alternately at each timing according to the rotation of the rotating shaft rotating at a ratio of 1/2 with respect to the rotation of the crankshaft. Detecting the output of the reference position signal from the first signal generating means, the level for reading the logical level of the cylinder discriminating signal from the second signal generating means; Detecting means for detecting that the crankshaft has rotated a predetermined unit angle based on a pulse signal output from the first signal generating means, and detecting the rotation of the crankshaft with the unit angle as a resolution at each detection. Counting means for counting up or counting down a count value indicating the cumulative rotation angle for two rotations of the shaft; and when the logic level of the cylinder discrimination signal is read by the level reading means, the count value is read. Initializing means for initializing to a first value when the logical level is low, and initializing to a second value when the logical level is high, according to the logical level, The first value and the second value are different from each other by a value corresponding to one rotation of the crankshaft so as to maintain continuity of the count value. An engine control device configured to determine a cylinder of the engine based on the count value after the logical level of the cylinder determination signal is first read by the level reading unit; When the logic level of the cylinder discrimination signal is read by the reading means, the logic level read this time is compared with the logic level read last time by the level reading means, and the two logic levels match. An engine control device, further comprising a prohibition unit for prohibiting the operation of the initialization unit when the determination is made.
【請求項2】 エンジンのクランク軸の回転に応じて、
前記クランク軸が所定角度回転する毎にパルス信号を出
力すると共に、前記クランク軸の回転位置が予め設定さ
れた1つの基準位置に来た時には前記パルス信号に代え
て基準位置信号を出力する第1の信号発生手段と、 該第1の信号発生手段から前記パルス信号が出力されて
いる期間中に論理レベルが変化すると共に、前記第1の
信号発生手段から前記基準位置信号が出力されるタイミ
ングでは、その各タイミング毎に交互に異なった論理レ
ベルとなる気筒判別用信号を、前記クランク軸の回転に
対し1/2の比率で回転する回転軸の回転に応じて出力
する第2の信号発生手段と、 前記第1の信号発生手段から前記基準位置信号が出力さ
れたことを検出すると、前記第2の信号発生手段からの
気筒判別用信号の論理レベルを読み取るレベル読取手段
と、 前記第1の信号発生手段から出力されるパルス信号に基
づき、前記クランク軸が所定の単位角度回転したことを
検出して、その検出時毎に、前記単位角度を分解能とし
て前記クランク軸の2回転分の累積回転角度を示すカウ
ント値を、カウントアップ或いはカウントダウンさせる
カウント手段と、 前記レベル読取手段により前記気筒判別用信号の論理レ
ベルが読み取られると、前記カウント値を、前記読み取
られた論理レベルに応じて、該論理レベルがロウレベル
の場合には第1の値に初期化し、前記論理レベルがハイ
レベルの場合には第2の値に初期化する初期化手段と、 を備え、前記第1の値と前記第2の値は、前記カウント
値の連続性を維持できるように前記クランク軸の1回転
分に相当する値だけ互いに異なった値であると共に、前
記レベル読取手段により前記気筒判別用信号の論理レベ
ルが最初に読み取られてからの前記カウント値に基づい
て、前記エンジンの気筒判別を行うように構成されたエ
ンジン制御装置において、 前記レベル読取手段により前記気筒判別用信号の論理レ
ベルが前回読み取られてから今回読み取られるまでの間
に、前記気筒判別用信号の論理レベルが反転したか否か
を判定し、一度も反転していないと判定すると、前記初
期化手段の動作を禁止する禁止手段を備えていること、 を特徴とするエンジン制御装置。
2. According to the rotation of the crankshaft of the engine,
Outputting a pulse signal every time the crankshaft rotates a predetermined angle, and outputting a reference position signal instead of the pulse signal when the rotation position of the crankshaft comes to one preset reference position. At the timing when the logic level changes during the period when the pulse signal is being output from the first signal generating means, and when the reference position signal is output from the first signal generating means. A second signal generating means for outputting a cylinder discriminating signal having a different logic level alternately at each timing according to the rotation of the rotating shaft rotating at a ratio of 1/2 with respect to the rotation of the crankshaft. Detecting the output of the reference position signal from the first signal generating means, the level for reading the logical level of the cylinder discriminating signal from the second signal generating means; Detecting means for detecting that the crankshaft has rotated a predetermined unit angle based on a pulse signal output from the first signal generating means, and detecting the rotation of the crankshaft with the unit angle as a resolution at each detection. Counting means for counting up or counting down a count value indicating the cumulative rotation angle for two rotations of the shaft; and when the logic level of the cylinder discrimination signal is read by the level reading means, the count value is read. Initializing means for initializing to a first value when the logical level is low, and initializing to a second value when the logical level is high, according to the logical level, The first value and the second value are different from each other by a value corresponding to one rotation of the crankshaft so as to maintain continuity of the count value. An engine control device configured to determine a cylinder of the engine based on the count value after the logical level of the cylinder determination signal is first read by the level reading unit; It is determined whether or not the logic level of the cylinder discrimination signal has been inverted between the time when the logic level of the cylinder discrimination signal is read last time and the time when the logic level is read this time by the reading means. An engine control device, comprising: a prohibition unit that prohibits the operation of the initialization unit when the determination is made.
JP27092599A 1999-09-24 1999-09-24 Engine control device Expired - Fee Related JP4475704B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP27092599A JP4475704B2 (en) 1999-09-24 1999-09-24 Engine control device
US09/665,693 US6341253B1 (en) 1999-09-24 2000-09-20 Engine control apparatus with cylinder discrimination function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27092599A JP4475704B2 (en) 1999-09-24 1999-09-24 Engine control device

Publications (3)

Publication Number Publication Date
JP2001090600A true JP2001090600A (en) 2001-04-03
JP2001090600A5 JP2001090600A5 (en) 2007-01-18
JP4475704B2 JP4475704B2 (en) 2010-06-09

Family

ID=17492913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27092599A Expired - Fee Related JP4475704B2 (en) 1999-09-24 1999-09-24 Engine control device

Country Status (1)

Country Link
JP (1) JP4475704B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005163560A (en) * 2003-11-28 2005-06-23 Denso Corp Cylinder distinction device for internal combustion engine
US7142973B2 (en) 2004-06-11 2006-11-28 Denso Corporation Engine control apparatus designed to ensure accuracy in determining engine position
JPWO2021095606A1 (en) * 2019-11-13 2021-05-20
CN113227717A (en) * 2018-12-19 2021-08-06 纬湃科技有限责任公司 Synchronization of internal combustion engines

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005163560A (en) * 2003-11-28 2005-06-23 Denso Corp Cylinder distinction device for internal combustion engine
US7142973B2 (en) 2004-06-11 2006-11-28 Denso Corporation Engine control apparatus designed to ensure accuracy in determining engine position
CN113227717A (en) * 2018-12-19 2021-08-06 纬湃科技有限责任公司 Synchronization of internal combustion engines
CN113227717B (en) * 2018-12-19 2023-10-27 纬湃科技有限责任公司 Synchronization of internal combustion engines
US11879404B2 (en) 2018-12-19 2024-01-23 Vitesco Technologies GmbH Device and method for determining the state of rotation of a camshaft of an engine
JPWO2021095606A1 (en) * 2019-11-13 2021-05-20
WO2021095606A1 (en) * 2019-11-13 2021-05-20 日立Astemo株式会社 Engine control device and engine control method
JP7291238B2 (en) 2019-11-13 2023-06-14 日立Astemo株式会社 Engine control device and engine control method
EP4060177A4 (en) * 2019-11-13 2023-12-06 Hitachi Astemo, Ltd. Engine control device and engine control method
US11946425B2 (en) 2019-11-13 2024-04-02 Hitachi Astemo, Ltd. Engine control device and engine control method

Also Published As

Publication number Publication date
JP4475704B2 (en) 2010-06-09

Similar Documents

Publication Publication Date Title
US8818685B2 (en) Rotation detecting device and rotation detecting method
JPH08261053A (en) Cylinder discriminating device for engine
JP4168907B2 (en) Engine control device
JP2006214408A (en) Control device for internal combustion engine
JP4542569B2 (en) Engine control device
US6679223B2 (en) Engine control system with cam sensor
JP3805726B2 (en) Internal combustion engine control device
JP4475704B2 (en) Engine control device
US20040194749A1 (en) Start control apparatus of internal combustion engine
JP4399997B2 (en) Engine control device
JPH0686856B2 (en) Control device for internal combustion engine
JP4332971B2 (en) Engine control apparatus and signal processing circuit used therefor
JP3931825B2 (en) Engine control device
JP2005264862A (en) Engine control device
JPH05133268A (en) Cylinder discriminating and detecting device for internal combustion engine
JPH07109948A (en) Crank angle judging device for internal combustion engine
JP4196426B2 (en) Crank angle determination device for internal combustion engine
JPH0650107B2 (en) Internal combustion engine ignition device
JP2843365B2 (en) Engine knock suppression device
JP2003184629A (en) Crank angle determining device for internal combustion engine
JP5794012B2 (en) Electronic control unit
JP4406324B2 (en) Engine control device
JP4066955B2 (en) Crank angle discrimination device for internal combustion engine
JP3146587B2 (en) Control device for internal combustion engine
JP2631862B2 (en) Ignition timing control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051117

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080219

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080722

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080916

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20081001

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20081031

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100309

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4475704

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140319

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees