JP2001207903A - Engine control device - Google Patents

Engine control device

Info

Publication number
JP2001207903A
JP2001207903A JP2000011630A JP2000011630A JP2001207903A JP 2001207903 A JP2001207903 A JP 2001207903A JP 2000011630 A JP2000011630 A JP 2000011630A JP 2000011630 A JP2000011630 A JP 2000011630A JP 2001207903 A JP2001207903 A JP 2001207903A
Authority
JP
Japan
Prior art keywords
counter
value
angle
guard
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.)
Pending
Application number
JP2000011630A
Other languages
Japanese (ja)
Inventor
Haruhiko Kondo
晴彦 近藤
Masahiro Fukagawa
正浩 深川
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 JP2000011630A priority Critical patent/JP2001207903A/en
Publication of JP2001207903A publication Critical patent/JP2001207903A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an engine control device capable of reducing a processing load and improving precision, starting from a reference position on the back of a crank signal first after starting a system and properly carrying out engine control at the time of misjudgement of the reference position. SOLUTION: An edge interval measuring counter 102 measures pulses separation of a crank signal, and a gradual multiplication counter 104 generates a gradual multiplication signal of integral time frequency until a following pulse in accordance with the current pulse separation. A CPU sets a count value of a counter 105 for guard and a reference counter 107 as a value equivalent to a chipped tooth on the back after taking synchronism of a count value of each of the counters of the counter 105 for guard, the reference counter 107 and an angular counter 108 in a state of the count value of the angular counter 108 initialized when it is judged to be the chipped tooth on the back of every 720 deg.CA of the crank signal.

Description

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

【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】本発明はこのような背景の元になされたも
のであり、その目的は、処理負荷の低減及び精度向上を
図り、しかも、システム起動後の初回にクランク信号の
裏の基準位置からもスタートできるとともに、基準位置
の判定ミス時にも適正にエンジン制御を行うことができ
るエンジン制御装置を提供することにある。
The present invention has been made under such a background, and its object is to reduce the processing load and improve the accuracy, and also, at the first time after starting the system, from the reference position behind the crank signal. An object of the present invention is to provide an engine control device that can start and can appropriately perform engine control even when a reference position is determined incorrectly.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明に
よれば、エンジンのクランク軸の回転に対応した所定角
度間隔毎のパルス列の途中に基準位置部を有するクラン
ク信号に対し、パルス間隔計測手段によりパルス間隔が
計測され、逓倍信号生成手段により、パルス間隔計測手
段による今回のパルス間隔を基にして次のパルスまでに
整数倍の周波数の逓倍信号が生成される。このように、
所定の角度間隔で逓倍信号を生成してエンジン回転と同
期をとるシステムとすることで、角度から時間への変換
のための演算を不要にでき、処理負荷の低減及び精度向
上を図ることができる。
According to the first aspect of the present invention, a pulse signal having a reference position in the middle of a pulse train at predetermined angular intervals corresponding to the rotation of the crankshaft of the engine is supplied with a pulse interval. The pulse interval is measured by the 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. in this way,
By providing a system that generates a multiplied signal at a predetermined angular interval and synchronizes with the engine rotation, an operation for converting from angle to time can be omitted, and processing load can be reduced and accuracy can be improved. .

【0007】また、ガード用カウンタはクランク信号の
パルスにてカウントアップしてカウント値に対し逓倍信
号生成の際の整数倍のガード値を生成し、基準カウンタ
は逓倍信号にてガード用カウンタによるガード値を超え
ない範囲でカウントアップし、さらに、角度カウンタは
内部クロックにて基準カウンタのカウント値を超えない
範囲でカウントアップする。
The guard counter counts up with the pulse of the crank signal to generate a guard value that is an integral multiple of the count value when the multiplied signal is generated, and the reference counter uses the multiplied signal to perform guarding by the guard counter. The angle counter counts up within a range not exceeding the value, and the angle counter counts up within a range not exceeding the count value of the reference counter by an internal clock.

【0008】ここで、第1のカウンタ設定手段によりク
ランク信号の720°CA毎の表の基準位置部であると
判定した時に、ガード用カウンタのカウント値が初期化
されるとともに基準カウンタのカウント値が表の基準位
置相当の値に設定される。また、第2のカウンタ設定手
段により、クランク信号の720°CA毎の裏の基準位
置部であると判定した時に、その時の基準カウンタのカ
ウント値が裏の基準位置相当の値よりも大きいと、角度
カウンタのカウント値を初期化した状態でガード用カウ
ンタと基準カウンタと角度カウンタの各カウンタのカウ
ント値の同期をとってから、ガード用カウンタと基準カ
ウンタのカウント値が裏の基準位置相当の値に設定され
る。
Here, when the first counter setting means determines that the crank signal is at the reference position in the table for each 720 ° CA, the count value of the guard counter is initialized and the count value of the reference counter is initialized. Is set to a value corresponding to the reference position in the table. Further, when the second counter setting means determines that the reference signal is located at the back reference position every 720 ° CA of the crank signal, if the count value of the reference counter at that time is larger than a value corresponding to the back reference position, With the count values of the angle counter initialized, the count values of the guard counter, reference counter, and angle counter are synchronized, and then the count values of the guard counter and reference counter correspond to the reference position on the back. Is set to

【0009】つまり、クランク信号の720°CA毎の
裏の基準位置において、その時の基準カウンタのカウン
ト値が裏の基準位置相当の値よりも大きい場合にカウン
タの補正を行う際には、角度カウンタのカウント値を初
期化した状態で各カウンタのカウント値の同期をとった
後に、裏の基準位置相当の値に設定された基準カウンタ
のカウント値を超えない範囲で角度カウンタがカウント
アップする。よって、裏の基準位置でもカウンタ群の補
正ができ、これにより、システム起動時の初回に裏の基
準位置からスタートできるとともに、基準位置の判定ミ
ス時に裏の基準位置で補正ができる。
That is, when the counter value is larger than the value corresponding to the back reference position at the back reference position at every 720 ° CA of the crank signal, the angle counter is used. After the count values of the respective counters are synchronized in a state where the count values of the counters are initialized, the angle counter counts up within a range not exceeding the count value of the reference counter set to a value corresponding to the back reference position. Therefore, the counter group can be corrected even at the back reference position, whereby it is possible to start from the back reference position at the first time when the system is started, and to correct at the back reference position when the reference position is erroneously determined.

【0010】請求項2に記載の発明によれば、請求項1
に記載の発明の作用・効果に加え、角度カウンタのクリ
ア値を現在の角度カウンタのカウント値より僅かに大き
な値にすることにより、直ちに角度カウンタのカウント
値を初期化することができる。
According to the second aspect of the present invention, the first aspect is provided.
In addition to the functions and effects of the invention described in (1), by setting the clear value of the angle counter to a value slightly larger than the current count value of the angle counter, the count value of the angle counter can be immediately initialized.

