Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0816459B2 - Engine controller - Google Patents
[go: Go Back, main page]

JPH0816459B2 - Engine controller - Google Patents

Engine controller

Info

Publication number
JPH0816459B2
JPH0816459B2 JP60008818A JP881885A JPH0816459B2 JP H0816459 B2 JPH0816459 B2 JP H0816459B2 JP 60008818 A JP60008818 A JP 60008818A JP 881885 A JP881885 A JP 881885A JP H0816459 B2 JPH0816459 B2 JP H0816459B2
Authority
JP
Japan
Prior art keywords
engine
interrupt processing
processing
rotation
interrupt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60008818A
Other languages
Japanese (ja)
Other versions
JPS61169644A (en
Inventor
治人 御友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP60008818A priority Critical patent/JPH0816459B2/en
Publication of JPS61169644A publication Critical patent/JPS61169644A/en
Publication of JPH0816459B2 publication Critical patent/JPH0816459B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Control By Computers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、燃料噴射量や点火時期等の制御データをエ
ンジンの状態に応じて求め、該制御データに基づいてエ
ンジンを制御するエンジンの制御装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial application] The present invention obtains control data such as fuel injection amount and ignition timing according to the state of the engine, and controls the engine based on the control data. It relates to the device.

〔従来技術〕[Prior art]

内燃機関の制御装置において、燃料噴射量や点火時期
等の制御データは、エンジンの回転に同期してコンピュ
ータの演算処理で求め、この制御データに基づいてエン
ジンを制御する方法がエンジンの急変時(加速)の追従
性などの点からも望ましい。従来この種の制御技術とし
ては特開昭55−84860号公報に開示されたものがあり、
エンジンの所定回転角度に同期して割込み処理を実行さ
せ、該割込み処理で各種の演算処理を実行している。
In a control device for an internal combustion engine, control data such as a fuel injection amount and an ignition timing is obtained by arithmetic processing of a computer in synchronization with the rotation of the engine, and a method of controlling the engine based on the control data is used when the engine suddenly changes ( It is also desirable from the point of view of acceleration). Conventionally, as this type of control technology, there is one disclosed in JP-A-55-84860,
Interrupt processing is executed in synchronization with a predetermined rotation angle of the engine, and various arithmetic processing is executed by the interrupt processing.

ところで、エンジンの回転数と所定回転角度の経過時
間は第2図に示す関係にあり(この場合の所定回転角度
は180度である)、図示するように低回転(1000RPM)で
は15msecであった角度経過時間は、高回転(6000RPM)
では2、5msecになってしまう。このことは割込み処理
で実行できる処理時間が低回転と高回転では大きな差が
あり、エンジンを低回転から高回転まで同期して演算処
理させるには高回転の角度経過時間内に割込み処理の実
行時間をおさえる必要があった。しかしエンジンの回転
変動が大きい低回転では、変動に対して追従性を向上さ
せるため、演算処置の内容を向上させる(割込み処理の
実行時間を長くする)必要がある。このような問題点の
解決方法としては、回転数により演算処理の内容を変化
させる方法があり、高回転に比べて低回転において密度
の濃い演算処理をしてエンジンの変動に対する追従性を
向上させていた。
By the way, the engine speed and the elapsed time of the predetermined rotation angle have the relationship shown in FIG. 2 (the predetermined rotation angle in this case is 180 degrees), and as shown in the figure, it was 15 msec at low rotation (1000 RPM). High angle rotation time (6000RPM)
Then it becomes 2.5msec. This means that the processing time that can be executed by interrupt processing has a large difference between low rotation and high rotation, and in order to synchronously perform arithmetic processing from low rotation to high rotation, execution of interrupt processing within the high rotation angle elapsed time I needed to save time. However, in the low rotation speed where the engine rotation fluctuation is large, it is necessary to improve the content of the arithmetic processing (to increase the execution time of the interrupt processing) in order to improve the followability to the fluctuation. As a method of solving such a problem, there is a method of changing the content of the arithmetic processing depending on the number of revolutions, which improves the followability to the fluctuation of the engine by performing the dense arithmetic operation at the low revolution as compared to the high revolution. Was there.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかしながら、上記のように演算処理の内容を変化
(処理を切換える)させる制御方法でも、エンジンの急
変(加速)時に割込み処理中に次の割込みが発生して次
回割込み処理が遅延しないようにするために、実際の切
換え回転数よりも低い回転側に設定していた。このため
密度の濃い演算処理が可能な回転数が制限され、エンジ
ンの回転変動に対する追従性についても不充分となると
いう欠点があった。
However, even with the control method that changes the contents of arithmetic processing (switches processing) as described above, in order to prevent the next interrupt processing from being delayed during the interrupt processing when the engine suddenly changes (acceleration), the next interrupt processing is delayed. In addition, the rotation side was set lower than the actual switching rotation speed. For this reason, there is a drawback that the number of revolutions that can be densely calculated is limited, and the followability to the engine rotation fluctuation is insufficient.

