JP2000347882A - Processor for control program - Google Patents

Processor for control program

Info

Publication number
JP2000347882A
JP2000347882A JP11159528A JP15952899A JP2000347882A JP 2000347882 A JP2000347882 A JP 2000347882A JP 11159528 A JP11159528 A JP 11159528A JP 15952899 A JP15952899 A JP 15952899A JP 2000347882 A JP2000347882 A JP 2000347882A
Authority
JP
Japan
Prior art keywords
thinning
processing
control program
processing load
nelrn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11159528A
Other languages
Japanese (ja)
Inventor
Kaname Kura
要 倉
Tomoyuki Kashiwagi
智之 柏木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP11159528A priority Critical patent/JP2000347882A/en
Publication of JP2000347882A publication Critical patent/JP2000347882A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a processor for control program which can be operated up to the limit of its processing capacity. SOLUTION: Processes A and B of the control program as base processes are so set that the priority of the process A is higher than the priority of the process B. In a process load measuring process (S201), the round time needed for single repetition of the base processes is measured and then the process load on the processor (CPU) corresponding to the round time is measured. In a thinning-out learning process (S202), conditions of a thinning-out process (thinning-out decision rotational frequency NELRN and thinning-out frequency N) are learnt according to the measured process load and then the conditions of the thinning-out process are changed and set again according to the process load. In thinning-out processes (S204 to S206), the process B (S208) is performed without being thinned out when the conditions of the thinning-out process set again in the thinning-out learning process are met (YES at S204 and YES at S206).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は制御プログラムの処
理装置に係り、詳しくは、優先順位の異なる複数の制御
プログラムを優先順位の高いものから順次処理する制御
プログラムの処理装置に関するものである。
The present invention relates to a control program processing device, and more particularly to a control program processing device for sequentially processing a plurality of control programs having different priorities in descending order of priority.

【0002】[0002]

【従来の技術】例えば、車両のエンジン制御等において
は、車両各部からのセンサ信号あるいは所定周期のタイ
マ信号に対して、全ての制御プログラムの処理を電子制
御装置(ECU)内のCPUにて常時行うようにした場
合、エンジンの高回転時等にはCPUの処理能力を越え
ることがある。
2. Description of the Related Art For example, in engine control of a vehicle, a CPU in an electronic control unit (ECU) constantly processes all control programs in response to sensor signals from various parts of the vehicle or timer signals of a predetermined period. In such a case, the processing capacity of the CPU may be exceeded when the engine rotates at a high speed.

【0003】そこで、特開昭60−3462号公報に開
示されるように、エンジンの種々の作動パラメータの検
出値信号をマイクロコンピュータに入力し、エンジンの
回転に同期してこれらのパラメータの検出値信号の所定
の処理を行うと共に、前記パラメータ検出値に基づいて
エンジンの作動の制御量の基本量およびその補正量の演
算を行う際に、エンジン回転数を検出し、エンジン回転
数の検出値に基づいてエンジン回転数が所定回転数以上
であるか否かを判別し、エンジン回転数が前記所定回転
数以上であると判別したときに前記所定の処理および所
定の演算の少なくとも一部を行わないようにする内燃エ
ンジンの作動パラメータ信号の処理および演算方法が提
案されている。
Therefore, as disclosed in Japanese Patent Application Laid-Open No. 60-3462, detected value signals of various operating parameters of the engine are input to a microcomputer, and the detected values of these parameters are synchronized with the rotation of the engine. When performing a predetermined process of the signal and calculating the basic amount of the control amount of the engine operation and the correction amount thereof based on the parameter detection value, the engine speed is detected and the detected value of the engine speed is calculated. It is determined whether or not the engine speed is equal to or higher than a predetermined engine speed, and at least part of the predetermined processing and the predetermined calculation is not performed when it is determined that the engine speed is equal to or higher than the predetermined engine speed. A method of processing and calculating an operating parameter signal of an internal combustion engine in such a manner has been proposed.

【0004】つまり、同公報に記載の技術は、ECU内
のCPUで処理する複数の制御処理プログラム毎に処理
の優先順位を設定しておき、エンジン回転数が所定回転
数以上のときには、優先順位の低い制御プログラムの処
理を間引いて行わないようにするものである。尚、エン
ジン回転数の前記所定回転数は、CPUの処理負荷の最
大値(処理負荷限界)に対応した固定値に設定されてい
る。これは、前記所定回転数を、CPUの処理負荷限界
を越える値に対応して設定した場合、エンジンの高回転
時等にはCPUの処理能力を越えるおそれがあるためで
ある。
That is, according to the technique described in the publication, priorities of processing are set for each of a plurality of control processing programs executed by a CPU in an ECU, and when the engine speed is equal to or higher than a predetermined speed, the priorities are set. This is to prevent the processing of the control program having a low level from being skipped. The predetermined engine speed is set to a fixed value corresponding to the maximum processing load (processing load limit) of the CPU. This is because if the predetermined number of revolutions is set corresponding to a value exceeding the processing load limit of the CPU, the processing capacity of the CPU may be exceeded when the engine is running at a high speed.

【0005】[0005]

【発明が解決しようとする課題】エンジン制御において
は、エンジン回転数が同じであっても、エンジンの制御
状態(運転状態)によりECU内のCPUの処理負荷が
変動し、CPUの処理負荷が小さくなった場合、CPU
の処理能力の限界値も上がり、優先順位の低い制御プロ
グラムを間引かなくともよくなることがある。
In the engine control, even if the engine speed is the same, the processing load on the CPU in the ECU varies depending on the control state (operating state) of the engine, and the processing load on the CPU is reduced. CPU
The processing capability limit value may also be increased, and it may not be necessary to skip control programs with lower priorities.

【0006】しかし、前記公報に記載の技術では、前記
所定回転数がCPUの処理負荷の最大値に対応した固定
値に設定されているため、エンジンの制御状態によりエ
ンジンにかかる負荷が小さくなった場合に、CPUの処
理能力に余裕が生じ、優先順位の低い制御プログラムを
も処理可能になっているにもかかわらず、優先順位の低
い制御プログラムを間引いて行わないことがある。つま
り、同公報に記載の技術では、優先順位の低い制御プロ
グラムを間引くための前記所定回転数を実際のCPUの
処理負荷によらずに固定値に設定しているため、CPU
の処理能力の限界まで制御プログラムを動作させること
ができないという問題があった。
However, according to the technology described in the above publication, the predetermined rotational speed is set to a fixed value corresponding to the maximum value of the processing load of the CPU, so that the load on the engine is reduced depending on the control state of the engine. In such a case, there is a case where the processing capacity of the CPU has a margin and the control program with a low priority is not thinned out even though the control program with a low priority can be processed. In other words, according to the technology described in the publication, the predetermined number of revolutions for thinning out control programs with low priorities is set to a fixed value regardless of the actual processing load of the CPU.
However, there has been a problem that the control program cannot be operated up to the limit of the processing capacity.

【0007】本発明は上記問題点を解決するためになさ
れたものであって、その目的は、処理能力の限界まで動
作させることが可能な制御プログラムの処理装置を提供
することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a control program processing apparatus capable of operating up to the limit of processing capacity.

【0008】[0008]

【課題を解決するための手段】かかる目的を達成するた
めになされた請求項1に記載の発明は、複数の制御プロ
グラム毎に処理の優先順位を設定しておき、優先順位の
高い制御プログラムから順次処理を行う制御プログラム
の処理装置であり、実行手段、間引き手段、計測手段、
学習手段を備えている。実行手段は、優先順位の高い制
御プログラムから順次処理を実行する。間引き手段は、
設定された間引きの条件を満足する場合に、複数の制御
プログラムのうち優先順位の低い制御プログラムの処理
を間引くことにより、その間引いた制御プログラムの処
理を前記実行手段に実行させないようにする。計測手段
は、処理装置における制御プログラムの処理負荷を計測
する。学習手段は、前記計測手段により計測された処理
負荷に基づいて、前記間引き手段における間引きの条件
を学習することにより、前記処理負荷に応じて当該間引
きの条件を変更して設定し直す。
According to the first aspect of the present invention, there is provided a method for setting a priority of processing for each of a plurality of control programs, and starting with a control program having a higher priority. A processing device for a control program that performs sequential processing, and includes an execution unit, a thinning unit, a measurement unit,
It has learning means. The execution means executes the processing sequentially from the control program having the higher priority. The thinning means is
When the set thinning condition is satisfied, the processing of the control program with a lower priority order among the plurality of control programs is thinned out so that the execution means does not execute the processing of the thinned out control program. The measuring means measures the processing load of the control program in the processing device. The learning means learns the thinning conditions in the thinning means based on the processing load measured by the measuring means, and changes and resets the thinning conditions in accordance with the processing load.

【0009】従って、本発明によれば、実際の処理装置
の処理負荷を計測し、その処理負荷に基づいて制御プロ
グラムの間引きの条件を学習し、処理負荷の大小に応じ
て当該間引きの条件を可変することにより、処理装置の
処理能力の限界まで制御プログラムを動作させることが
できる。
Therefore, according to the present invention, the processing load of the actual processing device is measured, the conditions for thinning out the control program are learned based on the processing load, and the conditions for thinning out the control program are determined according to the magnitude of the processing load. By making it variable, the control program can be operated up to the limit of the processing capacity of the processing device.

【0010】ところで、請求項2に記載の発明のよう
に、請求項1に記載の制御プログラムの処理装置におい
て、前記計測手段は、前記複数の制御プログラムの処理
が繰り返し行われる際に、その1回の繰り返しに要する
周回時間を計測することにより、当該周回時間に対応し
た前記処理負荷を計測するようにしてもよい。
According to a second aspect of the present invention, in the control program processing device according to the first aspect, when the processing of the plurality of control programs is performed repeatedly, The processing load corresponding to the circulation time may be measured by measuring the circulation time required for the repetition.