【0011】請求項3に記載の発明によれば、請求項1
または2に記載の発明の作用・効果に加え、各カウンタ
のカウント値の同期をとる際において角度カウンタのカ
ウント値を補正するときにカウントアップ動作が生じた
としても、駆動信号が出力されることが未然に防止でき
る。
According to the invention described in claim 3, according to claim 1 of the present invention,
In addition to the functions and effects of the invention described in 2, the drive signal is output even if a count-up operation occurs when correcting the count value of the angle counter when synchronizing the count value of each counter. Can be prevented beforehand.

【0012】[0012]

【発明の実施の形態】以下、この発明を具体化した実施
の形態を図面に従って説明する。本実施の形態において
は自動車用多気筒ガソリンエンジンの制御装置に具体化
している。図1には、本実施形態におけるエンジン制御
ECU1の構成を示す。
Embodiments of the present invention will be described below with reference to the drawings. 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.

【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)分のクラ
ンク信号を示す。このクランク信号は、エンジンのクラ
ンク軸の回転に対応した所定角度間隔毎のパルス列より
なり、このパルス列の途中にパルスを抜いた欠け歯部
(基準位置部)を有する。本実施形態でのクランク信号
は60パルス毎に2パルス抜ける欠け歯の構成となって
おり、この欠け歯部が720°CAで二箇所現れる。つ
まり、パルス列の途中にパルスを抜いた欠け歯部を36
0°CA毎に有する。このクランク信号が図1のタイマ
モジュール16のハードクランク100に入力され、こ
の信号を基にCPU11にてクランクカウンタが作られ
る。詳しくは、図2に示すように、クランクカウンタ
は、クランク信号のパルス入力時にカウントアップし、
エンジン1サイクル分の120になるタイミング(表欠
け歯後の2つ目のパルス入力時)で0クリアされる。欠
け歯で抜ける分のカウントは、欠け歯後のクランクパル
ス入力時に補正される。ここで、表欠け歯ではクランク
カウンタのカウント値が「119」のタイミングで補正
され、裏欠け歯ではカウント値が「59」のタイミング
で補正される。
Here, the signal taken by the engine control ECU 1 includes a crank signal from a crank sensor. FIG. 2 shows a crank signal for one engine cycle (720 ° CA). This crank signal is composed of a pulse train at predetermined angular intervals corresponding to the rotation of the crankshaft of the engine, and has a missing tooth portion (reference position portion) from which a pulse is extracted in the middle of this pulse train. In this embodiment, the crank signal has a missing tooth configuration in which two pulses are missing every 60 pulses, and the missing tooth portion appears at 720 CA. In other words, the missing tooth portion from which the pulse was removed in the middle of the pulse train is 36
It has every 0 degree CA. This crank signal is input to the hard crank 100 of the timer module 16 in FIG. 1, and the CPU 11 creates a crank counter based on this signal. Specifically, as shown in FIG. 2, the crank counter counts up when a pulse of a crank signal is input,
It is cleared to 0 at the timing of 120 for one engine cycle (when the second pulse is input after the missing tooth). The count of the missing teeth is corrected when the crank pulse is input after the missing teeth. Here, the count value of the crank counter is corrected at the timing of “119” for the front missing teeth, and the count value is corrected at the timing of “59” for the back missing teeth.

【0015】一方、図1のタイマモジュール16に備え
られたハードクランク100は、クランク信号をハード
的に処理する機能部である。このハードクランク100
により、図2のクランク信号の処理(欠け歯判定やクラ
ンクエッジ間時間を分割した角度信号の生成)をハード
的に行うことができるようになっている。
On the other hand, the hard crank 100 provided in the timer module 16 of FIG. 1 is a functional unit for processing the crank signal in a hardware manner. This hard crank 100
Thus, the processing of the crank signal shown in FIG. 2 (determination of missing teeth and generation of an angle signal obtained by dividing the time between crank edges) can be performed in a hardware manner.

【0016】図3には、ハードクランク100の構成を
示す。図3において、分周回路101とエッジ時間計測
カウンタ102とエッジ時間記憶レジスタ103と逓倍
カウンタ104とガード用カウンタ105と欠け歯判定
カウンタ106と基準カウンタ107と角度カウンタ1
08を備えている。プリスケーラからの信号Pφは分周
回路101を介してエッジ時間計測カウンタ102と逓
倍カウンタ104に送られる。また、信号Pφは角度カ
ウンタ108に送られる。さらに、クランク信号がエッ
ジ時間計測カウンタ102とガード用カウンタ105と
欠け歯判定カウンタ106に送られる。
FIG. 3 shows the configuration of the hard crank 100. 3, a frequency dividing circuit 101, an edge time measurement counter 102, an edge time storage register 103, a multiplication counter 104, a guard counter 105, a missing tooth determination counter 106, a reference counter 107, and an angle counter 1
08. The signal Pφ from the prescaler is sent to the edge time measurement counter 102 and the multiplication counter 104 via the frequency dividing circuit 101. The signal Pφ is sent to the angle counter 108. Further, the crank signal is sent to the edge time measurement counter 102, the guard counter 105, and the missing tooth determination counter 106.

【0017】図4には、角度信号発生(欠け歯のない場
合)のタイムチャートを示す。図4には、入力するクラ
ンク信号、エッジ時間計測カウンタ102のカウント
値、エッジ時間記憶レジスタ103の記憶値、逓倍カウ
ンタ104のカウント値、逓倍カウンタ104の出力信
号(逓倍クロック)、ガード用カウンタ105の値のn
倍値、基準カウンタ107のカウント値、角度カウンタ
108のカウント値、欠け歯判定カウンタ106のカウ
ント値を示す。
FIG. 4 is a time chart showing the generation of an angle signal (without missing teeth). FIG. 4 shows an input crank signal, a count value of the edge time measurement counter 102, a stored value of the edge time storage register 103, a count value of the multiplication counter 104, an output signal of the multiplication counter 104 (multiplication clock), and a guard counter 105. The value of n
The double value, the count value of the reference counter 107, the count value of the angle counter 108, and the count value of the missing tooth determination counter 106 are shown.

【0018】図3のエッジ時間計測カウンタ102は、
クランク信号を入力してクランクエッジ間の時間(パル
ス間隔)を計測する。詳しくは、パルス間隔計測手段と
してのエッジ時間計測カウンタ102は、図4のように
時間同期でカウントアップするカウンタであって、クラ
ンクエッジ間(クランク信号の立ち下がりエッジ間)の
時間を計測する。計測した値は1/n倍に逓倍され、エ
ッジ時間記憶レジスタ103に転送(リロード)される
とともに、このデータは同時に逓倍カウンタ104にも
リロードされる。本実施形態では逓倍値(n値)を「3
2」としている。
The edge time measurement counter 102 shown in FIG.
A crank signal is input to measure a time (pulse interval) between crank edges. More specifically, the edge time measurement counter 102 as a pulse interval measurement means is a counter that counts up in a time-synchronous 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 a factor of 1 / n and transferred (reloaded) to the edge time storage register 103, and this data is also reloaded into the multiplication counter 104 at the same time. In the present embodiment, the multiplication value (n value) is set to “3”.
2 ".

