JPS6263172A - Ignition timing control for internal combustion engine - Google Patents

Ignition timing control for internal combustion engine

Info

Publication number
JPS6263172A
JPS6263172A JP20511285A JP20511285A JPS6263172A JP S6263172 A JPS6263172 A JP S6263172A JP 20511285 A JP20511285 A JP 20511285A JP 20511285 A JP20511285 A JP 20511285A JP S6263172 A JPS6263172 A JP S6263172A
Authority
JP
Japan
Prior art keywords
ignition
value
stage
signal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP20511285A
Other languages
Japanese (ja)
Other versions
JPH0692783B2 (en
Inventor
Chiaki Kumagai
熊谷 千昭
Shinji Toman
十万 真司
Yutaka Kimura
裕 木村
Haruto Otomo
御友 治人
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
Oki Electric Industry Co Ltd
Original Assignee
Honda Motor Co Ltd
Oki Electric Industry 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, Oki Electric Industry Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP60205112A priority Critical patent/JPH0692783B2/en
Publication of JPS6263172A publication Critical patent/JPS6263172A/en
Publication of JPH0692783B2 publication Critical patent/JPH0692783B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrical Control Of Ignition Timing (AREA)

Abstract

PURPOSE:To permit the correct ignition in all the cylinders by arranging two position detecting means, separated by the angle corresponding to the crank angle between the top dead centers of two cylinders in a prescribed ignition order and carrying out ignition control by processing the output signals of the means. CONSTITUTION:In the application for 4-cylinder engine 1, a rotary disc 15 having reactors 16a-16g projectingly installed at the equally divided positions excluding one position on the circumference is installed onto a crankshaft 14, and two electromagnetic pick-ups 17 and 18 are arranged outside the disc 15. The pick- ups 17 and 18 are arranged, separated by the angle corresponding to the crank angle between the top dead centers of two cylinders in a prescribed ignition order. When the pick-up 17 detects a prescribed angular position in the ignition control by an ECU 2, ignition of one of the above-described cylinders is carried out, and when the pick-up 18 detects the angular position after the pick-up17 detects the angular position immediately before the reactor cut part on the rotary disc 15, ignition for the other cylinder is carried out.

Description

【発明の詳細な説明】 3、%私儀偏籟易 (発明の技術分野) この発明は内燃エンジンの点火時期制御に関し、特に複
数の気筒を有する内燃エンジンの各気筒に対応する夫々
の点火コイルの通電及び通電停止をクランク角度位置信
号のみにより制御する。所謂角度ロック方式による点火
時期制御方法に関する。
[Detailed Description of the Invention] 3. Technical Field of the Invention This invention relates to ignition timing control for an internal combustion engine, and in particular to control of ignition timing for each cylinder of an internal combustion engine having a plurality of cylinders. The energization and de-energization of the motor is controlled only by the crank angle position signal. This invention relates to an ignition timing control method using a so-called angle lock method.

(発明の背景とその問題点) 内燃エンジンの出力軸の円周上に一つの欠落部を有して
等間隔(例えば45°等分位置)に配された複数の突起
2の角度位置を異なる円周位置にある第1及び第2の位
置検出手段により検出し。
(Background of the invention and its problems) The angular positions of a plurality of protrusions 2 that have one missing part and are arranged at equal intervals (for example, equally spaced at 45 degrees) on the circumference of the output shaft of an internal combustion engine are different. Detected by first and second position detection means located at circumferential positions.

前記第1の位置検出手段が隣接する先の角度位置と後の
角度位置を検出する間に前記第2の位置検出手段が角度
位置を検出しないとき、前記後の角度位置を基準クラン
ク角度位置とする基準クランり角度位置検出方法が知ら
れている6又、この基準クランク角度位置検出方法によ
り基準クランク角度位置を検出した後、第1の位置検出
手段により所定の角度位置を検出し、その後、該所定角
度位置検出時点から所要の時間経過した後に点火を実行
してエンジンの運転状態に最適なりランク角度位置での
点火時期を制御する方法(以下これを「演算点火制御方
法」という)が知られている。更に、エンジンの極低回
転領域等のエンジン回転数変動が大きい運転領域では上
述の演算点火制御に代えて所定のクランク角度位置(例
えば各気筒の上死点位置)に点火時期を固定する。所謂
、角度ロック制御方式又は固定点火制御方法が採用され
ている。前述の演算点火制御に用いられた回転体の突起
が各気筒の上死点位置に夫々対応して突設されていれば
固定点火制御においても前記第1の位置検出手段が各気
筒の上死点位置に対応して突設された角度位置の各検出
時に各気筒の点火を実行すればよいことになる。しかし
、例えば直列4気筒エンジンのみならず、気筒夾角が4
5°、 60’ 。
When the second position detecting means does not detect an angular position while the first position detecting means detects an adjacent previous angular position and a subsequent angular position, the subsequent angular position is set as a reference crank angular position. There is a known method for detecting a reference crank angle position, and after detecting a reference crank angle position by this method for detecting a reference crank angle position, a predetermined angle position is detected by a first position detection means, and then, A method (hereinafter referred to as "arithmetic ignition control method") is known in which ignition is performed after a required period of time has elapsed from the detection of the predetermined angular position to optimize the ignition timing at the rank angular position. It is being Furthermore, in an operating range where engine speed fluctuations are large, such as an extremely low engine speed range, the ignition timing is fixed at a predetermined crank angle position (for example, the top dead center position of each cylinder) instead of the above-mentioned computational ignition control. A so-called angle lock control method or fixed ignition control method is employed. If the protrusions of the rotating body used in the above-mentioned calculation ignition control are provided in a protruding manner corresponding to the top dead center position of each cylinder, the first position detecting means can detect the top dead center position of each cylinder even in fixed ignition control. It is sufficient to ignite each cylinder at the time of each detection of the protruding angular position corresponding to the point position. However, for example, not only in-line 4-cylinder engines but also engines with cylinder angles of 4
5°, 60'.

90” 、 128” 、 135’等のv型4気筒エ
ンジン等の場合は各気筒の上死点間隔が種々異なるため
に形式に依っては、斯かる点火制御方法を適用した点火
制御装置を適用することが出来ない。
In the case of V-type four-cylinder engines such as 90", 128", 135', etc., the top dead center interval of each cylinder is different, so depending on the type, an ignition control device that applies such an ignition control method is applied. I can't do it.

(発明の目的) 本発明は、上述の問題点を解決するためになされたもの
で設定された点火角度位置で各気筒総てに対して正確に
点火を実行させ、しかも種々の型式のエンジンに適用可
能な内燃エンジンの点火時期制御方法を提供することを
目的とする。
(Object of the Invention) The present invention was made to solve the above-mentioned problems, and is capable of accurately igniting each cylinder at a set ignition angle position, and moreover, is applicable to various types of engines. It is an object of the present invention to provide an applicable ignition timing control method for an internal combustion engine.

(発明の構成) 本発明に依れば、内燃エンジンの出力軸の円周上に一つ
の欠落部を有して等間隔に配された複数の角度位置を異
なる円周位置にある第1及び第2の位置検出手段により
検出し、前記第1の位置検出手段が隣接する先の角度位
置と後の角度位置を検出する間に前記第2の位置検出手
段が前記角度位置を検出しないとき、前記後の角度位置
を基準クランク角度位置とし、該基準クランク角度位置
検出役所定数の角度位置を検出したとき点火を実行する
点火時期制御方法において、前記第1及び第2の位置検
出手段を点火順序が前後する2つの気筒の各上死点間の
クランク角度に対応する角度だけ離間して配設し、前記
第1の位置検出手段が所定角度位置を検出したとき、前
記気筒の一方の点火を実行する一方、前記第1の位置検
出手段が前記欠除部の直前の角度位置を検出した後に前
記第2の位置検出手段が角度位置を検出したとき前記気
筒の他方の点火を実行することを特徴とする内燃エンジ
ンの点火時期制御方法が提供される。
(Structure of the Invention) According to the present invention, a plurality of angular positions arranged at equal intervals with one missing portion on the circumference of the output shaft of an internal combustion engine are connected to the first and second angular positions at different circumferential positions. when the second position detecting means does not detect the angular position while the first position detecting means detects an adjacent previous angular position and a subsequent angular position; In the ignition timing control method, the subsequent angular position is set as a reference crank angular position, and ignition is executed when a predetermined number of angular positions are detected by the reference crank angular position detector. are arranged at an angle corresponding to the crank angle between the respective top dead centers of two successive cylinders, and when the first position detection means detects a predetermined angular position, ignition of one of the cylinders is performed. executing the ignition of the other cylinder when the second position detecting means detects the angular position after the first position detecting means detects the angular position immediately before the cutout portion; A method of controlling ignition timing for an internal combustion engine is provided.

(実施例) 以下この発明の実施例を図面を参照して説明する。(Example) Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明が適用された電子点火時期制御装置の全
体構成図で図中符号1は直列4気筒エンジン、符号2は
電子コントロールユニット(以下rEcUJという)で
エンジン1は直列4気筒エンジン以外にも気筒夾角(こ
れを以下「バンク角」・という)が45” 、 60’
 、 90’ 、 1211@、 135”等のエンジ
ンであってもよい。第1図は複数気筒の内の1個の気筒
の要部を一部断面で示しである。符号10a、10bは
点火プラグで、図には2個だけが示されているがこの点
火プラグは夫々の気筒に各別に取り付けられている。そ
して後述するように各点火プラグ1−Oa、10bは各
別に設けられた点火コイルに接続されて、ディストリビ
ュータ無しの点火方式とされている。4気筒のエンジン
に対しては、符号I Q、、aの点火プラグに図示省略
の他の1個の点火プラグが電気的に直列接続され。
Fig. 1 is an overall configuration diagram of an electronic ignition timing control device to which the present invention is applied. In the figure, reference numeral 1 is an in-line four-cylinder engine, and reference numeral 2 is an electronic control unit (hereinafter referred to as rEcUJ), and engine 1 is other than an in-line four-cylinder engine. Also, the cylinder included angle (hereinafter referred to as "bank angle") is 45" and 60'.
, 90', 1211@, 135'', etc. Fig. 1 is a partial cross-sectional view of the main part of one of the plurality of cylinders. Reference numerals 10a and 10b indicate spark plugs. Although only two spark plugs are shown in the figure, these spark plugs are installed in each cylinder separately.As will be described later, each spark plug 1-Oa, 10b is connected to an ignition coil installed separately. For a four-cylinder engine, one other spark plug (not shown) is electrically connected in series with the spark plugs marked IQ, and a. It is.

これと同様に符号10bの点火プラグに対しても図示省
略の他の1個の点火プラグが電気的に直列接続される。
Similarly, another spark plug (not shown) is electrically connected in series with the spark plug 10b.

直列接続された各2個の点火プラグは同一の鳶大信号で
点火され、この同時に点火された2個のうちの一方の点
火プラグは排気行程で点火されるので、いわゆる捨大方
式の点火方式がとられる。符号3はエンジン1の燃焼室
で、この燃焼室3には、吸気管4及び排気管5が連通さ
れ。
Each of the two spark plugs connected in series is ignited by the same large signal, and one of the two spark plugs that are lit at the same time is ignited during the exhaust stroke, so this is the so-called stubby ignition method. is taken. Reference numeral 3 designates a combustion chamber of the engine 1, and an intake pipe 4 and an exhaust pipe 5 are communicated with the combustion chamber 3.

各連通口には吸気バルブ6及び排気バルブ7が夫々配設
されている。吸気管4の途中にはスロットル弁8が設け
られ、このスロットル弁8の下流には負圧センサスは絶
対圧センサ(以下単に「吸気圧センサ」という)9が設
けられており、この吸気圧センサ9によって電気信号に
変換された吸気管内圧力信号はECU2に送られる。ま
たエンジン1の気筒周壁部には冷却水が充満され、この
部分にサーミスタ等からなるエンジン水温センサ11が
装着されている。このエンジン水温センサ11の検出信
号はECU2に供給される。12はピストンでこのピス
トン12がコネクチングロッド13を介してクランク軸
14に連結されている。そして、このクランク軸14に
その回転に応じて後述の第2図(a)、(b)に示すよ
うな第1及び第2のパルス信号PCI、PC2を発生す
るパルス発生機構が配設されている。即ち、まず、クラ
ンク軸14に回転円板15が取付けられ、その円周部に
、強磁性材製の凸起体で形成されたリアクタ16a〜1
6gが円周上1箇所を除く等分位置、例えば45°の角
度間隔で突設されている。リアクタは図示の例で云えば
リアクタ16dと16eの間で1箇所だけ欠落され、こ
の欠落部の角度間隔は90″とされている。回転円板1
5の外部には、その円周部に沿って、磁石体17a、1
8aにコイル17b、18bを巻回して形成した第1゜
第2の位置検出手段である電磁ピックアップ(以下「パ
ルサ」という)17.18が配設されでいる。第1及び
第2のパルサ17,18の配設角度間隔は、適用される
エンジンの上死点間隔に対応して規定され、図示例では
上死点間隔、180゜の直列4気筒エンジンに適用した
場合が示されていて、2個のパルサ17,18間の配設
角度間隔は略180″に規定されている。尚、例えばバ
ンク角128°のエンジンに本発明が適用される場合に
は、パルサ17,18の配設間隔は該エンジンの上死点
間隔(128@)に規定される。
An intake valve 6 and an exhaust valve 7 are provided at each communication port, respectively. A throttle valve 8 is provided in the middle of the intake pipe 4, and an absolute pressure sensor (hereinafter simply referred to as "intake pressure sensor") 9 is provided downstream of the throttle valve 8. The intake pipe internal pressure signal converted into an electric signal by 9 is sent to the ECU 2. Further, the peripheral wall of the cylinder of the engine 1 is filled with cooling water, and an engine water temperature sensor 11 made of a thermistor or the like is attached to this portion. A detection signal from this engine water temperature sensor 11 is supplied to the ECU 2. A piston 12 is connected to a crankshaft 14 via a connecting rod 13. A pulse generating mechanism is disposed on this crankshaft 14 to generate first and second pulse signals PCI and PC2 as shown in FIGS. There is. That is, first, the rotating disk 15 is attached to the crankshaft 14, and the reactors 16a to 1, which are formed of convex bodies made of ferromagnetic material, are attached to the circumference of the rotating disk 15.
6g are protruded at equal positions on the circumference except for one position, for example, at angular intervals of 45°. In the illustrated example, only one reactor is missing between reactors 16d and 16e, and the angular interval of this missing part is 90''.Rotating disk 1
5, magnet bodies 17a, 1 are arranged along its circumference.
Electromagnetic pickups (hereinafter referred to as "pulsar") 17 and 18, which are first and second position detection means formed by winding coils 17b and 18b around 8a, are disposed. The angular spacing between the first and second pulsers 17 and 18 is defined in accordance with the top dead center spacing of the applied engine, and in the illustrated example, it is applied to an in-line four-cylinder engine with a top dead center spacing of 180°. The angular spacing between the two pulsers 17 and 18 is defined as approximately 180''.For example, when the present invention is applied to an engine with a bank angle of 128°, , the arrangement spacing of the pulsers 17 and 18 is defined by the top dead center spacing (128@) of the engine.

一方、ECU2には、まずこれをブロックで大別すると
、入力回路19、入出力LSI(以下[工10・LSI
Jという)21、中央演算処理装置C以下rCPUJと
いう)22.A/Dコンバータ23、及び第1.第2の
出力回路24a。
On the other hand, the ECU 2 includes an input circuit 19, an input/output LSI (hereinafter [engineering 10/LSI
(referred to as rCPUJ) 21, central processing unit C (referred to as rCPUJ) 22. A/D converter 23 and first . Second output circuit 24a.

24bが備えられている。さらに入力回路19には第1
及び第2のパルサ17,18で夫々発生した第1及び第
2のパルス信号Pct、PC2(後述の第2図(a)、
 (b))を波形整形する波形整形回路25.26と、
この各波形整形回路25.26からの出力を夫々ラッチ
する第1及び第2のフリップフロップ回路27.28が
配設されている。
24b is provided. Furthermore, the input circuit 19 has a first
and the first and second pulse signals Pct and PC2 generated by the second pulsers 17 and 18, respectively (see FIG. 2(a), which will be described later).
(b) Waveform shaping circuits 25 and 26 that shape the waveform of
First and second flip-flop circuits 27 and 28 are provided to latch the outputs from the waveform shaping circuits 25 and 26, respectively.

第1のフリップフロップ回路27はそのQ出力の出力線
がl1O−LSI21を介してCPU22のINT端子
に接続され、また第2のフリップフロップ回路28はそ
のQ出力の出力線かl1O−LSI21を介してCPU
22の5TATUS端子に接続されている。符号29は
第1及び第2のフリップフロップ回路27.28に対す
るクリア信号線である。
The first flip-flop circuit 27 has its Q output line connected to the INT terminal of the CPU 22 via the l1O-LSI21, and the second flip-flop circuit 28 has its Q output line connected to the INT terminal of the CPU 22 via the l1O-LSI21. CPU
It is connected to the 5TATUS terminal of 22. Reference numeral 29 is a clear signal line for the first and second flip-flop circuits 27 and 28.

CPU22は、通電時期及び点火時期を演算するための
各種プログラムを実行するもので、その内部に上記の演
算プログラム、後述するNo−Pe−θigマツプ、T
w−Δθigテーブル、バンク角テーブル等を記憶する
リードオンリメモリ(以下rROMJという)31.な
らびに上記の演算結果等を記憶するためのランダムアク
セスメモリ(以下rRAMJという)32.入出力用の
I10バッファ33が備えられ、さらにこのCPU内に
通電カウンタとして作用する内部カウンタ34が配設さ
れている。符号34a及び34bはRAM32内の前記
通電時期データを記憶するレジスタを示し、破線で示す
符号35a及び35bはコンパレータでこれらのコンパ
レータ35a及び35bは前記内部カウンタ34の計数
値と各レジスタ34a。
The CPU 22 executes various programs for calculating the energization timing and the ignition timing, and internally contains the above calculation program, a No-Pe-θig map described later, and a T
Read-only memory (hereinafter referred to as rROMJ) that stores w-Δθig table, bank angle table, etc. 31. and a random access memory (hereinafter referred to as rRAMJ) 32. for storing the above calculation results, etc. An I10 buffer 33 for input/output is provided, and an internal counter 34 functioning as a power supply counter is further provided within the CPU. Reference numerals 34a and 34b indicate registers in the RAM 32 that store the energization timing data, and reference numerals 35a and 35b indicated by broken lines indicate comparators, and these comparators 35a and 35b store the count value of the internal counter 34 and each register 34a.

34bの夫々の通電時期データの記憶内容とを比較し、
計数値と記憶値とが一致したときCPU22(7)ON
−PORT端子22 a 、 22 b ニ所定の高レ
ベル(以下これをrll レベル又はrHJ レベルと
いう)を出力するプログラム状の処理を図式%式% CPU22の0N−PORT端子22aに点火プラグ1
0a側の通電信号として出力された「1」レベル、及び
0N−PORT端子22bに点火プラグ10b側の通電
信号として出力された「1」レベルは夫々I10・LS
I21を介して第1及び第2の出力回路24a、24b
への各通電信号線40a、40bに導かれる。
Compare the stored contents of the energization timing data of each of 34b,
When the counted value and the stored value match, the CPU 22 (7) turns on.
- PORT terminals 22 a, 22 b A program-like process for outputting a predetermined high level (hereinafter referred to as rll level or rHJ level) is shown below.
The "1" level output as the energization signal on the 0a side and the "1" level output as the energization signal on the spark plug 10b side to the 0N-PORT terminal 22b are I10 and LS, respectively.
The first and second output circuits 24a, 24b via I21
It is guided to each energized signal line 40a, 40b.

一方、Ilo・LSI21には詳細は後述する点火プラ
グ10aに対する第1の点火カウンタ36、及び他の点
火プラグ10bに対する第2の点火用カウンタ回路37
が配設されている。第3図は点火用カウンタ回路36,
37の内部構成を示し、いずれのカウンタ回路も2進点
火時期データ(例えば16ビツトデータ)の下位8ビツ
ト及び上位8ビツトの各データをストアする、第1及び
第2レジスタ38a、38bと、一定周期で発生するク
ロック信号のパルス数を計数する第1及び第2カウンタ
39a、39bと、第ルジスタ38aのデータと第1カ
ウンタ39aの計数値を比較する第1コンパレータ41
aと、第2レジスタ39aのデータと第2カウンタ39
bの計数値を比較する第2のコンパレータ41bと、第
2レジスタ38aにパスラインで接続され、前記点火時
期データの上位8ビツトのデータをストアする前段レジ
スタ42とで構成され、第ルジスタ38a及び前段レジ
スタ42はデータバス43を介してCPU22に接続さ
れている。第1及び第2カウンタ39a。
On the other hand, the Ilo LSI 21 includes a first ignition counter 36 for the ignition plug 10a, the details of which will be described later, and a second ignition counter circuit 37 for the other ignition plug 10b.
is installed. Figure 3 shows the ignition counter circuit 36,
37, each counter circuit has first and second registers 38a and 38b, which store the lower 8 bits and upper 8 bits of binary ignition timing data (for example, 16-bit data), and First and second counters 39a and 39b that count the number of pulses of a clock signal generated in a period, and a first comparator 41 that compares the data of the first register 38a and the count value of the first counter 39a.
a, the data of the second register 39a, and the second counter 39
It is composed of a second comparator 41b that compares the counted value of b, and a pre-stage register 42 that is connected to the second register 38a by a pass line and stores the upper 8 bits of the ignition timing data. The pre-stage register 42 is connected to the CPU 22 via a data bus 43. First and second counters 39a.

39bは8ビツトのいずれもアップカウンタで第1カウ
ンタ39aのクロック端子GKにはAND回路49の出
力側が接続され、AND回路49の一方の入力端子はR
−Sフリップフロップ5つのQ出力端子が接続され、他
方の入力端子には前記クロック信号が印加される。第1
カウンタ39aの最上位ビット出力端子は第2カウンタ
39bのクロック端子39bに接続されている。第2コ
ンパレータ41bの出力側は対応する前記第1及び第2
の出力回路24a、24bに接続されると共に第1及び
第2カウンタ39a、39b並びにR−Sフリップフロ
ップ50の各リセット端子Rに接続されている。R−S
フリップフロップ50のセット端子SにはCPU22か
ら供給される起動信号パルスが印加される。
39b is an 8-bit up counter, and the output side of the AND circuit 49 is connected to the clock terminal GK of the first counter 39a, and one input terminal of the AND circuit 49 is connected to the clock terminal GK of the first counter 39a.
The Q output terminals of five -S flip-flops are connected, and the clock signal is applied to the other input terminal. 1st
The most significant bit output terminal of the counter 39a is connected to the clock terminal 39b of the second counter 39b. The output side of the second comparator 41b is connected to the corresponding first and second
It is connected to the output circuits 24a and 24b of , and is also connected to each reset terminal R of the first and second counters 39a and 39b and the R-S flip-flop 50. R-S
A start signal pulse supplied from the CPU 22 is applied to the set terminal S of the flip-flop 50 .

第1図に戻り、l1O−LSI21におれる符号30及
び47は夫々後述する出力タイミング信号の以上を検出
するフェールセーフ回路及びMeタイマである。第1及
び第2の点火カウンタ36゜37は夫々出力線44a、
44bを介して第1及び第2の出力回路24a、24b
に接続されている。
Returning to FIG. 1, numerals 30 and 47 in the l1O-LSI 21 are a fail-safe circuit and a Me timer, respectively, which detect the output timing signal, which will be described later. The first and second ignition counters 36 and 37 are connected to output lines 44a and 44a, respectively.
44b to the first and second output circuits 24a, 24b.
It is connected to the.

符号45.45は第1及び第2の点火コイルで、これら
の点火コイル45.46には、夫々図示省略の1次コイ
ル及び2次コイルが備えられている。
Reference numerals 45 and 45 denote first and second ignition coils, and these ignition coils 45 and 46 are provided with a primary coil and a secondary coil, respectively, which are not shown.

第1の点火コイル45における1次コイルには、第1の
出力回路24aからの出力線が接続され、2次コイルは
点火プラグ10aに接続されている。また第2の点火コ
イル46における1次コイルには、第2の出力回路24
bからの出力線が接続され2次コイルは他の点火プラグ
10bに接続されている。
The output line from the first output circuit 24a is connected to the primary coil of the first ignition coil 45, and the secondary coil is connected to the spark plug 10a. Further, the primary coil in the second ignition coil 46 is connected to the second output circuit 24.
The output line from spark plug 10b is connected, and the secondary coil is connected to another spark plug 10b.

次に、第2図、第4図乃至第13図を参照して電子点火
時期制御装置の作用を説明する。第4図乃至第10図及
び第12図はCPU22で実行される点火時期制御手順
を示すフローチャートで、まず第4図のメインルーチン
のフローチャートから説明すれば1図示省略のイグニッ
ションスイッチが投入された直後等にCPU22等の初
期化処理が行われ1次いてステップ100でクランク角
度の基準位置検出が行われる。基準位置検出後。
Next, the operation of the electronic ignition timing control device will be explained with reference to FIGS. 2, 4 to 13. 4 to 10 and 12 are flowcharts showing the ignition timing control procedure executed by the CPU 22. First, the flowchart of the main routine in FIG. Initialization processing of the CPU 22, etc. is performed, and then, in step 100, the reference position of the crank angle is detected. After detecting the reference position.

クランク軸14の1回転するに要した時間Meの計算、
及びこのMe値に基づくエンジン回転数Neの値の判定
(ステップ200)、進角データθigの演算及びこの
演算値のRAM32へのストア処理(ステップ300)
、通電時間TOHの演算及びこの演算値のRAM32へ
のストア処理(ステップ400)。
Calculating the time Me required for one rotation of the crankshaft 14,
and determining the value of the engine rotational speed Ne based on this Me value (step 200), calculating the advance angle data θig, and storing the calculated value in the RAM 32 (step 300).
, calculation of the energization time TOH and storage of this calculated value in the RAM 32 (step 400).

進角データθig及び通電時間TOHによる通電停止時
期、即ち点火時期データTig及び通電時期データTc
gの演算及びこれら演算値のRAM32へのストア処理
(ステップ500)が順次行われ、このような各演算処
理が、後述する割込処理プログラムINTが実行されな
いときに繰返される。
Energization stop timing based on advance angle data θig and energization time TOH, that is, ignition timing data Tig and energization timing data Tc
The calculation of g and the storage process of these calculated values in the RAM 32 (step 500) are performed sequentially, and each such calculation process is repeated when the interrupt processing program INT, which will be described later, is not executed.

次いで上記各ステップにおける処理を詳述する。Next, the processing in each of the above steps will be explained in detail.

第5図は第4図の初期化処理及びステップ100におけ
る基準位置検出手順を詳示し、先ず、図示省略のイグニ
ッションスイッチの投入直後、後述する出力タイミング
信号の異常時、CPU22の所謂暴走時等においてステ
ップ101が実行されCPU22の初期化が行われる。
FIG. 5 shows in detail the initialization process and the reference position detection procedure in step 100 in FIG. Step 101 is executed and the CPU 22 is initialized.

初期化処理では、RAM32エリアの零クリア、I10
ポートの初期化設定等が行われる。初期化処理後ステー
ジ変数STGには仮の値1を設定する(ステップ102
)。
In the initialization process, the RAM32 area is cleared to zero, I10
Port initialization settings, etc. are performed. After the initialization process, the stage variable STG is set to a temporary value of 1 (step 102
).

これとともに後述する検出した基準位置が正しい基準位
置であるか否かの判定に使用する第1の変数CTIをリ
アクタ16a〜16gの数と同じ値に、第2の変数CT
2を零に夫々設定する(ステップ103,104)、第
1のフリップフロップ回路27をクリア信号(第2図(
e))によりリセット(ステップ105) したのち、
第1番目の第1のパルス信号PCIがこの第1のフリッ
プフロップ回路27にラッチされるのを待機する(ステ
ップ106)。以下クランク角度基準位置の検出及びそ
の確認方法の理解を容易にするために、ステージ変数S
TG、第1の変数CTI及び第2の変数CT2各値の変
化を第1表を参照しながら説明する。
At the same time, the first variable CTI used to determine whether the detected reference position is the correct reference position, which will be described later, is set to the same value as the number of reactors 16a to 16g, and the second variable CT
2 to zero (steps 103 and 104), and the first flip-flop circuit 27 is set with a clear signal (see FIG.
e)) After resetting (step 105),
It waits for the first pulse signal PCI to be latched by the first flip-flop circuit 27 (step 106). Below, in order to make it easier to understand how to detect and confirm the crank angle reference position, the stage variable S
Changes in the values of TG, first variable CTI, and second variable CT2 will be explained with reference to Table 1.

なお、第1表は第1図のパルサ17が第2ステージに対
向した位置にあるときに、エンジンが始動したものとし
、且つ実エンジン回転数が20Orpm以上であると仮
定したときの各変数値S T G 、CTI。
Table 1 shows the values of each variable when the engine is started when the pulsar 17 in Figure 1 is located opposite the second stage, and the actual engine speed is 20 Orpm or more. S.T.G., C.T.I.

Cr2の変化を示す。第1番目の第1パルス信号PCI
 (ステージ3信号)が第1のブリップフロップ回路2
7にラッチされると以下のようにして基準位置の検出及
びその確認が実行される。まず、第1のフリ、ツブフロ
ップ回路27をリセット(ステップ107)、Meタイ
マ47をスタートさせる(ステップ108)、このあと
第1のパルス信号PCIの入力があるまで待機しくステ
ップ109)、次の第1のパルス信号が入力した時点で
Meタイマ47を読み取る(ステップ110)、’Me
タイマの値Tsiを読み取った後Meタイマ47がオー
バーフローしたか否かを判別する0Meタイマは極低回
転数以下の回転数に相当するMeの値でオーバーフロー
する。この判別結果が肯定(Yes)であれば、以後の
基準位置の検出処理は行わずステップ102の処理位置
(以下rsTATIJのように云う)に処理実行を戻す
0判別結果が否定(No)であれば次に続くステップ1
12〜l15で以下のようにしてエンジン回転数Naが
所定の低回転数たる例えば200rp+s以上であるか
否かを判別するとともに、今回パルスPCIがステージ
4を通過した最初のパルスであるかいかなを判別する。
It shows the change in Cr2. 1st 1st pulse signal PCI
(stage 3 signal) is the first flip-flop circuit 2
When latched at 7, the reference position is detected and confirmed as follows. First, reset the first flip-flop circuit 27 (step 107), start the Me timer 47 (step 108), wait until the first pulse signal PCI is input (step 109), and then start the next 1 pulse signal is input, the Me timer 47 is read (step 110), 'Me
After reading the timer value Tsi, the 0Me timer, which determines whether or not the Me timer 47 has overflowed, overflows at the value of Me corresponding to the rotation speed below the extremely low rotation speed. If this determination result is affirmative (Yes), the subsequent reference position detection processing is not performed and the process execution is returned to the processing position of step 102 (hereinafter referred to as rsTATIJ).0 Even if the determination result is negative (No) Next step 1
In steps 12 to 115, it is determined as follows whether the engine rotation speed Na is a predetermined low rotation speed, for example, 200 rpm+s or higher, and it is also determined whether the current pulse PCI is the first pulse that has passed through stage 4. Discern.

この判別を第2表を参照しながら説明する。This determination will be explained with reference to Table 2.

上表でステージ4とは、前述したようにリアクタの欠落
部に相当し、クランク角度が90°相当のステージであ
る。また、ステージ4以外のステージとは、リアクタの
等分位置におけるクランク角度45″相当のステージで
ある。まずステップ112でMe値が第1の判別値(例
えば、ステージ4以外のステージで計測したエンジン回
転数が20Orpmに相当する値として37.5m5)
以上であるか否かを判別する。この判別結果が否定(N
o)であれば、第2表第1欄に示すようにステージ4゜
または、ステージ4以外のステージの何れにおいてもエ
ンジン回転数Neは少なくとも200rpm以上と判断
されるので、基準位置の判断ステップであるステップ1
16に処理を進める。ステップ112の判別結果が工程
(Yes)であれば、さらにステップ113でMe値が
前記第1の判別値の2倍に等しい第2の判別値(例えば
75m5)以上であるか否かを判別する。この判別結果
が肯定(Yes)であれば第2表第3欄に示すようにス
テージ4゜及びステージ4以外のステージの何れのステ
ージにおいてもエンジン回転数Neは200rpm以下
であり前述したようにこのような低回転領域では、パル
サ17,18からのパルス信号の発生機能が損なわれて
パルス信号が適正に発生しないことがあるので、処理を
5TATIに戻す。ステップ113の判別結果が否定(
NO)であれば、Me値は75■B≧Me>37.5m
sの範囲にあり、このときは第2表に示すように当該M
eを読み取ったステージの如何によってはエンジン回転
数Neは200rpm以上である場合があり得る。即ち
Me値をステージ4以外のステージで計測した場合には
エンジン回転数は200rpm以下であることを意味す
るが、ステージ4で計測した場合にはエンジン回転数は
200rpmと40Orpmの間にあることになる。そ
こでステップ114でC10の値が零であるか否かを判
別して零であることを確認した後、今回ループのMe値
の計測はステージ4で行おれたものと仮定してC10の
値に前回ループで設定されたSTGの値(値2)を設定
し、この値を記憶する(ステップ115)。
In the above table, stage 4 corresponds to the missing part of the reactor as described above, and is a stage whose crank angle is equivalent to 90°. In addition, stages other than stage 4 are stages corresponding to a crank angle of 45'' at equally divided positions of the reactor.First, in step 112, the Me value is determined as the first discrimination value (for example, the engine measured at a stage other than stage 4). 37.5m5), which corresponds to a rotation speed of 20Orpm.
It is determined whether or not the value is greater than or equal to the value. This discrimination result is negative (N
o), as shown in the first column of Table 2, the engine speed Ne is determined to be at least 200 rpm or more in stage 4° or any stage other than stage 4, so in the step of determining the reference position. certain step 1
The process proceeds to step 16. If the determination result in step 112 is the process (Yes), it is further determined in step 113 whether or not the Me value is equal to or greater than a second discriminant value (for example, 75 m5) that is twice the first discriminant value. . If this determination result is affirmative (Yes), as shown in the third column of Table 2, the engine speed Ne is 200 rpm or less at stage 4° and any stage other than stage 4. In such a low rotation range, the pulse signal generation function from the pulsers 17 and 18 may be impaired and pulse signals may not be generated properly, so the process is returned to 5TATI. The determination result in step 113 is negative (
If NO), the Me value is 75■B≧Me>37.5m
In this case, as shown in Table 2, the M
Depending on the stage at which e is read, the engine rotation speed Ne may be 200 rpm or more. In other words, if the Me value is measured at a stage other than stage 4, it means that the engine speed is below 200 rpm, but if it is measured at stage 4, the engine speed is between 200 rpm and 40 rpm. Become. Therefore, in step 114, it is determined whether the value of C10 is zero or not, and after confirming that it is zero, the value of C10 is changed to The STG value (value 2) set in the previous loop is set and this value is stored (step 115).

