Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4239775B2 - Missing tooth determination device and waveform shaping device for crank angle signal - Google Patents
[go: Go Back, main page]

JP4239775B2 - Missing tooth determination device and waveform shaping device for crank angle signal - Google Patents

Missing tooth determination device and waveform shaping device for crank angle signal Download PDF

Info

Publication number
JP4239775B2
JP4239775B2 JP2003338035A JP2003338035A JP4239775B2 JP 4239775 B2 JP4239775 B2 JP 4239775B2 JP 2003338035 A JP2003338035 A JP 2003338035A JP 2003338035 A JP2003338035 A JP 2003338035A JP 4239775 B2 JP4239775 B2 JP 4239775B2
Authority
JP
Japan
Prior art keywords
signal
missing tooth
period
crank angle
waveform shaping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003338035A
Other languages
Japanese (ja)
Other versions
JP2005105882A (en
Inventor
隆芳 本多
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2003338035A priority Critical patent/JP4239775B2/en
Publication of JP2005105882A publication Critical patent/JP2005105882A/en
Application granted granted Critical
Publication of JP4239775B2 publication Critical patent/JP4239775B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Description

本発明は、クランク角信号を処理する技術に関するものである。   The present invention relates to a technique for processing a crank angle signal.

従来より、内燃機関(エンジン)を制御するエンジン制御装置においては、クランク角センサからクランク軸の回転に応じて出力されるクランク角信号を矩形波に波形整形して論理回路やCPUなどからなるデジタル処理回路に取り込み、そのデジタル処理回路が、上記波形整形後のクランク角信号に基づきクランクカウンタのカウント処理を行い、そのクランクカウンタの値からクランク軸の回転角度を把握して燃料噴射や点火の実施タイミングを設定している(例えば、特許文献1,2参照)。   2. Description of the Related Art Conventionally, in an engine control device that controls an internal combustion engine (engine), a crank angle signal that is output from a crank angle sensor according to the rotation of the crankshaft is shaped into a rectangular wave, and a digital circuit composed of a logic circuit, a CPU, and the like The digital processing circuit performs the counting process of the crank counter based on the crank angle signal after waveform shaping, and grasps the rotation angle of the crankshaft from the value of the crank counter and performs fuel injection and ignition. Timing is set (for example, refer to Patent Documents 1 and 2).

また、クランク角センサからのクランク角信号は、クランク軸の回転位置が予め設定された基準位置でない時には、クランク軸が所定角度(例えば10°)回転する期間を1周期としたパルス信号となり、クランク軸の回転位置が基準位置に来た時には、クランク軸が上記所定角度よりも大きい角度(例えば30°)回転する期間を1周期とした欠歯信号となる。つまり、一般にクランク角センサは、クランク軸に取り付けられた円板と、その円板の外周に等間隔で形成された歯に応じてパルス信号を出力する磁気コイル式や光電式等の信号出力部とからなると共に、上記円板の外周における所定位置には、歯が複数個分欠損した欠歯部が設けられている。このため、クランク軸の回転位置が上記円板の欠歯部に対応する基準位置(即ち、円板の欠歯部が信号出力部に対向する位置)に来た時に、クランク角信号が周期の長い上記欠歯信号となる(例えば、特許文献1〜3参照)。   The crank angle signal from the crank angle sensor is a pulse signal with a period during which the crankshaft rotates a predetermined angle (for example, 10 °) as one cycle when the rotational position of the crankshaft is not a preset reference position. When the rotational position of the shaft reaches the reference position, a missing tooth signal with a period during which the crank shaft rotates at an angle larger than the predetermined angle (for example, 30 °) as one cycle is obtained. That is, in general, a crank angle sensor is a signal output unit such as a magnetic coil type or a photoelectric type that outputs a pulse signal according to a disc attached to a crankshaft and teeth formed at equal intervals on the outer periphery of the disc. And a missing tooth portion having a plurality of missing teeth is provided at a predetermined position on the outer periphery of the disk. For this reason, when the rotational position of the crankshaft reaches the reference position corresponding to the tooth missing portion of the disk (that is, the position where the tooth missing portion of the disk faces the signal output portion), the crank angle signal is It becomes a long missing tooth signal (see, for example, Patent Documents 1 to 3).

ここで、こうしたクランク角信号を波形整形してエンジン制御用のデジタル処理回路に取り込ませる波形整形装置としては、センサ信号(クランク角信号)をスレッショルド電圧と比較して波形整形された信号を出力する比較器(コンパレータ)を備えると共に、その比較器の出力信号の周期を計測してD−F/F(D−フリップフロップ)に記憶し、そのD−F/F内の周期計測値(延いてはエンジン回転数)に応じて、上記比較器に入力されるスレッショルド電圧や、センサ信号がスレッショルド電圧を上回って比較器の出力信号が反転した時点から該比較器へのセンサ信号を上昇方向にレベルシフトさせる継続時間(持ち上げ時間)、といった波形整形実施条件をアクティブに設定するようにしたものがある。具体的には、上記D−F/F内の周期計測値が小さい場合ほど(即ち、エンジン回転数が高い場合ほど)、センサ信号の立ち上がりに対するスレッショルド電圧を高くしたり、上記持ち上げ時間を短くするようにしている(例えば、特許文献4,5参照)。   Here, as a waveform shaping device for shaping such a crank angle signal into a digital processing circuit for engine control, a sensor signal (crank angle signal) is compared with a threshold voltage and a waveform shaped signal is output. A comparator (comparator) is provided, and the period of the output signal of the comparator is measured and stored in a DF / F (D-flip-flop). Indicates the threshold voltage input to the comparator or the sensor signal to the comparator in the upward direction from when the sensor signal exceeds the threshold voltage and the comparator output signal is inverted. There is one in which the waveform shaping execution conditions such as the duration of time for shifting (lifting time) are set to active. More specifically, the threshold voltage with respect to the rise of the sensor signal is increased or the lifting time is shortened as the period measurement value in the DF / F is smaller (that is, as the engine speed is higher). (For example, refer to Patent Documents 4 and 5).

更に、この種の波形整形装置では、クランク角信号が欠歯信号になったか否かを判定する手段として、上記比較器からの出力信号の各周期(換言すれば、クランク角信号のパルス間隔)をアップダウンカウンタにより計測すると共に、そのアップダウンカウンタで計測される時間が前回計測した周期の所定数倍(例えば2倍)の値に達したら欠歯信号と判定する欠歯検出回路を備えている。そして、この欠歯検出回路により欠歯信号の発生が検出されたならば、その検出時の出力信号の周期についての周期計測値(即ち、欠歯信号の周期を計測した値)が上記D−F/Fに更新記憶されるのを禁止して、出力信号の次の1周期が終了するまでは、スレッショルド電圧や上記持ち上げ時間が変更されないようにしている。つまり、このようにすることで、スレッショルド電圧や上記持ち上げ時間が欠歯信号の周期計測値に基づき設定されて本来の値よりも低回転時向けの値になってしまうことを防止しているのである(例えば、特許文献4,5参照)。   Further, in this type of waveform shaping device, as means for determining whether or not the crank angle signal is a missing tooth signal, each cycle of the output signal from the comparator (in other words, the pulse interval of the crank angle signal). Is provided with a missing tooth detection circuit that determines a missing tooth signal when the time measured by the up / down counter reaches a value that is a predetermined number of times (for example, twice) the previously measured period. Yes. When the missing tooth detection circuit detects the occurrence of the missing tooth signal, the period measurement value (that is, the value obtained by measuring the period of the missing tooth signal) for the period of the output signal at the time of detection is the D−. The threshold voltage and the lifting time are not changed until the next one cycle of the output signal is terminated by prohibiting the F / F from being updated and stored. In other words, by doing this, the threshold voltage and the lifting time are set based on the period measurement value of the missing tooth signal, thereby preventing the rotation value from being lower than the original value. (For example, see Patent Documents 4 and 5).

一方また、特許文献3には、エンジンの始動性を向上させるために、クランク角センサを構成する円板に1つの欠歯部と2つの連続する欠歯部とを設けたシステムが記載されている。そして、このシステムにおいて、クランク角信号には、クランク軸の1回転中に、欠歯信号が1回発生する場合と、欠歯信号が2回連続して発生する場合とが生じる。
特開2001−90600号公報 特開2001−214794号公報 特許第3379261号公報 特許第3218911号公報 特開平9−46194号公報
On the other hand, Patent Document 3 describes a system in which one missing tooth portion and two continuous missing tooth portions are provided on a disk constituting a crank angle sensor in order to improve engine startability. Yes. In this system, the crank angle signal includes a case where the missing tooth signal is generated once and a case where the missing tooth signal is generated twice continuously during one rotation of the crankshaft.
JP 2001-90600 A JP 2001-214794 A Japanese Patent No. 3379261 Japanese Patent No. 3218911 JP-A-9-46194

ここで、欠歯信号が複数回連続して発生する場合のあるクランク角信号に、上記従来の波形整形装置を適用した場合には、以下の問題が生じる。
まず、従来の波形整形装置に備えられた欠歯検出回路は、前述したように、波形整形後の信号の周期が前回計測した周期の所定数倍に設定される判定閾値以上になったら欠歯信号と判定するというものであり、欠歯信号が連続して発生した場合、2発目の欠歯信号についての判定閾値は、1発目の欠歯信号の周期を所定数倍した大きな値になる。このため、2発目の欠歯信号の周期が判定閾値以上にならず、その2発目の欠歯信号を検出すること(即ち、欠歯信号であると判定すること)ができない。
Here, when the conventional waveform shaping device is applied to a crank angle signal in which a missing tooth signal may be continuously generated a plurality of times, the following problems occur.
First, as described above, the missing tooth detection circuit provided in the conventional waveform shaping device is configured to have a missing tooth when the period of the signal after waveform shaping is equal to or greater than a determination threshold set to a predetermined number of times the period measured last time. When the missing tooth signal is continuously generated, the determination threshold for the second missing tooth signal is a large value obtained by multiplying the period of the first missing tooth signal by a predetermined number of times. Become. For this reason, the period of the second missing tooth signal does not exceed the determination threshold value, and the second missing tooth signal cannot be detected (that is, it can be determined that it is a missing tooth signal).

よって、上記従来の波形整形装置では、その2発目の欠歯信号の周期計測値に基づいて、スレッショルド電圧や上記持ち上げ時間等の波形整形実施条件が、本来の値よりも低回転時向けの値に設定されてしまい、その結果、クランク角信号を適切に波形整形することができなくなってしまうのである。   Therefore, in the conventional waveform shaping device, based on the period measurement value of the second missing tooth signal, the waveform shaping execution conditions such as the threshold voltage and the lifting time are lower than the original value. As a result, the crank angle signal cannot be properly shaped.

尚、特許文献3に記載のECUでは、NE信号(クランク角信号に相当)の連続する3つのパルス間隔について、隣り合うもの同士をそれぞれ比較することにより、単発の欠歯信号か2つ連続の欠歯信号かを判別している。しかし、この技術では、比較のための係数設定が難しい上に、2つ連続の欠歯信号の1発目が発生した時点では、未だ欠歯信号であると判別することができず、波形整形回路に適用した場合、やはり上記問題が生じる。   In the ECU described in Patent Document 3, a single missing tooth signal or two consecutive missing signals are compared by comparing adjacent ones of three consecutive pulse intervals of the NE signal (corresponding to a crank angle signal). It is determined whether there is a missing tooth signal. However, with this technique, it is difficult to set a coefficient for comparison, and at the time when the first of two consecutive missing tooth signals occurs, it cannot be determined that the missing tooth signal is yet, and waveform shaping is not possible. When applied to a circuit, the above problem still occurs.

本発明は、こうした問題に鑑みなされたものであり、クランク軸の1回転中に欠歯信号が1回発生する場合と複数回連続して発生する場合とがあるクランク角信号を、適切に波形整形することが可能な波形整形装置と、その波形整形装置に好適な欠歯判定装置とを提供することを目的としている。   The present invention has been made in view of these problems, and appropriately generates a crank angle signal in which a missing tooth signal is generated once during one rotation of the crankshaft and may be continuously generated a plurality of times. An object of the present invention is to provide a waveform shaping device capable of shaping, and a missing tooth determination device suitable for the waveform shaping device.

上記目的を達成するためになされた請求項1に記載の欠歯判定装置は、センサから内燃機関のクランク軸の回転に応じて出力されるクランク角信号であって、クランク軸の回転位置が予め設定された基準位置でない時には、クランク軸が所定角度回転する期間を1周期としたパルス信号となり、クランク軸の回転位置が基準位置に来た時には、クランク軸が前記所定角度よりも大きい角度回転する期間を1周期とした欠歯信号となり、更に、クランク軸の1回転中には、前記欠歯信号が1回発生する場合と、前記欠歯信号が複数回連続して発生する場合とがあるクランク角信号について、そのクランク角信号のパルス間隔を計測するパルス間隔計測手段と、そのパルス間隔計測手段がクランク角信号の1つのパルス間隔を計測し終える毎に、少なくとも今回計測されたパルス間隔を用いて、クランク角信号が欠歯信号になったか否かを判定するための閾値を設定する閾値設定手段とを備えている。   The missing tooth determination device according to claim 1, which has been made to achieve the above object, is a crank angle signal output from a sensor in accordance with the rotation of the crankshaft of the internal combustion engine, and the rotation position of the crankshaft is determined in advance. When it is not the set reference position, it becomes a pulse signal with a period during which the crankshaft rotates by a predetermined angle as one cycle, and when the crankshaft rotation position reaches the reference position, the crankshaft rotates by an angle larger than the predetermined angle. The missing tooth signal has a period of one cycle. Further, during one rotation of the crankshaft, the missing tooth signal may be generated once or the missing tooth signal may be continuously generated a plurality of times. For the crank angle signal, a pulse interval measuring means for measuring the pulse interval of the crank angle signal, and every time the pulse interval measuring means finishes measuring one pulse interval of the crank angle signal, Using this measured pulse interval even without, the crank angle signal and a threshold value setting means for setting a threshold value for determining whether it is toothless signal.

そして、この欠歯判定装置では、パルス間隔計測手段によって計測されるパルス間隔が閾値設定手段により設定されている閾値以上になったら、クランク角信号が欠歯信号になったと判定するが、特に、クランク角信号が欠歯信号になったと判定すると、閾値設定手段が閾値を更新するのを禁止して、クランク角信号の次のパルス間隔についても同じ閾値を用いるように構成されている。   And in this missing tooth determination device, when the pulse interval measured by the pulse interval measuring means is equal to or greater than the threshold set by the threshold setting means, it is determined that the crank angle signal has become a missing tooth signal. If it is determined that the crank angle signal is a missing tooth signal, the threshold setting unit prohibits the threshold value from being updated, and the same threshold is used for the next pulse interval of the crank angle signal.

このような請求項1の欠歯判定装置によれば、欠歯信号が複数回連続して発生する場合の1発目以降の(1発目よりも後の)欠歯信号の発生タイミングにおいても、1発目の欠歯信号について用いられたのと同じ閾値であって、1発目の欠歯信号が発生する前の通常のパルス信号のパルス間隔に基づき設定された閾値を用いて、欠歯信号か否かの判定が行われることとなるため、その1発目以降の欠歯信号についても、欠歯信号であると確実に判定することができる。   According to such a missing tooth determination apparatus of claim 1, even in the generation timing of the missing tooth signal after the first (after the first) when the missing tooth signal is generated a plurality of times continuously. The same threshold as that used for the first missing tooth signal, which is set based on the pulse interval of the normal pulse signal before the first missing tooth signal is generated, is used. Since it is determined whether or not it is a tooth signal, the first and subsequent missing tooth signals can be reliably determined to be missing tooth signals.

そして、このような請求項1の欠歯判定装置を、特許文献4,5に記載されているような従来の波形整形装置について、クランク角信号が欠歯信号になったか否かを判定するための欠歯検出手段として適用すれば、「欠歯信号が複数回連続して発生した場合に、スレッショルド電圧等の波形整形実施条件が、1発目以降の欠歯信号の周期計測値に基づいて、本来の値よりも低回転時向けの値に設定されてしまい、クランク角信号を適切に波形整形することができなくなってしまう」という問題を防止することができる。このため、クランク軸の1回転中に欠歯信号が1回発生する場合と複数回連続して発生する場合とがあるクランク角信号を、適切に波形整形することが可能となる。   In addition, in order to determine whether the crank angle signal is a missing tooth signal or not with respect to the conventional waveform shaping device as described in Patent Documents 4 and 5, the missing tooth determination device according to claim 1 is used. If the missing tooth signal is generated a plurality of times continuously, the waveform shaping condition such as the threshold voltage is determined based on the period measurement value of the first missing tooth signal. Therefore, it is possible to prevent the problem that the crank angle signal cannot be appropriately shaped because the crank angle signal is set to a value for lower rotation than the original value. For this reason, it is possible to appropriately shape the waveform of the crank angle signal that may be generated once during the rotation of the crankshaft or may occur continuously several times.

ところで、このような請求項1の欠歯判定装置において、クランク角信号にノイズが入り、パルス間隔計測手段によって計測されるパルス間隔が非常に短くなった場合には、下記の問題が生じる可能性がある。   By the way, in such a missing tooth determination device of claim 1, when noise enters the crank angle signal and the pulse interval measured by the pulse interval measuring means becomes very short, the following problems may occur. There is.

即ち、この場合には、閾値設定手段によって設定される閾値が正常値に比べて非常に小さくなり、欠歯信号でない通常のパルス信号を欠歯信号であると誤判定してしまう可能性がある。そして、このような誤判定が起こった場合でも閾値の更新が禁止されるため、以後、欠歯信号であるとの誤判定と閾値の更新禁止とが繰り返されることとなり、その結果、クランク角信号の各パルス信号を欠歯信号であると誤判定し続けてしまうこととなる。   In other words, in this case, the threshold value set by the threshold value setting means is much smaller than the normal value, and a normal pulse signal that is not a missing tooth signal may be erroneously determined to be a missing tooth signal. . Then, even when such an erroneous determination occurs, the threshold value is prohibited from being updated, and hence erroneous determination that the signal is a missing tooth signal and the threshold value are prohibited from being repeated. Each of the pulse signals will continue to be erroneously determined as a missing tooth signal.

そこで、このような問題を回避するためには、請求項2に記載のように、欠歯信号が連続して発生する回数をNとすると、クランク角信号が欠歯信号になったと連続して判定した回数がN以上の所定回数に達した場合には、前記閾値の更新禁止を実施せずに、閾値設定手段に新たな閾値を設定させるように構成すれば良い。   Therefore, in order to avoid such a problem, as described in claim 2, when the number of times that the missing tooth signal is continuously generated is N, the crank angle signal becomes continuously when the missing tooth signal is generated. What is necessary is just to comprise so that a threshold value setting means may set a new threshold value, without implementing the prohibition of the update of the said threshold value, when the frequency | count determined reaches the predetermined frequency of N or more.

そして、このような請求項2の欠歯判定装置によれば、クランク角信号にノイズが入ってパルス間隔計測手段により計測されるパルス間隔が非常に短くなったとしても、クランク角信号の各パルス信号を欠歯信号であると誤判定し続けてしまうことを防止することができる。   According to the missing tooth determination device of claim 2, even if the crank angle signal contains noise and the pulse interval measured by the pulse interval measuring means becomes very short, each pulse of the crank angle signal It is possible to prevent the signal from being erroneously determined to be a missing tooth signal.

ところで、請求項1,2の欠歯判定装置は、前述したようにクランク角信号を波形整形する波形整形装置に適用することができるが、その具体的な構成例としては、請求項3に記載の構成を挙げることができる。   By the way, the missing tooth determination device according to claims 1 and 2 can be applied to the waveform shaping device for shaping the crank angle signal as described above. The structure of can be mentioned.

即ち、請求項3に記載の波形整形装置は、クランク角信号を入力し、該クランク角信号を矩形波に波形整形して出力する波形整形手段と、波形整形手段の出力信号の周期を計測する周期計測手段と、周期計測手段による周期計測値が更新記憶される周期記憶手段と、周期記憶手段に記憶された周期計測値に基づいて、波形整形手段がクランク角信号を波形整形する際の条件(波形整形実施条件)を設定する条件設定手段と、波形整形手段の出力信号に基づいてクランク角信号が欠歯信号になったか否かを判定する欠歯判定手段とを備えている。   That is, the waveform shaping device according to claim 3 inputs a crank angle signal, shapes the crank angle signal into a rectangular wave and outputs the waveform, and measures the period of the output signal of the waveform shaping means. Conditions when the waveform shaping means shapes the crank angle signal based on the period measurement means, the period storage means in which the period measurement value by the period measurement means is updated and stored, and the period measurement value stored in the period storage means Condition setting means for setting (waveform shaping execution condition) and missing tooth determination means for determining whether or not the crank angle signal is a missing tooth signal based on the output signal of the waveform shaping means.

そして、この波形整形装置では、欠歯判定手段によってクランク角信号が欠歯信号になったと判定されると、前記出力信号の次の1周期が終了するまで、条件設定手段が前記条件(波形整形実施条件)を変更しないようになっているが、特に、欠歯判定手段として、請求項1又は請求項2に記載の欠歯判定装置を備えていると共に、周期計測手段が、その欠歯判定装置のパルス間隔計測手段としても機能するようになっている。   In this waveform shaping device, when the missing tooth determination means determines that the crank angle signal has become a missing tooth signal, the condition setting means causes the condition (waveform shaping) to continue until the next one cycle of the output signal ends. The implementation condition) is not changed. In particular, the missing tooth determination device according to claim 1 or 2 is provided as the missing tooth determination means, and the period measurement means determines the missing tooth. It also functions as a pulse interval measuring means of the apparatus.