【0019】図3の逓倍カウンタ104は、エッジ時間
計測カウンタ102により計測されたクランクエッジ間
時間を使って、クランクエッジ時間を1/nした逓倍ク
ロックを生成する。詳しくは、逓倍カウンタ104は、
図4のように時間同期でダウンカウントされ、「0」に
なると逓倍クロックを発生するとともにエッジ時間記憶
レジスタ103の値がリロードされる。このように、逓
倍信号生成手段としての逓倍カウンタ104は、エッジ
時間計測カウンタ102による今回のパルス間隔を基に
して次のパルスまでに整数倍の周波数の逓倍信号(逓倍
クロック)を生成する。
The multiplying counter 104 shown in FIG. 3 generates a multiplied clock obtained by reducing the crank edge time by 1 / n using the time between crank edges measured by the edge time measuring counter 102. Specifically, the multiplication counter 104
As shown in FIG. 4, the count is down-counted in time synchronization, and when it becomes "0", a multiplied clock is generated and the value of the edge time storage register 103 is reloaded. As described above, the multiplying counter 104 as the multiplied signal generating means generates a multiplied signal (multiplied clock) having an integral multiple frequency by the next pulse based on the current pulse interval by the edge time measuring counter 102.

【0020】図3の基準カウンタ107は、図4に示す
ように、逓倍クロックによりカウントアップ動作する。
図3の角度カウンタ108は時間同期クロックによりカ
ウントアップする(内部クロックでカウント動作す
る)。ガード用カウンタ105は、クランク信号を入力
してクランク信号の立ち下がりエッジ(パルス)により
カウントアップするカウンタであって、クランクエッジ
入力時に同時にカウントアップ前の値のn倍(逓倍)の
値を基準カウンタ107に転送する。このように、ガー
ド用カウンタ105はクランク信号のパルスにてカウン
トアップしてカウント値に対し逓倍信号生成の際の整数
倍のガード値を生成する。
The reference counter 107 shown in FIG. 3 performs a count-up operation by a multiplied clock as shown in FIG.
The angle counter 108 in FIG. 3 counts up with a time synchronous clock (counts with an internal clock). The guard counter 105 is a counter that inputs a crank signal and counts up at the falling edge (pulse) of the crank signal, and uses a value that is n times (multiplied) the value before the count up at the same time when the crank edge is input. The data is transferred to the counter 107. As described above, the guard counter 105 counts up with the pulse of the crank signal, and generates a guard value that is an integral multiple of the count value when the multiplied signal is generated.

【0021】ここで、図4のように、基準カウンタ10
7のカウント値は、クランクエッジ入力時にガード用カ
ウンタ105から転送されたガード値(カウント値のn
倍値)を上回ることはできない。つまり、基準カウンタ
107は、逓倍クロックにてガード用カウンタ105に
よるガード値を超えない範囲でカウントアップする。ま
た、角度カウンタ108は、基準カウンタ107のカウ
ント値より小さい時のみカウントアップする。この角度
カウンタ108のカウントアップに同期して角度信号が
生成される。つまり、角度カウンタ108は、内部クロ
ックにて基準カウンタ107のカウント値を超えない範
囲でカウントアップして角度信号を出力する。このよう
に、3つのカウンタ105,107,108により角度
信号が生成される。
Here, as shown in FIG.
7 is the guard value (count value n) transferred from the guard counter 105 when the crank edge is input.
Double) cannot be exceeded. That is, the reference counter 107 counts up within a range that does not exceed the guard value of the guard counter 105 with the multiplied clock. The angle counter 108 counts up only when it is smaller than the count value of the reference counter 107. An angle signal is generated in synchronization with the count up of the angle counter 108. That is, the angle counter 108 counts up within a range not exceeding the count value of the reference counter 107 by the internal clock and outputs an angle signal. Thus, the angle signals are generated by the three counters 105, 107, and 108.

【0022】本実施形態では、内部クロック(プリスケ
ーラからの信号Pφ)を20MHzとしており、角度カ
ウンタ108は他のカウンタと比べ高速で動作可能であ
る。図4において、減速時には、基準カウンタ107と
角度カウンタ108のカウント動作として、クランクエ
ッジの入力より先に基準カウンタ107の値がガード用
カウンタ105の値のn倍値に達してしまうため、角度
カウンタ108のカウントアップが禁止される。その結
果、減速時には角度カウンタ108のカウント動作が停
止して、一定値以上の角度信号の発生を防止する。ま
た、加速時には、基準カウンタ107がガード用カウン
タ105の値のn倍値に追いつく前にクランクエッジの
入力によりガード用カウンタ105の値のn倍値が基準
カウンタ107に転送され、角度カウンタ108は基準
カウンタ107に追いつくまでカウントアップし続け
る。その結果、加速時にはクランクエッジ入力後に角度
カウンタ108がカウントアップして、足りない分の角
度信号を生成する。
In this embodiment, the internal clock (the signal Pφ from the prescaler) is set to 20 MHz, and the angle counter 108 can operate at a higher speed than other counters. In FIG. 4, at the time of deceleration, as the counting operation of the reference counter 107 and the angle counter 108, the value of the reference counter 107 reaches n times the value of the guard counter 105 before the input of the crank edge. The count-up of 108 is prohibited. As a result, at the time of deceleration, the counting operation of the angle counter 108 is stopped, and the occurrence of an angle signal having a certain value or more is prevented. Also, during acceleration, before the reference counter 107 catches up with the n-times value of the guard counter 105, the n-times value of the guard counter 105 is transferred to the reference counter 107 by the input of the crank edge, and the angle counter 108 It keeps counting up until it catches up with the reference counter 107. As a result, at the time of acceleration, the angle counter 108 counts up after the input of the crank edge, and generates an insufficient angle signal.

【0023】このように生成した角度信号をハードクラ
ンク100内の図示しないカウンタに入力してコンペア
レジスタを用いて点火・噴射制御がクランク角同期にて
行われる。即ち、所定の角度間隔で逓倍信号を生成して
エンジン回転と同期をとるシステムとすることで、角度
から時間への変換のための演算を不要にでき、処理負荷
の低減及び精度向上(n=32ならばLSB=0.18
75°CA)を図ることができる。
The angle signal thus generated is input to a counter (not shown) in the hard crank 100, and ignition / injection control is performed in synchronization with the crank angle using a compare register. That is, by providing a system that generates a multiplied signal at a predetermined angular interval and synchronizes with the engine rotation, the calculation for converting from angle to time can be omitted, and the processing load is reduced and the accuracy is improved (n = If 32, LSB = 0.18
75 ° CA).

【0024】図3の欠け歯判定カウンタ106は逓倍ク
ロックによりカウントアップし、クランクエッジ入力で
0クリアされる。そのため、図5に示すように、欠け歯
でクランクエッジの入力が一定時間以上ない時は欠け歯
判定値に到達し、欠け歯割り込み信号を発生する。詳し
くは、欠け歯判定カウンタ106はそのカウント値と欠
け歯判定値を比較してカウント値が欠け歯判定値と等し
くなった後のクランクエッジで欠け歯割り込み信号を発
生する。
The missing tooth judging counter 106 shown in FIG. 3 counts up by a multiplied clock and is cleared to 0 by a crank edge input. Therefore, as shown in FIG. 5, when the input of the crank edge due to the missing tooth is not longer than a predetermined time, the missing tooth determination value is reached, and the missing tooth interrupt signal is generated. Specifically, the missing tooth determination counter 106 compares the count value with the missing tooth determination value and generates a missing tooth interrupt signal at the crank edge after the count value becomes equal to the missing tooth determination value.