そして今回ループ以降に再びステップ114が実行され
てC10の値が零以外の値であることを判別したとすれ
ば、クランク角度90°相当のステージ4は、クランク
軸14の1回転中に1回だけしかその存在が許されない
ので、実際のエンジン回転数Neが200rp■以下で
あったか、又はPCIパルス信号に異常が生じて発生す
べきパルスが発生しなかったものと判断して5TAT1
に戻る。
If step 114 is executed again after this loop and it is determined that the value of C10 is a value other than zero, stage 4 corresponding to a crank angle of 90° will be activated once during one rotation of the crankshaft 14. Since its presence is only allowed, it is assumed that the actual engine speed Ne was less than 200 rpm, or that an abnormality occurred in the PCI pulse signal and the pulse that should have been generated did not occur.
Return to

次いでステップ116で前記第2図(Q)、(d)に示
したように第1のフリップフロップ回路27に第1のパ
ルス信号PCIがラッチされたときに、第2のフリップ
フロップ28のQ出力が零、即ち第2のパルス信号PC
2が欠落しているか否かを判別する。この判別結果が否
定(No)であればステージ変数STGを値1だけイン
クリメントしくステップ117)、第1の変数値CT1
を値1だけデクリメントしつつ(ステップ118)、ス
テップ107からの処理を繰返し実行する。この繰返し
実行の間に、エンジン回転数Neが200rp+m以下
と判別された場合、またはエンジン回転数Neが20O
rpm以上であっても第2のパルス信号PC2の欠落位
置が見出されることなしに、第1の変数値CT1が零に
至ったとき(ステプ’t11g)の判別結果が背定(Y
es)のときは誤パルス信号の入力等があった可能性が
あるので内燃エンジンをクランキング状態として5TA
T1に処理を戻す。一方、前記ステップ116の判別結
果が肯定(Yas)の場合は、このときのクランク角度
位置が真の基準位置か否かを次のようにしてステップ1
19以下で確認する。即ちまずステップ117で第2の
変数CT2の値が当初の設定値たる零のままであるか否
かを判別する。この判別結果が肯定(Yes)であれば
、前記ステップ112の判別部分で述べたように、この
ステップ112の判別結果が否定(N o )で、エン
ジン回転数Noはクランク角度45@相当のステージで
適正に検出されたのちにステップ116で基準位置が検
出されていると判断し、この検出された基準位置を、正
しい基準位置であると判断して、これに基準ステージ番
号(第1表の例で云えば数値7)を設定する(ステップ
123)。
Next, in step 116, when the first pulse signal PCI is latched in the first flip-flop circuit 27 as shown in FIGS. 2(Q) and (d), the Q output of the second flip-flop 28 is is zero, that is, the second pulse signal PC
2 is missing. If this determination result is negative (No), the stage variable STG is incremented by the value 1 (step 117), and the first variable value CT1
The process from step 107 is repeatedly executed while decrementing by the value 1 (step 118). During this repeated execution, if the engine speed Ne is determined to be 200 rpm+m or less, or if the engine speed Ne is 20O
The determination result when the first variable value CT1 reaches zero (step 't11g) is negative (Y
es), there is a possibility that an erroneous pulse signal was input, so the internal combustion engine is cranked and the engine is turned to 5TA.
Return processing to T1. On the other hand, if the determination result in step 116 is affirmative (Yas), step 1 determines whether or not the crank angle position at this time is the true reference position as follows.
Confirm below 19. That is, first, in step 117, it is determined whether the value of the second variable CT2 remains at the initial setting value of zero. If this determination result is affirmative (Yes), as described in the determination part of step 112, the determination result of this step 112 is negative (No), and the engine speed No. is at the stage corresponding to the crank angle 45@. After the reference position is properly detected in step 116, it is determined that the reference position has been detected, and this detected reference position is determined to be the correct reference position, and the reference stage number (see Table 1) is assigned to it. For example, the numerical value 7) is set (step 123).

