JP2002303201A - Vehicle control device - Google Patents

Vehicle control device

Info

Publication number
JP2002303201A
JP2002303201A JP2001105556A JP2001105556A JP2002303201A JP 2002303201 A JP2002303201 A JP 2002303201A JP 2001105556 A JP2001105556 A JP 2001105556A JP 2001105556 A JP2001105556 A JP 2001105556A JP 2002303201 A JP2002303201 A JP 2002303201A
Authority
JP
Japan
Prior art keywords
delay
counter
control
value
microcomputer
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
JP2001105556A
Other languages
Japanese (ja)
Inventor
Tomoya Shirasaki
友也 白▲崎▼
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 JP2001105556A priority Critical patent/JP2002303201A/en
Publication of JP2002303201A publication Critical patent/JP2002303201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a vehicle control device capable of restricting delay of control counters, and favorably executing various types of control based on values of the counters. SOLUTION: An engine ECU 1 is provided with a microcomputer 2. The microcomputer 2 counts values of the control counter respectively used for various types of control at a specified time interval in a base process. Execution timing of various types of control is determined based on the counter values, and an applicable process is executed when the timing is reached. The microcomputer 2 counts up a reference counter in a constant time interrupting process, and determines delay of the base process by referring to the reference counter at every timing counted up by the control counter. When this delay is as large as counting action width for one time by the control counter, the value of the control counter is corrected.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば車載エンジ
ンの制御等に用いられる車両制御装置において、各種制
御で用いる制御用カウンタのカウント動作を適正に行わ
せるための技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a technique for appropriately controlling the counting operation of a control counter used in various controls in a vehicle control device used for controlling a vehicle-mounted engine, for example.

【0002】[0002]

【従来の技術】この種の車両制御装置では、マイクロコ
ンピュータ(マイコン)により各種多様な制御が時間刻
みで実施され、その際、ベース処理では所定の時間周期
で制御用カウンタがカウントアップ(計数)される。そ
して、この制御用カウンタの値に基づいて各種制御の実
施タイミングが判断される。例えば、図7のベースルー
チンにおいて、マイコンはステップ300で予め規定し
た4msが経過したかどうかを判別する。そして、4m
sが経過した場合、ステップ310にて制御用カウンタ
cnt4msをカウントアップする。その後、ステップ
320に移行して所定の処理を実施した後、再びステッ
プ300に戻る。
2. Description of the Related Art In a vehicle control apparatus of this type, various kinds of control are performed by a microcomputer (microcomputer) at intervals of time. At that time, in a base process, a control counter is counted up (counted) at a predetermined time cycle. Is done. The execution timing of various controls is determined based on the value of the control counter. For example, in the base routine of FIG. 7, the microcomputer determines whether or not 4 ms specified in step 300 has elapsed. And 4m
When s has elapsed, in step 310, the control counter cnt4ms is counted up. Thereafter, the process proceeds to step 320 to perform a predetermined process, and then returns to step 300 again.

【0003】[0003]

【発明が解決しようとする課題】ところで、車載エンジ
ンの制御等に用いられる電子制御装置(ECU)では、
車両の過渡運転時やエンジン高回転時などにおいてマイ
コンの処理負荷が大きくなると、それに連れて時間同期
又は角度同期の割り込みが増え、それよりも優先度の低
いベースルーチンでは処理が遅れる。その結果、制御用
カウンタのカウントアップが遅れ、そのカウンタ値を更
新条件とするRAMやフラグの更新タイミングが遅れて
しまう。つまり、ECUによる制御動作に遅れが生じて
しまう。
By the way, in an electronic control unit (ECU) used for control of a vehicle-mounted engine, etc.,
When the processing load of the microcomputer increases during a transient operation of the vehicle, at a high engine speed, or the like, the interruption of the time synchronization or the angle synchronization increases accordingly, and the processing is delayed in the base routine having a lower priority. As a result, the count-up of the control counter is delayed, and the update timing of the RAM or the flag that uses the counter value as an update condition is delayed. That is, a delay occurs in the control operation by the ECU.

【0004】また、制御用カウンタの遅れ防止対策とし
て、制御用カウンタのカウントアップ処理を全て高優先
度の定時割り込みへ移動し、制御用カウンタのカウント
アップを優先的に実施することが従来より提案されてい
る。しかしながら、この構成では、制御用カウンタのカ
ウントアップが理論タイミング通りに実施できるもの
の、エンジンECU等では制御用カウンタが多数必要に
なることから、定時割り込みでの処理負荷が過剰に増大
してしまう。すなわち、定時割り込みによるカウントア
ップ処理分の時間増加が大きくなり、他の割り込みが遅
れる等の弊害が発生する。
As a countermeasure to prevent delay of the control counter, it has been conventionally proposed that the count-up process of the control counter is all shifted to a high-priority periodic interrupt, and the count-up of the control counter is performed with priority. Have been. However, in this configuration, although the count-up of the control counter can be performed at the theoretical timing, a large number of control counters are required in the engine ECU and the like, so that the processing load due to the periodic interruption is excessively increased. In other words, the time increase due to the count-up process due to the periodic interrupt becomes large, and adverse effects such as delay of other interrupts occur.

