JPH0672568B2 - Rotational position detection device for internal combustion engine control - Google Patents

Rotational position detection device for internal combustion engine control

Info

Publication number
JPH0672568B2
JPH0672568B2 JP62267319A JP26731987A JPH0672568B2 JP H0672568 B2 JPH0672568 B2 JP H0672568B2 JP 62267319 A JP62267319 A JP 62267319A JP 26731987 A JP26731987 A JP 26731987A JP H0672568 B2 JPH0672568 B2 JP H0672568B2
Authority
JP
Japan
Prior art keywords
increase
pulse
decrease
internal combustion
combustion engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62267319A
Other languages
Japanese (ja)
Other versions
JPH01110848A (en
Inventor
純孝 小川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP62267319A priority Critical patent/JPH0672568B2/en
Priority to US07/201,433 priority patent/US4931940A/en
Priority to FR8807482A priority patent/FR2620816B1/en
Publication of JPH01110848A publication Critical patent/JPH01110848A/en
Publication of JPH0672568B2 publication Critical patent/JPH0672568B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は内燃エンジンの電子制御に用いられる回転位置
検出装置に関する。
TECHNICAL FIELD The present invention relates to a rotational position detecting device used for electronic control of an internal combustion engine.

(従来技術及びその問題点) 内燃エンジンの電子制御装置、例えば燃料噴射制御装置
や点火時期制御装置によりエンジンの作動を制御する際
には、エンジンの回転位置、例えばクランク角度位置を
正確に検出することが必要であり、従来このような回転
位置検出装置として、例えば米国特許4,553,426号が公
知である。
(Prior art and its problems) When the operation of the engine is controlled by an electronic control unit for the internal combustion engine, for example, a fuel injection control unit or an ignition timing control unit, the rotational position of the engine, for example, the crank angle position is accurately detected. However, conventionally, as such a rotational position detecting device, for example, US Pat. No. 4,553,426 is known.

しかしながら、該従来の検出装置は、回転体の回転に応
じて、一部に不等間隔を有するパルス列を発生させると
ともに、該パルス列の発生状態から回転体の所定角度位
置を検知して、該検知時に前記パルス列とは別個の基準
パルスを発生させ、該基準パルスの前回発生時と今回発
生時との間に発生した前記パルス列のパルス数をカウン
トし、該パルスカウント数が所定数に一致したときに該
カウントが正常であると判別するともに、該正常を示す
検定された基準パルスを発生させるように構成されてい
るので、回転位置検出の高回転追従性が良くないととも
に、該検出結果の異常を即時に判別できないという問題
点を有していた。
However, the conventional detection device generates a pulse train having unequal intervals in part according to the rotation of the rotating body, detects the predetermined angular position of the rotating body from the generation state of the pulse train, and detects the detected position. Sometimes a reference pulse separate from the pulse train is generated, and the number of pulses in the pulse train generated between the previous generation and the current generation of the reference pulse is counted, and when the pulse count number matches a predetermined number. In addition to discriminating that the count is normal, it is configured to generate a verified reference pulse indicating the normality, so that the high rotation followability of the rotational position detection is not good and the detection result is abnormal. There was a problem that it was not possible to determine immediately.

即ち、まず第1に、エンジンの作動に伴って回転する場
合のように回転体に回転変動があるときには、基準パル
スを発生させるのに複雑が計算を要し、この演算処理に
時間がかかるため、エンジンの高回転時の追従性が良く
ない。
That is, first of all, when there is a rotational fluctuation in the rotating body such as when the engine rotates due to the operation of the engine, complicated calculation is required to generate the reference pulse, and this calculation process takes time. , The followability at high engine speed is not good.

次に、基準パルスの検定、即ちパルス列のカウントパル
ス数が正しいか否かの判別を行うのに、基準パルスの判
別及びパルス列のカウントパルス数の照合等の処理が必
要となるため、検定された基準パルスを発生させるまで
にやはり遅れ時間が生じ、この影響はエンジンの高回転
時ほど大きい。
Next, in order to verify the reference pulse, that is, to determine whether or not the count pulse number of the pulse train is correct, it is necessary to perform the processing such as the reference pulse determination and the pulse train count pulse comparison, so that the verification is performed. A delay time still occurs before the reference pulse is generated, and this effect is greater when the engine speed is higher.

更に、回転位置の検出が正常に行われているか否かの判
別が、基準パルスの発生時にだけ行われるので、2つの
基準パルス発生時の間にパルス列のカウント、即ち回転
位置の検出に誤りが生じても、これも速やかに検知でき
ず、該検出の異常判別に遅れが生ずる。
Further, since the determination of whether or not the rotational position is normally detected is made only when the reference pulse is generated, an error occurs in the pulse train count, that is, the rotational position detection, between the two reference pulses. However, this cannot be detected promptly, and the abnormality determination of the detection is delayed.

(発明の目的) 本発明は上記従来技術の問題点を解決するためになされ
たものであり、回転位置検出の高回転追従性を向上させ
るとともに、該検出結果の異常の即時判別を可能にし、
もってエンジ制御の精度の向上を図るようにした内燃エ
ンジン制御用の回転位置検出装置を提供することを目的
とする。
(Object of the Invention) The present invention has been made in order to solve the problems of the above-mentioned prior art, improves the high rotation followability of the rotational position detection, and enables immediate determination of an abnormality in the detection result.
An object of the present invention is to provide a rotational position detecting device for controlling an internal combustion engine, which is designed to improve the precision of engine control.

(問題点を解決するための手段) 上記目的を達成するために、本発明の内燃エンジン制御
用の回転位置検出装置にあっては、周方向に一部不等間
隔をなす複数の被検出部を備え、内燃エンジンの作動に
伴い回転する回転体と、該回転体の回転に応じ前記被検
出部と対向する毎にパルスを発生するパルス発生手段
と、前記パルスの時間間隔を計測する計測手段と、該計
測手段の出力の前回値と今回値とを比較し、その増減を
判別する増減判別手段と、該増減判別手段の出力を、現
在から所定複数区間に亘り増減パターンとして記憶する
記憶手段と、該記憶手段が記憶した増減パターンと正常
時の増減パターンとを比較することにより異常判別を行
う異常判別手段とを有することを特徴とする。
(Means for Solving the Problems) In order to achieve the above object, in the rotational position detecting device for controlling an internal combustion engine of the present invention, a plurality of detected parts which are partially unequal in the circumferential direction are provided. A rotating body which rotates with the operation of the internal combustion engine, a pulse generating means for generating a pulse each time the rotating body faces the detected portion according to the rotation of the rotating body, and a measuring means for measuring a time interval of the pulse. And an increase / decrease determination unit that compares the previous value and the current value of the output of the measurement unit and determines increase / decrease thereof, and a storage unit that stores the output of the increase / decrease determination unit as an increase / decrease pattern over a plurality of predetermined sections from the present. And an abnormality determination means for performing abnormality determination by comparing the increase / decrease pattern stored in the storage means with the increase / decrease pattern at the normal time.

(実施例) 以下、本発明の実施例を、図面を参照しながら説明す
る。
(Example) Hereinafter, the Example of this invention is described, referring drawings.

第1図は本発明の第1実施例に係る回転位置検出装置を
適用した内燃エンジンの制御装置の全体構成図である。
同図中1は例えば4気筒の内燃エンジを示し、該エンジ
ン1のクランク軸(回転体)2の外周面には突起(被検
出部)2aが周方向に45度の等間隔に例えば7個、半径方
向外方に突設されており、該突設部分以外の外周面は突
起2aが1個分欠落した突起欠落部2bとなっている。
FIG. 1 is an overall configuration diagram of a control device for an internal combustion engine to which a rotational position detecting device according to a first embodiment of the present invention is applied.
In the figure, reference numeral 1 denotes, for example, an internal combustion engine of four cylinders, and there are, for example, seven protrusions (detected portions) 2a on the outer peripheral surface of a crankshaft (rotating body) 2 of the engine 1 at equal intervals of 45 degrees in the circumferential direction. The projecting portion 2b is formed so as to project outward in the radial direction, and the outer peripheral surface other than the projecting portion is a projecting portion 2b in which one projecting portion 2a is missing.

該突起2aに対向する位置にはクランク角度位置センサ
(パルス発生手段)、(以下「PCセンサ」という)3が
配設されている。該PCセンサ3は、例えばピックアップ
コイルから成り、突起2aと対向する毎にクランク角度位
置信号パルス(以下単に「パルス」という)を発生す
る。また、該PCセンサ3は波形整形回路4を介して電子
コントロールユニット(以下「ECU」という)5と電気
的に接続されており、該ECU5には波形整形回路4によっ
て波形整形されたパルスが供給される。
A crank angle position sensor (pulse generation means) 3 (hereinafter referred to as "PC sensor") 3 is arranged at a position facing the protrusion 2a. The PC sensor 3 is composed of, for example, a pickup coil, and generates a crank angle position signal pulse (hereinafter simply referred to as “pulse”) each time it faces the protrusion 2a. Further, the PC sensor 3 is electrically connected to an electronic control unit (hereinafter referred to as “ECU”) 5 via a waveform shaping circuit 4, and the ECU 5 is supplied with a pulse shaped by the waveform shaping circuit 4. To be done.

ECU5は後述するように本実施例においては計測手段、増
減判別手段、記憶手段及び異常判別手段を構成するもの
であり、クランク軸2の回転位置を検出するとともに、
該検出結果が正常であるか否かを判別する。
As will be described later, the ECU 5 constitutes a measuring means, an increase / decrease judging means, a storage means and an abnormality judging means in this embodiment, detects the rotational position of the crankshaft 2, and
It is determined whether or not the detection result is normal.

また、該ECU5には吸気管内圧力等のエンジンの運転状態
を検出する各種センサ6が接続され、これらの検出信号
が供給されるとともに、該ECU5の出力側は増幅回路7を
介して点火装置8及び燃料噴射弁9等のエンジン制御装
置に接続されている。ECU5は前記各種センサ6からの入
力信号に応じ、エンジン制御装置の制御量、即ち点火装
置8の通電時期及び燃料噴射弁9の開弁時間等を演算す
るとともに、該演算結果に基づく制御信号を、前記検出
されたクランク軸2の回転位置に応じた所定のタイミン
グで、点火装置8及び燃料噴射弁9に増幅回路7を介し
て供給する。
Further, various sensors 6 for detecting an engine operating state such as an intake pipe internal pressure are connected to the ECU 5, and these detection signals are supplied, and the output side of the ECU 5 is ignited by an ignition circuit 8 via an amplifier circuit 7. And an engine control device such as the fuel injection valve 9 and the like. The ECU 5 calculates the control amount of the engine control device, that is, the energization timing of the ignition device 8 and the valve opening time of the fuel injection valve 9 according to the input signals from the various sensors 6, and outputs the control signal based on the calculation result. , Is supplied to the ignition device 8 and the fuel injection valve 9 via the amplification circuit 7 at a predetermined timing according to the detected rotational position of the crankshaft 2.

次に、上記構成の回転位置検出装置の作用を説明する。
第2図はPCセンサ3によるパルスの発生状況を示すタイ
ムチャートである。即ち、クランク軸2が1回転する毎
に7個のパルスが発生し、突起欠落部2bに対応するパル
ス間の時間間隔は他の部分のそれよりも大きく、これら
のパルスによりパルス列が形成される。また、ECU5は後
述する制御プログラムにより、パルスの前回発生時と今
回発生時との間の時間間隔(以下、単に「時間間隔」と
いう)Tsを計測するとともに、該時間間隔Tsの前回値と
今回値とを比較し、後者が前者より大のとき、即ち時間
間隔Tsが増加したときには値1を、後者が前者より小の
とき、即ち時間間隔Tsが減少したときには値0を設定す
る。
Next, the operation of the rotational position detecting device having the above configuration will be described.
FIG. 2 is a time chart showing a pulse generation state by the PC sensor 3. That is, seven pulses are generated each time the crankshaft 2 makes one revolution, the time interval between the pulses corresponding to the protrusion missing portion 2b is larger than that of the other portions, and a pulse train is formed by these pulses. . In addition, the ECU 5 measures the time interval Ts (hereinafter, simply referred to as “time interval”) between the time when the pulse is generated last time and the time when this time is generated by the control program described later, and the previous value of the time interval Ts and this time. When the latter is larger than the former, that is, when the time interval Ts increases, the value 1 is set, and when the latter is smaller than the former, that is, when the time interval Ts decreases, the value 0 is set.

したがって、クランク軸2が第1図中時計方向に回転す
るものとし、前記突起欠落部2bがPCセンサ3と対向する
直前及び直後に発生するパルスのパルス番号Sをそれぞ
れ値1及び2、以降に発生するパルスのパルス番号を順
次値3乃至7と定義すると、クランク軸2が一定速度で
回転すると仮定した場合には第2図(a)に示すように
パルス番号S=1,2間の時間間隔が他の時間間隔より大
きく、他の時間間隔同志は等しいため、ECU5はパルス番
号S=2のときには時間間隔増と判別して値1を、パル
ス番号S=3のときには時間間隔減と判別して値0をそ
れぞれ設定し、パルス番号Sが他の値のときには不定と
判別する。
Therefore, it is assumed that the crankshaft 2 rotates clockwise in FIG. 1, and the pulse numbers S of the pulses generated immediately before and immediately after the protrusion missing portion 2b faces the PC sensor 3 are 1 and 2, respectively. If the pulse numbers of the pulses to be generated are sequentially defined as values 3 to 7, assuming that the crankshaft 2 rotates at a constant speed, as shown in FIG. Since the interval is larger than the other time intervals and the other time intervals are equal to each other, the ECU 5 determines that the time interval is increased when the pulse number S = 2, and determines the value 1 when the pulse number S = 3. Then, the value 0 is set respectively, and when the pulse number S is another value, it is determined to be indefinite.

これに対して、エンジ1の作動時には、第2図(b)に
示すように圧縮行程終了時にクランク軸2に加わる負荷
が増大するために該クランク軸2に回転変動が生じ、例
えば圧縮行程終了時がパルス番号S=1及び4のパルス
発生時に該当するものとすれば、該パルスの発生が遅れ
ることにより、ECU5による時間間隔Tsの増減パターン
(以下、単に「増減パターン」という)はパルス番号S
=1乃至7に対し、1(増)1,0(減)、1,0,0及び1と
なる。
On the other hand, when the engine 1 is operated, the load applied to the crankshaft 2 increases at the end of the compression stroke as shown in FIG. Assuming that the time corresponds to the generation of the pulse of pulse numbers S = 1 and 4, the increase / decrease pattern of the time interval Ts (hereinafter, simply referred to as “increase / decrease pattern”) by the ECU 5 is the pulse number because the generation of the pulse is delayed. S
= 1 to 7, 1 (increase), 1,0 (decrease), 1,0,0 and 1.

即ち、エンジン作動時にはパルス時間間隔Tsが所定の増
減パターンを形成するので、この所定の増減パターンを
予め記憶しておき、これを検出された増減パターンと比
較することにより、発生パルスのパルス番号、即ちクラ
ンク軸2の回転位置を検出できるとともに、ノイズの発
生あるいはPCセンサ3の該作動等に起因するパルスカウ
ントのずれ、即ち回転位置の検出結果の異常を判別でき
る。第3図は発生パルスが正常カウントされている場
合、即ちノイズが発生しておらず、且つPCセンサ3から
のパルスをECU5が正常にカウントしている場合の各パル
ス番号に対する増減パターンをとりまとめたものであ
る。
That is, since the pulse time interval Ts forms a predetermined increase / decrease pattern during engine operation, this predetermined increase / decrease pattern is stored in advance and the pulse number of the generated pulse is compared by comparing this with the detected increase / decrease pattern, That is, the rotational position of the crankshaft 2 can be detected, and the deviation of the pulse count due to the occurrence of noise or the operation of the PC sensor 3, that is, the abnormality of the detection result of the rotational position can be determined. FIG. 3 shows the increase / decrease patterns for each pulse number when the generated pulses are normally counted, that is, when noise is not generated and the ECU 5 normally counts the pulses from the PC sensor 3. It is a thing.

以下、ECU5において実行される制御プログラムの実行内
容を説明する。
The execution contents of the control program executed in the ECU 5 will be described below.

第4図は、パルス番号S及び前記増減パターンを初期化
するサブルーチンのフローチャートを示す。本サブルー
チンはエンジン1の始動時及び後述する第6図のサブル
ーチンによりパルスカウンタが異常と判別された時に実
行される。
FIG. 4 shows a flowchart of a subroutine for initializing the pulse number S and the increase / decrease pattern. This subroutine is executed when the engine 1 is started and when the pulse counter is determined to be abnormal by the subroutine shown in FIG. 6 which will be described later.

まず、ステップ401では後述するビットパターンP等の
記憶内容をすべて消去し、次いで後述する第5図のサブ
ルーチンの割込を禁止する(ステップ402)。
First, in step 401, all the stored contents such as the bit pattern P described later are erased, and then the interruption of the subroutine of FIG. 5 described later is prohibited (step 402).

次に、パルスが入力したか否かを判別し(ステップ40
3)、この答が肯定(Yes)、即ちパルスが入力したとき
に、ECU5に内蔵された、アップカンウンタから成るtsタ
イマをリセットして、これをスタートさせる(ステップ
404)。次に前記ステップ403と同様にパルスが入力した
か否かを判別し(ステップ405)、パルスが入力したと
きに前記ステップ403のパルス入力時からの経過時間で
ある時間間隔Tsとして前記tsカウンタのカウント値tsを
セットし(ステップ406)、次いで前記ステップ404と同
様にtsタイマをリセット及びスタートさせ(ステップ40
7)、仮のパルス番号S0を値1に設定する(ステップ40
8)。
Next, it is determined whether or not a pulse is input (step 40
3) When this answer is affirmative (Yes), that is, when a pulse is input, reset the ts timer composed of an upcounter built in the ECU 5 and start it (step
404). Next, similarly to the step 403, it is determined whether or not a pulse is input (step 405), and when the pulse is input, the ts counter of the ts counter is set as a time interval Ts which is the elapsed time from the pulse input in step 403. The count value ts is set (step 406), and then the ts timer is reset and started similarly to the step 404 (step 40).
7), set temporary pulse number S 0 to value 1 (step 40)
8).