【0011】このようにすれば、処理装置の処理負荷を
簡単かつ容易に計測することができる。また、請求項3
に記載の発明のように、請求項1または請求項2に記載
の制御プログラムの処理装置において、前記学習手段
は、前記計測手段により計測された処理負荷に基づい
て、当該処理負荷が小さい場合は前記間引き手段におけ
る間引きの条件を緩い条件に変更して設定し直し、当該
処理負荷が大きい場合は前記間引きの条件を厳しい条件
に変更して設定し直せばよい。
In this way, the processing load on the processing device can be measured simply and easily. Claim 3
In the control program processing device according to claim 1 or 2, the learning means, based on the processing load measured by the measuring means, when the processing load is small, The thinning condition in the thinning means may be changed to a loose condition and reset, and when the processing load is large, the thinning condition may be changed to a strict condition and reset.

【0012】このようにすれば、処理装置の処理負荷が
小さく、処理装置の処理能力に余裕のある場合は、優先
順位の低い制御プログラムを間引くことなく実行するこ
とが可能になる。また、処理装置の処理負荷が大きく、
処理装置の処理能力に余裕のない場合は、優先順位の低
い制御プログラムを間引くことにより、処理装置の処理
負荷が軽減されるため、優先順位の高い制御プログラム
を確実に実行することが可能になる。
In this way, when the processing load of the processing device is small and the processing capability of the processing device has a margin, it is possible to execute a control program with a low priority without thinning out. Also, the processing load of the processing device is large,
When the processing capacity of the processing device is insufficient, the processing load on the processing device is reduced by thinning out the control programs with low priorities, so that the control program with high priority can be reliably executed. .

【0013】ところで、請求項4に記載の発明のよう
に、請求項1〜3のいずれか1項に記載の制御プログラ
ムの処理装置において、前記複数の制御プログラムはエ
ンジンの制御プログラムであり、前記間引き手段におけ
る間引きの条件はエンジン回転数に基づいて設定され、
前記実行手段は、前記計測手段により計測された処理負
荷が小さい場合は、エンジン回転数の大きな領域まで優
先順位の低い制御プログラムの処理を間引くことなく実
行し、前記処理負荷が大きい場合は優先順位の低い制御
プログラムの処理を間引くことにより優先順位の高い制
御プログラムの処理を実行するようにしてもよい。
According to a fourth aspect of the present invention, in the control program processing device according to any one of the first to third aspects, the plurality of control programs are engine control programs. The thinning conditions in the thinning means are set based on the engine speed,
When the processing load measured by the measurement unit is small, the execution unit executes the processing of the control program with a low priority without thinning out to a region where the engine speed is large. The processing of a control program with a higher priority may be executed by thinning out the processing of a control program with a lower priority.

【0014】エンジン制御においては、エンジン回転数
が同じであっても、エンジンの制御状態(運転状態)に
よりECU内のCPUの処理負荷が変動し、CPUの処
理負荷が小さくなった場合、CPUの処理能力の限界値
も上がり、優先順位の低い制御プログラムを間引かなく
ともよくなることがある。そこで、請求項4に記載の発
明によれば、このような場合にも優先順位の低い制御プ
ログラムを間引くことなく実行することが可能になり、
請求項1〜3のいずれか1項に記載の発明の効果を十分
に顕在化させることができる。
In engine control, even if the engine speed is the same, if the processing load on the CPU in the ECU fluctuates due to the control state (operating state) of the engine and the processing load on the CPU decreases, In some cases, the limit value of the processing capacity also increases, so that it is not necessary to thin out control programs with low priorities. Therefore, according to the invention of claim 4, in such a case, it is possible to execute a control program with a low priority without thinning out.
The effect of the invention described in any one of claims 1 to 3 can be sufficiently brought out.

【0015】尚、以下に述べる発明の実施の形態におい
て、特許請求の範囲または課題を解決するための手段に
記載の「実行手段」はECU1におけるS203,S2
08の各処理に該当し、同じく「間引き手段」はECU
1におけるS204〜S206の各処理に該当し、同じ
く「計測手段」はECU1におけるS201の処理に該
当し、同じく「学習手段」はECU1におけるS202
の処理に該当し、同じく「間引きの条件」は間引き判定
回転数NELRNおよび間引き回数Nに該当する。
In the embodiments of the invention described below, the "executing means" described in claims or means for solving the problems corresponds to S203, S2 in the ECU 1.
08, and the “thinning-out means” is also the ECU
1, the "measurement means" corresponds to the processing of S201 in the ECU 1, and the "learning means" also corresponds to S202 in the ECU 1.
Similarly, the “thinning condition” corresponds to the thinning determination rotation speed NELRN and the thinning frequency N.

【0016】[0016]

【発明の実施の形態】以下、本発明を車両のエンジンの
電子制御装置に具体化した一実施形態を図面と共に説明
する。図2は、本実施形態の電子制御装置(ECU)1
の入出力系統を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is embodied in an electronic control unit for a vehicle engine will be described below with reference to the drawings. FIG. 2 shows an electronic control unit (ECU) 1 according to the embodiment.
FIG. 2 is a block diagram showing an input / output system of FIG.

【0017】エアフィルタFから吸入された空気は、吸
気管2内に配設された燃料噴射弁3から噴射された燃料
と混合されて混合気となり、その混合気は吸気管2内に
配設されたスロットル制御弁4からインテークマニホー
ルド5を通って車両のエンジンEの各気筒(図示略)へ
流入する。そして、エンジンEの各気筒からの排気は、
排気管6から消音器7を通って排出される。
The air sucked from the air filter F is mixed with the fuel injected from the fuel injection valve 3 disposed in the intake pipe 2 to form an air-fuel mixture, and the air-fuel mixture is disposed in the intake pipe 2. From the throttle control valve 4, the air flows into each cylinder (not shown) of the engine E of the vehicle through the intake manifold 5. And the exhaust from each cylinder of the engine E is
The gas is exhausted from the exhaust pipe 6 through the silencer 7.

【0018】吸気管2内には、吸気の圧力を検出する吸
気圧力センサ8と、吸気の温度を検出する吸気温センサ
9とが配設されている。水冷式のエンジンEには、冷却
水温を検出する冷却水温センサ10が配設されている。
排気管6内には、空燃比を検出する空燃比センサ11が
配設されている。スロットル制御弁4には、その開度
(スロットル開度)を検出するスロットル開度センサ1
2が接続されている。
In the intake pipe 2, an intake pressure sensor 8 for detecting the pressure of the intake air and an intake temperature sensor 9 for detecting the temperature of the intake air are arranged. The water-cooled engine E is provided with a cooling water temperature sensor 10 for detecting a cooling water temperature.
An air-fuel ratio sensor 11 for detecting an air-fuel ratio is provided in the exhaust pipe 6. The throttle control valve 4 has a throttle opening sensor 1 for detecting its opening (throttle opening).
2 are connected.

【0019】イグナイタ13と点火コイル14との間に
は、各気筒の点火プラグ(図示略)に対してイグナイタ
13で発生した高電圧を順次分配するディストリビュー
タ15が配設されている。ディストリビュータ15は、
エンジンEの所定クランク角毎に高レベル信号を発生す
る回転角センサ16を内蔵している。
A distributor 15 is provided between the igniter 13 and the ignition coil 14 for sequentially distributing the high voltage generated by the igniter 13 to the ignition plug (not shown) of each cylinder. Distributor 15
A rotation angle sensor 16 that generates a high-level signal at every predetermined crank angle of the engine E is built in.

【0020】ECU1には、車載バッテリBATTから
の電源が、直接供給されると共に、イグニッションスイ
ッチIGを介して供給されている。ECU1は、前記各
センサ8,9,10,11,12,16等からのアナロ
グ信号や、ワイパやパワーウィンド等の各種車載装置
(図示略)からのデジタル信号を入力し、これら信号に
基づいてエンジンEの制御のための演算処理を行い、燃
料噴射弁3からの燃料噴射の基本噴射量およびその補正
噴射量を算出して燃料噴射弁3の制御信号を生成して出
力すると共に、イグナイタ13の制御信号を生成して出
力する。
The power from the vehicle-mounted battery BATT is directly supplied to the ECU 1 and also supplied through an ignition switch IG. The ECU 1 receives analog signals from the sensors 8, 9, 10, 11, 12, 16 and the like, and digital signals from various in-vehicle devices (not shown) such as a wiper and a power window, based on these signals. An arithmetic process for controlling the engine E is performed, a basic injection amount of fuel injection from the fuel injection valve 3 and a correction injection amount thereof are calculated, a control signal for the fuel injection valve 3 is generated and output, and the igniter 13 is controlled. And outputs the control signal.

【0021】図1は、ECU1の構成を示すブロック図
である。ECU1は、マイクロコンピュータ21、入力
インタ−フェース回路22〜24、出力インターフェー
ス回路25、電源回路26,27から構成されている。
マイクロコンピュータ21は、CPU31,RAM3
2,ROM33,カウンタ34,タイマ35,A/D変
換器36,入力ポート37,出力ポート38がデータバ
ス39を介して接続されて構成されている。
FIG. 1 is a block diagram showing the configuration of the ECU 1. The ECU 1 includes a microcomputer 21, input interface circuits 22 to 24, an output interface circuit 25, and power supply circuits 26 and 27.
The microcomputer 21 includes a CPU 31 and a RAM 3
2, a ROM 33, a counter 34, a timer 35, an A / D converter 36, an input port 37, and an output port 38 are connected via a data bus 39.