【0005】本発明は、上記問題に着目してなされたも
のであって、その目的とするところは、制御用カウンタ
の遅れを抑制し、ひいては同カウンタの値に基づく各種
制御を好適に実施することができる車両制御装置を提供
することである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to suppress the delay of a control counter, and to appropriately execute various controls based on the value of the counter. It is an object of the present invention to provide a vehicle control device that can perform the control.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明で
は、マイクロコンピュータにより、各制御で個々に使用
する制御用カウンタの値がベース処理にて所定時間間隔
で計数される。そして、そのカウンタ値に基づいて種々
の制御タイミングが判断されるとともに、そのタイミン
グに到達すると該当する車両制御が実行される。また、
マイクロコンピュータは、基準カウンタ計数手段と遅れ
算出手段と遅れ補正手段とを備える。基準カウンタ計数
手段は、ベース処理よりも優先度の高い定時割り込み処
理において、基準カウンタの値を計数し、遅れ算出手段
は、制御用カウンタを計数するタイミング毎に、基準カ
ウンタの値を参照することによりベース処理の遅れを算
出する。そして、そのベース処理の遅れが、制御用カウ
ンタによる一回分の計数動作幅に達していれば、遅れ補
正手段は制御用カウンタの値を補正する。このようにす
ると、マイクロコンピュータの処理負荷が増加すること
でベース処理が遅れ、それに伴い制御用カウンタの値に
遅れが生じたとしても、遅れが殆ど生じない基準カウン
タの値に基づいて制御用カウンタの値が正常値に修正さ
れる。また、ベース処理の遅れが制御用カウンタによる
1回分の計数動作幅に達した時に制御用カウンタの補正
を行うことにより、制御用カウンタの最小単位に合わせ
た補正が可能となり、必要に応じて迅速にカウンタ値を
修正することができる。その結果、制御用カウンタの値
に基づく各種制御が理論タイミング通りに実施され、マ
イクロコンピュータの処理負荷増大時における車両制御
への悪影響を防止することができる。
According to the first aspect of the present invention, the value of the control counter used individually in each control is counted by the microcomputer at predetermined time intervals in the base processing. Then, various control timings are determined based on the counter value, and when the timing is reached, the corresponding vehicle control is executed. Also,
The microcomputer includes a reference counter counting unit, a delay calculating unit, and a delay correcting unit. The reference counter counting means counts the value of the reference counter in the periodic interrupt processing having a higher priority than the base processing, and the delay calculating means refers to the value of the reference counter at each timing of counting the control counter. To calculate the delay of the base processing. Then, if the delay of the base processing has reached the width of one count operation by the control counter, the delay correction means corrects the value of the control counter. In this way, the base processing is delayed due to an increase in the processing load on the microcomputer, and even if the control counter value is delayed due to the delay, the control counter is determined based on the reference counter value that causes almost no delay. Is corrected to the normal value. In addition, by correcting the control counter when the delay of the base processing reaches one count operation width by the control counter, correction according to the minimum unit of the control counter can be performed, and quick correction can be performed if necessary. The counter value can be corrected. As a result, various controls based on the value of the control counter are performed in accordance with the theoretical timing, and it is possible to prevent an adverse effect on the vehicle control when the processing load of the microcomputer increases.

【0007】請求項2に記載の発明によれば、毎回のベ
ース処理の遅れが積算され遅れ積算値が求められる。そ
して、その遅れ積算値が制御用カウンタの1回分の計数
動作幅に達していれば、制御用カウンタの値が補正され
る。この場合、ベース処理の累積的な遅れを求め、それ
に基づき補正を行うことにより、カウンタ値の遅れ補正
が適正に実施できる。
According to the second aspect of the present invention, the delay of the base processing is integrated each time, and the integrated delay value is obtained. Then, if the delay integrated value has reached the count operation width for one time of the control counter, the value of the control counter is corrected. In this case, the delay correction of the counter value can be properly performed by obtaining the cumulative delay of the base processing and performing the correction based on the cumulative delay.

【0008】請求項3に記載の発明によれば、制御用カ
ウンタの計数動作の時間間隔に対する比率により遅れ度
合が算出され、その遅れ度合が積算される。そして、遅
れ度合の積算値が「1」以上となっていれば、その積算
値の整数部分を用いて制御用カウンタの値が補正され
る。ここで、遅れ度合を、制御用カウンタの計数動作の
時間間隔に対する比率として算出することにより、遅れ
度合の「1」は、制御用カウンタにおけるカウンタ値の
「1」に相当する。つまり、ベース処理の遅れ度合が制
御用カウンタの最小単位に合わせて求められる。そし
て、遅れ度合の積算値が「1」以上となった時、その積
算値の整数部分を用いて制御用カウンタの値を補正する
ことにより、マイクロコンピュータによる演算処理を簡
素化することができ、その演算処理のために必要となる
メモリ容量を抑制することができる。
According to the third aspect of the invention, the degree of delay is calculated based on the ratio of the control counter to the time interval of the counting operation, and the degree of delay is integrated. Then, if the integrated value of the degree of delay is “1” or more, the value of the control counter is corrected using the integer part of the integrated value. Here, by calculating the degree of delay as a ratio to the time interval of the counting operation of the control counter, "1" of the degree of delay corresponds to "1" of the counter value of the control counter. That is, the degree of delay of the base processing is obtained in accordance with the minimum unit of the control counter. Then, when the integrated value of the degree of delay becomes “1” or more, by correcting the value of the control counter using the integer part of the integrated value, the arithmetic processing by the microcomputer can be simplified, The memory capacity required for the arithmetic processing can be reduced.

【0009】請求項4に記載の発明によれば、制御用カ
ウンタの値を補正した分だけ積算値が減算される。この
場合、積算値においてベース処理の遅れが残れば、その
値が次回以降に持ち越され、カウンタ値の遅れ補正を継
続的に実施することができる。
According to the fourth aspect of the present invention, the integrated value is subtracted by an amount corresponding to the correction of the value of the control counter. In this case, if there is a delay in the base processing in the integrated value, the value is carried over to the next time and thereafter, and the delay correction of the counter value can be continuously performed.

【0010】また、請求項5のように、制御用カウンタ
の計数動作の時間間隔を、基準カウンタの整数倍とする
と、ベース処理の遅れが正確に算出され、実用上好まし
いものとなる。
Further, if the time interval of the counting operation of the control counter is set to an integral multiple of the reference counter, the delay of the base processing is accurately calculated, which is practically preferable.

【0011】[0011]