次いで、次のパルスが入力したか否かを判別し(ステッ
プ409)、パルスが入力したときには前記ステップ406で
セットした時間間隔Tsをその前回値Ts-1に再セットし
(ステップ410)、新たな時間間隔の今回値Tsとしてts
カウンタのカウント値tsをセットした後(ステップ41
1)、該tsタイマを再びリセット及びスタートさせる
(ステップ412)。
Next, it is determined whether or not the next pulse is input (step 409), and when the pulse is input, the time interval Ts set in the step 406 is reset to its previous value Ts -1 (step 410), and a new value is set. Ts as the current value Ts of various time intervals
After setting the count value ts of the counter (step 41
1) Reset and start the ts timer again (step 412).

次にステップ413では前記ステップ410及び411でセット
した時間間隔の前回値Ts-1と今回値Tsとの比Rを算出
し、次いで該算出したR値がそれまでに得られた最大値
MaxRより大きいか否かを判別する(ステップ414)。こ
の答が肯定(Yes)、即ちR>MaxRが成立するときに
は、このときのR値を最大値MaxRに、仮のパルス番号S0
をMaxS0にそれぞれ再設定した後(ステップ415及び41
6)、後述のステップ417に進む。即ち、最大値MaxRはR
値の最大値を、MaxS0はこのときの仮パルス番号S0を表
すものである。前記ステップ414の答が否定(No)、即
ちR<MaxRのときにはステップ417に進む。
Next, in step 413, the ratio R between the previous value Ts -1 and the current value Ts of the time intervals set in steps 410 and 411 is calculated, and then the calculated R value is the maximum value obtained so far.
It is determined whether or not it is larger than MaxR (step 414). When this answer is affirmative (Yes), that is, when R> MaxR is satisfied, the R value at this time is set to the maximum value MaxR and the temporary pulse number S 0 is set.
To MaxS 0 respectively (steps 415 and 41).
6) and proceed to step 417 described below. That is, the maximum value MaxR is R
The maximum value, MaxS 0 is representative of the provisional pulse number S 0 at this time. When the answer to step 414 is negative (No), that is, R <MaxR, the process proceeds to step 417.

