JP3209038B2 - Ignition device for internal combustion engine - Google Patents
Ignition device for internal combustion engineInfo
- Publication number
- JP3209038B2 JP3209038B2 JP11989895A JP11989895A JP3209038B2 JP 3209038 B2 JP3209038 B2 JP 3209038B2 JP 11989895 A JP11989895 A JP 11989895A JP 11989895 A JP11989895 A JP 11989895A JP 3209038 B2 JP3209038 B2 JP 3209038B2
- Authority
- JP
- Japan
- Prior art keywords
- ignition
- counter
- count value
- signal
- bits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Electrical Control Of Ignition Timing (AREA)
- Combined Controls Of Internal Combustion Engines (AREA)
Description
【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION
【0001】[0001]
【産業上の利用分野】本発明は、マイクロコンピュータ
を用いて内燃機関の点火位置を制御する内燃機関用点火
装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an ignition device for an internal combustion engine that controls the ignition position of the internal combustion engine using a microcomputer.
【0002】[0002]
【従来の技術】一般に内燃機関用の点火装置は、点火信
号が与えられたときに点火用の高電圧を発生する点火回
路と、該点火回路に点火信号を与える時期(点火位置)
を制御する制御部とを備えていて、点火回路から得られ
る高電圧を機関の気筒に取り付けられた点火プラグに印
加することにより点火動作を行なわせるようになってい
る。2. Description of the Related Art Generally, an ignition device for an internal combustion engine has an ignition circuit for generating a high voltage for ignition when an ignition signal is given, and a timing (ignition position) for giving the ignition signal to the ignition circuit.
And a control unit for controlling the ignition timing, and applying a high voltage obtained from an ignition circuit to an ignition plug attached to a cylinder of the engine to perform an ignition operation.
【0003】近年内燃機関に対しては、排気ガスの浄
化、燃費の向上、騒音の低減、及び出力の向上等の種々
の要求がされるようになり、これらの要求に応えるため
に、マイクロコンピュータを用いて内燃機関の点火位置
を回転数等の制御条件に対して正確に制御するデジタル
式の点火装置が必要とされるようになった。In recent years, various demands have been made on internal combustion engines, such as purification of exhaust gas, improvement of fuel efficiency, reduction of noise, and improvement of output, and in order to meet these demands, a microcomputer is used. Therefore, a digital ignition device that accurately controls the ignition position of the internal combustion engine with respect to control conditions such as the number of revolutions using the control device has been required.
【0004】マイクロコンピュータを用いて点火位置を
制御する内燃機関用点火装置においては、内燃機関の極
低速時の点火位置である固定点火位置を検出するための
固定点火位置信号と該固定点火位置よりも進角した位置
に設定された基準回転角度位置を検出するための基準信
号とを少なくとも発生する信号発生装置を設けるととも
に、内燃機関の回転数を演算するためのデータを求める
回転数計測手段と、内燃機関の点火位置を計測するため
のデータを求める点火位置演算手段と、点火位置を計測
して点火信号を発生させる点火信号発生手段とをマイク
ロコンピュータにより実現して、内燃機関の点火位置を
回転数に対して制御するようにしている。In an ignition device for an internal combustion engine in which an ignition position is controlled by using a microcomputer, a fixed ignition position signal for detecting a fixed ignition position which is an ignition position at an extremely low speed of the internal combustion engine and a signal from the fixed ignition position are used. A signal generator for generating at least a reference signal for detecting a reference rotation angle position set at the advanced position, and a rotation speed measuring means for obtaining data for calculating the rotation speed of the internal combustion engine; An ignition position calculating means for obtaining data for measuring an ignition position of the internal combustion engine, and an ignition signal generating means for measuring the ignition position and generating an ignition signal are realized by a microcomputer, and the ignition position of the internal combustion engine is realized. The rotation speed is controlled.
【0005】回転数計測手段は、機関の基準回転角度位
置で基準信号が発生してから次の基準信号が発生するま
での間(機関が1回転する間)に発生する基準クロック
パルスを、マイクロコンピュータ内に設けられたカウン
タにより計数してその計数値を回転数計測用計数値とし
てRAMに記憶させる。The rotation speed measuring means generates a reference clock pulse, which is generated between the generation of a reference signal at the reference rotation angle position of the engine and the generation of the next reference signal (during one rotation of the engine), by a micro clock. The data is counted by a counter provided in the computer, and the counted value is stored in the RAM as a counted value for measuring the number of revolutions.
【0006】点火位置演算手段は、機関の回転数と点火
位置との関係を与えるマップを用いて、回転数計測用計
数値から求められた各回転数に対して点火位置を補間演
算する。この点火位置は、機関のクランク軸が基準回転
角度位置から点火位置まで回転する間に計数すべきクロ
ックパルスの数の形で演算されて、RAMの所定のアド
レスに記憶される。本明細書では、このクロックパルス
の計数値を点火用計数値と呼ぶ。The ignition position calculation means interpolates and calculates the ignition position for each rotation speed obtained from the rotation speed measurement count value using a map giving the relationship between the rotation speed of the engine and the ignition position. The ignition position is calculated in the form of the number of clock pulses to be counted while the crankshaft of the engine rotates from the reference rotation angle position to the ignition position, and is stored at a predetermined address in the RAM. In this specification, the count value of the clock pulse is referred to as an ignition count value.
【0007】点火信号発生手段は、基準信号が発生した
ときにカウンタにより点火位置計測用計数値の計数を開
始し、該カウンタが点火用計数値の計数を完了した時に
点火信号を発生させる。The ignition signal generating means starts counting the ignition position measurement count value by the counter when the reference signal is generated, and generates an ignition signal when the counter completes counting the ignition count value.
【0008】内燃機関用点火装置に対しては、小形化と
コストの低減とがきびしく求められるため、通常マイク
ロコンピュータとしては、MPU、ROM、RAM、カ
ウンタ等の構成要素を1つのチップ内に構成したいわゆ
るワンチップマイコンが用いられている。[0008] Since the miniaturization and cost reduction of an ignition device for an internal combustion engine are strictly required, components such as an MPU, a ROM, a RAM, a counter and the like are usually constructed in one chip as a microcomputer. A so-called one-chip microcomputer is used.
【0009】[0009]
【発明が解決しようとする課題】上記のような内燃機関
用点火装置において、点火位置を回転数に対して正確に
制御するためには、回転数計測用計数値と点火用計数値
とを16ビットの2進数として扱う必要がある。従来の
点火装置では、回転数計測用計数値及び点火用計数値を
それぞれ16ビットのカウンタを用いて計数していたた
め、マイクロコンピュータとして16ビットカウンタを
内蔵した高価なものを用いる必要があり、コストが高く
なるという問題があった。In the ignition device for an internal combustion engine as described above, in order to accurately control the ignition position with respect to the rotation speed, the count value for measuring the rotation speed and the count value for ignition must be 16 times. It must be treated as a binary number of bits. In the conventional igniter, the count value for measuring the number of revolutions and the count value for ignition are each counted using a 16-bit counter. Therefore, it is necessary to use an expensive microcomputer having a built-in 16-bit counter as a microcomputer. There was a problem that becomes high.
【0010】本発明の目的は安価な8ビットのカウンタ
を用いたマイクロコンピュータにより点火位置を正確に
制御することができるようにした内燃機関用点火装置を
提供することにある。It is an object of the present invention to provide an ignition device for an internal combustion engine in which an ignition position can be accurately controlled by a microcomputer using an inexpensive 8-bit counter.
【0011】[0011]
【課題を解決するための手段】本発明は、点火信号が与
えられたときに点火用の高電圧を発生する点火回路と、
マイクロコンピュータと、内燃機関の固定点火位置を検
出するための固定点火位置信号と該固定点火位置よりも
進角した位置に設定された基準回転角度位置を検出する
ための基準信号とを少くとも発生する信号発生装置とを
備えて、内燃機関が1回転する間に発生する基準クロッ
クパルスを計数して16ビットの2進数からなる回転数
計測用計数値を求める回転数計測手段と、基準回転角度
位置から内燃機関の点火位置に相当する回転角度位置ま
で機関が回転する間に計数すべきクロックパルスの数を
16ビットの2進数からなる点火用計数値として各回転
数に対して演算する点火位置演算手段と、点火用計数値
を計数して点火信号を発生させる点火信号発生手段とを
マイクロコンピュータにより実現して、内燃機関の点火
位置を回転数に対して制御する内燃機関用点火装置に係
わるものである。According to the present invention, there is provided an ignition circuit for generating a high voltage for ignition when an ignition signal is applied;
A microcomputer and at least a fixed ignition position signal for detecting a fixed ignition position of the internal combustion engine and at least a reference signal for detecting a reference rotation angle position set at a position advanced from the fixed ignition position. A number of reference clock pulses generated during one revolution of the internal combustion engine to obtain a count value for measuring the number of revolutions consisting of a 16-bit binary number; and a reference rotation angle. The ignition position at which the number of clock pulses to be counted during rotation of the engine from the position to the rotation angle position corresponding to the ignition position of the internal combustion engine is calculated for each rotation speed as a 16-bit binary count value for ignition. A microcomputer realizes an arithmetic means and an ignition signal generating means for generating an ignition signal by counting an ignition count value so that the ignition position of the internal combustion engine can be controlled with respect to the rotation speed. Those related to the ignition device for an internal combustion engine for controlling Te.
【0012】本発明においては、マイクロコンピュータ
として、所定の基準クロック周波数で計数動作を行う8
ビットの第1のカウンタと、基準クロック周波数を設定
された分周比で分周した周波数で計数動作を行う8ビッ
トの第2のカウンタとを備えたものを用いる。In the present invention, the microcomputer performs a counting operation at a predetermined reference clock frequency.
A counter having a first bit counter and an 8-bit second counter that performs a counting operation at a frequency obtained by dividing the reference clock frequency by a set division ratio is used.
【0013】本発明においては、上記回転数計測手段
が、基準信号により基準回転角度位置が検出される毎に
第1のカウンタをクリアするカウンタクリア手段と、マ
イクロコンピュータに設けられたRAMの所定のアドレ
スを桁上げビット記憶用メモリとして第1のカウンタの
全計数動作が完了する毎に該桁上げビット記憶用メモリ
の記憶内容を1ずつ増加させる桁上げ記憶手段と、第1
のカウンタがクリアされる直前における桁上げ記憶手段
の記憶内容から得られる回転数計測用計数値の上位8ビ
ット及び該第1のカウンタの計数値から得られる回転数
計測用計数値の下位8ビットを記憶させる回転数記憶手
段とを備えている。In the present invention, the rotation speed measuring means clears the first counter every time the reference rotation angle position is detected by the reference signal, and a predetermined number of RAMs provided in the microcomputer. A carry storage unit that uses the address as a carry bit storage memory and increments the storage content of the carry bit storage memory by one each time the first counter completes a total counting operation;
Upper 8 bits of the rotational speed measurement count value obtained from the storage contents of the carry storage means immediately before the counter is cleared, and the lower 8 bits of the rotation speed measurement count value obtained from the count value of the first counter. Is stored.
【0014】また点火信号発生手段は、点火位置演算手
段により演算された16ビットの点火用計数値の上位8
ビットが0であるか1以上であるかを判定して点火用計
数値の上位8ビットが1以上であると判定されたときに
点火用計数値の上位8ビットが0になるまで該点火用計
数値の各桁を下位の桁側にシフトさせる計数値シフト手
段と、計数値シフト手段によるシフトの回数C(Cは1
以上の整数)が0のときには点火位置演算手段により演
算された点火用計数値の下位8ビットをそのまま第2の
カウンタの計数値とし、シフトの回数Cが1以上である
ときにはシフト後の点火用計数値の下位8ビットを第2
のカウンタの計数値として設定する第2のカウンタ計数
値設定手段と、分周比を1/(2c)に設定する分周比
設定手段と、基準回転角度位置が検出されたときに基準
クロック周波数を設定された分周比で分周した周波数で
第2のカウンタに設定された計数値の計数動作を行わせ
る第2のカウンタ制御手段とを備えていて、第2のカウ
ンタの計数動作が完了したときに点火信号を発生させる
ように構成される。Further, the ignition signal generating means is provided with the upper 8 bits of the 16-bit ignition count value calculated by the ignition position calculating means.
It is determined whether the bit is 0 or 1 or more, and when it is determined that the upper 8 bits of the ignition count value is 1 or more, the ignition is continued until the upper 8 bits of the ignition count value becomes 0. Count value shifting means for shifting each digit of the count value to the lower digit side, and the number of shifts C (C is 1
When the above integer is 0, the lower 8 bits of the ignition count value calculated by the ignition position calculation means are used as the count value of the second counter as it is. The lower 8 bits of the count value
A second counter count value setting means for setting the count value of the counter, a frequency division ratio setting means for setting the frequency division ratio to 1 / (2 c ), and a reference clock signal when a reference rotation angle position is detected. Second counter control means for performing a count operation of the count value set in the second counter at a frequency obtained by dividing the frequency by the set frequency division ratio, wherein the count operation of the second counter is performed. It is configured to generate an ignition signal when completed.
【0015】マイクロコンピュータのRAMとして8ビ
ットのRAMが用いられる場合には、回転数計測用計数
値の上位8ビット及び下位8ビットをそれぞれ第1及び
第2の回転数記憶用メモリに記憶させ、点火用計数値の
上位8ビット及び下位8ビットをそれぞれ第1及び第2
の点火位置記憶用メモリに記憶させる。When an 8-bit RAM is used as the RAM of the microcomputer, the upper 8 bits and the lower 8 bits of the rotation speed measurement count value are stored in the first and second rotation speed storage memories, respectively. The upper 8 bits and lower 8 bits of the ignition count value are respectively assigned to the first and second bits.
In the memory for storing the ignition position.
【0016】この場合、点火信号発生手段は、第1の点
火位置記憶用メモリの内容が0であるか1以上であるか
を判定して該メモリの内容が1以上であると判定された
ときに該第1の点火位置記憶用メモリの内容が0になる
まで第1及び第2の点火位置記憶用メモリにそれぞれ記
憶された2進数の各桁を下位の桁側にシフトさせる計数
値シフト手段と、計数値シフト手段によるシフトの回数
C(Cは0を含む正の整数)が0のときには点火位置演
算手段により演算された点火用計数値の下位8ビットを
記憶した第2の点火位置記憶用メモリの内容をそのまま
第2のカウンタの計数値とし、シフトの回数Cが1以上
であるときにはシフト後に第2の点火位置記憶用メモリ
に記憶されている内容を第2のカウンタの計数値として
設定する第2のカウンタ計数値設定手段と、分周比を1
/(2c)に設定する分周比設定手段と、基準回転角度
位置が検出されたときに基準クロック周波数を設定され
た分周比で分周した周波数で第2のカウンタに設定され
た計数値の計数動作を行わせる第2のカウンタ制御手段
とにより構成できる。In this case, the ignition signal generating means determines whether the content of the first ignition position storage memory is 0 or 1 or more, and when it is determined that the content of the memory is 1 or more. Count value shifting means for shifting each digit of a binary number stored in each of the first and second ignition position storage memories to a lower digit side until the contents of the first ignition position storage memory become zero. And when the number of shifts C (C is a positive integer including 0) by the count value shift means is 0, the second ignition position storage storing the lower 8 bits of the ignition count value calculated by the ignition position calculation means. The content of the second memory is used as it is as the count value of the second counter, and when the number of shifts C is 1 or more, the content stored in the second ignition position storage memory after the shift is used as the count value of the second counter. The second power to set A pointer count setting means, the frequency division ratio 1
/ (2 c ), a dividing ratio setting means for setting the reference clock frequency to a frequency obtained by dividing the reference clock frequency by the set dividing ratio when the reference rotation angle position is detected, and a counter set in the second counter. It can be constituted by second counter control means for performing a numerical value counting operation.
【0017】第1のカウンタ及び第2のカウンタとして
ダウンカウンタを用いる場合、回転数記憶手段は、第1
のカウンタがクリアされる直前における該第1のカウン
タの計数値の下位8ビットの各桁を反転させて得た2進
数に1を加えることにより回転数計測用計数値の下位8
ビットを得るように構成する。In the case where a down counter is used as the first counter and the second counter, the rotation speed storage means stores the first counter.
Immediately before the counter is cleared, 1 is added to the binary number obtained by inverting each digit of the lower 8 bits of the count value of the first counter to obtain the lower 8 bits of the count value for measuring the rotational speed.
Configure to get bits.
【0018】本発明においては、機関の回転数が設定値
を超えているか否かを判定する回転数判定手段と、回転
数判定手段により回転数が設定値を超えていると判定さ
れたときに第2のカウンタの計数動作を許可して該第2
のカウンタの計数動作が完了したときに点火信号を発生
させ、回転数が設定値以下であると判定されたときには
第2のカウンタの計数動作を禁止して固定点火位置信号
により固定点火位置が検出されたときに点火信号を発生
させる点火信号切り替え手段とを、上記点火信号発生手
段に更に設けることが望ましい。According to the present invention, there is provided a rotational speed judging means for judging whether or not the rotational speed of the engine exceeds a set value. The counting operation of the second counter is permitted and the second
When the counting operation of the counter is completed, an ignition signal is generated, and when it is determined that the rotation speed is equal to or less than the set value, the counting operation of the second counter is prohibited and the fixed ignition position is detected by the fixed ignition position signal. It is preferable that the ignition signal generating means further include an ignition signal switching means for generating an ignition signal when the ignition signal is generated.
【0019】[0019]
【作用】上記のように構成すると、2個の8ビットのカ
ウンタを用いて、回転数及び点火位置を16ビットの2
進数で処理することができるため、2個の8ビットカウ
ンタを備えた安価なマイクロコンピュータを用いて内燃
機関の点火位置を正確に制御することができる。With the above arrangement, the number of revolutions and the ignition position are determined by using two 8-bit counters.
Since the processing can be carried out in base numbers, the ignition position of the internal combustion engine can be accurately controlled using an inexpensive microcomputer having two 8-bit counters.
【0020】[0020]
【実施例】図1は本発明の実施例のハードウェアの構成
を示したもので、同図において1は点火信号が与えられ
たときに点火用の高電圧を発生する点火回路である。こ
の点火回路はコンデンサ放電式の回路として周知のもの
で、1次コイル2a及び2次コイル2bを有する点火コ
イル2と、図示しない内燃機関の出力軸に取付けられた
磁石発電機内に設けられたエキサイタコイル3と、点火
エネルギ蓄積用コンデンサ4と、放電用サイリスタ5
と、ダイオード6及び7とからなっている。更に詳述す
ると、点火コイルの一次コイル2aの一端はエキサイタ
コイル3の一端とともに接地され、一次コイル2aの他
端は二次コイル2bの一端に接続されている。一次コイ
ル2aの他端にはまたコンデンサ4の一端が接続され、
コンデンサ4の他端はカソードを該コンデンサ側に向け
たダイオード6を通してエキサイタコイル3の他端に接
続されている。コンデンサ4とダイオード6との接続点
にサイリスタ5のアノードが接続され、該サイリスタの
カソードは接地されている。また点火コイルの一次コイ
ル2aの両端に、カソードを接地側に向けてダイオード
7が接続されている。点火コイルの二次コイル2bの他
端は、図示しない機関の気筒に取り付けられた点火プラ
グ8の非接地側端子に接続されている。FIG. 1 shows a hardware configuration of an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes an ignition circuit which generates a high voltage for ignition when an ignition signal is given. This ignition circuit is well known as a capacitor discharge type circuit, and includes an ignition coil 2 having a primary coil 2a and a secondary coil 2b, and an exciter provided in a magnet generator mounted on an output shaft of an internal combustion engine (not shown). Coil 3, ignition energy storage capacitor 4, discharge thyristor 5
And diodes 6 and 7. More specifically, one end of the primary coil 2a of the ignition coil is grounded together with one end of the exciter coil 3, and the other end of the primary coil 2a is connected to one end of the secondary coil 2b. One end of the capacitor 4 is also connected to the other end of the primary coil 2a,
The other end of the capacitor 4 is connected to the other end of the exciter coil 3 through a diode 6 whose cathode faces the capacitor. The anode of the thyristor 5 is connected to the connection point between the capacitor 4 and the diode 6, and the cathode of the thyristor is grounded. A diode 7 is connected to both ends of the primary coil 2a of the ignition coil with the cathode facing the ground. The other end of the secondary coil 2b of the ignition coil is connected to a non-ground side terminal of a spark plug 8 attached to a cylinder of an engine (not shown).
【0021】上記の点火回路1において、エキサイタコ
イル3は機関の回転に同期して交流電圧Ve を誘起す
る。エキサイタコイル3が図示の矢印方向の正の半サイ
クルの交流電圧Ve を発生すると、エキサイタコイル3
→ダイオード6→コンデンサ4→ダイオード7及び一次
コイル2a→エキサイタコイル3の経路でコンデンサ4
が図示の極性に充電される。サイリスタ5のゲートに点
火信号Vi が与えられると、該サイリスタ5が導通する
ため、コンデンサ4の電荷がサイリスタ5を通して点火
コイルの一次コイル2aに放電する。この放電により点
火コイルの二次コイル2bに点火用の高電圧が誘起し、
該高電圧が点火プラグ8に印加される。これにより点火
プラグ8に火花が生じ、機関が点火される。In the above-mentioned ignition circuit 1, the exciter coil 3 induces an AC voltage Ve in synchronization with the rotation of the engine. When the exciter coil 3 generates the AC voltage Ve of the positive half cycle in the direction of the arrow shown in the figure, the exciter coil 3
→ Diode 6 → Capacitor 4 → Diode 7 and primary coil 2 a → Capacitor 4 in the path of exciter coil 3
Is charged to the illustrated polarity. When the ignition signal Vi is applied to the gate of the thyristor 5, the thyristor 5 conducts, and the electric charge of the capacitor 4 is discharged to the primary coil 2a of the ignition coil through the thyristor 5. This discharge induces a high voltage for ignition in the secondary coil 2b of the ignition coil,
The high voltage is applied to the spark plug 8. As a result, a spark is generated in the ignition plug 8, and the engine is ignited.
【0022】10はマイクロコンピュータで、このマイ
クロコンピュータは、MPU(特に図示せず。)と、R
OM10a及びRAM10bと、6ビットの第1のプリ
スケーラ10dを前段に備えた8ビットの第1のカウン
タ10eと、6ビットの第2のプリスケーラ10fを前
段に備えた8ビットの第2のカウンタ10gと、カウン
タにクロックパルスを与えるクロック回路10hとを1
チップに構成したワンチップマイコンからなっている。
この例では、第1のカウンタ10e及び第2のカウンタ
10gがともに8ビットのダウンカウンタからなってい
て、これらのカウンタが計数する計数値は00H〜FF
H(ここでHは16進表示であることを示す。)の範囲
でソフトウェア上で適宜に設定し得るようになってい
る。Reference numeral 10 denotes a microcomputer, which is composed of an MPU (not shown),
An OM 10a and a RAM 10b, an 8-bit first counter 10e provided with a 6-bit first prescaler 10d at the preceding stage, and an 8-bit second counter 10g provided with a 6-bit second prescaler 10f at the preceding stage. And a clock circuit 10h that supplies a clock pulse to the counter,
It consists of a one-chip microcomputer built into a chip.
In this example, both the first counter 10e and the second counter 10g are 8-bit down counters, and the count values counted by these counters are 00H to FF.
H (where H indicates hexadecimal notation) can be appropriately set on software.
【0023】クロック回路10hは、1μsecの周期
で基準クロックパルスVp を発生する発振回路からな
り、該基準クロックパルスは、プリスケーラ10d及び
10fを通して第1及び第2のカウンタ10e及び10
gに入力されている。The clock circuit 10h comprises an oscillating circuit for generating a reference clock pulse Vp at a period of 1 μsec. The reference clock pulse is supplied to first and second counters 10e and 10e through prescalers 10d and 10f.
g.
【0024】プリスケーラ10d及び10fは、基準ク
ロックパルスVp の周波数を設定された分周比n(nは
1以上の整数)で分周して、分周した周波数のクロック
パルスをカウンタ10e及び10gに与える。The prescalers 10d and 10f divide the frequency of the reference clock pulse Vp by a set division ratio n (n is an integer of 1 or more), and the divided clock pulses are sent to the counters 10e and 10g. give.
【0025】本実施例では、プリスケーラ10dの分周
比が1に設定され、第1のカウンタ10eの計数値はF
FHに設定される。従って第1のカウンタ10eには、
基準クロックパルスVp と同じ周波数のクロックパルス
が与えられる。第1のカウンタ10eは、基準位置で割
り込み信号INT1 が与えられたときにクリアされて計
数動作を開始し、00H、FFH,FEH,FDH,
…、03H,02H,01Hの計数動作を繰り返して、
その計数値が01Hになる毎に(全計数動作が完了する
毎に)割り込み制御回路10cに割り込み信号INT2
を与える。In this embodiment, the frequency division ratio of the prescaler 10d is set to 1, and the count value of the first counter 10e is F
FH is set. Therefore, the first counter 10e has:
A clock pulse having the same frequency as the reference clock pulse Vp is provided. The first counter 10e is cleared when the interrupt signal INT1 is given at the reference position and starts counting operation, and starts counting at 00H, FFH, FEH, FDH,
…, The counting operation of 03H, 02H, 01H is repeated,
Each time the count value becomes 01H (every time the count operation is completed), an interrupt signal INT2 is sent to the interrupt control circuit 10c.
give.
【0026】またプリスケーラ10fの分周比は、点火
位置を計測するための計数値のビット数に応じてソフト
ウェア上で適宜に設定され、第2のカウンタ10gは、
基準クロックパルスVp の周波数を設定された分周比で
分周した周波数のクロックパルスを第2のカウンタ10
gに与える。第2のカウンタ10gは、ソフトウェア上
で設定された計数値をダウンカウントして、その計数が
終了したときに(計数値が01Hになったときに)割込
み制御回路10cに割り込み信号INT3 を与える。The frequency division ratio of the prescaler 10f is appropriately set on software in accordance with the number of bits of the count value for measuring the ignition position.
A clock pulse having a frequency obtained by dividing the frequency of the reference clock pulse Vp by the set dividing ratio is supplied to the second counter 10.
Give to g. The second counter 10g counts down the count value set on the software, and when the counting is completed (when the count value becomes 01H), the second counter 10g supplies an interrupt signal INT3 to the interrupt control circuit 10c.
【0027】11は内燃機関の出力軸に取り付けられた
信号発電機(パルサ)に設けられた信号コイルで、この
信号コイルは、図7(A)に示したように、機関の低速
時の点火位置である固定点火位置よりも進角した位置
(通常は最大進角位置)に設定された基準位置θ1 でス
レショルドレベル以上になる第1の信号Vs1と、固定点
火位置θ2 でスレショルドレベル以上になる第2の信号
Vs2とを機関の1回転当り1回発生する。固定点火位置
は機関の低速時の点火位置で、この固定点火位置は機関
の最小進角位置に等しく設定する場合もあり、最小進角
位置より進角した位置(機関の低速時の点火位置として
適当な位置)に設定する場合もある。Numeral 11 denotes a signal coil provided on a signal generator (pulsar) mounted on the output shaft of the internal combustion engine. This signal coil, as shown in FIG. A first signal Vs1 that exceeds a threshold level at a reference position θ1 set at a position advanced from the fixed ignition position (usually a maximum advance position), and a threshold signal that exceeds a threshold level at a fixed ignition position θ2. The second signal Vs2 is generated once per revolution of the engine. The fixed ignition position is an ignition position at a low speed of the engine. This fixed ignition position may be set to be equal to the minimum advance position of the engine, and a position advanced from the minimum advance position (the ignition position at a low engine speed). (Appropriate position).
【0028】図示の例では、第1の信号Vs1が負極性の
パルスからなり、第2の信号Vs2が正極性のパルスから
なっている。信号コイル11の出力は波形整形回路12
に入力されている。波形整形回路12は信号コイル11
の出力波形をパルス波形に整形する回路で、この波形整
形回路は、第1の信号Vs1及び第2の信号Vs2をそれぞ
れパルス波形の基準信号P1 (図7B)及び固定点火位
置信号P2 (図7C)に変換する。波形整形回路12は
また、固定点火位置信号P2 を反転させたものに相当す
る信号P2 ´を出力するようになっていて、波形整形回
路12が出力する基準信号P1 、固定点火位置信号P2
及び固定点火位置信号を反転させた信号P2 ´がマイク
ロコンピュータ10の入力ポートを通して割り込み制御
回路10cに入力されている。マイクロコンピュータ1
0は、入力信号の高レベルから低レベルへの立下りを認
識するようになっていて、基準回転角度位置θ1 で生じ
る基準信号P1 の立下りが割り込み信号INT1 として
認識される。また固定点火位置信号P2 の立下りが割り
込み信号INT4 として認識され、固定点火位置θ2 で
生じる信号P2 ´の立下り(固定点火位置信号P2 の立
上がり)が割り込み信号INT5 として認識されるよう
になっている。In the illustrated example, the first signal Vs1 is composed of a pulse of negative polarity, and the second signal Vs2 is composed of a pulse of positive polarity. The output of the signal coil 11 is a waveform shaping circuit 12
Has been entered. The waveform shaping circuit 12 includes the signal coil 11
The waveform shaping circuit converts the first signal Vs1 and the second signal Vs2 into a pulse waveform reference signal P1 (FIG. 7B) and a fixed ignition position signal P2 (FIG. 7C). ). The waveform shaping circuit 12 also outputs a signal P2 'corresponding to a signal obtained by inverting the fixed ignition position signal P2, and outputs the reference signal P1 and the fixed ignition position signal P2 output by the waveform shaping circuit 12.
The signal P2 'obtained by inverting the fixed ignition position signal is input to the interrupt control circuit 10c through the input port of the microcomputer 10. Microcomputer 1
0 recognizes the falling of the input signal from the high level to the low level, and the falling of the reference signal P1 generated at the reference rotation angle position θ1 is recognized as the interrupt signal INT1. Also, the falling of the fixed ignition position signal P2 is recognized as an interrupt signal INT4, and the falling of the signal P2 'generated at the fixed ignition position θ2 (rising of the fixed ignition position signal P2) is recognized as an interrupt signal INT5. I have.
【0029】マイクロコンピュータ10の出力ポートA
に抵抗14を通してPNPトランジスタ15のベースが
接続され、トランジスタ15のエミッタは図示しない直
流電源回路出力端子につながる電源ラインEに接続され
ている。またトランジスタ15のエミッタベース間に抵
抗16が接続され、該トランジスタのコレクタが抵抗1
7とダイオード18とを通して放電用サイリスタ5のゲ
ートに接続されている。Output port A of microcomputer 10
Is connected to the base of a PNP transistor 15 through a resistor 14, and the emitter of the transistor 15 is connected to a power supply line E connected to a DC power supply circuit output terminal (not shown). A resistor 16 is connected between the emitter and the base of the transistor 15, and the collector of the transistor 15 is connected to the resistor 1
7 and the diode 18 are connected to the gate of the discharging thyristor 5.
【0030】この例では、抵抗14,16,17と、ト
ランジスタ15と、ダイオード18とにより、点火信号
出力回路19が構成され、マイクロコンピュータ10が
点火位置検出信号Vf を出力したときに点火信号出力回
路19から点火回路1に点火信号Vi が与えられるよう
になっている。In this example, an ignition signal output circuit 19 is constituted by the resistors 14, 16, and 17, the transistor 15, and the diode 18. When the microcomputer 10 outputs the ignition position detection signal Vf, the ignition signal is output. An ignition signal Vi is supplied from the circuit 19 to the ignition circuit 1.
【0031】マイクロコンピュータ10は、図示しない
直流電源により電源電圧が与えられて動作する。この直
流電源としては、機関に取り付けられた磁石発電機の出
力を整流して直流電圧を発生する電源回路を有するも
の、または磁石発電機の出力を整流して直流電圧を発生
する電源回路とバッテリとを併用したものを用いるのが
好ましい。機関に取り付けられた磁石発電機を電源とし
て直流電圧を発生する電源によりマイクロコンピュータ
を動作させるように構成しておくと、バッテリが搭載さ
れない車両等を駆動する内燃機関にも適用することがで
きる。The microcomputer 10 operates by being supplied with a power supply voltage from a DC power supply (not shown). As this DC power supply, a power supply circuit that rectifies the output of a magnet generator attached to the engine to generate a DC voltage, or a power supply circuit that rectifies the output of the magnet generator to generate a DC voltage, and a battery It is preferable to use a combination of the above. If the microcomputer is configured to operate with a power supply that generates a DC voltage using a magnet generator attached to the engine as a power supply, the present invention can be applied to an internal combustion engine that drives a vehicle or the like without a battery.
【0032】またバッテリのみによりマイクロコンピュ
ータを駆動するようにした場合、バッテリが過放電状態
になるとマイクロコンピュータを動作させることができ
なくなって機関を運転することができなくなり、特に船
外機の場合には、洋上でバッテリが過放電状態になると
帰港することができなくなるおそれがあるが、機関に取
り付けられた磁石発電機を電源としてマイクロコンピュ
ータを動作させ得るようにしておけば、このような問題
が生じるのを防ぐことができる。When the microcomputer is driven only by the battery, if the battery is over-discharged, the microcomputer cannot be operated and the engine cannot be operated. If the battery is over-discharged at sea, it may not be possible to return to the port.However, if the microcomputer can be operated using a magnet generator attached to the engine as a power supply, such a problem can be solved. Can be prevented.
【0033】マイクロコンピュータ10は、ROMに記
憶されたプログラムを実行することにより機関の回転数
[rpm]を演算し、該回転数に対する点火位置を演算
する。マイクロコンピュータ10はまた、回転数が設定
値を超えているか否かを判定して、回転数が設定値を超
えているときに演算された点火位置の計測を行ない、機
関の回転角度が点火位置に相当する回転角度位置θi に
一致したことを検出したときに出力ポートAの電位を高
レベルの状態から低レベル(接地電位)の状態へと変化
させる。この出力ポートAの電位の低下が点火指令信号
Vf として用いられる。回転数が設定値以下の場合に
は、点火位置の計測を行なうことなく、固定点火位置θ
2 で割り込み信号INT5 が発生したときに出力ポート
Aの電位を低下させて点火指令信号Vf を発生させる。The microcomputer 10 calculates the engine speed [rpm] by executing a program stored in the ROM, and calculates an ignition position for the engine speed. The microcomputer 10 also determines whether or not the rotation speed exceeds a set value, measures the ignition position calculated when the rotation speed exceeds the set value, and determines whether the rotation angle of the engine is equal to the ignition position. Is detected, the potential of the output port A is changed from a high level state to a low level (ground potential) state. The decrease in the potential of the output port A is used as the ignition command signal Vf. When the rotation speed is equal to or less than the set value, the fixed ignition position θ is not measured without measuring the ignition position.
In step 2, when the interrupt signal INT5 is generated, the potential of the output port A is lowered to generate the ignition command signal Vf.
【0034】点火指令信号Vf が発生すると(出力ポー
トAの電位が低下すると)、トランジスタ15が導通す
るため、図示しない直流電源回路からトランジスタ15
と抵抗17とダイオード18とを通して点火回路1の放
電用サイリスタ5に点火信号Vi が与えられる。When the ignition command signal Vf is generated (when the potential of the output port A decreases), the transistor 15 is turned on.
The ignition signal Vi is given to the discharge thyristor 5 of the ignition circuit 1 through the resistor 17, the resistor 17 and the diode 18.
【0035】マイクロコンピュータ10が実行するプロ
グラムのアルゴリズムを示すフローチャートを図2ない
し図6に示した。図2はマイクロコンピュータ10に電
源電圧が印加されたときに開始されるメインルーチンを
示し、図3は割り込み信号INT1 が発生したときに実
行される割り込みルーチンを示している。また図4は割
り込み信号INT2 が発生したときに実行される割り込
みルーチンを示し、図5及び図6はそれぞれ割り込み信
号INT3 及びINT4 が発生したときに実行される割
り込みルーチンを示している。FIGS. 2 to 6 are flowcharts showing the algorithm of the program executed by the microcomputer 10. FIG. FIG. 2 shows a main routine started when a power supply voltage is applied to the microcomputer 10, and FIG. 3 shows an interrupt routine executed when an interrupt signal INT1 is generated. FIG. 4 shows an interrupt routine executed when the interrupt signal INT2 is generated, and FIGS. 5 and 6 show an interrupt routine executed when the interrupt signals INT3 and INT4 are generated, respectively.
【0036】マイクロコンピュータ10に電源電圧が印
加されると、図2に示すメインルーチンが開始される。
このメインルーチンでは、先ず各部の初期化(イニシャ
ライズ)を行い、第1の回転数記憶用メモリNRPM
1、及び第2の回転数記憶用メモリNRPM2にそれぞ
れ記憶された回転数計測用計数値から機関の回転数を演
算して、演算した回転数をRAMの所定のアドレスに記
憶させる。When a power supply voltage is applied to the microcomputer 10, a main routine shown in FIG. 2 is started.
In this main routine, first, each unit is initialized (initialized), and the first rotation speed storage memory NRPM is initialized.
The engine rotation speed is calculated from the rotation speed measurement count values stored in the first and second rotation speed storage memories NRPM2, respectively, and the calculated rotation speed is stored at a predetermined address in the RAM.
【0037】第1及び第2の回転数記憶用メモリNRP
M1及びNRPM2はRAMの所定のアドレスを割り当
てたもので、これらのメモリNRPM1及びNRPM2
にはそれぞれ、機関が1回転する間に第1のカウンタ1
0eが計数したクロックパルス数(16ビットの2進
数)の上位8ビット及び下位8ビットが記憶されてい
る。メモリNRPM1及びNRPM2に回転数計測用計
数値を記憶させる過程については後述する。First and second rotational speed memory NRP
M1 and NRPM2 are assigned predetermined addresses of the RAM, and these memories NRPM1 and NRPM2
Each has a first counter 1 during one revolution of the engine.
The upper 8 bits and lower 8 bits of the number of clock pulses (16-bit binary number) counted by 0e are stored. The process of storing the rotational speed measurement count value in the memories NRPM1 and NRPM2 will be described later.
【0038】回転数を演算した後、回転数と点火位置と
の関係を与えるマップを用いて、演算された回転数にお
ける点火位置を演算する。この演算に用いるマップは、
回転数と点火位置との関係を与える特性(一般に折れ線
グラフで表される。)の各屈曲点をマップポイントとし
て、各マップポイントにおける回転数と点火位置とをテ
ーブルの形で記憶したもので、点火位置はこのマップを
用いて補間法により演算される。After calculating the rotation speed, the ignition position at the calculated rotation speed is calculated using a map giving the relationship between the rotation speed and the ignition position. The map used for this calculation is
Each bending point of a characteristic (generally represented by a line graph) giving a relationship between the rotation speed and the ignition position is set as a map point, and the rotation speed and the ignition position at each map point are stored in the form of a table. The ignition position is calculated by interpolation using this map.
【0039】次いで、基準回転角度位置から演算された
点火位置に相当する回転角度位置まで機関が回転する間
に計数すべき基準クロックパルスの数を点火用計数値と
して、この点火用計数値を16ビットの2進数で演算
し、この計数値の上位8ビット及び下位8ビットをそれ
ぞれRAM10bの所定のアドレスに割り当てられた第
1及び第2の点火位置記憶用メモリIGTIME1及び
IGTIME2に記憶させる。Next, the number of reference clock pulses to be counted while the engine rotates from the reference rotation angle position to the rotation angle position corresponding to the calculated ignition position is defined as the ignition count value, and this ignition count value is set to 16 The arithmetic operation is performed using a binary number of bits, and the upper 8 bits and lower 8 bits of the counted value are stored in first and second ignition position storage memories IGTIME1 and IGTIME2 respectively assigned to predetermined addresses of the RAM 10b.
【0040】次いで、シフトの回数Cを0とし、第1の
点火位置記憶用メモリIGTIME1に記憶された点火
用計数値の上位8ビットが0であるか否かを判定する。
その結果、第1の点火位置記憶用メモリIGTIME1
に記憶された点火用計数値の上位8ビットが1以上であ
る場合には、マイクロコンピュータに設けられたキャリ
ーフラグCYに0を入れた後、点火位置記憶用メモリI
GTIME1及びIGTIME2にそれぞれ記憶された
点火用計数値の上位8ビット及び下位8ビットの末尾の
1ビットをキャリーフラグCYに移動させるとともに、
キャリーフラグCYに記憶された「0」を点火用計数値
の上位8ビット及び下位8ビットの最上位の桁に移動さ
せる。これにより、IGTIME1及びIGTIME2
にそれぞれ記憶された点火用計数値の上位8ビット及び
下位8ビットが下位の桁側に1ビットシフトする。次い
でシフトの回数Cを1だけ増加させた後、第1の点火位
置記憶用メモリIGTIME1に記憶された点火用計数
値の上位8ビットが0になったか否かを判定する過程に
戻り、該点火用計数値の上位8ビットが0でない場合に
は、IGTIME1及びIGTIME2に記憶された上
位8ビット及び下位8ビットの各桁を1ビットずつ下位
の桁側にシフトする過程を繰り返す。これらの過程によ
り、点火用計数値の上位8ビットが0になるまで、該計
数値の各桁が下位の桁側にシフトさせられる。点火用計
数値の各桁が下位の桁側に1回シフトする毎に、点火用
計数値の大きさは1/2になっていく。例えば点火用計
数値の上位8ビットが零になるまでに2回シフトが行わ
れたとすると、シフト後の点火用計数値の値は演算され
た値の1/4になり、3回シフトが行われたとすると、
シフト後の点火用計数値の値は演算された値の1/8に
なる。Next, the number of shifts C is set to 0, and it is determined whether or not the upper 8 bits of the ignition count value stored in the first ignition position storage memory IGTIME1 are 0.
As a result, the first ignition position storage memory IGTIME1
If the upper 8 bits of the ignition count stored in the microcomputer are 1 or more, 0 is set in the carry flag CY provided in the microcomputer, and then the ignition position storage memory I
While moving the last one bit of the upper 8 bits and the lower 8 bits of the ignition count value stored in GTIME1 and IGTIME2 to the carry flag CY,
"0" stored in the carry flag CY is moved to the most significant digit of the upper 8 bits and lower 8 bits of the ignition count value. Thereby, IGTIME1 and IGTIME2
, The upper 8 bits and the lower 8 bits of the ignition count value respectively stored are shifted by one bit to the lower digit side. Next, after increasing the number of shifts C by one, the process returns to the step of determining whether or not the upper 8 bits of the ignition count value stored in the first ignition position storage memory IGTIME1 have become 0. If the upper 8 bits of the use count value are not 0, the process of shifting the upper 8 bits and lower 8 bits stored in IGTIME1 and IGTIME2 one bit at a time toward the lower digit is repeated. By these processes, each digit of the ignition count is shifted to the lower digit until the upper 8 bits of the ignition count become zero. Each time each digit of the ignition count value shifts to the lower digit side once, the magnitude of the ignition count value becomes 1 /. For example, if the shift is performed twice before the upper 8 bits of the ignition count value becomes zero, the shifted ignition count value becomes 1/4 of the calculated value, and the shift is performed three times. If you do
The value of the ignition count value after the shift is 1/8 of the calculated value.
【0041】第1の点火位置記憶用メモリIGTIME
1に記憶された点火用計数値の上位8ビットが0である
か否かを判定した結果、該上位8ビットが0であると判
定された場合には、プリスケーラ10fでの分周比1/
2c(Cは0を含む正の整数)を分周比記憶用メモリI
GPREに記憶させる。次いで点火位置記憶用メモリI
GTIME2に記憶された点火用計数値の下位8ビット
を点火用計数値記憶用メモリIGTIMEに記憶させ
て、回転数を求める過程に戻る。本発明においては、メ
モリIGTEMEに記憶されたシフト後の点火用計数値
を第2のカウンタ10gにセットして、該カウンタ10
gに計数動作を行わせる。シフトがC回行われた場合、
第2のカウンタ10gが計数するシフト後の点火用計数
値は、基準クロックパルスの計数値として演算された点
火用計数値の1/2cとなっているが、本発明では、第
2のカウンタ10gに、基準クロックパルスの周波数を
1/2cに分周した周波数のパルスを計数させるため、
点火位置の計測を支障なく行わせることができる。First ignition position storage memory IGTIME
As a result of determining whether or not the upper 8 bits of the ignition count value stored in 1 are 0, if it is determined that the upper 8 bits are 0, the frequency division ratio of 1 / f in the prescaler 10f is 1/0.
2 c (C is a positive integer including 0) is stored in the memory I for storing the frequency division ratio.
Store in GPRE. Next, the ignition position memory I
The lower 8 bits of the ignition count value stored in GTIME2 are stored in ignition count value storage memory IGTIME, and the process returns to the step of obtaining the rotational speed. In the present invention, the shifted ignition count value stored in the memory IGTEM is set in the second counter 10g, and the counter 10
Let g perform a counting operation. If the shift has been performed C times,
Although the shifted ignition count value counted by the second counter 10g is 1 / 2c of the ignition count value calculated as the reference clock pulse count value, in the present invention, the second counter In order for 10g to count pulses of a frequency obtained by dividing the frequency of the reference clock pulse by 1 / 2c ,
The measurement of the ignition position can be performed without any trouble.
【0042】前述のように、第1のカウンタ10eは、
基準クロックパルスVp を計数して、00H,FFH,
…01Hのダウンカウントを繰り返し、計数値が01H
になる毎に割り込み信号INT2 を発生する。この割り
込み信号INT2 が発生すると、図4の割り込みルーチ
ンが実行される。この割り込みルーチンでは、RAMの
所定のアドレスに割り当てられた桁上げビット記憶用メ
モリREVRAMの内容をインクリメントし(REVR
AMの内容に1を加え)、REVRAMがオーバフロー
したか否かを判定する。REVRAMがオーバフローし
ていない場合にはメインルーチンに復帰し、オーバフロ
ーしている場合には、オーバフロー判定用フラグOVE
RFLを1としてメインルーチンに復帰する。As described above, the first counter 10e
The reference clock pulse Vp is counted, and 00H, FFH,
... Repeats the down count of 01H, and the count value becomes 01H
, An interrupt signal INT2 is generated. When the interrupt signal INT2 is generated, the interrupt routine shown in FIG. 4 is executed. In this interrupt routine, the contents of the carry bit storage memory REVRAM assigned to a predetermined address of the RAM are incremented (REVR).
AM is incremented by 1), and it is determined whether or not the REVRAM overflows. If the REVRAM has not overflown, the program returns to the main routine. If the REVRAM has overflown, the overflow determination flag OVE appears.
RFL is set to 1 and the process returns to the main routine.
【0043】信号発生装置13が基準信号を発生して、
マイクロコンピュータ10に割込信号INT1 が与えら
れると、図3に示した割り込みルーチンが実行される。
この割り込みルーチンでは、先ず第2のカウンタ10g
に点火用計数値記憶用メモリIGTIMEに記憶された
点火用計数値をセットし、分周比記憶用メモリIGPR
Eに記憶された分周比を第2のプリスケーラ10fにセ
ットする。次いでオーバフロー判定フラグOVERFL
が1であるか否かを判定し、OVERFLが1でない場
合(0の場合)には、桁上げビット記憶用メモリREV
RAMの内容を回転数計測用計数値の上位8ビットとし
て第1の回転数記憶用メモリNRPM1に記憶させ、第
1のカウンタ10eの計数値とFFHとの排他的論理和
(エクスクルーシブオア)に1を加えた8ビットの2進
数を回転数計測用計数値の下位8ビットとして第2の回
転数記憶用メモリNRPM2に記憶させる。第1のカウ
ンタ10eの計数値とFFHとの排他的論理和(エクス
クルーシブオア)に1を加える操作は、第1のカウンタ
10eの計数値の各桁を反転させて得た2進数に1を加
える操作である。このような操作を行うことにより、ダ
ウンカウントの計数値をアップカウントの計数値に変換
することができる。The signal generator 13 generates a reference signal,
When the microcomputer 10 receives the interrupt signal INT1, the interrupt routine shown in FIG. 3 is executed.
In this interrupt routine, first, the second counter 10g
Is set to the ignition count stored in the ignition count storage memory IGTIME, and the frequency division ratio storage memory IGPR is set.
The frequency division ratio stored in E is set in the second prescaler 10f. Next, an overflow determination flag OVERFL
Is determined to be 1 or not. When OVERFL is not 1 (in the case of 0), the carry bit storage memory REV
The contents of the RAM are stored in the first rotation speed storage memory NRPM1 as the upper 8 bits of the rotation speed measurement count value, and the exclusive OR of the count value of the first counter 10e and FFH is set to 1 (exclusive OR). Is stored in the second rotational speed storage memory NRPM2 as the lower 8 bits of the rotational speed measurement count value. The operation of adding 1 to the exclusive OR (exclusive OR) of the count value of the first counter 10e and FFH adds 1 to the binary number obtained by inverting each digit of the count value of the first counter 10e. Operation. By performing such an operation, the count value of the down-count can be converted into the count value of the up-count.
【0044】オーバフロー判定用フラグOVERFLが
1でない場合(桁上げビット記憶用メモリREVRAM
がオーバフローしていない場合)には、上記のようにし
て、第1及び第2の回転数記憶用メモリNRPM1及び
NRPM2に回転数計測用計数値の上位8ビット及び下
位8ビットを記憶させた後、桁上げビット記憶用メモリ
REVRAMをクリアし、第1のカウンタ10eをクリ
アして、該第1のカウンタの計数動作を開始させる。When the overflow determination flag OVERFL is not 1 (the carry bit storage memory REVRAM)
Is not overflowed), the upper 8 bits and lower 8 bits of the rotation speed measurement count value are stored in the first and second rotation speed storage memories NRPM1 and NRPM2 as described above. Then, the carry bit storage memory REVRAM is cleared, the first counter 10e is cleared, and the counting operation of the first counter is started.
【0045】オーバフロー判定用フラグOVERFLが
1であると判定された場合には、該フラグOVERFL
を0とした後、第1及び第2の回転数記憶用メモリNR
PM1及びNRPM2の双方にFFH(第2のカウンタ
の計数値の最大値)を入れて回転数計測用計数値を最大
にし、次いで桁上げビット記憶用メモリREVRAM及
び第1のカウンタ10eをクリアして、該第1のカウン
タの計数動作を開始させる。If it is determined that the overflow determination flag OVERFL is 1, the flag OVERFL is determined.
Is set to 0, the first and second rotational speed storage memories NR
FFH (the maximum value of the count value of the second counter) is inserted into both PM1 and NRPM2 to maximize the count value for measuring the number of revolutions, and then the carry bit storage memory REVRAM and the first counter 10e are cleared. , The counting operation of the first counter is started.
【0046】桁上げビット記憶用メモリREVRAM及
び第1のカウンタ10eをクリアした後、第1及び第2
の回転数記憶用メモリNRPM1及びNRPM2に記憶
された回転数が設定値(この例では1000[rp
m])を超えているか否かを判定し、回転数が設定値を
超えている場合には、割り込み信号INT5 による割り
込みを禁止して、第2のカウンタ10gの計数動作を許
可した後、メインルーチンに戻る。また回転数が設定値
以下である場合には、割り込み信号INT5 による割り
込みを許可した後、第2のカウンタ10gの計数動作を
禁止してメインルーチンに戻る。After clearing the carry bit storage memory REVRAM and the first counter 10e, the first and second
The rotation speeds stored in the rotation speed storage memories NRPM1 and NRPM2 are set values (in this example, 1000 [rpm]
m]), and if the rotation speed exceeds the set value, the interruption by the interruption signal INT5 is prohibited, and the counting operation of the second counter 10g is permitted. Return to routine. If the rotation speed is equal to or less than the set value, the interruption by the interruption signal INT5 is permitted, the counting operation of the second counter 10g is inhibited, and the process returns to the main routine.
【0047】回転数が設定値を超えている場合には、第
2のカウンタ10gの動作が許可されたときに該第2の
カウンタ10gの計数動作が開始される。第2のカウン
タ10gの計数動作が実際に開始されるのは、基準信号
が発生して割り込み信号INT1 が発生した後、第2の
カウンタへの計数値のセット、第2のプリスケーラへの
分周比のセット、回転数記憶用メモリNRPM1,NR
PM2への計数値の転送、桁上げビット記憶用メモリR
EVRAMのクリア等の各種の処理が行われた後である
が、これらの処理はきわめて短い時間で行われるため、
基準信号が発生したときに第2のカウンタ10gの計数
動作が開始されると見なすことができる。第2のカウン
タ10gは、セットされた計数値の計数動作を完了した
ときに割り込み信号INT3 を発生する。この割り込み
信号INT3 が発生すると、割り込み制御回路10cが
図5に示す割り込みルーチンを実行させてポートAの電
位を低レベル(2値信号の論理が「0」の状態)にす
る。このポートAの電位の低下が点火指令信号Vf とな
る。点火指令信号Vf が発生すると、トランジスタ15
が導通して放電用サイリスタ5に点火信号Vi を与える
ため、点火動作が行われる。固定点火位置θ2 よりも僅
かに遅れた位置で割り込み信号INT4 が発生すると、
図6に示す割り込みルーチンが実行されて、マイクロコ
ンピュータ10のポートAの電位が高レベル(2値信号
の論理が「1」の状態)にされ、点火指令信号が消滅す
る。これによりトランジスタ15が遮断状態になり、放
電用サイリスタ5への点火信号Vi の供給が停止され
る。If the rotation speed exceeds the set value, the counting operation of the second counter 10g is started when the operation of the second counter 10g is permitted. The counting operation of the second counter 10g is actually started because the reference signal is generated and the interrupt signal INT1 is generated, then the count value is set in the second counter, and the frequency is divided into the second prescaler. Set ratio, memory for storing rotation speed NRPM1, NR
Transfer of count value to PM2, memory R for carry bit storage
After various processes such as clearing of the EVRAM are performed, since these processes are performed in a very short time,
It can be considered that the counting operation of the second counter 10g is started when the reference signal is generated. The second counter 10g generates an interrupt signal INT3 when the operation of counting the set count value is completed. When the interrupt signal INT3 is generated, the interrupt control circuit 10c executes the interrupt routine shown in FIG. 5 to set the potential of the port A to a low level (the logic of the binary signal is "0"). The decrease in the potential of the port A becomes the ignition command signal Vf. When the ignition command signal Vf is generated, the transistor 15
Is turned on to give an ignition signal Vi to the discharge thyristor 5, so that an ignition operation is performed. When the interrupt signal INT4 is generated at a position slightly delayed from the fixed ignition position θ2,
The interrupt routine shown in FIG. 6 is executed, the potential of the port A of the microcomputer 10 is set to a high level (the logic of the binary signal is "1"), and the ignition command signal is extinguished. As a result, the transistor 15 is turned off, and the supply of the ignition signal Vi to the discharge thyristor 5 is stopped.
【0048】回転数が設定値以下で、第2のカウンタ1
0gの動作が禁止され、割り込み信号INT5 による割
り込みが許可されたときには、固定点火位置θ2 で割り
込み信号INT5 が発生したときにポートAの電位が低
レベルの状態にされ、該固定点火位置で放電用サイリス
タ5に点火信号が与えられる。この点火信号は割り込み
信号INT4 が発生したときに消滅させられる。即ち、
機関の回転数が設定値以下である場合には、常に固定点
火位置で点火信号が発生し、点火位置が固定点火位置に
固定される。When the number of revolutions is equal to or less than the set value, the second counter 1
0g is prohibited and the interrupt by the interrupt signal INT5 is permitted. When the interrupt signal INT5 is generated at the fixed ignition position θ2, the potential of the port A is set to a low level. The thyristor 5 is provided with an ignition signal. This ignition signal is extinguished when the interrupt signal INT4 is generated. That is,
When the engine speed is lower than the set value, an ignition signal is always generated at the fixed ignition position, and the ignition position is fixed at the fixed ignition position.
【0049】上記の実施例では、図3に示す割り込みル
ーチンにおいて第1のカウンタをクリアする過程によ
り、カウンタクリア手段が実現され、図4に示した割り
込みルーチンにより、第1のカウンタの全計数動作が完
了する毎に該桁上げビット記憶用メモリの記憶内容を1
ずつ増加させる桁上げ記憶手段が実現される。また図3
に示した割り込みルーチンにおいて、メモリNRPM1
にメモリREVRAMの内容を転送する過程、及び第1
のカウンタの計数値の各桁を反転させて1を加えた数値
をメモリNRPM2に記憶させる過程により、回転数記
憶手段が実現される。更に、図2のメインルーチンにお
いて、IGTEME1及びIGTIME2の記憶内容の
各桁をシフトする過程により計数値シフト手段が実現さ
れ、同メインルーチンにおいてIGPREに分周比を記
憶させる過程と、図3の割り込みルーチンにおいて第2
のプリスケーラ10fにIGPREの内容を転送する過
程とにより、分周比設定手段が実現される。また図2の
割り込みルーチンにおいてIGTIME2の内容をIG
TIMEに転送する過程と、図3の割り込みルーチンに
おいて、第2のカウンタ10gにIGTIMEの内容を
転送する過程により、第2のカウンタ計数値設定手段が
実現され、図3に示した割り込みルーチンにおいて、第
2のカウンタの計数動作を許可する過程により、第2の
カウンタ制御手段が実現される。In the above embodiment, the counter clear means is realized by the process of clearing the first counter in the interrupt routine shown in FIG. 3, and the total counting operation of the first counter is performed by the interrupt routine shown in FIG. Each time is completed, the contents stored in the carry bit storage memory are incremented by one.
Thus, a carry storage means for increasing the number by one is realized. FIG.
In the interrupt routine shown in FIG.
Transferring the contents of the memory REVRAM to the memory;
The process of inverting each digit of the count value of the counter and adding 1 to the memory NRPM2 and storing the value in the memory NRPM2 realizes the rotation speed storage means. Further, in the main routine of FIG. 2, the count value shifting means is realized by a process of shifting each digit of the storage contents of IGTIME1 and IGTIME2, a process of storing the frequency division ratio in IGPRE in the main routine, and an interrupt of FIG. Second in routine
By transferring the contents of the IGPRE to the prescaler 10f, the frequency division ratio setting means is realized. In addition, in the interrupt routine of FIG.
In the process of transferring to the TIME and in the interrupt routine of FIG. 3, the process of transferring the contents of the IGTIME to the second counter 10g implements a second counter count value setting means. In the interrupt routine shown in FIG. The second counter control means is realized by the process of permitting the counting operation of the second counter.
【0050】また図3の割り込みルーチンにおいて、回
転数が設定値を超えているか否かを判定する過程により
回転数判定手段が実現され、その判定結果に応じて第2
のカウンタの動作を許可したり禁止したりする過程によ
り、点火信号切り替え手段が実現される。In the interrupt routine shown in FIG. 3, a process for determining whether or not the rotational speed exceeds a set value implements a rotational speed determining means.
In the process of permitting or inhibiting the operation of the counter of the above, the ignition signal switching means is realized.
【0051】上記の実施例では、第1及び第2のカウン
タ10e及び10gとしてダウンカウンタを用いたが、
これらのカウンタとしてアップカウンタを用いることも
できる。第1のカウンタ10eとしてアップカウンタを
用いる場合には、基準信号が発生して割り込み信号IN
T1 が発生したときに、第1のカウンタ10eの計数値
をそのまま下位8ビットとしてNRPM2に転送すれば
よい。In the above embodiment, the down counter is used as the first and second counters 10e and 10g.
Up counters can be used as these counters. When an up counter is used as the first counter 10e, a reference signal is generated and an interrupt signal IN is generated.
When T1 occurs, the count value of the first counter 10e may be transferred to the NRPM2 as the lower 8 bits as it is.
【0052】上記の実施例では、回転数が設定値以下の
とき(極低速時)に、固定点火位置でマイクロコンピュ
ータ10から点火信号を発生させるようにしているが、
固定点火位置信号P2 を極低速時の点火信号として、該
固定点火位置信号P2 と、マイクロコンピュータ側から
与えられる点火信号Vi とをオア回路を通して点火回路
に供給する構成をとることもできる。In the above embodiment, the microcomputer 10 generates an ignition signal at the fixed ignition position when the rotation speed is equal to or lower than the set value (at an extremely low speed).
The fixed ignition position signal P2 may be used as an ignition signal at an extremely low speed, and the fixed ignition position signal P2 and the ignition signal Vi given from the microcomputer may be supplied to the ignition circuit through an OR circuit.
【0053】上記の実施例では、点火回路1としてエキ
サイタコイルにより点火エネルギ蓄積用コンデンサを充
電するコンデンサ放電式の回路を用いたが、エキサイタ
コイルを用いずに、バッテリを電源としたDC−DCコ
ンバータ(昇圧回路)により点火エネルギ蓄積用コンデ
ンサを充電するようにしたコンデンサ放電式の点火回路
を用いる場合にも本発明を適用できる。また点火回路
は、点火信号が与えられたときに点火用の高電圧を発生
する回路であればよく、コンデンサ放電式の点火回路に
代えて、電流遮断式の点火回路が用いられる場合にも本
発明を適用することができるのはもちろんである。In the above embodiment, a capacitor discharge type circuit for charging an ignition energy storage capacitor with an exciter coil is used as the ignition circuit 1. However, a DC-DC converter using a battery as a power source without using an exciter coil is used. The present invention can be applied to a case where a capacitor discharge type ignition circuit in which a capacitor for storing ignition energy is charged by a (boost circuit) is used. The ignition circuit may be any circuit that generates a high voltage for ignition when an ignition signal is given, and may be used even when a current interruption type ignition circuit is used instead of the capacitor discharge type ignition circuit. Of course, the invention can be applied.
【0054】上記の実施例では、信号発生装置の信号源
として信号コイルを有する信号発電機を用いたが、ホー
ル素子などの磁気検出素子を用いて磁束の変化を検出す
ることにより信号を発生する信号発電機を用いることも
できる。In the above embodiment, a signal generator having a signal coil is used as a signal source of the signal generating device. However, a signal is generated by detecting a change in magnetic flux using a magnetic detecting element such as a Hall element. A signal generator can also be used.
【0055】[0055]
【発明の効果】以上のように、本発明によれば、2個の
8ビットのカウンタを用いて、回転数及び点火位置を1
6ビットの2進数で処理することができるため、2個の
8ビットカウンタを備えた安価なマイクロコンピュータ
を用いて内燃機関の点火位置を正確に制御することがで
きる利点がある。As described above, according to the present invention, the number of revolutions and the ignition position are set to 1 by using two 8-bit counters.
Since the processing can be performed with a 6-bit binary number, there is an advantage that the ignition position of the internal combustion engine can be accurately controlled by using an inexpensive microcomputer having two 8-bit counters.
【図1】本発明の実施例のハードウェアの構成を示した
構成図である。FIG. 1 is a configuration diagram illustrating a hardware configuration according to an embodiment of the present invention.
【図2】本発明の実施例において実行されるメインルー
チンのアルゴリズムを示したフローチャートである。FIG. 2 is a flowchart showing an algorithm of a main routine executed in the embodiment of the present invention.
【図3】本発明の実施例において基準信号が発生したと
きに実行される割り込みルーチンのアルゴリズムを示し
たフローチャートである。FIG. 3 is a flowchart showing an algorithm of an interrupt routine executed when a reference signal is generated in the embodiment of the present invention.
【図4】本発明の実施例において第1のカウンタが計数
動作を完了する毎に実行される割り込みルーチンのアル
ゴリズムを示したフローチャートである。FIG. 4 is a flowchart showing an algorithm of an interrupt routine executed each time the first counter completes a counting operation in the embodiment of the present invention.
【図5】本発明の実施例において第2のカウンタが計数
動作を完了する毎に実行される割り込みルーチンのアル
ゴリズムを示したフローチャートである。FIG. 5 is a flowchart showing an algorithm of an interrupt routine executed each time the second counter completes a counting operation in the embodiment of the present invention.
【図6】本発明の実施例において固定点火位置信号が発
生する毎に実行される割り込みルーチンのアルゴリズム
を示したフローチャートである。FIG. 6 is a flowchart showing an algorithm of an interrupt routine executed each time a fixed ignition position signal is generated in the embodiment of the present invention.
【図7】本発明の実施例の各部の信号波形を示した波形
図である。FIG. 7 is a waveform diagram showing signal waveforms of respective units according to the embodiment of the present invention.
1 点火回路 2 点火コイル 3 エキサイタコイル 4 点火エネルギ蓄積用コンデンサ 5 放電用サイリスタ 10 マイクロコンピュータ 13 信号発生装置 DESCRIPTION OF SYMBOLS 1 Ignition circuit 2 Ignition coil 3 Exciter coil 4 Ignition energy storage capacitor 5 Thyristor for discharge 10 Microcomputer 13 Signal generator
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭55−25595(JP,A) 特開 昭54−22742(JP,A) 特開 平3−264773(JP,A) (58)調査した分野(Int.Cl.7,DB名) F02P 5/15 F02D 45/00 372 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-55-25595 (JP, A) JP-A-54-22742 (JP, A) JP-A-3-264773 (JP, A) (58) Field (Int. Cl. 7 , DB name) F02P 5/15 F02D 45/00 372
Claims (4)
電圧を発生する点火回路と、マイクロコンピュータと、
内燃機関の固定点火位置を検出するための固定点火位置
信号と該固定点火位置よりも進角した位置に設定された
基準回転角度位置を検出するための基準信号とを少くと
も発生する信号発生装置とを備え、内燃機関が1回転す
る間に発生する基準クロックパルスを計数して16ビッ
トの2進数からなる回転数計測用計数値を求める回転数
計測手段と、前記基準回転角度位置から内燃機関の点火
位置まで機関が回転する間に計数すべきクロックパルス
の数を16ビットの2進数からなる点火用計数値として
各回転数に対して演算する点火位置演算手段と、前記点
火用計数値を計数して前記点火信号を発生させる点火信
号発生手段とを前記マイクロコンピュータにより実現し
て、内燃機関の点火位置を回転数に対して制御する内燃
機関用点火装置であって、 前記マイクロコンピュータは所定の基準クロック周波数
で計数動作を行う8ビットの第1のカウンタと、前記基
準クロック周波数を所定の分周比で分周した周波数で計
数動作を行う8ビットの第2のカウンタとを備え、 前記回転数計測手段は、前記基準信号により基準回転角
度位置が検出される毎に前記第1のカウンタをクリアす
るカウンタクリア手段と、前記マイクロコンピュータに
設けられたRAMの所定のアドレスを桁上げビット記憶
用メモリとして前記第1のカウンタの全計数動作が完了
する毎に該桁上げビット記憶用メモリの記憶内容を1ず
つ増加させる桁上げ記憶手段と、前記第1のカウンタが
クリアされる直前における前記桁上げ記憶手段の記憶内
容から得られる前記回転数計測用計数値の上位8ビット
と、前記第1のカウンタがクリアされる直前における該
第1のカウンタの計数値から得られる前記回転数計測用
計数値の下位8ビットとを記憶させる回転数記憶手段と
を備え、 前記点火信号発生手段は、前記点火位置演算手段により
演算された16ビットの点火用計数値の上位8ビットが
0であるか1以上であるかを判定して点火用計数値の上
位8ビットが1以上であると判定されたときに点火用計
数値の上位8ビットが0になるまで該点火用計数値の各
桁を下位の桁側にシフトさせる計数値シフト手段と、前
記計数値シフト手段によるシフトの回数C(Cは0を含
む正の整数)が0のときには前記点火位置演算手段によ
り演算された点火用計数値の下位8ビットをそのまま第
2のカウンタの計数値とし、シフトの回数Cが1以上で
あるときにはシフト後の点火用計数値の下位8ビットを
第2のカウンタの計数値として設定する第2のカウンタ
計数値設定手段と、前記分周比を1/(2c)に設定す
る分周比設定手段と、基準回転角度位置が検出されたと
きに基準クロック周波数を設定された分周比で分周した
周波数で前記第2のカウンタに設定された計数値の計数
動作を行わせる第2のカウンタ制御手段とを備えて、前
記第2のカウンタの計数動作が完了したときに前記点火
信号を発生させるように構成されている内燃機関用点火
装置。An ignition circuit for generating a high voltage for ignition when an ignition signal is applied, a microcomputer,
A signal generator for generating at least a fixed ignition position signal for detecting a fixed ignition position of an internal combustion engine and a reference signal for detecting a reference rotation angle position set at a position advanced from the fixed ignition position Rotation speed measuring means for counting a reference clock pulse generated during one rotation of the internal combustion engine to obtain a rotation speed measurement count value consisting of a 16-bit binary number, and an internal combustion engine based on the reference rotation angle position. An ignition position calculating means for calculating the number of clock pulses to be counted while the engine is rotating to the ignition position as an ignition count value consisting of a 16-bit binary number for each rotation speed; An ignition signal generating means for counting and generating the ignition signal is realized by the microcomputer, and the ignition device for the internal combustion engine controls the ignition position of the internal combustion engine with respect to the rotation speed. Thus, the microcomputer has an 8-bit first counter that performs a counting operation at a predetermined reference clock frequency, and an 8-bit first counter that performs a counting operation at a frequency obtained by dividing the reference clock frequency by a predetermined division ratio. A counter clearing means for clearing the first counter each time a reference rotation angle position is detected by the reference signal; and a RAM provided in the microcomputer. A carry storage unit for increasing a storage content of the carry bit storage memory by one each time the first counter completes a total counting operation using a predetermined address as a carry bit storage memory; The upper 8 bits of the rotational speed measurement count value obtained from the storage content of the carry storage unit immediately before the counter is cleared, and Rotation speed storage means for storing the lower 8 bits of the rotation speed measurement count value obtained from the count value of the first counter immediately before the counter is cleared. It is determined whether the upper 8 bits of the 16-bit ignition count calculated by the ignition position calculator are 0 or 1 or more, and it is determined that the upper 8 bits of the ignition count are 1 or more. Sometimes, the count value shifting means for shifting each digit of the ignition count value to the lower digit side until the upper 8 bits of the ignition count value becomes 0, and the number of shifts C (C is When a positive integer including 0) is 0, the lower 8 bits of the ignition count value calculated by the ignition position calculation means are used as the count value of the second counter as it is, and when the number of shifts C is 1 or more, the shift is performed. rear A second counter count value setting means for setting the lower 8 bits of the ignition count value as a count value of the second counter, and a frequency division ratio setting means for setting the frequency division ratio to 1 / (2 c ). A second counter control means for performing a counting operation of the count value set in the second counter at a frequency obtained by dividing the reference clock frequency by the set dividing ratio when the reference rotation angle position is detected. And an ignition device for an internal combustion engine configured to generate the ignition signal when the counting operation of the second counter is completed.
電圧を発生する点火回路と、マイクロコンピュータと、
内燃機関の固定点火位置を検出するための固定点火位置
信号と該固定点火位置よりも進角した位置に設定された
基準回転角度位置を検出するための基準信号とを少くと
も発生する信号発生装置とを備え、内燃機関が1回転す
る間に発生する基準クロックパルスを計数して16ビッ
トの2進数からなる回転数計測用計数値を求める回転数
計測手段と、前記基準回転角度位置から内燃機関の点火
位置まで機関が回転する間に計数すべきクロックパルス
の数を16ビットの2進数からなる点火用計数値として
各回転数に対して演算して演算された点火用計数値の上
位8ビット及び下位8ビットをそれぞれ第1及び第2の
点火位置記憶用メモリに記憶させる点火位置演算手段
と、前記点火用計数値を計数して前記点火信号を発生さ
せる点火信号発生手段とを前記マイクロコンピュータに
より実現して、内燃機関の点火位置を回転数に対して制
御する内燃機関用点火装置であって、 前記マイクロコンピュータは所定の基準クロック周波数
で計数動作を行う8ビットの第1のカウンタと、前記基
準クロック周波数を所定の分周比で分周した周波数で計
数動作を行う8ビットの第2のカウンタとを備え、 前記回転数計測手段は、前記基準信号により基準回転角
度位置が検出される毎に前記第1のカウンタをクリアす
るカウンタクリア手段と、前記マイクロコンピュータに
設けられたRAMの所定のアドレスを桁上げビット記憶
用メモリとして前記第1のカウンタの全計数動作が完了
する毎に該桁上げビット記憶用メモリの記憶内容を1ず
つ増加させる桁上げ記憶手段と、前記第1のカウンタが
クリアされる直前における前記桁上げ記憶手段の記憶内
容から得られる前記回転数計測用計数値の上位8ビット
及び前記第1のカウンタの計数値から得られる前記回転
数計測用計数値の下位8ビットをそれぞれ第1及び第2
の回転数記憶用メモリに記憶させる回転数記憶手段とを
備え、 前記点火信号発生手段は、前記第1の点火位置記憶用メ
モリの内容が0であるか1以上であるかを判定して該メ
モリの内容が1以上であると判定されたときに該第1の
点火位置記憶用メモリの内容が0になるまで第1及び第
2の点火位置記憶用メモリにそれぞれ記憶された2進数
の各桁を下位の桁側にシフトさせる計数値シフト手段
と、前記シフトの回数C(Cは0を含む正の整数)が0
のときには前記点火位置演算手段により演算された点火
用計数値の下位8ビットを記憶した第2の点火位置記憶
用メモリの内容をそのまま第2のカウンタの計数値と
し、シフトの回数Cが1以上であるときにはシフト後に
第2の点火位置記憶用メモリに記憶されている内容を第
2のカウンタの計数値として設定する第2のカウンタ計
数値設定手段と、前記分周比を1/(2c)に設定する
分周比設定手段と、基準回転角度位置が検出されたとき
に基準クロック周波数を設定された分周比で分周した周
波数で前記第2のカウンタに設定された計数値の計数動
作を行わせる第2のカウンタ制御手段とを備えて、前記
第2のカウンタの計数動作が完了したときに前記点火信
号を発生させるように構成されている内燃機関用点火装
置。2. An ignition circuit for generating a high voltage for ignition when an ignition signal is applied, a microcomputer,
A signal generator for generating at least a fixed ignition position signal for detecting a fixed ignition position of an internal combustion engine and a reference signal for detecting a reference rotation angle position set at a position advanced from the fixed ignition position Rotation speed measuring means for counting a reference clock pulse generated during one rotation of the internal combustion engine to obtain a rotation speed measurement count value consisting of a 16-bit binary number, and an internal combustion engine based on the reference rotation angle position. The upper 8 bits of the ignition count value calculated by calculating the number of clock pulses to be counted while the engine rotates to the ignition position as a 16-bit binary count value for each rotation speed And an ignition position calculating means for storing the lower 8 bits in first and second ignition position storage memories, respectively, and an ignition signal generator for counting the ignition count value and generating the ignition signal. Is realized by the microcomputer, and the ignition position of the internal combustion engine is controlled with respect to the number of revolutions of the internal combustion engine, wherein the microcomputer performs a counting operation at a predetermined reference clock frequency. 1 counter, and an 8-bit second counter that performs a counting operation at a frequency obtained by dividing the reference clock frequency by a predetermined frequency division ratio, wherein the rotation speed measurement unit uses a reference rotation angle based on the reference signal. A counter clear means for clearing the first counter each time a position is detected; and a total counting operation of the first counter using a predetermined address of a RAM provided in the microcomputer as a carry bit storage memory. Carry storage means for increasing the storage contents of the carry bit storage memory by one each time the completion is completed; The upper 8 bits of the rotation speed measurement count value obtained from the storage content of the carry storage unit immediately before the execution and the lower 8 bits of the rotation speed measurement count value obtained from the count value of the first counter To the first and second
The ignition signal generating means determines whether the content of the first ignition position storage memory is 0 or 1 or more. When it is determined that the content of the memory is 1 or more, each of the binary numbers stored in the first and second ignition position storage memories until the content of the first ignition position storage memory becomes 0. A count value shifting means for shifting the digit to the lower digit side, and the number of shifts C (C is a positive integer including 0) is 0
In this case, the content of the second ignition position storage memory storing the lower 8 bits of the ignition count value calculated by the ignition position calculation means is used as it is as the count value of the second counter, and the number of shifts C is 1 or more. In the case of, the second counter count value setting means for setting the content stored in the second ignition position storage memory as the count value of the second counter after the shift, and setting the frequency division ratio to 1 / (2 c ), And counting the count value set in the second counter at a frequency obtained by dividing the reference clock frequency by the set division ratio when the reference rotation angle position is detected. An ignition device for an internal combustion engine, comprising: second counter control means for performing an operation, wherein the ignition signal is generated when the counting operation of the second counter is completed.
はダウンカウンタからなり、 前記回転数記憶手段は、第1のカウンタがクリアされる
直前における該第1のカウンタの計数値の下位8ビット
の各桁を反転させて得た2進数に1を加えることにより
前記回転数計測用計数値の下位8ビットを得ることを特
徴とする請求項1または2に記載の内燃機関用点火装
置。3. The first counter and the second counter comprise a down counter, and the rotation speed storage means stores the lower 8 bits of a count value of the first counter immediately before the first counter is cleared. The ignition device for an internal combustion engine according to claim 1 or 2, wherein the lower 8 bits of the rotation speed measurement count value are obtained by adding 1 to a binary number obtained by inverting each digit of the internal combustion engine.
が設定値を超えているか否かを判定する回転数判定手段
と、前記回転数判定手段により回転数が設定値を超えて
いると判定されたときには前記第2のカウンタの計数動
作を許可して該第2のカウンタの計数動作が完了したと
きに点火信号を発生させ、回転数が設定値以下であると
判定されたときには前記第2のカウンタの計数動作を禁
止して前記固定点火位置信号により固定点火位置が検出
されたときに点火信号を発生させる点火信号切り替え手
段とを更に備えていることを特徴とする請求項1,2ま
たは3のいずれかに記載の内燃機関用点火装置。4. The engine according to claim 1, wherein the ignition signal generating means determines whether the engine speed exceeds a set value, and determines whether the engine speed exceeds the set value. When it is determined, the counting operation of the second counter is permitted, and when the counting operation of the second counter is completed, an ignition signal is generated. When it is determined that the rotation speed is equal to or less than the set value, the second operation is performed. 2. An ignition signal switching means for inhibiting the counting operation of the second counter and generating an ignition signal when a fixed ignition position is detected by the fixed ignition position signal. Or the ignition device for an internal combustion engine according to any of 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11989895A JP3209038B2 (en) | 1995-05-18 | 1995-05-18 | Ignition device for internal combustion engine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11989895A JP3209038B2 (en) | 1995-05-18 | 1995-05-18 | Ignition device for internal combustion engine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08312511A JPH08312511A (en) | 1996-11-26 |
| JP3209038B2 true JP3209038B2 (en) | 2001-09-17 |
Family
ID=14772960
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11989895A Expired - Lifetime JP3209038B2 (en) | 1995-05-18 | 1995-05-18 | Ignition device for internal combustion engine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3209038B2 (en) |
-
1995
- 1995-05-18 JP JP11989895A patent/JP3209038B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08312511A (en) | 1996-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0024733A2 (en) | Method and system for operating an internal combustion engine at maximum torque under varying operating conditions | |
| US4175507A (en) | Electronic ignition timing control system for internal combustion engine | |
| JPH0531672B2 (en) | ||
| US5020506A (en) | Engine igniter | |
| JPH0311421Y2 (en) | ||
| JP3209038B2 (en) | Ignition device for internal combustion engine | |
| US5584280A (en) | Ignition device of capacitor discharge type for internal combustion engine | |
| US4452206A (en) | Ignition timing control system for internal combustion engines | |
| JPS6220379B2 (en) | ||
| JP3412466B2 (en) | Ignition device for internal combustion engine | |
| JPH0726602B2 (en) | Ignition device for internal combustion engine | |
| JP2797408B2 (en) | Ignition device for internal combustion engine | |
| JPS592796B2 (en) | Ignition system for internal combustion engines | |
| JP3125563B2 (en) | Capacitor discharge type ignition device for internal combustion engine | |
| JP3498503B2 (en) | Ignition method for internal combustion engine and ignition device for internal combustion engine | |
| JPS58202372A (en) | Ignition angle advancing device for internal combustion engine | |
| JP3125577B2 (en) | Capacitor discharge type ignition device for internal combustion engine | |
| JPS6132151Y2 (en) | ||
| JP3089938B2 (en) | Capacitor discharge type ignition system for internal combustion engine | |
| JP3119120B2 (en) | Capacitor discharge type ignition system for internal combustion engine | |
| JP2725465B2 (en) | Internal combustion engine control device | |
| JPS6123869A (en) | Ignition-timing controller | |
| JPH09236071A (en) | Ignition device for internal combustion engine | |
| SU1523704A1 (en) | Device for automatic control of ignition in ic engine | |
| JPH0726606B2 (en) | Ignition device for internal combustion engine |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20010612 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070713 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080713 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090713 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090713 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100713 Year of fee payment: 9 |