【0025】なお、欠け歯割り込み信号は欠け歯判定カ
ウンタ106のカウント値が欠け歯判定値に達した時に
発生させてもよい。また、本実施形態では欠け歯判定値
を前回のクランクエッジ時間の2.5倍としている。
The missing tooth interrupt signal may be generated when the count value of the missing tooth determination counter 106 reaches the missing tooth determination value. In the present embodiment, the missing tooth determination value is set to 2.5 times the previous crank edge time.

【0026】次に、このように構成したエンジン制御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 is a time chart showing a method of correcting a counter for generating an angle signal with missing teeth.

【0027】図6は、表欠け歯でCPU11が実行する
カウンタ補正のフローチャートである。この処理はクラ
ンクエッジによる割り込みにて起動する。図5におい
て、欠け歯位置では欠け歯以外の場所に比べクランク信
号エッジ間の時間が3歯分になるため、欠け歯前のクラ
ンクエッジ割り込みでガード用カウンタ105の値を欠
け歯分の補正を加えておかなければならないが、システ
ム起動後の初回や予期せぬ欠け歯が発生した時にはこの
処理を行なうことができない。そのため、基準カウンタ
107と角度カウンタ108はガード用カウンタ105
の値のn倍値と一致した所でカウントアップしなくなっ
てしまうが、図5のt1のタイミングで示すごとく表欠
け歯のクランクエッジ割り込みで基準カウンタ107に
とるべき値(本実施形態では119×32(逓倍比)=
3808)をセットすることで角度カウンタ108がカ
ウント動作を再開し角度信号が出力される。同時に、ガ
ード用カウンタ105は0クリアしておく。これは、本
実施形態では図5のt2のタイミングで示すごとく表欠
け歯後の2つ目のクランクエッジ入力時が角度カウンタ
108の0クリアの位置に当たり、クランクエッジ入力
時にガード用カウンタ105の値のn倍値が基準カウン
タ107に転送されるため、その1つ前の欠け歯後のク
ランクエッジ割り込みで(t1のタイミングで)ガード
用カウンタ105の値を0としておく。こうしておくこ
とで、欠け歯後の2つ目のクランクエッジで基準カウン
タ107は0クリアされ、また同じタイミングで角度カ
ウンタ108は角度カウンタクリア値(=120×3
2)に到達し0クリアされる。
FIG. 6 is a flowchart of the counter correction executed by the CPU 11 for a missing tooth. This process is started by an interrupt due to a crank edge. In FIG. 5, since the time between the crank signal edges is three teeth at the missing tooth position as compared with the place other than the missing tooth, the value of the guard counter 105 is corrected by the crank edge interruption before the missing tooth. It must be added, but this process cannot be performed for the first time after system startup or when an unexpected missing tooth occurs. Therefore, the reference counter 107 and the angle counter 108 are
Does not count up at the point where the value matches the value n times the value of the reference counter 107 (see 119 × in this embodiment) at the timing of t1 in FIG. 32 (multiplication ratio) =
By setting (3808), the angle counter 108 restarts the counting operation and the angle signal is output. At the same time, the guard counter 105 is cleared to 0. In the present embodiment, as shown at the timing t2 in FIG. 5, the input of the second crank edge after the missing tooth corresponds to the zero clear position of the angle counter 108, and the value of the guard counter 105 when the crank edge is input. Is transferred to the reference counter 107, and the value of the guard counter 105 is set to 0 (at the timing of t1) by the crank edge interruption after the previous missing tooth. By doing so, the reference counter 107 is cleared to 0 at the second crank edge after the missing tooth, and the angle counter 108 sets the angle counter clear value (= 120 × 3) at the same timing.
2) is reached and cleared to 0.

【0028】つまり、表欠け歯割り込みでガード用カウ
ンタ105のカウント値=0、基準カウンタ107のカ
ウント値=3808(=119×32)のように、CP
U11にてセットを行なう。欠け歯後の2つ目のクラン
クエッジで基準カウンタ107と角度カウンタ108は
ハードクランク100により0クリアされ、これらのカ
ウンタの同期がとれる。即ち、ガード用カウンタのn倍
値>基準カウンタ>角度カウンタとなり、3つのカウン
タ105,107,108はそれぞれカウントアップ可
能な状態となる。
That is, when the count value of the guard counter 105 is 0 and the count value of the reference counter 107 is 3808 (= 119 × 32) due to the missing tooth interruption, the CP value is set.
Set is performed in U11. At the second crank edge after the missing tooth, the reference counter 107 and the angle counter 108 are cleared to 0 by the hard crank 100, and these counters are synchronized. That is, n times the value of the guard counter> reference counter> angle counter, and the three counters 105, 107, and 108 are each ready to count up.

【0029】このように、表欠け歯割り込み時に、CP
U11によりカウンタの設定を行い3つのカウンタの同
期をとるようにすることで、システム起動後の初期化や
予想外の所で欠け歯が発生した時の補正(欠け歯判定異
状時の復帰処理)を行なうことができる。
As described above, when the tooth missing tooth is interrupted, the CP
By setting the counters by U11 and synchronizing the three counters, initialization after starting the system and correction of occurrence of missing teeth in unexpected places (recovery processing for missing tooth determination abnormalities) Can be performed.

【0030】詳しくは、図6において、CPU11はク
ランクエッジ割り込みにおいてステップ601でクラン
クカウンタの値が「119」か否か判定し、「119」
であると、表欠け歯後のクランクエッジ割り込みである
としてステップ602に移行する。CPU11はステッ
プ602でガード用カウンタ105の値を「0」に設定
した後、ステップ603で基準カウンタ107の値を
「3808(=119×32)」に設定する。
More specifically, in FIG. 6, the CPU 11 determines in step 601 whether or not the value of the crank counter is "119" in the crank edge interrupt.
If so, the process proceeds to step 602 as a crank edge interruption after the missing tooth. After setting the value of the guard counter 105 to “0” in step 602, the CPU 11 sets the value of the reference counter 107 to “3808 (= 119 × 32)” in step 603.

【0031】このように、表欠け歯後のクランクエッジ
割り込みにて、ガード用カウンタ105と基準カウンタ
107の設定をCPU11にて設定することにより、前
記のように角度カウンタ108の補正を行なうことがで
きる。
As described above, by setting the settings of the guard counter 105 and the reference counter 107 by the CPU 11 at the crank edge interruption after the missing tooth, the angle counter 108 can be corrected as described above. it can.

