JP2002276453A - Engine control device - Google Patents

Engine control device

Info

Publication number
JP2002276453A
JP2002276453A JP2001078562A JP2001078562A JP2002276453A JP 2002276453 A JP2002276453 A JP 2002276453A JP 2001078562 A JP2001078562 A JP 2001078562A JP 2001078562 A JP2001078562 A JP 2001078562A JP 2002276453 A JP2002276453 A JP 2002276453A
Authority
JP
Japan
Prior art keywords
signal
value
cylinder
counter
engine
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
JP2001078562A
Other languages
Japanese (ja)
Other versions
JP4399997B2 (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 JP2001078562A priority Critical patent/JP4399997B2/en
Publication of JP2002276453A publication Critical patent/JP2002276453A/en
Application granted granted Critical
Publication of JP4399997B2 publication Critical patent/JP4399997B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an engine control device capable of performing a cylinder discrimination at an early stage after detecting the starting of an engine. SOLUTION: When a crank angle signal NE is detected to be a missing tooth signal K first after detecting starting of the engine by a starter signal STA in an engine device (t2), a value (hereinafter referred to as a count value) CNT of a crank counter is initially set to a count start value according to a logic level of a signal G for cylinder discrimination at the time, and subsequently the count value CNT is updated every 30 deg. CA based on the crank angle signal NE and is revolved in the range of 0 to 23 corresponding to 720 deg. CA. In this device, a processing for performing the cylinder discrimination of the engine based on the count value CNT is started from a point of time (t2) when the count value CNT is initially set to the count start value. Therefore, the cylinder discrimination can be performed at the early stage and controllability of the engine can be improved.

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]

【従来の技術】一般に、エンジンを制御するエンジン制
御装置においては、図10に示す如く、エンジンのクラ
ンク軸の回転に応じてクランク角センサ1から出力され
るクランク角信号(回転信号とも呼ばれる)NEと、ク
ランク軸の回転に対し1/2の比率で回転するエンジン
のカム軸の回転に応じてカム角センサ2から出力される
気筒判別用信号Gとが入力される。そして、信号処理回
路3が、上記両信号NE,Gから気筒判別用の各種信号
NE2,TDC,G2を生成してマイクロコンピュータ
(以下、CPUという)4に出力し、CPU4は、その
信号処理回路3からの信号NE2,TDC,G2に基づ
き気筒判別を行ってエンジンを制御するようにしてい
る。
2. Description of the Related Art Generally, in an engine control device for controlling an engine, as shown in FIG. 10, a crank angle signal (also referred to as a rotation signal) NE output from a crank angle sensor 1 in response to rotation of a crank shaft of the engine. And a cylinder discrimination signal G output from the cam angle sensor 2 according to the rotation of the camshaft of the engine that rotates at a ratio of 1/2 to the rotation of the crankshaft. The signal processing circuit 3 generates various signals NE2, TDC, and G2 for cylinder discrimination from the two signals NE and G and outputs the signals to a microcomputer (hereinafter referred to as a CPU) 4. The CPU 4 The engine is controlled by performing cylinder discrimination based on the signals NE2, TDC, and G2 from the third engine.

【0003】ここで、カム角センサとして、電磁ピック
アップ(MPU)式のセンサを用いた場合の気筒判別方
法の従来例について、図11を用いて説明する。まず、
この例において、クランク角センサから出力されるクラ
ンク角信号NEは、クランク軸の回転位置が予め設定さ
れた1つの特定位置でない時には、クランク軸が10°
回転する期間を1周期としたパルス信号となり、クラン
ク軸の回転位置が特定位置に来た時には、クランク軸が
30°回転する期間を1周期とした欠歯信号Kとなる。
つまり、クランク角信号NEは、クランク軸が10°回
転する毎(10°CA毎)にローレベル→ハイレベル→
ローレベルといった具合にパルス状に変化すると共に、
クランク軸の回転位置が特定位置に来た時には、立ち上
がりの間隔が3倍長くなり、その3倍長くなった期間が
欠歯信号Kとなる。そして、この欠歯信号Kは、クラン
ク軸が1回転する毎(360°CA毎)に発生する。
A conventional example of a cylinder discriminating method using an electromagnetic pickup (MPU) sensor as a cam angle sensor will be described with reference to FIG. First,
In this example, the crank angle signal NE output from the crank angle sensor indicates that the crankshaft is at 10 ° when the rotational position of the crankshaft is not one specific preset position.
A pulse signal having a period of one rotation is a pulse signal. When the rotational position of the crankshaft reaches a specific position, a missing tooth signal K having a period of 30 ° rotation of the crankshaft is one period.
That is, the crank angle signal NE changes from low level to high level every time the crankshaft rotates 10 ° (every 10 ° CA).
While changing in a pulse form like a low level,
When the rotational position of the crankshaft reaches the specific position, the interval of the rise becomes three times longer, and the period of the three times longer becomes the missing tooth signal K. The missing tooth signal K is generated every time the crankshaft makes one rotation (every 360 ° CA).

【0004】また、この例において、MPU式のカム角
センサから出力される気筒判別用信号Gは、カム軸が1
回転する毎(即ちクランク軸が2回転する毎)に、且
つ、クランク角信号NEが欠歯信号Kとなって10°C
A毎のパルス信号に戻るタイミングからクランク軸が1
20°回転するまでの期間(120°CA分の期間)内
に、ローレベル→ハイレベル→ローレベルといった具合
にパルス状に変化する。
In this example, a cylinder discriminating signal G output from an MPU-type cam angle sensor indicates that the camshaft is one.
Each time the crankshaft rotates (i.e., every two rotations of the crankshaft), and the crank angle signal NE becomes the missing tooth signal K and the rotation angle of the crankshaft becomes 10 ° C.
From the timing of returning to the pulse signal for each A,
During a period (a period of 120 ° CA) until the motor rotates by 20 °, the pulse changes in a state of low level → high level → low level.

【0005】次に、エンジン制御装置においては、信号
処理回路が、上記クランク角信号NE及び気筒判別用信
号Gと、エンジンを始動させるためのスタータスイッチ
がオンされた時にハイレベルとなるスタータ信号STA
とに基づいて、下記の[S1−1]〜[S1−4]の動
作を行う。
Next, in the engine control device, the signal processing circuit includes a crank angle signal NE and a cylinder discriminating signal G, and a starter signal STA which becomes a high level when a starter switch for starting the engine is turned on.
Based on the above, the following operations [S1-1] to [S1-4] are performed.

【0006】[S1−1]:まず、信号処理回路は、図
11の時刻t1に示すように、スタータ信号STAがハ
イレベルになると(スタータスイッチがオンされる
と)、クランク角信号NE中における欠歯信号Kの検出
動作(即ち、クランク角信号NEが欠歯信号Kになった
ことを検出する動作)を開始する。
[S1-1]: First, as shown at time t1 in FIG. 11, when the starter signal STA becomes high level (when the starter switch is turned on), the signal processing circuit generates the signal in the crank angle signal NE. The detection operation of the missing tooth signal K (that is, the operation of detecting that the crank angle signal NE has become the missing tooth signal K) is started.