このステップ417ではECU5内に記憶されるビットパター
ンPを1桁上位にシフトし、次いで時間間隔の今回値Ts
が前回値Ts-1より小さいか否かを判定する(ステップ41
8)。この答が肯定(Yes)、即ちTs<Ts-1が成立し、し
たがって時間間隔の今回値Tsが前回値Ts−1よりも小さ
いときには、ビットパターPの最下位桁値PLSBを値0に
セットし(ステップ419)、否定(No)、即ちTs>Ts-1
か成立し、したがって時間間隔の今回値Tsが前回値Ts-1
よりも大きいときには前記PLSB値を値1にセットする
(ステップ420)。
In this step 417, the bit pattern P stored in the ECU 5 is shifted up by one digit, and then the current value Ts of the time interval is set.
Is smaller than the previous value Ts -1 (step 41
8). When this answer is affirmative (Yes), that is, when Ts <Ts −1 is satisfied and therefore the current value Ts of the time interval is smaller than the previous value Ts−1, the least significant digit value P LSB of the bit pattern P is set to the value 0. Set (step 419), negative (No), ie Ts> Ts -1
Therefore, the current value Ts of the time interval is the previous value Ts -1
If it is larger than the above, the P LSB value is set to the value 1 (step 420).

次いで、ステップ421では仮パルス番号S0に値1を加算
し、ステップ422では該加算した後の仮パルス番号S0
値9に達したか否かを判別する。この答が否定(No)の
ときには前記ステップ409に進む。即ち、仮パルス番号S
0が値9に達するまで前記ステップ409乃至421が繰り返
し実行され、MaxR値、MaxS0値、ビットパターンP及び
仮パルス番号S0の設定が行われる。
Next, in step 421, the value 1 is added to the temporary pulse number S 0 , and in step 422, it is determined whether or not the temporary pulse number S 0 after the addition has reached the value 9. When this answer is negative (No), the process proceeds to step 409. That is, the temporary pulse number S
The above steps 409 to 421 are repeatedly executed until 0 reaches the value 9, and the MaxR value, the MaxS 0 value, the bit pattern P and the temporary pulse number S 0 are set.

前記ステップ422の答が肯定(Yes)、即ち仮パルス番号
S0が値9に達したときには、パルス番号Sを、S=S0
MaxS0+2として算出する(ステップ423)。第2図
(b)から明らかなように、最大値MaxRはパルス番号S
=3に相当するパルスが発生したときのステップ415の
実行により設定されるが、当該パルス発生に対応する仮
パルス番号S0の加算(ステップ421)がMaxS0の更新より
後に行われるので、上記式により、仮パルス番号S0を、
設定すべきパルス番号Sに変換して発生パルスに対しパ
ルス番号Sを正しく割り当てることができる。
The answer to step 422 is affirmative (Yes), that is, the temporary pulse number.
When S 0 reaches the value 9, the pulse number S is changed to S = S 0
It is calculated as MaxS 0 +2 (step 423). As is clear from FIG. 2 (b), the maximum value MaxR is the pulse number S
It is set by executing step 415 when a pulse corresponding to = 3 is generated, but since the addition of the temporary pulse number S 0 (step 421) corresponding to the pulse generation is performed after the update of MaxS 0 , From the formula, the temporary pulse number S 0 is
The pulse number S to be set can be converted and the pulse number S can be correctly assigned to the generated pulse.

次に、ステップ424に進み前記ステップ423で設定したパ
ルス番号Sが値7より大きいか否かを判別し、この答が
肯定(Yes)のときには該S値から値を減算してパルス
番号Sを7以下の値に再設定した後(ステップ425)、
否定(No)のときにはそのままステップ426に進む。
Next, in step 424, it is determined whether or not the pulse number S set in step 423 is larger than the value 7, and when the answer is affirmative (Yes), the value is subtracted from the S value to obtain the pulse number S. After resetting to a value less than 7 (step 425),
If negative (No), the process directly proceeds to step 426.

このステップ426では前記ステップ402で設定した第5図
のサブルーチンに対する割込禁止状態を解除してその割
込を許可し得る状態とし、次いで後述の第6図のサブル
ーチンを引き続き実行して(ステップ427)本プログラ
ムを終了する。以上のような本プログラムの実行によ
り、エンジン1の始動時あるいはパルスカウントの異常
検知時に、発生パルスに対し所定のパルス番号S及び増
減パターンが割り当てられる。
In this step 426, the interrupt-prohibited state for the subroutine of FIG. 5 set in step 402 is released to allow the interrupt, and then the subroutine of FIG. 6 described later is continuously executed (step 427). ) Exit this program. By executing this program as described above, the predetermined pulse number S and the increase / decrease pattern are assigned to the generated pulse when the engine 1 is started or when the abnormality of the pulse count is detected.

第5図はパルス番号S及び増減パターンを更新する制御
サブルーチンのフローチャートを示す。本プログラムは
パルス発生と同期し、且つ後述の第6図のサブルーチン
に対して割込実行される。
FIG. 5 shows a flowchart of a control subroutine for updating the pulse number S and the increase / decrease pattern. This program is synchronized with the pulse generation and is executed by interruption with respect to the subroutine shown in FIG. 6 which will be described later.

まず、前述の第4図のサブルーチンのステップ410乃至4
12と全く同様に、時間間隔の前回値Ts-1及び今回値Tsを
セットして、tsタイマをリセット及びスタートさせ(ス
テップ501乃至503)、次いでビットパターンPを1桁上
位にシフトする(ステップ504)。
First, steps 410 to 4 of the above-mentioned subroutine shown in FIG.
Just like 12, the previous value Ts -1 and the current value Ts of the time interval are set, the ts timer is reset and started (steps 501 to 503), and then the bit pattern P is shifted to the upper digit by one digit. 504).

次いで、前記ステップ502でセットした時間間隔の今回
値Tsが前記ステップ501でセットした時間間隔の前回値T
s-1より小さいか否かを判別し(ステップ505)、Ts<Ts
-1のときにはビットパターンPの最下位桁値PLSBを値0
に、Ts<Ts-1のときには該PLSB値を値1にそれぞれセッ
トして(ステップ506及び507)、増減パターンを更新す
る。
Next, the current value Ts of the time interval set in step 502 is the previous value Ts of the time interval set in step 501.
It is determined whether or not it is smaller than s -1 (step 505), and Ts <Ts
When it is -1 , the least significant digit value P LSB of the bit pattern P is set to 0.
When Ts <Ts -1, the P LSB value is set to the value 1 (steps 506 and 507) and the increase / decrease pattern is updated.