【0032】図7は、裏欠け歯でのカウンタの補正(基
準カウンタ107の値を大きくする側に補正)を行う場
合のタイムチャートである。つまり、1周期(720°
CA)間に二箇所発生する欠け歯のあるクランク信号を
使ったシステムにおいて、角度信号を生成するためのカ
ウンタ等の初期化や欠け歯判定をミスした時の補正を行
えるのは角度カウンタ108を初期化するタイミング
(表の欠け歯位置)、即ち、クランク軸2回転でエンジ
ン1サイクル(720°CA)とするシステムでは、ク
ランク軸2回転中の特定の欠け歯位置のみで一回しか行
えない。詳しくは、正しい角度信号を生成するためには
3つのカウンタ105,107,108が同期をとりな
がらカウントアップすることが必要になる。つまり、同
期がとれていないと、角度カウンタ108が止まってし
まったり、カウントアップし続ける等により角度信号が
異常になってしまう。そのため、図2で示すようにクラ
ンクカウンタは表欠け歯の2つ後のクランクエッジ入力
時に0クリアされるが、上記の3つのカウンタ105,
107,108もこのタイミングで初期化することで同
期をとり、システムの初期化や欠け歯判定ミス時の補正
を行う。換言すれば、補正が行えるのは表欠け歯のみで
ある。そこで、本実施形態では以下の処理を行ってい
る。
FIG. 7 is a time chart in the case of correcting the counter for the back missing teeth (correcting the value of the reference counter 107 so as to increase the value). That is, one cycle (720 °
CA) In a system using a crank signal having two missing teeth generated between two points, the angle counter 108 can be initialized by resetting a counter for generating an angle signal and correction when a missing tooth determination is missed. Initialization timing (missing tooth position in the table), that is, in a system in which one cycle of the engine (720 ° CA) is performed with two rotations of the crankshaft, it can be performed only once at a specific missing tooth position during two rotations of the crankshaft. . Specifically, in order to generate a correct angle signal, it is necessary for the three counters 105, 107, and 108 to count up while synchronizing. In other words, if synchronization is not achieved, the angle signal will be abnormal because the angle counter 108 stops or keeps counting up. Therefore, as shown in FIG. 2, the crank counter is cleared to 0 at the time of input of the crank edge two teeth behind the missing tooth.
The timings of 107 and 108 are also initialized at this timing to synchronize them, thereby performing initialization of the system and correcting for missing tooth determination error. In other words, the correction can be performed only on the missing teeth. Therefore, in the present embodiment, the following processing is performed.

【0033】図7において、予期せぬ欠け歯によって角
度カウンタ108が停止してしまうのは図5の表欠け歯
の時と同じである。この時、図7の場合には、ガード用
カウンタ105と基準カウンタ107の裏欠け歯の設定
値(本実施形態では59×32=1888)が現在値よ
りも大きい側にあるため、ガード用カウンタ105と基
準カウンタ107を裏欠け歯の設定値に補正してやるこ
とで角度カウンタ108は再び動き出し正常に復帰する
ことができる。つまり、裏欠け歯時に、CPU11によ
りカウンタの設定を行なう時、基準カウンタ107を大
きくする側に補正する場合は、表欠け歯での補正と同様
に基準カウンタ107とガード用カウンタ105をCP
U11にてセットしてやる。具体的には、図7のt10
のタイミングにてCPU11にて基準カウンタ107を
「59×32」にセットするとともにガード用カウンタ
105を「60」にセットする。これにより、ガード用
カウンタのn倍値>基準カウンタ>角度カウンタとな
り、3つのカウンタ105,107,108は同期がと
れ、それぞれカウントアップ可能な状態となる。よっ
て、図7のT11の期間において角度カウンタ108は
時間同期にてカウントアップする(角度信号を生成す
る)。
In FIG. 7, the angle counter 108 stops due to an unexpected missing tooth as in the case of the front missing tooth in FIG. At this time, in the case of FIG. 7, the set value of the missing teeth of the guard counter 105 and the reference counter 107 (59 × 32 = 1888 in the present embodiment) is on the side larger than the current value. By correcting the 105 and the reference counter 107 to the set value of the missing teeth, the angle counter 108 starts moving again and can return to normal. That is, when the counter is set by the CPU 11 at the time of the back missing teeth, when the reference counter 107 is corrected to be increased, the reference counter 107 and the guard counter 105 are set to the same value as the correction for the front missing teeth.
I'll set it at U11. Specifically, t10 in FIG.
The CPU 11 sets the reference counter 107 to “59 × 32” and sets the guard counter 105 to “60” at the timing of (1). As a result, n times the guard counter> reference counter> angle counter, and the three counters 105, 107, and 108 are synchronized and each can be counted up. Therefore, the angle counter 108 counts up in time synchronization (generates an angle signal) during the period T11 in FIG.