【0007】[S1−2]:そして、時刻t2以降に示
すように、クランク角信号NEが欠歯信号Kになったこ
とを最初に検出すると、以後、クランク角信号NEを分
周して、クランク軸が30°回転する期間を1周期とし
た(換言すれば、クランク軸が30°回転する毎(30
°CA毎)に立ち上がる)第2パルス信号としての30
°CA信号NE2を生成し、その30°CA信号NE2
をCPUへ出力すると共に、欠歯信号Kを検出してから
30°CA信号NE2の所定周期分の期間(この例で
は、4周期分の期間であり120°CA分の期間)を、
カム角センサからの気筒判別用信号Gが立ち上がるか否
かの判定区間HKとして設定する。
[S1-2]: As shown after time t2, when it is first detected that the crank angle signal NE has become the missing tooth signal K, the crank angle signal NE is frequency-divided thereafter. The period in which the crankshaft rotates 30 ° is defined as one cycle (in other words, every time the crankshaft rotates 30 ° (30
Rises at every CA) 30 as the second pulse signal
A CA signal NE2 is generated, and the 30 ° CA signal NE2 is generated.
Is output to the CPU, and a period corresponding to a predetermined cycle of the 30 ° CA signal NE2 (in this example, a period corresponding to four cycles and a period corresponding to 120 ° CA) after the detection of the missing tooth signal K is
This is set as a determination section HK for determining whether or not the cylinder determination signal G from the cam angle sensor rises.

【0008】尚、このような判定区間HKを設けている
のは、欠歯信号Kが発生するタイミングと気筒判別用信
号Gが立ち上がるタイミングとの時間差が、センサの個
体差や経時変化、或いは更に、カム軸を操作して吸排気
バルブの開閉タイミングを可変にする制御などによっ
て、常に一定とはならないためである。
The reason why such a determination section HK is provided is that the time difference between the timing at which the missing tooth signal K is generated and the timing at which the cylinder discrimination signal G rises is determined by the individual difference of the sensor, the change with time, or furthermore. This is because the operation is not always constant by controlling the cam shaft to change the opening / closing timing of the intake / exhaust valve.

【0009】[S1−3]:また、信号処理回路は、図
11の時刻t2’,t3’t4’,…,t7’に示すよ
うに、上記判定区間HKの終了タイミング毎に30°C
A分だけアクティブレベル(この例ではローレベル)と
なる基準位置信号TDCを生成して、その基準位置信号
TDCをCPUに出力する。よって、この基準位置信号
TDCは、クランク軸の回転位置が欠歯信号Kの発生す
る特定位置から120°進んだ基準位置に来た時に、3
0°CA分だけローレベルとなる。
[S1-3]: As shown at times t2 ', t3', t4 ',..., T7' in FIG.
A reference position signal TDC having an active level (low level in this example) for A is generated, and the reference position signal TDC is output to the CPU. Therefore, when the rotational position of the crankshaft comes to the reference position which is advanced by 120 ° from the specific position where the missing tooth signal K is generated, the reference position signal TDC is 3
It becomes low level for 0 ° CA.

【0010】[S1−4]:そして更に、信号処理回路
は、上記基準位置信号TDCがアクティブレベルとなる
毎にレベルが反転する第2気筒判別用信号G2を、以下
の手順で生成してCPUへ出力する。即ち、信号処理回
路は、初期状態では第2気筒判別用信号G2をローレベ
ルにしており、上記判定区間HK内で気筒判別用信号G
が立ち上がった場合には、その判定区間HKの終了時の
基準位置信号TDCの立ち下がりタイミングにて、第2
気筒判別用信号G2をハイレベルに設定し(図11の時
刻t2’,t4’,t6’参照)、逆に、判定区間HK
内で気筒判別用信号Gが立ち上がらなかった場合には、
その判定区間HKの終了時の基準位置信号TDCの立ち
下がりタイミングにて、第2気筒判別用信号G2をロー
レベルに設定する(図11の時刻t3’,t5’,t
7’参照)。
[S1-4]: Further, the signal processing circuit generates a second cylinder discriminating signal G2 whose level is inverted every time the reference position signal TDC becomes an active level by the following procedure, and Output to That is, the signal processing circuit sets the second cylinder discriminating signal G2 to the low level in the initial state, and sets the cylinder discriminating signal G2 in the discrimination section HK.
Rises at the falling timing of the reference position signal TDC at the end of the determination section HK.
The cylinder determination signal G2 is set to a high level (see times t2 ', t4', and t6 'in FIG. 11), and conversely, the determination section HK
If the cylinder discrimination signal G does not rise within
At the falling timing of the reference position signal TDC at the end of the determination section HK, the second cylinder determination signal G2 is set to a low level (time t3 ', t5', t in FIG. 11).
7 ').

【0011】一方、エンジン制御装置において、CPU
は、図11の時刻t1に示すように、スタータ信号ST
Aがハイレベルになると、内部のクランクカウンタの値
(カウント値)CNTを−1に設定し、以後、信号処理
回路からの30°CA信号NE2が立ち上がる毎に起動
される処理により、下記の[C1−1]〜[C1−4]
の手順でクランクカウンタの値CNTを更新する。尚、
クランクカウンタの値CNTは、クランク軸の2回転分
の累積回転角度を、30°CA信号NE2の周期に相当
する30°を分解能として示すものであり、この例では
0から23までの値となる。
On the other hand, in the engine control device, the CPU
Is the starter signal ST as shown at time t1 in FIG.
When A becomes high level, the value (count value) CNT of the internal crank counter is set to −1, and thereafter, every time the 30 ° CA signal NE2 from the signal processing circuit rises, the following [ C1-1] to [C1-4]
The value CNT of the crank counter is updated in the procedure described above. still,
The value CNT of the crank counter indicates the cumulative rotation angle for two rotations of the crankshaft, with a resolution of 30 ° corresponding to the cycle of the 30 ° CA signal NE2, and is a value from 0 to 23 in this example. .

【0012】[C1−1]:信号処理回路からの基準位
置信号TDCがハイレベルであり、且つ、現在のクラン
クカウンタの値CNTが0よりも小さければ(即ち−1
であれば)、クランクカウンタの値CNTを変えずに、
そのまま処理を終了する。 [C1−2]:信号処理回路からの基準位置信号TDC
がハイレベルであり、且つ、現在のクランクカウンタの
値CNTが0以上であれば、クランクカウンタの値CN
Tを1つカウントアップ(+1)させる。
[C1-1]: If the reference position signal TDC from the signal processing circuit is at a high level and the current value CNT of the crank counter is smaller than 0 (that is, -1)
), Without changing the value CNT of the crank counter,
The process ends as it is. [C1-2]: Reference position signal TDC from signal processing circuit
Is at a high level and the current value CNT of the crank counter is 0 or more, the value CN of the crank counter
T is incremented by one (+1).

【0013】[C1−3]:これに対して、信号処理回
路からの基準位置信号TDCがローレベルであれば、信
号処理回路からの第2気筒判別用信号G2の論理レベル
を読み取り、その読み取った第2気筒判別用信号G2の
論理レベルがハイレベルであれば、クランクカウンタの
値CNTを強制的に0へと初期化する。
[C1-3]: On the other hand, if the reference position signal TDC from the signal processing circuit is at a low level, the logic level of the second cylinder discriminating signal G2 from the signal processing circuit is read and read. If the logic level of the second cylinder discrimination signal G2 is high, the value CNT of the crank counter is forcibly initialized to zero.

【0014】[C1−4]:また、信号処理回路からの
基準位置信号TDCがローレベルであり、且つ、第2気
筒判別用信号G2の論理レベルもローレベルであれば、
現在のクランクカウンタの値CNT(現在値)が0〜2
3の中間値である12以上か否かを判定して、現在値が
12よりも小さければ、クランクカウンタの値CNTを
12にし、逆に現在値が12以上であれば、クランクカ
ウンタの値CNTを0にする、といった補正処理を行
う。
[C1-4]: If the reference position signal TDC from the signal processing circuit is at a low level and the logical level of the second cylinder discrimination signal G2 is also at a low level,
The current value CNT (current value) of the crank counter is 0 to 2
It is determined whether or not the current value is smaller than 12, which is an intermediate value of 3. If the current value is smaller than 12, the value CNT of the crank counter is set to 12, and if the current value is 12 or more, the value CNT of the crank counter is changed. Is corrected to zero.

【0015】即ち、CPUは、信号処理回路からの30
°CA信号NE2が立ち上がる毎に、下記の表1の規則
でクランクカウンタの値CNTを更新している。尚、表
1及び後述する他の表において、CNT(n-1) は、今回
の処理で更新する前のクランクカウンタの値(現在値)
を示しており、CNT(n) は、今回の処理で更新する新
たなクランクカウンタの値(今回値)を示している。ま
た、「L」はローレベルを示し、「H」はハイレベルを
示している。
That is, the CPU receives the signal from the signal processing circuit.
Each time the CA signal NE2 rises, the value CNT of the crank counter is updated according to the rules shown in Table 1 below. In Table 1 and other tables described later, CNT (n-1) is the value (current value) of the crank counter before updating in the current process.
CNT (n) indicates the value of the new crank counter (current value) updated in the current process. “L” indicates a low level, and “H” indicates a high level.

【0016】[0016]

【表1】 [Table 1]

【0017】このため、図11の時刻t2〜t2’に示
すように、スタータ信号STAがハイレベルになってか
らの最初の判定区間HKで気筒判別用信号Gが立ち上が
ったならば、その判定区間HKが終了する時刻t2’に
て、信号処理回路からCPUへの基準位置信号TDCが
ローレベルになると共に、第2気筒判別用信号G2がハ
イレベルとなり、CPUでは、クランクカウンタの値C
NTが0に初期化される。
For this reason, as shown from time t2 to t2 'in FIG. 11, if the cylinder discriminating signal G rises in the first judgment section HK after the starter signal STA becomes high level, the judgment section At time t2 'at which HK ends, the reference position signal TDC from the signal processing circuit to the CPU goes low, the second cylinder discrimination signal G2 goes high, and the CPU sets the value C of the crank counter.
NT is initialized to 0.

【0018】そして以後、CPUにおいては、クランク
カウンタの値CNTが、0→1→2→3…とカウントア
ップされていき、時刻t3’に示すように、次の欠歯信
号Kの発生に伴う判定区間HKの終了タイミングでは、
信号処理回路からの第2気筒判別用信号G2が時刻t
2’とは反対のローレベルとなるため、その時刻t3’
では、クランクカウンタの値CNTを12にする補正処
理が行われる。
Thereafter, in the CPU, the value CNT of the crank counter is counted up from 0 → 1 → 2 → 3..., As shown at time t3 ′, following the generation of the next missing tooth signal K. At the end timing of the determination section HK,
The second cylinder discrimination signal G2 from the signal processing circuit is output at time t.
At the time t3 ', the low level is opposite to 2'.
Then, a correction process for setting the value CNT of the crank counter to 12 is performed.

【0019】そして更に、時刻t4’に示すように、次
の欠歯信号Kの発生に伴う判定区間HKの終了タイミン
グでは、第2気筒判別用信号G2が時刻t3’とは反対
のハイレベルとなるため、その時刻t4’では、クラン
クカウンタの値CNTが0に初期化され、その後は、図
11の時刻t4’以降に示すように、時刻t2’〜時刻
t4’と同様の動作が繰り返される。
Further, as shown at time t4 ', at the end timing of the determination section HK following the generation of the missing tooth signal K, the second cylinder discriminating signal G2 becomes a high level opposite to the time t3'. Therefore, at time t4 ', the value CNT of the crank counter is initialized to 0, and thereafter, the same operations as those from time t2' to time t4 'are repeated, as shown after time t4' in FIG. .

【0020】そして、CPUは、このように周回される
クランクカウンタの値CNTの値に基づいて、点火すべ
き気筒を判別する。具体例を挙げると、エンジンが直列
4気筒エンジンであるとすると、例えば、クランクカウ
ンタの値CNTが0の時に、第1気筒#1の上死点前
(BTDC)30°CAと判断し、クランクカウンタの
値CNTが6の時に、第2気筒#2のBTDC30°C
Aと判断し、クランクカウンタの値CNTが12の時
に、第3気筒#3のBTDC30°CAと判断し、クラ
ンクカウンタの値CNTが18の時に、第4気筒#4の
BTDC30°CAと判断する。
Then, the CPU determines the cylinder to be ignited based on the value of the value CNT of the crank counter rotated in this way. As a specific example, if the engine is an in-line four-cylinder engine, for example, when the value CNT of the crank counter is 0, it is determined that the first cylinder # 1 is before the top dead center (BTDC) 30 ° CA, and the crank is determined. When the counter value CNT is 6, the BTDC of the second cylinder # 2 is 30 ° C.
When the crank counter value CNT is 12, it is determined that the BTDC is 30 ° CA for the third cylinder # 3, and when the crank counter value CNT is 18, it is determined that the BTDC is 30 ° CA for the fourth cylinder # 4. .

【0021】尚、CPUが最初に基準位置信号TDC=
ロー且つ第2気筒判別用信号G2=ハイであることを検
出した時だけでなく、その後も、同じ条件が成立する毎
にクランクカウンタの値CNTを0に初期化するように
しているのは、万一、クランクカウンタの値CNTがノ
イズ等の影響によって正常値から増減しても、それを速
やかに正常値へと戻せるようにするためである。また、
CPUが基準位置信号TDC=ロー且つ第2気筒判別用
信号G2=ローであることを検出した時に、クランクカ
ウンタの値CNTを、その時の値に応じて(詳しくは1
2以上か否かに応じて)0又は12に補正するようにし
ているのは、ノイズ等の影響によって信号処理回路から
CPUへの30°CA信号NE2が数発欠落したとして
も、クランクカウンタの値CNTを正常値へと復帰させ
ることができるようにするためである。
Note that the CPU first sets the reference position signal TDC =
The reason why the crank counter value CNT is initialized to 0 each time the same condition is satisfied not only when it is detected that the signal G2 is low and the second cylinder determination signal G2 is high, Even if the value CNT of the crank counter increases or decreases from the normal value due to the influence of noise or the like, the value can be promptly returned to the normal value. Also,
When the CPU detects that the reference position signal TDC = low and the second cylinder discriminating signal G2 = low, the value of the crank counter CNT is changed according to the value at that time (for details, 1
The correction to 0 or 12 (depending on whether or not it is 2 or more) is because even if several 30 ° CA signals NE2 from the signal processing circuit to the CPU are lost due to the influence of noise, etc. This is because the value CNT can be returned to a normal value.

【0022】一方、近年では、カム角センサとして、カ
ム軸の回転位置に応じて出力レベルがハイレベルとロー
レベルとに変化する磁気抵抗素子(MRE)式のセンサ
を採用する方向に移行している。そこで次に、カム角セ
ンサとして、MRE式のセンサを用いた場合の気筒判別
方法の従来例について、図12を用いて説明する。
On the other hand, in recent years, the direction of adopting a magnetoresistive element (MRE) type sensor in which an output level changes between a high level and a low level in accordance with the rotational position of a cam shaft as a cam angle sensor has been shifted to a direction of adopting. I have. Therefore, next, a conventional example of a cylinder discrimination method using an MRE-type sensor as a cam angle sensor will be described with reference to FIG.

【0023】まず、図12の例において、クランク角セ
ンサから出力されるクランク角信号NEは、図11の場
合と同じであるが、MRE式のカム角センサから出力さ
れる気筒判別用信号Gは、カム軸の回転位置に応じて、
クランク角センサからのクランク角信号NEがパルス信
号となっている期間中に論理レベルが1回反転するよう
になっている。このため、気筒判別用信号Gは、クラン
ク軸が2回転する期間(720°CAの期間)を1周期
とし、クランク角信号NEが欠歯信号Kとなるタイミン
グでは、その各タイミング毎に交互に異なった論理レベ
ルとなる。
First, in the example of FIG. 12, the crank angle signal NE output from the crank angle sensor is the same as that of FIG. 11, but the cylinder discrimination signal G output from the MRE type cam angle sensor is , According to the rotation position of the camshaft,
The logic level is inverted once during the period when the crank angle signal NE from the crank angle sensor is a pulse signal. For this reason, the cylinder discriminating signal G has a period in which the crankshaft makes two rotations (a period of 720 ° CA) as one cycle, and at a timing when the crank angle signal NE becomes the missing tooth signal K, it is alternately performed at each timing. Different logic levels.

【0024】次に、エンジン制御装置においては、信号
処理回路が、上記クランク角信号NE及び気筒判別用信
号Gと、スタータ信号STAとに基づいて、下記の[S
2−1]〜[S2−4]の動作を行う。 [S2−1]:まず、MRE式のカム角センサを用いた
場合でも、信号処理回路は、図12の時刻t1に示す如
くスタータ信号STAに立ち上がりが生じると、クラン
ク角信号NE中における欠歯信号Kの検出動作を開始す
る。
Next, in the engine control device, the signal processing circuit performs the following [S] based on the crank angle signal NE, the cylinder discriminating signal G, and the starter signal STA.
2-1] to [S2-4] are performed. [S2-1]: First, even when the MRE-type cam angle sensor is used, the signal processing circuit detects a missing tooth in the crank angle signal NE when the starter signal STA rises as shown at time t1 in FIG. The detection operation of the signal K is started.

【0025】[S2−2]:そして、この場合でも、信
号処理回路は、図12の時刻t2以降に示すように、ク
ランク角信号NEが欠歯信号Kになったことを最初に検
出すると、以後、クランク角信号NEを分周して、30
°CA毎に立ち上がる第2パルス信号としての30°C
A信号NE2を生成し、その30°CA信号NE2をC
PUへ出力する。
[S2-2]: Also in this case, when the signal processing circuit first detects that the crank angle signal NE has become the missing tooth signal K, as shown after time t2 in FIG. Thereafter, the frequency of the crank angle signal NE is divided to 30
30 ° C as the second pulse signal rising every ° CA
A signal NE2 is generated, and the 30 ° CA signal NE2 is
Output to PU.

【0026】[S2−3]:また、信号処理回路は、図
12の時刻t2’,t3’t4’,…,t7’に示す如
く、欠歯信号Kを検出してから30°CA信号NE2の
所定周期分の期間(この例では、4周期分の期間であり
120°CA分の期間)が経過する毎に、30°CA分
だけアクティブレベル(この例ではローレベル)となる
基準位置信号TDCを生成して、その基準位置信号TD
CをCPUに出力する。よって、この場合でも、CPU
への基準位置信号TDCは、クランク軸の回転位置が欠
歯信号Kの発生する特定位置から120°進んだ基準位
置に来た時に、30°CA分だけローレベルとなる。
[S2-3]: As shown at time t2 ', t3', t4 ',..., T7' in FIG. Each time a period of a predetermined period (in this example, a period of four cycles and a period of 120 ° CA) elapses, the reference position signal becomes an active level (low level in this example) by 30 ° CA A TDC is generated and its reference position signal TD
C is output to the CPU. Therefore, even in this case, the CPU
The reference position signal TDC goes to a low level by 30 ° CA when the rotational position of the crankshaft reaches a reference position advanced by 120 ° from the specific position where the missing tooth signal K is generated.

【0027】[S2−4]:そして更に、信号処理回路
は、上記基準位置信号TDCがアクティブレベルとなる
毎にレベルが反転する第2気筒判別用信号G2を、以下
の手順で生成してCPUへ出力する。即ち、まず、信号
処理回路は、初期状態では第2気筒判別用信号G2をロ
ーレベルにしており、また、図12にて「○」印で示す
ように、クランク角信号NEが欠歯信号Kになったこと
を検出する毎に気筒判別用信号Gの論理レベルを読み取
る。そして、信号処理回路は、図12の時刻t2’,t
3’,t4’,…,t7’に示す如く、基準位置信号T
DCの立ち下がりタイミング毎に、第2気筒判別用信号
G2を、そのタイミングの直前の欠歯信号Kの検出時に
読み取った気筒判別用信号Gの論理レベルとは反対のレ
ベルに設定する(図12における斜めの点線矢印参
照)。
[S2-4]: Further, the signal processing circuit generates a second cylinder discriminating signal G2 whose level is inverted every time the reference position signal TDC becomes an active level by the following procedure, and Output to That is, first, the signal processing circuit sets the second cylinder discrimination signal G2 to the low level in the initial state, and as shown by the mark “○” in FIG. 12, the crank angle signal NE changes to the missing tooth signal K. The logic level of the cylinder discrimination signal G is read each time it is detected that Then, the signal processing circuit calculates the times t2 ′, t2 in FIG.
3 ', t4',..., T7 ', the reference position signal T
At each DC falling timing, the second cylinder discriminating signal G2 is set to a level opposite to the logical level of the cylinder discriminating signal G read at the time of detecting the missing tooth signal K immediately before the timing (FIG. 12). ).

【0028】このため、図12の例において、信号処理
回路からCPUに出力される基準位置信号TDCと第2
気筒判別用信号G2は、MPU式のカム角センサを用い
た場合(図11)と同様に変化することとなる。そし
て、エンジン制御装置において、CPUは、図12の時
刻t1に示すように、スタータ信号STAに立ち上がり
が生じると、内部のクランクカウンタの値(カウント
値)CNTを−1に設定し、以後、信号処理回路からの
30°CA信号NE2が立ち上がる毎に起動される処理
により、MPU式のカム角センサを用いた場合の前述し
た[C1−1]〜[C1−4]と同じ手順(即ち表1の
規則)でクランクカウンタの値CNTを更新する。尚、
この場合においても、クランクカウンタの値CNTは、
クランク軸の2回転分の累積回転角度を、30°CA信
号NE2の周期に相当する30°を分解能として示すも
のであり、0から23までの値となる。
Therefore, in the example of FIG. 12, the reference position signal TDC output from the signal processing circuit to the CPU and the second
The cylinder discrimination signal G2 changes in the same manner as in the case where the MPU cam angle sensor is used (FIG. 11). Then, in the engine control device, when the starter signal STA rises as shown at time t1 in FIG. 12, the CPU sets the value (count value) CNT of the internal crank counter to −1, and thereafter, the signal The same procedure as [C1-1] to [C1-4] described above when using the MPU-type cam angle sensor is performed by the process that is started each time the 30 ° CA signal NE2 from the processing circuit rises (that is, Table 1). The value CNT of the crank counter is updated according to the rule of (2). still,
Also in this case, the value CNT of the crank counter is
The resolution indicates the cumulative rotation angle for two rotations of the crankshaft, which is 30 ° corresponding to the cycle of the 30 ° CA signal NE2, and takes a value from 0 to 23.

【0029】このため、図12の時刻t2に示すよう
に、スタータ信号STAがハイレベルになってから最初
の欠歯信号Kの発生タイミングで、気筒判別用信号Gが
ローレベルであったならば、その時点の120°CA後
である時刻t2’にて、信号処理回路からCPUへの基
準位置信号TDCがローレベルになると共に、第2気筒
判別用信号G2がハイレベルとなり、CPUでは、上記
[C1−3]の処理によりクランクカウンタの値CNT
が0に初期化される。
Therefore, as shown at time t2 in FIG. 12, if the cylinder discriminating signal G is at the low level at the first generation of the missing tooth signal K after the starter signal STA goes to the high level. At time t2 ', which is 120 ° CA after that time, the reference position signal TDC from the signal processing circuit to the CPU goes low and the second cylinder discrimination signal G2 goes high, and the CPU The value CNT of the crank counter is obtained by the processing of [C1-3].
Is initialized to 0.

【0030】そして以後、CPUにおいては、クランク
カウンタの値CNTが、信号処理回路からの30°CA
信号NE2が立ち上がる毎に0→1→2…とカウントア
ップされていき、時刻t3’に示す如く基準位置信号T
DC=ロー且つ第2気筒判別用信号G2=ローになった
時には、上記[C1−4]の処理により、クランクカウ
ンタの値CNTが、その時の現在値に応じて12又は0
(図12の例では12)に補正され、その後、時刻t
4’に示す如く、再び基準位置信号TDC=ロー且つ第
2気筒判別用信号G2=ハイになると、クランクカウン
タの値CNTは上記[C1−3]の処理により0に初期
化される。
Thereafter, in the CPU, the value CNT of the crank counter is set to 30 ° CA from the signal processing circuit.
Each time the signal NE2 rises, it is counted up from 0 → 1 → 2..., And as shown at time t3 ′, the reference position signal T
When DC = low and the second cylinder discrimination signal G2 = low, the value CNT of the crank counter is set to 12 or 0 according to the current value at that time by the above process [C1-4].
(12 in the example of FIG. 12), and thereafter, at time t
As shown at 4 ', when the reference position signal TDC becomes low and the second cylinder discrimination signal G2 becomes high again, the value CNT of the crank counter is initialized to 0 by the process of [C1-3].

【0031】その後は、図12の時刻t4’以降に示す
ように、時刻t2’〜時刻t4’と同様の動作が繰り返
される。そして、CPUは、MPU式のカム角センサを
用いた場合と同様に、クランクカウンタの値CNTの値
に基づいて、点火すべき気筒を判別する。
Thereafter, as shown at and after time t4 'in FIG. 12, the same operations as those from time t2' to time t4 'are repeated. Then, the CPU determines the cylinder to be ignited based on the value of the value CNT of the crank counter, as in the case where the MPU cam angle sensor is used.

【0032】[0032]

【発明が解決しようとする課題】ところで、図11,図
12を用いて説明した従来の各エンジン制御装置では、
エンジンの始動検知時から早期に気筒判別を行うことが
できないという欠点がある。
By the way, in each of the conventional engine control devices described with reference to FIGS.
There is a disadvantage that it is not possible to discriminate the cylinder early from the start of the engine.

【0033】つまり、スタータスイッチがオンされてス
タータ信号STAに立ち上がりが生じた後、クランク角
信号NEに最初に欠歯信号Kが発生しても、その時点か
ら基準位置信号TDCが立ち下がる120°CA後のタ
イミングまでは、クランクカウンタの値CNTが確定さ
れず、その分、クランクカウンタのカウント動作の開始
が遅れると共に、気筒判別の開始が遅れてしまう。
That is, after the starter switch is turned on and the starter signal STA rises, even if the missing tooth signal K is first generated in the crank angle signal NE, the reference position signal TDC falls from that point at 120 °. Until the timing after the CA, the value CNT of the crank counter is not determined, and accordingly, the start of the count operation of the crank counter is delayed and the start of the cylinder determination is delayed.