このような請求項3の波形整形装置によれば、「欠歯信号が複数回連続して発生した場合に、波形整形手段がクランク角信号を波形整形する際の波形整形実施条件が、1発目以降の欠歯信号の周期計測値に基づいて本来の値よりも低回転時向けの値に設定されてしまい、クランク角信号を適切に波形整形することができなくなってしまう」という問題を、最小限の構成で防止することができる。   According to such a waveform shaping device of claim 3, “when the missing tooth signal is continuously generated a plurality of times, the waveform shaping execution condition when the waveform shaping means shapes the crank angle signal is one. `` It is set to a value for low rotation speed than the original value based on the period measurement value of the missing tooth signal after the eye, and the crank angle signal can not be shaped appropriately '' This can be prevented with a minimum configuration.

一方、請求項4に記載の波形整形装置は、請求項3の波形整形装置と同様に、クランク角信号を入力し、該クランク角信号を矩形波に波形整形して出力する波形整形手段と、波形整形手段の出力信号の周期を計測する周期計測手段と、周期計測手段による周期計測値が更新記憶される周期記憶手段と、周期記憶手段に記憶された周期計測値に基づいて、波形整形手段がクランク角信号を波形整形する際の条件(波形整形実施条件)を設定する条件設定手段と、波形整形手段の出力信号に基づいてクランク角信号が欠歯信号になったか否かを判定する欠歯判定手段とを備えている。   On the other hand, the waveform shaping device according to claim 4 is similar to the waveform shaping device according to claim 3, the waveform shaping means for inputting a crank angle signal, shaping the crank angle signal into a rectangular wave, and outputting it, Based on the period measurement means for measuring the period of the output signal of the waveform shaping means, the period storage means for updating and storing the period measurement value by the period measurement means, and the waveform shaping means based on the period measurement value stored in the period storage means The condition setting means for setting the conditions for shaping the crank angle signal (waveform shaping execution conditions), and the lack of whether or not the crank angle signal is a missing tooth signal based on the output signal of the waveform shaping means. Tooth determination means.