次いで、パルス番号Sに値1を加算して(ステップ50
8)これを更新し、該更新されたパルス番号Sが値8に
達したか否かを判別し(ステップ509)、S=8のとき
にパルス番号Sを値1に再設定して(ステップ510)該
S値が1乃至7の間でリングカウントされるようにして
本プログラムを終了する。
Then, the value 1 is added to the pulse number S (step 50
8) This is updated, and it is determined whether the updated pulse number S has reached the value 8 (step 509), and when S = 8, the pulse number S is reset to the value 1 (step 509). 510) The program is ended after the S value is ring-counted between 1 and 7.

第6図はパルスカウントの異常判別サブルーチンのフロ
ーチャートを示す。本プログラムは前述の第4図のサブ
ルーチンに引き続いて、例えば一定時間間隔毎に繰り返
し実行される。
FIG. 6 shows a flowchart of a pulse count abnormality determination subroutine. This program is repeatedly executed, for example, at regular time intervals, following the subroutine shown in FIG.

即ち、本プログラムは第4図又は第5図のサブルーチン
により得られた増減パターンを、このときのパルス番号
Sに対応して正常カウント時に得られるであろう所定の
増減パターン(第3図参照)と比較し、両増減パターン
が一致するときにパルス番号Sが正しくカウントされて
いると判別するものである。なお、本実施例ではビット
パターンのうち下位側の8桁分、即ち最新の8パルス分
を対象とし、これを16進表示に変換して比較を行ってい
る。
That is, this program changes the increase / decrease pattern obtained by the subroutine of FIG. 4 or FIG. 5 into a predetermined increase / decrease pattern that will be obtained at the time of normal counting in correspondence with the pulse number S at this time (see FIG. 3). And the pulse number S is correctly counted when both increase / decrease patterns match. In this embodiment, the lower 8 digits of the bit pattern, that is, the latest 8 pulses are targeted, and converted into hexadecimal display for comparison.

まず、ステップ601ではパルス番号Sが値1に等しいか
否かを判別する。この答が肯定(Yes)、即ちS=1が
成立するときには、正常時のビットパターンは第3図か
ら明らかなようにP=D3hであるので、ステップ602にお
いてこの等式が成立しているか否かを判別する。この答
が否定(No)、即ちP=D3hが成立せず、したがって検
出された時間間隔Tsの増減パターンと所定の増減パター
ンが一致しないときには、パルス番号Sのカウントが誤
りであるとしてステップ603に進み、前述の第4図に示
すサブルーチンを実行してパルス番号S及び増減パター
ンの初期化を再度行う。
First, in step 601, it is determined whether or not the pulse number S is equal to the value 1. When this answer is affirmative (Yes), that is, when S = 1 holds, the bit pattern in the normal state is P = D3h, as is apparent from FIG. 3, so it is determined in step 602 whether this equation holds. Determine whether. If this answer is negative (No), that is, P = D3h is not established, and therefore the detected increase / decrease pattern of the time interval Ts and the predetermined increase / decrease pattern do not match, it is determined that the count of the pulse number S is erroneous, and the procedure proceeds to step 603. Then, the subroutine shown in FIG. 4 is executed to initialize the pulse number S and the increase / decrease pattern again.

一方、前記ステップ602の答が肯定(Yes)、即ちP=D3
hが成立するときには、検出された増減パターンと所定
の増減パターンが一致しているので、パルス番号Sが正
常にカウントされているとしてステップ604に進み、該
検出されたパルス番号Sに応じ、所定のタイミングで点
火装置8及び燃料噴射弁9に前述の制御信号を出力し、
これらを制御して本プログラムを終了する。
On the other hand, the answer to step 602 is affirmative (Yes), that is, P = D3.
When h is satisfied, since the detected increase / decrease pattern matches the predetermined increase / decrease pattern, it is determined that the pulse number S is normally counted, and the process proceeds to step 604, where the predetermined increase / decrease pattern is determined according to the detected pulse number S. The control signal is output to the ignition device 8 and the fuel injection valve 9 at the timing of
The program is terminated by controlling these.

以下同様に、ステップ番号Sの判別と、該判別されたス
テップ番号Sに対応する所定の増減パターンと検出され
た増減パターンとの比較とを行い、該比較結果に応じて
前記ステップ603又は604を実行する。即ち、S=2のと
きにP=A7hが(ステップ605及び606)、S=3のとき
にP=4Ehが(ステップ607及び608)、S=4のときに
P=9Dhが(ステップ609及び610)、S=5のときにP
=3Ahが(ステップ611及び612)、S=6のときにP=7
4hが(ステップ613及び614)、又はS=7のときにP=
E9hが(ステップ615及び616)成立するか否かがそれぞ
れ判別され、これらの答が否定(No)のときには前記ス
テップ603を、肯定(Yes)のときには前記ステップ604
をそれぞれ実行する。
Similarly, the determination of the step number S and the comparison between the predetermined increase / decrease pattern corresponding to the determined step number S and the detected increase / decrease pattern are performed, and the step 603 or 604 is performed according to the comparison result. Run. That is, when S = 2, P = A7h (steps 605 and 606), when S = 3, P = 4Eh (steps 607 and 608), and when S = 4, P = 9Dh (steps 609 and 606). 610), P when S = 5
= 3Ah (steps 611 and 612), when S = 6, P = 7
4h (steps 613 and 614), or when S = 7, P =
It is determined whether or not E9h is satisfied (steps 615 and 616). When these answers are negative (No), the step 603 is performed, and when affirmative (Yes), the step 604 is performed.
Respectively.

また、前記ステップ615の答が否定(No)、即ちパルス
番号Sが1乃至7以外の値をとるときには該パルス番号
Sの設定自体に誤りがあるとして前記ステップ603を実
行する。
When the answer to step 615 is negative (No), that is, when the pulse number S takes a value other than 1 to 7, the step itself is set to erroneous and step 603 is executed.

以上のように、本実施例によれば、パルス発生毎にパル
ス番号のカウントと増減パターンの更新とが実行され、
該得られたパルス番号及び増減パターンに基づき、パル
スカウントの異常判別が常時行われるので、パルス発生
毎に異常判別を行うことができ、したがって回転位置の
検出結果の異常を速やかに判別することができる。ま
た、基準パルスを発生させる必要がないとともに、計算
の容易なビットパターン同志の比較演算によって異常判
別が行われるので、演算処理時間が短縮されることによ
り、回転位置検出の高回転追従性を向上させることがで
きるとともに、該検出結果の異常を速やかに判別でき
る。
As described above, according to the present embodiment, the counting of pulse numbers and the updating of the increase / decrease pattern are executed every time a pulse is generated,
Since the abnormality determination of the pulse count is always performed based on the obtained pulse number and the increase / decrease pattern, it is possible to perform the abnormality determination for each pulse generation, and thus the abnormality of the detection result of the rotational position can be promptly determined. it can. In addition, since it is not necessary to generate a reference pulse, and abnormality determination is performed by comparison calculation of bit patterns that are easy to calculate, the calculation processing time is shortened and the high rotation followability of rotation position detection is improved. In addition to the above, the abnormality in the detection result can be promptly determined.

(第2実施例) 第7図は本発明の第2実施例に係る回転位置検出装置を
適用した内燃エンジンの点火時期制御装置の全体構成図
であり、前述の第1実施例と同一部分については同一符
号を付している。本実施例における回転位置検出装置は
前述の第1実施例におけるそれと比較し、クランク軸2
の突起2aの設置個数及び設置間隔、ECU5が発生パルスの
時間間隔の計測及びその増減の判別を各パルス毎ではな
く所定のパルス番号のパルス毎に行うことが主に異なる
ものである。
(Second Embodiment) FIG. 7 is an overall configuration diagram of an ignition timing control device for an internal combustion engine to which a rotational position detecting device according to a second embodiment of the present invention is applied. About the same portion as the first embodiment described above Are given the same reference numerals. The rotational position detection device in this embodiment is different from that in the first embodiment described above in comparison with the crankshaft 2
The main difference is that the number of installations and installation intervals of the projections 2a, the measurement of the time interval of generated pulses, and the determination of increase / decrease thereof are performed by the ECU 5 not for each pulse but for each pulse of a predetermined pulse number.

即ち、クランク軸2の外周面には突起2aが周方向に30度
毎に例えば9個、等間隔に突設されており、該突設部分
以外の外周面は突起2aが3個分欠落した突起欠落部2bと
なっている。ECU5には第1実施例と同様の構成を有し
て、PCセンサ3が波形整形回路4を介して及び各種セン
サ6が接続されている。
That is, the outer peripheral surface of the crankshaft 2 is provided with protrusions 2a in the circumferential direction at intervals of 30 degrees, for example, nine protrusions at equal intervals, and three protrusions 2a are missing from the outer peripheral surface other than the protruding portion. It is a protrusion missing portion 2b. The ECU 5 has the same configuration as that of the first embodiment, and the PC sensor 3 is connected to the various sensors 6 via the waveform shaping circuit 4.