【0034】しかし、図8のように、ガード用カウンタ
105と基準カウンタ107を現在値よりも小さい側に
補正する場合には、基準カウンタ107が角度カウンタ
108よりも小さくなってしまうため角度カウンタ10
8は動き始めることができない。つまり、図8におい
て、裏欠け歯時にCPU11によりカウンタの設定を行
なう時、基準カウンタ107を小さくする側に補正する
場合は、表欠け歯での補正と同様に基準カウンタ107
とガード用カウンタ105をCPU11にてセットする
と(図8ではt20のタイミングにて基準カウンタ10
7を「59×32」にセットするとともにガード用カウ
ンタ105を「60」にセットすると)、基準カウンタ
<角度カウンタとなり、角度カウンタ108が停止して
しまう(角度信号が生成できなくなる)。
However, as shown in FIG. 8, when the guard counter 105 and the reference counter 107 are corrected to a value smaller than the current value, the reference counter 107 becomes smaller than the angle counter 108, so that the angle counter 10 becomes smaller.
8 cannot start moving. That is, in FIG. 8, when the counter is set by the CPU 11 at the time of the back missing teeth, when the reference counter 107 is corrected to a smaller side, similarly to the correction for the front missing teeth, the reference counter 107 is corrected.
And the guard counter 105 are set by the CPU 11 (in FIG. 8, the reference counter 10
When 7 is set to “59 × 32” and the guard counter 105 is set to “60”, the reference counter <the angle counter, and the angle counter 108 stops (the angle signal cannot be generated).

【0035】このために、CPU11は図10に示す処
理を実行することにより、図9の動作を行わせる。図9
においてt30のタイミングでCPU11によりガード
用カウンタ105の値を0クリアするとともに、角度カ
ウンタクリア値を、現在の角度カウンタ108の値に所
定値αを加算した値にセットし、その角度カウンタクリ
ア値を基準カウンタ107にセットする。ここで、α値
はマイコンのデータ読み込み・転送等によりカウントが
進むのを見込んだマージン値(カウンタ読み出しからレ
ジスタ書き込みまでにカウントアップするのを見込んだ
マージン値)である。このように、基準カウンタ107
の値を角度カウンタクリア値とすることで、基準カウン
タ>角度カウンタの関係を保ち、角度カウンタ108の
カウントアップを停止させなくすることができる。ま
た、角度カウンタクリア値を、現在の角度カウンタ値に
所定値αを加算した値とすることで、角度カウンタ10
8はα後にハードクランクにより0クリアされる。角度
カウンタ=0となった所で(3つのカウンタの同期がと
れてから)、CPU11にて基準カウンタ107とガー
ド用カウンタ105を裏欠け歯の設定位置にセットする
と、基準カウンタ>角度カウンタとなり、角度カウンタ
108は基準カウンタ107の値まで時間同期にカウン
トアップし続け、一致後は通常通りの処理が行える。
For this purpose, the CPU 11 executes the processing shown in FIG. 10 to perform the operation shown in FIG. FIG.
At the timing of t30, the value of the guard counter 105 is cleared to 0 by the CPU 11 and the angle counter clear value is set to a value obtained by adding a predetermined value α to the current value of the angle counter 108, and the angle counter clear value is set. It is set in the reference counter 107. Here, the α value is a margin value in which counting is expected to proceed due to data reading / transfer of the microcomputer (a margin value in anticipating counting up from reading of the counter to writing of the register). Thus, the reference counter 107
Is set as the angle counter clear value, the relationship of reference counter> angle counter can be maintained, and the counting up of the angle counter 108 can be prevented from being stopped. Further, by setting the angle counter clear value to a value obtained by adding a predetermined value α to the current angle counter value, the angle counter 10
8 is cleared to 0 by the hard crank after α. When the angle counter becomes 0 (after the three counters are synchronized), the CPU 11 sets the reference counter 107 and the guard counter 105 to the set positions of the back missing teeth. The angle counter 108 keeps counting up to the value of the reference counter 107 in a time-synchronized manner, and after the coincidence, normal processing can be performed.

【0036】具体的には、図9のt30のタイミングで
基準カウンタ107に対し角度カウントクリア値に設定
後、角度カウンタ108が「0」になったのを確認して
「59×32」にセットし(図中、t31で示す)、ま
た、t30のタイミングでガード用カウンタ105を
「0」にしたあと角度カウンタ108が「0」になった
のを確認して「60」にセットする(図中、t32で示
す)。よって、角度カウンタ108のカウント値は角度
カウンタクリア値に到達してハード的に0クリアされた
後、図9のT33の期間において基準カウンタ>角度カ
ウンタとなり、角度カウンタ108が時間同期にてカウ
ントアップを続ける(角度信号が生成される)。このよ
うにして、3つのカウンタ105,107,108の同
期がとれ、裏欠け歯においてシステムの起動が可能とな
る。
Specifically, after setting the angle counter clear value to the reference counter 107 at the timing of t30 in FIG. 9, it is confirmed that the angle counter 108 has become "0" and set to "59.times.32". (Indicated by t31 in the drawing), and after the guard counter 105 is set to "0" at the timing of t30, it is confirmed that the angle counter 108 is set to "0", and is set to "60" (FIG. And t32). Therefore, after the count value of the angle counter 108 reaches the angle counter clear value and is cleared to 0 by hardware, the reference counter> the angle counter in the period of T33 in FIG. 9, and the angle counter 108 counts up in time synchronization. (An angle signal is generated). In this way, the three counters 105, 107, and 108 are synchronized, and the system can be activated at the tooth missing.

【0037】詳しくは、図10に示す裏欠け歯時の角度
信号の補正における欠け歯割り込みでの処理フローにお
いて、CPU11はステップ1001でクランクカウン
タが「59」か否か判定する。そして、CPU11は
「59」であると裏欠け歯後のクランクエッジ割り込み
であるとして、ステップ1002で基準カウンタ107
のカウント値が「59×32」より大きいか否か判定す
る。そして、CPU11は基準カウンタ>(59×3
2)であると、図9のようなカウント同期が必要である
としてステップ1003に移行する。
More specifically, in the processing flow of the tooth missing interrupt in the correction of the angle signal at the time of the tooth missing shown in FIG. 10, the CPU 11 determines whether or not the crank counter is "59" in step 1001. Then, the CPU 11 determines that “59” is a crank edge interrupt after the back missing tooth and determines in step 1002 that the reference counter 107
Is greater than or equal to “59 × 32”. Then, the CPU 11 sets the reference counter> (59 × 3
In the case of 2), it is determined that count synchronization as shown in FIG.

【0038】このように、ステップ1001,1002
にて裏欠け歯、かつ基準カウンタ>59×32であるこ
とを確認する。CPU11はステップ1003において
ガード用カウンタ105を「0」に設定し、ステップ1
004で次回の噴射時期・点火時期を初期化しておく。
この噴射・点火時期の初期化は、カウンタの同期をとる
間に角度カウンタ108のカウントアップにより角度信
号が生成され誤点火や誤噴射が行われることを防止する
ための処理であり、例えば、噴射位置と点火位置を角度
カウンタ108の最大値(例えば、16進数のFFF
F)にして角度カウンタ108との一致がでないように
する。
As described above, steps 1001 and 1002
To confirm that the missing teeth and the reference counter> 59 × 32. The CPU 11 sets the guard counter 105 to “0” in step 1003, and
At 004, the next injection timing and ignition timing are initialized.
The initialization of the injection / ignition timing is a process for preventing an angle signal from being generated by counting up of the angle counter 108 while synchronizing the counter, thereby preventing erroneous ignition or erroneous injection. The position and the ignition position are set to the maximum value of the angle counter 108 (for example, a hexadecimal FFF).
F) so that there is no coincidence with the angle counter 108.

【0039】CPU11はステップ1005で角度カウ
ンタ108をクリア、即ち、現在のカウント値に所定値
αを加算した値をセットする。さらに、CPU11はス
テップ1006で基準カウンタ107に角度カウンタ1
08のクリア値を設定し、ステップ1007で現在の角
度カウンタ108のカウント値が「0」になるまで待機
する。
The CPU 11 clears the angle counter 108 in step 1005, that is, sets a value obtained by adding a predetermined value α to the current count value. Further, the CPU 11 stores the angle counter 1 in the reference counter 107 in step 1006.
A clear value of 08 is set, and in step 1007, the process stands by until the current count value of the angle counter 108 becomes “0”.

【0040】そして、CPU11はステップ1008で
ガード用カウンタ105に「60」を設定するととも
に、ステップ1009で基準カウンタ107に「59×
32」を設定する。このように、基準カウンタ107の
値が「59×32」より大きい時は、図9のような処理
が必要になるため、ステップ1003〜1009のよう
に角度カウンタ108を0クリアさせてカウンタの同期
をとる。
Then, the CPU 11 sets “60” in the guard counter 105 in step 1008, and sets “59 ×” in the reference counter 107 in step 1009.
32 ". As described above, when the value of the reference counter 107 is larger than “59 × 32”, the processing as shown in FIG. 9 is necessary, so that the angle counter 108 is cleared to 0 as in steps 1003 to 1009 to synchronize the counters. Take.

【0041】また、ステップ1002において基準カウ
ンタ107の値が「59×32」より小さい時(図7の
場合)、ステップ1008に移行してガード用カウンタ
105と基準カウンタ107をCPU11にてセットす
る。
If the value of the reference counter 107 is smaller than "59 × 32" in the step 1002 (in the case of FIG. 7), the process proceeds to the step 1008, where the guard counter 105 and the reference counter 107 are set by the CPU 11.

