JP2002242748A - Engine control device - Google Patents
Engine control deviceInfo
- Publication number
- JP2002242748A JP2002242748A JP2001035531A JP2001035531A JP2002242748A JP 2002242748 A JP2002242748 A JP 2002242748A JP 2001035531 A JP2001035531 A JP 2001035531A JP 2001035531 A JP2001035531 A JP 2001035531A JP 2002242748 A JP2002242748 A JP 2002242748A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- value
- signal
- count value
- crank signal
- 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
Links
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明はエンジン制御装置
に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an engine control device.
【0002】[0002]
【従来の技術】エンジン制御装置は燃料噴射制御や点火
時期制御やアイドル回転数制御などの制御を行う装置で
あって、エンジンを最適な状態で運転させるものであ
る。つまり、クランクセンサやエンジン水温センサ等の
エンジン運転状態を検出する各種センサからの信号をE
CU(電子制御ユニット)に入力して最適な燃料噴射
量、噴射時期、点火時期などを制御する。2. Description of the Related Art An engine control device is a device for controlling fuel injection control, ignition timing control, idle speed control, and the like, and operates an engine in an optimum state. That is, signals from various sensors that detect the engine operating state, such as a crank sensor and an engine water temperature sensor, are transmitted as E.
Input to a CU (Electronic Control Unit) to control the optimal fuel injection amount, injection timing, ignition timing, etc.
【0003】点火制御や噴射制御等のエンジン回転と同
期した制御、つまり、クランク角に同期した制御は、ク
ランクエッジ(クランク信号のエッジ)からのオフセッ
ト時間が経過した時に点火パルス等の信号を発生させる
ことにより行ってきた。Control synchronized with engine rotation such as ignition control and injection control, that is, control synchronized with crank angle, generates a signal such as an ignition pulse when an offset time from a crank edge (edge of a crank signal) elapses. Let's go.
【0004】[0004]
【発明が解決しようとする課題】しかし、角度から時間
への変換のための演算を行う必要があり、処理負荷を低
減するとともに、精度を向上したいという要求がある。However, it is necessary to perform an operation for conversion from angle to time, and there is a demand to reduce processing load and improve accuracy.
【0005】本発明はこのような背景の下になされたも
のであり、その目的は、処理負荷の低減及び精度向上を
図り、しかも、クランク信号にノイズが乗ったとしても
適正にエンジン制御を行うことができるエンジン制御装
置を提供することにある。SUMMARY OF THE INVENTION The present invention has been made in view of such a background, and has as its object to reduce the processing load and improve the accuracy and to properly control the engine even if noise is present in the crank signal. It is an object of the present invention to provide an engine control device that can perform the control.
【0006】[0006]
【課題を解決するための手段】請求項1に記載の発明に
よれば、4サイクルエンジンのクランク軸の回転に対応
した所定角度間隔毎のパルス列の途中に基準位置部を3
60°CA毎に有するクランク信号に対し、パルス間隔
計測手段によりパルス間隔が計測され、逓倍信号生成手
段により、パルス間隔計測手段による今回のパルス間隔
を基にして次のパルスまでに整数倍の周波数の逓倍信号
が生成される。そして、基準カウンタは逓倍信号にてカ
ウント動作し、追従カウンタは内部クロックにて基準カ
ウンタのカウント値を超えない範囲でカウント動作す
る。このように、所定の角度間隔で逓倍信号を生成して
エンジン回転と同期をとるシステムとすることで、角度
から時間への変換のための演算を不要にでき、処理負荷
の低減及び精度向上を図ることができる。According to the first aspect of the present invention, three reference positions are provided in the middle of a pulse train at predetermined angular intervals corresponding to the rotation of the crankshaft of the four-cycle engine.
The pulse interval is measured by the pulse interval measuring means for the crank signal having every 60 ° CA, and the multiplied signal generating means sets the frequency of an integral multiple until the next pulse based on the current pulse interval by the pulse interval measuring means. Is generated. The reference counter counts with the multiplied signal, and the follow-up counter counts with an internal clock within a range not exceeding the count value of the reference counter. As described above, by generating a multiplied signal at a predetermined angular interval and synchronizing with the engine rotation, a calculation for converting from angle to time can be omitted, thereby reducing processing load and improving accuracy. Can be planned.
【0007】また、クランク信号の720°CA毎の表
の基準位置部を基準として720°CA毎に基準カウン
タと追従カウンタが初期化される。一方、クランク信号
の720°CA毎の裏の基準位置部であると判定した時
に、カウント値設定手段により基準カウンタのカウント
値が裏の基準位置相当の値に設定されるとともに、追従
カウンタのカウント値が所定値を超えていると追従カウ
ンタのカウント値が裏の基準位置相当の値に設定され
る。よって、追従カウンタは基準カウンタのカウント値
を超えない範囲でカウント動作しており、表の基準位置
部から裏の基準位置部までの間においてクランク信号に
ノイズが乗り裏の基準位置部を誤検出した場合、基準カ
ウンタのカウント値が裏の基準位置相当の値に設定され
て、その後の裏の基準位置部を正規に検出するまで追従
カウンタがカウント動作を行い当該正規に裏の基準位置
部を検出したときに基準カウンタのカウント値が裏の基
準位置相当の値に設定されると基準カウンタのカウント
値が追従カウンタのカウント値を超えるまで追従カウン
タのカウント動作は行われないが、裏の基準位置部を誤
検出した後の裏の基準位置部を正規に検出した時におい
て、追従カウンタのカウント値が所定値を超えているの
で追従カウンタのカウント値が裏の基準位置相当の値に
設定され、追従カウンタのカウント動作が開始されるこ
とになる。このようにして、クランク信号によって裏の
基準位置を判定する際に、クランク信号にノイズが乗り
裏の基準位置部を誤検出した場合にも360°CA以内
に追従カウンタを正規の状態で作動させることができ
る。その結果、クランク信号にノイズが乗ったとしても
適正にエンジン制御を行うことができ、ノイズに強いエ
ンジン制御装置となる。Further, a reference counter and a follow-up counter are initialized every 720 ° CA with reference to a reference position portion of a table for every 720 ° CA of the crank signal. On the other hand, when it is determined that the reference position is at the back reference position every 720 ° CA of the crank signal, the count value of the reference counter is set by the count value setting means to a value corresponding to the back reference position, and If the value exceeds a predetermined value, the count value of the tracking counter is set to a value corresponding to the back reference position. Therefore, the tracking counter operates within the range that does not exceed the count value of the reference counter, and noise is applied to the crank signal from the reference position on the front to the reference position on the back, and the reference position on the back is erroneously detected. In this case, the count value of the reference counter is set to a value corresponding to the back reference position, and the tracking counter performs a counting operation until the subsequent back reference position is properly detected. If the count value of the reference counter is set to a value corresponding to the reference position on the back when detection is performed, the tracking operation of the tracking counter will not be performed until the count value of the reference counter exceeds the count value of the tracking counter. Since the count value of the tracking counter exceeds a predetermined value when the back reference position is correctly detected after the position is erroneously detected, the counter DOO value is set to the value of the corresponding reference positions of the back, so that the counting operation of the tracking counter is started. In this way, when the reference position on the back side is determined based on the crank signal, even if noise is included in the crank signal and the reference position portion on the back side is erroneously detected, the tracking counter is operated in a normal state within 360 ° CA. be able to. As a result, even if noise is included in the crank signal, the engine control can be appropriately performed, and the engine control device is resistant to noise.
【0008】請求項2に記載の発明によれば、4サイク
ルエンジンのクランク軸の回転に対応した所定角度間隔
毎のパルス列の途中に基準位置部を360°CA毎に有
するクランク信号に対し、パルス間隔計測手段によりパ
ルス間隔が計測され、逓倍信号生成手段により、パルス
間隔計測手段による今回のパルス間隔を基にして次のパ
ルスまでに整数倍の周波数の逓倍信号が生成される。そ
して、基準カウンタは逓倍信号にてカウント動作し、追
従カウンタは内部クロックにて基準カウンタのカウント
値を超えない範囲でカウント動作する。このように、所
定の角度間隔で逓倍信号を生成してエンジン回転と同期
をとるシステムとすることで、角度から時間への変換の
ための演算を不要にでき、処理負荷の低減及び精度向上
を図ることができる。According to the second aspect of the present invention, a pulse signal corresponding to a crank signal having a reference position portion at every 360 ° CA in a pulse train at predetermined angular intervals corresponding to the rotation of the crankshaft of the four-cycle engine is provided. The pulse interval is measured by the interval measuring means, and the multiplied signal generating means generates a multiplied signal of an integral multiple frequency by the next pulse based on the current pulse interval by the pulse interval measuring means. The reference counter counts with the multiplied signal, and the follow-up counter counts with an internal clock within a range not exceeding the count value of the reference counter. As described above, by generating a multiplied signal at a predetermined angular interval and synchronizing with the engine rotation, a calculation for converting from angle to time can be omitted, thereby reducing processing load and improving accuracy. Can be planned.
【0009】また、クランク信号の720°CA毎の表
の基準位置部を基準として720°CA毎に基準カウン
タと追従カウンタが初期化される。一方、クランク信号
の720°CA毎の裏の基準位置部であると判定した時
に、カウント値設定手段により追従カウンタのカウント
値またはクランク信号のパルスにてカウント動作するカ
ウンタのカウント値が所定の範囲に入っていた場合のみ
基準カウンタと追従カウンタの少なくともいずれかのカ
ウント値が裏の基準位置相当の値に設定される。換言す
れば、クランク信号の720°CA毎の裏の基準位置部
であると判定した時に、追従カウンタのカウント値また
はクランク信号のパルスにてカウント動作するカウンタ
のカウント値が所定の範囲に入っていないと基準カウン
タと追従カウンタの少なくともいずれかのカウント値の
裏の基準位置相当の値への設定は行わない。つまり、ク
ランク信号にノイズが乗り裏の基準位置部を誤検出した
場合には、追従カウンタのカウント値またはクランク信
号のパルスにてカウント動作するカウンタのカウント値
が所定の範囲に入っておらず基準カウンタと追従カウン
タの少なくともいずれかのカウント値の裏の基準位置相
当の値への設定は行われない。よって、クランク信号に
よって裏の基準位置を判定する際に、クランク信号にノ
イズが乗り裏の基準位置部を誤検出した場合にもカウン
タを正規の状態で作動させることができる。その結果、
クランク信号にノイズが乗ったとしても適正にエンジン
制御を行うことができ、ノイズに強いエンジン制御装置
となる。Further, a reference counter and a follow-up counter are initialized at every 720 ° CA with reference to a reference position portion of a table for each 720 ° CA of the crank signal. On the other hand, when it is determined that the reference position is located at the back of each 720 ° CA of the crank signal, the count value of the follow-up counter or the count value of the counter that counts by the pulse of the crank signal by the count value setting means is within a predetermined range. Only when the value is within the range, the count value of at least one of the reference counter and the follow-up counter is set to a value corresponding to the back reference position. In other words, when it is determined that the reference position is located at the back of each 720 ° CA of the crank signal, the count value of the follow-up counter or the count value of the counter that counts by the pulse of the crank signal falls within a predetermined range. Otherwise, at least one of the count values of the reference counter and the follow-up counter is not set to a value corresponding to the reference position on the back. In other words, when noise is erroneously detected at the reference position portion behind the crank signal, the count value of the follow-up counter or the count value of the counter that counts with the pulse of the crank signal is not within the predetermined range, and the reference value is not within the predetermined range. At least one of the count value of the counter and the following counter is not set to a value corresponding to the reference position at the back. Therefore, when the reference position on the back side is determined based on the crank signal, the counter can be operated in a normal state even if noise is detected in the crank signal and the reference position portion on the back side is erroneously detected. as a result,
Even if the crank signal contains noise, the engine control can be properly performed, and the engine control device is resistant to noise.
【0010】さらに、請求項4に記載の発明によれば、
クランク信号の720°CA毎の表の基準位置部である
と判定した時に、追従カウンタのカウント値またはクラ
ンク信号のパルスにてカウント動作するカウンタのカウ
ント値が所定の範囲に入っていた場合のみ基準カウンタ
と追従カウンタの少なくともいずれかのカウント値が表
の基準位置相当の値に設定される。よって、クランク信
号にノイズが乗り表の基準位置部を誤検出した場合にも
誤った表の基準位置相当値への設定は行われず、カウン
タを正規の状態で作動させることができる。Further, according to the invention described in claim 4,
When it is determined that the crank signal is at the reference position in the table for each 720 ° CA, the reference value is set only when the count value of the tracking counter or the count value of the counter that counts by the pulse of the crank signal is within a predetermined range. At least one of the count value of the counter and the following counter is set to a value corresponding to the reference position in the table. Therefore, even when noise is erroneously detected in the reference position of the riding table, the counter is not set to an erroneous reference position equivalent value, and the counter can be operated in a normal state.
【0011】[0011]
【発明の実施の形態】(第1の実施の形態)以下、この
発明を具体化した第1の実施の形態を図面に従って説明
する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) A first embodiment of the present invention will be described below with reference to the drawings.
【0012】本実施の形態においては自動車用多気筒ガ
ソリンエンジンの制御装置に具体化している。図1に
は、本実施形態におけるエンジン制御ECU1の構成を
示す。エンジンは5気筒4サイクルエンジンである。The present embodiment is embodied in a control device for a multi-cylinder gasoline engine for an automobile. FIG. 1 shows a configuration of an engine control ECU 1 according to the present embodiment. The engine is a five-cylinder four-cycle engine.
【0013】エンジン制御ECU1はマイクロコンピュ
ータ(以下、マイコンという)10と電源回路20と入
出力回路30とEEPROM40を備えている。電源回
路20はバッテリ2から電力の供給を受けて所定の電圧
をECU1内の各機器に供給する。マイコン10はCP
U11とROM12とRAM13とA/D変換器14と
入出力インターフェイス15とタイマモジュール16を
備えており、これらの各部材間はデータバスにて相互に
データのやり取りが行われる。また、入出力インターフ
ェイス15にはEEPROM40が接続され、入出力イ
ンターフェイス15を介してEEPROM40とデータ
のやり取りが行われる。入出力回路30はセンサおよび
スイッチ等からの信号を入力するとともに、インジェク
タ(燃料噴射弁)や点火装置に対し駆動信号を出力す
る。さらに、入出力回路30には通信ライン3が接続さ
れ、入出力回路30を介して他のECUとデータのやり
取りが行われる。マイコン10のCPU11はセンサ・
スイッチ等からの信号(データ)及び通信ライン3から
のデータを入出力回路30と入出力インターフェイス1
5を介して取り込むとともに、これらデータを基にして
各種の演算を行い、入出力インターフェイス15と入出
力回路30を介してインジェクタ等を駆動制御する。The engine control ECU 1 includes a microcomputer (hereinafter referred to as a microcomputer) 10, a power supply circuit 20, an input / output circuit 30, and an EEPROM 40. The power supply circuit 20 receives power from the battery 2 and supplies a predetermined voltage to each device in the ECU 1. The microcomputer 10 is a CP
A U11, a ROM 12, a RAM 13, an A / D converter 14, an input / output interface 15, and a timer module 16 are provided. Data is exchanged between these members via a data bus. An EEPROM 40 is connected to the input / output interface 15, and data is exchanged with the EEPROM 40 via the input / output interface 15. The input / output circuit 30 inputs signals from sensors, switches, and the like, and outputs drive signals to injectors (fuel injection valves) and ignition devices. Further, the communication line 3 is connected to the input / output circuit 30, and data is exchanged with another ECU via the input / output circuit 30. The CPU 11 of the microcomputer 10 has a sensor
A signal (data) from a switch or the like and data from the communication line 3 are transmitted to the input / output circuit 30 and the input / output interface 1.
5, various calculations are performed based on the data, and the injectors and the like are driven and controlled via the input / output interface 15 and the input / output circuit 30.
【0014】ここで、エンジン制御ECU1が取り込む
信号に、クランクセンサ(クランク信号発生手段)から
のクランク信号とカムセンサ(気筒判別信号発生手段)
からのカム信号がある。図2には、エンジン1サイクル
(720°CA)分のクランク信号とカム信号を示す。Here, the signals received by the engine control ECU 1 include a crank signal from a crank sensor (crank signal generating means) and a cam sensor (cylinder discriminating signal generating means).
There is a cam signal from FIG. 2 shows a crank signal and a cam signal for one engine cycle (720 ° CA).
【0015】クランクセンサで発生するクランク信号
は、4サイクルエンジンのクランク軸の回転に対応した
所定角度間隔毎のパルス列よりなり、このパルス列の途
中にパルスを抜いた欠け歯(基準位置部)を有する。本
実施形態でのクランク信号は60パルス毎に2パルス抜
ける欠け歯の構成となっている(60−2歯構造)。つ
まり、パルス列のパルス間隔が6°CAであり、このパ
ルス列の途中にパルスを抜いた欠け歯を360°CA毎
に有し、そのうちの一方(720°CA毎の欠け歯)が
表欠け歯であり、他方(他の720°CA毎の欠け歯)
が裏欠け歯である。また、カムセンサで発生するカム信
号は、エンジンのカム軸の回転に同期しており、気筒位
置を特定する気筒判別信号であり、立ち下がりエッジは
144°CA間隔である。このカム信号はクランク信号
の表欠け歯直後の立ち下がりエッジ(t1のタイミン
グ)ではカム信号がLレベルであり、裏欠け歯直後の立
ち下がりエッジ(t2のタイミング)ではカム信号がH
レベルである。つまり、欠け歯位置でカム信号レベルが
Lならば表欠け歯であると判定でき、Hならば裏欠け歯
であると判定できる。The crank signal generated by the crank sensor is composed of a pulse train at predetermined angular intervals corresponding to the rotation of the crankshaft of the four-stroke engine. The pulse train has a missing tooth (reference position) in the middle of the pulse train. . The crank signal in the present embodiment has a missing tooth configuration in which two pulses are missing every 60 pulses (60-2 tooth structure). In other words, the pulse interval of the pulse train is 6 ° CA, and a missing tooth from which a pulse is extracted is provided every 360 ° CA in the middle of this pulse train, and one of them (the missing tooth every 720 ° CA) is a front missing tooth. Yes, other (missing teeth every other 720 ° CA)
Are missing teeth. The cam signal generated by the cam sensor is synchronized with the rotation of the camshaft of the engine, is a cylinder discrimination signal for specifying the cylinder position, and has a falling edge at an interval of 144 ° CA. In this cam signal, the cam signal is at the L level at the falling edge (timing of t1) immediately after the missing tooth of the crank signal, and the cam signal is H at the falling edge immediately after the missing tooth (timing of t2).
Level. That is, if the cam signal level is L at the missing tooth position, it can be determined that the tooth is a front missing tooth, and if it is H, it can be determined that the tooth is a back missing tooth.
【0016】クランク信号が図1のタイマモジュール1
6のハードクランク100に入力される。また、カム信
号は入出力回路30を介してマイコン10に取り込まれ
る。一方、図1のタイマモジュール16に備えられたハ
ードクランク100は、クランク信号をハード的に処理
する機能部である。このハードクランク100により、
図2のクランク信号の処理(クランクエッジ間時間を分
割した角度信号の生成)をハード的に行うことができ
る。A crank signal is generated by the timer module 1 shown in FIG.
6 is input to the hard crank 100. The cam signal is taken into the microcomputer 10 via the input / output circuit 30. On the other hand, the hard crank 100 provided in the timer module 16 of FIG. 1 is a functional unit that processes a crank signal in a hardware manner. With this hard crank 100,
The processing of the crank signal shown in FIG. 2 (the generation of an angle signal obtained by dividing the time between crank edges) can be performed by hardware.
【0017】図3には、ハードクランク100の構成を
示す。図3において、プリスケーラ101と分周回路1
02とエッジ時間計測カウンタ103と逓倍レジスタ
(エッジ時間記憶レジスタ)104と逓倍カウンタ10
5とイベントカウンタ106とガード用カウンタ107
と基準カウンタ108と追従カウンタ(角度カウンタ)
109と点火・噴射用角度カウンタ110を備えてい
る。プリスケーラ101からの信号Pφは分周回路10
2を介してエッジ時間計測カウンタ103に送られる。
また、信号Pφは追従カウンタ(角度カウンタ)109
に送られる。さらに、クランク信号がエッジ時間計測カ
ウンタ103とイベントカウンタ106とガード用カウ
ンタ107に送られる。FIG. 3 shows the configuration of the hard crank 100. In FIG. 3, a prescaler 101 and a frequency divider 1
02, edge time measurement counter 103, multiplication register (edge time storage register) 104, and multiplication counter 10
5, event counter 106, and guard counter 107
, Reference counter 108 and tracking counter (angle counter)
109 and an ignition / injection angle counter 110. The signal Pφ from the prescaler 101 is
2 to the edge time measurement counter 103.
The signal Pφ is a tracking counter (angle counter) 109
Sent to Further, the crank signal is sent to the edge time measurement counter 103, the event counter 106, and the guard counter 107.
【0018】図4には、アングルクロック(角度信号)
発生のタイムチャートを示す。図4には、入力するクラ
ンク信号、エッジ時間計測カウンタ103のカウント
値、逓倍レジスタ104の記憶値、逓倍カウンタ105
のカウント値、逓倍カウンタ105の出力信号(逓倍ク
ロック)、ガード用カウンタ107の値のn倍値、基準
カウンタ108のカウント値、追従カウンタ109のカ
ウント値、点火・噴射用角度カウンタ110のカウント
値を示す。FIG. 4 shows an angle clock (angle signal).
4 shows a time chart of occurrence. FIG. 4 shows the input crank signal, the count value of the edge time measurement counter 103, the stored value of the multiplication register 104, and the multiplication counter 105.
Count value, output signal (multiplication clock) of the multiplication counter 105, n times the value of the guard counter 107, count value of the reference counter 108, count value of the follow-up counter 109, count value of the ignition / injection angle counter 110 Is shown.
【0019】図3のエッジ時間計測カウンタ103は、
クランク信号を入力してクランクエッジ間の時間(パル
ス間隔)を計測する。詳しくは、パルス間隔計測手段と
してのエッジ時間計測カウンタ103は、図4のように
時間同期でカウントアップするカウンタであって、クラ
ンクエッジ間(クランク信号の立ち下がりエッジ間)の
時間を計測する。計測した値は1/n倍に逓倍され、エ
ッジ入力時に逓倍レジスタ104に転送される。転送さ
れたデータはダウンカウンタである逓倍カウンタ105
の初期値となる。逓倍値(n値)として、例えば「3
2」を挙げることができる。The edge time measurement counter 103 shown in FIG.
A crank signal is input to measure a time (pulse interval) between crank edges. More specifically, the edge time measurement counter 103 as a pulse interval measurement means is a counter that counts up in a time-synchronized manner as shown in FIG. 4, and measures a time between crank edges (between falling edges of a crank signal). The measured value is multiplied by 1 / n and transferred to the multiplication register 104 when an edge is input. The transferred data is a multiplication counter 105 which is a down counter.
Is the initial value. As the multiplication value (n value), for example, “3”
2 ".
【0020】図3の逓倍カウンタ105は、エッジ時間
計測カウンタ103により計測されたクランクエッジ間
時間を使って、クランクエッジ時間を1/nした逓倍ク
ロックを生成する。詳しくは、逓倍カウンタ105は、
図4のように時間同期でダウンカウントされ、アンダー
フローすると逓倍クロックを発生するとともにカウント
値が初期値に戻される動作を繰り返す。次のクランクエ
ッジ(クランク信号の立ち下がりエッジ)が入力される
と、逓倍レジスタ104の値及び逓倍カウンタ105の
初期値が最新値に更新される。このように、逓倍信号生
成手段としての逓倍カウンタ105は、エッジ時間計測
カウンタ103による今回のパルス間隔を基にして次の
パルスまでに整数倍の周波数の逓倍信号(逓倍クロッ
ク)を生成する。The multiplication counter 105 shown in FIG. 3 uses the time between crank edges measured by the edge time measurement counter 103 to generate a multiplied clock whose crank edge time is 1 / n. Specifically, the multiplication counter 105
As shown in FIG. 4, the operation of counting down with time synchronization and generating an increased clock when the underflow occurs and repeating the operation of returning the count value to the initial value are repeated. When the next crank edge (falling edge of the crank signal) is input, the value of the multiplication register 104 and the initial value of the multiplication counter 105 are updated to the latest values. As described above, the multiplying counter 105 as the multiplied signal generating means generates a multiplied signal (multiplied clock) having a frequency of an integral multiple until the next pulse based on the current pulse interval by the edge time measuring counter 103.
【0021】図3の基準カウンタ108は、図4に示す
ように、逓倍クロックによりカウントアップ動作する。
図3の追従カウンタ109は時間同期クロックによりカ
ウントアップする(内部クロックでカウント動作す
る)。ガード用カウンタ107は、クランク信号の立ち
下がりエッジ入力毎にカウントアップするカウンタであ
って、クランクエッジ入力時に同時にカウントアップ前
の値のn倍(逓倍)の値を基準カウンタ108に転送す
る。即ち、ガード用カウンタ107は、クランク信号の
パルスにてカウントアップしてカウント値に対し逓倍ク
ロック生成の際の整数倍のガード値を生成する。As shown in FIG. 4, the reference counter 108 in FIG. 3 counts up by a multiplied clock.
The follow-up counter 109 in FIG. 3 counts up with a time synchronous clock (counts with an internal clock). The guard counter 107 is a counter that counts up each time a falling edge of the crank signal is input, and transfers a value n times (multiplied) the value before counting up to the reference counter 108 at the same time as the input of the crank edge. That is, the guard counter 107 counts up with the pulse of the crank signal and generates a guard value that is an integral multiple of the count value when generating the multiplied clock.
【0022】図4のように、基準カウンタ108のカウ
ント値は、クランクエッジ入力時にガード用カウンタ1
07から転送された値(カウント値のn倍値)を上回る
ことはできない。即ち、ガード用カウンタ107による
ガード値を超えない範囲で基準カウンタ108がカウン
トアップする。また、追従カウンタ109は、基準カウ
ンタ108のカウント値より小さい時のみカウントアッ
プする(基準カウンタ108のカウント値を超えない範
囲でカウントアップする)。この追従カウンタ109の
カウントアップに同期してアングルクロック(角度信
号)が生成される。このように、3つのカウンタ10
7,108,109によりアングルクロックが生成され
る。As shown in FIG. 4, the count value of the reference counter 108 is determined by the guard counter 1 when the crank edge is input.
It cannot exceed the value transferred from 07 (n times the count value). That is, the reference counter 108 counts up within a range not exceeding the guard value of the guard counter 107. The tracking counter 109 counts up only when the count value is smaller than the count value of the reference counter 108 (counts up within a range not exceeding the count value of the reference counter 108). An angle clock (angle signal) is generated in synchronization with the count-up of the tracking counter 109. Thus, the three counters 10
Angle clocks are generated by 7, 108 and 109.
【0023】本実施形態では、内部クロック(プリスケ
ーラからの信号Pφ)を20MHzとしており、追従カ
ウンタ109は他のカウンタと比べ高速で動作可能であ
る。図4において、減速時には、基準カウンタ108と
追従カウンタ109のカウント動作として、クランクエ
ッジの入力より先に基準カウンタ108の値がガード用
カウンタ107の値のn倍値に達してしまうため、追従
カウンタ109のカウントアップが禁止される。このよ
うにしてガード用カウンタ107により基準カウンタ1
08と追従カウンタ109のカウントアップ動作が逓倍
数で停止する。その結果、減速時には追従カウンタ10
9のカウント動作が停止して、一定値以上のアングルク
ロックの発生を防止する。In the present embodiment, the internal clock (signal Pφ from the prescaler) is set to 20 MHz, and the tracking counter 109 can operate at a higher speed than other counters. In FIG. 4, at the time of deceleration, as the count operation of the reference counter 108 and the follow-up counter 109, the value of the reference counter 108 reaches n times the value of the guard counter 107 before the input of the crank edge. The count-up of 109 is prohibited. In this way, the guard counter 107 makes the reference counter 1
08 and the count-up operation of the tracking counter 109 stops at the multiple. As a result, the follow-up counter 10
The counting operation of No. 9 is stopped to prevent the generation of an angle clock having a certain value or more.
【0024】図3の点火・噴射用角度カウンタ110は
追従カウンタ109からのアングルクロックを入力して
カウントアップする(図4参照)。この点火・噴射用角
度カウンタ110のカウント値に基づいてコンペアレジ
スタを用いて点火・噴射制御がクランク角同期にて行わ
れる。つまり、点火・噴射用角度カウンタ110のカウ
ント値に従ってエンジンに対して燃料供給を実行する燃
料噴射装置の噴射時期を制御したり、エンジンの気筒内
の混合気を点火する点火装置による点火時期を制御し
て、点火・噴射用角度カウンタ110により点火・噴射
等の制御をクランク角同期でハード制御することができ
る。このように、所定の角度間隔で逓倍信号(逓倍クロ
ック)を生成してエンジン回転と同期をとるシステムと
することで、角度から時間への変換のための演算を不要
にでき、処理負荷の低減及び精度向上(n=32ならば
LSB=0.1875°CA)を図ることができること
となる。The ignition / injection angle counter 110 in FIG. 3 receives the angle clock from the follow-up counter 109 and counts up (see FIG. 4). Based on the count value of the ignition / injection angle counter 110, ignition / injection control is performed in synchronization with crank angle using a compare register. That is, it controls the injection timing of the fuel injection device that supplies fuel to the engine according to the count value of the ignition / injection angle counter 110, and controls the ignition timing of the ignition device that ignites the air-fuel mixture in the cylinder of the engine. Thus, the ignition / injection angle counter 110 can hardly control ignition / injection and the like in synchronization with the crank angle. As described above, a system for generating a multiplied signal (multiplied clock) at predetermined angular intervals and synchronizing with engine rotation can eliminate a calculation for converting from angle to time, thereby reducing a processing load. In addition, it is possible to improve the accuracy (LSB = 0.1875 ° CA if n = 32).
【0025】また、基準カウンタ108にはクランクエ
ッジ入力時にガード用カウンタ107のn倍(逓倍)の
値が転送(ロード)されるが、1サイクル720°CA
周期のカウンタにすべく、リセットしたいクランクエッ
ジの1つ前のクランクエッジでガード用カウンタ107
が「0」にリセットされる。The value of n times (multiplied) the value of the guard counter 107 is transferred (loaded) to the reference counter 108 when the crank edge is input.
In order to make the counter of the period, the guard counter 107 is set at the crank edge immediately before the crank edge to be reset.
Is reset to “0”.
【0026】図3のイベントカウンタ106はクランク
信号のパルスでの立ち下がりエッジでカウントアップす
るとともに同エッジ毎に角度周期割り込み信号を出力す
る。なお、イベントカウンタ106のカウント値はエン
ジン1サイクル(720°CA)で初期化される。The event counter 106 shown in FIG. 3 counts up at the falling edge of the pulse of the crank signal and outputs an angle cycle interrupt signal for each edge. Note that the count value of the event counter 106 is initialized in one engine cycle (720 ° CA).
【0027】また、CPU11はクランク信号の欠け歯
を、パルスの立ち下がりエッジ間における逓倍クロック
数から検出する。例えば、クランクエッジ間における基
準カウンタ108でのカウントアップ数が所定値を超え
ると欠け歯と判定する。The CPU 11 detects missing teeth of the crank signal from the number of multiplied clocks between the falling edges of the pulses. For example, if the count-up number of the reference counter 108 between crank edges exceeds a predetermined value, it is determined that the tooth is missing.
【0028】次に、このように構成したエンジン制御E
CU(エンジン制御装置)の作用について説明する。図
5に、クランク信号の表欠け歯位置でのタイムチャート
を示す。Next, the engine control E configured as described above will be described.
The operation of the CU (engine control device) will be described. FIG. 5 shows a time chart at the position of the missing teeth of the crank signal.
【0029】まず、t10のタイミングにて欠け歯直後
のパルスの立ち下がりエッジ(クランクエッジ)でカム
信号のレベルがLレベルであることにより表欠け歯であ
ると判定すると、CPU11はガード用カウンタ107
を「0」にリセットする。すると、基準カウンタ108
は、システムリセットしたい次のクランクエッジ(図中
のt11のタイミング)でガード用カウンタ107の値
「0」をロードし、この状態で追従カウンタ109のカ
ウント値が1サイクルガード値に到達していたら(図2
のt5のタイミング)、追従カウンタ109がハード的
に「0」にリセットされる。この追従カウンタ109が
「0」にリセットされると、点火・噴射用角度カウンタ
110にリセット信号を送る。First, at the timing t10, when the level of the cam signal is at the L level at the falling edge (crank edge) of the pulse immediately after the missing tooth, the CPU 11 determines that the tooth is a missing tooth.
Is reset to “0”. Then, the reference counter 108
Loads the value “0” of the guard counter 107 at the next crank edge (time t11 in the figure) at which the system reset is desired, and if the count value of the follow-up counter 109 reaches the one-cycle guard value in this state. (Figure 2
At timing t5), the follow-up counter 109 is reset to “0” by hardware. When the tracking counter 109 is reset to “0”, a reset signal is sent to the ignition / injection angle counter 110.
【0030】これを、図2で説明する。判別手段として
のCPU11は、クランク信号の欠け歯直後の立ち下が
りエッジ(t1,t2のタイミング)においてカム信号
のレベルを用いてクランク信号の表欠け歯と裏欠け歯を
判定する。このようにソフトで判定し、カム信号レベル
がLであり表欠け歯判定することにより、システム初期
化位置である第4気筒のBTDC6°CAの位置(t5
のタイミング)でハード的に追従カウンタ109がリセ
ットされるとともに、リセット信号の送出にて点火・噴
射用角度カウンタ110も同時に初期化される。また、
ソフトにより(CPU11により)、表欠け歯検出時に
は基準カウンタ108を表欠け歯相当値に設定し、ま
た、裏欠け歯検出時にはガード用カウンタ107と基準
カウンタ108をそれぞれ裏欠け歯相当値に設定するよ
うになっている。This will be described with reference to FIG. The CPU 11 as a determination unit determines the front missing teeth and the back missing teeth of the crank signal using the level of the cam signal at the falling edge (timing of t1 and t2) immediately after the missing tooth of the crank signal. As described above, the determination is made by software, the cam signal level is L, and the missing tooth is determined, whereby the position of the BTDC 6 ° CA (t5) of the fourth cylinder, which is the system initialization position, is set.
At the timing), the follow-up counter 109 is reset in a hardware manner, and the ignition / injection angle counter 110 is simultaneously initialized by sending the reset signal. Also,
By software (by the CPU 11), the reference counter 108 is set to the value corresponding to the missing tooth when the missing tooth is detected, and the guard counter 107 and the reference counter 108 are set to the value corresponding to the missing tooth when the missing tooth is detected. It has become.
【0031】このように、720°CA間に2個の欠け
歯を持つクランク信号を使ったシステムにおいて、図2
のタイムチャートのようにクランクエッジ間を逓倍した
信号にて動作する追従カウンタ109とこの追従カウン
タ109のカウントアップにより発生する角度クロック
(アングルクロック)でカウントアップする点火・噴射
用の角度カウンタ110を初期化する位置が720°C
Aの1サイクル間に1箇所しかない。初期化位置を確定
するためにはカム信号等の気筒判別信号の信号レベルを
用いて、ソフト制御で表欠け歯と裏欠け歯を識別して表
の時に初期化する。しかし、例えば図6のタイムチャー
トに示すように、カム信号にノイズが乗り、表裏判定時
の信号レベルが逆になった場合に、本来、表欠け歯のタ
イミングにも関わらず、裏欠け歯位置と誤判定し、追従
カウンタ109がリセットされず、次の表欠け歯までの
720°CA間は1サイクル720°CAの上限に追従
カウンタ109が張り付き、点火・噴射がその間抜けて
しまうという問題が発生する。As described above, in a system using a crank signal having two missing teeth during 720 ° CA, FIG.
As shown in the time chart, a tracking counter 109 operated by a signal obtained by multiplying the interval between crank edges and an ignition / injection angle counter 110 counting up by an angle clock (angle clock) generated by the counting up of the tracking counter 109. Initialization position is 720 ° C
There is only one location during one cycle of A. In order to determine the initialization position, the missing teeth and the missing teeth are identified by software control using the signal level of the cylinder discrimination signal such as the cam signal, and the initialization is performed when the table is displayed. However, as shown in the time chart of FIG. 6, for example, when noise is superimposed on the cam signal and the signal level at the time of the front / back determination is reversed, the position of the back tooth is originally determined regardless of the timing of the front missing tooth. Erroneously, the tracking counter 109 is not reset, and the tracking counter 109 sticks to the upper limit of 720 ° CA in one cycle during 720 ° CA until the next missing tooth, and the ignition / injection is lost during that time. appear.
【0032】つまり、図6のt20の欠け歯検出割り込
みタイミングにおいて、カム信号のレベルがノイズによ
りHレベルとなり裏欠け歯と判定されていまい、ガード
用カウンタ107を360°CAの値(裏欠け歯相当
値)に設定する。そして、次のクランク信号の立ち下が
りエッジであるt21のタイミングにおいて基準カウン
タ108は「0」にリセットされないので追従カウンタ
109が1サイクルガード値に張り付き、リセット信号
が出ない。これにより、点火・噴射用角度カウンタ11
0が1サイクルガード値に張り付き、角度一致が起きな
くなり、点火・噴射が停止する。次の表欠け歯検出まで
追従カウンタ109が1サイクルガード値に張り付いた
ままなので720°CA間、点火・噴射が停止する。That is, at the timing of the missing tooth detection interrupt at t20 in FIG. 6, the level of the cam signal becomes H level due to noise, and it is determined that the tooth is a missing tooth. The guard counter 107 is set to the value of 360 ° CA (the missing tooth). (Equivalent value). Since the reference counter 108 is not reset to “0” at the timing t21 which is the falling edge of the next crank signal, the follow-up counter 109 sticks to the one-cycle guard value and no reset signal is output. Thereby, the ignition / injection angle counter 11
0 sticks to the 1-cycle guard value, the angle coincidence does not occur, and the ignition / injection stops. Since the follow-up counter 109 remains stuck at the one-cycle guard value until the next missing tooth detection, the ignition / injection is stopped for 720 ° CA.
【0033】この問題はカム信号のレベルだけでなくカ
ム信号の波形を認識して気筒判別することで(具体的に
は、図2の期間T1,T2を計測することで)、解決で
きるが、欠け歯位置以外の場所でクランク信号にノイズ
等が入ると、欠け歯誤検出して気筒誤判別することによ
りアングルクロックが停止するという問題が生じる。こ
れを、図7を用いて説明する。図7は、クランク信号に
ノイズが入り、欠け歯誤検出した時のタイムチャートで
ある。This problem can be solved by recognizing not only the level of the cam signal but also the waveform of the cam signal to determine the cylinder (specifically, by measuring the periods T1 and T2 in FIG. 2). If noise or the like enters the crank signal at a location other than the position of the missing tooth, a problem arises that the angle clock is stopped by erroneously detecting the missing tooth and erroneously determining the cylinder. This will be described with reference to FIG. FIG. 7 is a time chart when noise is included in the crank signal and an erroneous missing tooth is detected.
【0034】図7のt30のタイミングでクランク信号
にノイズが乗り、欠け歯を誤検出すると、誤検出した場
所で気筒判別してしまう。このように裏欠け歯と判定し
たとすると、ガード用カウンタ107と基準カウンタ1
08に裏欠け歯値(「59」、「59×逓倍数」)を設
定する。その後、追従および点火・噴射用角度カウンタ
109,110がカウントアップしていき、t31のタ
イミングで正規の裏欠け歯を検出したら、ガード用カウ
ンタ107と基準カウンタ108に裏欠け歯値を設定す
る。しかし、この時、先の裏欠け歯誤検出により裏欠け
歯相当の値から既にカウントアップしているので、正規
の裏欠け歯検出時は裏欠け歯相当値より大きな値になっ
ているため、設定する値は現在値より小さい値を設定す
ることになる。追従カウンタ109は基準カウンタ10
8が「0」にリセットされた時のみリセットされるの
で、追従カウンタ109は裏欠け歯相当値にはリセット
されない。よって、基準カウンタ<追従カウンタになっ
ているため、t31以降で基準カウンタ108がカウン
トアップしても、基準カウンタ>追従カウンタが成立す
るt32のタイミングまで追従カウンタ109は停止し
ている。追従カウンタ109が停止するとアングルクロ
ックを出力しないので、点火・噴射用角度カウンタ11
0も停止し、そのため、表欠け歯直後で欠け歯誤検出し
た場合は、最悪720°CA間追従カウンタ109が異
常になってしまう。これにより、点火・噴射用角度カウ
ンタ110もその間、異常となり、点火・噴射出力が異
常となり、最悪停止する。If noise is present in the crank signal at the timing of t30 in FIG. 7 and a missing tooth is erroneously detected, the cylinder is determined at the erroneously detected location. If it is determined that the tooth is a back missing tooth, the guard counter 107 and the reference counter 1
08 is set to the missing tooth value (“59”, “59 × multiplier”). Thereafter, the follow-up and ignition / injection angle counters 109 and 110 count up, and when a regular back missing tooth is detected at the timing of t31, the back missing tooth value is set in the guard counter 107 and the reference counter 108. However, at this time, since the value has already been counted up from the value corresponding to the missing tooth due to the earlier misdetection of the missing tooth, the value is larger than the value corresponding to the missing tooth when the normal missing tooth is detected. The value to be set is smaller than the current value. The tracking counter 109 is the reference counter 10
Since it is reset only when 8 is reset to "0", the follow-up counter 109 is not reset to the value corresponding to the missing tooth. Therefore, since the reference counter is smaller than the tracking counter, even if the reference counter 108 counts up after t31, the tracking counter 109 is stopped until the timing t32 when the reference counter> tracking counter is established. Since the angle clock is not output when the follow-up counter 109 stops, the ignition / injection angle counter 11
0 also stops, so if the missing tooth is detected immediately after the missing tooth, the worst 720 ° CA tracking counter 109 becomes abnormal. As a result, the ignition / injection angle counter 110 also becomes abnormal during that time, and the ignition / injection output becomes abnormal, causing the worst stop.
【0035】このように、図7のt30〜t32の期間
において追従および点火・噴射用角度カウンタ109,
110が異常になるとともに、t31〜t32の期間に
おいて両カウンタ109,110のカウント動作が停止
する。As described above, during the period from t30 to t32 in FIG. 7, the tracking and ignition / injection angle counters 109,
When 110 becomes abnormal, the counting operation of both counters 109 and 110 stops during the period from t31 to t32.
【0036】そこで、早期に追従および点火・噴射用角
度カウンタ109,110を復帰させる方法として、裏
欠け歯検出時に基準カウンタ108の値として現在値よ
り小さな値を設定する場合はクランク信号にノイズが入
ったと判断して追従カウンタ109と点火・噴射用角度
カウンタ110を裏欠け歯相当値に設定することによ
り、表欠け歯検出よりも早期に点火・噴射を復帰させる
ことができる(360°CA以内に復帰させることがで
きる)。Therefore, as a method of returning the follow-up and ignition / injection angle counters 109 and 110 at an early stage, when a value smaller than the present value is set as the value of the reference counter 108 at the time of detecting the missing teeth, noise is included in the crank signal. By setting the following counter 109 and the ignition / injection angle counter 110 to the values corresponding to the missing teeth, it is possible to return the ignition / injection earlier than the detection of the missing teeth (within 360 ° CA). Can be restored).
【0037】具体的には、図8に示すように、t40の
タイミングでクランク信号にノイズが乗り欠け歯を誤検
出してカウンタ108〜110が異常になっている時は
t41での正規の裏欠け歯位置で追従カウンタ109と
点火・噴射用角度カウンタ110も裏欠け歯相当値にセ
ットすることで、必ず360°CA以内にカウンタ10
8〜110が正常復帰するようになる。詳しくは、図8
のt40でノイズにより欠け歯誤検出して裏欠け歯を判
別すると、基準カウンタ108の値を裏欠け歯相当値に
持ち上げ、これにより、追従カウンタ109の値も持ち
上がる。そして、t41のタイミングで基準カウンタ1
08と共に追従カウンタ109を裏欠け歯相当値にセッ
トすることにより裏欠け歯検出後は正常に動作する。More specifically, as shown in FIG. 8, when the crank signal is erroneously detected at the timing of t40 and a missing tooth is erroneously detected and the counters 108 to 110 are abnormal, the regular back-up at t41 is performed. By setting the follow-up counter 109 and the ignition / injection angle counter 110 at the missing tooth position to the value corresponding to the missing tooth, the counter 10 must be kept within 360 ° CA.
8 to 110 return to normal. For details, see FIG.
At t40, when the missing tooth is erroneously detected due to noise and the back missing tooth is determined, the value of the reference counter 108 is raised to the value corresponding to the missing tooth, and the value of the follow-up counter 109 is also raised. Then, at the timing of t41, the reference counter 1
By setting the follow-up counter 109 to a value corresponding to the missing tooth together with 08, normal operation is performed after the missing tooth is detected.
【0038】図9に、欠け歯検出割り込みのフローチャ
ートを示す。CPU11は、図9の欠け歯検出割り込み
において、ステップ901で表欠け歯か裏欠け歯を判定
し、表欠け歯ならばステップ905でガード用カウンタ
107と基準カウンタ108に表欠け歯相当値を設定
し、また、裏欠け歯ならばステップ902でガード用カ
ウンタ107と基準カウンタ108に裏欠け歯相当値を
設定するだけでなく、本実施形態では、次の処理を実行
する。FIG. 9 shows a flowchart of the missing tooth detection interrupt. In the missing tooth detection interrupt shown in FIG. 9, the CPU 11 determines whether there is a missing or missing tooth in step 901 and, if the missing tooth is present, sets a value corresponding to the missing tooth in the guard counter 107 and the reference counter 108 in step 905. In the case of a missing tooth, not only the value corresponding to the missing tooth is set in the guard counter 107 and the reference counter 108 in step 902, but in the present embodiment, the following processing is executed.
【0039】CPU11は、欠け歯誤検出でカウンタ1
08〜110が異常になることを防ぐため、ステップ9
02でガード用カウンタ107と基準カウンタ108に
裏欠け歯相当値を設定した後、ステップ903で現在の
追従カウンタ109の値と裏欠け歯判定値(「59+2
×逓倍数」)とを比較して、現在の追従カウンタ109
の値が裏欠け歯判定値よりも大きいか否か判定する。つ
まり、正常なら追従カウンタ109の値は裏欠け歯判定
値以下になっているはずなので、追従カウンタ109の
値が判定値より大きくなる時はクランク信号が異常であ
ると判定できる。このときの判定値は、正規の欠け歯位
置の値プラス「2」にしているが、他にも判定値は正規
の欠け歯位置の値プラス「1」等でもよい。The CPU 11 starts counting the counter 1 when the missing tooth is erroneously detected.
In order to prevent 08-110 from becoming abnormal, step 9
02, a value corresponding to the missing teeth is set in the guard counter 107 and the reference counter 108, and then in step 903, the current value of the following counter 109 and the missing teeth determination value (“59 + 2”) are set.
× multiplier number ”) and compare the current tracking counter 109
Is determined to be greater than the value of the missing tooth determination value. In other words, if the value of the follow-up counter 109 should be equal to or less than the determination value of the missing tooth, if it is normal, it can be determined that the crank signal is abnormal when the value of the follow-up counter 109 becomes larger than the determination value. The determination value at this time is the value of the regular missing tooth position plus “2”, but the determination value may be the value of the regular missing tooth position plus “1”.
【0040】CPU11は、ステップ903において異
常と判定した場合は(図8のt41のタイミングでは)
ステップ904に移行して追従カウンタ109と点火・
噴射用角度カウンタ110に強制的に裏欠け歯相当値を
書き込む。一方、CPU11は、ステップ903におい
て正常と判定した場合はステップ904の処理は行わ
ず、追従カウンタ109と点火・噴射用角度カウンタ1
10はそのままにする。これは、処理負荷を低減するた
めと、追従カウンタ109に値を書き込む際にクロック
が発生してしまうことを回避するためであり、本当に異
常と判断した時だけ追従カウンタ109に値を書き込む
ようにしている。When the CPU 11 determines in step 903 that there is an abnormality (at the timing of t41 in FIG. 8).
The routine proceeds to step 904, where the tracking counter 109 and the ignition
The value corresponding to the missing tooth is forcibly written into the injection angle counter 110. On the other hand, if it is determined in step 903 that it is normal, the CPU 11 does not perform the processing of step 904, but follows the follow-up counter 109 and the ignition / injection angle counter 1
Leave 10 as it is. This is to reduce the processing load and to avoid the occurrence of a clock when writing a value to the tracking counter 109, and to write the value to the tracking counter 109 only when it is truly determined that there is an abnormality. ing.
【0041】また、CPU11は、上述したようにステ
ップ901において表欠け歯と判定した場合には、本シ
ステムは表欠け歯位置がシステム初期化位置なので、ノ
イズによる誤検出しても次に正規欠け歯位置(表・裏の
両欠け歯)で必ず復帰できるため、ステップ905でガ
ード用カウンタ107と基準カウンタ108に表欠け歯
相当値を書き込むだけで追従カウンタ109と点火・噴
射用角度カウンタ110に値は書き込まない。If the CPU 11 determines that there is a missing tooth in step 901 as described above, the present system determines that the missing tooth position is the system initialization position. Since it is possible to always return to the tooth position (both front and rear missing teeth), the following counter 109 and the ignition / injection angle counter 110 are written in the guard counter 107 and the reference counter 108 simply by writing the corresponding values to the guard counter 107 and the reference counter 108 in step 905. No value is written.
【0042】以上のように、角度カウンタ109,11
0と点火・噴射時期等との角度一致でハード出力してい
るシステムで720°CA間に2個の欠け歯を持つクラ
ンク信号を使い、カム信号等の気筒判別信号で表裏を判
定するシステムにおいて、クランク信号へのノイズ等に
より欠け歯誤検出して、アングルクロックの生成が停止
した時、ハード的な初期化位置よりも早く角度カウンタ
109,110を復帰させることにより(360°CA
以内に復帰させ)、早期に角度制御を正常化して点火・
噴射制御が停止する期間を短くすることができる。As described above, the angle counters 109 and 11
In a system in which a hard output is made at the angle coincidence between 0 and the ignition / injection timing, etc., in a system in which a crank signal having two missing teeth is used between 720 ° CA and a front / back side is determined by a cylinder determination signal such as a cam signal. When the generation of the angle clock is stopped due to false detection of missing teeth due to noise in the crank signal or the like, the angle counters 109 and 110 are returned earlier than the hardware initialization position (360 ° CA).
), Normalize the angle control early and
The period during which the injection control is stopped can be shortened.
【0043】このように、本実施の形態は下記の特徴を
有する。 (イ)基準カウンタ108と追従カウンタ109がクラ
ンク信号の720°CA毎の表の欠け歯位置で初期化さ
れるシステムにおいて、カウント値設定手段としてのC
PU11は、図9のステップ901でクランク信号の7
20°CA毎の裏の欠け歯であると判定した時に、ステ
ップ902で基準カウンタ108のカウント値を裏の欠
け歯相当の値に設定するとともに、ステップ903で追
従カウンタ109のカウント値が所定値を超えていると
ステップ904で追従カウンタ109のカウント値を裏
の欠け歯相当の値に設定する。よって、追従カウンタ1
09は基準カウンタ108のカウント値を超えない範囲
でカウントアップしており、表欠け歯位置から裏欠け歯
位置までの間においてクランク信号にノイズが乗り裏の
欠け歯を誤検出した場合、基準カウンタ108のカウン
ト値が裏の欠け歯相当の値に設定されて、その後の裏の
欠け歯を正規に検出するまで追従カウンタ109がカウ
ント動作を行い当該正規に裏の欠け歯を検出したときに
基準カウンタ108のカウント値が裏の欠け歯相当の値
に設定されると基準カウンタ108のカウント値が追従
カウンタ109のカウント値を超えるまで追従カウンタ
109のカウント動作は行われないが、裏の欠け歯を誤
検出した後の裏の欠け歯を正規に検出した時において、
追従カウンタ109のカウント値が所定値を超えている
ので追従カウンタ109のカウント値が裏の欠け歯相当
の値に設定され、追従カウンタ109のカウント動作が
開始されることになる。このようにして、クランク信号
によって裏の欠け歯を判定する際に、クランク信号にノ
イズが乗り裏の欠け歯を誤検出した場合にも360°C
A以内に追従カウンタ109を正規の状態で作動させる
ことができる。その結果、クランク信号にノイズが乗っ
たとしても適正にエンジン制御を行うことができ、ノイ
ズに強いエンジン制御装置となる。As described above, this embodiment has the following features. (A) In a system in which the reference counter 108 and the follow-up counter 109 are initialized with the missing tooth positions in the table at every 720 ° CA of the crank signal, C as the count value setting means
In step 901 in FIG.
When it is determined that there is a back missing tooth at every 20 ° CA, the count value of the reference counter 108 is set to a value corresponding to the back missing tooth in step 902, and the count value of the follow-up counter 109 is set to a predetermined value in step 903. Is exceeded, the count value of the follow-up counter 109 is set to a value corresponding to the missing tooth on the back in step 904. Therefore, the tracking counter 1
09 is counted up within a range not exceeding the count value of the reference counter 108. If noise is detected in the crank signal from the front missing tooth position to the back missing tooth position and the missing tooth on the back side is erroneously detected, the reference counter 109 is used. When the count value of 108 is set to a value corresponding to the back missing tooth, the tracking counter 109 performs a counting operation until the subsequent back missing tooth is properly detected, and the reference value is set when the back missing tooth is detected. If the count value of the counter 108 is set to a value corresponding to the missing tooth on the back, the counting operation of the tracking counter 109 is not performed until the count value of the reference counter 108 exceeds the count value of the tracking counter 109, but the missing tooth on the back is missing. When the missing tooth on the back after the false detection of
Since the count value of the follow-up counter 109 exceeds the predetermined value, the count value of the follow-up counter 109 is set to a value corresponding to the missing tooth on the back, and the count operation of the follow-up counter 109 is started. In this manner, when determining the back missing tooth based on the crank signal, even if noise is applied to the crank signal and the back missing tooth is erroneously detected, 360 ° C.
The tracking counter 109 can be operated in a normal state within A. As a result, even if noise is included in the crank signal, the engine control can be appropriately performed, and the engine control device is resistant to noise.
【0044】なお、図9は表欠け歯位置が初期化位置の
場合のフローであり、初期化位置が表欠け歯位置からズ
レていた場合は、図9のステップ905の処理の後に表
欠け歯位置相当値の設定処理を行うようにすればよい。
要は、基準カウンタ108と追従カウンタ109は、ク
ランク信号の720°CA毎の表欠け歯を基準として7
20°CA毎に初期化するものであればよい。 (第2の実施の形態)次に、第2の実施の形態を、第1
の実施の形態との相違点を中心に説明する。FIG. 9 is a flow chart in the case where the position of the missing tooth is the initialization position. If the initialization position is shifted from the position of the missing tooth, the missing tooth is processed after the processing of step 905 in FIG. What is necessary is just to perform the setting process of a position equivalent value.
In short, the reference counter 108 and the follow-up counter 109 are based on the tooth missing tooth at every 720 ° CA of the crank signal.
What is necessary is just to initialize every 20 degree CA. (Second Embodiment) Next, a second embodiment will be described with reference to the first embodiment.
The following description focuses on the differences from this embodiment.
【0045】本実施の形態においては、欠け歯検出割り
込みで(正規の欠け歯検出条件でない時に)、カード用
カウンタ107の値が正規の値でなければ欠け歯誤検出
したと判断して、ガード用カウンタ107と基準カウン
タ108に欠け歯相当値をセットすることを禁止して欠
け歯誤検出しても即復帰させるようにしている。In the present embodiment, if the value of the card counter 107 is not a regular value, it is determined that a missing tooth has been erroneously detected by a missing tooth detection interrupt (when the normal missing tooth detection condition is not satisfied), and the guard is detected. The setting of the missing tooth equivalent value in the counter 107 and the reference counter 108 is prohibited, so that even if a missing tooth is erroneously detected, it is immediately restored.
【0046】具体的には、図10に示すように、クラン
ク信号にノイズが乗り、t50のタイミングでの欠け歯
検出割り込み時にカム信号のレベルがHレベルなので裏
欠け歯と判定されてしまいガード用カウンタ107と基
準カウンタ108を裏欠け歯相当値に設定しようとする
が、本実施形態では、ガード用カウンタ107の値が所
定範囲Xに入っているか否か判定して正規の欠け歯割り
込みかどうかを判定して、正規の位置でないと判断した
場合はガード用カウンタ107と基準カウンタ108を
欠け歯相当値にセットするのを禁止することで、欠け歯
誤検出で追従および点火・噴射用角度カウンタ109,
110が異常になることを防止する。つまり、図10中
の比較例に比べ本実施形態ではカウント値が所定範囲X
に入っていないと欠け歯相当値にセットするのを禁止す
る。More specifically, as shown in FIG. 10, noise is present in the crank signal, and the level of the cam signal is H level at the time of interruption of missing tooth detection at the timing of t50. The counter 107 and the reference counter 108 are set to the value corresponding to the missing tooth. In the present embodiment, it is determined whether the value of the guard counter 107 is within the predetermined range X and whether the interrupt is a normal missing tooth is determined. Is determined, the guard counter 107 and the reference counter 108 are prohibited from being set to the value corresponding to the missing tooth. 109,
110 is prevented from becoming abnormal. That is, in this embodiment, as compared with the comparative example in FIG.
If it does not, it is prohibited to set it to the value equivalent to the missing tooth.
【0047】これにより、図7において裏欠け歯後にク
ランク信号にノイズが入り、欠け歯を誤検出した場合に
おいて追従カウンタ>基準カウンタの間は追従カウンタ
109のカウントアップは停止するが、本実施形態では
これも回避できる。As a result, in FIG. 7, when the crank signal contains noise after the missing tooth and the missing tooth is erroneously detected, the count-up of the following counter 109 is stopped while the following counter> the reference counter. Then this can be avoided.
【0048】図11に、欠け歯検出割り込みのフローチ
ャートを示す。CPU11は、図11の欠け歯検出割り
込みにおいて、ステップ1001で表欠け歯か裏欠け歯
を判定して、判定したら即ステップ1003、ステップ
1005で裏欠け歯相当値及び表欠け歯相当値を設定す
るのではなく、次のようにする。FIG. 11 shows a flowchart of the missing tooth detection interrupt. In the missing tooth detection interrupt in FIG. 11, the CPU 11 determines whether a missing tooth or a missing tooth is determined in step 1001 and, if determined, immediately sets a corresponding missing tooth value and a corresponding missing tooth value in steps 1003 and 1005. Instead of:
【0049】欠け歯誤検出によるカウンタ109,11
0の異常を回避すべく、まず、CPU11は、ステップ
1001において表欠け歯か裏欠け歯かの判定を行った
結果、裏欠け歯であった場合は、ステップ1002でガ
ード用カウンタ107が裏欠け歯相当値(「59」)か
どうか判定する。この時の判定値には、ノイズが入って
も正規の欠け歯で正常復帰させるために±2のマージン
を持たせている。このマージンは±2以外にも±1等で
もよい。そして、CPU11は、ステップ1002にお
いて正常の場合はステップ1003でガード用カウンタ
107と基準カウンタ108に裏欠け歯相当値を設定す
るが、異常と判定した時はノイズによる欠け歯誤検出で
あるとして、ステップ1003でのカウント値の設定処
理を行わない(設定を禁止する)。Counters 109 and 11 due to erroneous detection of missing teeth
In order to avoid the abnormality of 0, the CPU 11 first determines whether the tooth is a front missing tooth or a back missing tooth in step 1001. It is determined whether the value is a tooth equivalent value ("59"). The judgment value at this time has a margin of ± 2 in order to restore the normal state with a normal missing tooth even if noise enters. This margin may be ± 1 or the like in addition to ± 2. Then, the CPU 11 sets a value corresponding to the back missing tooth in the guard counter 107 and the reference counter 108 in step 1003 if the result is normal in step 1002. The count value setting process in step 1003 is not performed (setting is prohibited).
【0050】また、CPU11は、ステップ1001に
おいて表欠け歯であった場合は、ステップ1004でガ
ード用カウンタ107が表欠け歯相当値(「119」)
かどうか判定する。この時の判定値には、裏欠け歯と同
様にノイズが入っても正規の欠け歯で正常復帰させるた
めに±2(それ以外にも±1等でも可)のマージンを持
たせている。そして、CPU11は、ステップ1004
において正常の場合はステップ1005でガード用カウ
ンタ107と基準カウンタ108に表欠け歯相当値を設
定するが、異常と判定した時はノイズによる欠け歯検出
であるとして、ステップ1005でのカウント値の設定
処理を行わない(設定を禁止する)。If it is determined in step 1001 that there is a missing tooth, the CPU 11 sets the guard counter 107 to a value corresponding to the missing tooth (“119”) in step 1004.
Is determined. The judgment value at this time is provided with a margin of ± 2 (± 1 or the like is also possible) in order to restore the normal state with a normal missing tooth even if noise enters similarly to the back missing tooth. Then, the CPU 11 determines in step 1004
In step 1005, a value corresponding to a missing tooth is set in the guard counter 107 and the reference counter 108 in step 1005. When it is determined that there is an abnormality, it is determined that a missing tooth has been detected due to noise, and the count value is set in step 1005. No processing (setting prohibited).
【0051】なお、図11のステップ1002と100
4では、ガード用カウンタ107(クランク信号のパル
スにてカウント動作するカウンタ)のカウント値を用い
たが、追従カウンタ109のカウント値を用いてもよ
い。また、ステップ1003,1005において基準カ
ウンタ108のカウント値を欠け歯相当値にしたが、追
従カウンタ109のカウント値を欠け歯相当値にした
り、基準および追従カウンタ108,109のカウント
値を欠け歯相当値にしてもよい。Note that steps 1002 and 1002 in FIG.
In 4, the count value of the guard counter 107 (a counter that counts with a pulse of a crank signal) is used, but the count value of the follow-up counter 109 may be used. In steps 1003 and 1005, the count value of the reference counter 108 is set to a missing tooth equivalent value. However, the count value of the following counter 109 is set to a missing tooth equivalent value, or the count values of the reference and following counters 108 and 109 are set to a missing tooth equivalent value. It may be a value.
【0052】このように、本実施の形態は下記の特徴を
有する。 (イ)基準カウンタ108と追従カウンタ109がクラ
ンク信号の720°CA毎の表の欠け歯位置で初期化さ
れるシステムにおいて、カウント値設定手段としてのC
PU11は、図11のステップ1001でクランク信号
の720°CA毎の裏の欠け歯であると判定した時に、
ステップ1002でガード用カウンタ107または追従
カウンタ109のカウント値が所定の範囲に入っていた
場合のみステップ1003で基準カウンタ108と追従
カウンタ109の少なくともいずれかのカウント値を裏
の欠け歯相当の値に設定する。換言すれば、クランク信
号の720°CA毎の裏の欠け歯であると判定した時
に、ガード用カウンタ107のカウント値または追従カ
ウンタ109のカウント値が所定の範囲に入っていない
と基準カウンタ108と追従カウンタ109の少なくと
もいずれかのカウント値の裏の欠け歯相当の値への設定
は行わない。つまり、クランク信号にノイズが乗り裏の
欠け歯を誤検出した場合には、ガード用カウンタ107
のカウント値または追従カウンタ109のカウント値が
所定の範囲に入っておらず基準カウンタ108と追従カ
ウンタ109の少なくともいずれかのカウント値の裏の
欠け歯相当の値への設定は行われない。よって、クラン
ク信号によって裏の欠け歯を判定する際に、クランク信
号にノイズが乗り裏の欠け歯を誤検出した場合にもカウ
ンタを正規の状態で作動させることができる。その結
果、クランク信号にノイズが乗ったとしても適正にエン
ジン制御を行うことができ、ノイズに強いエンジン制御
装置となる。 (ロ)さらに、CPU11は、図11のステップ100
1においてクランク信号の720°CA毎の表の欠け歯
であると判定した時に、ステップ1004でガード用カ
ウンタ107または追従カウンタ109のカウント値が
所定の範囲に入っていた場合のみステップ1005で基
準カウンタ108と追従カウンタ109の少なくともい
ずれかのカウント値を表の欠け歯相当の値に設定するの
で、クランク信号にノイズが乗り表の欠け歯を誤検出し
た場合にも誤った表欠け歯相当値への設定は行われず、
カウンタを正規の状態で作動させることができる。As described above, this embodiment has the following features. (A) In a system in which the reference counter 108 and the follow-up counter 109 are initialized with the missing tooth positions in the table at every 720 ° CA of the crank signal, C as the count value setting means
When the PU 11 determines in step 1001 of FIG. 11 that there is a missing tooth on the back of each 720 ° CA of the crank signal,
Only when the count value of the guard counter 107 or the follow-up counter 109 is within a predetermined range in step 1002, at step 1003, at least one of the count values of the reference counter 108 and the follow-up counter 109 is set to a value corresponding to the missing tooth on the back. Set. In other words, when it is determined that there is a missing tooth on the back of each 720 ° CA of the crank signal, if the count value of the guard counter 107 or the count value of the follow-up counter 109 does not fall within a predetermined range, the reference counter 108 and At least one of the count values of the follow-up counter 109 is not set to a value corresponding to the missing tooth on the back. That is, when noise is detected in the crank signal and a missing tooth on the back side is erroneously detected, the guard counter 107
And the count value of the follow-up counter 109 does not fall within the predetermined range, and at least one of the count values of the reference counter 108 and the follow-up counter 109 is not set to a value corresponding to the missing tooth on the back. Therefore, when the back missing tooth is determined based on the crank signal, the counter can be operated in a normal state even when noise is present in the crank signal and the back missing tooth is erroneously detected. As a result, even if noise is included in the crank signal, the engine control can be appropriately performed, and the engine control device is resistant to noise. (B) Further, the CPU 11 executes step 100 in FIG.
When it is determined in step 1 that there is a missing tooth in the table at every 720 ° CA of the crank signal, only when the count value of the guard counter 107 or the following counter 109 is within a predetermined range in step 1004, the reference counter is determined in step 1005. Since at least one of the count values of the tracking counter 108 and the follow-up counter 109 is set to a value corresponding to the missing tooth in the table, even if noise is detected in the crank signal and the missing tooth in the table is erroneously detected, the value corresponding to the incorrect missing tooth is obtained. Is not set,
The counter can be operated in a normal state.
【0053】なお、これまでの説明ではクランク信号の
基準位置部は、パルス列の途中においてパルスを抜いた
欠け歯であったが、これに限ることなく、他の構造(パ
ルス列の途中にパルスを挿入する等の構造)にて所定角
度間隔毎のパルス列の途中においてパルス間隔が不等な
基準位置部を構成してもよい。In the above description, the reference position portion of the crank signal is a missing tooth from which a pulse is extracted in the middle of a pulse train. However, the present invention is not limited to this. A reference position portion having unequal pulse intervals may be formed in the middle of a pulse train at predetermined angular intervals.
【0054】また、クランク信号の表の欠け歯と裏の欠
け歯の判別は欠け歯におけるカム信号のレベルに基づい
て行ったが、それ以外にも、例えば、図3のイベントカ
ウンタ106のカウント値(エッジ入力数)から行って
もよい。Further, the discrimination between the missing tooth on the front and the missing tooth on the back of the crank signal is made based on the level of the cam signal at the missing tooth. In addition, for example, the count value of the event counter 106 in FIG. (The number of edge inputs).
【図1】 実施の形態におけるエンジン制御ECUの構
成図。FIG. 1 is a configuration diagram of an engine control ECU according to an embodiment.
【図2】 エンジン1サイクル分(720°CA)のタ
イムチャート。FIG. 2 is a time chart of one engine cycle (720 ° CA).
【図3】 ハードクランクの構成図。FIG. 3 is a configuration diagram of a hard crank.
【図4】 ハードクランクによるアングルクロックの生
成を説明するためのタイムチャート。FIG. 4 is a time chart for explaining generation of an angle clock by a hard crank.
【図5】 表欠け歯時の角度カウンタのリセット処理を
説明するためのタイムチャート。FIG. 5 is a time chart for explaining a reset process of an angle counter at the time of a missing tooth.
【図6】 カム信号にノイズが乗った時の状況を説明す
るためのタイムチャート。FIG. 6 is a time chart for explaining a situation when noise is present on the cam signal.
【図7】 クランク信号にノイズが乗った時の状況を説
明するためのタイムチャート。FIG. 7 is a time chart for explaining a situation when noise is present on the crank signal.
【図8】 クランク信号にノイズが乗って誤判定した時
の角度カウンタ処理を説明するためのタイムチャート。FIG. 8 is a time chart for explaining an angle counter process when an erroneous determination is made due to noise on a crank signal.
【図9】 欠け歯割り込みでの処理を示すフローチャー
ト。FIG. 9 is a flowchart showing processing in interrupting missing teeth.
【図10】 第2の実施の形態におけるクランク信号に
ノイズが乗って誤判定した時の角度カウンタ処理を説明
するためのタイムチャート。FIG. 10 is a time chart for explaining an angle counter process when noise is included in a crank signal and an erroneous determination is made according to the second embodiment;
【図11】 欠け歯割り込みでの処理を示すフローチャ
ート。FIG. 11 is a flowchart showing processing in missing tooth interruption.
1…エンジン制御ECU、10…マイコン、11…CP
U、16…タイマモジュール、100…ハードクラン
ク、103…エッジ時間計測カウンタ、104…逓倍レ
ジスタ、105…逓倍カウンタ、107…ガード用カウ
ンタ、108…基準レジスタ、109…追従カウンタ、
110…点火・噴射用角度カウンタ。DESCRIPTION OF SYMBOLS 1 ... Engine control ECU, 10 ... Microcomputer, 11 ... CP
U, 16: timer module, 100: hard crank, 103: edge time measurement counter, 104: multiplication register, 105: multiplication counter, 107: guard counter, 108: reference register, 109: follow-up counter,
110 ... Ignition / injection angle counter.
Claims (5)
に対応した所定角度間隔毎のパルス列の途中に基準位置
部を360°CA毎に有するクランク信号を発生するク
ランク信号発生手段と、 前記クランク信号を入力してパルス間隔を計測するパル
ス間隔計測手段と、 前記パルス間隔計測手段による今回のパルス間隔を基に
して次のパルスまでに整数倍の周波数の逓倍信号を生成
する逓倍信号生成手段と、 前記逓倍信号にてカウント動作する基準カウンタと、 内部クロックにて前記基準カウンタのカウント値を超え
ない範囲でカウント動作し、前記基準カウンタと共に前
記クランク信号の720°CA毎の表の基準位置部を基
準として720°CA毎に初期化される追従カウンタ
と、 前記クランク信号の720°CA毎の裏の基準位置部で
あると判定した時に、前記基準カウンタのカウント値を
裏の基準位置相当の値に設定するとともに、追従カウン
タのカウント値が所定値を超えていると追従カウンタの
カウント値を裏の基準位置相当の値に設定するカウント
値設定手段と、を備えたことを特徴とするエンジン制御
装置。1. Crank signal generating means for generating a crank signal having a reference position portion at every 360 ° CA in a pulse train at predetermined angular intervals corresponding to rotation of a crankshaft of a four-cycle engine; A pulse interval measuring means for inputting and measuring a pulse interval; a multiplied signal generating means for generating a multiplied signal of an integral multiple frequency until the next pulse based on the current pulse interval by the pulse interval measuring means; A reference counter that counts with a multiplied signal; and a count operation that does not exceed the count value of the reference counter with an internal clock. The reference counter and the reference position in the table for each 720 ° CA of the crank signal are used together with the reference counter. A tracking counter initialized at every 720 ° CA, and a reference position portion at the back of each 720 ° CA of the crank signal. When it is determined, the count value of the reference counter is set to a value corresponding to the back reference position, and when the count value of the tracking counter exceeds a predetermined value, the count value of the tracking counter is set to a value corresponding to the back reference position. An engine control device comprising: a count value setting unit that sets the count value.
に対応した所定角度間隔毎のパルス列の途中に基準位置
部を360°CA毎に有するクランク信号を発生するク
ランク信号発生手段と、 前記クランク信号を入力してパルス間隔を計測するパル
ス間隔計測手段と、 前記パルス間隔計測手段による今回のパルス間隔を基に
して次のパルスまでに整数倍の周波数の逓倍信号を生成
する逓倍信号生成手段と、 前記逓倍信号にてカウント動作する基準カウンタと、 内部クロックにて前記基準カウンタのカウント値を超え
ない範囲でカウント動作し、前記基準カウンタと共に前
記クランク信号の720°CA毎の表の基準位置部を基
準として720°CA毎に初期化される追従カウンタ
と、 前記クランク信号の720°CA毎の裏の基準位置部で
あると判定した時に、前記追従カウンタのカウント値ま
たは前記クランク信号のパルスにてカウント動作するカ
ウンタのカウント値が所定の範囲に入っていた場合のみ
前記基準カウンタと追従カウンタの少なくともいずれか
のカウント値を裏の基準位置相当の値に設定するカウン
ト値設定手段と、を備えたことを特徴とするエンジン制
御装置。2. A crank signal generating means for generating a crank signal having a reference position portion at every 360 ° CA in the middle of a pulse train at a predetermined angular interval corresponding to the rotation of a crankshaft of a four-cycle engine; A pulse interval measuring means for inputting and measuring a pulse interval; a multiplied signal generating means for generating a multiplied signal of an integral multiple frequency until the next pulse based on the current pulse interval by the pulse interval measuring means; A reference counter that counts with a multiplied signal; and a count operation that does not exceed the count value of the reference counter with an internal clock. The reference counter and the reference position in the table for each 720 ° CA of the crank signal are used together with the reference counter. A tracking counter initialized at every 720 ° CA, and a reference position portion at the back of each 720 ° CA of the crank signal. Is determined, the count value of the reference counter and / or the counter value of at least one of the reference counter and the follow-up counter is changed only when the count value of the follow-up counter or the count value of the counter that counts with the pulse of the crank signal is within a predetermined range. An engine control device, comprising: a count value setting unit that sets a value corresponding to a back reference position.
動作するカウンタは、クランク信号のパルスにてカウン
ト動作してカウント値に対し前記逓倍信号生成の際の整
数倍のガード値を生成してこのガード値を超えない範囲
で基準カウンタをカウント動作させるためのガード用カ
ウンタであることを特徴とする請求項2に記載のエンジ
ン制御装置。3. A counter that counts with a pulse of the crank signal, generates a guard value that is an integral multiple of the count value when the multiplied signal is generated, and counts the count value with the pulse of the crank signal. The engine control device according to claim 2, wherein the engine control device is a guard counter for counting a reference counter within a range not exceeding a value.
の基準位置部であると判定した時に、前記追従カウンタ
のカウント値または前記クランク信号のパルスにてカウ
ント動作するカウンタのカウント値が所定の範囲に入っ
ていた場合のみ前記基準カウンタと追従カウンタの少な
くともいずれかのカウント値を表の基準位置相当の値に
設定する手段を備えたことを特徴とする請求項2または
3に記載のエンジン制御装置。4. When the crank signal is determined to be at a reference position in the table for each 720 ° CA, the count value of the tracking counter or the count value of a counter that counts with a pulse of the crank signal is a predetermined value. 4. The engine control according to claim 2, further comprising means for setting a count value of at least one of the reference counter and the follow-up counter to a value corresponding to a reference position in a table only when the value is within the range. apparatus.
の基準位置部と720°CA毎の裏の基準位置部で異な
るレベルとなる気筒判別信号を発生する気筒判別信号発
生手段と、 前記クランク信号の基準位置部における前記気筒判別信
号のレベルに基づいて前記クランク信号の表の基準位置
部と裏の基準位置部を判別する判別手段と、を備えたこ
とを特徴とする1〜4のいずれか1項に記載のエンジン
制御装置。5. A cylinder discriminating signal generating means for generating cylinder discriminating signals having different levels at a reference position in the table for each 720 ° CA of the crank signal and a reference position on the back for each 720 ° CA; Determining means for determining a reference position on the front and a reference position on the back of the crank signal based on the level of the cylinder determination signal at the reference position of the signal. The engine control device according to claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001035531A JP3508727B2 (en) | 2001-02-13 | 2001-02-13 | Engine control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001035531A JP3508727B2 (en) | 2001-02-13 | 2001-02-13 | Engine control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002242748A true JP2002242748A (en) | 2002-08-28 |
JP3508727B2 JP3508727B2 (en) | 2004-03-22 |
Family
ID=18898962
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001035531A Expired - Fee Related JP3508727B2 (en) | 2001-02-13 | 2001-02-13 | Engine control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3508727B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7197391B2 (en) | 2005-01-21 | 2007-03-27 | Denso Corporation | Method and apparatus for controlling an engine using a cam signal |
JP2013124655A (en) * | 2011-12-16 | 2013-06-24 | Toyota Motor Corp | Control device of internal combustion engine |
JP2016217785A (en) * | 2015-05-15 | 2016-12-22 | 株式会社デンソー | Electric leakage detection device |
KR102085896B1 (en) * | 2018-12-07 | 2020-03-06 | 현대오트론 주식회사 | Power Train Engine Control Method, And Vehicle Operated Thereby |
-
2001
- 2001-02-13 JP JP2001035531A patent/JP3508727B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7197391B2 (en) | 2005-01-21 | 2007-03-27 | Denso Corporation | Method and apparatus for controlling an engine using a cam signal |
JP2013124655A (en) * | 2011-12-16 | 2013-06-24 | Toyota Motor Corp | Control device of internal combustion engine |
JP2016217785A (en) * | 2015-05-15 | 2016-12-22 | 株式会社デンソー | Electric leakage detection device |
KR102085896B1 (en) * | 2018-12-07 | 2020-03-06 | 현대오트론 주식회사 | Power Train Engine Control Method, And Vehicle Operated Thereby |
US11248547B2 (en) | 2018-12-07 | 2022-02-15 | Hyundai Autoever Corp. | Powertrain engine control method and vehicle operated thereby |
Also Published As
Publication number | Publication date |
---|---|
JP3508727B2 (en) | 2004-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3508676B2 (en) | Engine control device | |
US7584310B2 (en) | Signal processing device | |
JP3508720B2 (en) | Engine control device | |
US7089149B2 (en) | Method and apparatus for detecting an angle of a rotating shaft | |
JP3506116B2 (en) | Engine control device | |
JP2001271700A (en) | Engine control device | |
JP3539327B2 (en) | Engine control device | |
US20210340924A1 (en) | Synchronisation method robust to engine stalling | |
JP2002242748A (en) | Engine control device | |
JP2001263150A (en) | Engine control device | |
JP3791367B2 (en) | Engine control device | |
JP3788289B2 (en) | Engine control device | |
JP3539379B2 (en) | Engine control device | |
JP3539336B2 (en) | Engine control device | |
JP2001263155A (en) | Engine control device | |
JP2001207903A (en) | Engine control device | |
JP6003869B2 (en) | Engine control device | |
JP2023079051A (en) | engine controller | |
JP2001227445A (en) | Ignition timing control device for engine | |
JP2002371886A (en) | Internal combustion engine control system | |
US20130246007A1 (en) | Sensor signal processor | |
JPH09126108A (en) | Ignition control backup device | |
JPS58180735A (en) | Malfunction detection method of electronically controlled fuel injection device | |
JP2013108478A (en) | Engine control device | |
JPH08314513A (en) | Serial communication equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20031215 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 3508727 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110109 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120109 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130109 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140109 Year of fee payment: 10 |
|
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 |