【発明の実施の形態】以下、この発明を具体化した実施
の形態を図面に従って説明する。図1には、エンジンの
運転状態を制御するためのエンジンECU1の概略構成
を示す。エンジンECU1は、各種制御を司るマイクロ
コンピュータ(マイコン)2を備える。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a schematic configuration of an engine ECU 1 for controlling the operation state of the engine. The engine ECU 1 includes a microcomputer (microcomputer) 2 that performs various controls.

【0012】マイコン2は、図示しないクランク角セン
サから出力されるクランク信号、吸気管圧力センサから
出力される吸気圧信号、水温センサから出力されるエン
ジン水温信号等のセンサ検出信号を取り込む。そして、
マイコン2は、これら各信号に基づいて、インジェク
タ、イグナイタ、負圧制御弁(VSV)に対して制御信
号を出力する。つまり、マイコン2は、燃料噴射制御、
点火時期制御、パージ制御等の各種制御を実施する。
The microcomputer 2 takes in sensor detection signals such as a crank signal output from a crank angle sensor (not shown), an intake pressure signal output from an intake pipe pressure sensor, and an engine water temperature signal output from a water temperature sensor. And
The microcomputer 2 outputs a control signal to the injector, the igniter, and the negative pressure control valve (VSV) based on these signals. That is, the microcomputer 2 performs the fuel injection control,
Various controls such as ignition timing control and purge control are performed.

【0013】具体的にマイコン2は、各種制御で個々に
使用する複数の制御用カウンタをベースルーチンにてカ
ウントアップし、更にそのカウンタ値に基づいて各種制
御の実行タイミングを判断するとともに、そのタイミン
グに到達すると該当する処理を実施する。ここで、制御
用カウンタにより実行タイミングを調整する制御とし
て、本実施の形態では、パージ制御を例に挙げて以下に
説明する。なお、パージ制御とは、周知の通り燃料タン
クにて発生する蒸発燃料(エバポガス)を機関吸気系に
放出する制御であり、マイコン2は、負圧制御弁(VS
V)を開閉することにより、機関吸気系に導くガス量
(パージガス量)を調節する。
More specifically, the microcomputer 2 counts up a plurality of control counters individually used in various controls in a base routine, and further determines execution timings of various controls based on the counter values. , The corresponding process is performed. Here, as the control for adjusting the execution timing by the control counter, in the present embodiment, purge control will be described as an example. It should be noted that the purge control is a control for discharging the evaporated fuel (evaporative gas) generated in the fuel tank to the engine intake system as is well known, and the microcomputer 2 controls the negative pressure control valve (VS
By opening and closing V), the amount of gas (purge gas amount) guided to the engine intake system is adjusted.

【0014】図2は、パージ制御の制御手順を示すフロ
ーチャートであり、図2の処理は所定時間(例えば4m
s)毎にマイコン2により実行される。図2において、
先ずステップ100では、マイコン2は、パージの実行
条件が成立しているか否かを判定する。パージの実行条
件とは、エンジン運転状態に基づくものであって、例え
ばエンジン回転数が所定回転数以上であり、且つ吸入空
気量が所定量以上である場合に成立する。この条件が非
成立の場合には、マイコン2はステップ110に移行し
て制御用カウンタcnt4msの値を「0」とするとと
もに、ステップ120にて負圧制御弁(VSV)をオフ
して本処理を終了する。一方、パージの実行条件が成立
した場合は、マイコン2は、ステップ130に移行し
て、制御用カウンタcnt4msの値に基づき5秒以上
となったか否かを判定する。この制御用カウンタcnt
4msの値は、ベースルーチンにて4ms毎にカウント
アップされる。従って、制御用カウンタcnt4msの
値が1250未満では、マイコン2はステップ130に
て否定判別し、ステップ120で負圧制御弁(VSV)
をオフして本処理を終了する。一方、制御用カウンタc
nt4msの値が1250以上(パージ実行条件成立後
5秒経過)となると、マイコン2はステップ140に移
行し負圧制御弁(VSV)をオンして本処理を終了す
る。
FIG. 2 is a flowchart showing a control procedure of the purge control. The process of FIG. 2 is performed for a predetermined time (for example, 4 m).
This is executed by the microcomputer 2 every s). In FIG.
First, in step 100, the microcomputer 2 determines whether or not the purge execution condition is satisfied. The purge execution condition is based on the engine operating state, and is established, for example, when the engine speed is equal to or higher than a predetermined speed and the intake air amount is equal to or higher than a predetermined amount. If this condition is not satisfied, the microcomputer 2 proceeds to step 110, sets the value of the control counter cnt4ms to “0”, turns off the negative pressure control valve (VSV) in step 120, and executes this processing. To end. On the other hand, when the execution condition of the purge is satisfied, the microcomputer 2 proceeds to step 130 and determines whether or not 5 seconds or more based on the value of the control counter cnt4ms. This control counter cnt
The value of 4 ms is counted up every 4 ms in the base routine. Therefore, when the value of the control counter cnt4ms is less than 1250, the microcomputer 2 makes a negative determination in step 130, and in step 120, the negative pressure control valve (VSV)
Is turned off, and the present process ends. On the other hand, the control counter c
When the value of nt4ms becomes 1250 or more (five seconds after the purge execution condition is satisfied), the microcomputer 2 proceeds to step 140, turns on the negative pressure control valve (VSV), and ends this processing.