【0034】このため、従来のエンジン制御装置では、
エンジンの制御性(特に、始動制御の性能)を向上させ
るのに限界が生じていた。そこで、本発明は、エンジン
の始動検知時から早期に気筒判別を行うことができるエ
ンジン制御装置を提供することを目的としている。
Therefore, in the conventional engine control device,
There has been a limit in improving the controllability of the engine (particularly, the performance of the start control). Therefore, an object of the present invention is to provide an engine control device capable of performing the cylinder discrimination at an early stage from the time of detecting the start of the engine.

【0035】[0035]

【課題を解決するための手段及び発明の効果】上記目的
を達成するためになされた請求項1に記載の本発明のエ
ンジン制御装置には、エンジンのクランク軸の回転に応
じて第1の信号出力手段から出力されるクランク角信号
と、クランク軸の回転に対し1/2の比率で回転する回
転軸の回転に応じて第2の信号出力手段から出力される
気筒判別用信号とが入力される。
According to a first aspect of the present invention, there is provided an engine control apparatus according to the first aspect of the present invention, wherein a first signal according to rotation of a crankshaft of an engine is provided. A crank angle signal output from the output means and a cylinder discriminating signal output from the second signal output means according to the rotation of the rotating shaft rotating at a ratio of 1/2 with respect to the rotation of the crankshaft are input. You.

【0036】そして、第1の信号出力手段から出力され
るクランク角信号は、クランク軸の回転位置が予め設定
された1つの特定位置でない時には、クランク軸が所定
の単位角度回転する期間を1周期としたパルス信号とな
り、クランク軸の回転位置が前記特定位置に来た時に
は、クランク軸が前記単位角度よりも大きい所定角度回
転する期間を1周期とした欠歯信号となる。また、第2
の信号出力手段から出力される気筒判別用信号は、上記
クランク角信号がパルス信号となっている期間中に論理
レベルが変化することにより、クランク角信号が欠歯信
号となるタイミングでは、その各タイミング毎に交互に
異なった論理レベルとなる。
The crank angle signal output from the first signal output means includes a period in which the crankshaft rotates by a predetermined unit angle for one cycle when the rotational position of the crankshaft is not one specific preset position. When the rotation position of the crankshaft comes to the specific position, the pulse signal becomes a missing tooth signal in which a period during which the crankshaft rotates by a predetermined angle larger than the unit angle is one cycle. Also, the second
Cylinder discrimination signal output from the signal output means of the above, when the logic level changes during the period when the crank angle signal is a pulse signal, at the timing when the crank angle signal becomes a missing tooth signal, The logic level is alternately different for each timing.