【0042】このような処理により、裏欠け歯でのシス
テムの初期化や欠け歯判定ミス時の再起動を裏欠け歯か
ら行うことができる。以上、図7のように基準カウンタ
107のカウント値を大きい側にセットする時はステッ
プ1003〜1007の処理は不要であり、図9のよう
に基準カウンタ107のカウント値を小さい側にセット
する時はカウンタの同期をとるためにステップ1003
〜1007の処理を実行する。
By such processing, it is possible to initialize the system with a missing tooth and to restart when a missing tooth determination error occurs from the missing tooth. As described above, when the count value of the reference counter 107 is set to the large side as shown in FIG. 7, the processing of steps 1003 to 1007 is unnecessary, and when the count value of the reference counter 107 is set to the small side as shown in FIG. Is used in step 1003 to synchronize the counters.
To 1007 are executed.

【0043】このように、本実施の形態は下記の特徴を
有する。(イ)第1と第2のカウンタ設定手段としての
CPU11は、図6の処理を実行することにより、クラ
ンク信号の720°CA毎の表欠け歯(表の基準位置
部)であると判定した時に、ガード用カウンタ105の
カウント値を初期化するとともに基準カウンタ107の
カウント値を表の欠け歯位置相当(表の基準位置相当)
の値に設定する。また、CPU11は、図10の処理を
実行することにより、クランク信号の720°CA毎の
裏欠け歯(裏の基準位置部)であると判定した時に、そ
の時の基準カウンタ107のカウント値が裏欠け歯相当
(裏の基準位置相当)の値よりも大きいと、角度カウン
タ108のカウント値を初期化した状態でガード用カウ
ンタ105と基準カウンタ107と角度カウンタ108
の各カウンタのカウント値の同期をとってから、ガード
用カウンタ105と基準カウンタ107のカウント値を
裏欠け歯相当(裏の基準位置相当)の値に設定するよう
にした。
As described above, this embodiment has the following features. (A) The CPU 11 as the first and second counter setting means executes the processing in FIG. 6 to determine that the crank signal is a missing tooth (reference position portion in the table) at every 720 ° CA. At the same time, the count value of the guard counter 105 is initialized and the count value of the reference counter 107 is equivalent to the missing tooth position in the table (corresponding to the reference position in the table).
Set to the value of. By executing the processing in FIG. 10, the CPU 11 determines that there is a back missing tooth (back reference position portion) at every 720 ° CA of the crank signal, and the count value of the reference counter 107 at that time is changed to the back. If the value is larger than the value of the missing tooth (corresponding to the reference position on the back), the guard counter 105, the reference counter 107, and the angle counter 108 with the count value of the angle counter 108 initialized.
After synchronizing the count values of the respective counters, the count values of the guard counter 105 and the reference counter 107 are set to values corresponding to the back missing teeth (corresponding to the back reference position).

【0044】つまり、クランク信号の720°CA毎の
裏の基準位置において、その時の基準カウンタ107の
カウント値が裏の欠け歯相当の値よりも大きい場合にカ
ウンタの補正を行う際には、角度カウンタ108のカウ
ント値を初期化した状態で各カウンタのカウント値の同
期をとった後に、裏の欠け歯相当の値に設定された基準
カウンタ107のカウント値を超えない範囲で角度カウ
ンタ108がカウントアップする。よって、裏の欠け歯
でもカウンタ群の補正ができ、これにより、システム起
動時の初回に裏の欠け歯からスタートできるとともに、
欠け歯の判定ミス時に裏の欠け歯で補正ができる。
(ロ)CPU11は、図10のステップ1005,10
06を実行して各カウンタのカウント値の同期をとる際
に、角度カウンタ108のクリア値を現在の角度カウン
タのカウント値より僅かに大きな値にするとともに、基
準カウンタ107のカウント値を角度カウンタクリア値
にするようにしたので、直ちに角度カウンタ108のカ
ウント値を初期化することができる。(ハ)CPU11
は、図10のステップ1004を実行して、各カウンタ
のカウント値の同期をとる際に、誤って駆動信号が出な
いようにガードするようにしたので、各カウンタのカウ
ント値の同期をとる際において角度カウンタ108のカ
ウント値を補正するときにカウントアップ動作が生じた
としても、駆動信号が出力されることが未然に防止でき
る。
That is, when the count value of the reference counter 107 at that time at the back reference position every 720 ° CA of the crank signal is larger than the value corresponding to the missing tooth at the back, the angle of the counter is corrected. After synchronizing the count value of each counter with the count value of the counter 108 initialized, the angle counter 108 counts within a range not exceeding the count value of the reference counter 107 set to a value corresponding to the missing tooth on the back. Up. Therefore, it is possible to correct the counter group even with the missing tooth on the back, and thereby, it is possible to start from the missing tooth on the back at the first time when the system is started, and
Correction can be made with a missing tooth on the back when a missing tooth is determined incorrectly.
(B) The CPU 11 performs steps 1005 and 10 in FIG.
When the count value of each counter is synchronized by executing step 06, the clear value of the angle counter 108 is made slightly larger than the current count value of the angle counter, and the count value of the reference counter 107 is cleared. Since the value is set to the value, the count value of the angle counter 108 can be immediately initialized. (C) CPU 11
Performs a guard so that a drive signal is not erroneously output when synchronizing the count values of the respective counters by executing step 1004 in FIG. 10, so that when synchronizing the count values of the respective counters, Therefore, even if a count-up operation occurs when correcting the count value of the angle counter 108, it is possible to prevent a drive signal from being output.

【0045】なお、これまでの説明ではクランク信号の
基準位置部は、パルス列の途中においてパルスを抜いた
欠け歯部であったが、これに限ることなく、他の構造
(パルス列の途中にパルスを挿入する等の構造)にて所
定角度間隔毎のパルス列の途中においてパルス間隔が不
等な基準位置部を構成してもよい。
In the above description, the reference position portion of the crank signal is a missing tooth portion from which a pulse is extracted in the middle of a pulse train. However, the present invention is not limited to this. (A structure such as insertion), a reference position portion having unequal pulse intervals may be formed in the middle of a pulse train at predetermined angular intervals.

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

【図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 showing a crank signal for one cycle of an engine (720 ° CA) and a count value of a crank counter.

【図3】 ハードクランクの構成図。FIG. 3 is a configuration diagram of a hard crank.

【図4】 ハードクランクによる角度信号の生成を説明
するためのタイムチャート。
FIG. 4 is a time chart for explaining generation of an angle signal by a hard crank.

【図5】 表欠け歯時の角度信号の補正を説明するため
のタイムチャート。
FIG. 5 is a time chart for explaining correction of an angle signal at the time of a missing tooth.

【図6】 表欠け歯時の角度信号の補正を説明するため
のフローチャート。
FIG. 6 is a flowchart for explaining correction of an angle signal at the time of a missing tooth.