本発明は、上述の点にかんがみてなされたもので、エ
ンジンの所定回転角度に同期して行なう割込み処理にお
いて、低回転から高回転までの角度経過時間が有効に利
用でき、エンジンの変動に対する追従性の向上を図った
エンジンの制御装置を提供することにある。
The present invention has been made in view of the above points, and in interrupt processing performed in synchronization with a predetermined rotation angle of the engine, the angle elapsed time from low rotation to high rotation can be effectively used, and tracking of engine fluctuations can be performed. It is to provide a control device for an engine that is improved in performance.

〔問題点を解決するための手段〕[Means for solving problems]

上記問題点を解決するため本発明は、各種センサから
入力されるエンジンの状態を示す信号を制御部でエンジ
ンの所定回転角度に同期して割込み処理を実行し、エン
ジンの制御データを求め、該制御データによりエンジン
を制御するエンジン制御装置において、制御部で割込み
処理を実行中に割込み処理要求が再度発生したとき、現
割込み処理をスタックポインタの書換えにより強制的に
終了させ次回割込み処理を優先的に実行する手段を設け
たことを特徴とする。
In order to solve the above-mentioned problems, the present invention performs interrupt processing in synchronization with a predetermined rotation angle of the engine by a signal indicating the state of the engine input from various sensors, obtains control data of the engine, In an engine control device that controls the engine with control data, when an interrupt processing request occurs again while the controller is executing interrupt processing, the current interrupt processing is forcibly ended by rewriting the stack pointer and the next interrupt processing is given priority. It is characterized in that means for executing is provided.

〔作用〕[Action]

エンジンの制御装置を上記のように構成することによ
り、割込み処理を実行中に割込み処理要求が再度発生し
たときは現実行中の割込み処理をスタックポインタの書
換えにより強制的に終了させ次回割込み処理を優先的に
実行させるから、エンジンの回転数が変化しても割込み
処理が遅延なく実行することが可能となり、角度経過時
間が低回転から高回転まで有効に割込み処理に利用でき
る。
By configuring the engine controller as described above, when an interrupt processing request occurs again during interrupt processing, the interrupt processing currently being executed is forcibly ended by rewriting the stack pointer and the next interrupt processing is executed. Since the execution is performed with priority, the interrupt processing can be executed without delay even if the engine speed changes, and the angle elapsed time can be effectively used for the interrupt processing from low rotation to high rotation.

〔実施例〕〔Example〕

以下、本発明の一実施例を点火時期制御装置を例に説
明する。
An embodiment of the present invention will be described below by taking an ignition timing control device as an example.