【0037】また更に、本発明のエンジン制御装置は、
カウント値がクランク軸の2回転分の累積回転角度を示
すカウンタ(所謂クランクカウンタ)と、そのカウンタ
のカウント値を繰り返し周回させるカウント制御手段と
を備えている。そして、カウント制御手段は、エンジン
の始動を検知すると共に、該エンジンの始動を検知して
から最初にクランク角信号が欠歯信号になったことを検
出すると、カウンタのカウント値を、その時の気筒判別
用信号の論理レベル(即ち、エンジンの始動を検知して
から最初にクランク角信号が欠歯信号になったことを検
出した時に読み取った気筒判別用信号の論理レベルであ
り、以下、始動直後検出レベルという)に応じた所定の
計数開始値に初期設定する。
Furthermore, the engine control device of the present invention
A counter (so-called crank counter) whose count value indicates the cumulative rotation angle for two rotations of the crankshaft, and count control means for repeatedly circulating the count value of the counter are provided. The count control means detects the start of the engine, and when it detects that the crank angle signal first becomes a missing tooth signal after detecting the start of the engine, it counts the count value of the counter to the cylinder at that time. The logic level of the discrimination signal (that is, the logic level of the cylinder discrimination signal read when the crank angle signal is first detected as a missing tooth signal after the start of the engine is detected. (A detection level).

【0038】具体的には、請求項2に記載の如く、カウ
ント制御手段は、始動直後検出レベルがローレベルの場
合には、カウンタのカウント値を第1の計数開始値に初
期設定し、逆に、始動直後検出レベルがハイレベルの場
合には、カウンタのカウント値を、上記第1の計数開始
値とはクランク軸の1回転分(360°CA分)に相当
する値だけ異なった第2の計数開始値に初期設定する。
Specifically, when the detection level is low immediately after the start, the count control means initializes the count value of the counter to the first count start value, In the case where the detection level immediately after the start is high, the count value of the counter is changed from the first count start value by a value corresponding to one rotation of the crankshaft (360 ° CA). Initially set to the counting start value of

【0039】そして更に、カウント制御手段は、カウン
タのカウント値を計数開始値に初期設定した後は、カウ
ンタのカウント値を、上記クランク角信号に基づき更新
してクランク軸の2回転分に相当する値の範囲で周回さ
せる。具体的には、クランク角信号に基づいて、クラン
ク軸がカウンタのカウント値の分解能に相当する角度回
転したことを検出すると共に、その検出時毎に、カウン
タのカウント値をカウントアップ或いはカウントダウン
させる。
Further, after initially setting the count value of the counter to the count start value, the count control means updates the count value of the counter based on the crank angle signal and corresponds to two revolutions of the crankshaft. Loop around the value range. Specifically, based on the crank angle signal, it is detected that the crankshaft has rotated by an angle corresponding to the resolution of the count value of the counter, and the count value of the counter is incremented or decremented at each detection.

【0040】そして、本発明のエンジン制御装置は、上
記カウンタのカウント値に基づいてエンジンの気筒判別
を行うが、その気筒判別用の処理を、カウント制御手段
がカウンタのカウント値を計数開始値に初期設定した時
点(即ち、カウント制御手段によりエンジンの始動が検
知されて最初にクランク角信号が欠歯信号になった時)
から開始する。
The engine control device of the present invention determines the cylinder of the engine based on the count value of the counter. The process for determining the cylinder is performed by the count control means using the count value of the counter as the count start value. Initially set (ie, when the crank angle signal becomes the missing tooth signal for the first time after the start of the engine is detected by the count control means)
Start with.

【0041】つまり、第2の信号出力手段から出力され
る気筒判別用信号は、図12に例示した気筒判別用信号
Gと同様のものであり、クランク角信号が欠歯信号とな
る360°CA毎のタイミングでは、その各タイミング
毎に交互に異なった論理レベルとなるため、クランク角
信号が欠歯信号になった時の気筒判別用信号の論理レベ
ルを見れば、エンジンの1行程を1サイクルとしたクラ
ンク軸の回転位置(詳しくは回転角度位置であり、以
下、クランク角ともいう)を特定することができる。
That is, the cylinder discriminating signal output from the second signal output means is the same as the cylinder discriminating signal G illustrated in FIG. At each timing, the logic level is alternately different at each timing. Therefore, the logic level of the cylinder discrimination signal when the crank angle signal becomes the missing tooth signal indicates that one cycle of the engine takes one cycle. The rotation position of the crankshaft (specifically, a rotation angle position, hereinafter also referred to as a crank angle) can be specified.

【0042】そこで、本発明のエンジン制御装置では、
エンジンの始動を検知してから最初にクランク角信号が
欠歯信号になったことを検出した時(図12の時刻t2
に相当する時)に、その時の気筒判別用信号の論理レベ
ルに応じて、その論理レベルから特定されるクランク角
に応じた値を、カウンタに計数開始値としてセットし、
更に、そのセット時から、カウンタのカウント値に基づ
く気筒判別用の処理を行うようにしている。
Therefore, in the engine control device of the present invention,
When it is first detected that the crank angle signal has become the missing tooth signal after detecting the start of the engine (at time t2 in FIG. 12).
At a time corresponding to the logical level of the cylinder discriminating signal at that time, a value corresponding to the crank angle specified from the logical level is set in the counter as a count start value,
Further, from the time of the setting, the cylinder discriminating process based on the count value of the counter is performed.

【0043】このため、本発明のエンジン制御装置によ
れば、エンジンの始動を検知してから最初にクランク角
信号が欠歯信号となるタイミングから、カウンタのカウ
ント値を確定させて気筒判別を開始することができる。
よって、エンジンの始動を検知した時から従来装置より
も早期に気筒判別を行うことができ、その結果、エンジ
ンの制御性(特に、始動制御の性能)を向上させること
ができる。
Therefore, according to the engine control apparatus of the present invention, the count value of the counter is determined and the cylinder discrimination is started from the timing when the crank angle signal becomes the missing tooth signal after the start of the engine is detected. can do.
Therefore, the cylinder discrimination can be performed earlier than the conventional device from the time when the start of the engine is detected, and as a result, the controllability of the engine (particularly, the performance of the start control) can be improved.

【0044】ところで、この種のエンジン制御装置で
は、一般に、エンジンの各気筒に関する該各気筒毎の制
御処理を、本発明でのカウンタに相当するクランクカウ
ンタのカウント値に応じて択一的に切り替えて実行する
ように構成される。そして、この場合、何れかの気筒に
関する制御処理の実行期間から他の気筒に関する制御処
理の実行期間への切り替わりタイミングは、クランク角
信号が欠歯信号となるタイミング(以下、欠歯タイミン
グともいう)ではなく、その欠歯タイミングからクラン
ク軸が所定の一定角度だけ回転したタイミングを基準に
して設定されることが多い。
In this type of engine control device, generally, control processing for each cylinder of the engine is selectively switched according to the count value of a crank counter corresponding to the counter in the present invention. Configured to execute. In this case, the timing of switching from the execution period of the control process for one of the cylinders to the execution period of the control process for the other cylinder is the timing at which the crank angle signal becomes a missing tooth signal (hereinafter also referred to as missing tooth timing). Instead, it is often set based on the timing at which the crankshaft is rotated by a predetermined constant angle from the missing tooth timing.

【0045】また、本発明のエンジン制御装置において
も、図12を用いて説明した従来装置のように、クラン
ク角信号に基づき特定のクランク角になったことを検知
する毎に、カウンタのカウント値を、その特定のクラン
ク角に対応した正常値に設定するための正常化処理(前
述の初期化或いは補正処理に相当)を実施することが好
ましい。つまり、万一、カウンタのカウント値がノイズ
等の影響によって正常な値から外れても、それを正常値
へと戻せるからである。
Also, in the engine control apparatus of the present invention, as in the conventional apparatus described with reference to FIG. 12, every time that a specific crank angle is detected based on the crank angle signal, the count value of the counter is incremented. Is set to a normal value corresponding to the specific crank angle (corresponding to the above-described initialization or correction process). That is, even if the count value of the counter deviates from a normal value due to the influence of noise or the like, it can be returned to a normal value.

【0046】ここで、各気筒毎の制御処理をクランクカ
ウンタのカウント値に応じて択一的に切り替えて実行す
ると共に、その各制御処理の実行期間の切り替わりタイ
ミングが、欠歯タイミングとは異なるタイミングを基準
にして設定されている場合に、各欠歯タイミングで上記
正常化処理を行うように構成すると、クランクカウンタ
のカウント値がノイズ等の影響によってずれてしまった
場合に、各気筒毎の制御処理を正常に実行できなくなる
期間が比較的長くなってしまうという欠点がある。
Here, the control process for each cylinder is selectively switched and executed according to the count value of the crank counter, and the switching timing of the execution period of each control process is different from the missing tooth timing. When the normalization process is performed at each missing tooth timing when the reference value is set as a reference, when the count value of the crank counter is shifted due to the influence of noise or the like, the control for each cylinder is performed. There is a disadvantage that the period during which processing cannot be executed normally becomes relatively long.

【0047】具体例を挙げて説明すると、まず、例えば
図12を用いて説明したエンジン制御装置において、C
PUは、図13に示すように、クランクカウンタの値C
NTが0〜5の期間に、第1気筒#1の点火に関する学
習処理(例えば、各気筒毎に設けられたノックセンサの
うち、該当する気筒のノックセンサから信号を読み取っ
て、その気筒の点火時期の補正値等を学習演算する制御
処理)を実行し、クランクカウンタの値CNTが6〜1
1の期間に、第2気筒#2の点火に関する学習処理を実
行し、クランクカウンタの値CNTが12〜17の期間
に、第3気筒#3の点火に関する学習処理を実行し、ク
ランクカウンタの値CNTが18〜23の期間に、第4
気筒#4の点火に関する学習処理を実行するものとす
る。
A specific example will be described. First, for example, in the engine control device described with reference to FIG.
PU is a value of a crank counter C as shown in FIG.
During a period in which NT is 0 to 5, a learning process regarding ignition of the first cylinder # 1 (for example, a signal is read from a knock sensor of a corresponding cylinder among knock sensors provided for each cylinder, and ignition of the cylinder is performed) (A control process of learning and calculating the correction value of the timing, etc.), and the value CNT of the crank counter is 6 to 1
During the period of 1, the learning process relating to the ignition of the second cylinder # 2 is executed. During the period when the value CNT of the crank counter is 12 to 17, the learning process relating to the ignition of the third cylinder # 3 is executed, and the value of the crank counter is determined. During the period when CNT is 18-23,
It is assumed that a learning process regarding the ignition of the cylinder # 4 is executed.

【0048】つまり、この例では、各気筒毎の制御処理
の実行期間の切り替わりタイミングが、欠歯タイミング
から120°CA後のタイミング(基準位置信号TDC
がローレベルとなるタイミング)を基準にして設定され
ている。尚、図13は、図12の下段と同じ状況を表し
ている。
That is, in this example, the switching timing of the execution period of the control process for each cylinder is set to a timing 120 ° CA after the missing tooth timing (reference position signal TDC
Is set to a low level). FIG. 13 shows the same situation as the lower part of FIG.

【0049】ここで、この例において、図14に例示す
るように、図12の時刻t5に相当する欠歯タイミング
の時刻tnで、気筒判別用信号Gにローレベルのノイズ
が発生したとする。すると、その時刻tnから120°
CA後の基準位置信号TDCの立ち下がりりタイミング
では、前述した[S2−4]の作用により、第2気筒判
別用信号G2がハイレベルのままとなり、その結果、ク
ランクカウンタの値CNTが、前述した[C1−3]の
初期化により、誤って0に設定されてしまう。そして、
クランクカウンタの値CNTは、本来12,13,…,
23とカウントアップされるはずが、0,1,…11と
カウントアップされていき、基準位置信号TDCの次の
立ち下がりタイミングで、上記[C1−3]の初期化に
より、正しい値の0に戻されることとなる。
In this example, as illustrated in FIG. 14, it is assumed that low-level noise has occurred in the cylinder discrimination signal G at the time tn of the missing tooth timing corresponding to the time t5 in FIG. Then, 120 ° from the time tn
At the falling timing of the reference position signal TDC after the CA, the second cylinder discriminating signal G2 remains at the high level due to the operation of [S2-4] described above, and as a result, the value CNT of the crank counter becomes the aforementioned value CNT. Due to the initialization of [C1-3], it is erroneously set to 0. And
The value CNT of the crank counter is originally 12, 13,.
.. 11 should be counted up to 23, and at the next falling timing of the reference position signal TDC, the above [C1-3] is initialized to a correct value of 0. Will be returned.

【0050】よって、この場合には、図14の時刻tn
から120°CA後の基準位置信号TDCの立ち下がり
タイミングから、その基準位置信号TDCが次に立ち下
がるまでの360°CA分の期間(図14にて「誤学
習」と記した期間)であって、本来は第3気筒#3に関
する学習処理と第4気筒#4に関する学習処理とが順次
行われるべき期間に、第1気筒#1に関する学習処理と
第2気筒#2に関する学習処理とが誤って実施されるこ
ととなる。
Therefore, in this case, at time tn in FIG.
A period of 360 ° CA from the falling timing of the reference position signal TDC after 120 ° CA to the next fall of the reference position signal TDC (the period described as “erroneous learning” in FIG. 14). Therefore, during the period in which the learning process for the third cylinder # 3 and the learning process for the fourth cylinder # 4 should be performed sequentially, the learning process for the first cylinder # 1 and the learning process for the second cylinder # 2 are incorrect. Will be implemented.

【0051】一方、クランクカウンタの値CNTに対す
る正常化処理として、前述した[C1−3]の初期化及
び[C1−4]の補正処理に代えて、例えば、クランク
角信号NEが欠歯信号になったことを検出した時に、そ
の時の気筒判別用信号Gの論理レベルに応じて、その論
理レベルがローであったならば、クランクカウンタの値
CNTを強制的に20に設定し、逆に上記論理レベルが
ハイであったならば、クランクカウンタの値CNTを強
制的に8に設定する、といった処理を行うようにして
も、図13と同様の動作が得られる。
On the other hand, as a normalization process for the value CNT of the crank counter, instead of the above-described initialization process of [C1-3] and the correction process of [C1-4], for example, the crank angle signal NE is converted to the missing tooth signal. If the logical level is low in accordance with the logical level of the cylinder discriminating signal G at the time when this is detected, the value CNT of the crank counter is forcibly set to 20. If the logic level is high, the same operation as in FIG. 13 can be obtained by performing processing such as forcibly setting the value CNT of the crank counter to 8.

【0052】但し、このように構成した場合、図15に
例示するように、図12の時刻t5に相当する欠歯タイ
ミングの時刻tnで、気筒判別用信号Gにローレベルの
ノイズが発生したとすると、クランクカウンタの値CN
Tは、その時刻tnで誤って20に設定され、その後、
次の欠歯タイミングで20に設定されるまで、正常な値
から外れた状態でカウントアップされることとなる。
However, in the case of such a configuration, as shown in FIG. 15, it is assumed that low-level noise is generated in the cylinder discrimination signal G at the time tn of the missing tooth timing corresponding to the time t5 in FIG. Then, the value CN of the crank counter
T is erroneously set to 20 at that time tn, and then
Until the value is set to 20 at the next missing tooth timing, the count is incremented in a state of being out of the normal value.

【0053】そして、この場合には、図15の時刻tn
から次の欠歯タイミングまでの360°CA分の期間
(図15にて「誤学習」と記した期間)に、第4気筒#
4に関する学習処理と第1気筒#1に関する学習処理と
第2気筒#2に関する学習処理とが誤って実施されてし
まうだけでなく、時刻tnの直前に正常に実施されてい
た第2気筒#2に関する学習処理が中途半端に終了され
てしまうと共に、時刻tnの次の欠歯タイミングで第4
気筒#4に関する学習制御が中途半端に開始されてしま
う。
Then, in this case, at time tn in FIG.
During the period of 360 ° CA from the first tooth missing timing to the next missing tooth timing (the period described as “erroneous learning” in FIG. 15), the fourth cylinder #
The learning process for the first cylinder # 1, the learning process for the first cylinder # 1, and the learning process for the second cylinder # 2 are not only erroneously performed, but also the second cylinder # 2 that was normally performed immediately before the time tn. Learning process is terminated in a halfway, and the fourth tooth missing timing at time tn
The learning control for cylinder # 4 is started halfway.

【0054】つまり、通常時において、欠歯タイミング
毎にカウント値に対する正常化処理を実施するように構
成すると、図14と図15との比較からも分かるよう
に、各気筒毎の制御処理を適切に行うことができない期
間が長くなってしまうのである。
That is, in the normal state, if the normalization process is performed for the count value at each missing tooth timing, the control process for each cylinder is appropriately performed as can be seen from the comparison between FIG. 14 and FIG. That is, the period during which it cannot be performed becomes longer.

【0055】そこで、請求項1,2のエンジン制御装置
において、当該装置が、エンジンの各気筒に関する該各
気筒毎の制御処理を、前記カウンタのカウント値に応じ
て択一的に切り替えて実行するように構成されていると
共に、クランク角信号が欠歯信号になってからクランク
軸が所定の一定角度だけ回転した基準タイミングが、何
れかの気筒に関する制御処理を実行する期間から他の気
筒に関する制御処理を実行する期間への切り替わりタイ
ミングとなっている場合には、カウント制御手段を請求
項3に記載の如く構成することが好ましい。
Therefore, in the engine control apparatus according to the first and second aspects, the apparatus executes control processing for each cylinder of the engine by selectively switching the cylinder according to the count value of the counter. The reference timing at which the crankshaft is rotated by a predetermined fixed angle after the crank angle signal becomes the missing tooth signal is controlled from the period during which the control process for any one of the cylinders is executed. If it is time to switch to the period in which the process is executed, it is preferable that the count control means is configured as described in claim 3.

【0056】即ち、カウント制御手段は、カウンタのカ
ウント値を計数開始値に初期設定した後は、欠歯タイミ
ングではなく、クランク角信号に基づき前記基準タイミ
ング(クランク角信号が欠歯信号になってからクランク
軸が所定の一定角度だけ回転したタイミング)が到来し
たことを検知した時に、カウンタのカウント値を、その
基準タイミングに対応した正常値に設定するための正常
化処理を行うようにするのである。
That is, after the count control means initializes the count value of the counter to the count start value, the reference timing (when the crank angle signal becomes the missing tooth signal, the crank angle signal becomes (When the crankshaft rotates by a predetermined constant angle), the normalization process for setting the count value of the counter to a normal value corresponding to the reference timing is performed. is there.

【0057】そして、このように構成すれば、カウンタ
のカウント値がノイズ等の影響によって正常な値から外
れてしまった場合に、各気筒毎の制御処理の実行状態
(実行順序や実行期間)に与える影響を最小限に抑えつ
つ、そのカウンタのカウント値を正常値へと戻すことが
できるようになる。
With this configuration, when the count value of the counter deviates from a normal value due to the influence of noise or the like, the execution state (execution order and execution period) of the control process for each cylinder is changed. It is possible to return the count value of the counter to a normal value while minimizing the influence.

【0058】尚、正常化処理としては、前述した[C1
−3]のように、カウンタのカウント値を無条件に設定
するものでも良いし、前述した[C1−4]のように、
カウンタの値を、その現在値に応じて設定するものでも
良い。つまり、正常化処理は、カウンタのカウント値
を、通常のカウントとは別に、正常値と思われる値に設
定し直す処理であれば良い。
Note that the normalization processing is performed as described in [C1
-3], the count value of the counter may be set unconditionally, or as in [C1-4] described above,
The value of the counter may be set according to the current value. In other words, the normalization process may be any process that resets the count value of the counter to a value considered to be a normal value separately from the normal count.

【0059】[0059]

【発明の実施の形態】以下、本発明が適用された実施形
態のエンジン制御装置について、図面を用いて説明す
る。まず図1は、第1実施形態のエンジン制御装置(以
下、ECUという)10の構成を表す構成図である。
尚、このECU10は、例えば直列4気筒の4サイクル
エンジンを制御対象としており、4個の気筒に夫々対応
した燃料噴射弁11〜14及び点火コイル21〜24を
駆動してエンジンを制御する。そして、このECU10
は、前述した図12とほぼ同様の要領で気筒判別を行う
ものである。
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 an engine control device (hereinafter, referred to as an ECU) 10 according to the first embodiment.
The ECU 10 controls, for example, an in-line four-cylinder four-cycle engine, and controls the engine by driving the fuel injection valves 11 to 14 and the ignition coils 21 to 24 corresponding to the four cylinders, respectively. And this ECU 10
Performs cylinder discrimination in substantially the same manner as in FIG.

【0060】図1に示すように、ECU10は、エンジ
ンを制御するための各種処理を行うCPU(マイクロコ
ンピュータ)31と、入力バッファ33,35,37
と、A/D変換器39と、出力バッファ41と、信号処
理回路43とを備えている。そして、エンジンに取り付
けられたクランク角センサ47から出力されるクランク
角信号NEが、入力バッファ33を介して信号処理回路
43に入力され、また、エンジンに取り付けられたカム
角センサ49から出力される気筒判別用信号Gが、入力
バッファ35を介して信号処理回路43に入力される。
As shown in FIG. 1, the ECU 10 includes a CPU (microcomputer) 31 for performing various processes for controlling the engine, and input buffers 33, 35, and 37.
, An A / D converter 39, an output buffer 41, and a signal processing circuit 43. The crank angle signal NE output from the crank angle sensor 47 attached to the engine is input to the signal processing circuit 43 via the input buffer 33, and is output from the cam angle sensor 49 attached to the engine. The cylinder discrimination signal G is input to the signal processing circuit 43 via the input buffer 35.

【0061】ここで、クランク角センサ47は、第1の
信号出力手段に相当するものであり、エンジンのクラン
ク軸に固定されたロータ47aと、そのロータ47aの
外周に対向して設けられ、該ロータ47aの外周に10
°CAの間隔で形成された歯を検出してパルス信号を出
力する光電式やホールIC式の信号出力部47bとから
なる。そして、上記ロータ47aの外周には、歯が2個
欠損した欠歯部が設けられている。
Here, the crank angle sensor 47 corresponds to a first signal output means, and is provided 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.

【0062】このため、クランク角センサ47から入力
バッファ33を介して信号処理回路43に入力されるク
ランク角信号NEは、前述の図12に示したように、ク
ランク軸が10°回転する毎(10°CA毎)にローレ
ベル→ハイレベル→ローレベルといった具合にパルス状
に変化すると共に、クランク軸の回転位置が上記ロータ
47aの欠歯部に対応する1つの特定位置(即ち、ロー
タ47aの欠歯部が信号出力部47bに対向する位置)
に来た時には、立ち上がりの間隔が3倍長くなる。そし
て、10°CA毎にパルス状に変化する部分がパルス信
号となり、また、立ち上がりの間隔が3倍長くなる(即
ちパルス信号が2回欠落する)期間が360°CA毎に
発生して、この期間が欠歯信号Kとなっている(図2及
び図4参照)。
Therefore, as shown in FIG. 12, the crank angle signal NE input from the crank angle sensor 47 to the signal processing circuit 43 via the input buffer 33 is changed every time the crankshaft rotates 10 ° ( At 10 ° CA), the pulse changes in a pulse form such as low level → high level → low level, and the rotational position of the crankshaft is changed to one specific position corresponding to the missing tooth portion of the rotor 47a (that is, the position of the rotor 47a). (Position where the missing tooth part faces the signal output part 47b)
, The interval between rises is 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) occurs every 360 ° CA. The period is the missing tooth signal K (see FIGS. 2 and 4).

【0063】また、カム角センサ49は、第2の信号出
力手段に相当するものであり、クランク軸の回転に対し
1/2の比率で回転するエンジンのカム軸に固定された
ロータ49aと、そのロータ49aの回転に応じて、該
ロータ49aが1/2回転する毎(即ち360°CA
毎)に論理レベルが反転する気筒判別用信号Gを出力す
る磁気抵抗素子(MRE)を有した信号出力部49bと
からなる。
The cam angle sensor 49 corresponds to a second signal output 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 section 49b having a magnetoresistive element (MRE) for outputting a cylinder discriminating signal G whose logic level is inverted each time.

【0064】そして、カム角センサ49から入力バッフ
ァ35を介して信号処理回路43に入力される気筒判別
用信号Gは、前述の図12に示したように、クランク角
センサ47からパルス信号が出力されている期間中に論
理レベルが1回反転して、クランク角センサ47から上
記欠歯信号Kが出力されるタイミングでは、その各タイ
ミング毎に交互に異なった論理レベルとなる。
The cylinder discriminating signal G input from the cam angle sensor 49 to the signal processing circuit 43 via the input buffer 35 is a pulse signal output from the crank angle sensor 47 as shown in FIG. The logic level is inverted once during this period, and at the timing when the above-described missing tooth signal K is output from the crank angle sensor 47, the logic level becomes alternately different at each timing.

【0065】一方、ECU10内のCPU31には、エ
ンジンを始動させるためのスタータスイッチ51がオン
された時にハイレベルとなるスタータ信号STAや、ア
クセルペダルが全閉の時にオンされるアイドルスイッチ
53からの信号など、エンジンの運転状態を示す各種ス
イッチ信号が、入力バッファ37を介して入力される。
On the other hand, the CPU 31 in the ECU 10 receives 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.

【0066】そして更に、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.

【0067】また、信号処理回路43には、入力バッフ
ァ37からスタータ信号STAも入力されており、この
信号処理回路43は、そのスタータ信号STAと上記ク
ランク角信号NE及び気筒判別用信号Gとに基づいて、
後述する手順により、30°CA毎に立ち上がる第2パ
ルス信号としての30°CA信号NE2と、クランク軸
の回転位置が欠歯信号Kの発生する特定位置から120
°進んだ基準位置に来た時に30°CA分だけアクティ
ブレベル(本実施形態ではローレベル)となる基準位置
信号TDCと、その基準位置信号TDCがアクティブレ
ベルとなる毎にレベルが反転する第2気筒判別用信号G
2とを生成して、CPU31へ出力する。
The signal processing circuit 43 also receives a starter signal STA from the input buffer 37. The signal processing circuit 43 converts the starter signal STA into the starter signal STA, the crank angle signal NE and the cylinder discrimination signal G. On the basis of,
According to the procedure described later, the 30 ° CA signal NE2 as the second pulse signal rising every 30 ° CA and the rotational position of the crankshaft are set at 120 from the specific position where the missing tooth signal K is generated.
The reference position signal TDC which becomes the active level (low level in the present embodiment) by 30 ° CA when it comes to the advanced reference position, and the second level is inverted every time the reference position signal TDC becomes the active level. Cylinder identification signal G
2 is generated and output to the CPU 31.

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

【0069】次に、信号処理回路43は、クランク角セ
ンサ47から欠歯信号Kが出力されたこと(即ち、クラ
ンク角信号NEが欠歯信号Kになったこと)を検出する
欠歯検出部63と、この欠歯検出部63により上記欠歯
信号Kの発生が検出された時に、カム角センサ49から
の気筒判別用信号Gの論理レベルを読み取るレベル読取
部65と、クランク角信号NEから30°CA信号NE
2を生成する30°CA信号生成部67と、それら各部
63,65,67と連携して上記基準位置信号TDC及
び第2気筒判別用信号G2を生成する判別用信号生成部
69とを備えている。
Next, the signal processing circuit 43 detects a missing tooth signal K from the crank angle sensor 47 (that is, the missing tooth signal K from the crank angle signal NE). 63, a level reading unit 65 that reads the logical level of the cylinder discrimination signal G from the cam angle sensor 49 when the occurrence of the missing tooth signal K is detected by the missing tooth detection unit 63, and a crank angle signal NE. 30 ° CA signal NE
And a discriminating signal generating section 69 for generating the reference position signal TDC and the second cylinder discriminating signal G2 in cooperation with the respective sections 63, 65, 67. I have.

【0070】尚、前述したように、クランク角センサ4
7からは、クランク軸の回転に伴いロータ47aの欠歯
部が信号出力部47bに対向する位置に来た時に、欠歯
信号Kが出力されるため、本実施形態では、その欠歯信
号Kの検出を“欠歯検出”ともいっている。
As described above, the crank angle sensor 4
7, the missing tooth signal K is output when the missing tooth 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".

【0071】そして、欠歯検出部63は、スタータ信号
STAに立ち上がりが生じると(スタータスイッチがオ
ンされると)、エンジンが始動されたと判断して、以
後、図2に示す手順により、クランク角信号NE中にお
ける欠歯信号Kの検出を行う。即ち、図2に示すよう
に、まず欠歯検出部63は、クランク角信号NEがロー
レベルからハイレベルへと立ち上がる毎に、計時用のタ
イマ値T2を0にリセットすると共に、そのリセットす
る直前のタイマ値T2から、クランク角信号NEの最新
の立ち上がり間隔T1を計測している。そして更に、図
2における一点鎖線に示す如く、上記計測した立ち上が
り間隔T1をN倍して、欠歯信号検出用のしきい値時間
(N×T1)を設定する。
When the starter signal STA rises (when the starter switch is turned on), the missing tooth detecting section 63 determines that the engine has been started, and thereafter, according to the procedure shown in FIG. The missing tooth signal K in the signal NE is detected. That is, as shown in FIG. 2, each time the crank angle signal NE rises from a low level to a high level, the missing tooth detection unit 63 resets the timer value T2 for clocking to 0 and immediately before the resetting. From the timer value T2, the latest rising interval T1 of the crank angle signal NE is measured. Further, as shown by the one-dot chain line in FIG. 2, the rising interval T1 measured above is multiplied by N to set a threshold time (N × T1) for missing tooth signal detection.

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

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

【0074】尚、欠歯検出信号FKは、例えばクランク
角信号NEが次に立ち下がったタイミングで、ローレベ
ルに戻される。また、この欠歯検出信号FKのハイレベ
ルへの立ち上がりにより、レベル読取部65、30°C
A信号生成部67、及び判別用信号生成部69が、欠歯
信号Kの発生を知ることとなる。
The missing tooth detection signal FK is returned to a low level, for example, when the crank angle signal NE falls next. Further, the rising of the missing tooth detection signal FK to the high level causes the level reading section 65, 30 ° C.
The A signal generation section 67 and the discrimination signal generation section 69 will know the generation of the missing tooth signal K.

【0075】そして、レベル読取部65は、図2に示す
ように、上記欠歯検出信号FKが立ち上がると、そのタ
イミングで、カム角センサ49からの気筒判別用信号G
の論理レベルを読み取り、その読み取った気筒判別用信
号Gの論理レベル(以下、読取レベルともいう)Grを
記憶する。尚、この読取レベルGrは、後述するよう
に、判別用信号生成部69によって参照される。
Then, as shown in FIG. 2, when the missing tooth detection signal FK rises, the level reading section 65 outputs the cylinder discrimination signal G from the cam angle sensor 49 at that timing.
Is read, and the logical level (hereinafter, also referred to as a read level) Gr of the read cylinder determination signal G is stored. The reading level Gr is referred to by the determination signal generation unit 69, as described later.

【0076】次に、30°CA信号生成部67は、スタ
ータ信号STAがハイレベルになってから上記欠歯検出
信号FKが最初に立ち上がると、内部カウンタの値を0
にリセットして、以後、クランク角信号NEが立ち上が
る毎に図3のフローチャートで示す動作を行うことによ
り、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.
Thereafter, every time the crank angle signal NE rises, the operation shown in the flowchart of FIG. 3 is performed to generate the 30 ° CA signal NE2.

【0077】即ち、図3に示すように、30°CA信号
生成部67は、クランク角信号NEが立ち上がると、ま
ず、上記内部カウンタの値を1インクリメントし(S1
10)、次に、その内部カウンタの値が34になったか
否かを判定する(S120)。
That is, as shown in FIG. 3, when the crank angle signal NE rises, the 30 ° CA signal generation section 67 first increments the value of the internal counter by one (S1).
10) Then, it is determined whether or not the value of the internal counter has reached 34 (S120).