【0022】RAM32はマイクロコンピュータ21の
ワークメモリとして機能し、電源回路26を介して車載
バッテリBATTから電源が直接供給されてバックアッ
プがなされている。また、ROM33には後述するプロ
グラムが格納されている。そして、RAM32を除くマ
イクロコンピュータ21の各構成部材には、車載バッテ
リBATTからイグニッションスイッチIGおよび電源
回路27を介して電源が供給されている。
The RAM 32 functions as a work memory for the microcomputer 21. Power is directly supplied from the vehicle battery BATT via the power supply circuit 26 to provide backup. The ROM 33 stores a program described later. Power is supplied from a vehicle-mounted battery BATT via an ignition switch IG and a power supply circuit 27 to each component of the microcomputer 21 except the RAM 32.

【0023】回転角センサ16からのアナログ信号は、
入力インターフェース回路22を介してマイクロコンピ
ュータ21の入力ポート37に入力され、入力ポート3
7からデータバス39を介してCPU31へ転送され
る。そして、CPU31は、当該回転角センサ16から
のアナログ信号に基づいてエンジンEの回転数(エンジ
ン回転数)NEを算出する。また、回転角センサ16か
らの高レベル信号は、後述する外部入力割込処理の実行
時期を決定するための割込み信号としての作用を有して
いる。
The analog signal from the rotation angle sensor 16 is
The data is input to the input port 37 of the microcomputer 21 via the input interface circuit 22 and the input port 3
7 to the CPU 31 via the data bus 39. Then, the CPU 31 calculates the rotational speed (engine rotational speed) NE of the engine E based on the analog signal from the rotational angle sensor 16. The high-level signal from the rotation angle sensor 16 has an effect as an interrupt signal for determining the execution timing of an external input interrupt process described later.

【0024】前記各センサ8〜12等からのアナログ信
号は、入力インターフェース回路23を介してマイクロ
コンピュータ21のA/D変換器36に入力され、A/
D変換器36によりデジタル信号に変換された後に、デ
ータバス39を介してCPU31へ転送される。
An analog signal from each of the sensors 8 to 12 is input to an A / D converter 36 of the microcomputer 21 via an input interface circuit 23,
After being converted into a digital signal by the D converter 36, the digital signal is transferred to the CPU 31 via the data bus 39.

【0025】各種車載装置(図示略)からのデジタル信
号は、入力インターフェース回路24を介してマイクロ
コンピュータ21に入力され、入力ポート37からデー
タバス39を介してCPU31へ転送される。CPU3
1の算出した燃料噴射弁3からの燃料噴射の基本噴射量
およびその補正噴射量は、データバス39から出力ポー
ト38を介して出力インターフェース回路25へ転送さ
れ、出力インターフェース回路25にて時間幅パルスに
変換されて制御信号が生成され、その制御信号が燃料噴
射弁3へ出力される。また、CPU31の算出したイグ
ナイタ13の制御量は、データバス39から出力ポート
38を介して出力インターフェース回路25へ転送さ
れ、出力インターフェース回路25にて制御信号に変換
されてイグナイタ13へ出力される。
Digital signals from various in-vehicle devices (not shown) are input to the microcomputer 21 via the input interface circuit 24, and are transferred from the input port 37 to the CPU 31 via the data bus 39. CPU3
The calculated basic injection amount of fuel injection from the fuel injection valve 3 and its corrected injection amount are transferred from the data bus 39 to the output interface circuit 25 via the output port 38. And a control signal is generated, and the control signal is output to the fuel injection valve 3. The control amount of the igniter 13 calculated by the CPU 31 is transferred from the data bus 39 to the output interface circuit 25 via the output port 38, converted into a control signal by the output interface circuit 25, and output to the igniter 13.

【0026】次に、上記のように構成された本実施形態
のECU1の動作について説明する。ECU1が起動す
ると、ROM33に記録されているプログラムに従い、
コンピュータによる各種演算処理によって、以下の各ス
テップの処理を実行する。尚、前記プログラムをコンピ
ュータで読み取り可能な記録媒体(半導体メモリ,ハー
ドディスク,フロッピーディスク,データカード(IC
カード,磁気カード等),光ディスク(CD−ROM,
DVD等),光磁気ディスク(MD等),相変化ディス
ク,磁気テープ等)に記録しておき、当該プログラムを
必要に応じてECU1にロードして起動することにより
用いるようにしてもよい。
Next, the operation of the ECU 1 of the present embodiment configured as described above will be described. When the ECU 1 is started, according to the program recorded in the ROM 33,
The computer executes the following steps by various types of arithmetic processing. In addition, a computer-readable recording medium (semiconductor memory, hard disk, floppy disk, data card (IC
Card, magnetic card, etc.), optical disk (CD-ROM,
DVD, etc.), a magneto-optical disk (MD, etc.), a phase change disk, a magnetic tape, etc.), and the program may be loaded into the ECU 1 as needed and started up to be used.

【0027】ECU1の制御プログラムは、初期化処
理,ベース処理,割込処理のそれぞれの制御プログラム
から構成されている。図3は、初期化処理の制御プログ
ラムを説明するためのフローチャートである。
The control program of the ECU 1 includes control programs for an initialization process, a base process, and an interrupt process. FIG. 3 is a flowchart illustrating a control program for the initialization process.

【0028】初期化処理の制御プログラムが起動する
と、ステップ(以下、「S」と記載する)101にて、
マイクロコンピュータ21の動作環境設定およびRAM
33の初期化等の初期化処理が行われた後に、ベース処
理へ移行する。図4は、ベース処理の制御プログラムを
説明するためのフローチャートである。
When the control program for the initialization process is started, in step (hereinafter referred to as "S") 101,
Operating environment setting of microcomputer 21 and RAM
After the initialization processing such as the initialization of 33 is performed, the processing shifts to the base processing. FIG. 4 is a flowchart for explaining a control program of the base processing.

【0029】ベース処理の制御プログラムが起動する
と、まず、S201にて処理負荷計測処理が行われ、次
に、S202にて間引き学習処理が行われて間引き判定
回転数NELRNおよび間引き回数Nが設定され、続い
て、S203にて処理Aの制御プログラムが行われる。
When the control program for the base process is started, first, a processing load measurement process is performed in S201, and then a thinning learning process is performed in S202, and a thinning determination rotation speed NELRN and a thinning frequency N are set. Subsequently, the control program of the process A is performed in S203.

【0030】そして、S204にて、エンジン回転数N
EがSS02の間引き学習処理にて設定された間引き判
定回転数NELRN以上か否かが判定され、NE≧NE
LRNの場合(S204:YES)はS205にて、カ
ウンタ34に設けられた間引き用カウンタのカウント値
CNTがインクリメントされ、続くS206にて、カウ
ント値CNTがSS02の間引き学習処理にて設定され
た間引き回数N未満か否かが判定され、CNT<Nの場
合(S206:YES)はS201へ戻る。
Then, at S204, the engine speed N
It is determined whether E is equal to or greater than the thinning-out determination rotational speed NELRN set in the thinning-out learning process of SS02, and NE ≧ NE
In the case of LRN (S204: YES), in S205, the count value CNT of the thinning counter provided in the counter 34 is incremented, and in S206, the count value CNT is thinned out in the thinning learning process of SS02. It is determined whether or not the number is less than N. If CNT <N (S206: YES), the process returns to S201.

【0031】また、S204にてNE<NELRNと判
定された場合(S204:NO)およびS206にてC
NT≧Nと判定された場合(S206:NO)は、S2
07にてカウント値がクリアされ、続くS208にて処
理Bの制御プログラムが行われた後に、S201へ戻
る。
When it is determined in S204 that NE <NELRN (S204: NO), and in S206, C
If it is determined that NT ≧ N (S206: NO), S2
At 07, the count value is cleared. At S208, the control program of the process B is performed, and then the process returns to S201.

【0032】ここで、処理Aは、燃料噴射弁3からの燃
料噴射の基本噴射量の算出処理である。また、処理B
は、吸気圧力センサ8,吸気温センサ9,冷却水温セン
サ10,空燃比センサ11,スロットル開度センサ12
等からのアナログ信号に基づいて求められる燃料噴射弁
3からの燃料噴射の補正噴射量の算出処理である。その
ため、処理Aは処理Bよりも高い優先順位に設定されて
いる。
Here, the process A is a process for calculating the basic injection amount of fuel injection from the fuel injection valve 3. Processing B
Are intake pressure sensor 8, intake temperature sensor 9, cooling water temperature sensor 10, air-fuel ratio sensor 11, throttle opening sensor 12
This is a process for calculating a correction injection amount of fuel injection from the fuel injection valve 3 obtained based on an analog signal from the above. Therefore, the process A has a higher priority than the process B.

【0033】図4に示すようにベース処理は繰り返し行
われるが、CPU31の処理負荷が大きくなり、処理A
と処理Bの両方を行うことが困難になった場合は、処理
Aよりも優先順位の低い処理Bの実行を間引くことによ
り、CPU31の処理負荷を軽減させるようにしてい
る。
As shown in FIG. 4, the base processing is repeatedly performed, but the processing load on the CPU 31 increases, and the processing A
If it becomes difficult to perform both the processing B and the processing B, the processing load on the CPU 31 is reduced by thinning out the execution of the processing B having a lower priority than the processing A.

【0034】エンジン回転数NEが間引き判定回転数N
ELRN未満の場合(S204:NO)は、ベース処理
を繰り返す度にS204→S207→S208へ移行
し、処理Bが実行される。また、エンジン回転数NEが
間引き判定回転数NELRN以上の場合(S204:Y
ES)は、カウント値CNTが間引き回数N以上の場合
(S206:NO)に処理Bが実行されるため、ベース
処理のN回の繰り返しに対して処理Bが1回だけ実行さ
れ、処理Bが間引かれることになる。
The engine speed NE is the thinning-out determination speed N
If it is less than ELRN (S204: NO), the process moves from S204 to S207 to S208 every time the base process is repeated, and the process B is executed. When the engine speed NE is equal to or greater than the thinning-out determination speed NELRN (S204: Y
ES), when the count value CNT is equal to or greater than the number N of thinning-out times (S206: NO), the process B is executed only once for N repetitions of the base process, and the process B is not executed. It will be thinned out.