ECU5はPCセンサ3からの入力パルスに応じ、後述する方
法でクランク軸2の回転位置を検出するとともに、該検
出結果が正常であるか否かを判別する。また、ECU5は各
種センサ6からの入力信号に応じ、点火装置8の点火時
期及び通電時期等の制御量を演算するとともに、検出さ
れた回転位置に応じて後述する点火カウンタ8e及び通電
カウンタ8bを作動させ、点火装置8が所定のタイミング
で作動するように制御する。
The ECU 5 detects the rotational position of the crankshaft 2 by a method described later according to the input pulse from the PC sensor 3 and determines whether or not the detection result is normal. Further, the ECU 5 calculates a control amount such as an ignition timing and an energization timing of the ignition device 8 according to an input signal from the various sensors 6, and an ignition counter 8e and an energization counter 8b described later according to the detected rotational position. Then, the ignition device 8 is controlled to operate at a predetermined timing.

ECU5は点火装置8の点火レジスタ8a及び点火カウンタ8b
に接続されており、前者8aはECU5により演算された前記
点火時期を設定し、後者8bはアップカウンタから成り、
ECU5の制御により所定のタイミングで作動を開始するも
のであって、両者8a,8bは第1の比較器8cの入力側に接
続されている。該第1の比較器8cは点火カウンタ8bのカ
ウント値が点火レジスタ8aに設定された点火時期を上回
ったときにハイレベル信号を出力する。
The ECU 5 is an ignition register 8a and an ignition counter 8b of the ignition device 8.
The former 8a sets the ignition timing calculated by the ECU 5, and the latter 8b is composed of an up counter.
The operation is started at a predetermined timing under the control of the ECU 5, and both 8a and 8b are connected to the input side of the first comparator 8c. The first comparator 8c outputs a high level signal when the count value of the ignition counter 8b exceeds the ignition timing set in the ignition register 8a.

また、点火装置8内には前記点火レジスタ8a等と同様の
構成を有して、通電レジスタ8d、通電カウンタ8e及び第
2の比較回路8fが設けられている。即ち、通電レジスタ
8dは前記演算された通電時期を設定し、通電カウンタ8e
はECU5の制御により所定のタイミングで作動を開始し、
第2の比較回路8fは通電カウンタ8eのカウント値が通電
時期を上回ったときにハイレベル信号を出力する。
Further, the ignition device 8 is provided with an energization register 8d, an energization counter 8e, and a second comparison circuit 8f having the same configuration as the ignition register 8a and the like. That is, the energizing register
8d sets the calculated energization timing, and energization counter 8e
Starts operation at a predetermined timing under the control of ECU5,
The second comparison circuit 8f outputs a high level signal when the count value of the energization counter 8e exceeds the energization timing.

前記第1及び第2の比較器8c,8fの出力側はR−S形フ
ィリップフロップ回路8gのリセット端子R及びセット端
子Sにそれぞれ接続され、該R−S形フィリップフロッ
プ回路8gのQ出力端子はトランジスタ8hを介して点火コ
イル8iに接続されている。即ち、第2の比較回路8fだけ
からハイレベル信号が出力されている間はQ出力がハイ
レベルとなり、点火コイル8iに付勢電力が供給されると
ともに、第1の比較回路8cからもハイレベル信号が出力
されたときにQ出力がローレベルとなって点火が行われ
るようになっている。
The output sides of the first and second comparators 8c and 8f are respectively connected to the reset terminal R and the set terminal S of the RS flip-flop circuit 8g, and the Q output terminal of the RS flip-flop circuit 8g. Is connected to the ignition coil 8i via the transistor 8h. That is, while the high level signal is being output only from the second comparison circuit 8f, the Q output is at a high level, the energizing power is supplied to the ignition coil 8i, and the high level signal is also output from the first comparison circuit 8c. When the signal is output, the Q output becomes low level and ignition is performed.

次に、上記構成の回転位置検出装置の作用を説明する。
第8図(a)はパルスの発生状況を示すタイムチャート
であり、クランク軸2が1回転する毎に9個のパルスが
発生し、突起欠落部2bに対応するパルス間の時間間隔は
他の部分のそれよりも4倍の値となり、これらのパルス
によりパルス列が形成される。
Next, the operation of the rotational position detecting device having the above configuration will be described.
FIG. 8 (a) is a time chart showing the state of pulse generation. Nine pulses are generated each time the crankshaft 2 makes one revolution, and the time intervals between the pulses corresponding to the protrusion missing portion 2b are different. These pulses have a value four times that of the portion, and these pulses form a pulse train.

ECU5は第1実施例のようにパルス発生毎に隣り合う2つ
のパルス間の時間間隔Tsを計測するのではなく、後述す
る制御プログラムにより検出されたパルス番号Sのパル
ス間の時間間隔Tsを計測し、該計測されたTs値に基づき
その増減パターンを設定する。
The ECU 5 does not measure the time interval Ts between two adjacent pulses for each pulse generation as in the first embodiment, but measures the time interval Ts between the pulses of the pulse number S detected by the control program described later. Then, the increase / decrease pattern is set based on the measured Ts value.

即ち、クランク軸2が第1図中時計方向に回転するもの
とし、前記突起欠落部2bがPCセンサ3と対向する直前及
び直後に発生するパルス番号Sをそれぞれ値1及び2、
以降に発生するパルスを順次値3乃至9と定義した場
合、ECU5は本実施例ではパルスのカウントは各パルス発
生毎に行うが、時間間隔Tsの計測はパルス番号S=1〜
2間、2〜4間、4〜8間及び8〜1間においてのみ行
う。以下上記パルス間の時間間隔TsをそれぞれTs1〜Ts4
と定義する。したがって、パルスが正常にカウントされ
ている場合には、第8図(b)に示すように各時間間隔
Ts1,Ts2,Ts3,Ts4,Ts1…の計測時に対し増(1),減
(0),増(1),減(0),増(1)…という所定の
増減パターンが得られる。
That is, it is assumed that the crankshaft 2 rotates clockwise in FIG. 1, and the pulse numbers S generated immediately before and immediately after the protrusion missing portion 2b faces the PC sensor 3 are 1 and 2, respectively.
When the pulses to be generated thereafter are sequentially defined as values 3 to 9, the ECU 5 counts the pulses at each pulse generation in this embodiment, but the time interval Ts is measured by the pulse numbers S = 1 to 1.
It is performed only between 2 and 2, 2 and 4, 4 and 8 and 1. Below, the time intervals Ts between the above pulses are Ts 1 to Ts 4 respectively.
It is defined as Therefore, when the pulses are normally counted, as shown in FIG.
There is a predetermined increase / decrease pattern of increase (1), decrease (0), increase (1), decrease (0), increase (1), etc. when measuring Ts 1 , Ts 2 , Ts 3 , Ts 4 , Ts 1 . can get.

これに対し、ノイズの発生等に起因して一旦カウントに
多少が生じ、その後パルス発生毎にカウントが行われる
状態に復帰した場合には、パルスのカウントにずれが生
ずるが、このときの増減パターンはカウントずれ数によ
って定まることから第8図(C−1)〜(C−8)に示
すいずれかのパターンに属することとなる。例えば、ノ
イズが1回だけ発生し、このノイズをパルスとしてカウ
ントしたときには、同図(C−1)に示すように、パル
ス番号Sが1個分遅れて検出され(カウントずれ数n=
1)、これに応じて増減パターンは各時間間隔Ts1,Ts2,
Ts3,Ts4計測時に対して0,1,1,1となる。
On the other hand, if the count is once increased due to the occurrence of noise or the like and then returns to the state in which the count is performed each time a pulse is generated, the count of the pulse is deviated, but the increase / decrease pattern at this time Is determined by the number of count deviations, and therefore belongs to any of the patterns shown in FIGS. 8 (C-1) to (C-8). For example, when noise is generated only once and this noise is counted as a pulse, the pulse number S is detected with a delay of one (count shift number n =
1), and accordingly, the increase / decrease pattern is set at each time interval Ts 1 , Ts 2 ,
It becomes 0,1,1,1 when measuring Ts 3 and Ts 4 .

第9図は上記と同様にして、各カウントずれ数nに対し
て増減パターンを求め、これをとりまとめたものであ
る。同図によれば、時間間隔Ts1,Ts2,Ts3及びTs4の計測
時に対して1,0,1,0の増減パターンが得られるのは正常
カウント時だけであるので、この所定の増減パターン
を、検出された増減パターンと比較することにより、パ
ルスカウントが正常であるか否かを判別できる。
FIG. 9 shows the increase / decrease pattern for each count deviation number n in the same manner as described above, and summarizes this. According to the figure, the increase / decrease pattern of 1,0,1,0 is obtained only when the normal count is performed with respect to the measurement of the time intervals Ts 1 , Ts 2 , Ts 3 and Ts 4 . By comparing the increase / decrease pattern with the detected increase / decrease pattern, it is possible to determine whether or not the pulse count is normal.