【0078】そして、内部カウンタの値が34になって
いなければ(S120:NO)、内部カウンタの値を3
で割った余りが1であるか否かを判定して(S13
0)、1であれば(S130:YES)、30°CA信
号NE2をハイレベルにする(S140)。また、内部
カウンタの値を3で割った余りが1でなければ(S13
0:NO)、内部カウンタの値を3で割った余りが0で
あるか否かを判定して(S150)、0であれば(S1
50:YES)、30°CA信号NE2をローレベルに
し(S160)、0でなければ(S150:NO)、3
0°CA信号NE2の論理レベルを変えることなく、ク
ランク角信号NEの次の立ち上がりを待つ。
If the value of the internal counter is not 34 (S120: NO), the value of the internal counter is set to 3
It is determined whether the remainder obtained by dividing by 1 is 1 (S13).
0) If 1 (S130: YES), the 30 ° CA signal NE2 is set to the high level (S140). The remainder obtained by dividing the value of the internal counter by 3 is not 1 (S13).
0: NO), it is determined whether the remainder obtained by dividing the value of the internal counter by 3 is 0 (S150), and if it is 0 (S1).
50: YES), the 30 ° CA signal NE2 is set to low level (S160), and if not 0 (S150: NO), 3
The CPU waits for the next rising of the crank angle signal NE without changing the logic level of the 0 ° CA signal NE2.

【0079】一方、内部カウンタの値が34になった場
合には(S120:YES)、その時点から一定時間後
に30°CA信号NE2がローレベルとなるように内部
タイマをセットすると共に(S170)、内部カウンタ
の値を0に戻し(S180)、更に、30°CA信号N
E2をハイレベルにする(S140)。このため、内部
カウンタの値が34から0に戻された場合、30°CA
信号NE2は、ローレベルからハイレベルになると共
に、上記内部タイマによる一定時間後にローレベルへ戻
ることとなる。
On the other hand, if 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 predetermined time by the internal timer.

【0080】つまり、30°CA信号生成部67は、図
4に示すように、欠歯信号Kの発生時を起点として、ク
ランク角信号NEが立ち上がる毎に、内部カウンタの値
を1ずつカウントアップさせると共に、その値が34に
なると0に戻すようにしている。そして更に、内部カウ
ンタの値が1〜33の場合には、その内部タイマの値を
3で割った余りが1と2の場合に30°CA信号NE2
をハイレベルにし、内部タイマの値を3で割った余りが
0の場合に30°CA信号NE2をローレベルにし、ま
た、内部カウンタの値を34から0に戻した時には、3
0°CA信号NE2を上記内部タイマによる一定時間だ
けハイレベルにするようにしている。
That is, as shown in FIG. 4, the 30 ° CA signal generator 67 counts up the value of the internal counter by one every time the crank angle signal NE rises, starting from the time when the missing tooth signal K is generated. In addition, when the value becomes 34, the value is returned to 0. Further, when the value of the internal counter is 1 to 33, the remainder of dividing the value of the internal timer by 3 is 1 or 2;
Is set to a high level, the 30 ° CA signal NE2 is set to a low level when the remainder obtained by dividing the value of the internal timer by 3 is 0, and when the value of the internal counter is returned from 34 to 0, 3
The 0 ° CA signal NE2 is set to a high level for a predetermined time by the internal timer.

【0081】そして、30°CA信号生成部67は、こ
うした動作により、クランク角信号NEを分周して、そ
のクランク角信号NEに同期し且つ30°CA毎に立ち
上がる30°CA信号NE2を生成している。次に、判
別用信号生成部69は、スタータ信号STAが立ち上が
ると、CPU31への基準位置信号TDCをハイレベル
に初期設定すると共に、CPU31への第2気筒判別用
信号G2をローレベルに初期設定する(図7,図8参
照)。
The 30 ° CA signal generation section 67 divides the frequency of the crank angle signal NE by the above operation, and generates a 30 ° CA signal NE2 which is synchronized with the crank angle signal NE and rises every 30 ° CA. are doing. Next, when the starter signal STA rises, the discrimination signal generator 69 initializes the reference position signal TDC to the CPU 31 to a high level and initializes the second cylinder discrimination signal G2 to the CPU 31 to a low level. (See FIGS. 7 and 8).

【0082】そして、判別用信号生成部69は、以後、
30°CA信号生成部67で生成される30°CA信号
NE2の立ち上がりタイミング毎に図5のフローチャー
トで示す処理を行うことにより、基準位置信号TDC及
び第2気筒判別用信号G2のレベルを変化させる。尚、
図5において、G(n) は、レベル読取部65によって今
回読み取られた気筒判別用信号Gの最新の読取レベルG
rを格納するための1ビットの記憶部である。
Then, the discriminating signal generating section 69 thereafter
The process shown in the flowchart of FIG. 5 is performed at each rising timing of the 30 ° CA signal NE2 generated by the 30 ° CA signal generation section 67, thereby changing the levels of the reference position signal TDC and the second cylinder discrimination signal G2. . still,
In FIG. 5, G (n) is the latest reading level G of the cylinder discrimination signal G read this time by the level reading unit 65.
This is a 1-bit storage unit for storing r.

【0083】図5に示すように、判別用信号生成部69
は、30°CA信号NE2が立ち上がると、まずS21
0にて、欠歯検出部63からの欠歯検出信号FKがハイ
レベルであるか否かを判定することにより、欠歯検出部
63によってクランク角信号NE中の欠歯信号Kが検出
された欠歯検出タイミングであるか否かを判断する。
As shown in FIG. 5, the discriminating signal generator 69
When the 30 ° CA signal NE2 rises, first, at S21
At 0, by determining whether the missing tooth detection signal FK from the missing tooth detection unit 63 is at a high level, the missing tooth signal K in the crank angle signal NE is detected by the missing tooth detection unit 63. It is determined whether or not it is the missing tooth detection timing.

【0084】ここで、欠歯検出タイミングであると判断
した場合には、今回30°CA信号NE2が立ち上がる
直前に、レベル読取部65によって気筒判別用信号Gの
論理レベルが読み取られているため、続くS220に
て、レベル読取部65により今回読み取られた気筒判別
用信号Gの読取レベルGrをG(n) に格納し、その後、
S230に進む。また、上記S210にて欠歯検出タイ
ミングではないと判断した場合には、そのままS230
に移行する。
If it is determined that the missing tooth detection timing is reached, the logic level of the cylinder discriminating signal G is read by the level reading section 65 immediately before the 30 ° CA signal NE2 rises this time. In subsequent S220, the read level Gr of the cylinder discrimination signal G read this time by the level reading section 65 is stored in G (n).
Proceed to S230. If it is determined in S210 that it is not the missing tooth detection timing, the process proceeds to S230.
Move to

【0085】次に、判別用信号生成部69は、S230
にて、スタータ信号STAが立ち上がってから30°C
A信号NE2が最初に立ち上がったタイミング(即ち、
スタータ信号STAに基づきエンジンの始動を検知して
から、欠歯検出部63により最初にクランク角信号NE
が欠歯信号Kになったと検出されたタイミング)である
か否かを判定し、肯定判定した場合には、クランク角信
号NE中に欠歯信号Kが最初に発生したエンジンの始動
直後であると判断して、S240に進む。そして、この
S240にて、CPU31への第2気筒判別用信号G2
の出力レベルを、G(n) 内の論理レベルに設定して、処
理を終了する。
Next, the discriminating signal generator 69 proceeds to S230
At 30 ° C after the starter signal STA rises
The timing when the A signal NE2 first rises (that is,
After detecting the start of the engine based on the starter signal STA, the missing tooth detecting section 63 first detects the crank angle signal NE.
Is determined to be the missing tooth signal K), and if the determination is affirmative, it is immediately after the start of the engine in which the missing tooth signal K first occurs in the crank angle signal NE. It proceeds to S240. Then, in this S240, the second cylinder discrimination signal G2
Is set to the logic level within G (n), and the process is terminated.

【0086】一方、判別用信号生成部69は、上記S2
30にて、エンジンの始動直後ではないと否定判定した
場合には、S250に移行して、基準位置信号TDCを
ローレベルにするタイミング(以下、TDC出力タイミ
ングという)であるか否かを判定する。尚、TDC出力
タイミングであるか否かは、上記S210で欠歯検出タ
イミングであると判断した時から、30°CA信号NE
2が4回立ち上がったタイミングであるか否かによって
判定する。
On the other hand, the discrimination signal generator 69
If a negative determination is made at 30 that it is not immediately after the start of the engine, the flow shifts to S250, where it is determined whether or not it is time to set the reference position signal TDC to a low level (hereinafter referred to as TDC output timing). . It should be noted that whether or not it is the TDC output timing is determined by the 30 ° CA signal NE from when it is determined in S210 that it is the missing tooth detection timing.
The determination is made based on whether or not 2 is the timing of rising four times.

【0087】そして、TDC出力タイミングではないと
判定した場合には、そのまま処理を終了するが、TDC
出力タイミングであると判定した場合には、S260に
進んで、CPU31への基準位置信号TDCを、30°
CA信号NE2が次に立ち上がるまでの間(即ち、次回
の処理開始時までの間)、ローレベルにする。そして更
に、続くS270にて、CPU31への第2気筒判別用
信号G2の出力レベルを、G(n) 内の論理レベルとは反
対のレベルに設定して、処理を終了する。
If it is determined that the timing is not the TDC output timing, the process is terminated as it is.
If it is determined that it is the output timing, the process proceeds to S260, where the reference position signal TDC to the CPU 31 is
It is kept at a low level until the CA signal NE2 rises next (that is, until the next processing start). Further, in the following S270, the output level of the second cylinder discriminating signal G2 to the CPU 31 is set to a level opposite to the logic level in G (n), and the process ends.

【0088】このような図5の処理により、基準位置信
号TDCの論理レベルは、クランク軸の回転位置が欠歯
信号Kの発生する特定位置から120°進んだ基準位置
に来た時に、30°CA分だけローレベルとなる。ま
た、第2気筒判別用信号G2の論理レベルは、スタータ
信号STAが立ち上がってからクランク角信号NE中に
欠歯信号Kが最初に発生すると、その時の気筒判別用信
号Gの論理レベルと同じレベルに設定され、それ以後
は、基準位置信号TDCがローレベルとなるタイミング
(以下、基準タイミングともいう)毎に、その基準タイ
ミングの直前の欠歯検出時に読み取った気筒判別用信号
Gの論理レベルとは反対のレベルに設定される。
By the processing shown in FIG. 5, the logical level of the reference position signal TDC becomes 30 ° when the rotational position of the crankshaft comes to the reference position 120 ° ahead of the specific position where the missing tooth signal K is generated. It becomes low level for CA. When the missing tooth signal K is first generated in the crank angle signal NE after the starter signal STA rises, the logic level of the second cylinder discrimination signal G2 is the same as the logic level of the cylinder discrimination signal G at that time. After that, each time the reference position signal TDC goes low (hereinafter also referred to as reference timing), the logical level of the cylinder discrimination signal G read at the time of detection of the missing tooth immediately before the reference timing is set to Is set to the opposite level.

【0089】つまり、信号処理回路43は、前述した
[S2−1]〜[S2−4]の動作に加えて、「スター
タ信号STAに基づきエンジンの始動を検知してから、
クランク角信号NEが欠歯信号Kになったことを最初に
検出した時に、第2気筒判別用信号G2を、その時に読
み取った気筒判別用信号Gの論理レベルと同じレベルに
設定する」という図5のS240の動作を追加して行う
ことにより、基準位置信号TDCと第2気筒判別用信号
G2とを生成してCPU31に出力している。
That is, in addition to the above-described operations of [S2-1] to [S2-4], the signal processing circuit 43 reads "start of the engine based on the starter signal STA.
When first detecting that the crank angle signal NE has become the missing tooth signal K, the second cylinder discrimination signal G2 is set to the same level as the logical level of the cylinder discrimination signal G read at that time. " By additionally performing the operation of S240 of No. 5, a reference position signal TDC and a second cylinder determination signal G2 are generated and output to the CPU 31.

【0090】このため、本実施形態のECU10におい
て、スタータ信号STAが立ち上がってから最初の欠歯
タイミング(クランク角信号NEが欠歯信号Kとなるタ
イミング)で、気筒判別用信号Gがローレベルならば、
図7の時刻t2のように、その時点で第2気筒判別用信
号G2がローレベルに設定され、また、スタータ信号S
TAが立ち上がってから最初の欠歯タイミングで、気筒
判別用信号Gがハイレベルならば、図8の時刻t2のよ
うに、その時点で第2気筒判別用信号G2がハイレベル
に設定されることとなる。尚、図7では、時刻t2で気
筒判別用信号Gがローレベルであるため、第2気筒判別
用信号G2は、基準位置信号TDCが最初に立ち下がる
時刻t2’までローレベルのままとなっている。
For this reason, in the ECU 10 of the present embodiment, if the cylinder discrimination signal G is at the low level at the first missing tooth timing (timing when the crank angle signal NE becomes the missing tooth signal K) after the starter signal STA rises, If
As at time t2 in FIG. 7, the second cylinder discriminating signal G2 is set to the low level at that time, and the starter signal S
If the cylinder discrimination signal G is at the high level at the first missing tooth timing after the rise of TA, the second cylinder discrimination signal G2 is set to the high level at that time, as at time t2 in FIG. Becomes In FIG. 7, since the cylinder discrimination signal G is at low level at time t2, the second cylinder discrimination signal G2 remains at low level until time t2 'when the reference position signal TDC first falls. I have.

【0091】一方、本第1実施形態のECU10におい
て、CPU31は、スタータ信号STAに立ち上がりが
生じると、エンジンが始動されたと判断して、内部のク
ランクカウンタの値(詳しくはカウント値)CNTを−
1に設定し、以後、信号処理回路43からの30°CA
信号NE2が立ち上がる毎に図6の処理を行って、クラ
ンクカウンタの値CNTを更新していく。
On the other hand, in the ECU 10 of the first embodiment, when the starter signal STA rises, the CPU 31 determines that the engine has been started, and changes the value (specifically, the count value) CNT of the internal crank counter to −.
1 and then 30 ° CA from the signal processing circuit 43.
Each time the signal NE2 rises, the processing of FIG. 6 is performed to update the value CNT of the crank counter.

【0092】尚、本実施形態において、クランクカウン
タは、実際には、CPU31のRAM(図示省略)にて
カウント値CNTを格納するために設定された記憶領域
である。そして、このクランクカウンタが、本発明にお
けるカウンタに相当している。また、本実施形態におい
ても、クランクカウンタの値CNTは、クランク軸の2
回転分の累積回転角度を、30°CA信号NE2の周期
に相当する30°を分解能として示すものであり、0か
ら23までの値となる。
In the present embodiment, the crank counter is actually a storage area set in the RAM (not shown) of the CPU 31 for storing the count value CNT. This crank counter corresponds to the counter in the present invention. Also in the present embodiment, the value CNT of the crank counter is equal to 2 of the crankshaft.
The cumulative rotation angle corresponding to the rotation is indicated by a resolution of 30 ° corresponding to the cycle of the 30 ° CA signal NE2, and is a value from 0 to 23.