【0035】ここで、カウント値CNTは、エンジン回
転数NEが間引き判定回転数NELRN以上の場合(S
204:YES)にベース処理が繰り返される度にイン
クリメントされ、処理Bが実行された場合はクリアされ
る。ベース処理が繰り返されているときに、割込み処理
の制御プログラムが起動すると、ベース処理が中断され
て割込み処理が行われ、割込み処理の終了後に中断して
いたベース処理に戻り、再びベース処理が繰り返され
る。
Here, the count value CNT is determined when the engine speed NE is equal to or greater than the thinning-out determination speed NELRN (S
204: YES), is incremented each time the base process is repeated, and cleared when process B is executed. If the interrupt processing control program is started while the base processing is being repeated, the base processing is interrupted, the interrupt processing is performed, the processing returns to the interrupted base processing after the end of the interrupt processing, and the base processing is repeated again. It is.

【0036】割込み処理の制御プログラムには、外部入
力により起動されるものと、タイマ35により一定時間
毎に起動されるものとがある。図5は、外部入力により
起動される外部入力割込み処理の制御プログラムを説明
するためのフローチャートである。
Control programs for interrupt processing include those started by an external input and those started by the timer 35 at regular intervals. FIG. 5 is a flowchart for explaining a control program of an external input interrupt process started by an external input.

【0037】前述のように、外部入力である回転角セン
サ16からの高レベル信号は、外部入力割込処理の実行
時期を決定するための割込み信号としての作用を有して
いる。そのため、本実施形態において、外部入力割込み
処理の制御プログラムはエンジン回転数NEに同期して
起動される。そして、外部入力割込み処理の制御プログ
ラムが起動すると、S301にて処理Cの制御プログラ
ムが行われた後に、中断していたベース処理に復帰す
る。
As described above, the high-level signal from the rotation angle sensor 16 which is an external input has an effect as an interrupt signal for determining the execution timing of the external input interrupt processing. Therefore, in the present embodiment, the control program for the external input interrupt process is started in synchronization with the engine speed NE. Then, when the control program of the external input interrupt process is started, the control program of the process C is executed in S301, and then the process returns to the interrupted base process.

【0038】ここで、処理Cは、回転角センサ16から
のアナログ信号の周期計測に基づいて求められるエンジ
ン回転数NEの算出処理や、そのエンジン回転数NEに
基づいて行われるイグナイタ13の制御量の算出処理等
である。図7は、一定時間毎に起動される定時間割込み
処理の制御プログラムを説明するためのフローチャート
である。
Here, the process C is a process of calculating the engine speed NE obtained based on the period measurement of the analog signal from the rotation angle sensor 16 and the control amount of the igniter 13 performed based on the engine speed NE. And the like. FIG. 7 is a flowchart for explaining a control program for a fixed-time interrupt process started at regular intervals.

【0039】定時間割込み処理の制御プログラムは、タ
イマ35により一定時間(例えば、1ms)毎に起動さ
れる。そして、定時間割込み処理の制御プログラムが起
動すると、S501にてカウンタ34に設けられた処理
負荷計測用カウンタのカウント値TIMERがインクリ
メントされる。
The control program for the fixed time interrupt processing is started by the timer 35 at regular intervals (for example, 1 ms). Then, when the control program for the fixed time interruption process is started, the count value TIMER of the processing load measurement counter provided in the counter 34 is incremented in S501.

【0040】図6は、図4に示すS201の処理負荷計
測処理の詳細を説明するためのフローチャートである。
まず、S401にて、ベース処理を1回繰り返す(すな
わち、ベース処理が1回周回する)のに要する周回時間
(ベース周回時間)TRとして、図7に示す定時間割込
み処理にて得られたカウント値TIMERが設定され、
次に、S402にてカウント値TIMERがクリアされ
た後に、図4に示すS202へ移行する。
FIG. 6 is a flowchart for explaining the details of the processing load measurement processing in S201 shown in FIG.
First, in step S401, a count obtained by the fixed-time interrupt processing shown in FIG. 7 is set as a round time (base round time) TR required to repeat the base processing once (that is, the base processing makes one round). The value TIMER is set,
Next, after the count value TIMER is cleared in S402, the process proceeds to S202 shown in FIG.

【0041】このように、ベース処理を繰り返す度にS
201にてカウント値TIMERをモニタすることによ
り、ベース処理を1回繰り返すのに要する時間であるベ
ース周回時間TRを計測することができる。ここで、C
PU31の処理負荷が大きくなるほど、ベース処理に要
する時間が長くなるため、ベース周回時間TRも長くな
る。そのため、ベース周回時間TRはCPU31の処理
負荷に対応した値になる。従って、ベース周回時間TR
を計測することにより、CPU31の処理負荷を簡単か
つ容易に計測することができる。
Thus, every time the base processing is repeated, S
By monitoring the count value TIMER at 201, the base circulation time TR, which is the time required to repeat the base processing once, can be measured. Where C
As the processing load on the PU 31 increases, the time required for the base processing increases, so the base rotation time TR also increases. Therefore, the base rotation time TR becomes a value corresponding to the processing load of the CPU 31. Therefore, the base circuit time TR
, The processing load on the CPU 31 can be easily and easily measured.

【0042】図8は、外部入力割込み処理,ベース処
理,定時間割込み処理,カウント値TIMERのタイミ
ングチャート例である。尚、図8において、実際にはベ
ース周回時間TRに定時間割込処理も含まれているが、
図面が煩雑になるのを防ぐため省略してある。
FIG. 8 is an example of a timing chart of the external input interrupt processing, the base processing, the fixed time interrupt processing, and the count value TIMER. Incidentally, in FIG. 8, although the fixed time interruption processing is actually included in the base circuit time TR,
It is omitted to avoid complicating the drawings.

【0043】ベース処理を繰り返す度に、処理負荷計測
処理によりベース周回時間TRを計測する。そして、ベ
ース処理の処理Aおよび処理Bを実行中に外部入力割込
処理が起動すると、各処理A,Bが中断されて外部入力
割込み処理の処理Cが行われ、処理Cの終了後に中断し
ていた各処理A,Bに戻る。外部入力割込処理および定
時間割込処理を含んでベース処理が実行されていると
き、カウント値TIMERは定時間割込処理が起動する
毎に(例えば、1ms毎に)インクリメントされるた
め、ベース処理を繰り返す度にモニタしたカウント値T
IMERがベース周回時間TRとなる。
Each time the base processing is repeated, the base circulation time TR is measured by the processing load measurement processing. When the external input interrupt processing is started during the execution of the processing A and the processing B of the base processing, the processing A and B are interrupted, the processing C of the external input interrupt processing is performed, and the processing is interrupted after the processing C is completed. The process returns to each of the processes A and B. When the base process including the external input interrupt process and the fixed time interrupt process is being executed, the count value TIMER is incremented each time the fixed time interrupt process is started (for example, every 1 ms). Count value T monitored each time
IMER is the base rotation time TR.

【0044】図9は、図4に示すS202の間引き学習
処理の詳細を説明するためのフローチャートである。ま
ず、S601にて、S201にて計測されたベース周回
時間TRが所定時間間隔TA以上か否かが判定され、T
R≧TAの場合(S601:YES)はS602にて、
エンジン回転数NEがそれ以前に設定されている間引き
判定回転数NELRN以上か否かが判定され、NE≧N
ELRNの場合(S602:YES)はS603にて、
それ以前に設定されている間引き回数Nが所定回数ΔN
だけ加算され、S604にて、加算後の間引き回数Nが
最大間引き回数Nmaxを越えるか否かが判定され、N
>Nmaxの場合(S604:YES)はS605に
て、間引き回数Nが最大間引き回数Nmaxに設定され
た後に、図4に示すS203へ移行し、N≦Nmaxの
場合(S604:NO)はそのままS203へ移行す
る。
FIG. 9 is a flowchart for explaining the details of the thinning-out learning process in S202 shown in FIG. First, in S601, it is determined whether or not the base rotation time TR measured in S201 is equal to or longer than a predetermined time interval TA.
When R ≧ TA (S601: YES), in S602
It is determined whether or not the engine rotational speed NE is equal to or greater than a thinning-out determination rotational speed NELRN set before that, and NE ≧ N
In the case of ELRN (S602: YES), in S603
The thinning number N set before that is equal to the predetermined number ΔN
In S604, it is determined whether or not the number of thinnings N after the addition exceeds the maximum number of thinnings Nmax.
If> Nmax (S604: YES), the number of thinnings N is set to the maximum number of thinnings Nmax in S605, and the process proceeds to S203 shown in FIG. 4. If N ≦ Nmax (S604: NO), S203 is left as it is. Move to.

【0045】また、S602にてNE<NELRNと判
定された場合(S602:NO)はS606にて、それ
以前に設定されている間引き判定回転数NELRNが所
定回転数ΔNEだけ減算され、S607にて、減算後の
間引き判定回転数NELRNがエンジン回転数NEから
所定回転数αを減算した回転数(NE−α)未満か否か
が判定され、NELRN<NE−αの場合(S607:
YES)はS608にて、間引き判定回転数NELRN
が回転数(NE−α)に設定され、NELRN≧NE−
αの場合(S607:NO)はS606にて減算された
間引き判定回転数NELRNが設定される。そして、S
609にて、S606またはS608にて設定された間
引き判定回転数NELRNが最小間引き判定回転数NE
LRNmin未満か否かが判定され、NELRN<NE
LRNminの場合(S609:YES)はS610に
て、間引き判定回転数NELRNが最小間引き判定回転
数NELRNminに設定された後にS203へ移行
し、NELRN≧NELRNminの場合(S609:
NO)はそのままS203へ移行する。
If it is determined in S602 that NE <NELRN (S602: NO), in S606, the thinning-out determination rotation speed NELRN set before that is reduced by a predetermined rotation speed ΔNE, and in S607. It is determined whether or not the thinning-out determination rotational speed NELRN after the subtraction is less than the rotational speed (NE-α) obtained by subtracting the predetermined rotational speed α from the engine rotational speed NE. If NELRN <NE-α (S607:
YES) in S608, the thinning-out determination rotation speed NELRN
Is set to the rotation speed (NE-α), and NELRN ≧ NE−
In the case of α (S607: NO), the thinning-out determination rotation speed NELRN subtracted in S606 is set. And S
At 609, the thinning-out determination rotational speed NELRN set at S606 or S608 is the minimum thinning-out determination rotational speed NE.
It is determined whether it is less than LRNmin, and NELRN <NE
In the case of LRNmin (S609: YES), in S610, the thinning-out determination rotational speed NELRN is set to the minimum thinning-out determination rotational speed NELRNmin, and then the process proceeds to S203.
(NO) shifts to S203 as it is.