【0015】ところで、制御用カウンタcnt4ms
は、マイコン2のベースルーチンにて4msの周期でカ
ウントアップされるものである。このカウンタ値に基づ
いて制御タイミングを判断する場合、マイコン2の処理
負荷が小さい時は、図3にて実線で示すように、制御用
カウンタcnt4msが理論通りにカウントアップさ
れ、パージ制御は遅れることなく実施される。つまり、
パージ条件が成立したt1のタイミングから5秒経過後
のt2のタイミングで負圧制御弁(VSV)がオンされ
る。しかしながら、マイコン2の処理負荷が増大する
と、ベースルーチンは元来その優先度が低いため、図3
にて破線で示すように、制御用カウンタcnt4msの
カウントが遅れ、負圧制御弁(VSV)のオンタイミン
グ(t3のタイミング)が遅れてしまう。
By the way, the control counter cnt4ms
Are counted up at a period of 4 ms in the base routine of the microcomputer 2. When the control timing is determined based on this counter value, when the processing load of the microcomputer 2 is small, the control counter cnt4ms counts up as theoretically as shown by the solid line in FIG. 3, and the purge control is delayed. It is implemented without. That is,
The negative pressure control valve (VSV) is turned on at the timing of t2 after the elapse of 5 seconds from the timing of the timing t1 when the purge condition is satisfied. However, when the processing load on the microcomputer 2 increases, the priority of the base routine is originally low.
As shown by the broken line, the count of the control counter cnt4ms is delayed, and the ON timing (timing of t3) of the negative pressure control valve (VSV) is delayed.

【0016】そこで、本実施の形態では、制御用カウン
タcnt4msの遅れを抑え、制御タイミングの遅れを
防止することを考える。具体的には、ベース処理の遅れ
を検出するための基準カウンタcntを新たに用意す
る。そして、基準カウンタ計数手段としてのマイコン2
は、図4のステップ200にて基準カウンタcntの値
をカウントアップする。なお、図4の処理は、1ms周
期で発生する高優先度の定時割り込み処理であって、こ
の処理により、基準カウンタcntは、図5(a)に示
すように、殆ど遅れがなく1ms毎にカウントアップす
るフリーランカウンタとして機能する。
Therefore, in the present embodiment, it is considered that the delay of the control counter cnt4 ms is suppressed to prevent the delay of the control timing. Specifically, a reference counter cnt for detecting a delay in the base processing is newly prepared. And a microcomputer 2 as a reference counter counting means.
Increments the value of the reference counter cnt in step 200 of FIG. The process in FIG. 4 is a high-priority periodic interrupt process that occurs in a 1 ms cycle. With this process, as shown in FIG. 5A, the reference counter cnt has almost no delay every 1 ms. Functions as a free-run counter that counts up.

【0017】ここで、マイコン2の処理負荷が小さくベ
ース処理の遅れが発生していない場合、図5(b)に示
すように、制御用カウンタcnt4msの値は4ms毎
にカウントアップされる。一方、マイコン2の処理負荷
が大きくベース処理の遅れが発生すると、例えば図5
(c)に示すように、期間t10〜t20におけるカウ
ントアップの間隔が6msとなる。すなわち、制御用カ
ウンタcnt4msのカウントアップが遅れてしまう
が、本実施の形態では、基準カウンタcntの値を参照
することにより、ベース処理の遅れを算出し、その遅れ
に基づいて制御用カウンタcnt4msの値を補正する
ようにしている。
Here, when the processing load on the microcomputer 2 is small and the base processing is not delayed, as shown in FIG. 5B, the value of the control counter cnt4ms is counted up every 4 ms. On the other hand, if the processing load on the microcomputer 2 is large and the base processing is delayed, for example, FIG.
As shown in (c), the count-up interval in the period t10 to t20 is 6 ms. That is, although the counting up of the control counter cnt4ms is delayed, in the present embodiment, the delay of the base processing is calculated by referring to the value of the reference counter cnt, and the control counter cnt4ms is calculated based on the delay. The value is corrected.

【0018】以下、本実施の形態における制御用カウン
タcnt4msの補正方法を説明する。先ず、制御用カ
ウンタcnt4msのカウントアップのタイミング毎に
基準カウンタcntの値が参照され、次式のように、遅
れdelayが算出される。
Hereinafter, a method of correcting the control counter cnt4ms in this embodiment will be described. First, the value of the reference counter cnt is referred to at each count-up timing of the control counter cnt4ms, and the delay is calculated as in the following equation.

【0019】delay(i)=(cnt(i)−cn
t(i−1)−4ms)/4ms 但し、添え字i,i−1はそれぞれ今回値、前回値を示
す。この式では、基準カウンタcntの今回値から前回
値を減算することにより、ベース処理の時間間隔が求め
られる。さらに、遅れが無い場合の時間間隔(基準値)
の4msを減算することにより、時間単位の遅れが算出
されるとともに、その時間単位の遅れが基準値の4ms
で除算されて遅れdelayが求められる。すなわち、
遅れdelayは、制御用カウンタcnt4msのカウ
ント動作の時間間隔(4ms)に対する比率(遅れ度
合)として求められる。
Delay (i) = (cnt (i) -cn
t (i-1) -4ms) / 4ms where the subscripts i and i-1 indicate the current value and the previous value, respectively. In this equation, the time interval of the base processing is obtained by subtracting the previous value from the current value of the reference counter cnt. Furthermore, the time interval when there is no delay (reference value)
By subtracting 4 ms, a delay in time unit is calculated, and the delay in time unit is 4 ms of the reference value.
And delay is obtained. That is,
The delay “delay” is obtained as a ratio (degree of delay) to the time interval (4 ms) of the count operation of the control counter cnt4 ms.

【0020】ここで、理論タイミング通りにベース処理
が実行されていれば、cnt(i)−cnt(i−1)
は、4msであり、遅れdelayは常に「0」とな
る。しかしながら、ベース処理に遅れが発生すると、c
nt(i)−cnt(i−1)>4msとなり、遅れd
elayは、ベース処理の遅れに応じた値となる。例え
ば、図5(c)におけるt15,t20のタイミングで
は、処理間隔が通常の4msに対し6msに遅れている
ので、 delay(i)=(6ms−4ms)/4ms=0.
5 となる。
Here, if the base processing is executed according to the theoretical timing, cnt (i) -cnt (i-1)
Is 4 ms, and the delay “delay” is always “0”. However, if a delay occurs in the base processing, c
nt (i) −cnt (i−1)> 4 ms, and the delay d
elay is a value corresponding to the delay of the base processing. For example, at the timings t15 and t20 in FIG. 5C, the processing interval is 6 ms behind the normal 4 ms, so that delay (i) = (6 ms−4 ms) / 4 ms = 0.
5