以下、ECU5において実行される制御プログラムの実行内
容を説明する。
The execution contents of the control program executed in the ECU 5 will be described below.

第10図は第4図のサブルーチンと同様の場合に実行され
る、パルス番号S及び増減パターンの初期化サブルーチ
ンのフローチャートである。
FIG. 10 is a flowchart of a pulse number S and increase / decrease pattern initialization subroutine that is executed in the same case as the subroutine of FIG.

まず、ステップ1001乃至1016では第4図のサブルーチン
のステップ401乃至416と全く同様の実行を行う。次にス
テップ1017では仮パルス番号S0に値1を加算し、ステッ
プ1018では該加算した後の仮パルス番号S0が値10に達し
たか否かを判別する。この答が否定(No)のときには前
記ステップ1009に進み、肯定(Yes)のときにはパルス
番号SをS=S0−MaxS0+2として算出する(ステップ1
019)。
First, in steps 1001 to 1016, exactly the same execution as steps 401 to 416 of the subroutine of FIG. 4 is performed. Next, in step 1017, the value 1 is added to the temporary pulse number S 0 , and in step 1018 it is determined whether or not the temporary pulse number S 0 after the addition has reached the value 10. When this answer is negative (No), the process proceeds to step 1009, and when affirmative (Yes), the pulse number S is calculated as S = S 0 −MaxS 0 +2 (step 1
019).

次いで、前記ステップ1019で設定したパルス番号Sが値
9より大きいか否かを判別し(ステップ1020)、この答
が肯定(Yes)のときには該S値から値9を減算し(ス
テップ1021)、否定(No)のときにはそのまま、ステッ
プ1022に進む。
Next, it is judged whether or not the pulse number S set in the step 1019 is larger than the value 9 (step 1020), and when the answer is affirmative (Yes), the value 9 is subtracted from the S value (step 1021), If negative (No), the process directly proceeds to step 1022.

このステップ1022ではパルス番号Sが値1又は4のいず
れかに等しいか否かを判別する。この答が肯定(Ye
s)、即ちS=1又は4が成立するときには、第8図か
ら明らかなように、時間間隔TsがTs4又はTs2まで更新さ
れ、正常カウント時のビットパターンPはいずれも1,0,
1,0となるときであるので(第9図参照)、その8桁分
を16進表示に変換してP=AAhと設定し(ステップ102
3)、次いで時間間隔Tsを設定し得る最小値00hとして
(ステップ1024)、後述のステップ1031に進む。
In this step 1022, it is determined whether or not the pulse number S is equal to the value 1 or 4. This answer is affirmative (Ye
s), that is, when S = 1 or 4, the time interval Ts is updated to Ts 4 or Ts 2 as is apparent from FIG.
Since it is when it becomes 1,0 (see FIG. 9), the eight digits are converted into hexadecimal display and set as P = AAh (step 102).
3) Next, the time interval Ts is set to the minimum value 00h that can be set (step 1024), and the process proceeds to step 1031 described later.

前記ステップ1022の答が否定(No)のときには、パルス
番号Sが値2又は8のいずれかに等しいか否かを判別す
る(ステップ1025)。この答が肯定(Yes)、即ちS=
2又は8が成立するときには時間間隔TsがTs1又はTs3
で更新され、正常カウント時のビットパターンPはいず
れも0,1,0,1となるときであるので、P=55hと設定し
(ステップ1026)、次いで時間間隔Tsを設定し得る最大
値FFFFhとして(ステップ1027)後述のステップ1031に
進む。
When the answer to step 1022 is negative (No), it is determined whether or not the pulse number S is equal to the value 2 or 8 (step 1025). This answer is affirmative (Yes), that is, S =
When 2 or 8 is satisfied, the time interval Ts is updated to Ts 1 or Ts 3 and the bit pattern P at the normal count is 0, 1, 0, 1 , so set P = 55h. (Step 1026) Then, the time interval Ts is set to the maximum value FFFFh that can be set (Step 1027), and the process proceeds to Step 1031 described later.

前記ステップ1025の答が否定(No)、即ちパルス番号S
が値1,2,4及び8のいずれでもないときには、パルスが
入力したか否かを判別し(ステップ1028)、パルスが入
力したときにtsタイマをリセット及びスタートさせ(ス
テップ1029)、次いでパルス番号Sに値1を加算した後
(ステップ1030)前記ステップ1020に進む。
The answer to step 1025 is negative (No), that is, pulse number S
Is not one of the values 1, 2, 4 and 8, it is determined whether or not a pulse is input (step 1028), the ts timer is reset and started when the pulse is input (step 1029), and then the pulse is input. After the value 1 is added to the number S (step 1030), the process proceeds to step 1020.

前記ステップ1031では固定点火制御、即ち前記各種セン
サ6の入力信号に応じない点火制御を行い、次いで第11
図のサブルーチンに対する割込禁止状態を解除し(ステ
ップ1032)、後述の第12図のサブルーチンを引き続き実
行して(ステップ1033)本プログラムを終了する。
In step 1031, fixed ignition control, that is, ignition control that does not respond to the input signals of the various sensors 6, is performed.
The interrupt prohibited state for the subroutine shown in the figure is released (step 1032), the subroutine shown in FIG. 12 to be described later is continuously executed (step 1033), and this program ends.

第11図は第5図のサブルーチンと同様にパルス発生と同
期して実行される、パルス番号及び増減パターンの更新
並びに点火・通電制御を行うサブルーチンのフローチャ
ートである。
FIG. 11 is a flow chart of a subroutine for performing pulse number and increase / decrease pattern updating and ignition / energization control, which is executed in synchronization with pulse generation as in the subroutine of FIG.

まず、ステップ1101ではパルス番号Sが値1,2,4又は8
に等しいか否か判別する。この答が否定(No)のときに
は増減パターンを更新するパルス番号Sに該当しないと
してステップ1102に進み、パルス番号Sに値1を加算
し、該加算後のS値が値10に等しいか否かを判別し(ス
テップ1103)、この答が肯定(Yes)のときにはパルス
番号Sを値1に再設定し(ステップ1104)、否定(No)
のときにはそのまま、本プログラムを終了する。即ち、
パルス番号Sが1,2,4及び8以外の値であるときにはパ
ルスのカウントのみが行われる。
First, in step 1101, the pulse number S has a value of 1, 2, 4 or 8
It is determined whether or not When this answer is negative (No), it is determined that the pulse number S for updating the increase / decrease pattern does not correspond, the process proceeds to step 1102, the value 1 is added to the pulse number S, and whether or not the S value after the addition is equal to 10 Is determined (step 1103), and when the answer is affirmative (Yes), the pulse number S is reset to the value 1 (step 1104) and negative (No).
In case of, the program is terminated as it is. That is,
When the pulse number S is a value other than 1, 2, 4 and 8, only pulse counting is performed.

前記ステップ1101の答が肯定(Yes)、即ちパルス番号
Sが値1,2,4又は8のいずれかに等しいときには、ステ
ップ1105乃至1111において第5図のステップ501乃至507
と全く同様の実行を行い、時間間隔Tsの計測及び前回値
Ts-1との比較、並びに該比較結果に応じた増減パターン
の更新を行う。
When the answer to step 1101 is affirmative (Yes), that is, when the pulse number S is equal to one of the values 1, 2, 4 or 8, steps 1105 to 1111 include steps 501 to 507 in FIG.
Perform exactly the same as above, and measure the time interval Ts and the previous value.
The comparison with Ts −1 and the increase / decrease pattern according to the comparison result are updated.

次いで、ステップ1112では点火・通電制御を行う。即
ち、パルス番号Sを判別するとともに、該判別結果に応
じて所定のタイミングで点火カウンタ8c及び通電カウン
タ8fをスタートさせる等の制御を行う。次に、前述のス
テップ1102乃至ステップ1104を実行して本プログラムを
終了する。
Next, at step 1112, ignition / energization control is performed. That is, the pulse number S is discriminated and the ignition counter 8c and the energization counter 8f are started at a predetermined timing according to the discrimination result. Next, the steps 1102 to 1104 described above are executed to end the program.

第12図は第6図のサブルーチンと同様の場合に実行され
るパルスカウントの異常判別及び点火・通電時期の算出
等を行うサブルーチンのフローチャートである。
FIG. 12 is a flow chart of a subroutine that is executed in the same way as the subroutine of FIG. 6 and that performs pulse count abnormality determination, ignition / energization timing calculation, and the like.