【0046】ここで、所定時間間隔TAは、処理Aが制
御内容的に実行されなければならない時間間隔(例え
ば、16ms)に設定されている。このように、ベース
周回時間TRが所定時間間隔TA以上の場合(S60
1:YES)は、エンジン回転数NEが間引き判定回転
数NELRN以上か否かを判定(S602)することに
より、処理Bを現在間引き中か否かを判定し、間引き中
の場合(S602:YES)は、間引き回数Nに所定回
数ΔNを加算することにより(S603)、間引き回数
Nを増加させる。図4に示すように、ベース処理の間引
き回数Nの回数分の繰り返しに対して処理Bが1回だけ
実行され、処理Bが間引かれる。そのため、間引き回数
Nが増加するほど、処理Bを間引きする方向に制御され
ることになる。
Here, the predetermined time interval TA is set to a time interval (for example, 16 ms) at which the process A must be executed in accordance with the control content. As described above, when the base rotation time TR is equal to or longer than the predetermined time interval TA (S60).
1: YES) is to determine whether or not the process B is currently being thinned out by determining whether or not the engine speed NE is equal to or greater than the thinning determination rotation speed NELRN (S602: YES). ) Increases the number N of thinnings by adding a predetermined number ΔN to the number N of thinnings (S603). As shown in FIG. 4, the process B is executed only once for the repetition of the base process thinning frequency N, and the process B is thinned. Therefore, as the number N of thinning increases, the process B is controlled to be thinned.

【0047】また、処理Bを現在間引き中でない場合
(S602:NO)は、間引き判定回転数NELRNか
ら所定回転数ΔNEを減算することにより(S60
6)、間引き判定回転数NELRNを減少させる。図4
に示すように、間引き判定回転数NELRNが減少する
ほど、処理Bを間引きする方向に制御されることにな
る。
If the process B is not currently being thinned (S602: NO), the predetermined rotation speed ΔNE is subtracted from the thinning determination rotation speed NELRN (S60).
6) Decrease the thinning-out determination rotational speed NELRN. FIG.
As shown in (2), as the thinning-out determination rotational speed NELRN decreases, the process B is controlled to be thinned out.

【0048】従って、処理Bが間引きされる状態(S2
04:YESで且つS206:YES)になると、ベー
ス周回時間TRが所定時間間隔TA未満になるまで(S
601:NO)、間引き回数Nが増加してゆき(S60
3)、処理Bを間引きする方向に制御される。
Therefore, the state where the processing B is thinned out (S2)
04: YES and S206: YES), until the base circling time TR becomes shorter than the predetermined time interval TA (S
601: NO), the number N of thinnings increases (S60)
3) The process B is controlled in the direction of thinning out.

【0049】尚、前記所定回数ΔNおよび前記所定回転
数ΔNEはそれぞれ、間引き回数Nおよび間引き判定回
転数NELRNが急激に変化し過ぎないように、実験的
に設定されている。また、間引き回数Nは、実験的に設
定された最大間引き回数Nmaxを越えないように設定
される(S604,S605)。
The predetermined number of rotations ΔN and the predetermined number of rotations ΔNE are set experimentally so that the number of thinnings N and the number of rotations NELRN for judging thinning do not suddenly change too much. Also, the number N of thinnings is set so as not to exceed the maximum number Nmax of thinnings set experimentally (S604, S605).

【0050】そして、間引き判定回転数NELRNは、
現在のエンジン回転数NEから実験的に設定された所定
回転数αを減算した回転数(NE−α)未満にならない
ように設定される(S607,S608)だけでなく、
実験的に設定された最小間引き判定回転数NELRNm
in未満にならないように設定される(S609,S6
10)。
Then, the thinning-out determination rotational speed NELRN is
The engine speed is set not to be less than the engine speed (NE-α) obtained by subtracting the experimentally set predetermined engine speed α from the current engine speed NE (S607, S608).
Experimentally set minimum thinning-out determination rotation speed NELRNm
in (S609, S6)
10).

【0051】このように、間引き回数Nの上限および間
引き判定回転数NELRNの下限を設定するのは、間引
き回数Nが増加し過ぎたり、間引き判定回転数NELR
Nが減少し過ぎると、処理Bが常に間引きされてしまう
ことから、それを防止するためである。
As described above, the upper limit of the thinning frequency N and the lower limit of the thinning determination rotational speed NELRN are set because the thinning frequency N is excessively increased or the thinning determination rotational speed NELR is set.
This is to prevent the processing B from being constantly thinned out when N is excessively reduced.

【0052】そして、S601にてTR<TAと判定さ
れた場合(S601:NO)はS611にて、ベース周
回時間TRが、所定時間間隔TAから所定時間γを減算
した時間間隔(TA−γ)未満か否かが判定され、TR
≧TA−γの場合(S611:NO)はそのままS20
3へ移行し、TR<TA−γの場合(S611:YE
S)はS612にて、エンジン回転数NEがそれ以前に
設定されている間引き判定回転数NELRN以上か否か
が判定され、NE≧NELRNの場合(S612:YE
S)はS613にて、それ以前に設定されている間引き
回数Nが1回か否かが判定され、N≠1の場合(S61
3:NO)はS614にて、それ以前に設定されている
間引き回数Nが所定回数ΔN’だけ減算され、S615
にて、減算後の間引き回数Nが1回未満か否かが判定さ
れ、N<1の場合(S615:YES)はS616に
て、間引き回数Nが1回に設定された後に、図4に示す
S203へ移行し、N≧1の場合(S615:NO)は
そのままS203へ移行する。
When it is determined in S601 that TR <TA (S601: NO), in S611, the base rotation time TR is a time interval (TA-γ) obtained by subtracting the predetermined time γ from the predetermined time interval TA. Is less than or equal to TR
If ≧ TA−γ (S611: NO), S20 is used as it is.
3 and TR <TA-γ (S611: YE
In S612, it is determined in S612 whether or not the engine speed NE is equal to or greater than a thinning-out determination speed NELRN set before that. If NE ≧ NELRN, it is determined (S612: YE).
In S613, it is determined in S613 whether or not the number N of thinnings set before is one, and if N ≠ 1 (S61).
3: NO) in S614, the number N of thinnings set earlier is subtracted by a predetermined number ΔN ', and in S615
It is determined whether or not the number of thinnings N after the subtraction is less than one. If N <1 (S615: YES), after the number of thinnings N is set to one in S616, FIG. The process proceeds to S203 shown, and if N ≧ 1 (S615: NO), the process directly proceeds to S203.

【0053】また、S612にてNE<NELRNと判
定された場合(S612:NO)およびS613にてN
=1と判定された場合(S613:YES)はS617
にて、それ以前に設定されている間引き判定回転数NE
LRNが所定回転数ΔNE’だけ加算され、S618に
て、加算後の間引き判定回転数NELRNがエンジン回
転数NEに所定回転数βを加算した回転数(NE+β)
を越えるか否かが判定され、NELRN>NE+βの場
合(S618:YES)はS619にて、間引き判定回
転数NELRNが回転数(NE+β)に設定され、NE
LRN≦NE+βの場合(S618:NO)はS617
にて加算された間引き判定回転数NELRNが設定され
る。そして、S620にて、S617またはS619に
て設定された間引き判定回転数NELRNが最大間引き
判定回転数NELRNmaxを越えるか否かが判定さ
れ、NELRN>NELRNmaxの場合(S620:
YES)はS621にて、間引き判定回転数NELRN
が最大間引き判定回転数NELRNmaxに設定された
後にS203へ移行し、NELRN≦NELRNmax
の場合(S620:NO)はそのままS203へ移行す
る。
When it is determined in S612 that NE <NELRN (S612: NO), and in S613, N <NELRN
= 1 (S613: YES), S617
, The thinning-out determination rotational speed NE set before that
LRN is added by a predetermined rotation speed ΔNE ′, and in S618, the thinning-out determination rotation speed NELRN after the addition is a rotation speed (NE + β) obtained by adding a predetermined rotation speed β to the engine rotation speed NE.
Is determined, if NELRN> NE + β (S618: YES), the thinning determination rotation speed NELRN is set to the rotation speed (NE + β) in S619, and NE
If LRN ≦ NE + β (S618: NO), S617
The thinning determination rotation speed NELRN added by is set. Then, in S620, it is determined whether or not the thinning-out determination rotation speed NELRN set in S617 or S619 exceeds the maximum thinning-out determination rotation speed NELRNmax. If NELRN> NELRNmax is satisfied (S620:
YES) in S621, the thinning-out determination rotation speed NELRN
Is set to the maximum thinning-out determination rotation speed NELRNmax, and the process proceeds to S203, where NELRN ≦ NELRNmax.
In the case of (S620: NO), the process directly proceeds to S203.