【0021】さらに、次式のように、遅れ積算値del
aysumが算出される。 delaysum(i)=delaysum(i−1)
+delay(i) この式により、遅れdelayが積算され、図5(d)
に示すように、t15のタイミングではdelaysu
m=0.5となり、t20のタイミングではdelay
sum=1.0となる。
Further, as shown in the following equation, the delay integrated value del
aysum is calculated. delaysum (i) = delaysum (i-1)
+ Delay (i) By this equation, the delay is integrated, and FIG.
As shown in the timing chart of FIG.
m = 0.5, and at the timing of t20, delay
sum = 1.0.

【0022】そして、次式のように、delaysum
の整数部分のみを用いて、遅れ補正値delayadj
が求められる。 delayadj=INT(delaysum(i)) その後、次式のように、制御用カウンタcnt4msの
通常のカウント動作に対し、遅れ補正値delayad
jを加算することにより、カウンタ値の遅れが補正され
る。
Then, as shown in the following equation, delaysum
Delay correction value delayadj using only the integer part of
Is required. delayaj = INT (delaysum (i)) Then, as shown in the following equation, the delay correction value delayad is different from the normal count operation of the control counter cnt4ms.
By adding j, the delay of the counter value is corrected.

【0023】cnt4ms(i)=cnt4ms(i−
1)+1+delayadj 具体的には、図5の(c),(d)に示すように、t2
0のタイミングにおいて、遅れ積算値delaysum
(i)=1.0となるので、制御用カウンタcnt4m
sの値は、前回値の「12」に対し、カウントアップ分
の「1」と遅れ補正値delayadjの「1」とが加
算され、正常値の「14」に修正される。
Cnt4ms (i) = cnt4ms (i−
1) + 1 + delayadj Specifically, as shown in (c) and (d) of FIG.
At the timing of 0, the delay integrated value delaysum
Since (i) = 1.0, the control counter cnt4m
The value of s is corrected to the normal value of "14" by adding "1" of the count-up and "1" of the delay correction value delayadj to the previous value of "12".

【0024】また、カウンタ値の補正後、次式のよう
に、遅れ積算値delaysum(i)から遅れ補正値
delayadjが減算される。 delaysum(i)=delaysum(i)−d
elayadj つまり、本実施の形態では、制御用カウンタcnt4m
sのカウントタイミング毎に処理遅れを求め積算してい
き、遅れ積算値delaysumが「1」以上となった
とき、カウンタ値の補正が実施される。
After the correction of the counter value, the delay correction value delayadj is subtracted from the delay integrated value delaysum (i) as in the following equation. delaysum (i) = delaysum (i) -d
elayadj That is, in the present embodiment, the control counter cnt4m
Processing delays are calculated and integrated at each count timing of s, and when the delay integrated value delaysum becomes equal to or greater than "1", the counter value is corrected.

【0025】次に、マイコン2により実行されるベース
ルーチンでの遅れ補正処理を図6のフローチャートを用
いて説明する。図6において、先ずステップ210で
は、マイコン2は、4msが経過したか否かを判別し、
4msが経過していなければ、ステップ220〜260
を実行することなく本処理を終了する。一方、4msが
経過した場合、マイコン2は、ステップ220に移行
し、基準カウンタcntの値を参照するとともにその値
をマイコン2の内蔵メモリに記憶する。ここでメモリに
記憶した値は、次回の処理にて基準カウンタcntの前
回値として使用される。
Next, the delay correction process in the base routine executed by the microcomputer 2 will be described with reference to the flowchart of FIG. In FIG. 6, first, in step 210, the microcomputer 2 determines whether 4 ms has elapsed,
If 4 ms has not elapsed, steps 220 to 260
This processing is terminated without executing. On the other hand, if 4 ms has elapsed, the microcomputer 2 proceeds to step 220, refers to the value of the reference counter cnt, and stores the value in the built-in memory of the microcomputer 2. The value stored in the memory is used as the previous value of the reference counter cnt in the next process.

【0026】そして、マイコン2は、ステップ230に
てベース処理の遅れdelayを算出するとともに、ス
テップ240にて遅れ積算値delaysumを算出す
る。さらに、ステップ250においてマイコン2は、制
御用カウンタcnt4msのカウントアップを行うとと
もに、遅れ積算値delaysumの整数部分(遅れ補
正値delayadj)を加算することにより遅れ補正
を行う。その後、ステップ260においてマイコン2
は、遅れ積算値delaysumから遅れ補正値del
ayadjを減算する。
Then, the microcomputer 2 calculates the delay "delay" of the base processing in step 230, and calculates the delay integrated value "delaysum" in step 240. Further, in step 250, the microcomputer 2 performs the count-up of the control counter cnt4ms and performs the delay correction by adding an integer part (the delay correction value delayadj) of the delay integrated value delaysum. Thereafter, in step 260, the microcomputer 2
Is the delay correction value del from the delay integration value delaysum
ayadj is subtracted.

【0027】なお、本実施の形態では、図6のステップ
230,240の処理が遅れ算出手段に相当し、ステッ
プ250の処理が遅れ補正手段に相当する。また上記で
は、パージ制御に使用するための制御用カウンタcnt
4msを例にとり説明したが、噴射制御や点火時期制御
等に使用する全ての制御用カウンタも同様に、基準カウ
ンタcntの値を参照してカウンタ値の遅れが補正され
る。具体的には、例えば、8msの時間間隔でカウント
アップされる制御用カウンタcnt8msの場合、遅れ
delayは、 delay(i)=(cnt(i)−cnt(i−1)
−8ms)/8ms として算出され、その遅れdelayの積算値dela
ysumが「1」以上となったとき、制御用カウンタc
nt8msの補正が行われる。
In this embodiment, the processing of steps 230 and 240 in FIG. 6 corresponds to the delay calculating means, and the processing of step 250 corresponds to the delay correcting means. In the above description, the control counter cnt used for the purge control is used.
Although 4 ms has been described as an example, all control counters used for injection control, ignition timing control, and the like similarly correct the delay of the counter value with reference to the value of the reference counter cnt. Specifically, for example, in the case of the control counter cnt8ms that counts up at a time interval of 8ms, the delay “delay (i) = (cnt (i) −cnt (i−1)”)
−8 ms) / 8 ms, and the integrated value “dela” of the delay “delay”
When ysum becomes “1” or more, the control counter c
Correction of nt 8 ms is performed.