第1図は、本発明の一実施例をなす点火時期制御装置
のシステム構成を示すブロック図である。点火時期制御
装置1は、A/D変換器2、制御回路3、波形整形回路
4、出力制御回路5から構成される。A/D変換器2に
は、エンジン負荷を検出する負圧センサからの負圧信号
PB、エンジンの温度を検出する水温センサからの水温信
号TW、制御装置1の電源となるバッテリー電圧信号VBが
入力され、波形整形回路4には、エンジンの回転数およ
び回転角度位置を検出するセンサからの基準信号P1と角
度信号P2が入力される。A/D変換器2に入力される負圧
信号PB、水温信号TW、バッテリ信号VBは、該A/D変換器
2によって、アナログ信号からデイジタル信号に変換さ
れ、制御回路3を構成するコンピュータのRAMに格納さ
れる。また、波形整形回路4に入力されるエンジンの回
転に同期する基準信号P1と角度信号P2は、該波形整形回
路4によって、“1"、“0"のデイジタル値に整形され、
制御回路3に入力される。角度信号P2は、割込み信号と
して用いエンジンの回転に同期した割込み処理を起動
し、基準信号P1は、回転位置を検出するために用いられ
る。
FIG. 1 is a block diagram showing the system configuration of an ignition timing control device that constitutes an embodiment of the present invention. The ignition timing control device 1 includes an A / D converter 2, a control circuit 3, a waveform shaping circuit 4, and an output control circuit 5. The A / D converter 2 receives a negative pressure signal from a negative pressure sensor that detects the engine load.
PB, a water temperature signal TW from a water temperature sensor that detects the temperature of the engine, and a battery voltage signal VB that is a power source of the control device 1 are input, and the waveform shaping circuit 4 is a sensor that detects the rotational speed and rotational angle position of the engine. The reference signal P1 and the angle signal P2 from are input. The negative pressure signal PB, the water temperature signal TW, and the battery signal VB that are input to the A / D converter 2 are converted from analog signals to digital signals by the A / D converter 2 and are stored in a computer that constitutes the control circuit 3. Stored in RAM. Further, the reference signal P1 and the angle signal P2, which are input to the waveform shaping circuit 4 and are synchronized with the rotation of the engine, are shaped by the waveform shaping circuit 4 into digital values of "1" and "0",
It is input to the control circuit 3. The angle signal P2 is used as an interrupt signal to activate an interrupt process synchronized with the rotation of the engine, and the reference signal P1 is used to detect the rotational position.

上記のように制御回路3に入力された負圧信号PB、水
温信号TW、バッテリー電圧信号VBからエンジンの状態を
検出し、点火時期制御の制御データである点火時期と通
電時期とを制御回路3を構成するコンピュータの割込み
処理により求める。この点火時期、通電時期に関する制
御データから出力回路5へON/OFF信号を与え、該出力回
路5で該ON/OFF信号を増幅してデイストリビュータを通
じて点火コイルを制御する。
As described above, the engine state is detected from the negative pressure signal PB, the water temperature signal TW, and the battery voltage signal VB input to the control circuit 3, and the ignition timing and the energization timing, which are the control data for the ignition timing control, are controlled by the control circuit 3 It is obtained by the interrupt processing of the computer that constitutes An ON / OFF signal is given to the output circuit 5 from the control data relating to the ignition timing and the energization timing, and the ON / OFF signal is amplified by the output circuit 5 to control the ignition coil through the distributor.

第3図は割込み処理の流れを示すフローチャートであ
る。次に該フローチャートを用いて割込み処理の処理方
法を具体的に説明する。
FIG. 3 is a flowchart showing the flow of interrupt processing. Next, a processing method of interrupt processing will be specifically described with reference to the flowchart.

まずはじめに、低回転における処理について説明す
る。割込み処理が起動され実行が開始され(ステップ10
0)、次に該割込みが割込み中の割込みか否かを判定し
(ステップ101)、通常はNOであるから、レジスタ保護
を行うと同時に現スタック・ポインタ値の保護も行う
(ステップ102)。次にエンジンが高回転(6000RPM以
上)かを判定し(ステップ103)、低回転なので処理A
を実行し(ステップ104)、割込み処理ごとに演算処理
する演算を行った後、以降において割込みを許可する命
令を実行する(ステップ105)。次に再割込みによる演
算処理が中断されてもよい演算を行い(ステップ10
6)、前記ステップ102でレジスタに保護した内容を復帰
し(ステップ107)、割込み処理を終了させる。
First, the processing at low rotation will be described. Interrupt processing is started and execution is started (step 10
0) Then, it is judged whether or not the interrupt is an interrupt being interrupted (step 101). Since it is normally NO, register protection is performed and at the same time the current stack pointer value is also protected (step 102). Next, it is judged whether the engine is high rotation (6000 RPM or higher) (step 103), and it is low rotation, so processing A
Is executed (step 104), and after performing an arithmetic operation for each interrupt processing, an instruction for permitting an interrupt is executed thereafter (step 105). Next, a calculation that may be interrupted by the re-interruption is performed (step 10
6) The contents protected in the register in step 102 are restored (step 107), and the interrupt processing is terminated.