【0054】このように、ベース周回時間TRが所定時
間間隔TAから所定時間間隔γを減算した時間間隔(T
A−γ)未満の場合(S611:YES)は、エンジン
回転数NEが間引き判定回転数NELRN以上か否かを
判定(S612)することにより、処理Bを現在間引き
中か否かを判定し、間引き中の場合(S612:YE
S)は、間引き回数Nから所定回数ΔN’を減算するこ
とにより(S614)、間引き回数Nを減少させる。図
4に示すように、間引き回数Nが減少するほど、処理B
を間引きしない方向に制御されることになる。そして、
間引き回数Nが1回になると、ベース処理が1回繰り返
される度に処理Bが1回実行されることから、処理Bが
間引かれないのと同じことになる。
As described above, the base rotation time TR is the time interval (T) obtained by subtracting the predetermined time interval γ from the predetermined time interval TA.
If (A-γ) is smaller than (S611: YES), it is determined whether the engine speed NE is equal to or greater than the thinning determination rotation speed NELRN (S612), thereby determining whether the process B is currently being thinned. When thinning is being performed (S612: YE
S) reduces the number N of thinnings by subtracting the predetermined number ΔN ′ from the number N of thinnings (S614). As shown in FIG. 4, as the number N of thinnings decreases, the processing B
Is controlled so as not to thin out. And
If the number N of thinning becomes one, the process B is executed once each time the base process is repeated once, which is the same as the case where the process B is not thinned.

【0055】また、処理Bを現在間引き中でない場合
(S612:NO)および間引き回数Nが1回の場合
(S613:YES)は、間引き判定回転数NELRN
に所定回転数ΔNE’を加算することにより(S61
7)、間引き判定回転数NELRNを増加させる。図4
に示すように、間引き判定回転数NELRNが増加する
ほど、処理Bを間引きしない方向に制御されることにな
る。
If the process B is not currently being thinned (S612: NO) and if the number N of times of thinning is one (S613: YES), the thinning determination rotation speed NELRN is used.
Is added to the predetermined rotation speed ΔNE ′ (S61).
7) Increase the thinning determination rotation speed NELRN. FIG.
As shown in (2), as the thinning-out determination rotational speed NELRN increases, the process B is controlled so as not to thin out.

【0056】従って、処理Bが間引きされない状態(S
204:NOまたはS206:NO)になると、ベース
周回時間TRが所定時間間隔TA以上になるまで(S6
01:YES)、間引き回数Nが減少してゆき(S61
4)、間引き回数Nが1回になると処理Bを間引きしな
いのと同じことになるため間引きが不要となり、間引き
判定回転数NELRNが増加してゆき(S617)、処
理Bが間引かれないようにされる。
Therefore, the state where the processing B is not thinned out (S
If the answer is 204: NO or S206: NO), the base rotation time TR becomes equal to or longer than the predetermined time interval TA (S6).
01: YES), the number N of thinnings decreases (S61).
4) If the number N of thinnings is 1, it is the same as not thinning out the process B, so that thinning is not necessary, and the thinning determination rotation speed NELRN increases (S617), so that the process B is not thinned out. To be.

【0057】尚、前記所定時間間隔γは、S602〜S
610の各処理(処理Bを間引きする方向)と、S61
2〜S621の各処理(処理Bを間引きしない方向)と
が、ベース処理を繰り返す度に切り替わるハンチング状
態が起こらないようにするため、ヒステリシス特性を設
けるためのものである。
Note that the predetermined time interval γ is determined in steps S602 to S602.
610 (the direction of thinning out process B) and S61
This is to provide a hysteresis characteristic in order to prevent the occurrence of a hunting state in which each of the processes 2 to S621 (the direction in which the process B is not thinned out) is switched each time the base process is repeated.

【0058】そして、前記所定回数ΔN’および前記所
定回転数ΔNE’はそれぞれ、間引き回数Nおよび間引
き判定回転数NELRNが急激に変化し過ぎないよう
に、実験的に設定されている。また、間引き回数Nは1
回未満(すなわち、0回)にならないように設定される
(S615,S616)。
The predetermined number of times ΔN ′ and the predetermined number of rotations ΔNE ′ are set experimentally so that the number of thinnings N and the number of rotations for thinning determination NELRN do not suddenly change too much. Also, the number N of thinning is 1
It is set so as not to be less than the number of times (ie, 0 times) (S615, S616).

【0059】そして、間引き判定回転数NELRNは、
現在のエンジン回転数NEに実験的に設定された所定回
転数β(例えば、200rpm)を加算した回転数(N
E+β)を越えないように設定される(S618,S6
19)だけでなく、実験的に設定された最大間引き判定
回転数NELRNmax(例えば、5000rpm)を
越えないように設定される(S620,S621)。
The thinning-out determination rotational speed NELRN is
A rotational speed (N) obtained by adding a predetermined experimental speed β (for example, 200 rpm) experimentally set to the current engine rotational speed NE.
(E + β) (S618, S6)
19), the rotation speed is set so as not to exceed the experimentally set maximum thinning determination rotation speed NELRNmax (for example, 5000 rpm) (S620, S621).

【0060】このように、間引き回数Nの下限(=1
回)および間引き判定回転数NELRNの上限を設定す
るのは、間引き回数Nが0回になったり、間引き判定回
転数NELRNが増加し過ぎると、処理Bの間引きが全
く行われないようになってしまうことから、それを防止
するためである。
As described above, the lower limit (= 1)
Times) and the upper limit of the thinning-out determination rotational speed NELRN is set when the thinning-out frequency N becomes 0 or the thinning-out determination rotational speed NELRN becomes too large, so that the thinning out of the processing B is not performed at all. This is to prevent that from happening.

【0061】図10は、エンジン回転数NE,間引き判
定回転数NELRN,間引き回数N,ベース周回時間T
Rのタイミングチャート例である。時刻T1→T3にお
いて、エンジンの制御状態(運転状態)の何らかの変化
により、CPU31の処理負荷が増大してゆき、それに
伴ってベース周回時間TRも増大してゆく。
FIG. 10 shows the engine speed NE, the thinning determination rotation speed NELRN, the thinning frequency N, and the base rotation time T.
5 is an example of a timing chart of R. From time T1 to T3, the processing load on the CPU 31 increases due to any change in the control state (operating state) of the engine, and the base circuit time TR also increases accordingly.

【0062】そして、時刻T2において、ベース周回時
間TRが所定時間間隔TA(処理Aが制御内容的に実行
されなければならない時間間隔)を越えると、間引き判
定回転数NELRNが減少し始め、時刻T3において処
理Bの間引きが開始される。続く、時刻T3→T4にお
いて、間引き回数Nが加算されてゆき、処理Bが間引か
れることにより、CPU31の処理負荷が減少してゆ
く。そして、時刻T4において、ベース周回時間TRが
所定時間間隔TAを下回ると、間引き回数Nの増加が停
止する。このとき、間引き判定回転数NELRNは回転
数(NE−α)を下回ることはない。
At time T2, when the base rotation time TR exceeds a predetermined time interval TA (a time interval during which the process A must be executed in accordance with the control content), the thinning-out judging rotation speed NELRN starts to decrease, and at time T3 , The thinning of the process B is started. Subsequently, from time T3 to T4, the number of thinnings N is added, and the processing load on the CPU 31 is reduced by thinning out the processing B. Then, at time T4, when the base circling time TR falls below the predetermined time interval TA, the increase in the number N of thinning stops. At this time, the thinning determination rotation speed NELRN does not fall below the rotation speed (NE-α).

【0063】その後、時刻T5→T7において、エンジ
ンの制御状態の何らかの変化により、CPU31の処理
負荷が減少してゆき、それに伴ってベース周回時間TR
も減少してゆく。そして、時刻T6において、ベース周
回時間TRが時間間隔(TA−γ)を下回ると、間引き
回数Nが減少し始める。続く、時刻T7において、間引
き回数Nが1回になると、処理Bの間引きが不要となる
ため、処理Bの間引きが中止されて処理Bが実行される
ようになり、間引き判定回転数NELRNが増加し始め
る。
Thereafter, from time T5 to T7, the processing load on the CPU 31 decreases due to some change in the control state of the engine, and the base circuit time TR
Also decrease. Then, at time T6, when the base circling time TR falls below the time interval (TA-γ), the number N of thinnings starts to decrease. Subsequently, at time T7, when the number of thinnings N becomes one, since the thinning of the process B becomes unnecessary, the thinning of the process B is stopped and the process B is executed, and the thinning determination rotation speed NELRN increases. Begin to.

【0064】その後、時刻T8において、間引き判定回
転数NELRNが回転数(NE+β)まで増加すると、
それ以後、間引き判定回転数NELRNの増加が停止す
る。以上詳述したように、本実施形態においては、実際
のCPU31の処理負荷(ベース周回時間TR)を計測
する。そして、CPU31の処理負荷が小さく(処理負
荷が軽く)、CPU31の処理能力に余裕のある場合
は、間引き判定回転数NELRNを大きな値に設定する
と共に、間引き回数Nを小さな値に設定することによ
り、エンジン回転数NEの大きな領域(エンジンEの高
回転領域)まで、ベース処理で優先順位の低い処理Bを
間引くことなく実行する。また、CPU31の処理負荷
が大きく(処理負荷が重く)、CPU31の処理能力に
余裕のない場合は、間引き判定回転数NELRNを小さ
な値に設定すると共に、間引き回数Nを大きな値に設定
することにより、ベース処理で優先順位の低い処理Bを
間引いて行わないようにし、ベース処理で優先順位の高
い処理Aを所望の処理間隔で確実に実行する。
Thereafter, at time T8, when the thinning-out determination rotation speed NELRN increases to the rotation speed (NE + β),
After that, the increase in the thinning determination rotation speed NELRN stops. As described in detail above, in the present embodiment, the actual processing load (base rotation time TR) of the CPU 31 is measured. When the processing load of the CPU 31 is small (the processing load is light) and the processing capacity of the CPU 31 has an allowance, the thinning determination rotation speed NELRN is set to a large value, and the number N of thinning is set to a small value. The processing B having a low priority in the base processing is executed without thinning out the area up to the area where the engine speed NE is high (the high rotation area of the engine E). When the processing load of the CPU 31 is large (the processing load is heavy) and the processing capacity of the CPU 31 has no margin, the thinning determination rotation speed NELRN is set to a small value and the number N of thinning is set to a large value. In the base processing, low-priority processing B is prevented from being thinned out, and high-priority processing A in the base processing is reliably executed at a desired processing interval.