【0028】以上詳述した本実施の形態によれば、以下
に示す効果が得られる。 (1)マイコン2の処理負荷が増加することでベース処
理が遅れ、それに伴い制御用カウンタcnt4msの値
に遅れが生じたとしても、遅れが殆ど生じない基準カウ
ンタcntの値に基づいて制御用カウンタcnt4ms
の値が正常値に修正される。また、ベース処理の遅れが
制御用カウンタcnt4msによる1回分の計数動作幅
(カウンタ値の「1」)に達した時に制御用カウンタc
nt4msの補正を行うことにより、制御用カウンタc
nt4msの最小単位に合わせた補正が可能となり、必
要に応じて迅速にカウンタ値を修正することができる。
その結果、制御用カウンタcnt4msの値に基づくパ
ージ制御が理論タイミング通りに実施され、マイコン2
の処理負荷増大時における車両制御への悪影響を防止す
ることができる。また、優先度の高い定時割り込み処理
については、1個の基準カウンタcntの計数が追加さ
れるのみであるので、割り込み負荷が過剰に増加するこ
ともなく、他の割り込み処理が遅れるといった問題も回
避できる。
According to the embodiment described in detail above, the following effects can be obtained. (1) Even if the base processing is delayed due to an increase in the processing load of the microcomputer 2 and the value of the control counter cnt4ms is accordingly delayed, the control counter based on the value of the reference counter cnt which hardly causes a delay. cnt4ms
Is corrected to the normal value. When the delay of the base processing reaches one count operation width (counter value “1”) by the control counter cnt4 ms, the control counter c
By performing nt4 ms correction, the control counter c
Correction according to the minimum unit of nt 4 ms becomes possible, and the counter value can be quickly corrected as needed.
As a result, the purge control based on the value of the control counter cnt4ms is performed according to the theoretical timing, and the microcomputer 2
Can be prevented from adversely affecting the vehicle control when the processing load increases. In addition, in the case of the high-priority periodic interrupt processing, since only one reference counter cnt is added, the problem that the interrupt load does not excessively increase and other interrupt processing is delayed is avoided. it can.

【0029】(2)制御用カウンタcnt4msのカウ
ントタイミング毎に、ベース処理の遅れdelayが積
算されて遅れ積算値delaysum が求められ、そ
の遅れ積算値delaysumに基づいてカウンタ値の
補正が実施される。この場合、ベース処理の累積的な遅
れを求め、それに基づき補正を行うことにより、カウン
タ値の遅れ補正が適正に実施できる。
(2) At each count timing of the control counter cnt4ms, the delay "delay" of the base processing is integrated to obtain a delay integrated value "delaysum", and the counter value is corrected based on the delay integrated value "delaysum". In this case, the delay correction of the counter value can be properly performed by obtaining the cumulative delay of the base processing and performing the correction based on the cumulative delay.

【0030】(3)遅れdelayは、制御用カウンタ
cnt4msのカウント動作の時間間隔(4ms)に対
する比率(遅れ度合)として算出され、遅れdelay
の積算値delaysumが「1」以上となったとき、
その積算値delaysumの整数部分を用いて制御用
カウンタcnt4msの値が補正される。ここで、遅れ
delayを、制御用カウンタcnt4msのカウント
動作の時間間隔(4ms)に対する比率として算出する
ことにより、遅れdelayの「1」は、制御用カウン
タcnt4msにおけるカウンタ値の「1」に相当す
る。つまり、遅れdelayが制御用カウンタcnt4
msの最小単位に合わせて求められる。そして、積算値
delaysumが「1」以上となったとき、その積算
値delaysumの整数部分を用いて制御用カウンタ
cnt4msの値を補正することにより、マイコン2の
演算処理を簡素化することができ、その演算処理のため
に必要となるメモリ容量を抑制することができる。
(3) The delay “delay” is calculated as a ratio (delay degree) to the time interval (4 ms) of the count operation of the control counter cnt 4 ms, and the delay “delay” is calculated.
When the integrated value delaysum of is equal to or more than “1”,
The value of the control counter cnt4ms is corrected using the integer part of the integrated value delaysum. Here, by calculating the delay “delay” as a ratio to the time interval (4 ms) of the count operation of the control counter cnt4ms, “1” of the delay “delay” corresponds to “1” of the counter value in the control counter cnt4ms. . That is, the delay “delay” is equal to the control counter cnt4.
It is determined according to the minimum unit of ms. Then, when the integrated value delaysum is equal to or more than “1”, the arithmetic processing of the microcomputer 2 can be simplified by correcting the value of the control counter cnt4ms using the integer part of the integrated value delaysum, The memory capacity required for the arithmetic processing can be reduced.

【0031】(4)制御用カウンタcnt4msの値を
補正した時、その補正分だけ遅れ積算値delaysu
m(i)を減算するようにした。この場合、遅れ積算値
delaysumにおいてベース処理の遅れが残れば、
その値が次回以降に持ち越され、カウンタ値の遅れ補正
を継続的に実施することができる。
(4) When the value of the control counter cnt4ms is corrected, the delay integrated value delaysu is corrected by the correction.
m (i) was subtracted. In this case, if a delay of the base processing remains in the delay integrated value delaysum,
The value is carried over from the next time, and the delay correction of the counter value can be continuously performed.