次に高回転における処理の流れについて説明する。割
込み処理の前記ステップ100,101,102までは上記低回転
の割込み処理と同じである。ステップ103においては高
回転(6000RPM以上)なのでYESの判定をして処理Cに進
む(ステップ110)、処理Cでは前記ステップ104の処理
Aの内容と前記ステップ106の処理Bの内容との一部を
実行し、前記ステップ107およびステップ108へと進む。
Next, the flow of processing at high rotation will be described. The steps up to the steps 100, 101 and 102 of the interruption processing are the same as the low rotation interruption processing. In step 103, since the rotation speed is high (6000 RPM or more), the determination is YES and the process proceeds to step C (step 110). In step C, the contents of the process A of step 104 and the contents of the process B of step 106 are partly described. Is executed and the process proceeds to step 107 and step 108.

最後に割込み処理中に次回割込みが発生したときの動
作について説明する。前記ステップ105の再割込みの許
可後に次回割込みが発生したときは、ステップ100へジ
ャンプする。次にステップ101において割込み中の判定
をうけ、ステップ109に進み該ステップ109において、前
回割込み処理のステップ102にて保護されたスタック・
ポインタ値をスタック・ポインタにセットする。これに
より前回割込み処理を強制的に終了させることができ、
かつ今回割込み処理も遅延なく実行できる。以下の処理
は高回転処理となる。
Finally, the operation when the next interrupt occurs during the interrupt processing will be described. When the next interrupt occurs after the re-interruption is permitted in step 105, the process jumps to step 100. Next, in step 101, it is judged that an interrupt is in progress, and the process proceeds to step 109, in which the stack protected in step 102 of the previous interrupt processing is
Set the pointer value to the stack pointer. This allows you to forcefully terminate the previous interrupt process,
Moreover, this time interrupt processing can also be executed without delay. The following processing is high rotation processing.

上記割込み処理は、制御回路3を構成するコンピュー
タのROMに格納されたプログラムにより実行される。
The interrupt processing is executed by a program stored in the ROM of the computer that constitutes the control circuit 3.

なお上記実施例においては、点火時期制御装置を例に
説明したが、本発明のエンジンの制御装置に関する技術
はこれに限定されるものではなく、たとえば燃料噴射量
の制御等にも適用できることは当然である。
In the above embodiment, the ignition timing control device has been described as an example, but the technology relating to the engine control device of the present invention is not limited to this, and it goes without saying that it can be applied to, for example, control of the fuel injection amount. Is.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、割込み処理を実
行中に割込み処理要求が再度発生したとき、現割込み処
理をスタックポインタの書換えにより強制的に終了させ
次回割込み処理を優先的に実行するので、エンジンの回
転数が変化しても割込み処理が遅延なく実行でき、且つ
所定角度経過時間が低回転から高回転まで有効に割込み
処理に利用できる。従ってこの種のエンジンの制御装置
の処理能力とエンジンの変動の追従性の向上を図ること
ができるという優れた効果が得られる。
As described above, according to the present invention, when the interrupt processing request is generated again during the execution of the interrupt processing, the current interrupt processing is forcibly ended by rewriting the stack pointer and the next interrupt processing is preferentially executed. The interrupt processing can be executed without delay even if the engine speed changes, and the predetermined angle elapsed time can be effectively used for the interrupt processing from low rotation to high rotation. Therefore, it is possible to obtain an excellent effect that the processing ability of the engine control device of this type and the followability of the variation of the engine can be improved.

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