一方、ステップ119の判別結果が否定(NO)の場合
は、前記ステップ112〜114の処理部分で述べたよ
うに、エンジン回転数Noはクランク角度90″相当の
ステージで検出されたものと仮定し、第2の変数CT2
の値を2と設定(ステップ115)としてその後の処理
を進めた場合であるので、第2表に示すように、この数
値2と設定したステージが、正しくクランク角度90°
相当のステージであ、ったかどうかを、ステップ116
で求めた基準位置のステージから逆算してこれを確認す
る。この確認を第1表第2欄に揚げた数値列を参照して
説明する。まず、ステップ120でrSTG−CT2=
A’ Jを求める。ここでSTGは基準位置が見出され
たステージの直前のステージで設定された値で数値例で
は4である。C10はステップ115で設定した第2の
変数CT2の値で2である。この数値を前記式に代入す
ると、4−2=2=A’が求められる。次いでステップ
121で「基準5TG−A’=AJを求める。基準ST
Gは、第1表から数値7である。したがって上式は7−
2=5=Aが求められる。これを次のステップ122で
上記のようにして求めたAの値が5であったか否かを判
別する。A=5の値は、2つのパルサ17,18の間隔
を前述のとおりに設定し、第1F/F=1で第2F/F
=Oのとき、第1のパルサ17が検出したクランク角度
位置を基準クランク角度位置とするとき、いかなる形式
のエンジンについても数値5である。前記ステンプ12
1の計算結果Aの値は5であるので、上述の数値列の場
合、ステップ122の判別結果は肯定(Yes)である
。このステップ122判別結果が背定(Yes)であれ
ば、前記と同様にステップ116で検出された基準位置
は、正しい基準位置8であると判断して、この基準位置
8のステージに基準ステージ番号を設定する(ステップ
123)。
On the other hand, if the determination result in step 119 is negative (NO), it is assumed that the engine speed No. is detected at a stage corresponding to a crank angle of 90'', as described in the processing portion of steps 112 to 114 above. , second variable CT2
This is the case where the value of is set to 2 (step 115) and the subsequent processing is proceeded, so as shown in Table 2, the stage set to this value of 2 will correctly set the crank angle to 90°.
Step 116
Confirm this by calculating backwards from the reference position of the stage determined in step. This confirmation will be explained with reference to the numerical sequence listed in the second column of Table 1. First, in step 120, rSTG-CT2=
Find A' J. Here, STG is a value set at the stage immediately before the stage where the reference position was found, and is 4 in the numerical example. C10 is the value of the second variable CT2 set in step 115, which is 2. By substituting this value into the above equation, 4-2=2=A' is obtained. Next, in step 121, "Find standard 5TG-A'=AJ. Standard ST
G is the value 7 from Table 1. Therefore, the above equation is 7-
2=5=A is found. In the next step 122, it is determined whether the value of A obtained as described above is 5 or not. The value of A=5 is determined by setting the interval between the two pulsers 17 and 18 as described above, and setting the first F/F=1 and the second F/F.
=O, when the crank angle position detected by the first pulser 17 is taken as the reference crank angle position, the value is 5 for any type of engine. The stamp 12
Since the value of the calculation result A of 1 is 5, in the case of the above numerical sequence, the determination result in step 122 is affirmative (Yes). If the determination result in step 122 is positive (Yes), it is determined that the reference position detected in step 116 is the correct reference position 8 in the same way as described above, and the stage at this reference position 8 is assigned a reference stage number. is set (step 123).

もしステップ122の判別結果が否定であればその検出
されたステージは正しい基準ステージではないので処理
を5TATLに戻す。
If the determination result in step 122 is negative, the detected stage is not the correct reference stage, and the process returns to 5TATL.

以上のようにして基準位置8が正しく検出されると1次
いで第4図のステップ200でMe値の計算及びエンジ
ン回転数Neの判定が行なねれる。
When the reference position 8 is correctly detected as described above, the Me value is calculated and the engine rotational speed Ne is determined in step 200 of FIG. 4.

これを第6図のサブルーチンのフローチャートを用いて
説明する。ステップ201で、第1のパルス信号PCI
の斯く発生時間間隔Tsi (i=1〜7)(第2図(
a))が1Meタイマ47によりクロックパルスで計測
され、その1回転分の合計時間Meが演算処理される。
This will be explained using the subroutine flowchart shown in FIG. In step 201, the first pulse signal PCI
Thus, the occurrence time interval Tsi (i=1 to 7) (Fig. 2 (
a)) is measured by a clock pulse by the 1Me timer 47, and the total time Me for one rotation is calculated.

ステップ202では、この合計時間Meからクランク軸
14が1ステ一ジ分、云い換えればクランク角度45″
相当分回転するのに要する時間の平均値T s = M
 e÷8と、クランク角度1@相当分回転するのに要す
る時間ΔT=’Ts÷45とを演算し、これをRAM3
2にストアし、後述の点火時期Tig等め演算処理に備
える。
In step 202, the crankshaft 14 moves one stage from this total time Me, in other words, the crank angle is 45''.
Average value of time required to rotate by a certain amount T s = M
e÷8 and the time required to rotate the crank angle equivalent to 1 @ ΔT='Ts÷45, and store this in RAM3.
2 to prepare for calculation processing such as ignition timing Tig, which will be described later.

次に、ステップ203以降の各ステップで現在のエンジ
ン回転数Neが如何なる回転数領域にあるかを判定する
。先ず、ステップ203乃至206において、エンジン
回転数Neが極低回転領域にあるか否かを判別する。ス
テップ203ではエンジン回転数Naが点火時期制御を
後述する固定点火制御に切換えるべき所定回転数NIc
kc@より所定値だけ低い所定回転数N1.c*t、C
例えば、400rpm)以下か否かを判別し、この答が
肯定(Yes)であればステップ204に進み、フラグ
N1の値を零に設定し、否定(No)であればステップ
205に進む。ステップ205ではエンジン回転数Ne
が前記所定回転数NlG14より所定値だけ高い所定回
転数NIGC貢H(例えば、500ppm)以上か否か
を判別する。この答が肯定(Yes)であればステップ
206に進み、フラグN1に設定し、否定(No)であ
ればステップ207に進む。このようにフラグ値N1を
零から値1に、又は値1から零に切換える判別回転数を
互いに異なる値に設定しであるため点火時期制御の安定
化を図ることが出来る。
Next, in each step after step 203, it is determined in what rotation speed range the current engine speed Ne is. First, in steps 203 to 206, it is determined whether the engine rotation speed Ne is in an extremely low rotation range. In step 203, the engine speed Na is set to a predetermined speed NIc at which the ignition timing control should be switched to fixed ignition control, which will be described later.
A predetermined rotation speed N1. which is lower than kc@ by a predetermined value. c*t,C
For example, if the answer is affirmative (Yes), the process proceeds to step 204, where the value of the flag N1 is set to zero, and if the answer is negative (no), the process proceeds to step 205. In step 205, the engine speed Ne
It is determined whether or not the rotational speed is equal to or higher than a predetermined rotational speed NIGC (for example, 500 ppm) which is higher than the predetermined rotational speed NlG14 by a predetermined value. If the answer is affirmative (Yes), the process proceeds to step 206 and the flag N1 is set, and if the answer is negative (No), the process proceeds to step 207. In this way, since the discrimination rotation speeds for switching the flag value N1 from zero to value 1 or from value 1 to zero are set to different values, it is possible to stabilize the ignition timing control.

次いで、ステップ207乃至210においてエンジン回
転数Neが高速回転領域にあるか否かを判別する。この
高速回転領域の判別も上述のステップ203乃至206
のときと同様に判別値にヒステリシス特性を持たせる値
に設定されており、ステップ207においてエンジン回
転数Neが所定回転数NIGAC1より所定値だけ低い
所定回転数NIGACtL (例えば5000rpm)
以下と判別されると(ステップ207の判別結果が肯定
(Y es) )、フラグ値N2が零に設定され(ステ
ップ207)、ステップ209においてエンジン回転数
Neが前記所定回転数NIQAC1より所定値だけ高い
所定回転数N +GAcx H(例えば、5500pp
m)以上と判別されると(ステップ209の判別結果が
肯定(Yes))、フラグ値N2が値1に設定される(
ステップ210)、このフラグN2は後述するエンジン
の急加速時に後述の点火時期データTigの加速補正を
実行してもよいか否かを判別するためのもので、エンジ
ン回転数Neが第1の所定回転数N!GAc1以上の高
速時には演算処理時間が十分に確保できなくなるために
点火時期データTigの加速補正が禁止される。
Next, in steps 207 to 210, it is determined whether the engine speed Ne is in a high speed rotation range. The determination of this high-speed rotation region is also performed in steps 203 to 206 described above.
As in the case of , the discrimination value is set to a value that gives a hysteresis characteristic, and in step 207, the engine rotation speed Ne is set to a predetermined rotation speed NIGACtL (for example, 5000 rpm) that is lower than the predetermined rotation speed NIGAC1 by a predetermined value.
If it is determined that the engine rotation speed is below (the determination result in step 207 is affirmative (Yes)), the flag value N2 is set to zero (step 207), and in step 209, the engine rotation speed Ne is lower than the predetermined rotation speed NIQAC1 by a predetermined value. High predetermined rotation speed N + GAcx H (for example, 5500pp
m) If it is determined that this is the case (the determination result in step 209 is affirmative (Yes)), the flag value N2 is set to the value 1 (
Step 210), this flag N2 is used to determine whether or not acceleration correction of the ignition timing data Tig, which will be described later, may be performed when the engine suddenly accelerates, which will be described later. Number of revolutions N! When the speed is higher than GAc1, sufficient calculation processing time cannot be secured, so acceleration correction of the ignition timing data Tig is prohibited.

ステップ211乃至214ではエンジン回転数Neが前
記所定回転数Nl@Ac工以下、且つ、所定回転数Nr
ahCz (N+ec罠<NteAcz<N+aAct
)以上の領域にあるかを判別する。この回転領域の判別
も上述と同様に判別値にヒステリシス特性を持たせる値
に設定されており、ステップ211においてエンジン回
転数Naが前記所定回転数NIQAC。
In steps 211 to 214, the engine rotation speed Ne is equal to or lower than the predetermined rotation speed Nl@Ac, and the predetermined rotation speed Nr
ahCz (N+ec trap<NteAcz<N+aAct
) or above. The determination of this rotation range is also set to a value that gives a hysteresis characteristic to the determination value in the same manner as described above, and in step 211, the engine rotation speed Na is set to the predetermined rotation speed NIQAC.

より所定値だけ低い所定回転数N I QAC2L (
例えば、2500rp+s)以下と判別されると(ステ
ップ211の判別結果が肯定(Yes))、フラグ値N
3が零に設定され(ステップ212) 、ステップ21
3においてエンジン回転数Neが所定回転数NIQAC
,より所定値だけ高い所定回転数N IGAC,H(例
えば、3000rpm)以上と判別されると(ステップ
213の判別結果が肯定(Yes))、フラグ値N3が
値1に設定される(ステップ214)、このフラグN3
はエンジンの急加減速時に、上述の加速補正した点火時
期データTigに基づいてさらに後述の通電時期データ
Tcgの加速補正を実行してもよいか否かを判別するた
めのもので、エンジン回転数Noが所定回転数NIGA
03以下であれば、演算処理時間が十分に確保できるの
で、点火時期データTigとともに通電時期データTa
gの加速補正をも実行する。
A predetermined rotation speed N I QAC2L (
For example, if the flag value N
3 is set to zero (step 212), and step 21
3, the engine speed Ne is the predetermined speed NIQAC.
, if it is determined that the predetermined rotational speed NIGAC,H (for example, 3000 rpm) is higher than , by a predetermined value (the determination result in step 213 is affirmative (Yes)), then the flag value N3 is set to the value 1 (step 214). ), this flag N3
is used to determine whether or not to further perform acceleration correction of the energization timing data Tcg, which will be described later, based on the ignition timing data Tig that has undergone acceleration correction, when the engine suddenly accelerates or decelerates. No is the specified rotation speed NIGA
If it is 03 or less, sufficient calculation processing time can be secured, so the energization timing data Ta is used together with the ignition timing data Tig.
Acceleration correction of g is also performed.

メインルーチンでは、次のステップ300で基準クラン
ク角度位置qからの進角データθigの演算と、この演
算結果のストアを実行する。進角データθigは、Ne
値と、吸気圧センサ9及びエンジン水温センサ11で夫
々検出された吸気管内圧力PR及びエンジン水温Twの
各値とから次の(1)式に従って演算される。
In the main routine, in the next step 300, advance angle data θig from the reference crank angle position q is calculated and the result of this calculation is stored. The lead angle data θig is Ne
It is calculated according to the following equation (1) from the values of the intake pipe internal pressure PR and the engine water temperature Tw detected by the intake pressure sensor 9 and the engine water temperature sensor 11, respectively.

θig=θigMAP+Δθig   ・・・(1)こ
こにθigMAPは、基本進角データを示し、エンジン
回転数Neと吸気管内圧力Paとの関数(θigMAr
=f(Nap Pa))であり、ROM31に記憶され
ているNe−PB−θigマツプから読みだされる。八
〇igは進角データの補正値で例えばその値はエンジン
温度Twの関数(Δθig=f(Tw))として求めら
れROM31に記憶されているTw−Δθigテーブル
から読み出される。なお、進角データθigの値は、最
大進角度θig’  (例えば60°)の値を上限とし
て規定され、上記のようにして求められた値がこの最大
進角度θig′を越えたときは、−この最大進角度θi
g′の値に補正される。このようにして求められた進角
データθigはRAM32にストアされる。
θig=θigMAP+Δθig...(1) Here, θigMAP indicates basic advance angle data, and is a function of engine speed Ne and intake pipe pressure Pa (θigMAr
=f(Nap Pa)) and is read from the Ne-PB-θig map stored in the ROM 31. 80ig is a correction value for the advance angle data, and for example, the value is determined as a function of the engine temperature Tw (Δθig=f(Tw)) and is read from the Tw-Δθig table stored in the ROM 31. Note that the value of the advance angle data θig is specified with the value of the maximum advance angle θig' (for example, 60°) as the upper limit, and when the value obtained as above exceeds this maximum advance angle θig', −This maximum advance angle θi
It is corrected to the value of g'. The lead angle data θig obtained in this manner is stored in the RAM 32.

次いで、ステップ400で通電時間TOHの演算と、こ
の演算結果のストアを実行する1通電時間TONは次の
(2)式に示すようにエンジン回転数Naのみの関数で
上記と同様にROM31に記憶されているN e −T
 ONテーブルから読み出される。
Next, in step 400, the energization time TOH is calculated and the result of this calculation is stored.One energization time TON is a function of only the engine speed Na, as shown in the following equation (2), and is stored in the ROM 31 in the same manner as above. N e −T
Read from the ON table.

ToN=f  (Ne)      −(2)このよう
にして求められた通電時間データToNはRAM32に
ストアされる。
ToN=f (Ne) - (2) The energization time data ToN thus obtained is stored in the RAM 32.

進角データθig及び通電時間データTONが求められ
たのち、ステップ500でこれらの値に基づいて点火時
期データTig及び通電時期データTagが演算される
。まず点火時期データTigについて述べると、エンジ
ンのバンク角及び各気筒ごとに、クランク角度基準位置
qから最大進角度θig′だけ進角した位置のステージ
番号(第2図(a)の例ではステージ6)と、このステ
ージ位置の始端から最大進角度θig′位置までのクラ
ンク角度(これを以下「角度データ」という)とがRO
M31に記憶されティる。CPtJ22は、これらの角
度データ及び進角データ01g等をROM31及びRA
M32から夫々読み出し、ステージ6パルスq′からの
角度DEGを次の(3)式により演算する。
After the advance angle data θig and the energization time data TON are obtained, in step 500, ignition timing data Tig and energization timing data Tag are calculated based on these values. First, regarding the ignition timing data Tig, for each engine bank angle and each cylinder, the stage number at the position advanced by the maximum advance angle θig' from the crank angle reference position q (in the example of Fig. 2 (a), stage 6 ) and the crank angle from the start of this stage position to the maximum advance angle θig' position (hereinafter referred to as "angle data") is RO.
It is stored in M31 and displayed. CPtJ22 stores these angle data and advance angle data 01g, etc. in ROM31 and RA.
The angle DEG from the stage 6 pulse q' is calculated by the following equation (3).

DEG=θig’−〇ig十角度データ・・・(3)次
いで、この角度DEGから点火時期データTigを(4
)式により演算する。
DEG=θig'-〇ig ten angle data... (3) Next, from this angle DEG, ignition timing data Tig is (4
) is calculated using the formula.

Tig=ΔTXDEG    −(4)ここにΔTは前
記第6図のステップ202でRAM32に記憶した。ク
ランク軸14がクランク角度で16だけ回転するのに要
する時間である。
Tig=ΔTXDEG−(4) where ΔT was stored in the RAM 32 at step 202 in FIG. 6 above. This is the time required for the crankshaft 14 to rotate by 16 crank angles.

また1通電時期データT c gについては、上記のよ
うにして求めた点火時期データTig及び通電時間デー
タTONから次の(5)式により演算する。
Further, one energization timing data T c g is calculated by the following equation (5) from the ignition timing data Tig and the energization time data TON obtained as described above.

Tcg= l (TON−Ti g) −Ts Xm 
1−(5)ここにmは最大進角度θig′だけ進角した
位置のステージ(第2図の図示例ではステージ6)以前
の点火コイルに通電を開始するステージまでのステージ
数(第2Taの図示例ではm=1)、Tsは第6図のス
テップ202で求めたクランク軸が45°クランク角度
進むに要する時間の平均値である。上記の各演算値はR
AM32にストアされる。
Tcg= l (TON-Tig) -Ts Xm
1-(5) Here, m is the number of stages (stage 2 Ta) up to the stage at which the ignition coil starts energizing before the stage advanced by the maximum advance angle θig' (stage 6 in the example shown in Fig. 2). In the illustrated example, m=1), and Ts is the average value of the time required for the crankshaft to move through a 45° crank angle determined in step 202 of FIG. Each calculation value above is R
Stored in AM32.

次いで、通電及び点火の実行を第7図のフローチャート
により説明する。第7図に示す割込演算処理プログラム
INTは、第1のフリップフロップ回路27からQ出力
がCPU22に入力する毎に最優先順位で実行される。
Next, the execution of energization and ignition will be explained with reference to the flowchart of FIG. The interrupt arithmetic processing program INT shown in FIG. 7 is executed with the highest priority every time the Q output from the first flip-flop circuit 27 is input to the CPU 22.

即ち、割込プログラムINTは第1のバルサ17により
所定クランク角度位置を検出する毎に実行され、この割
込プログラムINTが実行されるときには今まで実行し
ていたプログラムの処理中断位置(スタックポイント)
が図示しないスタックレジスタに記憶された後に演算処
理がそのプログラムから割込プログラムINTに移る。
That is, the interrupt program INT is executed every time the first balsa 17 detects a predetermined crank angle position, and when the interrupt program INT is executed, the processing interruption position (stack point) of the program that has been executed so far is reached.
is stored in a stack register (not shown), then the arithmetic processing moves from that program to the interrupt program INT.