そして特に、クランク角信号において欠歯信号が連続して発生する回数をNとすると、請求項4の波形整形装置では、欠歯判定手段によりクランク角信号が欠歯信号になったと判定されると、波形整形手段の出力信号のN周期以上の所定周期分の期間が終了するまで、条件設定手段が前記条件(波形整形実施条件)を変更しないように構成されている。   In particular, when N is the number of times that the missing tooth signal is continuously generated in the crank angle signal, the waveform shaping device according to claim 4, when the missing tooth determination means determines that the crank angle signal has become a missing tooth signal. The condition setting means is configured not to change the condition (the waveform shaping execution condition) until a period corresponding to a predetermined period or more of the N cycles of the output signal of the waveform shaping means ends.

そして、このような請求項4の波形整形装置によっても、「欠歯信号が複数回連続して発生した場合に、波形整形手段がクランク角信号を波形整形する際の波形整形実施条件が、1発目以降の欠歯信号の周期計測値に基づいて本来の値よりも低回転時向けの値に設定されてしまい、クランク角信号を適切に波形整形することができなくなってしまう」という問題を防止することができる。   According to such a waveform shaping device of claim 4, “when the missing tooth signal is generated continuously a plurality of times, the waveform shaping condition when the waveform shaping means shapes the crank angle signal is 1”. Based on the period measurement value of the missing tooth signal after the start, it will be set to a value for lower rotation than the original value, and the crank angle signal will not be able to shape the waveform properly '' Can be prevented.

尚、この請求項4の波形整形装置においては、欠歯判定手段として、請求項1,2の欠歯判定装置を用いる必要はなく、従来からの手法で欠歯信号の発生を判定するもの(例えば、波形整形後の信号の各周期を計測し、今回計測中の周期が前回計測した周期の所定数倍に設定される判定閾値以上になったら欠歯信号と判定する構成のもの)を用いることができる。   In the waveform shaping device of claim 4, it is not necessary to use the missing tooth determination device of claims 1 and 2 as missing tooth determination means, and the generation of a missing tooth signal is determined by a conventional method ( For example, each period of a signal after waveform shaping is measured, and a period in which the current measurement is performed is determined to be a missing tooth signal when a period equal to or greater than a predetermined threshold value set to a predetermined number of times the period previously measured is used) be able to.

以下、本発明が適用された実施形態のエンジン制御装置について、図面を用いて説明する。
まず図1は、第1実施形態のエンジン制御装置1の構成を表す構成図であり、図2は、このエンジン制御装置1の波形整形回路5で行われる波形整形の動作を表すタイムチャートである。
Hereinafter, an engine control device of an embodiment to which the present invention is applied will be described with reference to the drawings.
First, FIG. 1 is a block diagram showing the configuration of the engine control device 1 of the first embodiment, and FIG. 2 is a time chart showing the waveform shaping operation performed by the waveform shaping circuit 5 of the engine control device 1. .

図1に示すように、本第1実施形態のエンジン制御装置1は、車両のエンジン(内燃機関)を制御するための各種処理を行うマイコン3と、波形整形回路5と、入力フィルタ回路7とを備えている。   As shown in FIG. 1, the engine control device 1 of the first embodiment includes a microcomputer 3 that performs various processes for controlling a vehicle engine (internal combustion engine), a waveform shaping circuit 5, an input filter circuit 7, and the like. It has.

そして、エンジンに取り付けられたクランク角センサ9から出力されるクランク角信号が入力フィルタ回路7に入力され、その入力フィルタ回路7で高周波ノイズが除去された後のクランク角信号Vaが波形整形回路5にて矩形波に波形整形され、更に、その波形整形回路5の出力信号(即ち、波形整形後のクランク角信号)Voutがマイコン3に入力されるようになっている。尚、入力フィルタ回路7は、例えば抵抗とコンデンサからなる一般的なローパスフィルタとしての積分回路である。   The crank angle signal output from the crank angle sensor 9 attached to the engine is input to the input filter circuit 7, and the crank angle signal Va after the high frequency noise is removed by the input filter circuit 7 is the waveform shaping circuit 5. Then, the waveform is shaped into a rectangular wave, and the output signal (that is, the crank angle signal after waveform shaping) Vout of the waveform shaping circuit 5 is input to the microcomputer 3. The input filter circuit 7 is an integrating circuit as a general low-pass filter including, for example, a resistor and a capacitor.

ここで、クランク角センサ9は、エンジンのクランク軸11に取り付けられた円板(ロータ)9aと、その円板9aの外周に対向して設けられ、該円板aの外周に所定角度(本実施形態では10°CA)の間隔で形成された歯を検出してパルス信号を出力する磁気コイル式の信号出力部9bとからなる。そして、上記円板9aの外周には、歯が複数個(本実施形態では2個)欠損した3つの欠歯部Ka,Kb,Kcが設けられており、それらのうちの2つの欠歯部Kb,Kcは連続して設けられている。尚、以下では、欠歯部Kaを単独欠歯Kaといい、2つ連続の欠歯部Kb,Kcを連続欠歯Kb,Kcという。   Here, the crank angle sensor 9 is provided so as to face a disc (rotor) 9a attached to the crankshaft 11 of the engine and the outer periphery of the disc 9a. In the embodiment, it comprises a magnetic coil type signal output unit 9b that detects teeth formed at intervals of 10 ° CA) and outputs a pulse signal. And on the outer periphery of the disk 9a, there are provided three missing tooth portions Ka, Kb, Kc lacking a plurality of teeth (two in this embodiment), and two of these missing tooth portions Kb and Kc are provided continuously. In the following, the missing tooth portion Ka is referred to as a single missing tooth Ka, and the two consecutive missing tooth portions Kb, Kc are referred to as continuous missing teeth Kb, Kc.

このため、クランク角センサ9から入力フィルタ回路7を介して波形整形回路5に入力されるクランク角信号Vaは、図2の1段目に示すように、クランク軸11の回転位置が上記円板9aの単独欠歯Kaと連続欠歯Kb,Kcとの何れかに対応する基準位置(即ち、円板9aの単独欠歯Kaと連続欠歯Kb,Kcとの何れかが信号出力部9bに対向する位置)でない時には、クランク軸11が10°回転する期間(10°CAの時間)を1周期としたパルス信号となり、クランク軸11の回転位置が円板9aの単独欠歯Kaと連続欠歯b,Kcとの何れかに対応する基準位置に来た時には、クランク軸11が30°回転する期間(30°CAの時間)を1周期とした欠歯信号となる。つまり、欠歯信号では、図2の1段目におけるT3,T13,T14の各期間に示すように、周期(立ち下がりから立ち下がりまでの間隔)が通常のパルス信号よりも3倍のクランク角分長くなる。そして更に、クランク軸11の回転位置が円板9aの単独欠歯Kaに対応する基準位置(即ち、円板9aの単独欠歯Kaが信号出力部9bに対向する位置)に来た時には、図2の1段目におけるT3の期間に示す如く欠歯信号が1回発生し、クランク軸11の回転位置が円板9aの連続欠歯Kb,Kcに対応する基準位置(即ち、円板9aの連続欠歯Kb,Kcが信号出力部9bに対向する位置)に来た時には、図2の1段目におけるT13,T14の期間に示す如く欠歯信号が2回連続して発生する。   Therefore, the crank angle signal Va input from the crank angle sensor 9 to the waveform shaping circuit 5 via the input filter circuit 7 has a rotational position of the crankshaft 11 as shown in the first stage of FIG. The reference position corresponding to either the single missing tooth Ka of 9a or the continuous missing teeth Kb, Kc (that is, either the single missing tooth Ka of the disk 9a or the continuous missing teeth Kb, Kc is applied to the signal output unit 9b. When the crankshaft 11 is not at the opposite position), it becomes a pulse signal with a period during which the crankshaft 11 rotates 10 ° (time of 10 ° CA) as one cycle, and the rotational position of the crankshaft 11 is continuously missing from the single missing tooth Ka of the disk 9a. When the reference position corresponding to one of the teeth b and Kc is reached, a missing tooth signal is generated with a period during which the crankshaft 11 rotates 30 ° (time of 30 ° CA) as one cycle. That is, in the missing tooth signal, as shown in the periods T3, T13, and T14 in the first stage of FIG. 2, the cycle (interval from falling to falling) has a crank angle that is three times that of a normal pulse signal. It gets longer. Further, when the rotational position of the crankshaft 11 comes to the reference position corresponding to the single missing tooth Ka of the disk 9a (that is, the position where the single missing tooth Ka of the disk 9a faces the signal output portion 9b), 2, the missing tooth signal is generated once as shown in the period T3 in the first stage, and the rotational position of the crankshaft 11 is the reference position corresponding to the continuous missing teeth Kb and Kc of the disk 9a (that is, the disk 9a When the continuous missing teeth Kb and Kc come to a position facing the signal output unit 9b), the missing tooth signal is generated twice continuously as shown in the period T13 and T14 in the first stage of FIG.

一方、マイコン3は、CPU21,ROM22,RAM23,A/D変換器24,入出力インターフェース(I/F)25,及び欠歯検出部26を備えている。
そして、欠歯検出部26は、波形整形回路5から図2の2段目に示す如く出力される波形整形後のクランク角信号(波形整形出力)Voutの各周期(立ち上がりから立ち上がりまでの間隔)を計測し、今回計測中の周期が前回計測した周期の所定数倍(いわゆる欠歯判定比であり、例えば2.4倍)に設定される欠歯判定値以上になったら欠歯信号と判定する、といった手順で、波形整形後のクランク角信号Voutが欠歯信号になったか否かを判定する。
On the other hand, the microcomputer 3 includes a CPU 21, a ROM 22, a RAM 23, an A / D converter 24, an input / output interface (I / F) 25, and a missing tooth detection unit 26.
Then, the missing tooth detection unit 26 outputs each cycle of the crank angle signal (waveform shaping output) Vout after waveform shaping output from the waveform shaping circuit 5 as shown in the second stage of FIG. 2 (interval from rising to rising). When the period currently being measured is equal to or greater than a predetermined missing tooth determination value set to a predetermined number of times the so-called last period (a so-called missing tooth determination ratio, for example, 2.4 times), it is determined as a missing tooth signal. In this procedure, it is determined whether the crank angle signal Vout after waveform shaping has become a missing tooth signal.

また、マイコン3では、例えば、CPU21が、波形整形後のクランク角信号Voutが立ち上がる毎に、RAM23に設定されたクランクカウンタのカウント処理を行うと共に、欠歯検出部26にて欠歯信号の発生が判定されたら、そのクランクカウンタの値を所定値に強制設定して、クランクカウンタの値がノイズ等の影響でずれていかないようにしている。そして、CPU21は、そのクランクカウンタの値からクランク軸11の回転角度位置を把握して、エンジンに対する燃料噴射や点火の実施タイミングを設定し、入出力インターフェース(I/F)25から図示しない燃料噴射弁や点火装置へ駆動信号を出力するようになっている。   In the microcomputer 3, for example, every time the crank angle signal Vout after waveform shaping rises, the CPU 21 counts the crank counter set in the RAM 23, and the missing tooth detection unit 26 generates a missing tooth signal. Is determined, the value of the crank counter is forcibly set to a predetermined value so that the value of the crank counter does not shift due to the influence of noise or the like. Then, the CPU 21 grasps the rotational angle position of the crankshaft 11 from the value of the crank counter, sets the fuel injection timing and ignition timing for the engine, and performs fuel injection (not shown) from the input / output interface (I / F) 25. A drive signal is output to the valve and the ignition device.

次に、波形整形回路5について説明する。
波形整形回路5では、クランク角センサ9から入力フィルタ回路7を介して入力されるクランク角信号(以下、入力信号ともいう)Vaが、比較器31の反転入力端子(−端子)にレベルシフト回路33を介して入力される。また、比較器31の非反転入力端子(+端子)には、スレッショルド電圧生成回路35で生成されるスレッショルド電圧Vcが入力される。
Next, the waveform shaping circuit 5 will be described.
In the waveform shaping circuit 5, a crank angle signal (hereinafter also referred to as an input signal) Va input from the crank angle sensor 9 via the input filter circuit 7 is supplied to the inverting input terminal (−terminal) of the comparator 31 as a level shift circuit. 33 is input. The threshold voltage Vc generated by the threshold voltage generation circuit 35 is input to the non-inverting input terminal (+ terminal) of the comparator 31.

