JPH0570086B2 - - Google Patents

Info

Publication number
JPH0570086B2
JPH0570086B2 JP59104117A JP10411784A JPH0570086B2 JP H0570086 B2 JPH0570086 B2 JP H0570086B2 JP 59104117 A JP59104117 A JP 59104117A JP 10411784 A JP10411784 A JP 10411784A JP H0570086 B2 JPH0570086 B2 JP H0570086B2
Authority
JP
Japan
Prior art keywords
period
pulse
average
comparison result
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59104117A
Other languages
Japanese (ja)
Other versions
JPS60247117A (en
Inventor
Minoru Takahashi
Kyoshi Yagi
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 Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP59104117A priority Critical patent/JPS60247117A/en
Publication of JPS60247117A publication Critical patent/JPS60247117A/en
Publication of JPH0570086B2 publication Critical patent/JPH0570086B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F1/00Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow
    • G01F1/05Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects
    • G01F1/20Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects by detection of dynamic effects of the flow
    • G01F1/32Measuring the volume flow or mass flow of fluid or fluent solid material wherein the fluid passes through a meter in a continuous flow by using mechanical effects by detection of dynamic effects of the flow using swirl flowmeters
    • G01F1/325Means for detecting quantities used as proxy variables for swirl
    • G01F1/3287Means for detecting quantities used as proxy variables for swirl circuits therefor

Description

【発明の詳細な説明】 発明の技術分野 本発明は、自動車エンジン等に流入する空気量
を計測する為のカルマン渦式空気流量センサから
出力されるパルス信号の平均周期を算出する装置
に関するものである。
[Detailed Description of the Invention] Technical Field of the Invention The present invention relates to a device for calculating the average period of a pulse signal output from a Karman vortex air flow sensor for measuring the amount of air flowing into an automobile engine or the like. be.

従来技術と問題点 一般に、内燃機関においてはその吸入空気量を
計測し、計測結果に基づいて空燃比が一定になる
ように燃料噴射量を制御している。吸入空気量を
計測する計測装置は従来より各種提案されている
が、その中で、優れた応答性を有するカルマン渦
式空気流量センサ(以下カルマンセンサという)
が注目されている。このカルマンセンサは、内燃
機関の吸入側に渦発生体を置くとその近傍に空気
流量に比例した頻度で空気の渦(カルマン渦)が
発生することを利用し、カルマン渦の発生に関係
したタイミングでパルスを発生するものであり、
この発生したパルス信号の周期はその時の流入空
気量に反比例したものとなる。
Prior Art and Problems Generally, in an internal combustion engine, the intake air amount is measured, and the fuel injection amount is controlled based on the measurement result so that the air-fuel ratio is constant. Various measurement devices have been proposed to measure the amount of intake air, but one of them is the Karman vortex air flow sensor (hereinafter referred to as the Karman sensor), which has excellent responsiveness.
is attracting attention. This Karman sensor utilizes the fact that when a vortex generator is placed on the intake side of an internal combustion engine, air vortices (Karman vortices) are generated in the vicinity at a frequency proportional to the air flow rate. It generates a pulse at
The period of this generated pulse signal is inversely proportional to the amount of incoming air at that time.

ところで、内燃機関の空気流量は、吸気、排気
等の工程を周期として変動しており、例えば第1
1図に示すように、スロツトルバルブ開度が大き
くなればなるほど、その変動幅も大きくなる。カ
ルマンセンサはこのような変動にも十分に追従す
るだけの応答性を有するから、例えば第12図に
示すように、スロツトルバルブ開度が大きい大流
量時においては、流量大の期間に発生するパルス
の周期は極めて短くなり、流量小の期間に発生す
るパルスの周期は比較的長くなる。従つて、何等
かの方法でパルスの周期の平均を求める必要があ
る。
By the way, the air flow rate of an internal combustion engine fluctuates based on the cycles of intake, exhaust, etc.
As shown in FIG. 1, the greater the throttle valve opening, the greater the fluctuation range. Since the Kalman sensor has sufficient responsiveness to follow such fluctuations, for example, as shown in Fig. 12, when the throttle valve opening is large and the flow rate is large, this phenomenon occurs during the period when the flow rate is large. The period of pulses becomes extremely short, and the period of pulses that occur during periods of low flow rate becomes relatively long. Therefore, it is necessary to use some method to find the average pulse period.

この為の一般的な技術としては、所定パルス毎
にその周期の平均を求めることが考えられる。し
かし、この方法は、大流量時の前記変動毎(第1
2図の区間lをいう)の周期を算出しようとする
場合には相当多くのパルス数毎に平均化する必要
があり、そうすると周期の長くなる小流量時にお
ける応答性が損なわれる欠点がある。特に、大流
量時の一変動区間に現れるパルス数にはバラツキ
があるので、大流量時には複数の変動区間毎に平
均周期を算出した方がより精度の高い平均値を得
ることができるが、こうするとますます小流量時
の応答性が悪くなる。
A common technique for this purpose is to find the average period of each predetermined pulse. However, in this method, each fluctuation (first
When attempting to calculate the period of section 1 in Fig. 2), it is necessary to average every considerably large number of pulses, which has the disadvantage that responsiveness at low flow rates, where the period becomes long, is impaired. In particular, since there is variation in the number of pulses that appear in one fluctuation interval during large flow rates, it is possible to obtain a more accurate average value by calculating the average period for each of multiple fluctuation intervals during large flow rates. As a result, the response at small flow rates becomes increasingly poor.

発明の目的 本発明はこのような事情に鑑みて為されたもの
であり、その目的は、大流量時における平均周期
の算出精度を高め、且つ小流量時における応答性
をも向上させることにある。
Purpose of the Invention The present invention has been made in view of the above circumstances, and its purpose is to improve the calculation accuracy of the average period at times of large flow rates and also to improve the responsiveness at times of small flow rates. .

発明の原理 一般にカルマンセンサでは、大流量時の変動幅
の大きい時には、第12図に示したように、複数
個のパルスが出現すると共にパルス周期の大きい
状態が瞬時空気流量の変動の一周期毎に現れた。
そこで、この大流量時に現れる最大周期より若干
短い第1の所定時間を設定し、パルス周期比較手
段によりパルス信号の周期がこの第1の所定時間
より長いか否かを判別させ、長いときは大なる比
較結果を、そうでないときは小なる比較結果を出
力させれば、大流量時には変動の区切り目で小、
大なる比較結果がこの順序で出力されることにな
るので、これを監視すれば大流量時における変動
の区切り目が検出できる。従つて、変動の区切り
目が第3の所定値に相当する回数だけ検出された
ときに平均を求めるようにすれば、大流量時に複
数変動毎に平均を算出することが可能となる。ま
た、小流量時におけるカルマンセンサの出力パル
スの周期は前記第1の所定時間より長くなるか
ら、前記パルス周期比較手段の比較結果が第2の
所定値に相当する回数だけ大となる毎に平均を求
めるようにすれば、第2の所定値に相当するパル
ス数毎に平均化することができ、例えば第2の所
定値を1とすれば各パルス毎に平均を求めること
も可能となる。一方、中流量時にはパルスの周期
は前記第1の所定時間より短いものが殆どとなる
から、上述の構成だけでは中流量時の平均化は困
難である。しかし、これは、第1の所定値に相当
するパルス数が出現する毎に平均を求めることに
より解決される。
Principle of the Invention In general, in a Kalman sensor, when the fluctuation width is large during a large flow rate, as shown in Fig. 12, multiple pulses appear and a state with a large pulse period occurs every cycle of the fluctuation of the instantaneous air flow rate. appeared on.
Therefore, a first predetermined time period that is slightly shorter than the maximum period that appears at the time of a large flow rate is set, and the pulse period comparing means determines whether or not the period of the pulse signal is longer than this first predetermined time period. If you output a comparison result that is smaller when the flow rate is large, and a smaller comparison result when the flow rate is not high,
The large comparison results will be output in this order, so by monitoring this, it is possible to detect the break in fluctuations during large flow rates. Therefore, if the average is calculated when the breakpoint of the fluctuation is detected the number of times corresponding to the third predetermined value, it becomes possible to calculate the average for each of the plurality of fluctuations during a large flow rate. Further, since the period of the output pulse of the Kalman sensor at the time of a small flow rate is longer than the first predetermined time, the average If the number of pulses is calculated, it is possible to average the number of pulses corresponding to the second predetermined value. For example, if the second predetermined value is set to 1, it is also possible to calculate the average for each pulse. On the other hand, at medium flow rates, the pulse period is almost always shorter than the first predetermined time, so it is difficult to average the pulses at medium flow rates using only the above-mentioned configuration. However, this can be solved by calculating the average every time a number of pulses corresponding to the first predetermined value appear.

発明の構成 第1図、第3図及び第4図は本発明の平均算出
装置の構成説明図である。
Configuration of the Invention FIGS. 1, 3, and 4 are explanatory diagrams of the configuration of the average calculation device of the present invention.

第1図の平均算出装置において、パルス数計数
手段1はカルマンセンサから出力されるパルスの
個数を計数し、その計数値を平均算出手段2に出
力する。パルス周期計測手段3はカルマンセンサ
から出力されるパルスの周期を計測し、パルス周
期比較手段4はパルス周期計測手段3で計測され
た各パルス周期を第1の所定時間と比較し、パル
ス周期が第1の所定時間より大きいとき大なる比
較結果を発生し、そうでないとき小なる比較結果
を発生する。平均算出手段2は、下記条件〜
のいずれかが成立する毎に前回の平均算出終了時
からの時間とパルス数に基づきパルス信号の周期
の平均を算出する。
In the average calculation device shown in FIG. 1, the pulse number counting means 1 counts the number of pulses output from the Kalman sensor and outputs the counted value to the average calculation means 2. The pulse period measuring means 3 measures the period of the pulse output from the Kalman sensor, and the pulse period comparing means 4 compares each pulse period measured by the pulse period measuring means 3 with a first predetermined time, and determines the pulse period. A large comparison result is generated when the time is greater than the first predetermined time, and a small comparison result is generated otherwise. The average calculation means 2 satisfies the following conditions ~
Each time one of the above conditions holds true, the average period of the pulse signal is calculated based on the time since the end of the previous average calculation and the number of pulses.

前回の平均算出終了時からパルス数計数手段
1で第1の所定値に相当するパルス数が計数さ
れたとき パルス周期比較手段4から大なる比較結果が
第2の所定値に相当する回数だけ出力されたと
き パルス周期比較手段4から小なる比較結果に
続いて大なる比較結果が出力される状態が第3
の所定値に相当する回数だけ現れたとき 上記周期比較手段4の閾値である第1の所定時
間は、大流量時に現れる最も長いパルス周期(第
12図の周期tmax)より若干短く設定されてい
る。また、第1の所定値は主に中流量時における
応答性を決定するパラメータであり、固定値でも
可変値でも良い。固定値とする場合は大流量時の
一変動区間に現れるであろう最大パルス数よりも
大き目に設定する必要がある。また、可変値とす
る場合は、大流量時ではその一変動区間に現れる
であろう最大パルス数よりも大き目の値とし、小
流量になるほど小さな値とするのが望ましい。第
2の所定値は、主に小流量時における平均化の応
答性を決定するパラメータであり、小流量時には
この第1の所定値に相当するパルス毎に平均化が
行なわれる。第1の所定値は、固定値としても良
く、或は小流量時には例えば1と小さく大流量時
になるほど例えば5等の如く大きなる値であつて
も良い。可変値とする場合、増加はゆるやかに、
減少は急激にすることが望ましい。第3の所定値
は、例えば3等に固定しても良く、また大流量時
は大きく、小流量時になるほど小さくなる可変値
としても良い。可変値とする場合、増加はゆるや
かに、減少は急激に行なうことが望ましい。
When the pulse number counting means 1 has counted the number of pulses corresponding to the first predetermined value since the end of the previous average calculation, the pulse period comparison means 4 outputs a large comparison result the number of times corresponding to the second predetermined value. When the pulse period comparison means 4 outputs a small comparison result followed by a large comparison result, the third state is
The first predetermined time, which is the threshold of the period comparison means 4, is set slightly shorter than the longest pulse period (period tmax in FIG. 12) that appears at a large flow rate. . Further, the first predetermined value is a parameter that mainly determines the responsiveness at medium flow rates, and may be a fixed value or a variable value. If it is a fixed value, it needs to be set larger than the maximum number of pulses that will appear in one fluctuation section during a large flow rate. In addition, in the case of a variable value, it is desirable to set the value to be larger than the maximum number of pulses that would appear in one fluctuation section when the flow rate is large, and to set the value to be smaller as the flow rate becomes smaller. The second predetermined value is a parameter that mainly determines the responsiveness of averaging when the flow rate is small, and when the flow rate is small, averaging is performed for each pulse corresponding to the first predetermined value. The first predetermined value may be a fixed value, or may be as small as, for example, 1 when the flow rate is small, and may be a larger value, such as 5, as the flow rate becomes larger. When using a variable value, the increase is gradual;
It is desirable that the decrease be rapid. The third predetermined value may be fixed to, for example, 3, or may be a variable value that is large when the flow rate is large and becomes smaller as the flow rate is small. When using a variable value, it is desirable that the increase be gradual and the decrease be rapid.

次に第1図示装置の理解を容易にする為に第2
図のパルス信号波形例を参照して典型的な動作を
以下説明する。なお、第2図においてmは平均化
される区間を示す。また説明の便宜上、第1の所
定値を10、第2の所定値を3、第3の所定値を
3とする。
Next, in order to make it easier to understand the first illustrated device, the second
A typical operation will be described below with reference to the example pulse signal waveform shown in the figure. In addition, in FIG. 2, m indicates the section to be averaged. Further, for convenience of explanation, the first predetermined value is 10, the second predetermined value is 3, and the third predetermined value is 3.

●大流量時(第2図a参照) 大流量時は周期の短いパルス列が発生した直
後に周期の長い(第1の所定時間より長い)パ
ルスが発生する状態が連続して繰返される。従
つて、前記条件が成立し、3回の変動毎に平
均周期が算出される。
●At the time of large flow rate (see Figure 2 a) At the time of large flow rate, a state in which a pulse train with a short cycle is generated immediately after which a pulse with a long cycle (longer than the first predetermined time) is generated is continuously repeated. Therefore, the above condition is satisfied, and the average period is calculated every three fluctuations.

●中流量時(第2図b参照) 中流量時は第1の所定時間より短い周期のパ
ルス列が発生する。従つて、前記条件が成立
し、15個のパルス毎に平均化が行なわれる。
●At medium flow rate (see Figure 2b) At medium flow rate, a pulse train with a period shorter than the first predetermined time is generated. Therefore, the above condition is met and averaging is performed every 15 pulses.

●小流量時(第2図c参照) 小流量時は第1の所定時間より長い周期のパ
ルス列が発生する。従つて、前記条件が成立
し、3個のパルス毎に平均化が行なわれる。
●When the flow rate is small (see Figure 2c) When the flow rate is small, a pulse train with a period longer than the first predetermined time is generated. Therefore, the above condition is met and averaging is performed every three pulses.

●大流量から急激に小流量に移行する急減速時
(第2図d参照) 大流量から急激に小流量に移行する場合、そ
の移行領域では前記の条件が成立する以前に
前記条件或はが成立する。従つて、この場
合は条件或はが成立した時点で前回の平均
算出終了時からの時間とパルス数とから平均周
期が算出される。この為、実際はスロツトルバ
ルブが全閉状態となりエンジン内にそれほど多
くの空気が導入されない状態に移行しているに
も拘わらず、これを直ちに検知することができ
ない欠点がある。即ち、平均化が多少遅れ、又
平均化結果に最後の方のパルス周期があまり影
響せず急減速時の応答性が多少劣る。
●During sudden deceleration when a large flow rate suddenly changes to a small flow rate (see Figure 2 d) When a large flow rate suddenly changes to a small flow rate, in that transition region, the above conditions or conditions are met before the above conditions are met. To establish. Therefore, in this case, the average period is calculated from the time since the end of the previous average calculation and the number of pulses when the condition or is satisfied. For this reason, even though the throttle valve is actually in a fully closed state and a state in which not much air is introduced into the engine, there is a drawback that this cannot be immediately detected. That is, the averaging is delayed to some extent, and the final pulse period does not have much influence on the averaging result, resulting in somewhat poor responsiveness during sudden deceleration.

第3図及び第4図の構成図に示す発明は、その
ような第1図に示す発明の有する欠点を更に改良
したものである。
The invention shown in the configuration diagrams of FIGS. 3 and 4 further improves the drawbacks of the invention shown in FIG. 1.

第3図に示す発明が第1図の発明と相違すると
ころは、第1図の平均算出手段2と同様の動作を
行なう第1の平均算出手段2aとは別に、下記
の条件が成立する毎に最新のパルス信号周期を平
均周期とする第2の平均周期算出手段2bを設け
た点にある。
The difference between the invention shown in FIG. 3 and the invention shown in FIG. 1 is that, in addition to the first average calculation means 2a which performs the same operation as the average calculation means 2 of FIG. The second average period calculation means 2b is provided which takes the latest pulse signal period as the average period.

パルス周期比較手段4から小なる比較結果に
続いて大なる比較結果が出力される状態が前回
の平均算出終了時より少なくとも1回は現れて
いるが第2の所定値に相当する回数だけ未だ現
れない以前に、パルス周期比較手段4から大な
る比較結果が複数連続して出力されたとき この発明によれば、第2図eに示すように急減
速時に前記の条件が成立するとその直前のパル
ス周期P1が平均周期として算出され、前回の平
均終了時からパルス周期P1直前までの周期は無
視されることになるから、急減速時における小流
量への移行を比較的速やかに検出することができ
る。
The state in which the pulse period comparison means 4 outputs a small comparison result followed by a large comparison result has appeared at least once since the end of the previous average calculation, but it has still appeared the number of times corresponding to the second predetermined value. According to the present invention, as shown in FIG. Period P 1 is calculated as the average period, and the period from the end of the previous average to immediately before pulse period P 1 is ignored, so the transition to a small flow rate during sudden deceleration can be detected relatively quickly. I can do it.

また第4図に示す発明が第1図の発明と相違す
るところは、第1図のパルス周期比較手段4と同
様な動作を行なう第1のパルス周期比較手段4a
とは別に、パルス周期計測手段3で計測された周
期が第1の所定時間より長い時間に設定された第
2の所定時間よりも長いときに大なる比較結果を
出す第2のパルス周期比較手段4bを設け、且つ
第1図の平均算出手段2と同様の動作を行なう第
1の平均算出手段2aとは別に、下記の条件が
成立する毎に最新のパルス信号周期を平均周期と
する第2の平均周期算出手段2cを設けた点にあ
る。
The invention shown in FIG. 4 is different from the invention shown in FIG. 1 in that the invention shown in FIG. 4 is different from the invention shown in FIG.
Separately, a second pulse period comparing means produces a large comparison result when the period measured by the pulse period measuring means 3 is longer than a second predetermined time set to be longer than the first predetermined time. In addition to the first average calculation means 2a which operates in the same manner as the average calculation means 2 shown in FIG. The point is that an average period calculation means 2c is provided.

第2のパルス周期比較手段4bから大なる比
較結果が出力されたとき この発明によれば、第2図fに示すように上記
の条件が成立するとその直前のパルス周期P2
を平均周期として算出するので、急減速時におけ
る小流量への移行を速かに検出することができ
る。なお、上記第2の所定時間は大流量時に現れ
る長い周期に対し十分余裕を与えるため、エンジ
ン回転数による変数、即ちエンジン回転数が大き
いほど大きな値になる変数とすることが望まし
い。
When a large comparison result is output from the second pulse period comparing means 4b According to the present invention, when the above condition is met as shown in FIG. 2 f, the immediately preceding pulse period P 2
is calculated as an average period, so a transition to a small flow rate during sudden deceleration can be quickly detected. Note that the second predetermined time period is preferably a variable depending on the engine rotation speed, that is, a variable that increases in value as the engine rotation speed increases, in order to provide sufficient margin for the long period that appears at the time of a large flow rate.

第5図は本発明の実施例の要部ブロツク図であ
り、11は内燃機関、12はエアクリーナ、13
はカルマンセンサであり、カルマン渦の発生する
毎にその出力信号aを“1”とするものである。
14はスロツトルチヤンバ、15はインテークマ
ニホールド、16は電磁式のフエーエルインジエ
クタ、17は吸入空気の流れを制御するスロツト
ルバルブ、18はクランク角センサ、19はマイ
クロプロセツサ、20はメモリ、21はクランク
角センサ18の出力や他のエンジンパラメータ例
えば冷却水温、吸気温、スロツトルバルブ開度、
アイドルスイツチ等各種スイツチのオンオフ情報
等をマイクロプロセツサ19に入力する為のデー
タ入力部、22はデータ出力部である。
FIG. 5 is a block diagram of main parts of an embodiment of the present invention, in which 11 is an internal combustion engine, 12 is an air cleaner, and 13 is an internal combustion engine.
is a Karman sensor, which sets its output signal a to "1" every time a Karman vortex is generated.
14 is a throttle chamber, 15 is an intake manifold, 16 is an electromagnetic fuel injector, 17 is a throttle valve that controls the flow of intake air, 18 is a crank angle sensor, 19 is a microprocessor, and 20 is a memory. , 21 is the output of the crank angle sensor 18 and other engine parameters such as cooling water temperature, intake temperature, throttle valve opening,
A data input section 22 is a data output section for inputting on/off information of various switches such as an idle switch to the microprocessor 19.

吸入空気は、エアクリーナ12よりカルマンセ
ンサ13、スロツトルチヤンバ14を経てインテ
ークマルホールド15の各ブランチより各シリン
ダに供給され、燃料はフユーエルインジエクタ1
6により内熱機関11内に噴射される。また、吸
入空気量は、内燃機関の状態に応じて変動し、そ
の変動に応じて出力信号aも変化する。カルマン
センサ13の出力信号aはマイクロプロセツサ1
9の割込み端市INTに入力され、出力信号aの
例えば立ち上り時に割り込みがかけられる。
Intake air is supplied to each cylinder from the air cleaner 12 via the Karman sensor 13 and the throttle chamber 14, and from each branch of the intake malfold 15, and fuel is supplied to each cylinder from the fuel injector 1.
6 into the internal heat engine 11. Further, the intake air amount changes depending on the state of the internal combustion engine, and the output signal a also changes according to the change. The output signal a of the Kalman sensor 13 is sent to the microprocessor 1.
9 is input to the interrupt terminal INT, and an interrupt is generated, for example, at the rising edge of the output signal a.

第6図は第1図示装置を実現する際のマイクロ
プロセツサ19の割込み処理の一例を示すフロー
チヤートであり、S1〜S20は各ステツプを示す。
なお、ここでは第2の所定値を1としている。
FIG. 6 is a flowchart showing an example of interrupt processing by the microprocessor 19 when realizing the first illustrated device, and S1 to S20 indicate each step.
Note that the second predetermined value is set to 1 here.

マイクロプロセツサ19は割込みがかかると、
先ずその時の時刻を最新パルス時刻T1として記
憶し(S1)、パルスカウント数NNを+1カウン
トアツプする(S2)。次に、パルスカウント数
NNが所定数(第1の所定数)以上であるか否か
を判別し(S3)、所定数以上であればステツプ
S13へ移行し、所定数未満であれば最新パルス時
刻T1から1パルス前の割込み時刻T3を引いて
今回のパルス周期T2を求め(S4)、T2が所定
時間(第1の所定時間)以上であるか否かを判別
する(S5)。そして、T2が所定時間以上であれ
ばステツプS6へ移行し、所定時間未満であれば
フラグFLAGに“1”をたて(S12)、最新パル
ス時刻T1の値を1パルス前の割込み時刻T3と
して(S11)、メインルーチンヘ復帰する。
When the microprocessor 19 receives an interrupt,
First, the time at that time is stored as the latest pulse time T1 (S1), and the pulse count number NN is incremented by +1 (S2). Next, the number of pulse counts
Determine whether NN is greater than or equal to a predetermined number (first predetermined number) (S3), and if it is greater than or equal to the predetermined number, step
The process moves to S13, and if it is less than the predetermined number, subtract the interrupt time T3 one pulse before from the latest pulse time T1 to obtain the current pulse period T2 (S4), and if T2 is greater than or equal to the predetermined time (first predetermined time), Determine whether or not there is one (S5). If T2 is longer than the predetermined time, the process moves to step S6, and if it is less than the predetermined time, the flag FLAG is set to "1" (S12), and the value of the latest pulse time T1 is set as the interrupt time T3 one pulse before. (S11), return to the main routine.

ステツプS6では、フラグFLAGに“1”がた
つているか否かを判別し、たつていればフラグ
FLAGに“0”をたてた後(S7)、パルスカウン
ト数Nとパルスカウント数NNとの加算値をパル
スカウント数Nとし(S8)、パルスカウント数N
が所定値N3(第3の所定値)以上か否かを判別す
る(S9)。そして、所定値以上であればステツプ
S14へ移行し、所定値未満であればパルスカウン
ト数NNを零にし(S10)、ステツプS11を経てメ
インルーチンへ復帰する。
In step S6, it is determined whether the flag FLAG is set to "1" or not, and if it is set, the flag is set.
After setting FLAG to “0” (S7), the sum of the pulse count number N and the pulse count number NN is set as the pulse count number N (S8), and the pulse count number N
is greater than or equal to a predetermined value N 3 (third predetermined value) (S9). If the value is greater than or equal to the predetermined value, the step
The process moves to S14, and if it is less than the predetermined value, the pulse count number NN is set to zero (S10), and the process returns to the main routine via step S11.

また、ステツプS13ではパルスカウント数Nと
パルスカウント数NNとの加算値をパルスカウン
ト数Nとし、次いで最新パルス時刻T1から前回
の平均化終了時の時刻T5を引いて平均化するパ
ルス間時間T4を求め(S14)、このT4をパル
スカウント数Nで割ることにより平均周期T6を
算出する(S15)。そして、最新パルス時刻T1
を平均化終了時の時刻T5として記憶し(S16)、
所定数N1(第1の所定数)の値を、今回のパルス
数Nに常数αを足した値に変更する(S17)。α
は例えば2〜4程度に設定する。また、N1の最
大値を制限する為にN1を所定値βと比較し
(S18)、βより大きくなればβの値にクランプす
る処理を行なう(S19)。平均周期の算出を行な
つたときは、パルスカウント数Nを零にクリアし
て次回の処理に備える(S20)。
In addition, in step S13, the sum of the pulse count number N and the pulse count number NN is set as the pulse count number N, and then the inter-pulse time T4 to be averaged by subtracting the time T5 at the end of the previous averaging from the latest pulse time T1. is calculated (S14), and the average period T6 is calculated by dividing this T4 by the pulse count number N (S15). Then, the latest pulse time T1
is stored as time T5 at the end of averaging (S16),
The value of the predetermined number N 1 (first predetermined number) is changed to the value obtained by adding the constant α to the current number of pulses N (S17). α
is set to about 2 to 4, for example. In addition, in order to limit the maximum value of N 1 , N 1 is compared with a predetermined value β (S18), and if it is larger than β, processing is performed to clamp it to the value of β (S19). When the average period has been calculated, the pulse count number N is cleared to zero in preparation for the next process (S20).

大流量時においては、周期の短いパルスの出現
時にステツプS5からステツプS12へ移行してフラ
グFLAGに“1”がたてられ、周期の長いパルス
が出現するステツプS5からステツプS6へ移行す
るので、ステツプS7でフラグFLAGに“1”が
たてられていることにより変動の区切り目である
ことが判別される。そして、変動の区切り目を検
出したときに前回の平均算出処理終了時からのパ
ルス数が所定値N3以上であるか否かを判別して
いるので、所定値N3を例えば大流量時における
一変動内のパルス数の例えば2.5倍程度に設定し
ておけば、3回の変動毎に平均値を求めることが
可能となる。
At the time of a large flow rate, when a pulse with a short period appears, the process moves from step S5 to step S12, and the flag FLAG is set to "1," and when a pulse with a long period appears, the process moves from step S5 to step S6. Since "1" is set in the flag FLAG in step S7, it is determined that this is the breakpoint of the fluctuation. Then, when a break in the fluctuation is detected, it is determined whether the number of pulses since the end of the previous average calculation process is greater than or equal to the predetermined value N3 , so the predetermined value N3 is set to If it is set to, for example, about 2.5 times the number of pulses within one fluctuation, it becomes possible to obtain the average value every three fluctuations.

また、中流量時においては、ステツプS3から
ステツプS13へ移行するので、所定値N1のパルス
毎に平均が算出される。
Further, at the middle flow rate, the process moves from step S3 to step S13, so that the average is calculated for each pulse of the predetermined value N1 .

小流量時には、フラグFLAGが“0”にセツト
されているので、ステツプS5で1パルス周期T
2が所定時間より大きいと判別されると、ステツ
プS6を経てステツプS13へ移行することになり、
この実施例では1パルス毎に平均が算出されるこ
とになる。
When the flow rate is small, the flag FLAG is set to "0", so one pulse period T is set in step S5.
If it is determined that 2 is greater than the predetermined time, the process will proceed to step S13 via step S6.
In this embodiment, the average is calculated for each pulse.

第7図は第4図に示す発明を実現する際のマイ
クロプロセツサ19の割込み処理の一例を示すフ
ローチヤートである。なお、ここでも第2の所定
値は1としている。第6図のフローチヤートと相
違するところは、ステツプS30〜S32を付加した
点にある。即ち、ステツプS30で今回のパルス周
期T2が所定時間T2(第2の所定時間)以上か否
か判別し、所定時間以上であれば急減速であると
識別してステツプS31へ移行し、今回のパルス周
期T2を平均算出周期T6とするものである。な
お、平均を算出したのちは、フラグFLAGに
“0”をたて、ステツプS16へ移行する(S32)。
FIG. 7 is a flowchart showing an example of interrupt processing by the microprocessor 19 when implementing the invention shown in FIG. Note that the second predetermined value is set to 1 here as well. The difference from the flowchart of FIG. 6 is that steps S30 to S32 are added. That is, in step S30, it is determined whether or not the current pulse period T2 is longer than a predetermined time T2 (second predetermined time). The pulse period T2 is set as the average calculation period T6. After calculating the average, the flag FLAG is set to "0" and the process moves to step S16 (S32).

なお、マイクロプロセツサ19は第8図のフロ
ーチヤートに示すように、メインルーチンにおい
てQ=f1(T6)なる公知の関係式より平均パル
ス周期T6から平均空気流量Qを求め(S35)、
且つTM2=f2(エンジン回転数)なる関係式(エ
ンジン回転数が大きくなるほどTM2が小さくな
るような関係式)によりエンジン回転数に応じて
TM2の値を変更する処理を行なう(S36)。
As shown in the flowchart of FIG. 8, the microprocessor 19 calculates the average air flow rate Q from the average pulse period T6 using the known relational expression Q=f 1 (T6) in the main routine (S35).
In addition, according to the relational expression TM 2 = f 2 (engine speed) (a relational expression such that TM 2 decreases as the engine speed increases),
Processing to change the value of TM 2 is performed (S36).

第9図は第3図に示した発明を実現するマイク
ロプロセツサ19の割込み時のフローチヤート例
であり、S40〜S67は各ステツプを示す。先ず、
該フローチヤートに使用するラベルの定義を以下
に示す。
FIG. 9 is an example of a flowchart when the microprocessor 19 realizes the invention shown in FIG. 3 at an interrupt, and S40 to S67 indicate each step. First of all,
The definitions of the labels used in this flowchart are shown below.

CAPT:今回の割込み時刻 ZKAR:前回の割込み時刻 TQF:なまし後の最終平均周期 TAV:基本平均周期 TSIGMA:前回の平均算出終了時からの各パル
ス周期の加算値 CSIGMA:前回の平均算出終了時からの割込み
回数の合計値 CKAR:大流量時の変動毎の割込み回数 NMIN:変動毎の最小パルス数 NMAX:変動毎の最大パルス数 NAMASI:大流量時の平均化する変動回数をパ
ルス数で表現した数 XKAR1:カルマンセンサパルス周期状態を記憶
するフラグ XKAR2:TAV→TQFのタイミングを記憶する
フラグ なお基本的にはNMIN≦CKAR≦NMAXなる
関係がある。以下、第9図のフローチヤートを参
照して処理の内容を説明する。
CAPT: Current interrupt time ZKAR: Previous interrupt time TQF: Final average period after annealing TAV: Basic average period TSIGMA: Added value of each pulse period since the end of the previous average calculation CSIGMA: At the end of the previous average calculation CKAR: Number of interrupts per fluctuation during high flow rate NMIN: Minimum number of pulses per fluctuation NMAX: Maximum number of pulses per fluctuation NAMASI: Number of fluctuations to be averaged during high flow rate expressed in number of pulses XKAR1: A flag that stores the Kalman sensor pulse cycle state XKAR2: A flag that stores the timing of TAV→TQF Basically, there is a relationship of NMIN≦CKAR≦NMAX. The details of the process will be explained below with reference to the flowchart shown in FIG.

前処理 マイクロプロセツサ19は割込みがかかると、
前回の割込み時刻ZKARと今回の割込み時刻
CAPTとから今回のパルス周期を求め、レジスタ
YとレジスタDに格納する(S40)。次に、今回
の割込み時刻CARTを前回の割込み時刻ZKAR
とする(S41)。次に、前回の平均算出終了時点
からのパルス周期を算出し(S42)、一変動内の
割込み回数を算出する(S43)。次に、前回の平
均算出終了時点からの割込み回数を算出する
(S44)。
Preprocessing When the microprocessor 19 receives an interrupt,
Previous interrupt time ZKAR and current interrupt time
The current pulse period is obtained from CAPT and stored in register Y and register D (S40). Next, change the current interrupt time CART to the previous interrupt time ZKAR
(S41) Next, the pulse period from the end of the previous average calculation is calculated (S42), and the number of interruptions within one fluctuation is calculated (S43). Next, the number of interruptions since the end of the previous average calculation is calculated (S44).

以上のような前処理を行なつた後、平均化算出
処理を行なう。以下場合を分けて説明する。
After performing the above preprocessing, averaging calculation processing is performed. The following cases will be explained separately.

大流量時 大流量時は、周期の短いパルス列が出現してい
るときステツプS45からステツプS63へ移行し、
フラグXKAR1に“1”がたてられる。周期の長
いパルスが出現すると、ステツプS45、S46、S47
と移行し、フラグXKAR1に“1”がたてられて
いることにより変動の区切り目と判別される。な
お、今回のパルス周期が第1の所定周期T1+1
ms以上か否かの判別ステツプS46を付加したの
は、比較動作にヒステリシス特性を持たせること
により動作を安定化を図るためである。変動の区
切り目が検出されると、フラグXKAR1に“0”
をたて、変動毎の最小パルス数NMINを5に、
変動毎の最大パルス数NMAXを15に設定する。
変動が複数回検出されると、前回の平均算出終了
時点からの割込み回数CSIGMAが第3の所定値
NAMASIより大きくなつたことがステツプS51
で判別され、ステツプS52で前回の平均終了時か
らの各パルス周期の合計と割込み回数とから平均
が算出される。
At high flow rates At high flow rates, when a pulse train with a short period appears, the process moves from step S45 to step S63.
Flag XKAR1 is set to "1". When a long-period pulse appears, steps S45, S46, and S47
, and the flag XKAR1 is set to "1", so it is determined that it is a change break point. Note that the current pulse period is the first predetermined period T 1 +1
The reason why the step S46 for determining whether or not it is longer than ms is added is to stabilize the operation by giving the comparison operation a hysteresis characteristic. When a break in fluctuation is detected, flag XKAR1 is set to “0”
Set the minimum number of pulses per fluctuation NMIN to 5,
Set the maximum number of pulses per fluctuation NMAX to 15.
If a fluctuation is detected multiple times, the number of interrupts CSIGMA from the end of the previous average calculation is set to a third predetermined value.
Step S51 to become bigger than NAMASI
In step S52, the average is calculated from the sum of each pulse period and the number of interruptions since the end of the previous average.

中流量時 中流量時は、各割込み時にステツプS45からス
テツプS63へ移行するので、CKARの値が
NMAXの値より大きくなつた時点で前回の平均
終了時からの各パルス周期の合計と割込み回数と
から平均周期が算出される。
At medium flow rate At medium flow rate, the transition from step S45 to step S63 occurs at each interrupt, so the value of CKAR
When the value becomes larger than the value of NMAX, the average period is calculated from the sum of each pulse period since the end of the previous average and the number of interruptions.

小流量時 小流量時は、各割込み時にステツプS46→ステ
ツプ→47→ステツプS65に移行するので、CKAR
の値がNMIN値より大きくなつた時点でCKAR
の値がCSIGMAの値と等しいか否かが判別され
る。定常的な小流量時においてはCKARの値と
CSIGMAの値は等しいのでステツプS52へ移行
し、前回の平均終了時からの各パルス周期の合計
と割込み回数とから平均周期が算出される。
When the flow rate is small When the flow rate is small, the process moves to step S46 → step → 47 → step S65 at each interrupt, so CKAR
CKAR when the value of becomes greater than the NMIN value
It is determined whether the value of is equal to the value of CSIGMA. At steady low flow rate, the value of CKAR and
Since the values of CSIGMA are equal, the process moves to step S52, and the average period is calculated from the sum of each pulse period since the end of the previous average and the number of interrupts.

大流量から小流量への急変時(急減速時) 大流量時の変動検出後にステツプS62において
CKARの値は零にされるが、CSIGMAは平均算
出処理が行なわれないと零にされないので、小流
量時に移行して周期の大きいパルスが出現する
と、ステツプS46、ステツプS65を経てステツプ
S66に移行したとき、CKAR≠CSIGMAと判別さ
れ、今回のパルス周期を記憶するレジスタYの値
がレジスタDに記憶される(S67)。即ち、最新
パルス周期が平均周期として算出される。
At the time of sudden change from large flow rate to small flow rate (during sudden deceleration) In step S62 after detecting the fluctuation at large flow rate.
The value of CKAR is set to zero, but CSIGMA is not set to zero unless the average calculation process is performed, so when the flow transitions to a small flow rate and a pulse with a large period appears, the step goes through step S46 and step S65.
When the process moves to S66, it is determined that CKAR≠CSIGMA, and the value of register Y that stores the current pulse period is stored in register D (S67). That is, the latest pulse period is calculated as the average period.

なお、平均算出処理終了後の後処理としては次
のような処理が行なわれる。
Note that the following process is performed as post-processing after the average calculation process is completed.

ステツプS53:今回算出した基本平均周期と前回
算出した基本平均周期との平均を求めることに
より多少のフイルタをかける。
Step S53: Some filtering is applied by calculating the average of the basic average period calculated this time and the basic average period calculated last time.

ステツプS54:フラグXKAR1が“1”か否かを
判別する。
Step S54: Determine whether flag XKAR1 is "1" or not.

ステツプS56:フラグXKAR1が“1”のとき、
つまり中流量時にはNMINの値をレジスタA
にセツトする。
Step S56: When flag XKAR1 is “1”,
In other words, when the flow rate is medium, the value of NMIN is stored in register A.
Set to .

ステツプS55:フラグXKAR1が“0”のとき、
つまり小、大流量時にはNMINの値にCKAR
の値を加算した値をレジスタAにセツトする。
Step S55: When flag XKAR1 is “0”,
In other words, when the flow rate is small or large, CKAR becomes the value of NMIN.
The value obtained by adding the values of is set in register A.

ステツプS57〜S58:レジスタAの値を15と
NMAX−1の間にクランプし、レジスタAの
値をNMAXにストアする。
Steps S57-S58: Set the value of register A to 15.
Clamp between NMAX-1 and store the value of register A to NMAX.

ステツプS59:フラグXKAR2に“1”をたて、
平均算出が行なわれたことを指示する。
Step S59: Set flag XKAR2 to “1”,
Indicates that an average calculation has been performed.

ステツプS60〜S62:TSIGMA、CSIGMA、
CKARの内容を零にする。
Steps S60 to S62: TSIGMA, CSIGMA,
Clear the contents of CKAR to zero.

第10図は第3図示発明を実現する際のマイク
ロプロセツサ19が行なうメイン処理の一例を示
すフローチヤートであり、S70〜S85は各ステツ
プを示す。
FIG. 10 is a flowchart showing an example of the main processing performed by the microprocessor 19 when realizing the invention shown in the third figure, and S70 to S85 indicate each step.

マイクロプロセツサ19は、先ずフラグ
XKAR2の内容を判別し、“1”であれば前回の
割込み処理で平均周期が算出されているのでステ
ツプS71以下の処理を実行して新たななまし後の
最終平均周期TQFを算出する。またフラグ
XKAR2が“0”であればそのような処理は行な
わず、前回算出したなまし後の最終平均周期
TQFを用いた吸入空気量の算出を行なう。この
吸入空気量の算出ステツプは図示を省略してあ
る。
The microprocessor 19 first reads the flag
The content of XKAR2 is determined, and if it is "1", the average period has been calculated in the previous interrupt processing, so the processing from step S71 onwards is executed to calculate a new final average period TQF after smoothing. flag again
If XKAR2 is “0”, such processing is not performed and the final average period after smoothing calculated last time is used.
Calculate the amount of intake air using TQF. This step of calculating the amount of intake air is omitted from illustration.

ステツプS71ではTAVの値とTQFの値との平
均を新たなTAVの値とし(S71)、次にTAVに
エンジン回転数NEを掛けることで吸気側の圧力
Pを算出する(S72)。次に、Pの値が所定値例
えば610mmHg以上か否かを判別し(S73)、以上
であるとき即ちスロツトルバルブが大きく開かれ
ているときはレジスタAに5を格納し(S76)、
レジスタBに200を格納する(S77)。また以下の
ときはレジスタA,Bに0を格納する(S74、
S75)。次に、レジスタAの値がNMIN以上であ
るか否かを判別し、以下であればステツプS80
へ、より大きければNMIN+1の値をレジスタ
Aに格納してステツプS80へ移行する。ステツプ
S80はレジスタAの値をNMINとするものであ
る。これらの処理で、流量が大きくなるほど
NMINの値が徐々に増加し、小流量になると急
激にNMINの値が0に減少する制御が行なわれ
る。
In step S71, the average of the TAV value and the TQF value is set as a new TAV value (S71), and then the intake side pressure P is calculated by multiplying TAV by the engine speed NE (S72). Next, it is determined whether the value of P is equal to or greater than a predetermined value, for example, 610 mmHg (S73), and when it is equal to or greater than a predetermined value, that is, when the throttle valve is wide open, 5 is stored in register A (S76);
200 is stored in register B (S77). Also, in the following cases, 0 is stored in registers A and B (S74,
S75). Next, it is determined whether the value of register A is greater than or equal to NMIN, and if it is less than NMIN, step S80 is performed.
If the value is larger than NMIN+1, the value of NMIN+1 is stored in register A and the process moves to step S80. step
S80 sets the value of register A to NMIN. With these processes, the larger the flow rate, the more
Control is performed such that the value of NMIN gradually increases, and when the flow rate becomes small, the value of NMIN rapidly decreases to 0.

次に、NAMASIの値がレジスタBの値以上か
否か判別され(S81)、以上のときはステツプS83
へ、未満のときはNAMASIの値+2をレジスタ
Bに格納してステツプS83へ移行する。ステツプ
S83はレジスタBの値を新たなNAMASIの値と
する。これらの処理によりNAMASIの値は流量
が増加するほど徐々に増加され、小流量になると
急激に0に減少される制御が行なわれる。
Next, it is determined whether the value of NAMASI is greater than or equal to the value of register B (S81), and if it is, the process proceeds to step S83.
If the value is less than , the value of NAMASI + 2 is stored in register B and the process moves to step S83. step
S83 sets the value of register B to the new NAMASI value. Through these processes, control is performed in which the value of NAMASI is gradually increased as the flow rate increases, and is rapidly decreased to 0 when the flow rate becomes small.

ステツプS84はn回以前からのなまし後の最終
平均値の平均をとることにより新たななまし後の
最終平均値を求めるステツプである。なお、nは
NAMASIの値に応じて変る変数であり、例えば
NAMASIが0〜7のとき1、8〜15のとき2、
16〜200のとき4とする。
Step S84 is a step in which a new final average value after annealing is obtained by averaging the final average values after annealing n times before. Note that n is
It is a variable that changes depending on the value of NAMASI, for example
1 when NAMASI is 0-7, 2 when NAMASI is 8-15,
If it's 16-200, give it a 4.

ステツプS85はフラグXKAR2を“0”にして
なまし後の最終平均値の算出が行なわれたことを
指示するステツプである。
Step S85 is a step in which the flag XKAR2 is set to "0" to indicate that the final average value after smoothing has been calculated.

第9図及び第10図の実施例によれば、第1の
所定数をNMAXとNMINの二つに分け、第1の
所定時間より小さい周期のパルスによる割込み時
にはNMAXを使用し、それより長い周期のパル
スによる割込み時にはNMINを使用している。
従つて、この実施例では第1の所定時間以上のパ
ルス周期がNMINの値に相当する回数だけ続い
たとき平均値が算出され、第1の所定時間未満の
パルス周期がNMAXの値に相当する回数だけ続
いたとき平均値が算出される。この為、小流量、
中流量における平均化の応答性をより向上させる
ことが可能である。
According to the embodiments shown in FIGS. 9 and 10, the first predetermined number is divided into two, NMAX and NMIN, and NMAX is used when an interrupt is caused by a pulse with a cycle shorter than the first predetermined time, and NMIN is used for interrupts due to periodic pulses.
Therefore, in this embodiment, the average value is calculated when the pulse period longer than the first predetermined time continues a number of times corresponding to the value of NMIN, and the pulse period shorter than the first predetermined time corresponds to the value of NMAX. The average value is calculated when the number of repetitions continues. For this reason, small flow rate,
It is possible to further improve the responsiveness of averaging at medium flow rates.

発明の効果 以上説明したように、本発明によれば、大流量
時には複数回の変動毎にカルマンセンサ出力パル
スの平均が求められるので、各変動毎のパルス数
にバラツキがあつてもその影響を受けずに精度良
く平均周期を求めることができる利点がある。ま
た、中流量時には第1の所定値に相当するパルス
数毎に、また小流量時には第2の所定値に相当す
るパルス数毎に平均周期を求めることができ、第
1、第2の所定値を可能な限り小さく設定してお
くことにより小流量、中流量時とも応答性良く平
均周期を求めることが可能となる。
Effects of the Invention As explained above, according to the present invention, when the flow rate is large, the average of the Kalman sensor output pulses is obtained for each variation, so even if there is a variation in the number of pulses for each variation, the influence of the variation can be ignored. This has the advantage that the average period can be determined with high accuracy without being affected. Furthermore, the average period can be determined for each number of pulses corresponding to the first predetermined value at medium flow rates, and for each number of pulses corresponding to the second predetermined value at low flow rates, By setting the value as small as possible, it becomes possible to obtain the average period with good responsiveness at both small and medium flow rates.

更に、前記パルス周期比較手段から小なる比較
結果に続いて大なる比較結果が出力される状態が
前回の平均算出終了時より少なくとも1回は現れ
ているが第3の所定値に相当する回数だけ未だ現
れない以前に、前記パルス周期比較手段から大な
る比較結果が複数連続して出力されたとき、最新
のパルス信号周期を平均周期とする第2の平均周
期算出手段を設けるか、或は、パルス周期計測手
段で計測された周期が第1の所定時間より大きい
第2の所定時間より長いときに大なる比較結果を
出す第2のパルス周期比較手段と、この第2のパ
ルス周期比較手段から大なる比較結果が出力され
たとき、最新のパルス信号周期を平均周期とする
第2の平均周期算出手段を設ければ、大流量から
急激に小流量に移行する際の小流量の平均化を速
やかに行なうことが可能となる。
Furthermore, a state in which a large comparison result is output after a small comparison result from the pulse period comparing means has occurred at least once since the end of the previous average calculation, but only a number of times corresponding to the third predetermined value. When a plurality of large comparison results are successively outputted from the pulse period comparing means before the pulse period comparing means has not yet appeared, a second average period calculating means is provided that takes the latest pulse signal period as the average period, or a second pulse period comparing means that produces a large comparison result when the period measured by the pulse period measuring means is longer than a second predetermined time which is greater than the first predetermined time; and from this second pulse period comparing means. When a large comparison result is output, by providing a second average period calculation means that uses the latest pulse signal period as the average period, it is possible to average the small flow rate when the flow rate suddenly changes from a large flow rate to a small flow rate. This can be done quickly.

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

第1図、第3図及び第4図は本発明の平均算出
装置の構成説明図、第2図はその動作説明図、第
5図は本発明の実施例の要部ブロツク図、第6図
は第1図示装置を実現する際のマイクロプロセツ
サ19の割込み処理の一例を示すフローチヤー
ト、第7図及び第8図は第4図に示す発明を実現
する際のマイクロプロセツサ19の処理の一例を
示すフローチヤート、マイクロプロセツサ19の
行なうメイン処理の一例を示すフローチヤート、
第9図は第3図に示した発明を実現するマイクロ
プロセツサ19の割込み時のフローチヤート例、
第10図は第3図示発明を実現する際のマイクロ
プロセツサ19が行なうメイン処理の一例を示す
フローチヤート、第11図はスロツトルバルブ開
度と内燃機関に流入する瞬時空気流量の変動との
関係を示す線図、第12図は大流量時の瞬時空気
流量とそのときのカルマンセンサの出力パルスの
状態を示す線図である。 11は内燃機関、12はエアクリーナ、13は
カルマンセンサ、14はスロツトルチヤンバ、1
5はインテークマニホールド、16は電磁式のフ
ユーエルインジエクタ、17はスロツトルバル
ブ、19はマイクロプロセツサ、20はメモリで
ある。
1, 3, and 4 are configuration explanatory diagrams of the average calculation device of the present invention, FIG. 2 is an explanatory diagram of its operation, FIG. 5 is a main part block diagram of an embodiment of the present invention, and FIG. 6 1 is a flowchart showing an example of the interrupt processing of the microprocessor 19 when realizing the device shown in FIG. 1, and FIGS. Flowchart showing an example; Flowchart showing an example of main processing performed by the microprocessor 19;
FIG. 9 is an example of a flowchart at the time of interrupt of the microprocessor 19 which realizes the invention shown in FIG.
FIG. 10 is a flowchart showing an example of the main processing performed by the microprocessor 19 when realizing the invention shown in FIG. A diagram showing the relationship, FIG. 12 is a diagram showing the instantaneous air flow rate at a large flow rate and the state of the output pulse of the Kalman sensor at that time. 11 is an internal combustion engine, 12 is an air cleaner, 13 is a Kalman sensor, 14 is a throttle chamber, 1
5 is an intake manifold, 16 is an electromagnetic fuel injector, 17 is a throttle valve, 19 is a microprocessor, and 20 is a memory.

Claims (1)

【特許請求の範囲】 1 カルマン渦式空気流量センサからカルマン渦
の発生に関係したタイミングで出力されるパルス
信号の周期の平均を算出する装置において、 前記パルス信号の個数を計数するパルス数計数
手段、 前記パルス信号の周期を計測するパルス周期計
測手段、 該パルス周期計測手段で計測された周期が第1
の所定時間より大きいとき大の比較結果を、そう
でないとき小の比較結果を出すパルス周期比較手
段、 下記条件〜のいずれかが成立する毎に前回
の平均算出終了時からの時間とパルス数に基づき
前記パルス信号の周期の平均を算出する平均算出
手段、 前回の平均算出終了時から前記パルス数計数
手段で第1の所定値に相当するパルス数が計数
されたとき 前記パルス周期比較手段から大なる比較結果
が第2の所定値に相当する回数だけ出力された
とき 前記パルス周期比較手段から小なる比較結果
に続いて大なる比較結果が出力される状態が第
3の所定値に相当する回数だけ現れたとき を具備したことを特徴とするカルマン渦式空気流
量センサ出力パルスの平均周期算出装置。 2 カルマン渦式空気流量センサからカルマン渦
の発生に関係したタイミングで出力されるパルス
信号の周期の平均を算出する装置において、 前記パルス信号の個数を計数するパルス数計数
手段、 前記パルス信号の周期を計測するパルス周期計
測手段、 該パルス周期計測手段で計測された周期が第1
の所定時間より長いとき大の比較結果を、そうで
ないとき小の比較結果を出すパルス周期比較手
段、 下記条件〜のいずれかが成立する毎に前回
の平均算出終了時からの時間とパルス数に基づき
前記パルス信号の周期の平均を算出する第1の平
均算出手段、 前回の平均算出終了時から前記パルス数計数
手段で第1の所定値に相当するパルス数が計数
されたとき 前記パルス周期比較手段から大なる比較結果
が第2の所定値に相当する回数だけ出力された
とき 前記パルス周期比較手段から小なる比較結果
に続いて大なる比較結果が出力される状態が第
3の所定値に相当する回数だけ現れたとき 下記条件が成立する毎に最新のパルス信号
周期を平均周期とする第2の平均周期算出手
段、 前記パルス周期比較手段から小なる比較結果
に続いて大なる比較結果が出力される状態が前
回の平均算出終了時より少なくとも1回は現れ
ているが第2の所定値に相当する回数だけ未だ
現れない以前に、前記パルス周期比較手段から
大なる比較結果が複数連続して出力されたとき を具備したことを特徴とするカルマン渦式空気流
量センサ出力パルスの平均周期算出装置。 3 カルマン渦式空気流量センサからカルマン渦
の発生に関係したタイミングで出力されるパルス
信号の周期の平均を算出する装置において、 前記パルス信号の個数を計数するパルス数計数
手段、 前記パルス信号の周期を計測するパルス周期計
測手段、 該パルス周期計測手段で計測された周期が第1
の所定時間より長いとき大の比較結果を、そうで
ないとき小の比較結果を出す第1のパルス周期比
較手段、 前記パルス周期計測手段で計測された周期が前
記第1の所定時間より長い第2の所定時間より長
いときに大なる比較結果を出す第2のパルス周期
比較手段、 下記条件〜のいずれかが成立する毎に前回
の平均算出終了時からの時間とパルス数に基づき
前記パルス信号の周期の平均を算出する平均算出
手段、 前回の平均算出終了時から前記パルス数計数
手段で第1の所定値に相当するパルス数が計数
されたとき 前記第1のパルス周期比較手段から大なる比
較結果が第2の所定値に相当する回数だけ出力
されたとき 前記第1のパルス周期比較手段から小なる比
較結果に続いて大なる比較結果が出力される状
態が第2の所定値に相当する回数だけ現れたと
き 下記条件が成立する毎に最新のパルス信号
周期を平均周期とする第2の平均周期算出手
段、 前記第2のパルス周期比較手段から大なる比
較結果が出力されたとき を具備したことを特徴とするカルマン渦式空気流
量センサ出力パルスの平均周期算出装置
[Scope of Claims] 1. A device for calculating the average cycle of pulse signals output from a Karman vortex air flow sensor at timings related to the generation of Karman vortices, comprising: pulse number counting means for counting the number of pulse signals. , a pulse period measuring means for measuring the period of the pulse signal, the period measured by the pulse period measuring means is a first pulse period measuring means;
Pulse period comparison means that outputs a large comparison result when the time is greater than a predetermined time, and a small comparison result when it is not; average calculating means for calculating the average period of the pulse signal based on the average period of the pulse signal; when the number of pulses corresponding to the first predetermined value has been counted by the pulse number counting means since the end of the previous average calculation; When the comparison result is output a number of times corresponding to a second predetermined value; When the pulse period comparison means outputs a small comparison result followed by a large comparison result the number of times corresponding to a third predetermined value. 1. A device for calculating an average cycle of an output pulse of a Karman vortex type air flow sensor, characterized in that the average period calculation device is characterized in that the average period of the output pulse of a Karman vortex type air flow sensor is provided. 2. A device for calculating the average period of pulse signals outputted from a Karman vortex air flow sensor at timings related to the generation of Karman vortices, comprising: a pulse number counting means for counting the number of the pulse signals; and a period of the pulse signals. a pulse period measuring means for measuring a pulse period measuring means, the period measured by the pulse period measuring means is a first pulse period measuring means;
A pulse period comparison means that outputs a large comparison result when the time is longer than a predetermined time, and a small comparison result when it is not. a first average calculating means for calculating the average period of the pulse signal based on the pulse period comparison; when the pulse number counting means has counted the number of pulses corresponding to the first predetermined value since the end of the previous average calculation; and the pulse period comparison. When a large comparison result is outputted from the means a number of times corresponding to the second predetermined value, a state in which a large comparison result is outputted after a small comparison result from the pulse period comparison means becomes a third predetermined value. a second average period calculation means which takes the latest pulse signal period as the average period each time the following conditions are satisfied, and a large comparison result follows a small comparison result from the pulse period comparison means; Before the output state has appeared at least once since the end of the previous average calculation but has not yet appeared the number of times corresponding to the second predetermined value, a plurality of consecutive large comparison results are obtained from the pulse period comparison means. 1. A device for calculating an average cycle of output pulses of a Karman vortex type air flow rate sensor, characterized in that the average period calculation device includes a time when output pulses are output from a Karman vortex type air flow sensor. 3. A device for calculating the average period of pulse signals output from a Karman vortex air flow sensor at timings related to the generation of Karman vortices, comprising: a pulse number counting means for counting the number of the pulse signals; and a period of the pulse signals. a pulse period measuring means for measuring a pulse period measuring means, the period measured by the pulse period measuring means is a first pulse period measuring means;
a first pulse period comparing means which produces a large comparison result when the period is longer than the first predetermined time period, and a small comparison result when the period is not longer than the first predetermined time period; a second pulse period comparing means that produces a large comparison result when the period is longer than a predetermined time period; average calculation means for calculating the average of the cycles; when the number of pulses corresponding to a first predetermined value has been counted by the pulse number counting means since the end of the previous average calculation; and a great comparison from the first pulse period comparison means. When the result is output a number of times corresponding to the second predetermined value, a state in which the first pulse period comparing means outputs a small comparison result followed by a large comparison result corresponds to the second predetermined value. a second average period calculating means which sets the latest pulse signal period as the average period each time the following conditions are satisfied; and when a great comparison result is output from the second pulse period comparing means. A device for calculating the average period of Karman vortex air flow sensor output pulses, characterized by the following:
JP59104117A 1984-05-23 1984-05-23 Average-period computing device of output pulse from karman vortex type airflow-rate sensor Granted JPS60247117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59104117A JPS60247117A (en) 1984-05-23 1984-05-23 Average-period computing device of output pulse from karman vortex type airflow-rate sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59104117A JPS60247117A (en) 1984-05-23 1984-05-23 Average-period computing device of output pulse from karman vortex type airflow-rate sensor

Publications (2)

Publication Number Publication Date
JPS60247117A JPS60247117A (en) 1985-12-06
JPH0570086B2 true JPH0570086B2 (en) 1993-10-04

Family

ID=14372180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59104117A Granted JPS60247117A (en) 1984-05-23 1984-05-23 Average-period computing device of output pulse from karman vortex type airflow-rate sensor

Country Status (1)

Country Link
JP (1) JPS60247117A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002002924A1 (en) * 2000-07-03 2002-01-10 Mitsubishi Denki Kabushiki Kaisha Control device of exhaust gas recirculating valve

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6611785B1 (en) 1998-09-14 2003-08-26 Kabushiki Kaisha Saginomiya Seisakusho Flowmeter, flow detecting switch, control method of flowmeter, control method of flow detecting switch, and recording medium having recorded a control program
CN102175286B (en) * 2011-01-19 2012-11-21 南京航空航天大学 Signal processing method for turbine flow meter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002002924A1 (en) * 2000-07-03 2002-01-10 Mitsubishi Denki Kabushiki Kaisha Control device of exhaust gas recirculating valve

Also Published As

Publication number Publication date
JPS60247117A (en) 1985-12-06

Similar Documents

Publication Publication Date Title
US4669301A (en) Method for measuring the flow rate of a medium flowing through a pipe and apparatus therefor
JPS62161017A (en) Measuring device for flow rate of air of internal combustionengine
EP0072036B1 (en) Air-to-fuel ratio control apparatus, and internal combustion engine employing the same
US4911128A (en) Fuel controller for an internal combustion engine
KR900000150B1 (en) Fuel supply control apparatus for internal combustion engine
JPH01244138A (en) Fuel injection control device for engine for automobile
US4633838A (en) Method and system for controlling internal-combustion engine
US5115397A (en) Surge-corrected fuel control apparatus for an internal combustion engine
JPH0570086B2 (en)
US4760829A (en) Fuel control apparatus for a fuel injection system of an internal combustion engine
US4711218A (en) Acceleration enrichment fuel control
JPS5951661B2 (en) fuel injected engine
KR910002900B1 (en) Fuel supply control device for internal combustion engine
JPS63167045A (en) Fuel control device for internal combustion engine
JPS60183523A (en) Average air flow rate detecting apparatus by karman's vortex street type air flow rate sensor
US4777919A (en) Ignition timing control apparatus for an internal combustion engine
JPS61116051A (en) Method for processing engine control signal
JPS6321344A (en) Electronically controlled fuel injection device for internal combustion engine
JPS6212256Y2 (en)
JPS6166825A (en) Acceleration judging device of internal-combustion engine
EP0245120B1 (en) Ignition timing control apparatus for an internal combustion engine
JPS60183524A (en) Average air flow rate detecting apparatus by karman's vortex street type air flow rate sensor
JPH0686836B2 (en) Electronic internal combustion engine controller
JP3805874B2 (en) Crank angle detector
JPS6256963B2 (en)