先ず、ステップ601では前回の所定クランク角度位置
検出時に実行開始された割込プログラムINTの処理が
未だ終了せず、この割込処理中に今回の割込処理が実行
されたものであるかを判別する。この答が否定(No)
の場合にはステップ603に進み1Meタイマ47の計
測値を読込み、これを記憶した後Meタイマ47をリセ
ットして再スタートさせる。次いで、ステップ604に
進み、前回ループの後述するステップ615において更
新したSTG値、即ち今回ステージが点火カウンタ回路
36のカウントを開始すべき点火ステージ(例えば第6
ステージ)であるか否かを判別する。この判°別結果が
肯定(Yes)であればCPU22は点火カウンタ回路
36に起動信梅を送出して、この点火カウンタ回路36
を起動させ(ステップ605、第2図(g))、ステッ
プ606に進む。
First, in step 601, it is determined whether the processing of the interrupt program INT, which started execution when the previous predetermined crank angle position was detected, has not yet finished, and the current interrupt processing was executed during this interrupt processing. do. This answer is negative (No)
In this case, the process proceeds to step 603, reads the measured value of the 1Me timer 47, stores it, and then resets the Me timer 47 and restarts it. Next, the process proceeds to step 604, where the STG value updated in step 615, which will be described later, of the previous loop is used.
stage). If this determination result is affirmative (Yes), the CPU 22 sends a start signal to the ignition counter circuit 36, and the ignition counter circuit 36
(step 605, FIG. 2(g)), and the process proceeds to step 606.

この起動信号は点火カウンタ回路36の第3図に示すR
−Sフリップフロップ50のセット端子Sに入力し、そ
のQ出力端子に「1」レベルを発生させる。フリッププ
ロップ50のQ出力端子に発生した「1」レベルはAN
D回路49を開成状態にし、これにより第1カウンタ3
9aのクロック端子CKへのクロック信号の印加が開始
される。
This starting signal is R of the ignition counter circuit 36 shown in FIG.
-S is input to the set terminal S of the flip-flop 50, and a "1" level is generated at its Q output terminal. The “1” level generated at the Q output terminal of flip-flop 50 is AN
The D circuit 49 is opened, thereby causing the first counter 3
Application of a clock signal to the clock terminal CK of 9a is started.

一方、ステップ604の判別結果が否定(No)であれ
ば直接ステップ606に進み、CPU22の0N−PO
RT端子22aに「1」レベルを出力する。この0N−
PORT端子22aに現われる「1」レベルは通電信号
線40aを介して第1の出力回路24aに供給されるが
この第1の出力回路24aは0N−PORT端子22a
の出力が「0」から「1」に反転したときにのみ点火コ
イル45への通電を開始させることが出来るものである
。従って、0N−PORT端子22aの出力レベルがも
ともと「1」であれば、これに「1」レベルを再度出力
しても第1の出力回路24aの作動に何ら変化がないが
、後述するように0N−PORT端子22aに一旦「0
」レベルを出力させて待機状態にしておくと本ステップ
606が実行されることにより強制的に点火コイル45
への通電を開始させることが出来る。
On the other hand, if the determination result in step 604 is negative (No), the process directly proceeds to step 606, and the CPU 22's 0N-PO
A "1" level is output to the RT terminal 22a. This 0N-
The "1" level appearing at the PORT terminal 22a is supplied to the first output circuit 24a via the energizing signal line 40a, but this first output circuit 24a is connected to the 0N-PORT terminal 22a.
It is possible to start energizing the ignition coil 45 only when the output of the ignition coil 45 is reversed from "0" to "1". Therefore, if the output level of the 0N-PORT terminal 22a is originally "1", there will be no change in the operation of the first output circuit 24a even if the "1" level is output again to it, but as will be described later. Once “0” is applied to the 0N-PORT terminal 22a.
” level is output and the standby state is set, this step 606 is executed, and the ignition coil 45 is forcibly turned on.
It is possible to start energizing.

次に、ステップ607に進み1通電カウンタたる内部カ
ウンタ34をスタートさせる(第2図(g))。通電カ
ウンタ34はこの割込処理プログラムの実行ごとにスタ
ートすることになる1次いで、ステップ60gに進み、
エンジン回転数Neが所定極低回転数NlG37P (
例えば、200rpm)以上であるか否かを判別する。
Next, the process proceeds to step 607, and the internal counter 34, which is a one-current counter, is started (FIG. 2(g)). The energization counter 34 is started every time this interrupt processing program is executed.Next, the process proceeds to step 60g.
The engine rotation speed Ne is the predetermined extremely low rotation speed NlG37P (
For example, it is determined whether the rotational speed is 200 rpm or more.

この答が否定(No)であればステップ609に進み、
後述する点火禁止処理が実行され不良点火によるエンジ
ンへの悪影響が防止される。ステップ608の判別結果
が肯定(Yes)の場合には前記固定点火制御を実行す
べきか否かをフラグCRFLG値が値1に等しいか否か
によって判別する(ステップ610)。
If this answer is negative (No), proceed to step 609;
Ignition prohibition processing, which will be described later, is executed to prevent adverse effects on the engine due to faulty ignition. If the determination result in step 608 is affirmative (Yes), it is determined whether or not the fixed ignition control should be executed depending on whether the flag CRFLG value is equal to the value 1 (step 610).

フラグ値CRFLGが値1に等しければ後述する固定点
火制御サブルーチンCRNKを実行する一方、フラグ値
CRFLGが零の場合にはステップ611に進み、前記
パルス信号PCIの発生時間間隔(前ステージ時間間隔
)Ts(n)の記憶値を今回ループのステップ603で
読込んだMeタイマ47の計測値に更新する。更新した
Ts(n)値は前記第6図のステップ201で実行され
るMe値の演算に使用される。
If the flag value CRFLG is equal to the value 1, a fixed ignition control subroutine CRNK to be described later is executed, while if the flag value CRFLG is zero, the process proceeds to step 611, and the generation time interval (pre-stage time interval) Ts of the pulse signal PCI is executed. The stored value of (n) is updated to the measured value of the Me timer 47 read in step 603 of the current loop. The updated Ts(n) value is used for calculating the Me value executed in step 201 of FIG. 6 above.

次いでステップ612では吸気圧センサ9、エンジン水
温センサ11等で夫々検出される吸気圧値Pa、エンジ
ン水温値T’wの読込みが実行される。尚、ステップ6
12において、各ステージ毎に読込むべきパラメータ値
が設定されており1例えば吸気圧値Paは#2ステージ
において、エンジン水温値Twは#5ステージにおいて
夫々読込まれるようにされている。
Next, in step 612, the intake pressure value Pa and engine water temperature value T'w detected by the intake pressure sensor 9, engine water temperature sensor 11, etc., respectively, are read. In addition, step 6
At step 12, parameter values to be read for each stage are set. For example, the intake pressure value Pa is read at the #2 stage, and the engine water temperature value Tw is read at the #5 stage.

次に、ステップ613及び650でエンジンの過回転判
別を行なう、即ち、まず、ステップ613で第4ステー
ジであるかを判別する。第4ステージは、第2図(a)
に示すように、クランク角度が90°相当のステージで
他のステージの2倍の角度間隔を有しており、この間断
たな割込み演算処理プログラムINTの実行要求は生じ
ない、即ち、第4ステージのプログラム処理時間は他の
ステージに比べて2倍の時間が確保でき高回転時に他の
ステージにおいて演算処理できないものも第4ステージ
ではこれを可能にするのである。これはクランク角度位
置の検出が2つのパルサ17゜18と、円周状1箇所の
欠落部を有する1回転円板15に突設されたリアクタ1
6a−16gとによって行なわれることに基づく、そこ
でステップ613の判別結果が否定(No)の場合シこ
は過回転判別に要する処理時間が確保できないものとし
てステラ650を飛び越してステップ614に進む一方
、肯定(Yes)の場合にはステップ650に進み、サ
ブルーチンNECHKを実行する。
Next, in steps 613 and 650, it is determined whether the engine is overspeeding. That is, first, in step 613, it is determined whether the engine is in the fourth stage. The fourth stage is shown in Figure 2(a).
As shown in the figure, the stage where the crank angle is equivalent to 90° has an angular interval twice that of other stages, and there is no continuous execution request for the interrupt calculation processing program INT during this period, that is, the fourth stage The program processing time is twice as long as that of the other stages, and the fourth stage can process calculations that cannot be processed in other stages at high rotation speeds. This detects the crank angle position using two pulsers 17°18 and a reactor 1 protruding from a one-rotation disk 15 having one circumferentially missing part.
6a to 16g, if the determination result in step 613 is negative (No), it is assumed that the processing time required for overspeed determination cannot be secured, and the process skips the stellar 650 and proceeds to step 614. If the answer is yes, the process advances to step 650 and subroutine NECHK is executed.

第8図はサブルーチンNECHKのフローチャートを示
し、ステップ651で第7図のステップ611で記憶さ
れたTs、値(今回ループは第4ステージのパルスPC
Iが検出された直後に実行されたものであるから今回ル
ープで検出される最新のTsn値は第3ステージにおけ
るPCIパルスの発生時間間隔Ts、である。)が変数
値TNeとして設定される。この変数値THeを用いて
後述のステップ652及び654における判別が実行さ
れる。ステップ652ではエンジンが過回転状態を脱し
たか否かを判別する。即ち、この判別はエンジン回転数
Neが所定の下限回転数、N H()OVL (例えば
、15000rp■)以下か否かによって利殖する。こ
の判別結果が肯定(Y as)の場合にはフラグCUT
FLGに値0を設定してエンジンが過回転状態を離脱し
たことを記憶する(ステップ653)。否定(No)の
場合にはステップ654に進み、エンジンが過回転状態
にあるか否かを判別する。即ち、エンジン回転数Neが
所定の上限回転数NIGOVH(例えば。
FIG. 8 shows a flowchart of the subroutine NECHK, in which in step 651 the Ts and values stored in step 611 of FIG.
Since it was executed immediately after I was detected, the latest Tsn value detected in this loop is the PCI pulse generation time interval Ts in the third stage. ) is set as the variable value TNe. Determinations in steps 652 and 654, which will be described later, are performed using this variable value THe. In step 652, it is determined whether the engine has exited the overspeed state. That is, this determination is made based on whether or not the engine rotational speed Ne is less than or equal to a predetermined lower limit rotational speed, NH()OVL (for example, 15000 rpm). If this determination result is positive (Y as), flag CUT
The value 0 is set in FLG to store that the engine has left the overspeed state (step 653). If the answer is negative (No), the process proceeds to step 654, where it is determined whether the engine is in an overspeed state. That is, the engine rotation speed Ne is set to a predetermined upper limit rotation speed NIGOVH (for example).

16000rpm)以上か否かを判別し、この判別結果
が肯定(Yas)の場合にはフラグCUTFLGに値1
を設定し、エンジンが過回転状態にあることを記憶しく
ステップ655)、否定(NO)の場合には次ステツプ
656に進む、尚、ステップ652及び654において
エンジンが過回転状態にあるか否かの判別に所定の上限
及び下限回転数の異なる判別値を用いるのは、これによ
りエンジン制御の安定化を図るためである。
16,000 rpm) or more, and if the result of this determination is affirmative (Yas), the value 1 is set in the flag CUTFLG.
is set to remember that the engine is in an overspeed state (step 655), and if the answer is negative (NO), the process proceeds to the next step 656. Furthermore, in steps 652 and 654, whether or not the engine is in an overspeed state is determined. The reason why different determination values of the predetermined upper limit and lower limit rotation speed are used for the determination is to stabilize engine control.

前記ステップ656ではフラグ値N1が零に等しいか否
かを判別する。このフラグN1の値は前述の第3図ステ
ップ204又は206において設定され、ステップ65
6の判別結果が肯定(Yes)の場合にはエンジン回転
数Neが極低回転領域にあることを意味し、斯かる場合
、後述する固定点火制御を実行すべくフラグCRFLG
の値を値1に設定しくステップ657)、否定(NO)
の場合には値Oに設定する(ステップ658)、このフ
ラグ値CRFLGは前記第7図ステップ610における
判別に使用される。フラグCRFLGの値を設定し終え
るとサブルーチンNECHKの実行が終了し、第7図の
前記ステップ614に進む。
In step 656, it is determined whether the flag value N1 is equal to zero. The value of this flag N1 is set in step 204 or 206 in FIG.
If the determination result in step 6 is affirmative (Yes), it means that the engine speed Ne is in the extremely low speed range, and in such a case, the flag CRFLG is set to execute fixed ignition control, which will be described later.
to set the value to 1 (step 657), negative (NO)
In this case, the flag value CRFLG is set to the value O (step 658), and this flag value CRFLG is used for the determination in step 610 of FIG. Once the value of the flag CRFLG has been set, the execution of the subroutine NECHK ends and the process proceeds to step 614 in FIG.

ステップ614では前記第6図のステップ208又は2
10で設定されたフラグN2の値が値1であるか否かを
判別する。この判別結果が肯定(Yes)であれば通電
時期データTcg及び点火時期データTigの加速補正
は行なわずに次のステップ615に進む。一方、ステッ
プ614の判別結果が否定(No)であればステップ6
70においてサブルーチンTH8Iが実行され、点火時
期データTig及び通電時期データTagの加速補正が
行なわれる。この加速補正の実行を第9図及び第10図
のサブルーチンTH8I、TH8IAのフローチャート
を用いて説明する。
In step 614, step 208 or 2 in FIG.
It is determined whether the value of flag N2 set in step 10 is 1 or not. If the result of this determination is affirmative (Yes), the process proceeds to the next step 615 without performing acceleration correction of the energization timing data Tcg and the ignition timing data Tig. On the other hand, if the determination result in step 614 is negative (No), step 6
At 70, subroutine TH8I is executed, and acceleration correction of ignition timing data Tig and energization timing data Tag is performed. The execution of this acceleration correction will be explained using the flowcharts of subroutines TH8I and TH8IA shown in FIGS. 9 and 10.

先ず、ステップ671において、前回ステージがステー
ジ4であったか否かを判別する。この判別結果が肯定(
Yes)であれば、前記ステップ603で検出されステ
ップ611で記憶されているT s (n)値はステー
ジ4においてクランク軸がクランク角度90’回転する
のに要する時間として求めたことになるから、Ts(n
)値を2で割った値をT1値とする(ステップ672)
。一方、ステップ671の判別結果が否定(NO)であ
れば前回ステージで読み取ったT s (n)値を、そ
のままT□値とする(ステップ673)。次いで、ステ
ップ674で前々回ステージがステージ4であったか否
かを判別する。この判別結果が背定(Yes)であれば
、上記と同様にして、前々回1ステージのTs(n−1
)値として読み取られた値がステージ4においてクラン
ク軸がクランク角度90″回転するに要する時間として
求めたことになり、Ts(nt)値を2で割った値をT
2としくステップ675)、一方、ステップ674の判
別結果が否定(No)であれば、前々回ステージで読み
取ったTs(n−□)値をそのままT2値とする(ステ
ップ676)、そしてつぎのステップ677で、クラン
ク軸が前回ステージ及び前々回ステージにおいて夫々ク
ランク角度45@相当分回転するのに要した時間T工及
びT2の両者の差分ΔTsを求め、ステップ678でこ
の差分の絶対値1ΔTslが所定値ΔMe値より大であ
るか否かを判別する。この判別結果が(NO)であれば
、エンジンの加減速は大きくないものと判断し、直接ス
テップ680に進み、肯定(Yes)であれば前回ステ
ージでのエンジンの加速又は減速が大きく、今回ステー
ジでも引続きエンジンの加速又は減速が大きいであろう
と判定して前記T1値にステップ677で求めた差分Δ
Tを加算した値を今回ステージで予測される最新のT1
値としくステップ679)、ステップ680に進む。ス
テップ680では上述のようにして求めたT1値をTs
H!:w値とし、またT s NtS値からクランク軸
がクランク角度1°相当分回転するのに要する時間ΔT
NI!eを求める(ステップ681)。    。
First, in step 671, it is determined whether the previous stage was stage 4 or not. This discrimination result is positive (
If Yes), the T s (n) value detected in step 603 and stored in step 611 is determined as the time required for the crankshaft to rotate by 90' crank angle in stage 4. Ts(n
) value divided by 2 is set as the T1 value (step 672)
. On the other hand, if the determination result in step 671 is negative (NO), the T s (n) value read in the previous stage is directly used as the T□ value (step 673). Next, in step 674, it is determined whether the stage before the previous one was stage 4 or not. If this determination result is positive (Yes), Ts(n-1
) The value read as the value was determined as the time required for the crankshaft to rotate through a crank angle of 90'' in stage 4, and the value obtained by dividing the Ts (nt) value by 2 is T.
On the other hand, if the determination result in step 674 is negative (No), the Ts(n-□) value read in the stage before the previous stage is used as the T2 value (step 676), and the next step is performed. In step 677, the difference ΔTs between the times T and T2 required for the crankshaft to rotate by a crank angle of 45 @ in the previous stage and the stage before the previous stage is determined, and in step 678, the absolute value 1ΔTsl of this difference is set to a predetermined value. It is determined whether the value is greater than the ΔMe value. If the result of this determination is (NO), it is determined that the acceleration or deceleration of the engine is not large, and the process proceeds directly to step 680. If the result is affirmative (Yes), the acceleration or deceleration of the engine in the previous stage is large, and the current stage However, it is determined that the acceleration or deceleration of the engine will continue to be large, and the difference Δ calculated in step 677 is added to the T1 value.
The value obtained by adding T is the latest T1 predicted at this stage.
If the value is set (step 679), the process proceeds to step 680. In step 680, the T1 value obtained as described above is
H! : W value, and time ΔT required for the crankshaft to rotate by the equivalent of 1° crank angle from the T s NtS value.
NI! Find e (step 681). .

次いで、ステップ682において第10図のサブルーチ
ンTH8IAが実行される。このサブルーチンTH8I
Aは上述のT SN!+ w値及びΔT NEIJ値に
基づく点火時期データTig及び通電時期データTcg
の再計算を実行するもので、まず、ステップ690で点
火時期データTigについて再計算を行う。この計算は
前記式(4)のΔτ値として上述のΔTNI:IJ値が
適用されて最新のTig値が求められる6次いで、ステ
ップ691で前記フラグN3に1が設定されているか否
かを判別する。
Next, in step 682, subroutine TH8IA of FIG. 10 is executed. This subroutine TH8I
A is TSN! + Ignition timing data Tig and energization timing data Tcg based on w value and ΔT NEIJ value
First, in step 690, the ignition timing data Tig is recalculated. In this calculation, the above-mentioned ΔTNI:IJ value is applied as the Δτ value in the above formula (4) to obtain the latest Tig value. 6 Next, in step 691, it is determined whether the flag N3 is set to 1. .

この判別結果が否定(NO)であれば、即ち、エンジン
回転数Neが所定回転数N13Ac、以下であれば上記
再計算により求めた点火時期データTig及び上述のT
 s HHW値に基づいてさらに通電時期データTcg
についてメインルーチンで使用した前記式(5)により
再計算を実行する。ステップ691の判別結果が肯定(
Yes)であれば、通電時期データTcgについての再
計算は行わずに本プログラムを終了し、第7図のステッ
プ615に進む。
If this determination result is negative (NO), that is, if the engine rotation speed Ne is equal to or less than the predetermined rotation speed N13Ac, then the ignition timing data Tig obtained by the above recalculation and the above T
s Further energization timing data Tcg based on the HHW value
Recalculation is performed using the above equation (5) used in the main routine. The determination result in step 691 is affirmative (
If Yes), the program is ended without recalculating the energization timing data Tcg, and the process proceeds to step 615 in FIG.