そして、比較器31は、レベルシフト回路33の出力Vbと上記スレッショルド電圧Vcとを大小比較して、「Vb<Vc」ならばハイレベルの信号を出力し、「Vb≧Vc」ならばローレベルの信号を出力する。そして更に、この比較器31の出力信号Voutが、波形整形後のクランク角信号(波形整形出力)として、マイコン3へ出力される。   The comparator 31 compares the output Vb of the level shift circuit 33 with the threshold voltage Vc and outputs a high level signal if “Vb <Vc”, and a low level if “Vb ≧ Vc”. The signal is output. Further, the output signal Vout of the comparator 31 is output to the microcomputer 3 as a crank angle signal (waveform shaping output) after waveform shaping.

ここで、レベルシフト回路33は、図3に示すように、比較器31の出力信号Voutがハイレベルからローレベルに立ち下がると(つまり「Vb≧Vc」になると)、入力信号Vaに所定のレベルシフト電圧を上乗せして出力することを開始すると共に、その時点から、後述する周期レジスタ39の記憶値に応じて設定されるレベルシフト時間をかけて、上記レベルシフト電圧を徐々に0まで減少させていく。   Here, as shown in FIG. 3, when the output signal Vout of the comparator 31 falls from the high level to the low level (that is, when “Vb ≧ Vc”), the level shift circuit 33 applies a predetermined value to the input signal Va. At the same time, the output of the level shift voltage is started, and the level shift voltage is gradually reduced to 0 over a level shift time set according to the value stored in the period register 39, which will be described later. I will let you.

また、スレッショルド電圧生成回路35は、図3に示すように、基本的には、比較器31の出力信号Voutがローレベルであるときよりも、比較器31の出力信号Voutがハイレベルであるときの方が、スレッショルド電圧Vcを高い電圧に設定するが、特に、比較器31の出力信号Voutがローレベルからハイレベルに立ち上がると(つまり「Vb<Vc」になると)、スレッショルド電圧の基本値に対して、後述する周期レジスタ39の記憶値に応じて設定される持ち上げ値を上乗せすることを開始すると共に、その時点から一定の時間(スレッショルド時間)をかけて、上記持ち上げ値を徐々に0まで減少させていく。   In addition, as shown in FIG. 3, the threshold voltage generation circuit 35 basically has a higher level when the output signal Vout of the comparator 31 is higher than when the output signal Vout of the comparator 31 is low. However, when the output signal Vout of the comparator 31 rises from the low level to the high level (that is, when “Vb <Vc”), the threshold voltage Vc is set to the basic value of the threshold voltage. On the other hand, it starts to add a lift value set in accordance with a stored value of a period register 39 described later, and gradually increases the lift value to 0 over a certain time (threshold time) from that point. Decrease.

一方、波形整形回路5では、比較器31の出力信号である波形整形出力Voutの周期(換言すれば、クランク角信号Vaのパルス間隔)が、カウンタ37によって計測される。つまり、カウンタ37は、図2の2段目及び4段目に示すように、一定周波数(例えば4MHz)の内部クロックCLKによってカウントアップされると共に、波形整形出力Voutの立ち上がりエッジでクリアされる。このため、カウンタ37のカウント値は、波形整形出力Voutの周期を、内部クロックCLKの周期を分解能として計測した周期計測値となる。   On the other hand, in the waveform shaping circuit 5, the counter 37 measures the period of the waveform shaping output Vout that is the output signal of the comparator 31 (in other words, the pulse interval of the crank angle signal Va). That is, as shown in the second and fourth stages of FIG. 2, the counter 37 is counted up by the internal clock CLK having a constant frequency (for example, 4 MHz) and cleared at the rising edge of the waveform shaping output Vout. For this reason, the count value of the counter 37 is a cycle measurement value obtained by measuring the cycle of the waveform shaping output Vout with the cycle of the internal clock CLK as a resolution.

また、波形整形出力Voutが立ち上がると、カウンタ37がクリアされるよりも先に、その時点でのカウンタ37のカウント値が周期レジスタ39に転送される。よって、周期レジスタ39には、図2の6段目に示すように、カウンタ37による波形整形出力Voutの周期計測値が更新記憶されることとなり、その周期レジスタ39の記憶値は、エンジン回転数に相当するものとなる。   When the waveform shaping output Vout rises, the count value of the counter 37 at that time is transferred to the period register 39 before the counter 37 is cleared. Therefore, as shown in the sixth stage of FIG. 2, the period measurement value of the waveform shaping output Vout by the counter 37 is updated and stored in the period register 39, and the stored value of the period register 39 is the engine speed. It is equivalent to.

そこで、スレッショルド電圧生成回路35は、図4の実線で示すように、周期レジスタ39の記憶値に応じて、その記憶値が小さい場合ほど(即ち、波形整形出力Voutの周期が短い高回転時ほど)、図3の持ち上げ値を大きい値に設定している。これは、エンジン回転数が高いほど、クランク角信号Vaの電圧が高くなるからである。また、レベルシフト回路33は、図4の一点鎖線で示すように、周期レジスタ39の記憶値に応じて、その記憶値が小さい場合ほど、図3のレベルシフト時間を短い時間に設定している。   Therefore, as shown by the solid line in FIG. 4, the threshold voltage generation circuit 35 corresponds to the stored value of the period register 39, and the smaller the stored value (that is, the shorter the period of the waveform shaping output Vout, the higher the rotation speed). 3), the lift value in FIG. 3 is set to a large value. This is because the higher the engine speed, the higher the voltage of the crank angle signal Va. Further, the level shift circuit 33 sets the level shift time of FIG. 3 to a shorter time in accordance with the stored value of the period register 39 as the stored value is smaller, as indicated by the alternate long and short dash line in FIG. .

そして、このようなレベルシフト回路33及びスレッショルド電圧生成回路35の動作により、クランク角信号Vaを比較器31によって波形整形する際の適切なヒステリシス動作が、エンジン回転数に拘わらず実現できるようにしている。   Then, by the operations of the level shift circuit 33 and the threshold voltage generation circuit 35, an appropriate hysteresis operation when the crank angle signal Va is shaped by the comparator 31 can be realized regardless of the engine speed. Yes.

更に、以上のような基本的構成に加えて、波形整形回路5には、波形整形出力Voutが立ち上がると、カウンタ37がクリアされるよりも先に、その時点でのカウンタ37のカウント値が転送されるラッチ回路41と、ラッチ回路41に記憶されたカウント値に所定の欠歯判定比(本実施形態では2.0)を乗じた値を、欠歯判定閾値として出力する乗算回路43と、カウンタ37のカウント値と乗算回路43から出力される欠歯判定閾値とを比較し、カウンタ37のカウント値が欠歯判定閾値以上になったら、欠歯信号が発生した(クランク角信号が欠歯信号になった)と判定して、図2の5段目に示すように、その判定時点から波形整形出力Voutが次に立ち上がるまで、ハイレベルの欠歯判定信号Skを出力する欠歯検出回路45とを備えている。   Further, in addition to the basic configuration as described above, when the waveform shaping output Vout rises, the count value of the counter 37 at that time is transferred to the waveform shaping circuit 5 before the counter 37 is cleared. A latch circuit 41, and a multiplication circuit 43 that outputs a value obtained by multiplying the count value stored in the latch circuit 41 by a predetermined missing tooth determination ratio (2.0 in this embodiment) as a missing tooth determination threshold value; The count value of the counter 37 is compared with the missing tooth determination threshold value output from the multiplication circuit 43, and if the count value of the counter 37 is equal to or greater than the missing tooth determination threshold value, a missing tooth signal is generated (the crank angle signal is missing tooth). As shown in the fifth row of FIG. 2, the missing tooth detection circuit that outputs a high-level missing tooth determination signal Sk from the determination time until the waveform shaping output Vout next rises. 45 It is equipped with a.

そして、周期レジスタ39とラッチ回路41との両方は、波形整形出力Voutが立ち上がっても、その直前まで欠歯検出回路45からの欠歯判定信号Skがハイレベルであったならば(つまり、欠歯検出回路45によって欠歯信号が発生したと判定されていたならば)、記憶値が更新されない(即ち、記憶値の更新が禁止される)ようになっている。   If both the period register 39 and the latch circuit 41 rise up to the waveform shaping output Vout, the missing tooth determination signal Sk from the missing tooth detection circuit 45 remains high until the waveform shaping output Vout rises (that is, missing part). If it is determined by the tooth detection circuit 45 that a missing tooth signal has been generated), the stored value is not updated (that is, the update of the stored value is prohibited).

以上のような波形整形回路5では、クランク角信号Vaを比較器31によって波形整形しているが、図2に示すように、その比較器31からの波形整形出力Voutの周期をカウンタ37により計測して周期レジスタ39に記憶し、その周期レジスタ39内の周期計測値(延いてはエンジン回転数)に応じて、スレッショルド電圧生成回路35とレベルシフト回路33とが、比較器31の非反転入力端子に入力させるスレッショルド電圧Vcの上記持ち上げ値と、比較器31の反転入力端子に入力させるクランク角信号Vaを波形整形出力Voutがローレベルに反転した時点から上昇方向にレベルシフトさせる継続時間であるレベルシフト時間とを、可変設定するようにしている。尚、図2では、上記持ち上げ値とレベルシフト時間とのうち、レベルシフト時間の方は図示を省略しており、このことは、後述する図5及び図7〜図9においても同様である。   In the waveform shaping circuit 5 as described above, the crank angle signal Va is shaped by the comparator 31, but the period of the waveform shaping output Vout from the comparator 31 is measured by the counter 37 as shown in FIG. The threshold voltage generation circuit 35 and the level shift circuit 33 receive the non-inverted input of the comparator 31 in accordance with the period measurement value (and hence the engine speed) in the period register 39. This is the duration for shifting the threshold voltage Vc inputted to the terminal and the crank angle signal Va inputted to the inverting input terminal of the comparator 31 in the upward direction from the time when the waveform shaping output Vout is inverted to the low level. The level shift time is variably set. In FIG. 2, the level shift time is omitted from the lift value and the level shift time, and this also applies to FIGS. 5 and 7 to 9 described later.

更に、波形整形回路5では、カウンタ37による波形整形出力Voutの周期計測値をラッチ回路41にも記憶すると共に、乗算回路43が、そのラッチ回路41内の周期計測値に欠歯判定比(=2.0)を乗じた値を欠歯判定閾値として設定し、カウンタ37のカウント値が上記欠歯判定閾値以上になったら、欠歯検出回路45にて、欠歯信号が発生したと判定(以下、欠歯判定という)されるようになっている。   Further, in the waveform shaping circuit 5, the cycle measurement value of the waveform shaping output Vout from the counter 37 is also stored in the latch circuit 41, and the multiplication circuit 43 adds the missing tooth determination ratio (==) to the cycle measurement value in the latch circuit 41. 2.0) is set as a missing tooth determination threshold value. When the count value of the counter 37 is equal to or greater than the missing tooth determination threshold value, the missing tooth detection circuit 45 determines that a missing tooth signal is generated ( Hereinafter, it is referred to as missing tooth determination).