【0065】例えば、エンジンEの制御においては、エ
ンジン回転数NEが同じであっても、エンジンEの制御
状態(運転状態)によりCPU31の処理負荷が変動
し、CPU31の処理負荷が小さくなった場合、CPU
31の処理能力の限界値も上がり、優先順位の低い制御
プログラムである処理Bを間引かなくともよくなること
がある。本実施形態では、このような場合にも処理Bを
間引くことなく実行することができる。
For example, in the control of the engine E, even if the engine speed NE is the same, the processing load on the CPU 31 varies depending on the control state (operating state) of the engine E, and the processing load on the CPU 31 decreases. , CPU
In some cases, the limit value of the processing capability of 31 may be increased, and it may not be necessary to skip the process B, which is a control program with a low priority. In the present embodiment, even in such a case, the processing B can be executed without thinning out.

【0066】従って、本実施形態によれば、実際のCP
U31の処理負荷(ベース周回時間TR)を計測し、そ
の処理負荷に基づいて制御プログラムの間引きの条件
(間引き判定回転数NELRN、間引き回数N)を学習
し、CPU31の処理負荷の大小に応じて当該間引きの
条件を可変することにより、CPU31の処理能力の限
界まで制御プログラムを動作させることができる。
Therefore, according to the present embodiment, the actual CP
The processing load of U31 (base rotation time TR) is measured, and based on the processing load, the conditions for thinning out the control program (the thinning-out determination rotational speed NELRN and the number of thinning-out times N) are learned. By varying the conditions for the thinning, the control program can be operated up to the limit of the processing capacity of the CPU 31.

【0067】尚、本発明は上記実施形態に限定されるも
のではなく、以下のように変更してもよく、その場合で
も、上記実施形態と同等もしくはそれ以上の作用・効果
を得ることができる。 [1]前述のように、エンジンEの制御状態(運転状
態)が変化すると、CPU31の処理負荷も変化し、そ
れに伴ってベース周回時間TRも変化する。しかし、C
PU31の処理負荷が非常に大きく変化した場合でも、
ベース処理を繰り返す度に、間引き判定回転数NELR
Nは所定回転数ΔNE,ΔNE’だけしか変化せず、間
引き回数Nは所定回数ΔN,ΔN’だけしか変化しな
い。そのため、CPU31の処理負荷の大きな変化に追
従して、間引き判定回転数NELRNおよび間引き回数
Nが最適な値に変化するまでに大きな遅れが生じること
がある。
It should be noted that the present invention is not limited to the above-described embodiment, and may be modified as follows. Even in such a case, the same operation or effect as or more than that of the above-described embodiment can be obtained. . [1] As described above, when the control state (operating state) of the engine E changes, the processing load on the CPU 31 also changes, and accordingly, the base circuit time TR also changes. But C
Even if the processing load of the PU 31 changes significantly,
Every time the base process is repeated, the thinning-out determination rotation speed NELR
N changes only by the predetermined rotation speeds ΔNE, ΔNE ′, and the number N of thinnings changes only by the predetermined times ΔN, ΔN ′. Therefore, following a large change in the processing load of the CPU 31, a large delay may occur until the thinning determination rotation speed NELRN and the thinning frequency N are changed to optimal values.

【0068】そこで、図11に例示するように、エンジ
ン回転数NEと吸気圧力センサ8の検出した吸気圧力と
により、エンジンEの制御状態を複数の領域に分け、各
領域毎に、それ以前に当該領域にあったときの間引き判
定回転数NELRNおよび間引き回数Nの最終設定値
を、次に当該領域に入ったときの初期値として設定す
る。
Therefore, as illustrated in FIG. 11, the control state of the engine E is divided into a plurality of regions based on the engine speed NE and the intake pressure detected by the intake pressure sensor 8. The final setting values of the thinning-out determination rotation speed NELRN and the number of thinning-out times N when in the region are set as initial values when the vehicle enters the region next.

【0069】つまり、図11に示すように、エンジン回
転数NEが3000rpmと6000rpm、吸気圧力
が400mmHgと700mmHgとで、エンジンEの
制御状態を9つの領域に分けておく。そして、例えば、
エンジン回転数NEが3000rpm未満で吸気圧力が
400mmHg未満の領域について、それ以前に当該領
域にあったときの間引き判定回転数NELRNおよび間
引き回数Nの最終設定値を、次に当該領域に入ったとき
の初期値(NELRN(0),N(O))として設定し
ておく。同様に、エンジン回転数NEが6000rpm
以上で吸気圧力が700mmHg以上の領域について、
それ以前に当該領域にあったときの間引き判定回転数N
ELRNおよび間引き回数Nの最終設定値を、次に当該
領域に入ったときの初期値(NELRN(8),N
(8))として設定しておく。
That is, as shown in FIG. 11, when the engine speed NE is 3000 rpm and 6000 rpm, the intake pressure is 400 mmHg and 700 mmHg, the control state of the engine E is divided into nine regions. And, for example,
For the region where the engine speed NE is less than 3000 rpm and the intake pressure is less than 400 mmHg, the final set values of the thinning-out determination speed NELRN and the number of thinning times N when the region was previously in the region, Are set as initial values (NELRN (0), N (O)). Similarly, when the engine speed NE is 6000 rpm
As described above, for the region where the intake pressure is 700 mmHg or more,
The thinning-out determination rotation speed N when in the area before that
The final set values of the ELRN and the number of thinnings N are set to the initial values (NELRN (8), N
(8)).

【0070】ここで、例えば、エンジン回転数NEが1
000rpmで吸気圧力が100mmHgの状態から、
エンジン回転数NEが7000rpmで吸気圧力が80
0mmHgの状態へと、エンジンEの制御状態が急変化
した場合、間引き判定回転数NELRNの初期値をNE
LRN(8)に設定すると共に、間引き回数Nの初期値
をN(8)に設定して、図9に示す間引き学習処理を行
う。
Here, for example, when the engine speed NE is 1
000 rpm and the intake pressure is 100 mmHg,
Engine speed NE is 7000 rpm and intake pressure is 80
When the control state of the engine E suddenly changes to the state of 0 mmHg, the initial value of the thinning determination rotation speed NELRN is set to NE.
LRN (8) is set and the initial value of the number N of thinning is set to N (8), and the thinning learning process shown in FIG. 9 is performed.

【0071】このようにすれば、エンジンEの制御状態
が急変化して、CPU31の処理負荷が非常に大きく変
化した場合でも、その処理負荷の大きな変化に追従し
て、間引き判定回転数NELRNおよび間引き回数Nが
最適な値に変化するまでの遅れを小さくすることができ
る。
In this way, even if the control state of the engine E changes suddenly and the processing load on the CPU 31 changes significantly, the thinning determination rotational speed NELRN and the thinning determination rotation number NELRN follow the large change in the processing load. It is possible to reduce the delay until the number of thinnings N changes to an optimal value.

【0072】[2]上記[1]では、吸気圧力センサ8
の検出した吸気圧力とエンジン回転数NEとによりエン
ジンEの制御状態を複数の領域に分けたが、吸気圧力に
代えて、スロットル開度センサ12の検出したスロット
ル開度とエンジン回転数NEとによりエンジンEの制御
状態を複数の領域に分けてもよい。
[2] In the above [1], the intake pressure sensor 8
The control state of the engine E is divided into a plurality of regions based on the detected intake pressure and the engine speed NE, but instead of the intake pressure, based on the throttle opening detected by the throttle opening sensor 12 and the engine speed NE. The control state of the engine E may be divided into a plurality of regions.

【0073】この場合も上記[1]と同様の作用・効果
を得ることができる。 [3]上記実施形態ではベース処理が処理Aと処理Bの
2つの制御プログラムを含んで構成されているが、ベー
ス処理が優先順位の設定された3つ以上の制御プログラ
ムを含んで構成されるようにしてもよい。
In this case, the same operation and effect as the above [1] can be obtained. [3] In the above embodiment, the base processing is configured to include two control programs of processing A and processing B, but the base processing is configured to include three or more control programs of which priorities are set. You may do so.

【0074】この場合は、各制御プログラム毎に優先順
位を設定しておくと共に、前記間引きの条件(間引き判
定回転数NELRN、間引き回数N)を制御プログラム
の数に応じて複数段階に設定すればよい。例えば、制御
プログラムが3つの場合は前記間引きの条件を2段階に
設定すればよく、制御プログラムが4つの場合は前記間
引きの条件を3段階に設定すればよい。
In this case, the priorities are set for each control program, and the thinning conditions (thinning determination rotational speed NELRN, thinning frequency N) are set in a plurality of stages according to the number of control programs. Good. For example, when there are three control programs, the thinning conditions may be set in two stages, and when there are four control programs, the thinning conditions may be set in three stages.

【0075】[4]本発明は、車両のエンジン制御を行
うためのエンジン制御装置(ECU1)に限らず、優先
順位の異なる複数の各種制御プログラムを処理する各種
処理装置に適用してもよい。
[4] The present invention is not limited to the engine control device (ECU 1) for controlling the engine of the vehicle, but may be applied to various processing devices for processing a plurality of various control programs having different priorities.

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

【図1】本発明を具体化した一実施形態の構成を示すブ
ロック図。
FIG. 1 is a block diagram showing a configuration of an embodiment embodying the present invention.