第1図は本発明に係る点火時期制御装置の構成を示すブ
ロック図、第2図はエンジンの回転数と所定回転角度の
経過時間の関係を示す図、第3図は第1図に示す点火時
期制御装置の割込み処理の流れを示すフローチャートで
ある。 図中、1……点火時期制御装置、2……A/D変換器、3
……制御回路、4……波形整形回路、5……出力回路。
FIG. 1 is a block diagram showing a configuration of an ignition timing control device according to the present invention, FIG. 2 is a diagram showing a relationship between an engine speed and an elapsed time of a predetermined rotation angle, and FIG. 3 is an ignition shown in FIG. It is a flow chart which shows a flow of interruption processing of a timing control device. In the figure, 1 ... Ignition timing control device, 2 ... A / D converter, 3
...... Control circuit, 4 …… Wave shaping circuit, 5 …… Output circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】各種センサから入力されるエンジンの状態
を示す信号を制御部でエンジンの所定回転角度に同期し
て割込み処理を実行し、エンジンの制御データを求め、
該制御データによりエンジンを制御するエンジン制御装
置において、 前記制御部で割込み処理を実行中に割込み処理要求が再
度発生したとき、現割込み処理をスタックポインタの書
換えにより強制的に終了させ次回割込み処理を優先的に
実行する手段を設けたことを特徴とするエンジンの制御
装置。
1. A control unit executes an interrupt process in synchronization with a predetermined rotation angle of the engine by a signal input from various sensors to indicate an engine control data.
In the engine control device for controlling the engine by the control data, when an interrupt processing request is generated again while the interrupt processing is being executed in the control unit, the current interrupt processing is forcibly ended by rewriting the stack pointer and the next interrupt processing is performed. An engine control device, characterized in that means for preferentially executing is provided.
JP60008818A 1985-01-21 1985-01-21 Engine controller Expired - Lifetime JPH0816459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60008818A JPH0816459B2 (en) 1985-01-21 1985-01-21 Engine controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60008818A JPH0816459B2 (en) 1985-01-21 1985-01-21 Engine controller

Publications (2)

Publication Number Publication Date
JPS61169644A JPS61169644A (en) 1986-07-31
JPH0816459B2 true JPH0816459B2 (en) 1996-02-21

Family

ID=11703388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60008818A Expired - Lifetime JPH0816459B2 (en) 1985-01-21 1985-01-21 Engine controller

Country Status (1)

Country Link
JP (1) JPH0816459B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55137320A (en) * 1979-04-13 1980-10-27 Hitachi Ltd Engine controller

Also Published As

Publication number Publication date
JPS61169644A (en) 1986-07-31

Similar Documents

Publication Publication Date Title
EP0023632A1 (en) Method for controlling the amount of fuel supply for an engine
US4520783A (en) Method of controlling fuel injection and apparatus therefor
JP2000047883A (en) Task control method and recording medium
JPH06100155B2 (en) Calculation processing method of engine control device
JP2804109B2 (en) Ignition system for ship propulsion
JPH0816459B2 (en) Engine controller
JPH0544525Y2 (en)
JP2629204B2 (en) Ignition timing control device for internal combustion engine
JPS63124867A (en) Control device for engine
JP3104526B2 (en) Apparatus and method for controlling ignition timing of internal combustion engine
JP2000347882A (en) Processing unit for control program
JP2003345404A (en) Electronic control unit, program
JP2625763B2 (en) Ignition timing control device for internal combustion engine
JP2627153B2 (en) Ignition timing control device
JPS61169665A (en) Ignition timing control device in internal-combustion engine
JPH01106933A (en) Control device for air-fuel ratio of internal combustion engine
JPH0524342B2 (en)
JP2753833B2 (en) Knock control method
JPH05321728A (en) Internal combustion engine throttle opening controlling method
JP2580000B2 (en) Knock control method and device
JPH0527956A (en) Engine control processor
JPH0147613B2 (en)
JPS58206837A (en) Device for controlling injection advance of diesel engine
JPH0261353A (en) Fuel injection controller and method thereof
JPS63243458A (en) Knocking controller for internal combustion engine

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term