そして、欠歯検出回路45により欠歯判定されたならば、その検出時の波形整形出力Voutの周期についてのカウンタ37による周期計測値(即ち、欠歯信号の周期を計測した値)が周期レジスタ39に更新記憶されないようにして、波形整形出力Voutの次の1周期が終了するまでは、スレッショルド電圧生成回路35及びレベルシフト回路33が、上記持ち上げ値及びレベルシフト時間を変更しないようにしている。つまり、これにより、波形整形実施条件としての上記持ち上げ値及びレベルシフト時間が、欠歯信号の周期計測値に基づき設定されて本来の値よりも低回転時向けの値になってしまうことを防止している。   If the missing tooth detection circuit 45 determines missing teeth, the period measurement value (that is, the value obtained by measuring the period of the missing tooth signal) by the counter 37 for the period of the waveform shaping output Vout at the time of detection is the period register. 39, the threshold voltage generation circuit 35 and the level shift circuit 33 do not change the lift value and the level shift time until the next one cycle of the waveform shaping output Vout is completed. . In other words, this prevents the lift value and the level shift time as the waveform shaping execution condition from being set based on the period measurement value of the missing tooth signal and becoming a value for lower rotation than the original value. is doing.

例えば、図2において、単独欠歯Kaに対応した単発の欠歯信号が発生しているT3の期間では、カウンタ37のカウント値が、波形整形出力Voutの前回周期(=T2)を欠歯判定比倍した欠歯判定閾値(=T2×2)以上となるため、欠歯検出回路45により欠歯判定される。このため、その後、波形整形出力Voutが立ち上がっても、周期レジスタ39の記憶値が更新されずに保持され、その結果、欠歯信号の次の通常パルス信号が発生しているT4の期間では、上記持ち上げ値及びレベルシフト時間が、欠歯信号の周期(=T3)に基づき設定されることなく、欠歯信号が発生する前の波形整形出力Voutの周期計測値(=T2)に応じた値のままとなる。   For example, in FIG. 2, in the period of T3 in which a single missing tooth signal corresponding to the single missing tooth Ka is generated, the count value of the counter 37 is determined to be the missing period of the previous cycle (= T2) of the waveform shaping output Vout. The missing tooth detection threshold 45 (= T2 × 2) is equal to or greater than the ratio of the missing tooth detection threshold 45, so that the missing tooth detection circuit 45 determines the missing tooth. For this reason, even if the waveform shaping output Vout subsequently rises, the stored value of the period register 39 is held without being updated. As a result, during the period T4 during which the normal pulse signal next to the missing tooth signal is generated, The lift value and the level shift time are not set based on the period of the missing tooth signal (= T3), and are values corresponding to the period measurement value (= T2) of the waveform shaping output Vout before the missing tooth signal is generated. Will remain.

ここで特に、本第1実施形態の波形整形回路5では、欠歯検出回路45により欠歯判定されたならば、周期レジスタ39だけでなく、ラッチ回路41についても、カウンタ37による波形整形出力Voutの周期計測値(即ち、欠歯信号のパルス幅を計測した値)が更新記憶されないようにしている。そして、これにより、欠歯判定閾値の更新が禁止され、欠歯信号検出時の次のパルス間隔についても、欠歯検出回路45が同じ欠歯判定閾値を用いるようにしている。   Here, in particular, in the waveform shaping circuit 5 of the first embodiment, if the missing tooth detection circuit 45 determines the missing tooth, not only the period register 39 but also the latch circuit 41 has a waveform shaping output Vout by the counter 37. The period measurement value (that is, the value obtained by measuring the pulse width of the missing tooth signal) is not updated and stored. Accordingly, the update of the missing tooth determination threshold is prohibited, and the missing tooth detection circuit 45 uses the same missing tooth determination threshold for the next pulse interval when the missing tooth signal is detected.

このため、本第1実施形態の波形整形回路5によれば、図2におけるT13及びT14の期間(即ち、連続欠歯Kb,Kcに対応した2つ連続の欠歯信号が発生している期間)に示すように、欠歯信号が2回連続して発生する場合の2発目の欠歯信号の発生タイミング(T14の期間)においても、欠歯検出回路45は、1発目の欠歯信号について用いたのと同じ欠歯判定閾値であって、1発目の欠歯信号が発生する前の通常のパルス信号のパルス間隔(=T12)に基づき設定された欠歯判定閾値(=T12×2)を用いて、欠歯信号か否かの判定を行うこととなるため、その2発目の欠歯信号についても、確実に欠歯判定することができる。   Therefore, according to the waveform shaping circuit 5 of the first embodiment, the period of T13 and T14 in FIG. 2 (that is, the period in which two consecutive missing teeth signals corresponding to the continuous missing teeth Kb and Kc are generated). ), The missing tooth detection circuit 45 also detects the first missing tooth even at the second missing tooth signal generation timing (period T14) when the missing tooth signal is generated twice consecutively. The same missing tooth determination threshold as used for the signal, and the missing tooth determination threshold (= T12) set based on the pulse interval (= T12) of the normal pulse signal before the first missing tooth signal is generated. X2) is used to determine whether or not there is a missing tooth signal. Therefore, the missing tooth signal can be reliably determined for the second missing tooth signal.

そして、このことから、本第1実施形態の波形整形回路5によれば、クランク軸11の1回転中に欠歯信号が1回発生する場合と2回連続して発生する場合とがあるクランク角信号Vaを、適切に波形整形することができる。   And from this, according to the waveform shaping circuit 5 of the first embodiment, there is a case where the missing tooth signal is generated once during one rotation of the crankshaft 11 and a case where it is generated twice continuously. The waveform of the angular signal Va can be appropriately shaped.

つまり、もし、欠歯検出回路45によって欠歯判定された場合でも、波形整形出力Voutの次の立ち上がりタイミングで、ラッチ回路41にカウンタ37のカウント値が転送されるように構成した場合(即ち、欠歯検出回路45からの欠歯判定信号Skがラッチ回路41に入力されない構成にした場合)には、図5におけるT13及びT14の期間に示すように、欠歯信号が2回連続して発生する場合の2発目の欠歯信号の発生タイミングにおいて、欠歯検出回路45は、1発目の欠歯信号の長いパルス間隔(=T13)に基づき設定された大きな欠歯判定閾値(=T13×2)を用いて欠歯信号か否かの判定を行うこととなるため、2発目の欠歯信号のパルス間隔が欠歯判定閾値以上にならず、その2発目の欠歯信号を欠歯信号であると判定することができなくなる。すると、その2発目の欠歯信号の次の通常パルス信号が発生しているT15の期間では、周期レジスタ39に、上記2発目の欠歯信号のカウンタ37による周期計測値(=T14)がセットされてしまい、その2発目の欠歯信号の周期計測値(=T14)に基づいて、上記持ち上げ値及びレベルシフト時間が設定されてしまうため、その持ち上げ値及びレベルシフト時間が本来の値よりも低回転時向けの値に設定されて、クランク角信号Vaを適切に波形整形することができなくなってしまうのである。尚、図5において、波形整形出力Voutは、図2と同じ理想的な状態で示しているが、実際には、レベルシフト時間が本来の値(理想)より大きくなってしまい、T16の期間での波形整形出力Voutの立ち上がりタイミングが遅れ気味になってしまう。   In other words, even if the missing tooth detection circuit 45 determines that the tooth is missing, the count value of the counter 37 is transferred to the latch circuit 41 at the next rising timing of the waveform shaping output Vout (ie, When the missing tooth determination signal Sk from the missing tooth detection circuit 45 is not input to the latch circuit 41), the missing tooth signal is generated twice consecutively as shown in the periods T13 and T14 in FIG. When the second missing tooth signal is generated, the missing tooth detection circuit 45 has a large missing tooth determination threshold (= T13) set based on the long pulse interval (= T13) of the first missing tooth signal. X2) is used to determine whether the tooth missing signal is present or not, the pulse interval of the second missing tooth signal does not exceed the missing tooth determination threshold, and the second missing tooth signal is If there is a missing tooth signal It can not be a constant. Then, in the period T15 in which the normal pulse signal next to the second missing tooth signal is generated, the period measurement value (= T14) by the counter 37 of the second missing tooth signal is stored in the period register 39. Is set, and the lift value and the level shift time are set based on the period measurement value (= T14) of the second missing tooth signal. As a result, the crank angle signal Va cannot be properly shaped by setting the value to a value for lower rotation than the value. In FIG. 5, the waveform shaping output Vout is shown in the same ideal state as in FIG. 2, but in reality, the level shift time becomes larger than the original value (ideal), and in the period of T16. The rising timing of the waveform shaping output Vout will be delayed.

これに対して、本第1実施形態の波形整形回路5では、欠歯判定した場合には、欠歯判定閾値が更新されるのを禁止しているため、2発目の欠歯信号についても、確実に欠歯判定することができ、その結果、2発目の欠歯信号の周期計測値に基づいて上記持ち上げ値及びレベルシフト時間が設定されてしまうことが防止され、クランク角信号Vaを適切に波形整形することができるようになるのである。   On the other hand, in the waveform shaping circuit 5 of the first embodiment, when the missing tooth determination is made, it is prohibited to update the missing tooth determination threshold. Therefore, it is possible to reliably determine the missing tooth, and as a result, the lift value and the level shift time are prevented from being set based on the period measurement value of the second missing tooth signal, and the crank angle signal Va is determined. The waveform can be shaped appropriately.

尚、本第1実施形態の波形整形回路5では、比較器31が波形整形手段に相当し、カウンタ37が周期計測手段に相当し、周期レジスタ39が周期記憶手段に相当し、レベルシフト回路33とスレッショルド電圧生成回路35とが条件設定手段に相当している。また、カウンタ37,ラッチ回路41,乗算回路43,及び欠歯検出回路45からなる部分が、欠歯判定手段及び欠歯判定装置に相当している。そして、カウンタ37がパルス間隔計測手段にも相当し、ラッチ回路41と乗算回路43とが閾値設定手段に相当している。   In the waveform shaping circuit 5 of the first embodiment, the comparator 31 corresponds to the waveform shaping means, the counter 37 corresponds to the period measuring means, the period register 39 corresponds to the period storage means, and the level shift circuit 33. The threshold voltage generation circuit 35 corresponds to condition setting means. Further, a portion including the counter 37, the latch circuit 41, the multiplication circuit 43, and the missing tooth detection circuit 45 corresponds to a missing tooth determination means and a missing tooth determination device. The counter 37 also corresponds to pulse interval measurement means, and the latch circuit 41 and the multiplication circuit 43 correspond to threshold setting means.

ところで、上記第1実施形態の波形整形回路5において、レベルシフト回路33及びスレッショルド電圧生成回路35が用いる周期レジスタ39の値としては、複数回分の平均をとるようにしても良い。   By the way, in the waveform shaping circuit 5 of the first embodiment, the value of the period register 39 used by the level shift circuit 33 and the threshold voltage generation circuit 35 may be averaged over a plurality of times.

具体的に説明すると、例えば図6(a)に示すように、まず、図1の周期レジスタ39を周期レジスタR1とする。そして、波形整形出力Voutが立ち上がると、周期レジスタR1の更新前の記憶値が転送される周期レジスタR2と、その周期レジスタR2の記憶値と上記周期レジスタR1の記憶値との平均値が格納される周期レジスタR3とを追加する。そして更に、レベルシフト回路33及びスレッショルド電圧生成回路35が、周期レジスタR3の記憶値を用いて、レベルシフト時間やスレッショルド電圧の持ち上げ値を設定するように構成すれば良い。   Specifically, for example, as shown in FIG. 6A, first, the period register 39 in FIG. 1 is set as a period register R1. When the waveform shaping output Vout rises, the cycle register R2 to which the stored value before update of the cycle register R1 is transferred, and the average value of the stored value of the cycle register R2 and the stored value of the cycle register R1 are stored. The cycle register R3 is added. Further, the level shift circuit 33 and the threshold voltage generation circuit 35 may be configured to set the level shift time and the threshold voltage lift value using the stored value of the period register R3.

そして、このようにすれば、瞬時の回転変動の影響を少なくすることができる。
また、上記第1実施形態の波形整形回路5において、図6(b)のように、欠歯検出回路45によって欠歯判定された際には、その欠歯信号の周期を計測したカウンタ37のカウント値(=T3,T13,T14)を1/3にした値が周期レジスタ39に格納されるようにしても良い。
And if it does in this way, the influence of an instantaneous rotation fluctuation | variation can be decreased.
In the waveform shaping circuit 5 of the first embodiment, as shown in FIG. 6B, when the missing tooth detection circuit 45 determines the missing tooth, the counter 37 that measures the period of the missing tooth signal is used. A value obtained by reducing the count value (= T3, T13, T14) to 1/3 may be stored in the period register 39.