【図2】一実施形態の入出力系統を示すブロック図。FIG. 2 is a block diagram showing an input / output system according to one embodiment.

【図3】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 3 is a flowchart for explaining the operation of the embodiment;

【図4】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 4 is a flowchart for explaining the operation of the embodiment;

【図5】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 5 is a flowchart for explaining the operation of the embodiment;

【図6】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 6 is a flowchart for explaining the operation of the embodiment.

【図7】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 7 is a flowchart for explaining the operation of the embodiment;

【図8】一実施形態の動作を説明するためのタイミング
チャート。
FIG. 8 is a timing chart for explaining the operation of the embodiment.

【図9】一実施形態の動作を説明するためのフローチャ
ート。
FIG. 9 is a flowchart for explaining the operation of the embodiment.

【図10】一実施形態の動作を説明するためのタイミン
グチャート。
FIG. 10 is a timing chart for explaining the operation of the embodiment.

【図11】別の実施形態の動作を説明するための説明
図。
FIG. 11 is an explanatory diagram for explaining the operation of another embodiment.

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

1…電子制御装置(ECU) 21…マイクロコンピ
ュータ 8…吸気圧力センサ 9…吸気温センサ 10…冷
却水温センサ 11…空燃比センサ 12…スロットル開度センサ 16…回転角センサ 22〜24…入力インタ−フェ
ース回路 25…出力インターフェース回路 26,27…電源
回路 31…CPU 32…RAM 33…ROM 3
4…カウンタ 35…タイマ 36…A/D変換器 37…入力ポ
ート 38…出力ポート 39…データバス
DESCRIPTION OF SYMBOLS 1 ... Electronic control unit (ECU) 21 ... Microcomputer 8 ... Intake pressure sensor 9 ... Intake air temperature sensor 10 ... Cooling water temperature sensor 11 ... Air-fuel ratio sensor 12 ... Throttle opening degree sensor 16 ... Rotation angle sensor 22-24 ... Input interface Face circuit 25 ... Output interface circuit 26,27 ... Power supply circuit 31 ... CPU 32 ... RAM 33 ... ROM 3
4: Counter 35: Timer 36: A / D converter 37: Input port 38: Output port 39: Data bus

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年8月13日(1999.8.1
3)
[Submission date] August 13, 1999 (1999.8.1)
3)

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0030[Correction target item name] 0030

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0030】そして、S204にて、エンジン回転数N
EがS202の間引き学習処理にて設定された間引き判
定回転数NELRN以上か否かが判定され、NE≧NE
LRNの場合(S204:YES)はS205にて、カ
ウンタ34に設けられた間引き用カウンタのカウント値
CNTがインクリメントされ、続くS206にて、カウ
ント値CNTがS202の間引き学習処理にて設定され
た間引き回数N未満か否かが判定され、CNT<Nの場
合(S206:YES)はS201へ戻る。
Then, at S204, the engine speed N
It is determined whether E is equal to or greater than the thinning-out determination rotation speed NELRN set in the thinning-out learning process in S202 , and NE ≧ NE
In the case of LRN (S204: YES), in S205, the count value CNT of the thinning counter provided in the counter 34 is incremented, and in S206, the count value CNT is thinned out in the thinning learning process set in S202. It is determined whether or not the number is less than N. If CNT <N (S206: YES), the process returns to S201.

フロントページの続き Fターム(参考) 3G084 BA13 BA17 CA09 DA00 EB05 EB08 EB18 EC01 FA02 FA10 FA11 FA20 FA29 FA33 FA38 5B098 GC03 GC04 GC10 Continued on front page F-term (reference) 3G084 BA13 BA17 CA09 DA00 EB05 EB08 EB18 EC01 FA02 FA10 FA11 FA20 FA29 FA33 FA38 5B098 GC03 GC04 GC10

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の制御プログラム毎に処理の優先順
位を設定しておき、優先順位の高い制御プログラムから
順次処理を行う制御プログラムの処理装置であって、 優先順位の高い制御プログラムから順次処理を実行する
実行手段と、 設定された間引きの条件を満足する場合に、複数の制御
プログラムのうち優先順位の低い制御プログラムの処理
を間引くことにより、その間引いた制御プログラムの処
理を前記実行手段に実行させないようにする間引き手段
と、 処理装置における制御プログラムの処理負荷を計測する
計測手段と、 当該計測手段により計測された処理負荷に基づいて、前
記間引き手段における間引きの条件を学習することによ
り、前記処理負荷に応じて当該間引きの条件を変更して
設定し直す学習手段とを備えたことを特徴とする制御プ
ログラムの処理装置。
1. A control program processing apparatus for setting a priority order of processing for each of a plurality of control programs and sequentially executing processing from a control program with a higher priority, wherein the processing is performed sequentially from a control program with a higher priority. Executing the thinning process of the control program having a lower priority order among the plurality of control programs when the set thinning condition is satisfied. A thinning means for preventing execution, a measuring means for measuring a processing load of a control program in the processing device, and learning conditions for the thinning in the thinning means based on the processing load measured by the measuring means. Learning means for changing and setting the thinning conditions in accordance with the processing load. Control program of the processor.
【請求項2】 請求項1に記載の制御プログラムの処理
装置において、 前記計測手段は、前記複数の制御プログラムの処理が繰
り返し行われる際に、その1回の繰り返しに要する周回
時間を計測することにより、当該周回時間に対応した前
記処理負荷を計測することを特徴とする制御プログラム
の処理装置。
2. The control program processing device according to claim 1, wherein the measuring unit measures a circulation time required for one repetition when the processes of the plurality of control programs are repeatedly performed. A processing program for measuring the processing load corresponding to the circulation time.
【請求項3】 請求項1または請求項2に記載の制御プ
ログラムの処理装置において、 前記学習手段は、前記計測手段により計測された処理負
荷に基づいて、当該処理負荷が小さい場合は前記間引き
手段における間引きの条件を緩い条件に変更して設定し
直し、当該処理負荷が大きい場合は前記間引きの条件を
厳しい条件に変更して設定し直すことを特徴とする制御
プログラムの処理装置。
3. The processing device for a control program according to claim 1, wherein said learning means is based on a processing load measured by said measuring means and said thinning means when said processing load is small. Wherein the thinning condition is changed to a loose condition and reset, and if the processing load is large, the thinning condition is changed to a strict condition and reset.
【請求項4】 請求項1〜3のいずれか1項に記載の制
御プログラムの処理装置において、 前記複数の制御プログラムはエンジンの制御プログラム
であり、前記間引き手段における間引きの条件はエンジ
ン回転数に基づいて設定され、 前記実行手段は、前記計測手段により計測された処理負
荷が小さい場合は、エンジン回転数の大きな領域まで優
先順位の低い制御プログラムの処理を間引くことなく実
行し、前記処理負荷が大きい場合は優先順位の低い制御
プログラムの処理を間引くことにより優先順位の高い制
御プログラムの処理を実行することを特徴とする制御プ
ログラムの処理装置。
4. The control program processing device according to claim 1, wherein the plurality of control programs are engine control programs, and a condition of the thinning in the thinning means is an engine speed. When the processing load measured by the measurement unit is small, the execution unit executes the processing of the control program with low priority up to a region with a high engine speed without thinning out, and the processing load is A control program processing device characterized in that, when it is larger, the processing of a control program with a higher priority is executed by thinning out the processing of a control program with a lower priority.
JP11159528A 1999-06-07 1999-06-07 Processor for control program Pending JP2000347882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11159528A JP2000347882A (en) 1999-06-07 1999-06-07 Processor for control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11159528A JP2000347882A (en) 1999-06-07 1999-06-07 Processor for control program

Publications (1)

Publication Number Publication Date
JP2000347882A true JP2000347882A (en) 2000-12-15

Family

ID=15695745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11159528A Pending JP2000347882A (en) 1999-06-07 1999-06-07 Processor for control program

Country Status (1)

Country Link
JP (1) JP2000347882A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005952A (en) * 2009-06-25 2011-01-13 Toyota Motor Corp Onboard control device
JP2019138392A (en) * 2018-02-13 2019-08-22 株式会社デンソー Processor for vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011005952A (en) * 2009-06-25 2011-01-13 Toyota Motor Corp Onboard control device
JP2019138392A (en) * 2018-02-13 2019-08-22 株式会社デンソー Processor for vehicle

Similar Documents

Publication Publication Date Title
JP2011153596A (en) Internal combustion engine control device
JP2000347882A (en) Processor for control program
JP4423824B2 (en) Control device for internal combustion engine
US6029630A (en) Engine control device having an arrangement for limiting interrupt processing
US6328018B1 (en) Control apparatus for controlling internal combustion engine
JP3463322B2 (en) Memory check device for vehicle control device
JPH04166637A (en) Air-fuel ratio controller of engine
JP2001227402A (en) On-vehicle electronic control device
JPS60249651A (en) Electronic control type fuel injector
JP4239578B2 (en) Operating state discrimination device for internal combustion engine
JPS6146442A (en) Fuel injection control device
JP3991685B2 (en) Fuel injection control device for internal combustion engine
JPH0524342B2 (en)
JPH07116962B2 (en) Air-fuel ratio controller for internal combustion engine
JP2753833B2 (en) Knock control method
JPH055456A (en) Control device for on-vehicle controlling computer
JPH05141306A (en) Control device for internal combustion engine
JPH0587664B2 (en)
JPH01106934A (en) Control device for air-fuel ratio of internal combustion engine
JPH01106933A (en) Control device for air-fuel ratio of internal combustion engine
JPS61123727A (en) Fuel injection quantity controller for internal-combusion engine
JP2002004938A (en) Control device for internal combustion engine
JPH0874621A (en) Fuel control device for engine
JPH07139395A (en) Fuel injection control method
JPH1082340A (en) Throttle control integrated engine control device and medium for recording engine control program