即ち、本プログラムは検出された増減パターンと、この
ときのパルス番号Sに対応した所定の増減パターンとの
比較のための演算によって異常判別を行うものである。
本実施例では異常カウントがなされている場合、時間間
隔Ts1及びTs2計測時に得られる時が、カウントずれ数n
にかかわらず、それぞれ値0及び1であることから(第
9図参照)、上記異常判別の演算手法として、例えばTs
4計測時において、更新されたビットパターンP(4
桁)とビットパターン1100とのアンド(AND)をとり、
更にこれとビットパターン0100とのイクスクルーシブ・
オア(XOR)をとったものがビットパターン0000に等し
いときに異常と判別することを基本としている。これを
次式(1)のように表すものとする。
That is, this program makes an abnormality determination by a calculation for comparing the detected increase / decrease pattern with a predetermined increase / decrease pattern corresponding to the pulse number S at this time.
In this embodiment, when the abnormal count is performed, the time obtained when the time intervals Ts 1 and Ts 2 are measured is the count deviation number n.
However, since the values are 0 and 1 respectively (see FIG. 9), the calculation method for the abnormality determination is, for example, Ts.
4 At the time of measurement, the updated bit pattern P (4
(Digit) and bit pattern 1100 are ANDed,
Furthermore, the exclusive pattern of this and bit pattern 0100
It is basically determined to be abnormal when the value obtained by taking the OR (XOR) is equal to the bit pattern 0000. This is expressed as the following equation (1).

(PAND1100)XOR0100=0000 …(1) なお、式(1)はTs4計測時に対応するものであり、他
の時間間隔Tsの計測時には式(1)中のビットパターン
1100及び0100は、検出された時間間隔Tsに応じてシフト
したものが適用される。また、実際のプログラムでは上
記式(1)を、8桁分を対象とし、16進表示に変換して
適用している。
(PAND1100) XOR0100 = 0000 (1) Note that the equation (1) corresponds to the Ts 4 measurement, and the bit pattern in the equation (1) when the other time interval Ts is measured.
As 1100 and 0100, those shifted according to the detected time interval Ts are applied. Further, in the actual program, the above formula (1) is applied to eight digits by converting it into hexadecimal display.

まず、ステップ1201ではパルス番号Sが値1に等しいか
否かを判別し、この答が肯定(Yes)のときには時間間
隔Ts4まで更新されているので、(PANDCCh)XOR44h=0
が成立しているか否かを判別する(ステップ1202)。こ
の答が肯定(Yes)、即ち上記式が成立しているときに
はパルスカウントが異常であるとして点火を停止し(ス
テップ1203)、次いで第10図のサブルーチンを実行する
(ステップ1204)。一方、前記ステップ1202の答が肯定
(Yes)、即ち上記式が成立していないときにはパルス
カウントが正常であるとしてステップ1205以下において
点火・通電時期の算出等を行う。
First, in step 1201, it is determined whether or not the pulse number S is equal to the value 1, and when the answer is affirmative (Yes), the time interval Ts 4 has been updated, so (PANDCCh) XOR44h = 0.
It is determined whether or not is satisfied (step 1202). When this answer is affirmative (Yes), that is, when the above equation is satisfied, it is determined that the pulse count is abnormal, ignition is stopped (step 1203), and then the subroutine of FIG. 10 is executed (step 1204). On the other hand, when the answer to step 1202 is affirmative (Yes), that is, when the above equation is not satisfied, it is assumed that the pulse count is normal, and the ignition / energization timing is calculated in step 1205 and thereafter.

即ち、ステップ1205では計測された時間間隔Tsからエン
ジン回転数Neを算出し、次いで該算出されたエンジン回
転数Ne及び各種センサ6からのエンジンパラメータ信号
に応じて点火時期及び通電時期を算出し(ステップ1206
及び1207)、該算出した点火時期及び通電時期を点火レ
ジスタ8a及び通電レジスタ8dにそれぞれ設定して(ステ
ップ1208及び1209)、本プログラムを終了する。
That is, in step 1205, the engine speed Ne is calculated from the measured time interval Ts, and then the ignition timing and the energization timing are calculated according to the calculated engine speed Ne and the engine parameter signals from the various sensors 6 ( Step 1206
And 1207), the calculated ignition timing and energization timing are set in the ignition register 8a and the energization register 8d, respectively (steps 1208 and 1209), and this program ends.

以下同様に、パルス番号S=2又は3のときには、時間
間隔Ts1まで更新されているので(PAND99h)XOR88h=0
が成立しているか否か(ステップ1210及び1211)、S=
4,5,6又は7のときには(PAND33h)XOR11h=0で成立し
ているか否か(ステップ1212及び1213)又はS=8又は
9のときには(PAND66h)XOR22h=0が成立しているか
否か(ステップ1214及び1215)が判別され、これらの答
が肯定(Yes)のときには前記ステップ1203以下を、否
定(No)のときには前記ステップ1205以下をそれぞれ実
行する。また、前記ステップ1214の答が否定(No)のと
きには前記ステップ1203以下を実行する。
Similarly, when the pulse number S = 2 or 3, the time interval Ts 1 has been updated (PAND99h) XOR88h = 0.
Is satisfied (steps 1210 and 1211), S =
When 4, 5, 6 or 7, (PAND33h) XOR11h = 0 holds (steps 1212 and 1213), or when S = 8 or 9 (PAND66h) XOR22h = 0 holds (PAND66h). Steps 1214 and 1215) are discriminated, and if these answers are affirmative (Yes), the steps 1203 and below are executed, and if they are negative (No), the steps 1205 and below are executed. When the answer to the step 1214 is negative (No), the steps 1203 and thereafter are executed.

以上のように本実施例によれば、パルス発生毎にパルス
番号がカウントされるとともに、所定のパルス番号に対
応するパルス毎に増減パターンが実行され、該得られた
パルス番号及び増減パターンに基づき、パルスカウント
の異常判別が行われるのて、所定のパルス発生毎に異常
判別を行え、したがって前述の第1実施例と同様の回路
位置検出の高回転追従性を向上させることができるとと
もに、該検出結果の異常を速やかに判別できる。また、
時間間隔Tsの計測及び増減パターンの更新等の実行を所
定パルス毎に行うので演算処理の頻度を少なくして、そ
の簡略化を図ることができる。
As described above, according to the present embodiment, the pulse number is counted for each pulse generation, and the increase / decrease pattern is executed for each pulse corresponding to the predetermined pulse number, and based on the obtained pulse number and increase / decrease pattern. Since the abnormality determination of the pulse count is performed, the abnormality determination can be performed every time a predetermined pulse is generated. Therefore, the high rotation followability of the circuit position detection similar to that of the first embodiment described above can be improved, and The abnormality of the detection result can be promptly determined. Also,
Since the time interval Ts is measured and the increase / decrease pattern is updated for each predetermined pulse, the frequency of the arithmetic processing can be reduced and the simplification can be achieved.

なお、前記時間間隔Tsの計測等を実行する所定パルスは
本実施例で示したものに限らず、例えば制御を詳細に行
いたい回転位置に対して設定頻度を高める等、適宜設定
することができ、この場合には該設定に応じて所定の増
減パターンを設定すればよい。また、検出された増減パ
ターンと所定の増減パターンとの比較のための演算手法
も本実施例で示した論理演算式に限らず、ECU5内の演算
装置の機能等に応じて、他の論理演算式あるいは四則演
算による等、種々の態様で行うことができる。
The predetermined pulse for performing the measurement of the time interval Ts is not limited to that shown in this embodiment, and can be set as appropriate, for example, by increasing the setting frequency with respect to the rotational position at which the control is desired to be performed in detail. In this case, a predetermined increase / decrease pattern may be set according to the setting. Further, the operation method for comparing the detected increase / decrease pattern and the predetermined increase / decrease pattern is not limited to the logical operation expression shown in the present embodiment, and other logical operation may be performed depending on the function of the arithmetic unit in the ECU 5. It can be performed in various modes such as by an equation or four arithmetic operations.

(発明の効果) 以上詳述したように本発明は、内燃エンジンの作動に伴
う回転体の回転に応じて発生するパルス列の所定のパル
ス間の時間間隔の増減を増減パターンとして記憶し、該
記憶した増減パターンを所定の増減パターンと比較する
ものであるので、基準パルスを発生させることなく、所
定パターン毎に回転位置の検出及び該検出結果の異常判
別を行うことができ、したがって回転位置検出の高回転
追従性を向上させるとともに、該検出結果の異常を速や
かに、かつ正確に判別することが可能となることによ
り、エンジン制御の精度の向上を図ることができる等の
効果を奏する。
(Effects of the Invention) As described in detail above, the present invention stores an increase / decrease pattern of an increase / decrease in the time interval between predetermined pulses of a pulse train generated according to the rotation of a rotating body associated with the operation of an internal combustion engine, and stores the increase / decrease pattern. Since this increase / decrease pattern is compared with a predetermined increase / decrease pattern, it is possible to detect the rotational position for each predetermined pattern and determine the abnormality of the detection result without generating a reference pulse. The high rotation followability is improved, and the abnormality of the detection result can be promptly and accurately determined, so that the accuracy of the engine control can be improved.

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