一方、上記第1実施形態の波形整形回路5においては、図7におけるT19,T20の期間に示すように、クランク角信号Vaにノイズが入り、カウンタ37によって計測されるパルス間隔が非常に短くなった場合には、同図7におけるT21の期間に示すように、欠歯判定閾値が正常値に比べて非常に小さい値(=T20×2)になって、欠歯信号でない通常のパルス信号(10°CA毎のパルス信号)を欠歯信号であると誤判定してしまう可能性がある。そして、このような誤判定が起こった場合でも欠歯判定閾値の更新が禁止されるため、同図7におけるT21以降の期間に示すように、以後、欠歯信号であるとの誤判定と欠歯判定閾値の更新禁止(保持)とが繰り返されることとなり、その結果、10°CA毎の各パルス信号を欠歯信号であると誤判定し続けてしまい、周期レジスタ39の記憶値が正常値よりも非常に小さい値(=T20)のままになってしまう。   On the other hand, in the waveform shaping circuit 5 of the first embodiment, as shown in the periods T19 and T20 in FIG. 7, noise enters the crank angle signal Va and the pulse interval measured by the counter 37 becomes very short. In this case, as shown in the period T21 in FIG. 7, the missing tooth determination threshold value is very small (= T20 × 2) compared to the normal value, and a normal pulse signal (not a missing tooth signal) There is a possibility of erroneously determining that the pulse signal at every 10 ° CA is a missing tooth signal. Even when such an erroneous determination occurs, the update of the missing tooth determination threshold is prohibited. Therefore, as shown in the period after T21 in FIG. The tooth determination threshold update prohibition (retention) is repeated, and as a result, each pulse signal every 10 ° CA continues to be erroneously determined to be a missing tooth signal, and the value stored in the period register 39 is a normal value. Value (= T20) which is much smaller than that.

そこで次に、このような問題を回避可能な第2実施形態の波形整形回路について、図8を用い説明する。尚、以下の第2実施形態の説明において、第1実施形態と同じ構成要素については、同一の符号を用いる。   Next, a waveform shaping circuit according to the second embodiment that can avoid such a problem will be described with reference to FIG. In the following description of the second embodiment, the same reference numerals are used for the same components as those in the first embodiment.

第2実施形態の波形整形回路5では、図8におけるT13〜15又はT21〜T23の期間に示すように、欠歯検出回路45により連続して欠歯判定された回数が2回に達したならば(つまり、欠歯検出回路45が2回連続して欠歯判定したならば)、欠歯判定閾値の更新禁止を実施せずに、波形整形出力Voutの次の立ち上がりタイミングで、ラッチ回路41にカウンタ37のカウント値が転送されるようにしている。   In the waveform shaping circuit 5 of the second embodiment, as shown in the period of T13 to 15 or T21 to T23 in FIG. In other words, if the missing tooth detection circuit 45 determines missing teeth twice in succession, the latch circuit 41 is not activated at the next rising timing of the waveform shaping output Vout without prohibiting the update of the missing tooth determination threshold value. The count value of the counter 37 is transferred.

このため、図8におけるT19〜T23の期間に示すように、クランク角信号Vaにノイズが入って、カウンタ37により計測されるパルス間隔が非常に短くなってしまい、欠歯信号でない通常のパルス信号を欠歯信号であると誤判定してしまっても、2回誤判定した次のパルス信号(T23の期間のパルス信号)については、その前のパルス信号の周期計測値に基づく正常な欠歯判定閾値(=T22×2)を用いて欠歯信号か否かの判定が実施されることとなる。よって、欠歯信号であると誤判定し続けてしまうことが防止される。   For this reason, as shown in the period from T19 to T23 in FIG. 8, noise enters the crank angle signal Va, the pulse interval measured by the counter 37 becomes very short, and a normal pulse signal that is not a missing tooth signal. Even if it is misjudged as a missing tooth signal, the next missing pulse signal (pulse signal in the period of T23) that has been misjudged twice is a normal missing tooth based on the period measurement value of the previous pulse signal. The determination threshold value (= T22 × 2) is used to determine whether there is a missing tooth signal. Therefore, it is possible to prevent erroneous determination that the signal is a missing tooth signal.

尚、図8におけるT21〜T23の期間では、周期レジスタ39の記憶値が、本来のエンジン回転数には対応しない小さめの値となってしまうが、その後のT24以降の期間では正常値に復帰することとなる。そして、周期レジスタ39の値は、レベルシフト時間やスレッショルド電圧の持ち上げ値を設定するためのパラメータであり、永遠に間違っていない限り、エンジンの制御性に大きな影響を与えることはない。   In the period from T21 to T23 in FIG. 8, the stored value of the cycle register 39 becomes a small value that does not correspond to the original engine speed, but returns to the normal value in the period after T24. It will be. The value of the period register 39 is a parameter for setting the level shift time and the threshold voltage increase value, and does not greatly affect the controllability of the engine unless it is wrong forever.

一方、本実施形態では、欠歯信号が最大で2回連続して発生するシステムであったが、欠歯信号が最大で3回以上発生するシステムについても同様である。つまり、欠歯信号が連続して発生する最大回数をN(Nは2以上の整数)とすると、欠歯検出回路45がN以上の所定回数Mだけ連続して欠歯判定したら、欠歯判定閾値の更新禁止を実施しないように構成すれば良い。また、上記Mは上記Nと同じ値に設定するのが好ましい。   On the other hand, in the present embodiment, the system is one in which the missing tooth signal is continuously generated twice at the maximum, but the same applies to the system in which the missing tooth signal is generated at most three times. In other words, assuming that the maximum number of consecutive missing tooth signals is N (N is an integer of 2 or more), the missing tooth detection circuit 45 determines missing teeth continuously for a predetermined number M of N or more. What is necessary is just to comprise so that threshold value update prohibition may not be implemented. The M is preferably set to the same value as the N.

次に、第3実施形態について、図9を用い説明する。尚、以下の第3実施形態の説明においても、第1実施形態と同じ構成要素については、同一の符号を用いる。
第3実施形態の波形整形回路5は、第1実施形態の波形整形回路5に対して、下記の(1)及び(2)の点が異なっている。
Next, a third embodiment will be described with reference to FIG. In the following description of the third embodiment, the same reference numerals are used for the same components as those in the first embodiment.
The waveform shaping circuit 5 of the third embodiment differs from the waveform shaping circuit 5 of the first embodiment in the following points (1) and (2).

(1)まず、欠歯検出回路45からの欠歯判定信号Skがラッチ回路41に入力されないようになっており、このため、欠歯検出回路45によって欠歯判定された場合でも、波形整形出力Voutの次の立ち上がりタイミングで、ラッチ回路41にカウンタ37のカウント値が転送されるようになっている。   (1) First, the missing tooth determination signal Sk from the missing tooth detection circuit 45 is not input to the latch circuit 41. Therefore, even when the missing tooth detection circuit 45 determines the missing tooth, the waveform shaping output is performed. The count value of the counter 37 is transferred to the latch circuit 41 at the next rising timing of Vout.

よって、図9におけるT13及びT14の期間に示すように、欠歯信号が2回連続して発生する場合の2発目の欠歯信号の発生タイミングにおいて、欠歯検出回路45は、1発目の欠歯信号の長いパルス間隔(=T13)に基づき設定された大きな欠歯判定閾値(=T13×2)を用いて欠歯信号か否かの判定を行うこととなるため、2発目の欠歯信号のパルス間隔が欠歯判定閾値以上にならず、その2発目の欠歯信号を欠歯信号であると判定することはできない。尚、この点は、図5と同様である。   Therefore, as shown in the period T13 and T14 in FIG. 9, the missing tooth detection circuit 45 generates the first missing tooth signal at the second missing tooth signal generation timing when the missing tooth signal is generated twice in succession. Since it is determined whether or not there is a missing tooth signal using a large missing tooth detection threshold value (= T13 × 2) set based on the long pulse interval (= T13) of the missing tooth signal of the second shot The pulse interval of the missing tooth signal does not exceed the missing tooth determination threshold, and the second missing tooth signal cannot be determined to be a missing tooth signal. This point is the same as in FIG.

(2)そこで、本第3実施形態では、図9におけるT3〜T5又はT13〜T15の期間に示すように、欠歯検出回路45が欠歯判定して該欠歯検出回路45からハイレベルの欠歯判定信号Skが出力されたならば、その後、波形整形出力Voutの2周期分の期間が終了するまで(つまり、波形整形出力Voutが3回立ち上がるまで)、周期レジスタ39の記憶値が更新されないようにしている。よって、単発の欠歯信号と連続の欠歯信号との何れが発生した場合でも、周期レジスタ39の記憶値は3回連続して同じ値となる。そして、これにより、本第3実施形態では、欠歯検出回路45によって欠歯判定されると、その後、波形整形出力Voutの2周期分の期間が終了するまで、条件設定手段としてのレベルシフト回路33及びスレッショルド電圧生成回路35が、波形整形実施条件としてのレベルシフト時間とスレッショルド電圧の持ち上げ値とを変更しないようになっている。   (2) Therefore, in the third embodiment, as shown in the period T3 to T5 or T13 to T15 in FIG. If the missing tooth determination signal Sk is output, then the stored value of the period register 39 is updated until the period of two cycles of the waveform shaping output Vout is completed (that is, until the waveform shaping output Vout rises three times). I'm trying not to be. Therefore, regardless of whether a single missing tooth signal or a continuous missing tooth signal is generated, the stored value of the period register 39 becomes the same value three times in succession. As a result, in the third embodiment, when the missing tooth detection circuit 45 determines the missing tooth, the level shift circuit as the condition setting means until the period of two cycles of the waveform shaping output Vout is finished thereafter. 33 and the threshold voltage generation circuit 35 do not change the level shift time as the waveform shaping execution condition and the raised value of the threshold voltage.

このような本第3実施形態の波形整形回路5によっても、欠歯信号が2回連続して発生した場合に、その2発目の欠歯信号の周期計測値に基づいてレベルシフト時間とスレッショルド電圧の持ち上げ値とが設定されてしまうことが防止され、クランク角信号Vaを適切に波形整形することができる。また、この場合、欠歯判定閾値については、特に工夫が不要であるため、回路の簡略化が可能である。   Also in the waveform shaping circuit 5 of this third embodiment, when the missing tooth signal is generated twice in succession, the level shift time and the threshold are based on the period measurement value of the second missing tooth signal. It is possible to prevent the voltage increase value from being set, and to appropriately shape the waveform of the crank angle signal Va. Further, in this case, since there is no particular need for the missing tooth determination threshold value, the circuit can be simplified.

尚、本実施形態では、欠歯信号が最大で2回連続して発生するシステムであったが、欠歯信号が最大で3回以上発生するシステムについても同様である。つまり、欠歯信号が連続して発生する最大回数をN(Nは2以上の整数)とすると、欠歯検出回路45が欠歯判定したら、その後、波形整形出力VoutのN周期以上の所定周期分の期間が終了するまで、周期レジスタ39の記憶値が更新されないように構成すれば良い。また、上記所定周期の数は上記Nと同じ値に設定するのが好ましい。   In the present embodiment, the missing tooth signal is generated continuously twice at the maximum, but the same applies to a system where the missing tooth signal is generated at most three times. That is, assuming that the maximum number of occurrences of the missing tooth signal is N (N is an integer equal to or greater than 2), when the missing tooth detection circuit 45 determines the missing tooth, a predetermined period equal to or greater than the N period of the waveform shaping output Vout. It may be configured so that the stored value of the period register 39 is not updated until the minute period ends. Further, the number of the predetermined periods is preferably set to the same value as N.