【0032】(5)制御用カウンタcnt4msのカウ
ント動作の時間間隔は、基準カウンタcntの整数倍
(4倍)であるので、遅れdelayが正確に算出さ
れ、実用上好ましいものとなる。
(5) Since the time interval of the count operation of the control counter cnt4ms is an integral multiple (four times) of the reference counter cnt, the delay is accurately calculated, which is practically preferable.

【0033】なお、上記以外に次の形態にて具体化でき
る。上記実施の形態では、「ベース処理の遅れ」とし
て、時間比率からなる遅れdelay(遅れ度合)を求
めたがこれに限定するものではない。例えば、「ベース
処理の遅れ」として、遅れ時間を求めるようにする。こ
の場合、4msの時間間隔でカウントアップされる制御
用カウンタであれば、遅れ時間は、 遅れ時間=cnt(i)−cnt(i−1)−4ms として算出される。そして、その遅れ時間が制御用カウ
ンタの計数動作幅である時間間隔(4ms)以上となっ
た時に、カウンタ値が補正される。
The present invention can be embodied in the following forms other than the above. In the above-described embodiment, the delay (delay) including the time ratio is obtained as the “delay of the base process”, but the present invention is not limited to this. For example, the delay time is determined as “delay in base processing”. In this case, if the control counter counts up at a time interval of 4 ms, the delay time is calculated as delay time = cnt (i) −cnt (i−1) −4 ms. Then, when the delay time is equal to or longer than the time interval (4 ms) which is the counting operation width of the control counter, the counter value is corrected.

【0034】また、上記実施の形態では、制御用カウン
タcnt4msのカウント動作の時間間隔が基準カウン
タcntの4倍となるため、遅れdelayを積算する
ものであったが、例えば、制御用カウンタと基準カウン
タとが同じ時間間隔でカウントされる場合には、遅れd
elayを積算する必要はない。
In the above embodiment, the time interval of the count operation of the control counter cnt 4 ms is four times as long as the reference counter cnt. Therefore, the delay is integrated. If the counter counts at the same time interval, the delay d
There is no need to integrate elay.

【0035】さらに、基準カウンタcnt及び制御用カ
ウンタcnt4msは、カウントアップ動作するアップ
カウンタであるが、これに限定するものではなく、ダウ
ンカウンタにて本発明を具体化してもよい。
Further, the reference counter cnt and the control counter cnt4ms are up-counters that perform a count-up operation. However, the present invention is not limited to this, and the present invention may be embodied as a down-counter.

【0036】上記実施の形態において、車載エンジンの
制御を司るエンジンECU1に本発明を具体化したが、
トランスミッション制御など他の制御を行うECUに具
体化してもよい。
In the above-described embodiment, the present invention is embodied in the engine ECU 1 for controlling the vehicle-mounted engine.
The present invention may be embodied in an ECU that performs other control such as transmission control.

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

【図1】発明の実施の形態におけるECUの概要を示す
構成図。
FIG. 1 is a configuration diagram showing an outline of an ECU according to an embodiment of the invention.

【図2】パージ制御の制御手順を示すフローチャート。FIG. 2 is a flowchart showing a control procedure of purge control.

【図3】パージ制御の概要を示すタイムチャート。FIG. 3 is a time chart showing an outline of purge control.

【図4】基準カウンタのカウント処理を示すフローチャ
ート。
FIG. 4 is a flowchart showing a count process of a reference counter.

【図5】遅れ補正処理を説明するためのタイムチャー
ト。
FIG. 5 is a time chart for explaining a delay correction process.

【図6】遅れ補正処理を示すフローチャート。FIG. 6 is a flowchart illustrating a delay correction process.

【図7】従来技術においてベースルーチンを示すフロー
チャート。
FIG. 7 is a flowchart showing a base routine in the related art.

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

1…車両制御装置としてのエンジンECU、2…マイコ
ン、cnt…基準カウンタ、cnt4ms…制御用カウ
ンタ。
Reference numeral 1 denotes an engine ECU as a vehicle control device, 2 denotes a microcomputer, cnt denotes a reference counter, and cnt4 ms denotes a control counter.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 車両の各種制御を実行するためのマイク
ロコンピュータを備え、該マイクロコンピュータは、各
制御で個々に使用する制御用カウンタの値をベース処理
にて所定時間間隔で計数し、更にそのカウンタ値に基づ
いて種々の制御タイミングを判断するとともに、そのタ
イミングに到達すると該当する制御を実行する車両制御
装置であって、 前記マイクロコンピュータは、 前記ベース処理よりも優先度の高い定時割り込み処理に
おいて基準カウンタの値を計数する基準カウンタ計数手
段と、 前記制御用カウンタを計数するタイミング毎に、基準カ
ウンタの値を参照することによりベース処理の遅れを算
出する遅れ算出手段と、 前記遅れ算出手段によりベース処理の遅れを算出した
際、そのベース処理の遅れが前記制御用カウンタによる
1回分の計数動作幅に達していれば、制御用カウンタの
値を補正する遅れ補正手段とを備えることを特徴とする
車両制御装置。
1. A microcomputer for executing various controls of a vehicle, wherein the microcomputer counts values of control counters used individually in each control at predetermined time intervals in a base process, and further includes a microcomputer. A vehicle control device that determines various control timings based on a counter value, and executes a corresponding control when the timing is reached, wherein the microcomputer is configured to execute a higher priority interrupt processing than the base processing. Reference counter counting means for counting the value of the reference counter, delay calculation means for calculating the delay of the base processing by referring to the value of the reference counter for each timing of counting the control counter, and the delay calculation means When calculating the base processing delay, the base processing delay is added to the control counter. Batch of if reached counting width that, the vehicle control device, characterized in that it comprises a delay correcting means for correcting the value of the control counter.
【請求項2】 請求項1に記載の車両制御装置におい
て、 前記遅れ算出手段は、毎回のベース処理の遅れを積算し
て遅れ積算値を求め、 前記遅れ補正手段は、前記遅れ積算値が前記制御用カウ
ンタの1回分の計数動作幅に達していれば、制御用カウ
ンタの値を補正することを特徴とする車両制御装置。
2. The vehicle control device according to claim 1, wherein the delay calculating means obtains a delay integrated value by integrating a delay of the base processing each time, and the delay correcting means determines that the delayed integrated value is A vehicle control device that corrects the value of the control counter when the count operation width of the control counter reaches one count.
【請求項3】 請求項1に記載の車両制御装置におい
て、 前記遅れ算出手段は、前記制御用カウンタの計数動作の
時間間隔に対する比率により遅れ度合を算出するととも
に、その遅れ度合を積算し、 前記遅れ補正手段は、前記遅れ度合の積算値が「1」以
上となっていれば、その積算値の整数部分を用いて制御
用カウンタの値を補正することを特徴とする車両制御装
置。
3. The vehicle control device according to claim 1, wherein the delay calculating means calculates a delay degree based on a ratio of the control counter to a time interval of a counting operation, and integrates the delay degree. The vehicle control device, wherein the delay correction means corrects the value of the control counter using an integer part of the integrated value when the integrated value of the delay degree is “1” or more.
【請求項4】 請求項2又は3に記載の車両制御装置に
おいて、 前記制御用カウンタの値を補正した時、その補正分だけ
前記積算値を減算することを特徴とする車両制御装置。
4. The vehicle control device according to claim 2, wherein when the value of the control counter is corrected, the integrated value is subtracted by the correction.
【請求項5】 請求項1〜4のいずれかに記載の車両制
御装置において、 前記制御用カウンタの計数動作の時間間隔は、前記基準
カウンタの整数倍であることを特徴とする車両制御装
置。
5. The vehicle control device according to claim 1, wherein a time interval of the counting operation of the control counter is an integral multiple of the reference counter.
JP2001105556A 2001-04-04 2001-04-04 Vehicle control device Pending JP2002303201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001105556A JP2002303201A (en) 2001-04-04 2001-04-04 Vehicle control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001105556A JP2002303201A (en) 2001-04-04 2001-04-04 Vehicle control device