第1図乃至第6図は本発明の第1実施例を示し、第1図
は回転位置検出装置を含む内燃エンジンの制御装置の全
体構成図、第2図はクランク角度位置信号パルスの発生
状況を示すタイムチャート、第3図は正常時のパルス時
間間隔の増減パターンを示す図、第4図はパルス番号及
びパルス時間間隔の増減パターンを初期化するサブルー
チンのフローチャート、第5図はパルス番号及びパルス
時間間隔の増減パターンを更新するサブルーチンのフロ
ーチャート、第6図はパルスカウントの異常判別サブル
ーチンのフローチャート、第7図乃至第12図は本発明の
第2実施例を示し、第7図は回転位置検出装置を含む内
燃エンジンの点火時期制御装置の全体構成図、第8図は
正常時及び異常時のパルスカウントの状態を示すタイム
チャート、第9図は正常時及び異常時のパルス時間間隔
の増減パターンを示す図、第10図は第4図と同様のフロ
ーチャート、第11図は第5図と同様のフローチャート、
第12図は第6図と同様のフローチャートである。 1……内燃エンジン、2……クランク軸(回転体)、2a
……突起(被検出部)、3……クランク角度位置(PC)
センサ(パルス発生手段)、5……電子コントロールユ
ニット(ECU)(計測手段、増減判別手段、記憶手段、
異常判別手段)。
1 to 6 show a first embodiment of the present invention, FIG. 1 is an overall configuration diagram of a control device for an internal combustion engine including a rotational position detection device, and FIG. 2 is a state of generation of crank angle position signal pulses. FIG. 3 is a diagram showing a pulse time interval increase / decrease pattern in a normal state, FIG. 4 is a flowchart of a subroutine for initializing the pulse number and the pulse time interval increase / decrease pattern, and FIG. 6 is a flow chart of a subroutine for updating the increase / decrease pattern of the pulse time interval, FIG. 6 is a flow chart of a pulse count abnormality determination subroutine, FIGS. 7 to 12 show a second embodiment of the present invention, and FIG. 7 is a rotational position. FIG. 9 is an overall configuration diagram of an ignition timing control device for an internal combustion engine including a detection device, FIG. 8 is a time chart showing states of pulse counts under normal conditions and abnormal conditions, and FIG. Shows a decrease pattern of the normal time and the abnormal time of the pulse time interval, Figure 10 is a flow chart similar to FIG. 4, FIG. 11 is a flow chart similar to FIG. 5,
FIG. 12 is a flowchart similar to FIG. 1 ... internal combustion engine, 2 ... crankshaft (rotating body), 2a
…… Protrusion (detected part), 3 …… Crank angle position (PC)
Sensor (pulse generation means), 5 ... Electronic control unit (ECU) (measurement means, increase / decrease determination means, storage means,
Abnormality determination means).

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】周方向に一部不等間隔をなす複数の被検出
部を備え、内燃エンジンの作動に伴い回転する回転体
と、該回転体の回転に応じ前記被検出部と対向する毎に
パルスを発生するパルス発生手段と、前記パルスの時間
間隔を計測する計測手段と、該計測手段の出力の前回値
と今回値とを比較し、その増減を判別する増減判別手段
と、該増減判別手段の出力を、現在から所定複数区間に
亘り増減パターンとして記憶する記憶手段と、該記憶手
段が記憶した増減パターンと正常時の増減パターンとを
比較することにより異常判別を行う異常判別手段とを有
することを特徴とする内燃エンジン制御用の回転位置検
出装置。
1. A rotating body, which comprises a plurality of detected portions which are partially unequal in the circumferential direction, and which rotates with the operation of an internal combustion engine, and each of which faces the detected portion according to the rotation of the rotating body. A pulse generating means for generating a pulse, a measuring means for measuring the time interval of the pulse, an increase / decrease determining means for comparing the previous value and the current value of the output of the measuring means, and determining the increase / decrease, and the increase / decrease Storage means for storing the output of the determination means as an increase / decrease pattern over a plurality of predetermined sections from the present time, and abnormality determination means for performing abnormality determination by comparing the increase / decrease pattern stored by the storage means with the increase / decrease pattern in normal times. A rotational position detecting device for controlling an internal combustion engine, comprising:
【請求項2】前記記憶手段は、前記増減判別手段の出力
を2値信号を変換する手段と、該増減判別手段の出力毎
にビットパターンをシフトし、新たな前記2値信号を順
次記憶する手段とから構成されることを特徴とする特許
請求の範囲第1項記載の内燃エンジン制御用の回転位置
検出装置。
2. The storage means converts the output of the increase / decrease determination means into a binary signal, shifts a bit pattern for each output of the increase / decrease determination means, and sequentially stores the new binary signal. The rotational position detection device for controlling an internal combustion engine according to claim 1, wherein the rotational position detection device is configured by:
【請求項3】前記正常時の増減パターンは、前記被検出
部の設置間隔と、前記内燃エンジンの作動に伴う前記回
転体の回転変動とに応じて設定される2値信号によるビ
ットパターンであることを特徴とする特許請求の範囲第
2項記載の内燃エンジン制御用の回転位置検出装置。
3. The normal increase / decrease pattern is a bit pattern based on a binary signal that is set according to the installation interval of the detected part and the rotation fluctuation of the rotating body due to the operation of the internal combustion engine. The rotational position detecting device for controlling an internal combustion engine according to claim 2, characterized in that.
【請求項4】前記異常判別手段による増減パターンの比
較を前記記憶されたビットパターンと前記正常時のビッ
トパターンとの四則演算及び論理演算により行うことを
特徴とする特許請求の範囲第3項記載の内燃エンジン制
御用の回転位置検出装置。
4. The comparison of increase / decrease patterns by the abnormality determining means is performed by four arithmetic operations and logical operations between the stored bit pattern and the normal bit pattern. Position detecting device for controlling an internal combustion engine of a vehicle.
JP62267319A 1987-06-05 1987-10-21 Rotational position detection device for internal combustion engine control Expired - Lifetime JPH0672568B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP62267319A JPH0672568B2 (en) 1987-10-21 1987-10-21 Rotational position detection device for internal combustion engine control
US07/201,433 US4931940A (en) 1987-06-05 1988-06-02 Rotational position detector for controlling an internal combustion engine
FR8807482A FR2620816B1 (en) 1987-06-05 1988-06-06 ANGULAR POSITION DETECTOR FOR CONTROLLING AN INTERNAL COMBUSTION ENGINE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62267319A JPH0672568B2 (en) 1987-10-21 1987-10-21 Rotational position detection device for internal combustion engine control

Publications (2)

Publication Number Publication Date
JPH01110848A JPH01110848A (en) 1989-04-27
JPH0672568B2 true JPH0672568B2 (en) 1994-09-14

Family

ID=17443168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62267319A Expired - Lifetime JPH0672568B2 (en) 1987-06-05 1987-10-21 Rotational position detection device for internal combustion engine control

Country Status (1)

Country Link
JP (1) JPH0672568B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2634256B2 (en) * 1989-10-19 1997-07-23 三菱電機株式会社 Internal combustion engine control method
JP2611506B2 (en) * 1990-06-18 1997-05-21 三菱電機株式会社 Engine control device
KR20080028216A (en) * 2006-09-26 2008-03-31 삼성전자주식회사 Path changing device and ventilation apparatus having the same
JP5446825B2 (en) * 2009-12-16 2014-03-19 株式会社デンソー Rotation state detection mechanism

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61104215A (en) * 1984-10-26 1986-05-22 Japan Electronic Control Syst Co Ltd Self-diagnosing apparatus of crank-angle sensor

Also Published As

Publication number Publication date
JPH01110848A (en) 1989-04-27

Similar Documents

Publication Publication Date Title
US4715009A (en) Device for determining angular position of a rotating part
JPH01280665A (en) Cylinder discriminating device for engine
US7089149B2 (en) Method and apparatus for detecting an angle of a rotating shaft
US4959996A (en) Control signal generator for an internal combustion engine
JPH07259631A (en) Misfire detecting device of internal combustion engine
JPH06101560A (en) Device for detecting combustion of internal combustion engine
JP2807737B2 (en) Device for detecting combustion state of internal combustion engine
JPH0672568B2 (en) Rotational position detection device for internal combustion engine control
US5954784A (en) Engine misfire diagnosis apparatus
US5196844A (en) Method and apparatus for detecting reference rotational angle for each cylinder in multiple-cylinder internal combustion engine
JPH01109234A (en) Deciding device for abnormality of knocking detecting device
JP2943045B2 (en) Misfire diagnosis device for multi-cylinder internal combustion engine
US6278934B1 (en) System and method for detecting engine misfires using optimal phase delay angle
JPH03168346A (en) Cylinder identification device of internal combustion engine
JP4333552B2 (en) Engine control device
JPH11247707A (en) Crank angle detecting device of internal combustion engine
JPH0552434B2 (en)
JP3883701B2 (en) Misfire detection device for internal combustion engine
JPH03172561A (en) Cylinder discriminator for internal combustion engine
JP3326043B2 (en) Device for detecting combustion state of internal combustion engine
JPH11316120A (en) Diagnostic device for crank angle sensor
JPH01305163A (en) Ignition timing control device of engine
JP3630568B2 (en) Cylinder determination signal plate and cylinder determination device
JP3627386B2 (en) Engine misfire diagnostic device
JPH04110632A (en) Measuring apparatus for rotation period of internal combustion engine

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070914

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 14