【図7】 裏欠け歯時の角度信号の補正を説明するため
のタイムチャート。
FIG. 7 is a time chart for explaining correction of an angle signal at the time of back missing teeth.

【図8】 裏欠け歯時の角度信号の補正を説明するため
のタイムチャート。
FIG. 8 is a time chart for explaining correction of an angle signal at the time of back missing teeth.

【図9】 裏欠け歯時の角度信号の補正を説明するため
のタイムチャート。
FIG. 9 is a time chart for explaining correction of an angle signal at the time of back missing teeth.

【図10】 裏欠け歯時の角度信号の補正を説明するた
めのフローチャート。
FIG. 10 is a flowchart for explaining correction of an angle signal at the time of back missing teeth.

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

1…エンジン制御ECU、10…マイコン、11…CP
U、16…タイマモジュール、100…ハードクラン
ク、102…エッジ時間計測カウンタ、104…逓倍カ
ウンタ、105…ガード用カウンタ、106…欠け歯判
定カウンタ、107…基準カウンタ、108…角度カウ
ンタ。
DESCRIPTION OF SYMBOLS 1 ... Engine control ECU, 10 ... Microcomputer, 11 ... CP
U, 16: timer module, 100: hard crank, 102: edge time measurement counter, 104: multiplying counter, 105: guard counter, 106: missing tooth determination counter, 107: reference counter, 108: angle counter.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 エンジンのクランク軸の回転に対応した
所定角度間隔毎のパルス列の途中に基準位置部を360
°CA毎に有するクランク信号を入力してパルス間隔を
計測するパルス間隔計測手段と、前記パルス間隔計測手
段による今回のパルス間隔を基にして次のパルスまでに
整数倍の周波数の逓倍信号を生成する逓倍信号生成手段
と、前記クランク信号のパルスにてカウントアップして
カウント値に対し前記逓倍信号生成の際の整数倍のガー
ド値を生成するガード用カウンタと、前記逓倍信号にて
前記ガード用カウンタによるガード値を超えない範囲で
カウントアップする基準カウンタと、内部クロックにて
前記基準カウンタのカウント値を超えない範囲でカウン
トアップする角度カウンタと、前記クランク信号の72
0°CA毎の表の基準位置部であると判定した時に、前
記ガード用カウンタのカウント値を初期化するとともに
基準カウンタのカウント値を表の基準位置相当の値に設
定する第1のカウンタ設定手段と、前記クランク信号の
720°CA毎の裏の基準位置部であると判定した時
に、その時の基準カウンタのカウント値が裏の基準位置
相当の値よりも大きいと、前記角度カウンタのカウント
値を初期化した状態でガード用カウンタと基準カウンタ
と角度カウンタの各カウンタのカウント値の同期をとっ
てから、ガード用カウンタと基準カウンタのカウント値
を裏の基準位置相当の値に設定する第2のカウンタ設定
手段と、を備えたことを特徴とするエンジン制御装置。
1. A reference position portion is provided in the middle of a pulse train at predetermined angular intervals corresponding to rotation of a crankshaft of an engine.
° A pulse interval measuring means for measuring a pulse interval by inputting a crank signal provided for each CA, and generating a multiplied signal of an integral multiple frequency by the next pulse based on the current pulse interval by the pulse interval measuring means. Signal generating means, a counter for counting up by a pulse of the crank signal and generating a guard value of an integral multiple of the count value when generating the multiplied signal, and a guard for the guard by the multiplied signal. A reference counter that counts up within a range not exceeding the guard value of the counter; an angle counter that counts up within a range that does not exceed the count value of the reference counter using an internal clock;
A first counter setting for initializing the count value of the guard counter and setting the count value of the reference counter to a value corresponding to the reference position of the table when it is determined that the reference position is a reference position in the table for each 0 ° CA; Means for determining the count value of the angle counter when the count value of the reference counter at that time is larger than a value corresponding to the reference position of the back when it is determined that the reference position is at the back of the crank signal at every 720 ° CA. After the counter values of the guard counter, the reference counter, and the angle counter are synchronized in a state in which the counter is initialized, the count values of the guard counter and the reference counter are set to a value corresponding to the reference position on the back. And a counter setting means.
【請求項2】 前記第2のカウンタ設定手段は、各カウ
ンタのカウント値の同期をとる際に、角度カウンタのク
リア値を現在の角度カウンタのカウント値より僅かに大
きな値にするとともに、基準カウンタのカウント値を角
度カウンタクリア値にするようにしたことを特徴とする
請求項1に記載のエンジン制御装置。
2. The second counter setting means sets the angle counter clear value to a value slightly larger than the current angle counter count value when synchronizing the count values of the respective counters, and sets a reference counter value. 2. The engine control device according to claim 1, wherein the count value is set to an angle counter clear value.
【請求項3】 前記第2のカウンタ設定手段は、各カウ
ンタのカウント値の同期をとる際に、誤って駆動信号が
出ないようにガードするようにしたことを特徴とする請
求項1または2に記載のエンジン制御装置。
3. The apparatus according to claim 1, wherein said second counter setting means guards against erroneous driving signals when synchronizing the count values of the respective counters. An engine control device according to item 1.
JP2000011630A 2000-01-20 2000-01-20 Engine control device Pending JP2001207903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000011630A JP2001207903A (en) 2000-01-20 2000-01-20 Engine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000011630A JP2001207903A (en) 2000-01-20 2000-01-20 Engine control device

Publications (1)

Publication Number Publication Date
JP2001207903A true JP2001207903A (en) 2001-08-03

Family

ID=18539470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000011630A Pending JP2001207903A (en) 2000-01-20 2000-01-20 Engine control device

Country Status (1)

Country Link
JP (1) JP2001207903A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015040499A (en) * 2013-08-21 2015-03-02 株式会社デンソー Engine control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015040499A (en) * 2013-08-21 2015-03-02 株式会社デンソー Engine control device

Similar Documents

Publication Publication Date Title
JP3508676B2 (en) Engine control device
JP4449760B2 (en) Engine control device
JP3539327B2 (en) Engine control device
JP3508720B2 (en) Engine control device
US6493628B2 (en) Engine control unit having frequency-multiplied signal generating function
JP3506116B2 (en) Engine control device
JP2001207903A (en) Engine control device
JP2001263150A (en) Engine control device
JP3791367B2 (en) Engine control device
JP4582252B2 (en) Engine control device
JP3788289B2 (en) Engine control device
JP3539379B2 (en) Engine control device
JP2002242748A (en) Engine control device
JP3539336B2 (en) Engine control device
JP2001263155A (en) Engine control device
JP3748522B2 (en) Internal combustion engine control system
EP0109675A2 (en) Electronic ignition control system
JP4244484B2 (en) Engine ignition timing control device
JP2023079051A (en) Engine control device
JP6003869B2 (en) Engine control device
JP3931661B2 (en) Control signal processor
JP2020148120A (en) Electronic controller and microcomputer
KR100692732B1 (en) CMPS synchronizing method during CKPS trouble
JPS58180735A (en) Detecting method of misoperation in electronically controlled fuel injection device
JPS63309773A (en) Ignition control device for internal combustion engine