ステップ615ではステージ位置を表わす変数STGの
値を値1だけインクリメントする。この変数値STGは
上述の通りステージ番号に対応するので、その値がイン
クリメントした結果、値8になると値Oに更新される。
In step 615, the value of the variable STG representing the stage position is incremented by 1. This variable value STG corresponds to the stage number as described above, so when the value is incremented and reaches the value 8, it is updated to the value O.

そして、この変数値STGは次回ループにおけるステー
ジ判別に使用される。
This variable value STG is then used to determine the stage in the next loop.

次いで、ステップ616においてRAM32にストアさ
れている点火時期データTigを点火カウンタ回路36
のレジスタに設定する。より具体的には、CPU22は
ステップ616において。
Next, in step 616, the ignition timing data Tig stored in the RAM 32 is sent to the ignition counter circuit 36.
Set in the register. More specifically, the CPU 22 at step 616.

下記のようにして点火時期データTigをカウンタ回路
36の第1及び第2のレジスタ38a、38b(第3図
)にストアする。先ず、CPU22はデータバス43上
に点火時期データT i gの上位8ビツトデータを送
出した後、ラッチ信号AHを前段レジスタ42に印加す
る(第11図)。すると前段レジスタ42はラッチ信号
AHの印加のタイミングでTig値データの上位8ビツ
トデータをストアする0次いで、CPU22はデータバ
ス43上にTig値データの下位8(ットデータを送出
し、その後、ラッチ信号ALを第1及び第2レジスタ3
8a、38bに同時に印加する(第11図)。
Ignition timing data Tig is stored in the first and second registers 38a and 38b (FIG. 3) of the counter circuit 36 as described below. First, the CPU 22 sends the upper 8 bits of the ignition timing data Tig onto the data bus 43, and then applies the latch signal AH to the pre-stage register 42 (FIG. 11). Then, the pre-stage register 42 stores the upper 8 bits of the Tig value data at the timing of applying the latch signal AH.Next, the CPU 22 sends the lower 8 bits of the Tig value data onto the data bus 43, and then outputs the latch signal AH. AL to the first and second register 3
8a and 38b at the same time (FIG. 11).

このラッチ信号ALの印加により、第2レジスタ38a
にはデータバス43上に送出されたT i g値データ
の下位8ビツトデータが、第2レジスタ38bには前段
レジスタ42にストアされている上位8ビツトデータが
夫々同時にストアされることになる。従って、前段レジ
スタを介することなく第2レジスタにTig値の上位8
ビツトデータを、次いで第2レジスタに下位8ビツトデ
ータを順次ストアする場合には、Tig値データのスト
アには少なくともラッチ信号AHの送出時点からラッチ
信号ALの送出時点までの機関t’ (第11図)が必
要であったが上述のように前段レジスタ42を介するよ
うにすれば、ラッチ信号ALの送出と実質的に同時にT
ig値データがレジスタにストアされることになり(第
11図のストア時間t)、データストア中のコンパレー
タの誤作動を問題にする必要がない、これにより、Ti
g値データを書換えるに要する時間t′がカウンタの計
数値とレジスタに既にストアされているTig値データ
との差で表わされる時間より小さいことを確認するため
のプログラムやカウンタが不用となる。
By applying this latch signal AL, the second register 38a
The lower 8 bits of the T i g value data sent out on the data bus 43 are simultaneously stored in the second register 38b, and the higher 8 bits stored in the previous register 42 are stored simultaneously. Therefore, the upper eight Tig values are stored in the second register without going through the previous stage register.
When storing the bit data and then the lower 8 bit data in the second register, the storage of the Tig value data requires at least the engine t' (11th ) was required, but if it is made to go through the pre-stage register 42 as described above, T
ig value data is stored in the register (store time t in Figure 11), and there is no need to worry about comparator malfunction during data storage.
There is no need for a program or a counter to confirm that the time t' required to rewrite the g value data is smaller than the time represented by the difference between the count value of the counter and the Tig value data already stored in the register.

上述のステップ616において、点火レジスタにはエン
ジン回転数Neが高回転領域にないかぎり前記ステップ
650のサブルーチンTH8Tの実行により加速補正さ
れた最新の点火時期データTigが設定されることにな
る。又、上述の説明から明らかなようにステップ616
は本割込演算プログラムINTの実行により必ず実行さ
れるのでTigデータはその都度書換えられること゛に
なる(第2図(g))。
In step 616 described above, the latest ignition timing data Tig, which has been accelerated and corrected by executing subroutine TH8T in step 650, is set in the ignition register unless the engine speed Ne is in the high rotation range. Also, as is clear from the above description, step 616
is always executed by executing the interrupt calculation program INT, so the Tig data is rewritten each time (FIG. 2(g)).

次に第7図のステップ618が実行される。このステッ
プは上述のサブルーチンNECHKで設定されたフラグ
値CUTFLGが値1に等しいか否かを判別し、判別結
果が否定(No)であるときは後述するステップ619
以下が実行されるが、肯定(Yes)の場合、即ち、エ
ンジンの過回転状態が検出されればステップ619以下
を実行せず本プログラムを終了する。従って、後者の場
合には後述するように点火コイルへの通電が実行されな
くなり、これにより混合気の点火が阻止されエンジンの
過回転が防止される。
Step 618 of FIG. 7 is then executed. This step determines whether the flag value CUTFLG set in the above-mentioned subroutine NECHK is equal to the value 1. If the determination result is negative (No), step 619 will be described later.
The following steps are executed, but if the answer is Yes, that is, if an overspeed state of the engine is detected, the program ends without executing steps 619 and subsequent steps. Therefore, in the latter case, as will be described later, the ignition coil is no longer energized, thereby preventing ignition of the air-fuel mixture and preventing the engine from overspeeding.

前記ステップ619では今回検出ステージが通電ステー
ジであるか否かを判別する。この判別結果が否定(No
)であれば、後述するように通電レジスタ34aの設定
値と、前記ステップ607でスタートさせた通電カウン
タ34の計数値Tとの比較を実行せずにこの割込処理を
終了させる。
In step 619, it is determined whether the current detection stage is an energized stage. This determination result is negative (No
), this interrupt processing is terminated without comparing the set value of the energization register 34a and the count value T of the energization counter 34 started in step 607, as will be described later.

従って、前記ステップ60で通電カウンタ34をスター
トさせたものの、CPU22は今回ステージにおいて、
第1の出力回路24aに通電信号を出力することはない
。ステップ619の判別結果が肯定(Yes)であれば
ステップ620に進み。
Therefore, although the energization counter 34 was started in step 60, the CPU 22 at this stage
No energization signal is output to the first output circuit 24a. If the determination result in step 619 is affirmative (Yes), the process advances to step 620.

RAM32にストアされている通電時期データTcgを
通電レジスタ34aに設定する。そして、ステップ62
1に進み、CPU22を再割込処理受付は可能状態にす
ると共にCPU22の0N−PORT端子22aに「0
」レベルを出力する。第7図に示す割込処理において以
上に述べた処理は欠くことが出来ない処理であるのでス
テップ620に至るプログラム処理中に次の割込要求が
到来しても受は付けることが出来ないが、ステップ62
0以降では受は付は可能となる。もっとも、ステップ6
01からステップ620に至るプログラムの実行はエン
ジンが前記第8図のステップ652及び654において
エンジン回転数Neの過回転判別に用いた判別回転数近
傍で運転されているときであっても次のPCIパルスが
発生する前に完了させることが出来るので通常ステップ
601乃至620の各処理実行中に再割込処理の要求が
生じることはない。又、CPU22の0N−PORT端
子22aに現われる「0」レベルは前述した通り通電信
号線40aを介して第1の出力回路24aを待機状態と
し、この待機状態により第1の出力回路24aは後述す
る0N−PORT端子22aの出力の「0」レベルから
「1」レベルへの反転時に点火コイル45への通電を開
始させることができる。
The energization timing data Tcg stored in the RAM 32 is set in the energization register 34a. And step 62
1, sets the CPU 22 to a state in which it is possible to accept re-interrupt processing, and also writes "0" to the 0N-PORT terminal 22a of the CPU 22.
” outputs the level. Since the above-described processing is essential in the interrupt processing shown in FIG. 7, even if the next interrupt request arrives during the program processing leading to step 620, it cannot be accepted. , step 62
After 0, receiving is possible. However, step 6
The execution of the program from step 01 to step 620 is executed at the next PCI even when the engine is being operated near the determination engine speed used to determine the overspeed of the engine speed Ne in steps 652 and 654 of FIG. Since the processing can be completed before a pulse is generated, a request for re-interruption processing does not normally occur during the execution of each processing in steps 601 to 620. Further, the "0" level appearing at the 0N-PORT terminal 22a of the CPU 22 puts the first output circuit 24a into a standby state via the energization signal line 40a as described above, and this standby state causes the first output circuit 24a to become in a standby state as described later. Energization to the ignition coil 45 can be started when the output of the ON-PORT terminal 22a is reversed from the "0" level to the "1" level.

次いで、ステップ622に進み、通電カウンタ34の計
数値Tと、当該通電時期データT c gとを比較し、
計数値Tが通電時期データTcgに一致する迄該ステッ
プ622が繰返し実行される。
Next, the process proceeds to step 622, where the count value T of the energization counter 34 is compared with the energization timing data Tcg,
Step 622 is repeatedly executed until the count value T matches the energization timing data Tcg.

即ち、通電ステージにおいては通電時期Tagが通過す
る迄は再割込処理の要求がない限り、当該割込処理プロ
グラムINTが終了することがない。
That is, in the energization stage, until the energization time Tag passes, the interrupt processing program INT will not end unless there is a request for re-interrupt processing.

計数値Tが通電時期データT c gを超えたとき、C
PU22は前記0N−PORT端子22aに「1」レベ
ルを出力し、前述した通り第1の出力回路24aに通電
信号を送出して第1の点火コイル45の1次コイルに通
電を開始させ(ステップ623、第2図の(h)及び(
i))、本プログラムを終了する。
When the count value T exceeds the energization timing data T c g, C
The PU 22 outputs the "1" level to the 0N-PORT terminal 22a, and as described above, sends an energization signal to the first output circuit 24a to start energizing the primary coil of the first ignition coil 45 (step 623, (h) and ( in Figure 2)
i)), exit this program.

以上はステップ621以降に再割込要求がなかった場合
の制御手順であるが、エンジンの急加速により回転数が
急激に上昇してステップ622の処理実行中に次のP 
C1,パルスが発生した場合には実行中の処理を中断し
てステップ601が再び実行される。このとき、ステッ
プ601の判別結果が肯定(Yss)となり、ステップ
62に進み。
The above is the control procedure when there is no re-interrupt request after step 621, but the engine speed suddenly increases due to sudden acceleration and the next P
If a C1 pulse is generated, the process being executed is interrupted and step 601 is executed again. At this time, the determination result in step 601 becomes affirmative (Yss), and the process proceeds to step 62.

スタックポイントの再セットが行われる。即ち、今回の
再割込要求が生じたとき前記スタックレジスタには再割
込要求が生じた時点のスタックポイント、即ち、ステッ
プ75におけるスタックポイントがストアされることに
なるが、このスタックポイントは中断させた前記処理を
再び実行することがなくストアしておく必要がないので
消去されると共に、前回割込処理要求が生じたときにス
トアしたスタックポイントを前記スタックレジスタの最
新のスタックにストアする。従って、今回の再割込によ
り実行される割込処理プログラムINTのすべての処理
が終了したとき、前回の割込処理の要求が生じた第4図
のメインプログラムのスタックポイントに戻されること
になる。
The stack point will be reset. That is, when the current re-interrupt request occurs, the stack point at the time when the re-interrupt request occurs, that is, the stack point at step 75, is stored in the stack register, but this stack point is The process is erased because it will not be executed again and there is no need to store it, and the stack point stored when the previous interrupt process request occurred is stored in the latest stack of the stack register. Therefore, when all the processing of the interrupt processing program INT executed by this re-interrupt is completed, the process will be returned to the stack point of the main program in Fig. 4 where the previous interrupt processing request occurred. .

次いで、前記ステップ606に進み、CPU22の0N
−PORT端子22aに「1」レベルを出力し、第1の
出力回路24aに第1点火コイル45へ通電を開始させ
る、このとき、前記設定された通電時期T c gは未
だ到来していないがステップ606の実行により第1点
火コイル45へ強制的に通電が開始させることになる。
Next, the process proceeds to step 606, where the CPU 22 is set to 0N.
- Outputs "1" level to the PORT terminal 22a and causes the first output circuit 24a to start energizing the first ignition coil 45. At this time, although the set energization timing Tcg has not yet arrived. By executing step 606, the first ignition coil 45 is forced to start being energized.