一方、上記各実施形態の波形整形回路5を備えたエンジン制御装置1では、波形整形回路5側での欠歯判定比(上記例では2.0)を、後段のマイコン3(デジタル処理回路に相当)内の欠歯検出部26での欠歯判定比(上記例では2.4)よりも小さくしているが、それは以下の理由による。   On the other hand, in the engine control device 1 including the waveform shaping circuit 5 of each of the above embodiments, the missing tooth determination ratio (2.0 in the above example) on the waveform shaping circuit 5 side is set to the microcomputer 3 (in the digital processing circuit) in the subsequent stage. It is smaller than the missing tooth determination ratio (2.4 in the above example) in the missing tooth detection unit 26 in the above) for the following reason.

まず、マイコン3内の欠歯検出部26は 前述したように、欠歯判定時にクランクカウンタの値を所定値に強制設定することで、そのクランクカウンタの値がノイズ等の影響でずれていかないようにするためのものである。つまり、ノイズに対する保険的な役割を果たすものである。よって、もし、マイコン3において、欠歯検出部26が欠歯判定し損ねたとしても、クランクカウンタの値はカウント処理による成り行きで正常に更新されていくこととなる。また逆に、欠歯検出部26が誤って欠歯判定したならば、クランクカウンタの値が間違った値に強制設定されることとなり、燃料噴射タイミングや点火タイミングがずれてしまう。このため、マイコン3内の欠歯検出部26に関しては、どちらかといえば、欠歯判定比を大きい値にして、欠歯判定し難く設定しておく方が好ましい。   First, as described above, the missing tooth detection unit 26 in the microcomputer 3 forcibly sets the crank counter value to a predetermined value at the time of missing tooth determination so that the crank counter value does not shift due to the influence of noise or the like. It is for making. In other words, it plays an insurance role against noise. Therefore, even if the missing tooth detection unit 26 fails to determine missing teeth in the microcomputer 3, the value of the crank counter is normally updated due to the counting process. Conversely, if the missing tooth detection unit 26 erroneously determines missing teeth, the value of the crank counter is forcibly set to an incorrect value, and the fuel injection timing and ignition timing are shifted. For this reason, it is preferable that the missing tooth detection unit 26 in the microcomputer 3 is set so that the missing tooth determination ratio is set to a large value so that the missing tooth detection is difficult.

これに対して、波形整形回路5内の欠歯検出回路45に関しては、誤って欠歯判定しても、レベルシフト時間やスレッショルド電圧の持ち上げ値といった波形整形実施条件が一時的に更新されないだけであり、欠歯信号を欠歯信号であると判定できないよりは、欠歯判定比を小さい値にして、欠歯判定し易く設定しておいた方が良い。   On the other hand, regarding the missing tooth detection circuit 45 in the waveform shaping circuit 5, even if the missing tooth is erroneously determined, the waveform shaping conditions such as the level shift time and the threshold voltage increase value are not temporarily updated. It is better to set the missing tooth determination ratio to a small value so that missing teeth can be easily determined, rather than determining that a missing tooth signal is a missing tooth signal.

例えば、誤って欠歯判定する場合としては、次の2通りの場合が考えられる。
まず、1つ目は、エンジンが急減速して、波形整形出力Voutが欠歯判定閾値を超えてしまった場合である。この場合、欠歯判定比を小さい値に設定すると、誤判定の発生頻度は増えるが、波形整形実施条件が前回値と変わらないだけであり、制御上は全く問題はない。
For example, the following two cases can be considered as a case where the missing tooth is erroneously determined.
First, the first case is when the engine decelerates rapidly and the waveform shaping output Vout exceeds the missing tooth determination threshold. In this case, if the missing tooth determination ratio is set to a small value, the frequency of erroneous determination increases, but the waveform shaping execution condition does not change from the previous value, and there is no problem in terms of control.

そして、2つ目は、図7や図8のようにクランク角信号Vaにノイズが乗った場合である。しかし、本来、入力フィルタ回路7でノイズ除去を行っているため、ノイズによる誤った欠歯判定は殆ど発生しないと考えられる。また万一、ノイズの混入により誤って欠歯判定した場合でも、前述した第2及び第3実施形態の構成であれば何ら問題はない。   The second case is when noise is added to the crank angle signal Va as shown in FIGS. However, since noise removal is originally performed by the input filter circuit 7, it is considered that erroneous missing tooth determination due to noise hardly occurs. Even if a missing tooth is erroneously determined due to noise mixing, there is no problem as long as it is the configuration of the second and third embodiments described above.

以上のことから、クランク角センサからのクランク角信号をエンジン回転数に応じた波形整形実施条件に従って波形整形する波形整形回路と、その波形整形回路から出力される波形整形後のクランク角信号を入力して、クランク軸の回転位置を表すクランクカウンタのカウント処理を行うデジタル処理回路とを備えたエンジン制御装置においては、波形整形回路での欠歯判定比を、デジタル処理回路での欠歯判定比よりも小さい値に設定することが好ましいと言える。そして、このように構成すれば、信頼性の高いエンジン制御装置が得られる。   From the above, the waveform shaping circuit that shapes the crank angle signal from the crank angle sensor according to the waveform shaping execution condition according to the engine speed and the crank angle signal after waveform shaping output from the waveform shaping circuit are input. In an engine control device having a digital processing circuit that performs a counting process of a crank counter that represents the rotational position of the crankshaft, the missing tooth determination ratio in the waveform shaping circuit is set to the missing tooth determination ratio in the digital processing circuit. It can be said that it is preferable to set a smaller value. And if comprised in this way, a highly reliable engine control apparatus will be obtained.

以上、本発明の一実施形態について説明したが、本発明は、種々の形態を採り得ることは言うまでもない。
例えば、上記各実施形態の波形整形回路5では、欠歯検出回路45によって欠歯判定された際に、周期レジスタ39の記憶値を更新しないようにすることで、レベルシフト回路33及びスレッショルド電圧生成回路35が、レベルシフト時間とスレッショルド電圧の持ち上げ値とを変更しないようにしたが、欠歯検出回路45によって欠歯判定された際に、レベルシフト回路33自身とスレッショルド電圧生成回路35自身が、レベルシフト時間とスレッショルド電圧の持ち上げ値とを変更しないように構成しても良い。
As mentioned above, although one Embodiment of this invention was described, it cannot be overemphasized that this invention can take a various form.
For example, in the waveform shaping circuit 5 of each of the above embodiments, the level shift circuit 33 and the threshold voltage generation are prevented by not updating the stored value of the period register 39 when the missing tooth detection circuit 45 makes a missing tooth determination. Although the circuit 35 does not change the level shift time and the threshold voltage lift value, when the missing tooth detection circuit 45 determines the missing tooth, the level shift circuit 33 itself and the threshold voltage generation circuit 35 themselves You may comprise so that a level shift time and the raising value of a threshold voltage may not be changed.

つまり、第1及び第2実施形態の波形整形回路5については、欠歯検出回路45により欠歯判定されたならば、波形整形出力Voutの次の1周期が終了するまでは、レベルシフト回路33及びスレッショルド電圧生成回路35が、周期レジスタ39の記憶値に係わらず、レベルシフト時間とスレッショルド電圧の持ち上げ値とを変更しないように構成すれば良い。同様に、第3実施形態の波形整形回路5については、欠歯検出回路45により欠歯判定されたならば、波形整形出力Voutの次の2周期分の期間が終了するまでは、レベルシフト回路33及びスレッショルド電圧生成回路35が、周期レジスタ39の記憶値に係わらず、レベルシフト時間とスレッショルド電圧の持ち上げ値とを変更しないように構成すれば良い。   That is, for the waveform shaping circuit 5 of the first and second embodiments, if the missing tooth detection circuit 45 determines the missing tooth, the level shift circuit 33 until the next one cycle of the waveform shaping output Vout is completed. In addition, the threshold voltage generation circuit 35 may be configured not to change the level shift time and the raised value of the threshold voltage regardless of the value stored in the period register 39. Similarly, for the waveform shaping circuit 5 of the third embodiment, if the missing tooth detection circuit 45 determines the missing tooth, the level shift circuit until the next two periods of the waveform shaping output Vout are completed. 33 and the threshold voltage generation circuit 35 may be configured not to change the level shift time and the raised value of the threshold voltage regardless of the value stored in the period register 39.

また、上記各実施形態の波形整形回路5において、比較器31と同じ比較器をもう一つ設け、その追加した方の比較器の出力信号を、波形整形後のクランク角信号として、後段のマイコン3へ出力するようにしても良い。   Further, in the waveform shaping circuit 5 of each of the above embodiments, another comparator that is the same as the comparator 31 is provided, and the output signal of the added comparator is used as a crank angle signal after waveform shaping, and the microcomputer in the subsequent stage 3 may be output.

一方、周期レジスタ39の記憶値(エンジン回転数)に応じて設定する波形整形実施条件としては、前述したレベルシフト時間やスレッショルド電圧の持ち上げ値に限らず、例えば、図3に示したレベルシフト電圧(又はそのレベルシフト電圧の初期値)やスレッショルド時間でも良い。また例えば、比較器31に入力されるスレッショルド電圧Vcを全体的に変化させる構成でも良い。   On the other hand, the waveform shaping execution condition set in accordance with the value stored in the period register 39 (engine speed) is not limited to the level shift time and the threshold voltage raised value described above. For example, the level shift voltage shown in FIG. (Or an initial value of the level shift voltage) or a threshold time may be used. For example, the threshold voltage Vc input to the comparator 31 may be changed as a whole.

第1実施形態のエンジン制御装置の構成を表す構成図である。It is a block diagram showing the structure of the engine control apparatus of 1st Embodiment. 第1実施形態のエンジン制御装置に設けられた波形整形回路の動作を表すタイムチャートである。It is a time chart showing operation | movement of the waveform shaping circuit provided in the engine control apparatus of 1st Embodiment. レベルシフト回路とスレッショルド電圧生成回路の動作を表す説明図である。It is explanatory drawing showing operation | movement of a level shift circuit and a threshold voltage generation circuit. スレッショルド電圧の持ち上げ値及びレベルシフト時間の各々と、周期レジスタの記憶値との関係を表すグラフである。It is a graph showing the relationship between each of the raised value of the threshold voltage and the level shift time, and the stored value of the period register. 本発明が適用されていない構成の場合の問題を表すタイムチャートである。It is a time chart showing the problem in the case of the structure to which this invention is not applied. 第1実施形態の変形例を説明する説明図である。It is explanatory drawing explaining the modification of 1st Embodiment. 第1実施形態に関するノイズ発生時の問題を表すタイムチャートである。It is a time chart showing the problem at the time of the noise generation regarding 1st Embodiment. 第2実施形態の波形整形回路の動作を表すタイムチャートである。It is a time chart showing operation | movement of the waveform shaping circuit of 2nd Embodiment. 第3実施形態の波形整形回路の動作を表すタイムチャートである。It is a time chart showing operation | movement of the waveform shaping circuit of 3rd Embodiment.

符号の説明Explanation of symbols

1…エンジン制御装置、3…マイコン、5…波形整形回路、7…入力フィルタ回路、9…クランク角センサ、9a…円板、9b…信号出力部、Ka〜Kc…欠歯部、11…クランク軸、21…CPU、22…ROM、23…RAM、24…A/D変換器、25…入出力インターフェース、26…欠歯検出部、31…比較器、33…レベルシフト回路、35…スレッショルド電圧生成回路、37…カウンタ、39…周期レジスタ、41…ラッチ回路、43…乗算回路、45…欠歯検出回路   DESCRIPTION OF SYMBOLS 1 ... Engine control apparatus, 3 ... Microcomputer, 5 ... Waveform shaping circuit, 7 ... Input filter circuit, 9 ... Crank angle sensor, 9a ... Disc, 9b ... Signal output part, Ka-Kc ... Missing tooth part, 11 ... Crank Axis, 21 ... CPU, 22 ... ROM, 23 ... RAM, 24 ... A / D converter, 25 ... input / output interface, 26 ... missing tooth detector, 31 ... comparator, 33 ... level shift circuit, 35 ... threshold voltage Generating circuit, 37... Counter, 39... Period register, 41... Latch circuit, 43.