【0093】図6に示すように、CPU31は、信号処
理回路43からの30°CA信号NE2が立ち上がる
と、まずS300にて、現在のクランクカウンタの値C
NTが0よりも小さいか否かを判定し、0よりも小さけ
れば(即ち−1ならば)、エンジンの始動時から最初の
欠歯タイミングであると判断して、S305に進む。
尚、この状態において、信号処理回路43からの基準位
置信号TDCはハイレベルになっている。
As shown in FIG. 6, when the 30 ° CA signal NE2 from the signal processing circuit 43 rises, the CPU 31 firstly proceeds to S300 to read the current crank counter value C.
It is determined whether or not NT is smaller than 0. If it is smaller than 0 (that is, if −1), it is determined that it is the first missing tooth timing from the start of the engine, and the process proceeds to S305.
In this state, the reference position signal TDC from the signal processing circuit 43 is at a high level.

【0094】そして、S305では、信号処理回路43
からの第2気筒判別用信号G2の論理レベルを読み取っ
て、その読み取った論理レベルがハイレベルであるか否
かを判定し、ハイレベルでなければ(即ちローレベルで
あれば)、S310に進んで、クランクカウンタの値C
NTを第の1計数開始値としての20に初期設定し、そ
の後、処理を終了する。また、上記S305にて、読み
取った第2気筒判別用信号G2の論理レベルがハイレベ
ルであると判定した場合には、S315に移行して、ク
ランクカウンタの値CNTを第2の計数開始値としての
8に初期設定し、その後、処理を終了する。尚、S30
5で読み取られる第2気筒判別用信号G2の論理レベル
は、前述した信号処理回路43の動作から明らかなよう
に、スタータ信号STAに基づきエンジンの始動が検知
されてから、最初に欠歯検出部63により欠歯信号Kの
発生が検出された時に、レベル読取部65により読み取
られた気筒判別用信号Gの論理レベル(始動直後検出レ
ベルに相当)である。
Then, in S305, the signal processing circuit 43
, The logical level of the second cylinder discriminating signal G2 is read, and it is determined whether or not the read logical level is a high level. If the logical level is not the high level (that is, if it is the low level), the process proceeds to S310. And the value of the crank counter C
NT is initially set to 20 as a first count start value, and the process is thereafter terminated. If it is determined in step S305 that the logical level of the read second cylinder determination signal G2 is high, the process proceeds to step S315, in which the value CNT of the crank counter is set as a second count start value. Is set to 8, and then the process is terminated. S30
The logical level of the second cylinder discriminating signal G2 read at 5 is, as is apparent from the operation of the signal processing circuit 43 described above, first after the start of the engine is detected based on the starter signal STA, and then the missing tooth detecting section is detected. This is the logical level of the cylinder discrimination signal G read by the level reading unit 65 when the occurrence of the missing tooth signal K is detected by 63 (corresponding to the detection level immediately after starting).

【0095】一方、上記S300にて、現在のクランク
カウンタの値CNTが0より小さくない(即ち0以上で
ある)と判定した場合には、S320に移行して、信号
処理回路43からの基準位置信号TDCがローレベルで
あるか否かを判定する。ここで、基準位置信号TDCが
ローレベルではない(即ちハイレベルである)と判定し
た場合には、欠歯タイミングから120°CAだけ進ん
だ基準タイミングではないことから、S325に進ん
で、クランクカウンタの値CNTを1つカウントアップ
し、続くS330にて、クランクカウンタの値CNTが
24以上になったか否かを判定する。そして、クランク
カウンタの値CNTが24以上であれば、続くS335
にて、クランクカウンタの値CNTを0に戻してから処
理を終了し、また、上記S330でクランクカウンタの
値CNTが24以上でないと判定した場合には、そのま
ま処理を終了する。
On the other hand, if it is determined in step S300 that the current value CNT of the crank counter is not smaller than 0 (that is, it is not smaller than 0), the flow shifts to step S320, and the reference position from the signal processing circuit 43 is determined. It is determined whether the signal TDC is at a low level. Here, when it is determined that the reference position signal TDC is not at the low level (that is, at the high level), it is not the reference timing advanced by 120 ° CA from the missing tooth timing. In step S330, it is determined whether the value CNT of the crank counter has reached 24 or more. If the value CNT of the crank counter is equal to or greater than 24, the process proceeds to S335.
Then, the process is terminated after returning the value CNT of the crank counter to 0, and when it is determined in S330 that the value CNT of the crank counter is not 24 or more, the process is terminated as it is.

【0096】また、上記S320にて、基準位置信号T
DCがローレベルであると判定した場合には、基準タイ
ミングであることから、S340に移行して、信号処理
回路43からの第2気筒判別用信号G2の論理レベルを
読み取る。そして、続くS345にて、上記S340で
今回読み取られた第2気筒判別用信号G2の論理レベル
G2(n) がローレベルであるか否かを判定し、ローレベ
ルではない(ハイレベルである)と判定した場合には、
S350に進んで、クランクカウンタの値CNTを強制
的に0へと初期化した後、処理を終了する。
At S320, the reference position signal T
If it is determined that DC is at the low level, the process proceeds to S340 because it is the reference timing, and the logic level of the second cylinder determination signal G2 from the signal processing circuit 43 is read. Then, in subsequent S345, it is determined whether or not the logic level G2 (n) of the second cylinder discrimination signal G2 read this time in S340 is low, and is not low (high). If it is determined that
Proceeding to S350, the value CNT of the crank counter is forcibly initialized to 0, and the process ends.

【0097】これに対し、S345にて、上記S340
で今回読み取られた論理レベルG2(n) がローレベルで
あると判定した場合には、S360に進み、クランクカ
ウンタの値CNTに対する以下のS360〜S370の
補正処理を行った後、処理を終了する。
On the other hand, at S345, at S340
If it is determined that the logical level G2 (n) read this time is the low level, the process proceeds to S360, where the following correction processing of S360 to S370 for the value CNT of the crank counter is performed, and then the processing is terminated. .

【0098】この補正処理では、まずS360にて、現
在のクランクカウンタの値CNT(現在値)が0〜23
の中間値である12以上か否かを判定し、現在値が12
よりも小さければ、S365にて、クランクカウンタの
値CNTを12にし、逆に現在値が12以上であれば、
S370にて、クランクカウンタの値CNTを0にす
る。
In this correction process, first, in step S360, the current value CNT (current value) of the crank counter is set to 0 to 23.
It is determined whether or not the current value is 12 or more, which is the intermediate value of
If the current value is smaller than 12, the crank counter value CNT is set to 12 at S365.
In S370, the value CNT of the crank counter is set to 0.

【0099】つまり、CPU31は、信号処理回路43
からの30°CA信号NE2が立ち上がる毎に、下記の
表2の規則でクランクカウンタの値CNTを更新してい
る。
That is, the CPU 31
Every time the 30 ° CA signal NE2 rises, the value CNT of the crank counter is updated according to the rules shown in Table 2 below.

【0100】[0100]

【表2】 [Table 2]

【0101】具体的には、S300,及びS320〜S
335の処理により、前述した[C1−2]と同じ[C
2−2]の処理を行い、S320,S340,S34
5,及びS350の処理により、前述した[C1−3]
と同じ[C2−3]の処理を行い、S320,S34
0,S345,及びS360〜S370処理により、前
述した[C1−4]と同じ[C2−4]の処理を行って
いる。尚、S330及びS335の処理は、クランクカ
ウンタの値CNTを必ず0〜23の値にするガード用の
処理である。
Specifically, S300 and S320-S
By the process of 335, [C1-2] which is the same as [C1-2] described above.
2-2], and perform S320, S340, and S34.
5, and S350, the above-mentioned [C1-3]
The same process as [C2-3] is performed, and S320, S34
By the processes 0, S345, and S360 to S370, the same [C2-4] as [C1-4] described above is performed. Note that the processes of S330 and S335 are processes for guard that always set the value CNT of the crank counter to a value of 0 to 23.

【0102】そして特に、本第1実施形態のCPU31
では、S300〜S315の処理により、前述した[C
1−1]の処理に代えて、表2にて「※」印を付した下
記の[C2−1]の始動時用処理を行っている。 [C2−1]:現在のクランクカウンタの値CNTが0
よりも小さければ(即ち、CNT=−1であり、この場
合には、信号処理回路43からの基準位置信号TDCが
常にハイレベルである)、エンジンの始動時から最初の
欠歯タイミングであると判断して、第2気筒判別用信号
G2の論理レベルを読み取り、その読み取った第2気筒
判別用信号G2の論理レベルがローレベルであれば、ク
ランクカウンタの値CNTを第1の計数開始値としての
20に初期設定し、逆に、第2気筒判別用信号G2の論
理レベルがハイレベルであれば、クランクカウンタの値
CNTを第2の計数開始値としての8に初期設定する。
In particular, the CPU 31 of the first embodiment
Then, by the processing of S300 to S315, [C
Instead of the processing of [1-1], the following startup processing of [C2-1] marked with “*” in Table 2 is performed. [C2-1]: The current value CNT of the crank counter is 0
If it is smaller than (ie, CNT = −1, in this case, the reference position signal TDC from the signal processing circuit 43 is always at a high level), it is the first missing tooth timing from the start of the engine. Then, the logic level of the second cylinder discrimination signal G2 is read, and if the read logic level of the second cylinder discrimination signal G2 is low, the value CNT of the crank counter is used as the first count start value. On the other hand, if the logic level of the second cylinder discrimination signal G2 is high, the value CNT of the crank counter is initialized to 8 as the second count start value.

【0103】尚、この[C2−1]の始動時用処理で初
期設定される計数開始値としての20と8は、欠歯タイ
ミングでのクランク角(エンジンの1行程を1サイクル
としたクランク角)に対応する値であり、クランク軸の
1回転分(360°CA分)に相当する値だけ互いに異
なった値である。このため、上記[C2−1]の処理に
よってクランクカウンタの値CNTの連続性が損なわれ
ることはない。
Incidentally, 20 and 8 as the count start values initially set in the process for starting at [C2-1] are crank angles at the timing of missing teeth (crank angle with one cycle of the engine as one cycle). ), Which are different from each other by a value corresponding to one rotation of the crankshaft (360 ° CA). Therefore, the continuity of the value CNT of the crank counter is not impaired by the process [C2-1].