前記ステップ605でCPU22からの起動信号により
、第1カウンタ39aのクロック端子GKにクロック信
号の印加が開始されると、第1カウンタ39aはクロッ
ク信号の入力の毎に計数値を1宛インクリメントし、第
1カウンタ39aの最上位ビット出力端子の出力が[1
」レベルから「0」レベルに反転するタイミングで第2
カウンタ39bの計数値は1宛インクリメントされる。
When application of a clock signal to the clock terminal GK of the first counter 39a is started in step 605 by the start signal from the CPU 22, the first counter 39a increments the count value by 1 every time a clock signal is input. The output of the most significant bit output terminal of the first counter 39a is [1
” level to the “0” level, the second
The count value of the counter 39b is incremented by one.

第1コンパレータ41aは第1カウンタ39aの計数値
と第2レジスタ38bにストアされているT i g値
の下位8ビツトデータとを比較し9両者が一致したとき
第2コンパレータ41bに一致信号を出力する。一方、
第2コンパレータ41bは第2カウンタの計数値と第2
レジスタ38bにストアされているTig値の上位8ビ
ツトデータとを比較し、両者が一致し、且つ第1コンパ
レータ41aからの前記一致信号が入力したとき後述す
る出力タイミングの異常検出を行なった後通電停止信号
、即ち点火信号を第1の出力回路24aに供給し、第1
の点火コイル45における1次コイルへの通電を停止さ
せる。これにより2次コイルに高電圧が発生し点火プラ
グ10aに火花放電が生じ点火が行なわれる。
The first comparator 41a compares the counted value of the first counter 39a with the lower 8 bit data of the T i g value stored in the second register 38b, and when the two match, outputs a match signal to the second comparator 41b. do. on the other hand,
The second comparator 41b outputs the counted value of the second counter and the second
The upper 8 bits of the Tig value stored in the register 38b are compared, and when they match and the matching signal from the first comparator 41a is input, the power is turned on after detecting an abnormality in the output timing, which will be described later. A stop signal, ie, an ignition signal, is supplied to the first output circuit 24a, and the first
energization to the primary coil of the ignition coil 45 is stopped. As a result, a high voltage is generated in the secondary coil, spark discharge occurs in the ignition plug 10a, and ignition is performed.

第2コンパレータ41bからの前記点火信号は第1及び
第2カウンタ39a、39b、並びにR−Sフリップフ
ロップ50の各リセット端子Rにも供給され、第1及び
第2カウンタ39a、39bの各計数値を零にリセット
すると共にフリップフロップ50のQ出力端子の出力を
「0」レベルに反転させ、AND回路49を閉成状態に
する。これにより第1及び第2カウンタ39a、39b
は次回の起動信号が入力する迄計数を停止する。
The ignition signal from the second comparator 41b is also supplied to the first and second counters 39a, 39b and each reset terminal R of the R-S flip-flop 50, and the respective count values of the first and second counters 39a, 39b are supplied. is reset to zero, and the output of the Q output terminal of the flip-flop 50 is inverted to the "0" level, thereby closing the AND circuit 49. As a result, the first and second counters 39a, 39b
stops counting until the next start signal is input.

尚、上述の実施例では点火時期データTigを計数する
カウンタ回路に本発明を適用したが通電時期データTa
g用に外部カラタン回路を設け。
In the above embodiment, the present invention is applied to a counter circuit that counts the ignition timing data Tig, but the energization timing data Ta
An external Karatan circuit is provided for g.

これに本発明を適用してもよい。又、第3図に示すレジ
スタは8ビツトデータを処理する2つのレジスタ38a
、38b及び前段レジスタ42を用いたが種々の変形例
が考えられ、例えば、後段レジスタとして4ビツトデー
タを処理する4つのレジスタ及び前段レジスタとして4
ビツトデータを処理する3つのレジスタを用いてもよく
、この場合、3つの前段レジスタに最上位から夫々4ビ
ット宛分割したデータを順次ストアした後、最下位4ビ
ツトデータを後段レジスタの1つにストアすると同じタ
イミングで3つの前段レジスタにストアしておいた各デ
ータを残りの各後段レジスタにストアされる。
The present invention may be applied to this. The registers shown in FIG. 3 are two registers 38a that process 8-bit data.
, 38b and the front-stage register 42, various modifications are possible. For example, four registers that process 4-bit data are used as the rear-stage registers, and four registers are used as the front-stage registers.
Three registers for processing bit data may be used. In this case, data divided into four bits from the most significant bit is sequentially stored in the three first-stage registers, and then the lowest four-bit data is stored in one of the second-stage registers. When the data is stored, the data stored in the three previous-stage registers are stored in the remaining subsequent-stage registers at the same timing.

次に、第14図及び第15図を参照して、第1図のIl
o −LSI21に内蔵される前記フェールセーフ回路
3oの構成及びその作用について説明する。
Next, with reference to FIGS. 14 and 15, Il of FIG.
o - The configuration and operation of the fail-safe circuit 3o built in the LSI 21 will be explained.

尚、この実施例では点火プラグ10a及び10bの2系
統の点火制御が実行されるが、点火プラグ10aの一方
の系統の出力タイミングがフェールセーフ回路30によ
り監視され、これにより制御装置の出力タイミングの異
常が検出される。
In this embodiment, ignition control is performed for two systems of spark plugs 10a and 10b, but the output timing of one system of spark plugs 10a is monitored by the failsafe circuit 30, thereby controlling the output timing of the control device. An anomaly is detected.

制御装置の出力タイミングが異常であるか否かは、1動
作周期、即ち連続した点火から点火までの1点火周期の
間に発生する第1のパルス信号PC1,云い換えれば第
1のフリップフロップ回路27から出力されるパルス信
号PA(以下このフェールセーフ回路の説明では「PA
パルス」という)の個数を例えば今回、前回、前々回の
点火時の3回に亘って計数し、これら王者の計数値が所
定の数値関係にあるとき、異常であると判定する。そし
て異常と判定した場合はリセット信号を出力してCPU
22をリセットして点火の実行を禁止する。異常である
か否かを判定する場合のPAパルス計数値の組合わせ例
を第3表により説明する。
Whether or not the output timing of the control device is abnormal is determined by the first pulse signal PC1 generated during one operation cycle, that is, one ignition cycle from consecutive ignition to ignition, in other words, the first flip-flop circuit. Pulse signal PA output from 27 (hereinafter referred to as "PA
The number of ignition pulses (referred to as "pulses") is counted three times, for example, during the current ignition, the previous ignition, and the time before the previous ignition, and when these champion count values have a predetermined numerical relationship, it is determined that there is an abnormality. If it is determined that there is an abnormality, a reset signal is output and the CPU
22 to prohibit execution of ignition. Examples of combinations of PA pulse count values when determining whether or not there is an abnormality will be explained with reference to Table 3.

まず異常がないと判定する場合から説明する。First, the case where it is determined that there is no abnormality will be explained.

前記第1図に示したように回転円板15の円周上には、
その1周に7個のリアクタ16a〜16gが配設されて
おり、連続した点火から点火までの1点火周期の間に第
1のパルス信号PCI、云い換えればPAパルスは出力
タイミングが正常で且つエンジンが一定回転数を保持し
ている限り7個発生する筈である。したがって第3表第
4欄に示すようにPAパルス計数値が毎回検出時に“7
”であれば出力タイミングに異常がないと判定する。
As shown in FIG. 1, on the circumference of the rotating disk 15,
Seven reactors 16a to 16g are arranged in one circuit, and during one ignition cycle from consecutive ignition to ignition, the first pulse signal PCI, in other words, the PA pulse, has a normal output timing and As long as the engine maintains a constant rotational speed, seven should occur. Therefore, as shown in column 4 of Table 3, the PA pulse count value is “7” at every detection.
”, it is determined that there is no abnormality in the output timing.

PAパルス計数値が6”の場合は、エンジン回転数が高
回転領域にあるとき、または急加速時においてPAパル
スの信号発生感覚が狭くなり、PAパルスの立上りと、
後述のカウンタリセット信号とが非同期のために重なる
場合が生じ、この重なったPAパルスはカウントされな
い、したがって第3表第3欄に示すようにPAパルス数
パ6”が連続して計数された場合は、PAパルス計数値
″7”の場合と同様に、出力タイミングに異常がないと
判定する。
When the PA pulse count value is 6", the PA pulse signal generation sensation becomes narrower when the engine speed is in the high rotation range or during sudden acceleration, and the rise of the PA pulse and
There are cases where the PA pulses overlap with the counter reset signal described later due to non-synchronization, and these overlapping PA pulses are not counted. Therefore, as shown in the third column of Table 3, when the PA pulse number 6'' is counted continuously. As in the case of the PA pulse count value "7", it is determined that there is no abnormality in the output timing.

次いで異常と判定される場合を説明する。Next, a case where it is determined to be abnormal will be explained.

PAパルス計数値が“4″以下の場合は、例えばエンジ
ン回転数Neが極低回転数のような場合で、パルサ17
に誘起されるべきパルス信号の一部が欠落している異常
状態が考えられる。このようなP^パルス計数値が“4
″以下の場合は、第3表第1欄に示すように出力タイミ
ングは直ちに異常と判定する。
When the PA pulse count value is "4" or less, for example, when the engine speed Ne is extremely low, the pulsar 17
There may be an abnormal state in which a part of the pulse signal that should be induced is missing. If such a P^pulse count value is “4”
``In the following cases, the output timing is immediately determined to be abnormal as shown in the first column of Table 3.

PAパルス計数値が11571以下の場合は、いま例え
ばエンジン回転数Neが所定の低回転数以下で点火時期
が当初TDCの位置にいわゆる角度ロックされており、
次の点火時期までの間にエンジン回転数値Naが上昇し
て、当該法の点火時期がステージ6にあるとする。この
ように角度ロック状態から、エンジン回転数Neが上昇
した制御切換時にはPAパルス計数値が“5”という状
態が1回発生することはあり得る。しかしこのPJ士数
値“5”という状態が連続して2回生ずることはあり得
ないと考え、第3表第2欄に示すようにPAパルスの計
数値が1′5”であることを連続して2回検出した場合
は、制御装置の出力タイミングは異常であると判定する
If the PA pulse count value is 11571 or less, for example, the engine speed Ne is currently below a predetermined low speed and the ignition timing is initially locked at the TDC position.
Assume that the engine speed value Na increases until the next ignition timing, and the ignition timing of the method is at stage 6. In this manner, a state in which the PA pulse count value is "5" may occur once during control switching when the engine speed Ne increases from the angle lock state. However, considering that it is impossible for this state of PJ pulse count "5" to occur twice in a row, it is assumed that the count value of PA pulses is 1'5'' continuously as shown in the second column of Table 3. If it is detected twice, it is determined that the output timing of the control device is abnormal.

PAパルス計数値が11811場合は2点火時期が当初
ステージ番号で6のクランク角度位置にあり、この状態
からエンジン回転数Neが急減して、次がステージ番号
で7で、さらにその次がステージ1の位置に移行したと
すると、このPAパルス数118 t#は2回連続して
計数されることがあり得る。
When the PA pulse count value is 11811, the 2nd ignition timing is initially at the crank angle position of stage number 6, and from this state the engine speed Ne suddenly decreases, the next stage number is 7, and the next stage is stage 1. , the number of PA pulses 118 t# may be counted twice in a row.

しかし、3回連続して計数されることはあり得ないと考
える。このため第3表第5欄に示すようにPAパルス計
数値が“8”であることを連続して3回検出した場合は
、制御装置の出力タイミングは異常であると判定する。
However, I think it is impossible for the number to be counted three times in a row. Therefore, when it is detected that the PA pulse count value is "8" three times in a row as shown in the fifth column of Table 3, it is determined that the output timing of the control device is abnormal.

PAパルス計数値がa 9#場合は、点火時期が当初ス
テージ番号で6のクランク角度位置にあり、この状態か
らエンジン回転数Neが急激に低下して次回の点火は、
ステージ1の位置に移行したとする。このような場合に
PAパルス計数値“9”の状態が1回はあり得る。しか
しPAパルス計数値119 ##が2回連続して計数さ
れることはあり得ないと考え、第3表第6欄に示すよう
にPAパルス計数値がtz 9 tpであることを連続
して2回検出した場合は、出力タイミングは異常である
と判定する。
When the PA pulse count value is a9#, the ignition timing is initially at the crank angle position of stage number 6, and from this state the engine speed Ne rapidly decreases and the next ignition is
Assume that the state has moved to the stage 1 position. In such a case, there may be a state where the PA pulse count value is "9" at least once. However, considering that it is impossible for the PA pulse count value 119 ## to be counted twice in a row, we confirmed that the PA pulse count value is tz 9 tp as shown in column 6 of Table 3. If it is detected twice, it is determined that the output timing is abnormal.

PAパルス計数値がパ10”以上の場合は、入力段回路
が高圧ノイズ等をパルス信号として誤って取入れてしま
ったような場合の異常時等に有効な判別となる。このよ
うなPAパルス計数値が“10”以上の場合は、第3表
第7欄に示すようにクランク角度位置検出系は直ちに異
常と判定する。
If the PA pulse count value is 10" or more, it is an effective determination in case of an abnormality such as when the input stage circuit has mistakenly taken in high voltage noise etc. as a pulse signal.Such a PA pulse meter If the numerical value is "10" or more, the crank angle position detection system immediately determines that there is an abnormality, as shown in column 7 of Table 3.

次に第14図により上述のような判定処理を実行するフ
ェールセーフ回路30の内部構成を詳述する。フェール
セーフ回路30には、PAパルスのカウント機能、PA
パルス計数値を記憶するラッチ機能、3個のPAパルス
計数値が所定の関係にあるか否かを判定する判定機能、
並びに異常と判定したときのリセット信号の出力機能等
の各機能を有する回路が備えられている。即ち、まず符
号83はPAパルスカウント用のバイナリカウンタで、
その入力端子83aにはPAパルスの入力線路84が接
続されている。符号85は点火用信号の入力端子、86
は後述するST倍信号入力端子で、これらの点火用信号
及びST倍信号ORゲート87に入力され、このORゲ
ート87の出力端子がカウンタ83のリセット端子Rに
接続されている。そしてカウンタ83の4個の出力端子
01〜04に、前回PAパルス計数値ラッチ用の第1の
レジスタ88、及び前々回PAパルス計数値ラッチ用の
第2のレジスタ88が順次接続されている。第1及び第
2のレジスタ88.89はDフリップフロップのQ出力
端子及びQ出力端子を組とする8個の出力端子を有し、
図には符号Q1〜Q4の出力端子のみが記載されてζ1
〜C4の符号の記載が省略しである。符号01〜02間
の端子がQlに、符号Q2とQ3の間の端子がる2等に
夫々相当する。符号90.91は後述する前回PAパル
スラッチ用倍信号び前々回PAパルスラッチ用信号の各
入力端子で、入力端子90は2人力ORゲート82を介
して第1のレジスタのクロック端子GKに接続され、入
力端子91は他の2人力ORゲート81を介して第2の
レジスタ89のクロック端子CKに接続されている。上
記の両2人力ORゲート82.81の他方の入力端子に
は、イグニッションスイッチ(図示せず)の投入直後に
発生するパワーオンリセット信号FOR1後述するリセ
ット信号RESET、及び前記CPU22内で実行され
るプログラムのいわゆる暴走時にこれをクリアするため
のウォッチドッグタイマクリア信号W/T CLRの各
信号の入力端子が3人力ORゲート80を介して接続さ
れている。
Next, with reference to FIG. 14, the internal configuration of the fail-safe circuit 30 that executes the above-described determination process will be explained in detail. The fail-safe circuit 30 includes a PA pulse counting function, a PA pulse counting function, and a PA pulse counting function.
A latch function that stores the pulse count value, a determination function that determines whether the three PA pulse count values are in a predetermined relationship,
Additionally, a circuit is provided which has various functions such as a function of outputting a reset signal when an abnormality is determined. That is, first, reference numeral 83 is a binary counter for counting PA pulses,
A PA pulse input line 84 is connected to the input terminal 83a. Reference numeral 85 is an input terminal for an ignition signal, 86
is an ST multiplied signal input terminal to be described later, which is inputted to the ignition signal and the ST multiplied signal OR gate 87, and the output terminal of this OR gate 87 is connected to the reset terminal R of the counter 83. A first register 88 for latching the previous PA pulse count value and a second register 88 for latching the previous PA pulse count value are connected in sequence to the four output terminals 01 to 04 of the counter 83. The first and second registers 88 and 89 have eight output terminals including a Q output terminal and a Q output terminal of a D flip-flop,
In the figure, only the output terminals with symbols Q1 to Q4 are shown.
The description of the symbols ˜C4 is omitted. The terminal between symbols 01 and 02 corresponds to Ql, and the terminal between symbols Q2 and Q3 corresponds to 2, etc., respectively. Reference numerals 90 and 91 are respective input terminals for a doubled signal for the previous PA pulse latch and a signal for the two previous PA pulse latches, which will be described later.The input terminal 90 is connected to the clock terminal GK of the first register via the two-man OR gate 82 , the input terminal 91 is connected to the clock terminal CK of the second register 89 via another two-way OR gate 81. The other input terminals of the above-mentioned two-manpower OR gates 82 and 81 are supplied with a power-on reset signal FOR1 generated immediately after the ignition switch (not shown) is turned on, and a reset signal RESET, which will be described later, and which is executed within the CPU 22. The input terminals of each signal of a watchdog timer clear signal W/TCLR for clearing the program when it runs out of control are connected through a three-way OR gate 80.

ここで、PAパルス計数値に対するカウンタ83、及び
第1、第2のレジスタ88.89の各出力端子に現れる
2進数の出力値を表で示すと第4表のとおりである。
Here, the binary output values appearing at each output terminal of the counter 83 and the first and second registers 88 and 89 for the PA pulse count value are shown in Table 4.

第4表 そして、PAパルス計数値に応じて各出力端子に上表の
ような2進数値を出力するカウンタ83、第1、第2の
両レジスタに対し、これらの出力値から前記第3表に従
って出力タイミングが異常であるか否かを判別するため
に次のような各回路が配設されている。
Table 4 Then, from these output values, for the counter 83 and both the first and second registers, which output binary values as shown in the above table to each output terminal according to the PA pulse count value, Accordingly, the following circuits are provided to determine whether or not the output timing is abnormal.

まずカウンタ83の出力端子01〜04に、PAパルス
“4″以下を異常と判別するためのバイナリのコンパレ
ータ53が接続されている。コンパレータ53における
AO〜A3は夫々カウンタ83の各出力端子01〜04
に接続されたPAパルス計数値の入力端子、BO−83
は比較設定値Ig 41′設定端子で、B2端子のみ「
1」で他の端子にはrOJが与えられて4”に相当する
2進数のrolooJが設定される。入力端子AO〜A
3からのPAパルス数の入力値が設定値パ4”以下のと
き出力端子53aから「1」信号が出力される。
First, a binary comparator 53 is connected to the output terminals 01 to 04 of the counter 83 to determine that a PA pulse of "4" or less is abnormal. AO to A3 in the comparator 53 are output terminals 01 to 04 of the counter 83, respectively.
Input terminal for PA pulse count value connected to BO-83
is the comparison setting value Ig41' setting terminal, and only the B2 terminal is
1'', rOJ is given to the other terminals, and a binary number rolooJ corresponding to 4'' is set.Input terminals AO to A
When the input value of the number of PA pulses from 3 is less than the set value PA4'', a signal ``1'' is output from the output terminal 53a.

次いでPAパルス計数値が5”異常の場合、即ち前記第
3表の第2欄〜第7jIIの場合は、クランク角度位置
検出系が異常であるか否かを判別するために、カウンタ
83及び第1、第2のレジスタの各2進数出力値(前記
第4表)をデコードするANDN−ゲート群これら各A
NDゲートの出力を比較する論理回路等が次のように配
設されている。
Next, if the PA pulse count value is 5" abnormal, that is, in the case of columns 2 to 7jII of Table 3, the counter 83 and the 1. A group of ANDN-gates for decoding each binary output value of the second register (Table 4 above).
Logic circuits for comparing the outputs of the ND gates are arranged as follows.

まずカウンタ83、及び第1のレジスタ88から出力さ
れるPAパルス計数値tt 5 +tに相当する2進数
出力値(第4表)をデコードして「1」を出力する第1
、第2の4人力ANDゲート54.55が配設されてい
る。第1のANDゲート54の4入力端子には、カウン
タ83の(01)及び(0°3)出力端子が直接、カウ
ンタ83の(02)及び(04)出力端子が夫々インバ
ータ58b及び58dを介して接続され、第2のAND
ゲート55の4入力端子には、第1のレジスタ88にお
けるζl、Q2゜Q3.Q4の各出力端子が接続されて
いる。
First, the first register decodes the binary output value (Table 4) corresponding to the PA pulse count value tt 5 +t output from the counter 83 and the first register 88 and outputs "1".
, a second four-man AND gate 54,55 is provided. The (01) and (0°3) output terminals of the counter 83 are connected directly to the four input terminals of the first AND gate 54, and the (02) and (04) output terminals of the counter 83 are connected to the four input terminals through inverters 58b and 58d, respectively. and the second AND
The four input terminals of the gate 55 are supplied with ζl, Q2°Q3 . Each output terminal of Q4 is connected.

符号56.57は、PAパルス計数値1′91jに相当
する2進数値(第4表)をデコードして「1」を出力す
る第3、第4の4人力ANDゲートである。第3のAN
Dゲート56の4入力端子のうちの2個の入力端子には
カウンタ83の(01)及び(o4)出力端子が夫々接
続され他の2個の入力端子にはカウンタ83の(02)
及び(03)出力端子が夫々インバータ58b及び58
cを介して接続されている。また第4のANDゲート5
7の4入力端子には、第2のレジスタ46におけるQl
、Q2゜Q3.Q4の各出力端子が接続されている。
Reference numerals 56 and 57 denote third and fourth four-man-powered AND gates that decode the binary value (Table 4) corresponding to the PA pulse count value 1'91j and output "1". 3rd AN
Two of the four input terminals of the D gate 56 are connected to the (01) and (o4) output terminals of the counter 83, respectively, and the other two input terminals are connected to the (02) output terminal of the counter 83.
and (03) output terminals are inverters 58b and 58, respectively.
connected via c. Also, the fourth AND gate 5
Ql in the second register 46 is input to the 4 input terminals of 7.
,Q2゜Q3. Each output terminal of Q4 is connected.

符号59.60.61は、PAパルス計数値“6″に相
当する2進数値をデコードして「1」を出力する第5、
第6及び第7の4人力ANDゲートである。第5のAN
Dゲート59の4入力端子のうちの2個の入力端子には
カウンタ83の(02)及び(03)出力端子が夫々接
続され、他の2個の入力端子にはカウンタ83の(ol
)及び(04)出力端子が夫々インバータ58a及び5
8dを介して接続されている。また第6のANDゲート
60の4入力端子には、第1のレジスタ88におけるQ
l、Q2.Q3.?:i4の各出力端子が接続されてい
る。さらに第7のアンドゲート61の4入力端子には、
第2のレジスタ89におけるζ1.Q2゜Q3.ζ4の
各出力端子が接続されている。
The code 59.60.61 is a fifth unit that decodes the binary value corresponding to the PA pulse count value “6” and outputs “1”.
These are the sixth and seventh four-person AND gates. Fifth AN
Two of the four input terminals of the D gate 59 are connected to the (02) and (03) output terminals of the counter 83, respectively, and the other two input terminals are connected to the (ol) output terminals of the counter 83.
) and (04) output terminals are inverters 58a and 5, respectively.
8d. Further, the 4 input terminals of the sixth AND gate 60 are connected to the Q in the first register 88.
l, Q2. Q3. ? : Each output terminal of i4 is connected. Furthermore, the 4 input terminals of the seventh AND gate 61 have
ζ1 in second register 89. Q2゜Q3. Each output terminal of ζ4 is connected.

符号63.64.65は、PAパルス計数値it 8 
nに相当する2進数値をデコードして「1」を出力する
第9.第10及び第11の4人力ANDゲートである。
The code 63.64.65 is the PA pulse count value it 8
9. Decodes the binary value corresponding to n and outputs "1". These are the 10th and 11th four-person AND gates.

第9ANDゲートの4入力端子のうち1個の入力端子に
はカウンタ83の(04)端子が接続され他の3個の入
力端子には、カウンタ83の(01)(02)(03)
出力端子が夫々インバータ58a、58b及び58cを
介して接続されている。また第10ANDゲート64の
4入力端子には第1のレジスタ88におけるQl、ζ2
.ζ3.Q4の各出力接続されている。さらに第11の
ANDゲート65の4入力端子には第2のレジスタ89
におけるQl、Q2.Φ3.ζ4の各出力端子が接続さ
れている。第10及び第11の両ANDゲート64.6
5の各出力端子は、第12の2人力ANDゲート66入
力端子に夫々接続されて、面出力はさらにアンドがとら
れている。
The (04) terminal of the counter 83 is connected to one input terminal among the four input terminals of the ninth AND gate, and the (01) (02) (03) terminal of the counter 83 is connected to the other three input terminals.
The output terminals are connected via inverters 58a, 58b and 58c, respectively. In addition, the four input terminals of the tenth AND gate 64 are connected to the Ql and ζ2 in the first register 88.
.. ζ3. Each output of Q4 is connected. Furthermore, a second register 89 is connected to the four input terminals of the eleventh AND gate 65.
Ql, Q2. Φ3. Each output terminal of ζ4 is connected. Both the tenth and eleventh AND gates 64.6
Each of the output terminals of 5 is connected to the input terminal of a 12th two-man power AND gate 66, and the surface outputs are further ANDed.

符号67.68の第13及び第14の3人力ANDゲー
トは、これら2つのANDゲートによリカウンタ83が
計数するPAパルス計数値が#10#jから11″′に
変化する直前に「1」を出力するデコーダを構成する。
The 13th and 14th three-man-powered AND gates 67 and 68 set "1" immediately before the PA pulse count counted by the counter 83 changes from #10#j to 11'' by these two AND gates. Configure a decoder that outputs .

第13のANDゲート67の3入力端子のうちの1個の
入力端子にはカウンタ83の(02)端子が接続され、
他の2個の入力端子には、カウンタ83の(01)(0
3)端子が夫々インバータ58a、58cを介して接続
されている。また第14のANDゲート68の3個の入
力端子には、PAパルスの入力線路84、第13AND
ゲート67の出力端子、及びカウンタ83の(o4)出
力端子が夫々接続されている。カウンタ83のPAパル
ス計数値が“10”のとき、第14のANDゲート68
の入力線路84に接続される端子以外の入力端子には「
1」が入力されており該第14のANDゲート68は待
機状態にある。
The (02) terminal of the counter 83 is connected to one of the three input terminals of the thirteenth AND gate 67,
The other two input terminals are (01) (0) of the counter 83.
3) The terminals are connected via inverters 58a and 58c, respectively. Furthermore, the three input terminals of the fourteenth AND gate 68 include a PA pulse input line 84 and a thirteenth AND gate.
The output terminal of the gate 67 and the (o4) output terminal of the counter 83 are connected to each other. When the PA pulse count value of the counter 83 is “10”, the fourteenth AND gate 68
The input terminals other than the terminals connected to the input line 84 of
1'' is input, and the fourteenth AND gate 68 is in a standby state.

第11個目のパルスが入力線路84に発生したとき、第
14のANDゲート68はカウンタ83の出力端子(0
1)に「1」が現れる迄の短期間「1」を出力する。
When the eleventh pulse occurs on the input line 84, the fourteenth AND gate 68 is connected to the output terminal (0) of the counter 83.
1) Outputs "1" for a short period of time until "1" appears.