Claims (4)

センサから内燃機関のクランク軸の回転に応じて出力され、前記クランク軸の回転位置が予め設定された基準位置でない時には、前記クランク軸が所定角度回転する期間を1周期としたパルス信号となり、前記クランク軸の回転位置が前記基準位置に来た時には、前記クランク軸が前記所定角度よりも大きい角度回転する期間を1周期とした欠歯信号となり、更に、前記クランク軸の1回転中には、前記欠歯信号が1回発生する場合と、前記欠歯信号が複数回連続して発生する場合とがあるクランク角信号について、そのクランク角信号のパルス間隔を計測するパルス間隔計測手段と、
該パルス間隔計測手段が前記クランク角信号の1つのパルス間隔を計測し終える毎に、少なくとも今回計測されたパルス間隔を用いて、前記クランク角信号が前記欠歯信号になったか否かを判定するための閾値を設定する閾値設定手段とを備え、
前記パルス間隔計測手段により計測されるパルス間隔が前記閾値設定手段により設定されている閾値以上になったら、前記クランク角信号が前記欠歯信号になったと判定する欠歯判定装置であって、
前記クランク角信号が前記欠歯信号になったと判定すると、前記閾値設定手段が前記閾値を更新するのを禁止して、前記クランク角信号の次のパルス間隔についても同じ閾値を用いるように構成されていること、
を特徴とする欠歯判定装置。
When the rotation position of the crankshaft is not a preset reference position, it is output from a sensor according to the rotation of the crankshaft of the internal combustion engine, and becomes a pulse signal with a period during which the crankshaft rotates by a predetermined angle as one cycle, When the rotation position of the crankshaft comes to the reference position, it becomes a missing tooth signal with a period during which the crankshaft rotates at an angle larger than the predetermined angle as one cycle. Further, during one rotation of the crankshaft, A pulse interval measuring means for measuring a pulse interval of the crank angle signal with respect to a crank angle signal in which the missing tooth signal is generated once and a case in which the missing tooth signal is continuously generated a plurality of times;
Each time the pulse interval measuring means finishes measuring one pulse interval of the crank angle signal, it is determined whether or not the crank angle signal has become the missing tooth signal by using at least the pulse interval measured this time. Threshold setting means for setting a threshold for
A missing tooth determination device that determines that the crank angle signal has become the missing tooth signal when a pulse interval measured by the pulse interval measuring means is equal to or greater than a threshold set by the threshold setting means,
When it is determined that the crank angle signal is the missing tooth signal, the threshold setting unit prohibits the threshold value from being updated, and the same threshold is used for the next pulse interval of the crank angle signal. That
A missing tooth determination device characterized by the above.
請求項1に記載の欠歯判定装置において、
前記欠歯信号が連続して発生する回数をNとすると、前記クランク角信号が前記欠歯信号になったと連続して判定した回数がN以上の所定回数に達した場合には、前記閾値の更新禁止を実施せずに、前記閾値設定手段に新たな閾値を設定させるように構成されていること、
を特徴とする欠歯判定装置。
In the missing tooth determination apparatus according to claim 1,
Assuming that the number of consecutive occurrences of the missing tooth signal is N, when the number of times that the crank angle signal is continuously determined to be the missing tooth signal reaches a predetermined number of times N or more, The threshold value setting unit is configured to set a new threshold value without prohibiting update,
A missing tooth determination device characterized by the above.
センサから内燃機関のクランク軸の回転に応じて出力され、前記クランク軸の回転位置が予め設定された基準位置でない時には、前記クランク軸が所定角度回転する期間を1周期としたパルス信号となり、前記クランク軸の回転位置が前記基準位置に来た時には、前記クランク軸が前記所定角度よりも大きい角度回転する期間を1周期とした欠歯信号となり、更に、前記クランク軸の1回転中には、前記欠歯信号が1回発生する場合と、前記欠歯信号が複数回連続して発生する場合とがあるクランク角信号を入力し、該クランク角信号を矩形波に波形整形して出力する波形整形手段と、
該波形整形手段の出力信号の周期を計測する周期計測手段と、
該周期計測手段による周期計測値が更新記憶される周期記憶手段と、
該周期記憶手段に記憶された周期計測値に基づいて、前記波形整形手段が前記クランク角信号を波形整形する際の条件を設定する条件設定手段と、
前記波形整形手段の出力信号に基づき前記クランク角信号が前記欠歯信号になったか否かを判定する欠歯判定手段とを備え、
前記欠歯判定手段により前記クランク角信号が前記欠歯信号になったと判定されると、前記出力信号の次の1周期が終了するまで、前記条件設定手段が前記条件を変更しないように構成された波形整形装置であって、
前記欠歯判定手段として、請求項1又は請求項2に記載の欠歯判定装置を備えていると共に、前記周期計測手段が、前記パルス間隔計測手段としても機能すること、
を特徴とするクランク角信号の波形整形装置。
When the rotation position of the crankshaft is not a preset reference position, it is output from a sensor according to the rotation of the crankshaft of the internal combustion engine, and becomes a pulse signal with a period during which the crankshaft rotates by a predetermined angle as one cycle, When the rotation position of the crankshaft comes to the reference position, it becomes a missing tooth signal with a period during which the crankshaft rotates at an angle larger than the predetermined angle as one cycle. Further, during one rotation of the crankshaft, A waveform that receives a crank angle signal that occurs when the missing tooth signal is generated once and a case where the missing tooth signal occurs continuously a plurality of times, and that shapes the crank angle signal into a rectangular wave and outputs it. Shaping means;
Period measuring means for measuring the period of the output signal of the waveform shaping means;
A period storage means in which a period measurement value by the period measurement means is updated and stored;
Condition setting means for setting a condition when the waveform shaping means shapes the crank angle signal based on the period measurement value stored in the period storage means;
A missing tooth determining means for determining whether or not the crank angle signal becomes the missing tooth signal based on the output signal of the waveform shaping means;
When the missing tooth determining means determines that the crank angle signal has become the missing tooth signal, the condition setting means is configured not to change the condition until the next one cycle of the output signal is completed. A waveform shaping device,
The missing tooth determination unit includes the missing tooth determination device according to claim 1 or 2, and the period measurement unit also functions as the pulse interval measurement unit.
A device for shaping a waveform of a crank angle signal.
センサから内燃機関のクランク軸の回転に応じて出力され、前記クランク軸の回転位置が予め設定された基準位置でない時には、前記クランク軸が所定角度回転する期間を1周期としたパルス信号となり、前記クランク軸の回転位置が前記基準位置に来た時には、前記クランク軸が前記所定角度よりも大きい角度回転する期間を1周期とした欠歯信号となり、更に、前記クランク軸の1回転中には、前記欠歯信号が1回発生する場合と、前記欠歯信号がN回(Nは2以上の整数)連続して発生する場合とがあるクランク角信号を入力し、該クランク角信号を矩形波に波形整形して出力する波形整形手段と、
該波形整形手段の出力信号の周期を計測する周期計測手段と、
該周期計測手段による周期計測値が更新記憶される周期記憶手段と、
該周期記憶手段に記憶された周期計測値に基づいて、前記波形整形手段が前記クランク角信号を波形整形する際の条件を設定する条件設定手段と、
前記波形整形手段の出力信号に基づき前記クランク角信号が前記欠歯信号になったか否かを判定する欠歯判定手段とを備え、
前記欠歯判定手段により前記クランク角信号が前記欠歯信号になったと判定されると、前記出力信号のN周期以上の所定周期分の期間が終了するまで、前記条件設定手段が前記条件を変更しないように構成されていること、
を特徴とするクランク角信号の波形整形装置。
When the rotation position of the crankshaft is not a preset reference position, it is output from a sensor according to the rotation of the crankshaft of the internal combustion engine, and becomes a pulse signal with a period during which the crankshaft rotates by a predetermined angle as one cycle, When the rotation position of the crankshaft comes to the reference position, it becomes a missing tooth signal with a period during which the crankshaft rotates at an angle larger than the predetermined angle as one cycle. Further, during one rotation of the crankshaft, A crank angle signal may be input when the missing tooth signal is generated once and when the missing tooth signal is generated N times (N is an integer equal to or greater than 2). Waveform shaping means for waveform shaping and outputting;
Period measuring means for measuring the period of the output signal of the waveform shaping means;
A period storage means in which a period measurement value by the period measurement means is updated and stored;
Condition setting means for setting a condition when the waveform shaping means shapes the crank angle signal based on the period measurement value stored in the period storage means;
A missing tooth determining means for determining whether or not the crank angle signal becomes the missing tooth signal based on the output signal of the waveform shaping means;
If it is determined by the missing tooth determination means that the crank angle signal has become the missing tooth signal, the condition setting means changes the condition until a period of a predetermined period equal to or greater than N periods of the output signal is completed. That is configured not to
A device for shaping a waveform of a crank angle signal.
JP2003338035A 2003-09-29 2003-09-29 Missing tooth determination device and waveform shaping device for crank angle signal Expired - Fee Related JP4239775B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003338035A JP4239775B2 (en) 2003-09-29 2003-09-29 Missing tooth determination device and waveform shaping device for crank angle signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003338035A JP4239775B2 (en) 2003-09-29 2003-09-29 Missing tooth determination device and waveform shaping device for crank angle signal

Publications (2)

Publication Number Publication Date
JP2005105882A JP2005105882A (en) 2005-04-21
JP4239775B2 true JP4239775B2 (en) 2009-03-18

Family

ID=34533680

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003338035A Expired - Fee Related JP4239775B2 (en) 2003-09-29 2003-09-29 Missing tooth determination device and waveform shaping device for crank angle signal

Country Status (1)

Country Link
JP (1) JP4239775B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4662137B2 (en) * 2005-06-03 2011-03-30 株式会社デンソー Vehicle collision detection method
JP5392337B2 (en) * 2011-10-18 2014-01-22 株式会社デンソー Sensor signal processing device
JP6075179B2 (en) * 2013-04-18 2017-02-08 株式会社デンソー Rotation detector
WO2014171128A1 (en) * 2013-04-18 2014-10-23 株式会社デンソー Rotation detector
JP7127313B2 (en) * 2018-03-19 2022-08-30 コベルコ建機株式会社 construction machinery
JP7512980B2 (en) 2021-08-24 2024-07-09 株式会社デンソー Sensor Signal Processing Device

Also Published As

Publication number Publication date
JP2005105882A (en) 2005-04-21

Similar Documents

Publication Publication Date Title
JP4586903B2 (en) Engine control device
US5190011A (en) Knocking control method and apparatus for internal combustion engine
JP4168907B2 (en) Engine control device
JP4239775B2 (en) Missing tooth determination device and waveform shaping device for crank angle signal
JP4542569B2 (en) Engine control device
JP5304724B2 (en) Engine control device
JP4575902B2 (en) Internal combustion engine knock determination device
JP3506116B2 (en) Engine control device
US6289072B1 (en) Near-zero speed estimation method for a pulse counting speed calculation
JP5870977B2 (en) Rotation angle detection system
JP4333552B2 (en) Engine control device
JP3303439B2 (en) Waveform shaping circuit
JP4399997B2 (en) Engine control device
JP4462147B2 (en) Signal output device and electronic control device
JP4475704B2 (en) Engine control device
JP6717185B2 (en) Engine controller
JP2005264862A (en) Engine control device
JPH01110848A (en) Rotational position detection device for internal combustion engine control
JP7512980B2 (en) Sensor Signal Processing Device
JP6003869B2 (en) Engine control device
JP5794012B2 (en) Electronic control unit
JPH0718379B2 (en) Internal combustion engine rotation sensor
JPH1123320A (en) Processing circuit for crank angle signal
JP2010065574A (en) Control device and control method
JP2002332905A (en) Control device for internal combustion engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051116

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080415

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: 20081202

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081215

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

Free format text: PAYMENT UNTIL: 20120109

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4239775

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130109

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140109

Year of fee payment: 5

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

LAPS Cancellation because of no payment of annual fees