Publications (1)

Publication Number Publication Date
JP2002303201A true JP2002303201A (en) 2002-10-18

Family

ID=18958232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001105556A Pending JP2002303201A (en) 2001-04-04 2001-04-04 Vehicle control device

Country Status (1)

Country Link
JP (1) JP2002303201A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006280090A (en) * 2005-03-29 2006-10-12 Toshiba Schneider Inverter Corp Inverter device
KR20110126491A (en) * 2010-05-17 2011-11-23 엘지이노텍 주식회사 Scheduling device for vehicles and scheduling method for electric control of vehicles
JP2013024116A (en) * 2011-07-20 2013-02-04 Denso Corp Signal output device and electronic control device
US9009519B2 (en) 2011-08-09 2015-04-14 Renesas Electronics Corporation Timing control device and control method thereof
WO2018225366A1 (en) * 2017-06-08 2018-12-13 日立オートモティブシステムズ株式会社 Electronic control device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006280090A (en) * 2005-03-29 2006-10-12 Toshiba Schneider Inverter Corp Inverter device
JP4567505B2 (en) * 2005-03-29 2010-10-20 東芝シュネデール・インバータ株式会社 Inverter device
KR20110126491A (en) * 2010-05-17 2011-11-23 엘지이노텍 주식회사 Scheduling device for vehicles and scheduling method for electric control of vehicles
KR101683893B1 (en) 2010-05-17 2016-12-07 엘지이노텍 주식회사 Scheduling device for vehicles and scheduling method for electric control of vehicles
JP2013024116A (en) * 2011-07-20 2013-02-04 Denso Corp Signal output device and electronic control device
US9009519B2 (en) 2011-08-09 2015-04-14 Renesas Electronics Corporation Timing control device and control method thereof
US9385691B2 (en) 2011-08-09 2016-07-05 Renesas Electronics Corporation Timing control device and control method thereof
WO2018225366A1 (en) * 2017-06-08 2018-12-13 日立オートモティブシステムズ株式会社 Electronic control device
JP2018206231A (en) * 2017-06-08 2018-12-27 日立オートモティブシステムズ株式会社 Electronic controller
US11449091B2 (en) 2017-06-08 2022-09-20 Hitachi Astemo, Ltd. Electronic control device

Similar Documents

Publication Publication Date Title
US7204080B2 (en) Air-fuel ratio controller for internal combustion engine
JP2001032739A (en) Air-fuel ratio control device for internal combustion engine
EP3462009A1 (en) Controller and control method for internal combustion engine
US20190048814A1 (en) Variable combustion cylinder ratio control device and method
US10760535B2 (en) Control device for internal combustion engine and control method for internal combustion engine
JP2002303201A (en) Vehicle control device
JP3156534B2 (en) Air-fuel ratio control device for internal combustion engine
JPH084579A (en) Fuel injection amount control device for internal combustion engine
JP2610622B2 (en) Method and apparatus for adaptively controlling mixture formation in an internal combustion engine
JP2010281263A (en) Ignition timing control device for internal combustion engine
JP2010169051A (en) Ignition timing control device for internal combustion engine
CN112814795A (en) Engine controller and engine control method
JP2000310140A (en) Air-fuel ratio control device for internal combustion engine
JP2834937B2 (en) Internal combustion engine knock control device
JP2005344604A (en) Internal combustion engine control device
JP2001355495A (en) Fuel injection control device or on-vehicle internal combustion engine
US11193433B2 (en) Engine controller, engine control method, and memory medium
JP2002070659A (en) Purge control device for internal combustion engine
JPS6151655B2 (en)
JP2001207895A (en) Air-fuel ratio control device of internal combustion engine
JP2001273152A (en) Electronic controller
JP2004036462A (en) Control device for internal combustion engine
JPH01280677A (en) Ignition timing control device for internal combustion engine
JP2021085362A (en) Exhaust emission control system
JPS63219848A (en) Fuel supply system error detector of internal combustion engine