そしてさらに上記の各ANDゲートの出力に基づいて今
回、前回及び前々回のPAパルスの計数値の間に前記第
3表に示す数値関係が成立したとき「1」を出力する第
1及び第2の論理回路69゜70が配設されている。第
1の論理回路69はインバータ58eも含めてアンド・
オアの論理機能を有し、これと同様に第2の論理回路7
0はインバータ58fも含めてアンド・オアの論理機能
を有している。そして第1の論理回路69における69
a及び69bの各入力端子には、第2及び第1のAND
ゲート55.54の出力端子が夫々接続され、69c及
び69dの各入力端子には口笛4及び第3のANDゲー
ト57.56の出力端子が夫々接続されている。
Furthermore, based on the output of each of the above AND gates, the first and second Logic circuits 69.70 are arranged. The first logic circuit 69 includes the inverter 58e and
It has an OR logic function, and similarly the second logic circuit 7
0, including the inverter 58f, has an AND-OR logic function. and 69 in the first logic circuit 69
Each input terminal of a and 69b has a second and a first AND
The output terminals of gates 55 and 54 are connected, respectively, and the output terminals of whistle 4 and third AND gate 57 and 56 are connected to input terminals of 69c and 69d, respectively.

一方、第2の論理回路70における符号70aの入力端
子は、本実施例では接地され「0」が入力されており、
入力端子78bに第5のANDゲート59の出力端子が
接続されている。また符号70c及び70dの各入力端
子には、第12及び第9のANDゲートの出力端子が夫
々接続されている。
On the other hand, the input terminal 70a in the second logic circuit 70 is grounded and receives "0" in this embodiment.
The output terminal of the fifth AND gate 59 is connected to the input terminal 78b. Further, the output terminals of the twelfth and ninth AND gates are connected to the input terminals 70c and 70d, respectively.

そしてさらに上記第1.第2の論理回路69゜70の後
段に、リセット信号出力回路を構成する3人力ORゲー
ト71.フリップフロップ回路72及び2人力ORゲー
ト76等が順次配設されている。ORゲート71の3個
の入力端子には、コンパレータ53の出力端子53aと
、各インバータ58e、58fを介して第1、第2の論
理回路69゜70の両出力線路とが夫々接続されている
And furthermore, the above 1. After the second logic circuit 69.70, a three-man OR gate 71. which constitutes a reset signal output circuit. A flip-flop circuit 72, a two-man OR gate 76, etc. are sequentially arranged. The three input terminals of the OR gate 71 are connected to the output terminal 53a of the comparator 53 and both output lines of the first and second logic circuits 69 and 70 via inverters 58e and 58f, respectively. .

また、ORゲート71の出力端子は、フリップフロップ
回路72におけるD入力端子に接続され、このフリップ
フロップ回路72のQ出力端子が2人力ORゲート76
における一方の入力端子に接続されている。ORゲート
76における他方の入力端子には、第14のANDゲー
ト68の出力端子が接続されている。そしてこのORゲ
ート76からCPU22リセツト用のリセット信号出力
端子が導出されている。符号73はフェール検出のタイ
ミング信号となる後述する前回OUT信号の入力端子、
74は後述するST倍信号入力端子でこれら両入力端子
73.74が、第15の2人力ANDゲート75の両入
力端子に夫々接続されこの第15のANDゲート75の
出力端子がフリップフロップ回路72のクロック端子G
Kに接続されている。
Further, the output terminal of the OR gate 71 is connected to the D input terminal of the flip-flop circuit 72, and the Q output terminal of this flip-flop circuit 72 is connected to the two-way OR gate 76.
is connected to one input terminal of the terminal. The output terminal of the fourteenth AND gate 68 is connected to the other input terminal of the OR gate 76. A reset signal output terminal for resetting the CPU 22 is led out from this OR gate 76. Reference numeral 73 is an input terminal for a previous OUT signal, which will be described later, and serves as a timing signal for fail detection;
Reference numeral 74 denotes an ST multiplier signal input terminal, which will be described later. Both input terminals 73 and 74 are connected to both input terminals of a fifteenth two-man power AND gate 75, and an output terminal of the fifteenth AND gate 75 is connected to the flip-flop circuit 72. clock terminal G
connected to K.

符号78はフェールリセット回路で、フリップフロップ
回路72のQ出力端子からの出力信号、云い換えれば異
常と判定されたときのリセット信号を導入し、このリセ
ット信号の入力時からさらにクロックパルスを所定個数
カウントした所定時間の経過後に、3人力ORゲート7
9を介して当該フリップフロップ回路72にリセット用
信号を送出するものである。ORゲート79における3
入力端子のうちの他の2個の入力端子には、前記と同様
のパワーオンリセット信号FOR及びウォッチドッグタ
イマクリア信号W/T CLRの各信号の入力端子が接
続されている。
Reference numeral 78 denotes a fail reset circuit, which introduces an output signal from the Q output terminal of the flip-flop circuit 72, in other words, a reset signal when an abnormality is determined, and further outputs a predetermined number of clock pulses from the time when this reset signal is input. After the predetermined counted time has elapsed, the three-man OR gate 7
9 to send a reset signal to the flip-flop circuit 72. 3 in OR gate 79
The other two input terminals of the input terminals are connected to the input terminals of the power-on reset signal FOR and the watchdog timer clear signal W/TCLR similar to those described above.

次いで、上述のフェールセーフ回路30の作用を説明す
る。
Next, the operation of the fail-safe circuit 30 described above will be explained.

エンジンのイグニッションスイッチ(図示せず)を開成
(オン)すると、第1図のECU2に給電が開始される
が、この給電の開始直後に後述する「1」レベルにある
ST倍信号出力されるとともに給電電圧が所定レベルに
達したときにパワーオンリセット信号FORが1パルス
だけ出力される。
When the engine's ignition switch (not shown) is opened (turned on), power is started to be supplied to the ECU 2 shown in Fig. 1. Immediately after the start of this power supply, an ST multiplication signal at the "1" level, which will be described later, is output. When the power supply voltage reaches a predetermined level, only one pulse of the power-on reset signal FOR is output.

このST信号86はカウンタ83を初期リセットし、F
OR信号は、第1、第2レジスタ88及び89の各CK
端子に入力してPAパルス計数値の読込みを指令するが
カウンタ83は前述のとおりg〒倍信号よりリセットさ
れたばかりであるから第1及び第2のレジスタ88及び
89の各内容は0にクリアされたことに等しい、FOR
信号はフリップフロップ回路72に供給されてこれをリ
セットする。
This ST signal 86 initializes the counter 83 and
The OR signal is applied to each CK of the first and second registers 88 and 89.
A command is input to the terminal to read the PA pulse count value, but since the counter 83 has just been reset by the g times signal as described above, the contents of the first and second registers 88 and 89 are cleared to 0. is equivalent to FOR
The signal is provided to flip-flop circuit 72 to reset it.

次いで、上述の供給によりCPU22の初期化例えばレ
ジスタのクリア、変数値の初期値の設定等が完了すると
CPU22は「1」レベルのST倍信号出力するがCP
U22の初期化が完了する迄はST倍信号rOJ レベ
ルにあり、ST倍信号反転信号である蒼信号は上述の通
り「1」レベルにある。初期化完了後のST倍信号より
2人力ANDゲート75は動作待機状態に保持される。
Next, when initialization of the CPU 22, such as clearing registers and setting initial values of variables, is completed by the above-mentioned supply, the CPU 22 outputs an ST times signal of the "1" level, but the CPU 22
Until the initialization of U22 is completed, the ST double signal rOJ is at the level, and the blue signal, which is the inverted ST double signal, is at the "1" level as described above. The two-man power AND gate 75 is held in an operation standby state by the ST multiplication signal after initialization is completed.