【0104】このような第1実施形態のECU10にお
いては、例えば図7の時刻t2に示すように、スタータ
信号STAがハイレベルになってから最初の欠歯タイミ
ング(欠歯信号Kの発生タイミング)で、気筒判別用信
号Gがローレベルであったならば、信号処理回路43か
らCPU31への第2気筒判別用信号G2もローレベル
となるため、信号処理回路43による30°CA信号N
E2の出力開始に伴い、CPU31では、上記[C2−
1]の処理によりクランクカウンタの値CNTが20に
初期設定される。
In the ECU 10 of the first embodiment, for example, as shown at time t2 in FIG. 7, the first missing tooth timing (timing of generating the missing tooth signal K) after the starter signal STA becomes high level. If the signal G for cylinder discrimination is at a low level, the signal G2 for cylinder discrimination from the signal processing circuit 43 to the CPU 31 is also at a low level.
With the start of the output of E2, the CPU 31 sets the above [C2-
By the process [1], the value CNT of the crank counter is initialized to 20.

【0105】そして以後、CPU31においては、図7
に示すように、クランクカウンタの値CNTが、上記
[C2−2]の処理により、信号処理回路43からの3
0°CA信号NE2が立ち上がる毎に20→21→22
…とカウントアップされていき、時刻t2’に示す如く
基準位置信号TDC=ロー且つ第2気筒判別用信号G2
=ハイになった時には、上記[C2−3]の処理により
クランクカウンタの値CNTが0に初期化される。ま
た、時刻t3’に示す如く基準位置信号TDC=ロー且
つ第2気筒判別用信号G2=ローになった時には、上記
[C2−4]の処理により、クランクカウンタの値CN
Tが、その時の現在値に応じて12又は0(図7の時刻
t3’では12)に補正され、その後、時刻t4’に示
す如く、再び基準位置信号TDC=ロー且つ第2気筒判
別用信号G2=ハイになると、クランクカウンタの値C
NTは上記[C2−3]の処理により0に初期化され
る。以後は、図7の時刻t4’以降に示すように、時刻
t2’〜時刻t4’と同様の動作が繰り返されることに
より、クランクカウンタの値CNTが0〜23の範囲で
周回される。
Thereafter, in the CPU 31, FIG.
As shown in (3), the value CNT of the crank counter is changed from the signal processing circuit 43 by the process of [C2-2].
20 → 21 → 22 every time 0 ° CA signal NE2 rises
, And the reference position signal TDC = low and the second cylinder discrimination signal G2 as shown at time t2 '.
== High, the value CNT of the crank counter is initialized to 0 by the above process [C2-3]. Further, when the reference position signal TDC becomes low and the second cylinder discrimination signal G2 becomes low as shown at time t3 ', the value CN of the crank counter is obtained by the processing of [C2-4].
T is corrected to 12 or 0 (12 at time t3 ′ in FIG. 7) according to the current value at that time, and thereafter, as shown at time t4 ′, the reference position signal TDC = low and the second cylinder discrimination signal again When G2 = high, the value of the crank counter C
NT is initialized to 0 by the above process [C2-3]. Thereafter, as shown after time t4 'in FIG. 7, the same operation from time t2' to time t4 'is repeated, so that the value CNT of the crank counter circulates in the range of 0 to 23.

【0106】また例えば、図8の時刻t2に示すよう
に、スタータ信号STAがハイレベルになってから最初
の欠歯タイミングで、気筒判別用信号Gがハイレベルで
あったならば、信号処理回路43からCPU31への第
2気筒判別用信号G2もハイレベルとなるため、信号処
理回路43による30°CA信号NE2の出力開始に伴
い、CPU31では、上記[C2−1]の処理によりク
ランクカウンタの値CNTが8に初期設定される。
For example, as shown at time t2 in FIG. 8, if the cylinder discrimination signal G is at the high level at the first missing tooth timing after the starter signal STA has reached the high level, the signal processing circuit Since the second cylinder discrimination signal G2 from 43 to the CPU 31 also becomes high level, the CPU 31 starts the output of the 30 ° CA signal NE2 by the signal processing circuit 43, and the CPU 31 executes the process of [C2-1]. The value CNT is initialized to 8.

【0107】そして以後、CPU31においては、図8
に示すように、クランクカウンタの値CNTが、上記
[C2−2]の処理により、信号処理回路43からの3
0°CA信号NE2が立ち上がる毎に8→9→10…と
カウントアップされていき、時刻t2’に示す如く基準
位置信号TDC=ロー且つ第2気筒判別用信号G2=ロ
ーになった時には、上記[C2−4]の処理により、ク
ランクカウンタの値CNTが、その時の現在値に応じて
12又は0(図8の時刻t2’では12)に補正され
る。また、時刻t3’に示す如く基準位置信号TDC=
ロー且つ第2気筒判別用信号G2=ハイになった時に
は、上記[C2−3]の処理によりクランクカウンタの
値CNTが0に初期化され、その後、時刻t4’に示す
如く、再び基準位置信号TDC=ロー且つ第2気筒判別
用信号G2=ローになると、クランクカウンタの値CN
Tは上記[C2−4]の処理により、その時の現在値に
応じて12又は0(図8の時刻t4’では12)に補正
される。以後は、図8の時刻t4’以降に示すように、
時刻t2’〜時刻t4’と同様の動作が繰り返されるこ
とにより、クランクカウンタの値CNTが0〜23の範
囲で周回される。
Thereafter, in the CPU 31, FIG.
As shown in (3), the value CNT of the crank counter is changed from the signal processing circuit 43 by the process of [C2-2].
Each time the 0 ° CA signal NE2 rises, the count is incremented from 8 → 9 → 10... When the reference position signal TDC = low and the second cylinder discrimination signal G2 = low as shown at time t2 ′, the above-described operation is performed. By the process of [C2-4], the value CNT of the crank counter is corrected to 12 or 0 (12 at time t2 'in FIG. 8) according to the current value at that time. Also, as shown at time t3 ', the reference position signal TDC =
When the signal becomes low and the second cylinder discrimination signal G2 becomes high, the value CNT of the crank counter is initialized to 0 by the processing of [C2-3], and thereafter, as shown at time t4 ', the reference position signal CNT is returned again. When TDC = low and the second cylinder discrimination signal G2 = low, the value of the crank counter CN
T is corrected to 12 or 0 (12 at time t4 'in FIG. 8) according to the current value at that time by the process of [C2-4]. Thereafter, as shown after time t4 'in FIG.
By repeating the same operation from time t2 'to time t4', the value CNT of the crank counter circulates in the range of 0 to 23.

【0108】そして、CPU31は、このように周回さ
れるクランクカウンタの値CNTに基づいて、点火すべ
き気筒を判別するが、その気筒判別用の処理を、図6の
S310又はS315でクランクカウンタの値CNTを
20又は8に初期設定した時点(即ち、スタータ信号S
TAの立ち上がりによりエンジンの始動を検知した時か
ら最初の欠歯タイミング)から開始する。尚、この気筒
判別用処理では、「従来の技術」の欄で説明したような
要領で点火すべき気筒を判別する。例えば、CNT=0
の時に第1気筒#1のBTDC30°CAと判断し、C
NT=6の時に第2気筒#2のBTDC30°CAと判
断し、CNT=12の時に第3気筒#3のBTDC30
°CAと判断し、CNT=18の時に第4気筒#4のB
TDC30°CAと判断する。
Then, the CPU 31 determines the cylinder to be ignited based on the value CNT of the crank counter circulated in this way. The processing for determining the cylinder is carried out in S310 or S315 in FIG. When the value CNT is initialized to 20 or 8 (that is, the starter signal S
It starts from the first missing tooth timing from when the start of the engine is detected by the rise of TA. In this cylinder discriminating process, the cylinder to be ignited is discriminated in the manner described in the section of "Prior Art". For example, CNT = 0
BTDC of the first cylinder # 1 is determined to be 30 ° CA at
When NT = 6, the BTDC of the second cylinder # 2 is determined to be 30 ° CA, and when CNT = 12, the BTDC 30 of the third cylinder # 3 is determined.
° CA, and when CNT = 18, B of the fourth cylinder # 4
It is determined that TDC is 30 ° CA.

【0109】そして更に、CPU31は、各気筒毎の制
御処理として、図13を用いて説明した従来例と同様
に、クランクカウンタの値CNTが0〜5の期間に、第
1気筒#1の点火に関する学習処理(本実施形態では、
各気筒毎に設けられたノックセンサのうち、該当する気
筒のノックセンサから信号を読み取って、その気筒の点
火時期の補正値等を学習演算する制御処理)を実行し、
クランクカウンタの値CNTが6〜11の期間に、第2
気筒#2の点火に関する学習処理を実行し、クランクカ
ウンタの値CNTが12〜17の期間に、第3気筒#3
の点火に関する学習処理を実行し、クランクカウンタの
値CNTが18〜23の期間に、第4気筒#4の点火に
関する学習処理を実行している。つまり、ECU10で
は、各気筒毎の制御処理の実行期間の切り替わりタイミ
ングが、欠歯タイミングでははく、欠歯タイミングから
120°CA後のタイミング(基準位置信号TDCがロ
ーレベルとなる基準タイミング)を基準にして設定され
ている。
Further, as a control process for each cylinder, the CPU 31 ignites the first cylinder # 1 during the period in which the value CNT of the crank counter is 0 to 5 as in the conventional example described with reference to FIG. Learning process (in this embodiment,
Among the knock sensors provided for each cylinder, a signal is read from the knock sensor of the corresponding cylinder, and a control process of learning and calculating a correction value or the like of the ignition timing of the cylinder is executed.
During the period when the value CNT of the crank counter is 6 to 11, the second
A learning process regarding the ignition of the cylinder # 2 is executed, and during the period in which the value CNT of the crank counter is 12 to 17, the third cylinder # 3
The learning process relating to the ignition of the fourth cylinder # 4 is performed during the period in which the value CNT of the crank counter is 18 to 23. That is, in the ECU 10, the switching timing of the execution period of the control process for each cylinder is not the toothless timing, but the timing after 120 ° CA from the toothless timing (the reference timing when the reference position signal TDC becomes low level). Set as a reference.

【0110】以上のような本実施形態のECU10で
は、カム角センサ49からの気筒判別用信号Gが各欠歯
タイミング毎に交互に異なった論理レベルとなり、その
欠歯タイミングでの気筒判別用信号Gの論理レベルを見
ればエンジンの1行程を1サイクルとしたクランク角を
特定することができる、という点に着目して、スタータ
信号STAの立ち上がりによりエンジンの始動を検知し
てから、最初にクランク角信号NEが欠歯信号Kになっ
たことを検出した時(図7,8の時刻t2に相当する
時)に、その時の気筒判別用信号Gの論理レベルから特
定されるクランク角に対応した計数開始値(本実施形態
では20又は8)をクランクカウンタにセットし、更
に、そのセット時から、クランクカウンタのカウント値
CNTに基づく気筒判別用処理を開始するようにしてい
る。
In the above-described ECU 10 of the present embodiment, the cylinder discrimination signal G from the cam angle sensor 49 has a different logic level at each missing tooth timing, and the cylinder discrimination signal at the missing tooth timing is provided. Paying attention to the fact that it is possible to specify the crank angle with one cycle of the engine as one cycle by looking at the logical level of G, and after detecting the start of the engine by the rise of the starter signal STA, When it is detected that the angle signal NE has become the missing tooth signal K (corresponding to the time t2 in FIGS. 7 and 8), the crank angle corresponding to the crank angle specified from the logical level of the cylinder determination signal G at that time is detected. The count start value (20 or 8 in the present embodiment) is set in the crank counter, and from the time of setting, the cylinder discrimination based on the count value CNT of the crank counter is performed. So that to start the process.

【0111】このため、本実施形態のECU10によれ
ば、スタータ信号STAの立ち上がりによりエンジンの
始動を検知してから最初の欠歯タイミングで、クランク
カウンタの値CNTを確定させて、その時点から気筒判
別を開始することができる。よって、エンジンの始動を
検知した時から従来装置よりも早期に気筒判別を行うこ
とができ、エンジンの制御性(特に、始動制御の性能)
を向上させることができる。
Therefore, according to the ECU 10 of the present embodiment, the value CNT of the crank counter is determined at the first missing tooth timing after the start of the engine is detected by the rise of the starter signal STA, and the cylinder CNT is determined from that time. The determination can be started. Therefore, the cylinder discrimination can be performed earlier than the conventional device from the time when the start of the engine is detected, and the controllability of the engine (particularly, the performance of the start control).
Can be improved.

【0112】また更に、本実施形態のECU10では、
各気筒毎の制御処理の実行期間の切り替わりタイミング
が、欠歯タイミングでははく、欠歯タイミングから12
0°CA後の基準タイミングを基準にして設定されてい
るため、図6のS310又はS315により、クランク
カウンタの値CNTを20又は8の計数開始値に初期設
定した後は、クランクカウンタの値CNTを正常値に設
定するための正常化処理(本実施形態では、上記[C2
−3]の初期化と上記[C2−4]の補正処理)を、欠
歯タイミングではなく、クランク角信号NEに基づき上
記基準タイミングが到来したことを検知した時毎に行う
ようにしている。
Further, in the ECU 10 of the present embodiment,
The switching timing of the execution period of the control process for each cylinder is not the toothless timing, but is 12
Since the value is set based on the reference timing after 0 ° CA, the value CNT of the crank counter is initially set to 20 or 8 in S310 or S315 in FIG. (In the present embodiment, the above [C2
The initialization of [-3] and the correction processing of [C2-4]) are performed not when the missing tooth is detected but every time when the reference timing is detected based on the crank angle signal NE.

【0113】このため、クランクカウンタの値CNTが
ノイズ等の影響によって正常な値から外れてしまった場
合には、図15を用いて説明したような中途半端な制御
処理が発生してしまうことを防止でき、各気筒毎の制御
処理の実行状態(実行順序や実行期間)に与える影響を
前述した図14の如く最小限に抑えつつ、クランクカウ
ンタの値CNTを正常値へと戻すことができるようにな
る。
For this reason, if the value CNT of the crank counter deviates from a normal value due to the influence of noise or the like, the incomplete control processing described with reference to FIG. 15 may occur. It is possible to return the crank counter value CNT to a normal value while minimizing the influence on the execution state (execution order and execution period) of the control processing for each cylinder as shown in FIG. become.

【0114】尚、本第1実施形態では、CPU31が、
図6の処理により、信号処理回路43からの30°CA
信号NE2と第2気筒判別用信号G2とに基づいて、ク
ランクカウンタの値CNTの設定と更新とを実施してい
るが、30°CA信号NE2と第2気筒判別用信号G2
は、クランク角信号NEと気筒判別用信号Gとから生成
される信号であるため、結局、クランクカウンタの値C
NTの設定と更新は、クランク角信号NEと気筒判別用
信号Gとに基づいて行われていることになる。そして、
本第1実施形態では、信号処理回路43とCPU31
(特に図6の処理を行う部分)とが、カウント制御手段
に相当している。
Note that in the first embodiment, the CPU 31
By the processing of FIG. 6, 30 ° CA from the signal processing circuit 43 is output.
Although the setting and updating of the value CNT of the crank counter are performed based on the signal NE2 and the second cylinder discriminating signal G2, the 30 ° CA signal NE2 and the second cylinder discriminating signal G2 are used.
Is a signal generated from the crank angle signal NE and the cylinder discriminating signal G.
The setting and updating of NT are performed based on the crank angle signal NE and the cylinder discrimination signal G. And
In the first embodiment, the signal processing circuit 43 and the CPU 31
(Particularly, the part that performs the processing of FIG. 6) corresponds to the count control means.

【0115】次に、第2実施形態のエンジン制御装置
(ECU)について説明する。尚、本第2実施形態のE
CUも、図1に示した第1実施形態のECU10と同様
の構成要素からなるため、ここでは、それら構成要素及
び各信号について、第1実施形態の場合と同じ符号を用
いる。
Next, an engine control unit (ECU) according to a second embodiment will be described. It should be noted that E of the second embodiment
The CU also includes the same components as those of the ECU 10 of the first embodiment shown in FIG. 1, and therefore, the same reference numerals as those in the first embodiment are used here for those components and each signal.

【0116】本第2実施形態のECU10は、前述した
第1実施形態と比較して、CPU31が、信号処理回路
43からの30°CA信号NE2が立ち上がる毎に、図
6の処理に代えて図9の処理を行う、という点だけが異
なっている。そして、図9の処理では、図6の処理と比
較すると、S360とS370の処理が削除されてい
る。具体的に説明すると、CPU31は、S345に
て、S340で今回読み取られた第2気筒判別用信号G
2の論理レベルG2(n) がローレベルであると判定する
と、そのままS365に移行して、クランクカウンタの
値CNTを強制的に12へと初期化する。尚、図9にお
いて、他の部分については、図6と同じステップ番号を
付しているため、説明を省略する。
The ECU 10 of the second embodiment differs from the first embodiment in that the CPU 31 replaces the processing of FIG. 6 each time the 30 ° CA signal NE2 from the signal processing circuit 43 rises. The only difference is that the process of No. 9 is performed. Then, in the processing of FIG. 9, compared with the processing of FIG. 6, the processing of S360 and S370 is deleted. More specifically, the CPU 31 determines in S345 that the second cylinder discrimination signal G that has been read this time in S340.
If it is determined that the logical level G2 (n) of 2 is low level, the process directly proceeds to S365 and the value CNT of the crank counter is forcibly initialized to 12. In FIG. 9, the other steps have the same step numbers as in FIG.

【0117】つまり、本第2実施形態において、CPU
31は、下記の表3における「初期化」の欄に示す如
く、信号処理回路43からの基準位置信号TDCがロー
レベルとなった時に、第2気筒判別用信号G2がハイレ
ベルならばクランクカウンタの値CNTを強制的に0へ
と初期化し(S345:NO,S350)、逆に第2気
筒判別用信号G2がローレベルならばクランクカウンタ
の値CNTを強制的に12へと初期化するようにしてい
る(S345:YES,S365)。
That is, in the second embodiment, the CPU
31 is a crank counter if the second cylinder discrimination signal G2 is at a high level when the reference position signal TDC from the signal processing circuit 43 is at a low level, as shown in the column of "Initialization" in Table 3 below. Is forcibly initialized to 0 (S345: NO, S350). Conversely, if the second cylinder discrimination signal G2 is at a low level, the value CNT of the crank counter is forcibly initialized to 12. (S345: YES, S365).

【0118】[0118]

【表3】 [Table 3]

【0119】そして、このような本第2実施形態のEC
U10によっても、前述した第1実施形態のECU10
と同じ効果を得ることができる。また、本第2実施形態
のECU10によれば、クランクカウンタの値CNTが
ノイズ等の影響で正常値から外れた場合には、最悪でも
360°CA分の期間内に、そのクランクカウンタの値
CNTを正常値へと確実に戻すことができ、有利であ
る。これは、図7の時刻t3’,t5’,t7’,…に
相当する各タイミング、或いは、図8のt2’,t
4’,t6’,…に相当する各タイミングにて、クラン
クカウンタの値CNTが、それの現在値に拘わらず、1
2へと強制的に初期化されるようになるからである。
Then, the EC according to the second embodiment is used.
The ECU 10 of the above-described first embodiment is also used by U10.
The same effect can be obtained. Also, according to the ECU 10 of the second embodiment, when the value CNT of the crank counter deviates from the normal value due to the influence of noise or the like, the value CNT of the crank counter CNT is at most within a period of 360 ° CA. Can be reliably returned to a normal value, which is advantageous. This corresponds to the timings corresponding to times t3 ', t5', t7 ',... In FIG. 7 or t2', t7 in FIG.
At each timing corresponding to 4 ′, t6 ′,..., Regardless of the current value of the crank counter,
This is because the initialization is forced to 2.

【0120】尚、本第2実施形態においても、信号処理
回路43とCPU31(特に図9の処理を行う部分)と
が、カウント制御手段に相当している。以上、本発明の
一実施形態について説明したが、本発明は、種々の形態
を採り得ることは言うまでもない。
Note that, also in the second embodiment, the signal processing circuit 43 and the CPU 31 (particularly, a portion for performing the processing in FIG. 9) correspond to the count control means. As mentioned above, although one Embodiment of this invention was described, it cannot be overemphasized that this invention can take various forms.

【0121】例えば、本発明は、電磁ピックアップ(M
PU)式のカム角センサを用いた場合の図11に例示し
た判定区間HKの考え方を残したまま、適用することも
できる。具体的には、エンジンの始動を検知してから最
初に欠歯信号Kを検出した時に、クランクカウンタの値
CNTを、その時の気筒判別用信号Gの論理レベルに応
じた計数開始値(20又は8)に初期設定し、その後
は、図11の場合と同様に、欠歯タイミングから120
°CA後の基準タイミングが到来する毎に、欠歯タイミ
ングからその基準タイミングまでの判定区間HK内で気
筒判別用信号Gが立ち上がったか否かに応じて、気筒判
別用信号Gが立ち上がった場合には、クランクカウンタ
の値CNTを強制的に0へと初期化し、気筒判別用信号
Gが立ち上がらなかった場合には、クランクカウンタの
値CNTを現在値に従い12又は0にする補正処理を行
うようにしても良い。
For example, the present invention relates to an electromagnetic pickup (M
PU) -type cam angle sensor can be applied while retaining the concept of the determination section HK illustrated in FIG. 11 when the cam angle sensor is used. Specifically, when the missing tooth signal K is first detected after the start of the engine is detected, the value CNT of the crank counter is changed to a count start value (20 or 20) corresponding to the logical level of the cylinder determination signal G at that time. 8), and thereafter, as in the case of FIG.
Each time the reference timing after the CA arrives, the cylinder determination signal G rises depending on whether the cylinder determination signal G rises within the determination section HK from the missing tooth timing to the reference timing. Is to forcibly initialize the value CNT of the crank counter to 0, and perform a correction process of setting the value CNT of the crank counter to 12 or 0 according to the current value if the cylinder discrimination signal G does not rise. May be.

【0122】また、上記各実施形態では、欠歯信号Kの
発生から基準位置信号TDCがアクティブレベルとなる
までの期間が、120°CA分の期間であるものを例に
挙げたが、その期間は、120°CA以外のクランク角
度に相当する期間でも良い。また更に、上記各実施形態
では、制御対象が4気筒エンジンである場合を例に挙げ
たが、それに限るものではなく、例えば6気筒エンジン
や8気筒エンジンでも良い。
In each of the above embodiments, the period from the generation of the missing tooth signal K until the reference position signal TDC becomes the active level is a period of 120 ° CA. May be a period corresponding to a crank angle other than 120 ° CA. Furthermore, in each of the above embodiments, the case where the control target is a four-cylinder engine has been described as an example. However, the present invention is not limited to this. For example, a six-cylinder engine or an eight-cylinder engine may be used.

【0123】一方、上記各実施形態では、カム角センサ
49から出力される気筒判別用信号Gが、360°CA
毎に1回だけレベル反転するものであったが、気筒判別
用信号Gは、クランク角センサ47から欠歯信号Kが出
力される各タイミング毎に交互に異なった論理レベルと
なっていれば良く、クランク角センサ47からパルス信
号が出力されている期間中に複数回レベル反転する信号
であっても良い。
On the other hand, in each of the above embodiments, the cylinder discriminating signal G output from the cam angle sensor 49 is 360 ° CA
Although the level is inverted only once every time, the cylinder discriminating signal G only needs to have a different logic level alternately at each timing when the missing tooth signal K is output from the crank angle sensor 47. Alternatively, 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 may be used.

【0124】また、信号処理回路43において、レベル
読取部65は、欠歯検出部63からの欠歯検出信号FK
が立ち上がってからクランク角信号NEが最初に立ち上
がったタイミング、即ち図2の時刻tbにて、気筒判別
用信号Gの論理レベルを読み取るように構成しても良
い。
In the signal processing circuit 43, the level reading section 65 outputs the missing tooth detection signal FK from the missing tooth detecting section 63.
The logical level of the cylinder discrimination signal G may be read at the timing when the crank angle signal NE first rises after the rise of the cylinder angle signal NE, that is, at time tb in FIG.

【0125】また更に、上記各実施形態のECU10で
は、スタータ信号STAの立ち上がりによってエンジン
の始動を検知するようにしたが、エンジンの始動は、ス
タータ信号STA以外の情報から検知するように構成し
ても良い。例えば、クランク角信号NEの周期から求め
られるエンジン回転数が所定の始動判定値を上回った時
に、エンジンが始動されたと判定することができる。そ
して、この例の場合、より具体的には、信号処理回路4
3が、クランク角信号NEの周期からエンジンの始動を
検知すると、前述の各実施形態にてスタータ信号STA
が立ち上がった時と同様に、最初から動作すると共に、
エンジンの始動を示す指示信号をCPU31へ出力し、
CPU31は、その信号処理回路43からの指示信号を
受けると、クランクカウンタの値CNTを−1に設定し
て、以後は、信号処理回路43からの30°CA信号N
E2が立ち上がる毎に図6又は図9の処理を行えば良
い。
Further, in the ECU 10 of each of the above embodiments, the start of the engine is detected by the rise of the starter signal STA. However, the start of the engine is detected from information other than the starter signal STA. Is also good. For example, when the engine speed obtained from the cycle of the crank angle signal NE exceeds a predetermined start determination value, it can be determined that the engine has been started. In the case of this example, more specifically, the signal processing circuit 4
3 detects the start of the engine from the cycle of the crank angle signal NE, the starter signal STA in each of the above-described embodiments.
Works from the beginning, just like when
An instruction signal indicating the start of the engine is output to the CPU 31,
When receiving the instruction signal from the signal processing circuit 43, the CPU 31 sets the value CNT of the crank counter to −1 and thereafter sets the 30 ° CA signal N from the signal processing circuit 43.
The processing of FIG. 6 or 9 may be performed every time E2 rises.

【0126】また、上記各実施形態では、クランクカウ
ンタの値CNTをカウントアップさせたが、クランクカ
ウンタの値CNTをカウントダウンさせるようにしても
良い。また更に、クランクカウンタの値CNTを周回さ
せる範囲は、0〜23に限るものではなく、例えば5〜
28や10〜33等、適宜設定することができる。そし
て、計数開始値も、20と8に限るものではなく、クラ
ンクカウンタの値CNTを周回させる範囲等に応じて適
宜決定すれば良い。
In each of the above embodiments, the value CNT of the crank counter is counted up, but the value CNT of the crank counter may be counted down. Further, the range in which the value CNT of the crank counter circulates is not limited to 0 to 23, but may be, for example, 5 to 23.
28, 10 to 33, etc., can be set as appropriate. Also, the count start value is not limited to 20 and 8, and may be appropriately determined according to a range around the value CNT of the crank counter.

【図面の簡単な説明】[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 operations of a missing tooth detection unit and a level reading unit in the signal processing circuit according to the first embodiment.

【図3】 第1実施形態の信号処理回路における30°
CA信号生成部の動作を表すフローチャートである。
FIG. 3 is a view illustrating a configuration of 30 ° in the signal processing circuit according to the first embodiment.
5 is a flowchart illustrating an operation of a CA signal generation unit.

【図4】 第1実施形態の信号処理回路における30°
CA信号生成部の動作を表すタイムチャートである。
FIG. 4 shows a diagram illustrating a 30 ° angle in the signal processing circuit according to the first embodiment.
5 is a time chart illustrating an operation of a CA signal generation unit.

【図5】 第1実施形態の信号処理回路における判別用
信号生成部の動作を表すフローチャートである。
FIG. 5 is a flowchart illustrating an operation of a determination signal generation unit in the signal processing circuit according to the first embodiment.

【図6】 第1実施形態のCPUで実行される処理を表
すフローチャートである。
FIG. 6 is a flowchart illustrating a process executed by a CPU according to the first embodiment.

【図7】 第1実施形態の作用を説明するタイムチャー
トの、その1である。
FIG. 7 is a first time chart illustrating the operation of the first embodiment;

【図8】 第1実施形態の作用を説明するタイムチャー
トの、その2である。
FIG. 8 is a second time chart illustrating the operation of the first embodiment;

【図9】 第2実施形態のCPUで実行される処理を表
すフローチャートである。
FIG. 9 is a flowchart illustrating a process executed by a CPU according to the second embodiment.

【図10】 エンジン制御装置の一般的なハードウエア
構成を表すブロック図である。
FIG. 10 is a block diagram illustrating a general hardware configuration of an engine control device.

【図11】 電磁ピックアップ(MPU)式のカム角セ
ンサを用いた従来のエンジン制御装置で行われる気筒判
別用の動作を表すタイムチャートである。
FIG. 11 is a time chart showing a cylinder discriminating operation performed by a conventional engine control device using an electromagnetic pickup (MPU) type cam angle sensor.

【図12】 磁気抵抗素子(MRE)式のカム角センサ
を用いた従来のエンジン制御装置で行われる気筒判別用
の動作を表すタイムチャートである。
FIG. 12 is a time chart showing a cylinder discriminating operation performed by a conventional engine control device using a magnetoresistive element (MRE) type cam angle sensor.

【図13】 各気筒毎の制御処理の実行順序及び実行期
間の一例を説明する説明図である。
FIG. 13 is an explanatory diagram illustrating an example of an execution order and an execution period of a control process for each cylinder.

【図14】 クランクカウンタのカウント値に対する正
常化処理を欠歯タイミング毎に実施した場合の問題を説
明するための図の、その1である。
FIG. 14 is a first diagram illustrating a problem that occurs when the normalization process for the count value of the crank counter is performed at each missing tooth timing.

【図15】 クランクカウンタのカウント値に対する正
常化処理を欠歯タイミング毎に実施した場合の問題を説
明するための図の、その2である。
FIG. 15 is a second diagram illustrating a problem that arises when the normalization process for the count value of the crank counter is performed at each missing tooth timing.

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

10…エンジン制御装置(ECU)、11〜14…燃料
噴射弁、21〜24…点火コイル、31…マイクロコン
ピュータ(CPU)、33,35,37…入力バッフ
ァ、39…A/D変換器、41…出力バッファ、43…
信号処理回路、47…クランク角センサ、49…カム角
センサ、51…スタータスイッチ、53…アイドルスイ
ッチ、55…エアフロメータ、57…スロットルセン
サ、59…水温センサ、61…イグナイタ、63…欠歯
検出部、65…レベル読取部、67…30°CA信号生
成部、69…判別用信号生成部
DESCRIPTION OF SYMBOLS 10 ... Engine control device (ECU), 11-14 ... Fuel injection valve, 21-24 ... Ignition coil, 31 ... Microcomputer (CPU), 33, 35, 37 ... Input buffer, 39 ... A / D converter, 41 … Output buffer, 43…
Signal processing circuit, 47: crank angle sensor, 49: cam angle sensor, 51: starter switch, 53: idle switch, 55: air flow meter, 57: throttle sensor, 59: water temperature sensor, 61: igniter, 63: missing tooth detection Section, 65: level reading section, 67: 30 ° CA signal generation section, 69: discrimination signal generation section

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 第1の信号出力手段からエンジンのクラ
ンク軸の回転に応じて出力され、前記クランク軸の回転
位置が予め設定された1つの特定位置でない時には、前
記クランク軸が所定の単位角度回転する期間を1周期と
したパルス信号となり、前記クランク軸の回転位置が前
記特定位置に来た時には、前記クランク軸が前記単位角
度よりも大きい所定角度回転する期間を1周期とした欠
歯信号となるクランク角信号と、 第2の信号出力手段から前記クランク軸の回転に対し1
/2の比率で回転する回転軸の回転に応じて出力され、
前記クランク角信号がパルス信号となっている期間中に
論理レベルが変化することにより、前記クランク角信号
が欠歯信号となるタイミングでは、その各タイミング毎
に交互に異なった論理レベルとなる気筒判別用信号とを
入力すると共に、 カウント値が前記クランク軸の2回転分の累積回転角度
を示すカウンタと、 前記エンジンの始動を検知すると共に、該エンジンの始
動を検知してから最初に前記クランク角信号が欠歯信号
になったことを検出すると、前記カウンタのカウント値
を、その時の前記気筒判別用信号の論理レベルに応じた
所定の計数開始値に初期設定し、その後は、前記カウン
タのカウント値を、前記クランク角信号に基づき更新し
て前記クランク軸の2回転分に相当する値の範囲で周回
させるカウント制御手段とを備え、 前記カウンタのカウント値に基づき前記エンジンの気筒
判別を行う処理を、前記カウント制御手段が前記カウン
ト値を前記計数開始値に初期設定した時点から開始する
ように構成されていること、 を特徴とするエンジン制御装置。
An output unit configured to output a signal from the first signal output unit in response to a rotation of a crankshaft of the engine when the rotation position of the crankshaft is not a predetermined specific position; A pulse signal having a period of one rotation period and a missing tooth signal having one period of rotation of the crankshaft by a predetermined angle greater than the unit angle when the rotation position of the crankshaft comes to the specific position. From the second signal output means, and 1 to the rotation of the crankshaft.
Output in accordance with the rotation of the rotating shaft rotating at a ratio of / 2,
When the logic level changes during the period in which the crank angle signal is a pulse signal, the cylinder discrimination in which the logic level alternately differs at each timing when the crank angle signal becomes the missing tooth signal is performed. And a counter whose count value indicates a cumulative rotation angle for two rotations of the crankshaft, and detecting the start of the engine and the crank angle first after detecting the start of the engine. When it is detected that the signal has become a missing tooth signal, the count value of the counter is initialized to a predetermined count start value corresponding to the logical level of the cylinder discrimination signal at that time, and thereafter, the count value of the counter is counted. Count control means for updating a value based on the crank angle signal and rotating the value in a range of values corresponding to two rotations of the crankshaft. The process of performing the cylinder discrimination of the engine based on the count value of the counter is configured to be started from a point in time when the count control unit initializes the count value to the count start value. Engine control device.
【請求項2】 請求項1に記載のエンジン制御装置にお
いて、 前記カウント制御手段は、 前記エンジンの始動を検知してから最初に前記クランク
角信号が欠歯信号になったことを検出した時の、前記気
筒判別用信号の論理レベル(以下、始動直後検出レベル
という)がローレベルの場合には、前記カウンタのカウ
ント値を第1の計数開始値に初期設定し、前記始動直後
検出レベルがハイレベルの場合には、前記カウンタのカ
ウント値を、前記第1の計数開始値とは前記クランク軸
の1回転分に相当する値だけ異なった第2の計数開始値
に初期設定すること、 を特徴とするエンジン制御装置。
2. The engine control device according to claim 1, wherein the count control unit detects when the crank angle signal first becomes a missing tooth signal after the start of the engine is detected. If the logical level of the cylinder discrimination signal (hereinafter referred to as the detection level immediately after starting) is low, the count value of the counter is initialized to a first count start value, and the detection level immediately after starting is high. In the case of the level, the count value of the counter is initialized to a second count start value different from the first count start value by a value corresponding to one rotation of the crankshaft. Engine control device.
【請求項3】 請求項1又は請求項2に記載のエンジン
制御装置において、 当該装置は、前記エンジンの各気筒に関する該各気筒毎
の制御処理を、前記カウンタのカウント値に応じて択一
的に切り替えて実行するように構成されていると共に、
前記クランク角信号が欠歯信号になってから前記クラン
ク軸が所定の一定角度だけ回転した基準タイミングが、
何れかの気筒に関する制御処理を実行する期間から他の
気筒に関する制御処理を実行する期間への切り替わりタ
イミングとなっており、 更に、前記カウント制御手段は、前記カウンタのカウン
ト値を前記計数開始値に初期設定した後は、前記クラン
ク角信号に基づき前記基準タイミングが到来したことを
検知した時に、前記カウンタのカウント値を、その基準
タイミングに対応した正常値に設定するための正常化処
理を行うこと、 を特徴とするエンジン制御装置。
3. The engine control device according to claim 1, wherein the control device performs a control process for each cylinder of each cylinder of the engine in accordance with a count value of the counter. It is configured to switch to and execute
The reference timing at which the crankshaft is rotated by a predetermined constant angle after the crank angle signal becomes the missing tooth signal,
It is a switching timing from a period in which the control process for any one of the cylinders is performed to a period in which the control process for the other cylinder is performed, and further, the count control means sets the count value of the counter to the count start value. After the initial setting, when detecting that the reference timing has arrived based on the crank angle signal, performing a normalization process for setting the count value of the counter to a normal value corresponding to the reference timing. An engine control device characterized in that:
JP2001078562A 2001-03-19 2001-03-19 Engine control device Expired - Lifetime JP4399997B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001078562A JP4399997B2 (en) 2001-03-19 2001-03-19 Engine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001078562A JP4399997B2 (en) 2001-03-19 2001-03-19 Engine control device

Publications (2)

Publication Number Publication Date
JP2002276453A true JP2002276453A (en) 2002-09-25
JP4399997B2 JP4399997B2 (en) 2010-01-20

Family

ID=18935160

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001078562A Expired - Lifetime JP4399997B2 (en) 2001-03-19 2001-03-19 Engine control device

Country Status (1)

Country Link
JP (1) JP4399997B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008062774A1 (en) * 2006-11-20 2008-05-29 Kabushiki Kaisha Toyota Jidoshokki Fuel injection control device for internal combustion engine
JP2008267145A (en) * 2007-04-16 2008-11-06 The Ship Machinery Manufacturers Association Of Japan Control device of four stroke diesel engine and method of generating cam pulse signal
JP2013245601A (en) * 2012-05-25 2013-12-09 Renesas Electronics Corp Semiconductor data processing device and engine control device
JP7454073B2 (en) 2021-01-12 2024-03-21 日立Astemo株式会社 Crank angle sensor control device and internal combustion engine control device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008062774A1 (en) * 2006-11-20 2008-05-29 Kabushiki Kaisha Toyota Jidoshokki Fuel injection control device for internal combustion engine
US7637249B2 (en) 2006-11-20 2009-12-29 Kabushiki Kaisha Toyota Jidoshokki Fuel injection control device for internal combustion engine
JP2008267145A (en) * 2007-04-16 2008-11-06 The Ship Machinery Manufacturers Association Of Japan Control device of four stroke diesel engine and method of generating cam pulse signal
JP2013245601A (en) * 2012-05-25 2013-12-09 Renesas Electronics Corp Semiconductor data processing device and engine control device
JP7454073B2 (en) 2021-01-12 2024-03-21 日立Astemo株式会社 Crank angle sensor control device and internal combustion engine control device

Also Published As

Publication number Publication date
JP4399997B2 (en) 2010-01-20

Similar Documents

Publication Publication Date Title
JP3379271B2 (en) Engine cylinder discriminator
JP4168907B2 (en) Engine control device
JP3824853B2 (en) Cylinder discrimination device for internal combustion engine
JP2006214408A (en) Control device for internal combustion engine
US6679223B2 (en) Engine control system with cam sensor
JP4542569B2 (en) Engine control device
JP3805726B2 (en) Internal combustion engine control device
JPWO2004013479A1 (en) Engine control device
JP2002276453A (en) Engine control device
JP2004308545A (en) Start control device for internal combustion engine
JP4475704B2 (en) Engine control device
JP4332971B2 (en) Engine control apparatus and signal processing circuit used therefor
JP3979161B2 (en) Engine control device
JP2005264862A (en) Engine control device
JP2012062802A (en) Control device of on-vehicle internal combustion engine
JP2005351212A (en) Engine control device
JP4196426B2 (en) Crank angle determination device for internal combustion engine
JP6394447B2 (en) Crank angle detector
JP4406324B2 (en) Engine control device
JP5287977B2 (en) Control device for internal combustion engine
JP4390033B2 (en) Internal combustion engine control device
JP2005351210A (en) Engine control device
JP4286846B2 (en) Crank angle detection device for internal combustion engine
JP2011163206A (en) Control device of internal combustion engine
JP2009121407A (en) Rotating speed sensing device of internal combustion engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090410

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091006

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

R151 Written notification of patent or utility model registration

Ref document number: 4399997

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091019

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

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20131106

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term