この状態において入力路線84にPAパルスが現れると
カウンタ83はPAパルス発生数の計数を開始し、PA
パルスが入力する前記第4表に示す通りに出力端子(0
1)〜(04)の出力レベルを変化させる。前述した点
火カウンタ(図示省略)の計数値が点火時期データTi
gに達する毎にIlo・LSI21の図示しない同期パ
ルス発生回路が4つの同期パルス信号、即ち前OUT信
号(第15図(e))、前々PAパルス計数値ラッチ用
信号(以下「前々PAラッチ信号」という同図(f))
、前PAパルス計数値ラッチ用信号(以下「前PAラリ
チ信号」という(同1fW(g)) 、及びOUT信号
(同図(h))をこの順序で順次発生する。前OUT信
号は待機状態にあるANDゲート75の他方の端子に入
力し、この入力タイミングでフリップフロップ回路72
のクロック端子CKに「1」レベルが供給される。フリ
ップフロップ回路72はそのクロック端子CKに「1」
レベルが入力されている間り端子入力が「0」レベルで
ある場合、即ち、前記第3表に例示される今回、前回及
び前々回に検出されたPAパルス計数値が異常を表わす
所定の数値関係にない場合、Q出力端子はrOJ レベ
ルに保持される。次いで、前々PAラッチ信号がOR回
路81を介して第2レジスタ89のクロック端子CKに
供給される。この前々PAラッチ信号(同図(f))が
第2のレジスタ89のクロック端子GKに入力するタイ
ミングで、第1のレジスタ88にラッチされていた前回
PAパルス計数値が第2のレジスタに前々回PAパルス
計数値としてラッチされる(同図(k))、次いで、前
PAクラッチ号(同図(g))が第1のレジスタ88の
クロック端子CKに入力し、このタイミングで、カウン
タ83で計数された今回PAパルス計数値が第1のレジ
スタ83に前回PAパルス計数値としてラッチされる(
同図(j))。この第1のレジスタ83へのラッチ作用
の直後に続いて発生されるOUT信号(同図(k))に
よりカウンタ83がリセットされ1次の新たな今回PA
パルス数の計数を開始させる一方、このOUT信号によ
り出力回路24aしこ前記点火信号を出力させる。
In this state, when a PA pulse appears on the input line 84, the counter 83 starts counting the number of PA pulses generated, and
The output terminal (0
1) to (04) are changed. The count value of the ignition counter (not shown) mentioned above is the ignition timing data Ti.
g, the synchronization pulse generation circuit (not shown) of the Ilo LSI 21 generates four synchronization pulse signals, namely the previous OUT signal (FIG. 15(e)), the two-previous PA pulse count latch signal (hereinafter referred to as the "previous PA The same figure (f) called “Latch signal”)
, the previous PA pulse count latch signal (hereinafter referred to as the "previous PA rarity signal" (1fW(g)), and the OUT signal ((h) in the same figure) are generated in this order in this order.The previous OUT signal is in a standby state. The flip-flop circuit 72 is input to the other terminal of the AND gate 75 at this input timing.
A "1" level is supplied to the clock terminal CK of the . The flip-flop circuit 72 sets "1" to its clock terminal CK.
When the terminal input is at the "0" level while the level is being input, that is, the PA pulse count values detected this time, last time, and the time before the time shown in Table 3 above are in a predetermined numerical relationship indicating an abnormality. If not, the Q output terminal is held at the rOJ level. Next, the pre-previous PA latch signal is supplied to the clock terminal CK of the second register 89 via the OR circuit 81. At the timing when this two-day-before PA latch signal ((f) in the same figure) is input to the clock terminal GK of the second register 89, the previous PA pulse count value latched in the first register 88 is transferred to the second register. The previous PA pulse count value ((k) in the same figure) is latched as the PA pulse count value from the previous time, and then the previous PA clutch number ((g) in the same figure) is input to the clock terminal CK of the first register 88, and at this timing, the counter 83 The current PA pulse count value counted in is latched in the first register 83 as the previous PA pulse count value (
Same figure (j)). The counter 83 is reset by the OUT signal ((k) in the same figure) generated immediately after the latching action on the first register 83, and the new current PA of the primary
While counting the number of pulses is started, this OUT signal causes the output circuit 24a to output the ignition signal.

一方、今回、前回、前々回の各PAパルスの計数値間に
前記第3表の第1.第2、及び第5、第6、第7の各欄
に示す数値関係が成立したときは、例えば第3表第1欄
のPAパルス計数値がR4It以下の場合は、コンパレ
ータ53の出力端子53aから「1」信号が出力され、
これがORゲート71を介してフリップフロップ回路7
2のD入力端子にrl」が導かれる。また第3表第2欄
のPAパルス計数値115 Teが2回連続して検出さ
れたときは、第1及び第2のANDゲート54.55か
らともに「1」が出力され、これが第1の論理回路69
の69a、69bの面入力端子に入力して当該論理回路
69からはインバータ58eを経て「1」が出力され、
ORゲート71を介してフリップフロップ回路72のD
入力端子に「1」が導かれる。上記の第3表、第1及び
第2欄以外の第5、第6、第7の各欄の数値関係成立の
場合も上記と同様にしてフリップフロップ回路72のD
入力端子には「1」が導かれる。従って前OUT信号(
第15図(e))の発生タイミングでフリップフロップ
回路72のクロック端子CKに「1」信号が入力し、Q
出力端子からは異常判定信号たる「1」信号が出力され
、この「1」信号に基づいてORゲート76からリセッ
ト信号が出力され、CPU22がリセットされる。
On the other hand, between the count values of each PA pulse of this time, last time, and the time before last, 1. When the numerical relationships shown in the second, fifth, sixth, and seventh columns are established, for example, when the PA pulse count value in the first column of Table 3 is equal to or less than R4It, the output terminal 53a of the comparator 53 A “1” signal is output from
This is connected to the flip-flop circuit 7 via the OR gate 71.
rl'' is led to the D input terminal of 2. Furthermore, when the PA pulse count value 115 Te in the second column of Table 3 is detected twice in a row, "1" is output from both the first and second AND gates 54.55, and this logic circuit 69
input to the surface input terminals 69a and 69b, and the logic circuit 69 outputs "1" via the inverter 58e.
D of the flip-flop circuit 72 via the OR gate 71
"1" is led to the input terminal. In the case where the numerical relationships in the fifth, sixth, and seventh columns other than the first and second columns of Table 3 above are established, the D of the flip-flop circuit 72 is
"1" is led to the input terminal. Therefore, the previous OUT signal (
A "1" signal is input to the clock terminal CK of the flip-flop circuit 72 at the timing shown in FIG. 15(e)), and the Q
A "1" signal, which is an abnormality determination signal, is output from the output terminal, and based on this "1" signal, a reset signal is output from the OR gate 76, and the CPU 22 is reset.

このようにして今回PAパルス計数値及び今回以前に計
数したPAパルス計数値に基づいて、制御装置の出力タ
イミングが異常であるか否かが誤診することなく正確に
検出される。
In this way, it is accurately detected whether the output timing of the control device is abnormal or not based on the current PA pulse count value and the PA pulse count values counted before this time without misdiagnosis.

異常と判定されてCPU22がRESET信号によりリ
セットされるとCPU22はST倍信号rOJに、ST
倍信号「1」に夫々反転させ、この反転されたST倍信
号よりイグニッションスイッチ開成(オン)直後と同様
にカウンタ83がリセットされる。RESET信号はO
Rゲート80を介して第1及び第2のレジスタ88.8
9の各CK端子↓こも供給されこれらのレジスタの内容
も零にリセットされる。この様にCPU22等がリセッ
トされた後、所定時間が経過すると7工−ルリセツト回
路78からのフェールリセット信号によりフリップフロ
ップ回路72がリセットされ、出力端子77からのリセ
ット信号が消失してCPU22のリセットが解除され、
「1」レベルに回復したR−Sフリップフロップ5oの
各リセット端子Rにも供給され、第1及び第2カウンタ
39a、39bの各計数値を零にリセットすると共にフ
リップフロップ50のQ出力端子の出力を「OJレベル
に反転させ、AND回路49を開成状態にする。これに
より第1及び第2カウンタ39a、39bは次回の起動
信号が入力する迄計数を停止する。
When it is determined that there is an abnormality and the CPU 22 is reset by the RESET signal, the CPU 22 outputs the ST double signal rOJ.
The double signal is inverted to "1", and the counter 83 is reset by the inverted ST double signal in the same manner as immediately after the ignition switch is opened (on). RESET signal is O
First and second registers 88.8 via R gate 80
Each of the 9 CK terminals ↓ is also supplied, and the contents of these registers are also reset to zero. After the CPU 22 etc. are reset in this way, when a predetermined period of time has elapsed, the flip-flop circuit 72 is reset by a fail reset signal from the 7-factor reset circuit 78, and the reset signal from the output terminal 77 disappears, resetting the CPU 22. is released,
It is also supplied to each reset terminal R of the R-S flip-flop 5o which has recovered to the "1" level, and resets each count value of the first and second counters 39a, 39b to zero, and also outputs the Q output terminal of the flip-flop 50. The output is inverted to OJ level and the AND circuit 49 is opened. As a result, the first and second counters 39a and 39b stop counting until the next activation signal is input.

尚、他の気筒側の点火プラグ10bに対する通電時期及
び点火時期の処理についても通電及び点火のステージが
異なるだけで、その他は上記とほぼ同様であるので説明
を省略する。
Note that the processing of the energization timing and ignition timing for the ignition plug 10b on the other cylinder side is also substantially the same as above, except for the energization and ignition stages, so a description thereof will be omitted.

第12図は第7図のステップ630で実行される1本発
明に係る固定点火制御サブルーチンCRNKのフローチ
ャートを示し、前記ステップ608でエンジンが固定点
火制御すべき状態にあると判別されると、第12図のス
テップ631で、先ず。
FIG. 12 shows a flowchart of a fixed ignition control subroutine CRNK according to the present invention executed in step 630 of FIG. First, in step 631 of FIG.

今回ループのステージがステージ7であるか否かを判別
し、その答が背定(Yes)であれば第1の点火コイル
45への通電を開始しくステップ632)、否定(No
)であれば、次ステツプ633に進む。
It is determined whether the stage of the loop this time is stage 7, and if the answer is positive (Yes), energization to the first ignition coil 45 is started (Step 632), negative (No).
), the process advances to the next step 633.

ステップ633では今回ステージがステージ1であるか
否かを判別する。その答が肯定(Yes)であれば、第
1の点火コイル45への通電を停止して第1の点火プラ
グ10aを点火させる(ステップ634)、即ち、第1
3図(f)に示すように、ステージ7を示す第1のパル
ス信号PCI7(第13図(a))を検出すると同時に
第1の点火コイル45への通電を開始し、ステージ1を
示す第1のパルス信号PCIIを検出すると同時に通電
を停止して第1の点火プラグloaを点火する。
In step 633, it is determined whether the current stage is stage 1 or not. If the answer is affirmative (Yes), the energization to the first ignition coil 45 is stopped and the first spark plug 10a is ignited (step 634), that is, the first
As shown in FIG. 3(f), at the same time as the first pulse signal PCI7 (FIG. 13(a)) indicating stage 7 is detected, energization to the first ignition coil 45 is started, and the first pulse signal PCI7 indicating stage 1 is detected. At the same time as the first pulse signal PCII is detected, the current supply is stopped and the first spark plug loa is ignited.

一方、ステップ633の答が否定(NO)であれば次ス
テツプ635に進む。
On the other hand, if the answer to step 633 is negative (NO), the process advances to the next step 635.

ステップ635では今回ループのステージがステージ4
であるか否かを判別し、その答が肯定(Yes)であれ
ば、第13図(g)に示すように、第2の点火コイル4
6に通電する(ステップ636)と共に、前記第7図の
ステップ603で再スタートさせたMeカウンタ47の
計時値T v eが所定値(例えば50 m5ec)に
到達したか否かを判別する。
In step 635, the current stage of the loop is stage 4.
If the answer is affirmative (Yes), as shown in FIG. 13(g), the second ignition coil 4
6 (step 636), and it is determined whether the time value T ve of the Me counter 47 restarted in step 603 of FIG. 7 has reached a predetermined value (for example, 50 m5ec).

その答が否定(No)の場合、即ち、所定値に未だ到達
していなければステップ638に進んで、第2のフリッ
プフロップ回路28のQ出力(第13図(d))がtl
 Hljレベルか否かを判別し、11 Huレベルであ
れば、即ち、ステージ4における第2の点火プラグ10
b側の気筒の実質的に上死点位置で発生する第2のパル
ス信号PC2M (第13図(b))が検出されると第
2の点火コイル46への通電を停止して第2の点火プラ
グ10bを点火する(ステップ639)、このように本
実施例では本発明が気筒の上死点間隔が180°離隔し
たエンジンに適用されたためPC2MパルスはPCl4
パルス発生後、略45°クランク角度回転した位置で発
生しているが上死点間隔が上述の実施例と異なるエンジ
ンでは第2のパルサ18を当該エンジンの上死点間隔に
合せて第1のパルサ17から離間した位置に配設するこ
とにより、第2の点火プラグに対応する気筒の上死点位
置と実質的に同じ任意のクランク角度位置で点火させる
ことができる。
If the answer is negative (No), that is, if the predetermined value has not yet been reached, the process proceeds to step 638, where the Q output (FIG. 13(d)) of the second flip-flop circuit 28 is
It is determined whether the spark plug is at the Hlj level or not, and if it is at the 11 Hu level, that is, the second spark plug 10 at stage 4
When the second pulse signal PC2M (Fig. 13(b)) generated substantially at the top dead center position of the cylinder on the b side is detected, the energization to the second ignition coil 46 is stopped and the second The spark plug 10b is ignited (step 639). In this embodiment, since the present invention is applied to an engine in which the top dead centers of the cylinders are separated by 180°, the PC2M pulse is
After the pulse is generated, the pulse is generated at a position rotated by a crank angle of approximately 45 degrees, but in an engine in which the top dead center interval is different from that of the above-mentioned embodiment, the second pulsar 18 is set to match the top dead center interval of the engine. By arranging it at a position apart from the pulsar 17, it is possible to ignite at any crank angle position that is substantially the same as the top dead center position of the cylinder corresponding to the second spark plug.

一方、ステップ638の答が否定(No)の場合、即ち
、前記パルス信号PC2Mを未だ検出していなければ、
ステップ637に戻り、パルス信号PC2Mを検出する
迄、第2の点火コイル46への通電を継続しつつ待機す
る。しかし、この待機期間中に前記Meカウンタ47の
計時値が所定値(50m5ec)に到達した場合(ステ
ップ637の答が肯定(Yes))にはステップ640
に進み。
On the other hand, if the answer to step 638 is negative (No), that is, if the pulse signal PC2M has not been detected yet,
The process returns to step 637 and waits while continuing to energize the second ignition coil 46 until the pulse signal PC2M is detected. However, if the time value of the Me counter 47 reaches a predetermined value (50 m5ec) during this waiting period (the answer to step 637 is affirmative (Yes)), step 640
Proceed to.

点火コイルの2次コイルの電流を徐々に低下させること
により点火プラグの点火を禁止する点火禁止処理を第2
の点火コイル46に行なう。この理由は、ステージ4を
示す第2のパルス信号PC24(第13図(b))を検
出してから前記パルス信号PC2Mを検出する迄の時間
は、エンジン回転数が2QOrpm以上である限り、高
々37 、5m5ecである。従って、50m5ec経
過しても第2のフリップフロップ回路28のQ出力がI
IL”レベルであるということは、パルス信号PC2M
の検出をし損じたことを示す。そして、このし損じは、
エンジン回転数Neが低下し、パルス信号PC2Mの出
力レベルが低くなると発生し易くなる。そこで、ステー
ジ5を示す第2のパルス信号PC25(第13図(b)
)、又はそれ以後に発生する第2のパルス信号PC2を
検出することによる、好ましくないエンジンの作動行程
での点火を防止するため、前記点火禁止処理を行なうの
である。
The second ignition prohibition process inhibits the ignition of the spark plug by gradually decreasing the current in the secondary coil of the ignition coil.
ignition coil 46. The reason for this is that the time from detecting the second pulse signal PC24 (FIG. 13(b)) indicating stage 4 to detecting the pulse signal PC2M is at most 37, 5m5ec. Therefore, even after 50m5ec has elapsed, the Q output of the second flip-flop circuit 28 is
IL" level means that the pulse signal PC2M
Indicates that detection has failed. And this loss is
This occurs more easily when the engine speed Ne decreases and the output level of the pulse signal PC2M decreases. Therefore, a second pulse signal PC25 indicating stage 5 (FIG. 13(b)
) or the second pulse signal PC2 generated thereafter, the ignition prohibition process is performed in order to prevent ignition during an undesirable engine operation stroke.

ここで再び、前述のステップ631乃至634で実行さ
れる第1の点火プラグ側の固定点火制御の場合に戻ると
、前記パルス信号PC17の割込処理で実行されるステ
ップ632の第1の点火コイル45の通電開始後に、パ
ルス信号PCIIの検出をし損じた場合、パルス信号P
C12、又はそれ以後に発生する第1のパルス信号PC
Iで実行される割込処理により前記第7図のステップ6
03で計測されるTsi−1値に基づきエンジン回転数
Neが所定回転数NIGSTO(200rpm)以下で
あると第7図のステップ608の答が否定(No)とな
り、前記ステップ609に進んで前述の点火禁止処理が
行なわれ、この場合にも不良点火によるエンジンへの悪
影響が防止される。
Returning again to the case of the fixed ignition control on the first spark plug side executed in steps 631 to 634, the first ignition coil in step 632 is executed in response to the interrupt processing of the pulse signal PC17. If the pulse signal PCII is not detected after the start of energization of 45, the pulse signal P
The first pulse signal PC generated at or after C12
Step 6 in FIG.
If the engine speed Ne is below the predetermined speed NIGSTO (200 rpm) based on the Tsi-1 value measured in step 03, the answer to step 608 in FIG. Ignition prohibition processing is performed, and in this case as well, adverse effects on the engine due to faulty ignition are prevented.

尚、第7図のステップ610でCRFLG値が値1に等
しいと判別されたとき、同図ステップ605でスタート
させた点火カウンタはその作動を停止又は出力信号を無
効にする処理が実行される。
Incidentally, when it is determined in step 610 of FIG. 7 that the CRFLG value is equal to the value 1, the ignition counter started in step 605 of FIG. 7 is subjected to a process of stopping its operation or invalidating its output signal.

ST倍信号よりANDゲート75は再び待機状態にされ
る。また点火コイル21.22に通電後、異常と判定さ
れたときは、図示省略のソフトオフ手段により点火コイ
ル21.22の1次側電流を徐々に低下させ2次側の誘
起起電力が小にされて、点火プラグ10a、LObの火
花放電が防止される。
The AND gate 75 is put into a standby state again by the ST multiplication signal. In addition, if it is determined that there is an abnormality after the ignition coil 21.22 is energized, the primary current of the ignition coil 21.22 is gradually reduced by a soft-off means (not shown) to reduce the induced electromotive force on the secondary side. This prevents spark discharge from the spark plugs 10a and LOb.

なお前記第3表の異常状態と見做すPAパルス計数値の
組合せ関係は、任意に設定することができる。
Note that the combination of PA pulse count values that are considered to be abnormal conditions in Table 3 can be set arbitrarily.

(発明の効果) 以上詳述したように本発明の内燃エンジンの点火時期制
御方法に依れば、第1及び第2の位置検出手段を実質的
に点火順序が前後する気筒の各上死点間のクランク角度
に対応する角度だけ離隔して配設し、前記第1の位置検
出手段が所定角度位置を検出したとき、前記−気筒の一
方の点火を実行する一方、前記第1の位置検出手段が前
記欠落部の直前の角度位置を検出した後に前記第2の位
置検出手段が角度位置を検出したとき前記気筒の他方の
点火を実行するようにしたので各気筒共所定のクランク
角度位置で点火を実行させることが出来、しかも、第1
及び第2の位置検出手段の配設位置を上死点間隔だけ離
隔させるだけで種々の型式のエンジンに適用できるとい
う効果を奏する。
(Effects of the Invention) As described in detail above, according to the ignition timing control method for an internal combustion engine of the present invention, the first and second position detection means are set to substantially the top dead center of each cylinder whose ignition order is one after the other. are arranged to be separated by an angle corresponding to a crank angle between the cylinders, and when the first position detecting means detects a predetermined angular position, ignition of one of the cylinders is executed, while the first position detecting means When the second position detecting means detects the angular position after the means detects the angular position immediately before the missing portion, the other cylinder is ignited, so that each cylinder is at a predetermined crank angular position. It is possible to carry out ignition, and the first
Moreover, the present invention can be applied to various types of engines simply by separating the second position detection means by the distance between top dead centers.

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

第1図は本発明が実施される内燃エンジンの電子点火制
御装置の全体構成図、第2図は第1及び第2位置検出手
段(パルサ)によって検出されるパルス信号PCI、P
C2の発生タイミング、点火コイルへの通電時期、通電
停止時期(点火時期)等を示すタイミングチャート、第
3図は第1図の点火用カウンタ回路36.37の内部構
成を詳伝する回路図、第4図は第1図の中央演算装置(
CPU)で実行される点火制御のメインフローチャート
、第5図は第4図のステップ100で実行される、内燃
エンジンの始動開始直後のクランク角度基準位置検出手
順を示すフローチャート、第6図は第4図のステップ2
00の処理内容を詳伝するフローチャート、第7図は所
定クランク角度位置の検出毎に割込実行され1通電時期
、通電停止時期(点火時期)等の制御手順を示すフロー
チャート。 第8図は第7図の割込処理プログラムIN’r”17)
ステップ650の処理内容を詳伝するフローチャート、
第9図は第7図の割込処理プログラムINTのステップ
670の処理内容を詳伝するサブルーチンTHS Iの
フローチャート、第10図は第9図のサブルーチンTH
8Iのステップ682の処理内容を詳伝するサブルーチ
ンTH3IAのフローチャート、第11図は第2図のレ
ジスタにデータがストアされるタイミングを示すタイン
グチヤード、第12図は第7図のステップ630の処理
内容を詳伝するサブルーチンCRNKのフローチャート
、第13図は固定点火制御の実行の際の点火コイルへの
通電時期、通電停止時期(点火時期)等を示すタイミン
グチャート、第14図は第1図の装置におけるフェール
セーフ回路30の一例をさらに詳細に示す回路図、第1
5図は同上フェールセーフ回路における各信号波形等を
示すタイミングチャートである。 1・・・エンジン、10a、10b・・・点火プラグ、
14・・・クランク軸、17.18・・・第1、第2の
パルサ、24・・・CPU、31・・・ROM、32・
・・RAM。
FIG. 1 is an overall configuration diagram of an electronic ignition control device for an internal combustion engine in which the present invention is implemented, and FIG. 2 shows pulse signals PCI, P detected by first and second position detection means (pulsar).
A timing chart showing the occurrence timing of C2, energization timing to the ignition coil, energization stop timing (ignition timing), etc., FIG. Figure 4 shows the central processing unit in Figure 1 (
FIG. 5 is a flowchart showing the crank angle reference position detection procedure immediately after starting the internal combustion engine, which is executed in step 100 of FIG. 4, and FIG. Step 2 in the diagram
FIG. 7 is a flowchart illustrating in detail the processing contents of No. 00, and FIG. 7 is a flowchart showing control procedures such as 1 energization timing, energization stop timing (ignition timing), etc., which are interruptedly executed every time a predetermined crank angle position is detected. Figure 8 shows the interrupt processing program IN'r''17 in Figure 7.
A flowchart detailing the processing content of step 650;
9 is a flowchart of the subroutine THS I that details the processing contents of step 670 of the interrupt processing program INT of FIG. 7, and FIG. 10 is a flowchart of the subroutine THSI of FIG. 9.
8I is a flowchart of subroutine TH3IA detailing the processing contents of step 682, FIG. 11 is a timing chart showing the timing at which data is stored in the register of FIG. 2, and FIG. 12 is a processing content of step 630 of FIG. 7. FIG. 13 is a timing chart showing the energization timing to the ignition coil, the energization stop timing (ignition timing), etc. when fixed ignition control is executed, and FIG. 14 is a flowchart of the subroutine CRNK explaining in detail A first circuit diagram showing an example of the fail-safe circuit 30 in further detail.
FIG. 5 is a timing chart showing each signal waveform, etc. in the above fail-safe circuit. 1... Engine, 10a, 10b... Spark plug,
14... Crankshaft, 17.18... First and second pulsers, 24... CPU, 31... ROM, 32...
...RAM.

Claims (1)

【特許請求の範囲】[Claims] 1、内燃エンジンの出力軸の円周上に一つの欠落部を有
して等間隔に配された複数の角度位置を異なる円周位置
にある第1及び第2の位置検出手段により検出し、前記
第1の位置検出手段が隣接する先の角度位置と後の角度
位置を検出する間に前記第2の位置検出手段が前記角度
位置を検出しないとき、前記後の角度位置を基準クラン
ク角度位置とし、該基準クランク角度位置検出後所定数
の角度位置を検出したとき点火を実行する点火時期制御
方法において、前記第1及び第2の位置検出手段を点火
順序が前後する2つの気筒の各上死点間のクランク角度
に対応する角度だけ離間して配設し、前記第1の位置検
出手段が所定角度位置を検出したとき、前記気筒の一方
の点火を実行する一方、前記第1の位置検出手段が前記
欠除部の直前の角度位置を検出した後に前記第2の位置
検出手段が角度位置を検出したとき前記気筒の他方の点
火を実行することを特徴とする内燃エンジンの点火時期
制御方法。
1. Detecting a plurality of angular positions arranged at equal intervals with one missing portion on the circumference of the output shaft of the internal combustion engine by first and second position detection means located at different circumferential positions, When the second position detecting means does not detect the angular position while the first position detecting means detects the adjacent previous angular position and subsequent angular position, the latter angular position is used as the reference crank angular position. In the ignition timing control method, in which ignition is executed when a predetermined number of angular positions are detected after the reference crank angular position is detected, the first and second position detection means are connected to the top of each of two cylinders whose ignition order is sequential. arranged at an angle corresponding to a crank angle between dead centers, and when the first position detection means detects a predetermined angular position, ignition of one of the cylinders is performed, while the first position is Ignition timing control for an internal combustion engine, characterized in that when the second position detecting means detects the angular position after the detecting means detects the angular position immediately before the cutout part, ignition of the other cylinder is performed. Method.
JP60205112A 1985-09-17 1985-09-17 Ignition timing control method for internal combustion engine Expired - Lifetime JPH0692783B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60205112A JPH0692783B2 (en) 1985-09-17 1985-09-17 Ignition timing control method for internal combustion engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60205112A JPH0692783B2 (en) 1985-09-17 1985-09-17 Ignition timing control method for internal combustion engine

Publications (2)

Publication Number Publication Date
JPS6263172A true JPS6263172A (en) 1987-03-19
JPH0692783B2 JPH0692783B2 (en) 1994-11-16

Family

ID=16501619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60205112A Expired - Lifetime JPH0692783B2 (en) 1985-09-17 1985-09-17 Ignition timing control method for internal combustion engine

Country Status (1)

Country Link
JP (1) JPH0692783B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7861690B2 (en) 2005-11-29 2011-01-04 Toyota Jidosha Kabushiki Kaisha Device and method for controlling internal combustion engine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5349639A (en) * 1976-10-15 1978-05-06 Nippon Denso Co Ltd Detector for rotary reference position
JPS59160070A (en) * 1983-03-02 1984-09-10 Hitachi Ltd Ignition device for v-type multi-cylinder internal- combustion engine
JPH0511562A (en) * 1991-07-04 1993-01-22 Sharp Corp Color balance adjusting device for electrophotographic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5349639A (en) * 1976-10-15 1978-05-06 Nippon Denso Co Ltd Detector for rotary reference position
JPS59160070A (en) * 1983-03-02 1984-09-10 Hitachi Ltd Ignition device for v-type multi-cylinder internal- combustion engine
JPH0511562A (en) * 1991-07-04 1993-01-22 Sharp Corp Color balance adjusting device for electrophotographic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7861690B2 (en) 2005-11-29 2011-01-04 Toyota Jidosha Kabushiki Kaisha Device and method for controlling internal combustion engine

Also Published As

Publication number Publication date
JPH0692783B2 (en) 1994-11-16

Similar Documents

Publication Publication Date Title
US4664082A (en) Method of detecting abnormality in a reference crank angle position detection system of an internal combustion engine
US4887215A (en) Method of examining operation of electronic control system for internal combustion engines
US4520781A (en) Ignition control system of internal combustion engine
JPH0238791B2 (en)
US4796208A (en) Method of detecting reference crank angle position in an internal combustion engine at the time of starting same
JPH06229311A (en) Accidental fire detecting method by crank shaft rotational fluctuation
JP4168907B2 (en) Engine control device
JPH06213058A (en) Engine controller
JPH06129298A (en) Misfire detection device of internal combustion engine
US4239024A (en) Fail-safe ignition coil dwell control system for an internal combustion engine
JPS6263172A (en) Ignition timing control for internal combustion engine
EP2667199B1 (en) Semiconductor data processing apparatus and engine control apparatus
US4907178A (en) Method for detecting a reference angular position of a rotary body
JPS6285178A (en) Control device for internal combustion engine
US4428051A (en) Electronic control apparatus for internal combustion engine
JPS6270646A (en) Control device for internal combustion engine
JP2681771B2 (en) Electronic ignition timing control method for internal combustion engine
JPS61291774A (en) Electronic ignition timing controller for internal-combustion engine
US6904543B2 (en) Electronic control having floating-point data check function
JPS61286585A (en) Electronic ignition control method for internal-combustion engine
JP2007218203A (en) Ignition failure diagnostic device, ignition failure diagnostic system and ignition failure diagnostic method
US6675772B1 (en) Method and system for controlling an internal combustion engine when such engine loses a primary crankshaft position sensor
JPS6155610B2 (en)
JPS6285174A (en) Ignition control device for internal combustion engine
JP2003065137A (en) Reverse rotation detection control device