JPH10220276A - Control method of micro computer - Google Patents

Control method of micro computer

Info

Publication number
JPH10220276A
JPH10220276A JP2258997A JP2258997A JPH10220276A JP H10220276 A JPH10220276 A JP H10220276A JP 2258997 A JP2258997 A JP 2258997A JP 2258997 A JP2258997 A JP 2258997A JP H10220276 A JPH10220276 A JP H10220276A
Authority
JP
Japan
Prior art keywords
microcomputer
frequency
predetermined value
driving
abnormal
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
JP2258997A
Other languages
Japanese (ja)
Inventor
Takahiro Aki
隆啓 安芸
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 JP2258997A priority Critical patent/JPH10220276A/en
Publication of JPH10220276A publication Critical patent/JPH10220276A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To exert no adoerse effect on an engine in the case where a driving frequency of a micro computer is exchanged, and control an engine effectively by stopping a self diagnosis function when the driving frequency of the micro computer is lower than a predetermined value. SOLUTION: By a self-diagnostic function, an abnormal position is diagnosed by a micro computer, and a memory is displayed, in the case where an abnormal condition is generated in an engine control system during traveling of an automobile. In the case of abnormal input data, it is judged by the micro computer, and the abnormal condition is detected (S1). It is judged whether it is a frequency lower than a driving frequency (S2). In the case where the frequency is not low (No), abnormal detection is memorized (S3). In the case where the frequency is low (Yes), abnormal detection is not memorized since there is the possibility of an error diagnosis, and the memory of abnormal detection is eliminated (S4). The abnormal condition is informed to a driver by means such that an abnormal alarm lamp is turned on and the like (S6). The self- diagnostic function is stopped substantially.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、車両各部の制御を
行う車載制御用マイクロコンピュータの制御方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method for an on-vehicle control microcomputer for controlling various parts of a vehicle.

【0002】[0002]

【従来の技術】車両の始動時等にバッテリーの電圧が低
下した場合、車載制御用マイクロコンピュータ(以下、
マイコンと記す)への供給電圧が下がり、マイコンが駆
動できずエンジンが始動できない等エンジンの基本性能
に悪影響を及ぼす可能性があった。このような悪影響が
及ぶ範囲をできるだけ少なくするため、マイコンへの供
給電圧が下がった場合、あるいはその恐れのある場合に
これを検出し、マイコンの駆動周波数を低周波に切り換
え、マイコンの作動電圧を下げて制御する方法が用いら
れている。
2. Description of the Related Art When the voltage of a battery drops at the time of starting a vehicle or the like, a microcomputer for in-vehicle control (hereinafter, referred to as a microcomputer).
The voltage supplied to the microcomputer decreases, and the basic performance of the engine may be adversely affected, for example, the microcomputer cannot be driven and the engine cannot be started. In order to reduce the range of such adverse effects as much as possible, when the supply voltage to the microcomputer is reduced or is likely to be detected, this is detected, the drive frequency of the microcomputer is switched to a low frequency, and the operation voltage of the microcomputer is reduced. A method of lowering and controlling is used.

【0003】[0003]

【発明が解決しようとする課題】しかし、マイコンの駆
動周波数を切り換えるとマイコンの作動速度が変化し、
エンジン制御自体に大きな影響を与える可能性がある。
特に、マイコンの駆動周波数を低周波に切り換えた場合
リアルタイムの制御が十分にできなくなり、通常の駆動
周波数に戻した後も影響が残ってしまう可能性がある。
However, when the driving frequency of the microcomputer is switched, the operating speed of the microcomputer changes.
This can have a significant effect on engine control itself.
In particular, when the driving frequency of the microcomputer is switched to a low frequency, real-time control cannot be sufficiently performed, and the effect may be left even after returning to the normal driving frequency.

【0004】そこで、本発明はマイコンの駆動周波数を
切り換えた場合でもエンジンに悪影響を及ぼさないよう
にし、かつ有効にエンジン制御を行うことを目的とす
る。
SUMMARY OF THE INVENTION It is therefore an object of the present invention to prevent the engine from being adversely affected even when the driving frequency of the microcomputer is switched, and to perform effective engine control.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
の手段として、本発明の車載制御用マイコンの制御方法
においては次の様に制御する。まず、マイコンへの供給
電圧が低下した場合、マイコンの駆動周波数を低周波数
に切り換えるが、このような状態においてはセンサ等が
正常に動作する可能性が低いため、ダイアグノーシス
(自己診断機能)を停止するとともに、低周波での駆動
時、又は低周波から元の周波数に切り換える時にそれま
での診断結果をクリアする。又、車両の動きに大きな影
響を及ぼす空燃比フィードバック制御を禁止する。さら
に,マイコンの負担を軽減し、マイコンによる低周波数
での駆動でも車両の制御に大きな影響を及ぼすことがな
いようにするため、重要な項目だけに限定して制御し、
あるいは制御の周期を長くする。
As a means for achieving the above object, a control method of a microcomputer for controlling a vehicle according to the present invention is controlled as follows. First, when the supply voltage to the microcomputer decreases, the drive frequency of the microcomputer is switched to a low frequency. In such a state, the possibility of the sensor or the like operating normally is low, so the diagnosis (self-diagnosis function) is performed. At the same time, the diagnosis result is cleared when driving at a low frequency or when switching from the low frequency to the original frequency. In addition, the air-fuel ratio feedback control that greatly affects the movement of the vehicle is prohibited. Furthermore, in order to reduce the load on the microcomputer, and to control the vehicle control even when driving at a low frequency by the microcomputer, control is limited to only important items,
Alternatively, the control cycle is lengthened.

【0006】[0006]

【発明の実施の形態】次に本発明の実施形態を説明す
る。図1は車両のエンジンの構成図である。エンジンの
吸気側にインテークマニホルド1、エアクリーナ2、ス
ロットル3、ISCバルブ4、サージタンク5、インジ
ェクタ6を備えており、さらに、スロットル開度に比例
した信号を出力するスロットルセンサ7、吸入吸気温を
検出する吸気温センサ8、スロットルバルブの後の吸気
管負圧を検出する吸気管圧力センサ9を備えている。エ
ンジンの排気側にはエキゾーストマニホルド10、マフ
ラー11を備えており、さらに、排気ガス中の酸素濃度
を検出するO2 センサ12を備えている。エンジン本体
は点火プラグ13、ピストン14、クランクケース15
等で構成されており、冷却水温を検出する水温センサ1
6、TDC信号とNE信号を発生する回転数センサ1
7、及び車速センサ18を備えている。
Next, an embodiment of the present invention will be described. FIG. 1 is a configuration diagram of a vehicle engine. An intake manifold 1, an air cleaner 2, a throttle 3, an ISC valve 4, a surge tank 5, and an injector 6 are provided on the intake side of the engine. Further, a throttle sensor 7, which outputs a signal proportional to the throttle opening, and an intake air temperature. An intake pipe temperature sensor 8 for detecting an intake pipe pressure, and an intake pipe pressure sensor 9 for detecting an intake pipe negative pressure after the throttle valve are provided. An exhaust manifold 10 and a muffler 11 are provided on the exhaust side of the engine, and further, an O2 sensor 12 for detecting an oxygen concentration in the exhaust gas is provided. The engine body includes a spark plug 13, a piston 14, a crankcase 15
And a water temperature sensor 1 for detecting a cooling water temperature.
6. Rotation speed sensor 1 that generates TDC signal and NE signal
7 and a vehicle speed sensor 18.

【0007】図2はエンジン制御ECU(Electronic C
ontrol Unit )の構成を示す図で、CPU20、発信子
21、分周器22、及び入力インタフェース23、A/
D変換器24、出力インタフェース25を備えている。
そしてECUには、デイジタル信号系として回転数セン
サ17からTDC信号、NE信号、及び車速センサ18
から車速が入力インタフェース23に入力する。またア
ナログ信号系として吸気管圧力センサ9、水温センサ1
6、吸気温センサ8、O2 センサ12、及びスロットル
センサ7からそれぞれ検出された信号が入力インタフェ
ース23に入力する。一方、出力インタフェース25か
らの出力により点火プラグ13、インジェクタ6、IS
Cバルブ4が制御される。なお、分周はCPUの周辺回
路で行っても、CPU内部回路、あるいはソフトで行っ
てもよい。
FIG. 2 shows an engine control ECU (Electronic C).
FIG. 2 is a diagram showing a configuration of an on / off unit (CPU), a transmitter 21, a frequency divider 22, an input interface 23, and an A / A unit.
A D converter 24 and an output interface 25 are provided.
The ECU supplies a TDC signal, a NE signal, and a vehicle speed sensor 18 from the rotation speed sensor 17 as a digital signal system.
, The vehicle speed is input to the input interface 23. In addition, an intake pipe pressure sensor 9 and a water temperature sensor 1 are used as analog signal systems.
6. Signals detected from the intake air temperature sensor 8, the O2 sensor 12, and the throttle sensor 7 are input to the input interface 23. On the other hand, the output from the output interface 25 allows the ignition plug 13, the injector 6, the IS
The C valve 4 is controlled. The frequency division may be performed by a peripheral circuit of the CPU, an internal circuit of the CPU, or by software.

【0008】次に、図2のECUによって実行される処
理を説明する。図3はメインルーチンのフローチャート
で、CPU20によって実行されるものである。メイン
ルーチンがスタートすると(S1)、初期設定がされ
(S2)、噴射制御(S3)において噴射量の算出が行
われ、点火制御(S4)において点火時期の制御が行わ
れ、アクチュエータ駆動(S5)においてアクチュエー
タ駆動制御が行われる。次にマイコン駆動周波数が設定
した駆動周波数より低い周波数であるかどうか判断され
(S6)、低くない場合(No)はCPUが正常に作動
できるためダイアグノーシスに進み故障の自己診断が行
なわれ(S7)、初期設定の後に戻る。低い場合(Ye
s)は誤診断をする可能性があるのでダイアグノーシス
に進まず初期設定の後に戻る。
Next, the processing executed by the ECU shown in FIG. 2 will be described. FIG. 3 is a flowchart of the main routine, which is executed by the CPU 20. When the main routine starts (S1), initialization is performed (S2), the injection amount is calculated in the injection control (S3), the ignition timing is controlled in the ignition control (S4), and the actuator is driven (S5). In, the actuator drive control is performed. Next, it is determined whether or not the microcomputer drive frequency is lower than the set drive frequency (S6). If not (No), the CPU can operate normally and the diagnosis proceeds to self diagnosis for failure (S7). ), Return after initialization. If low (Ye
s) does not proceed to the diagnosis and returns after the initialization since there is a possibility of erroneous diagnosis.

【0009】図4は図3のメインルーチンにおけるダイ
アグノーシス(S7)のフローチャートである。ダイア
グノーシスは自動車の走行中にエンジンコントロールシ
ステムのセンサ、アクチュエータ等に異常が生じた場
合、異常箇所をマイコン自身で診断して記憶表示を行う
ことにより故障の自己診断を行うことである。図4のフ
ローチャートにおいて、ECUへの入力信号が通常でな
い場合、あるいは各種センサの信号の組み合わせから、
異常な入力データとなる場合、マイコンがこれを判断
し、異常検出する(S1)。次に、駆動周波数が設定し
た駆動周波数より低い周波数であるかどうか判断され
(S2)、低くない場合(No)は異常検出が記憶され
(S3)、低い場合(Yes)は誤診断をしている可能
性があるので異常検出は記憶されず、また今までの異常
検出の記憶は消去される(S4)。なお、今までの異常
検出の記憶の消去は低周波から高周波への切り換え時に
行ってもよい。次に、S3で記憶された内容から異常が
有るかどうか判断され(S5)、異常が有ると判断され
ると(Yes)異常コードが出力され、異常警告ランプ
を点灯する等して運転者に知らせる(S6)。異常が無
いと判断されれば(No)正常コードが出力され(S
7)、エンドとなり(S8)、図3の初期設定の後に戻
る。S4において異常記憶が行われず、またそれまでの
記憶が消去された場合は異常なしとなり、実質的に自己
診断機能は停止されることになる。
FIG. 4 is a flowchart of the diagnosis (S7) in the main routine of FIG. Diagnosis is to perform a self-diagnosis of a failure by causing a microcomputer to diagnose and store and display an abnormal location when an abnormality occurs in a sensor, an actuator, or the like of an engine control system while the vehicle is running. In the flowchart of FIG. 4, when an input signal to the ECU is not normal, or from a combination of signals from various sensors,
If the input data is abnormal, the microcomputer determines this and detects an abnormality (S1). Next, it is determined whether or not the drive frequency is lower than the set drive frequency (S2). If the drive frequency is not lower (No), abnormality detection is stored (S3). If lower (Yes), an erroneous diagnosis is made. Since there is a possibility that the abnormality has been detected, the abnormality detection is not stored, and the storage of the abnormality detection up to now is deleted (S4). It should be noted that the erasure of the storage of the abnormality detection up to now may be performed at the time of switching from low frequency to high frequency. Next, it is determined whether or not there is an abnormality from the contents stored in S3 (S5). If it is determined that there is an abnormality (Yes), an abnormality code is output, and an abnormality warning lamp is turned on to give the driver a warning. Notify (S6). If it is determined that there is no abnormality (No), a normal code is output (S
7), end (S8), and return after the initial setting of FIG. If no abnormal storage is performed in S4 and the previous storage is erased, there is no abnormality and the self-diagnosis function is substantially stopped.

【0010】図5は本発明の空燃比フィードバック制御
のフローチャートを示したものである。エンジン制御に
おいて、空燃比を理論空燃比付近の狭い領域内に正確に
制御する必要がある。このため、エキゾーストマニホル
ド10に取り付けたO2 センサ12で排気ガス中の酸素
濃度を検出し、排気側で酸素が余分にも不足にもならな
いように、即ち、吸気側では理論空燃比となるよう噴射
時間をフィードバック補正制御している。但し、空燃比
フィードバック制御はO2 センサ自身の温度が低い間は
センサの特性上作動しないため、暖機させるまでECU
で決まる噴射量で運転される。図5のフローチャートに
おいて、まず、エンジン冷却水の温度が80℃より高い
かどうか判断され(S1)、80℃より高くない場合
(No)フィードバック係数は変化させず初期値の1.
0に維持される(S4)。エンジン冷却水の温度が80
℃より高い場合、マイコンの駆動周波数が設定した駆動
周波数より低い周波数であるかどうか判断され(S
2)、低い場合(Yes)はマイコンが正常に作動しな
い可能性があるので、フィードバック係数は変化させず
1.0に維持される(S5)。低くない場合(No)リ
ッチであるかどうか、即ち、燃料が多く排気ガス中の酸
素濃度が設定された値より低いかどうか判断され(S
3)、リッチであると判断されれば(Yes)フィード
バック係数を減らし(S5)、燃料が減らされる。リッ
チでない、即ち、燃料が少なく排気ガス中の酸素濃度が
設定された値より高いと判断された場合(No)、フィ
ードバック係数を増やし(S6)、燃料を増やす。上記
のようにして空燃比フィードバック制御が行われる。
FIG. 5 shows a flowchart of the air-fuel ratio feedback control according to the present invention. In engine control, it is necessary to accurately control the air-fuel ratio within a narrow region near the stoichiometric air-fuel ratio. For this reason, the oxygen concentration in the exhaust gas is detected by the O2 sensor 12 attached to the exhaust manifold 10, and the injection is performed so that the oxygen side does not become excessive or insufficient on the exhaust side, that is, the stoichiometric air-fuel ratio is obtained on the intake side. The time is controlled by feedback correction. However, the air-fuel ratio feedback control does not operate due to the characteristics of the O2 sensor while the temperature of the O2 sensor itself is low.
It is operated with the injection amount determined by. In the flowchart of FIG. 5, first, it is determined whether or not the temperature of the engine cooling water is higher than 80 ° C. (S1). If the temperature is not higher than 80 ° C. (No), the feedback coefficient is not changed and the initial value is 1.
It is maintained at 0 (S4). Engine coolant temperature is 80
If the temperature is higher than C, it is determined whether the drive frequency of the microcomputer is lower than the set drive frequency (S
2) If it is low (Yes), the microcomputer may not operate normally, so the feedback coefficient is maintained at 1.0 without changing (S5). If it is not low (No), it is determined whether or not the fuel is rich, that is, whether or not the amount of fuel is large and the oxygen concentration in the exhaust gas is lower than a set value (S
3) If it is determined that the fuel is rich (Yes), the feedback coefficient is reduced (S5), and the fuel is reduced. If it is not rich, that is, if it is determined that the amount of fuel is small and the oxygen concentration in the exhaust gas is higher than the set value (No), the feedback coefficient is increased (S6), and the fuel is increased. The air-fuel ratio feedback control is performed as described above.

【0011】図6は一定周期毎に割り込むタイマ割り込
みにより、図2のアナログ信号系の検出信号をA/D変
換するA/D変換器24を起動するフローチャートを示
す。まず、タイマ割り込みが行われると(S1)、マイ
コンの駆動周波数が設定した駆動周波数より低い周波数
であるかどうか判断され(S2)、低くない場合(N
o)は図2のA/D変換器24が起動される(S4)。
低い場合(No)はマイコンが正常に作動しない可能性
があるので、前回A/D変換器24が起動されたか判断
され(S3)、起動されていれば今回はA/D変換器2
4を起動せず、割り込みからのリターンに進む(S
6)。前回A/D変換器24が起動されていなければ
(No)、A/D変換器24が起動される(S4)。A
/D変換器24が起動されると起動されたことが記憶さ
れ(S5)、割り込みからのリターンに進む(S6)。
FIG. 6 is a flowchart for activating the A / D converter 24 for A / D-converting the analog signal detection signal shown in FIG. 2 by a timer interrupt interrupting at regular intervals. First, when a timer interrupt is performed (S1), it is determined whether or not the drive frequency of the microcomputer is lower than the set drive frequency (S2).
In o), the A / D converter 24 of FIG. 2 is activated (S4).
If it is low (No), the microcomputer may not operate normally. Therefore, it is determined whether the A / D converter 24 has been activated last time (S3).
4 is not started, and the process proceeds to the return from the interrupt (S
6). If the A / D converter 24 has not been activated previously (No), the A / D converter 24 is activated (S4). A
When the / D converter 24 is started, the fact that the / D converter 24 has been started is stored (S5), and the process proceeds from the interrupt to the return (S6).

【0012】図7は、図6のフローチャートにおけるA
/D起動(S3)の部分のフローチャートを示す図であ
る。図7においてA/D起動が行われると、スケジュー
ルカウンタでカウントされ(S1)、次にマイコンの駆
動周波数が設定した駆動周波数より低い周波数であるか
どうか判断される(S2)。低くない場合(No)はマ
イコンが正常に作動するので、図8のテーブル1に従っ
て1〜7のアナログ信号系信号を順次A/D変換する方
向に進む(S3)。テーブル1において、0〜7のデー
タはそれぞれ、PM(吸気管圧力)、OX(O2 センサ
の出力)、TA(スロットル開度)、THW(エンジン
冷却水温)、THA(吸気温度センサ)、BAT(バッ
テリー電圧)、及びTHO(油温)である。次に、A/
D変換が開始されると(S5)、テーブル1の0〜7の
検出信号が順次A/D変換され、A/D変換が終了する
と(S6)A/D変換が起動されたことが記憶される
(図6のフローチャートのS5)。一方、S2において
マイコンの駆動周波数が設定した駆動周波数より低い場
合(Yes)、図8のテーブル2に基づいて1〜7のア
ナログ信号系検出信号を順次A/D変換する方向に進む
(S4)。マイコンの駆動周波数が設定した駆動周波数
より低くない場合は図9に示されているテーブル1に基
づくA/D変換のように、アナログ信号系検出信号はP
M−OX−TA−THW−PM−THA−BAT−TH
O−PMの順にA/D変換されが、テーブル2に基づい
てA/D変換される場合、テーブル1の検出信号に対し
て一つおきの信号がA/D変換の対象となり、PM−・
−TA−・−PM−・−BAT−・−PMの順にA/D
変換されマイコンの負担を軽くしている。この場合、最
低限度の性能を保障するために必要な信号をA/D変換
している。なお、上記説明においてはテーブル1、及び
2において0〜7の信号を一度にA/D変換する場合を
示したが、0〜7の信号を一つ一つA/D変換してもよ
い。さらに、S2において低周波数と判断された場合、
A/D変換を起動する周期を変更する、即ち、低周波数
と判断された場合に図7に示されているようにテーブル
2に基づいて常にA/D変換するのではなく、1回おき
にA/D変換の起動を行ってA/D変換を起動する周期
を長くし、マイコンの負担を軽減することもできる。
FIG. 7 is a flowchart showing the operation of A in the flowchart of FIG.
It is a figure showing the flowchart of the / D start (S3) part. In FIG. 7, when the A / D activation is performed, it is counted by the schedule counter (S1), and it is determined whether the drive frequency of the microcomputer is lower than the set drive frequency (S2). If it is not low (No), the microcomputer operates normally, so that it proceeds in the direction of sequentially A / D converting the analog signal of 1 to 7 according to Table 1 of FIG. 8 (S3). In Table 1, data 0 to 7 are respectively PM (intake pipe pressure), OX (output of O2 sensor), TA (throttle opening), THW (engine cooling water temperature), THA (intake air temperature sensor), and BAT ( Battery voltage) and THO (oil temperature). Next, A /
When the D conversion is started (S5), the detection signals 0 to 7 in Table 1 are sequentially A / D converted, and when the A / D conversion is completed (S6), it is stored that the A / D conversion has been started. (S5 in the flowchart of FIG. 6). On the other hand, if the drive frequency of the microcomputer is lower than the set drive frequency in S2 (Yes), the process proceeds in the direction of sequentially A / D converting the analog signal detection signals 1 to 7 based on Table 2 in FIG. 8 (S4). . If the drive frequency of the microcomputer is not lower than the set drive frequency, the analog signal detection signal is set to P as in A / D conversion based on Table 1 shown in FIG.
M-OX-TA-THW-PM-THA-BAT-TH
A / D conversion is performed in the order of O-PM, but when A / D conversion is performed based on Table 2, every other signal from the detection signal of Table 1 is subjected to A / D conversion.
A / D in the order of -TA---PM--BAT---PM
The conversion has reduced the load on the microcomputer. In this case, a signal necessary to guarantee the minimum performance is A / D converted. In the above description, a case has been described in which the signals 0 to 7 are A / D-converted at once in the tables 1 and 2, but the signals 0 to 7 may be A / D-converted one by one. Further, when it is determined in S2 that the frequency is low,
The cycle for activating the A / D conversion is changed. That is, when it is determined that the frequency is low, the A / D conversion is not always performed based on Table 2 as shown in FIG. The cycle of activating A / D conversion and activating A / D conversion can be lengthened to reduce the load on the microcomputer.

【0013】図6においてはタイマ割り込みによるA/
D変換器の起動について説明したが、割り込みの項目に
は重要度において差異を有する。例えば、エンジン回転
数信号は全ての制御の基準となるので割り込み制御を行
う必要があるが、車速等の信号は割り込み制御がなくて
も基本的な性能は保証できるので、割り込みの優先順位
は低くしてもよい。次に、マイコンの駆動周波数が低下
した場合、優先度の低い項目の処理をどのように行うか
説明する。
In FIG. 6, A /
Although the activation of the D converter has been described, the items of the interrupt have a difference in importance. For example, it is necessary to perform interrupt control because the engine speed signal is a reference for all controls, but since signals such as vehicle speed can guarantee basic performance without interrupt control, the priority of interrupts is low. May be. Next, a description will be given of how to process a low priority item when the drive frequency of the microcomputer is reduced.

【0014】図10は、優先度の低い車速の割り込み制
御のフローチャートである。車速割り込みが行われると
(S1)、次にマイコンの駆動周波数が設定した駆動周
波数より低い周波数であるかどうか判断される(S
2)。低くない場合は(No)車速処理が行われ(S
3)、割り込みからのリターンに進むが(S4)、低い
場合は(Yes)車速処理が行われずに割り込みからの
リターンに進む。
FIG. 10 is a flowchart of interrupt control for a low-priority vehicle speed. When the vehicle speed interrupt is performed (S1), it is next determined whether the drive frequency of the microcomputer is lower than the set drive frequency (S1).
2). If it is not low (No), vehicle speed processing is performed (S
3) The process proceeds to the return from the interrupt (S4). If the speed is low (Yes), the process proceeds to the return from the interrupt without performing the vehicle speed process.

【0015】図11は、優先度の低い通信の割り込み制
御のフローチャートである。図10と同様に、通信割り
込みが行われると(S1)、次にマイコンの駆動周波数
が設定した駆動周波数より低い周波数であるかどうか判
断される(S2)。低くない場合は(No)通信処理が
行われ(S3)、割り込みからのリターンに進むが(S
4)、低い場合は(Yes)通信処理が行われずに割り
込みからのリターンに進む。
FIG. 11 is a flowchart of interrupt control for low-priority communication. As in FIG. 10, when a communication interrupt is performed (S1), it is next determined whether or not the drive frequency of the microcomputer is lower than the set drive frequency (S2). If not low (No), a communication process is performed (S3), and the process proceeds to return from the interrupt (S3).
4) If it is low (Yes), the process proceeds to the return from the interrupt without performing the communication process.

【0016】[0016]

【発明の効果】本発明のマイコンの制御方法において
は、マイコンへの供給電圧が低下しマイコンの駆動周波
数を低周波数に切り換えた場合、異常検出を記憶せず、
またそれまでの診断結果を消去して自己診断機能を停止
するので誤診をすることがなくなる。また、空燃比フィ
ードバック制御を禁止するので、車両の動きに大きな影
響を及ぼす制御を誤った信号等によって行われることを
防ぐことができる。
According to the microcomputer control method of the present invention, when the supply voltage to the microcomputer is reduced and the driving frequency of the microcomputer is switched to a low frequency, the abnormality detection is not stored,
In addition, since the self-diagnosis function is stopped by erasing the previous diagnosis result, erroneous diagnosis is not performed. Further, since the air-fuel ratio feedback control is prohibited, it is possible to prevent the control that greatly affects the movement of the vehicle from being performed by an erroneous signal or the like.

【0017】また、A/D変換を起動する周期を変更
し、A/D変換する信号の項目を減らし、さらに割り込
みの項目に優先順位を設け、重要な項目のみ割り込ませ
るようにしたので、マイコンの負担を軽減でき安定した
制御ができる。
Further, the cycle for activating A / D conversion is changed, the number of signals to be A / D converted is reduced, the priority of interrupt items is set, and only important items are interrupted. Load can be reduced and stable control can be performed.

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

【図1】車両のエンジンの構成図である。FIG. 1 is a configuration diagram of an engine of a vehicle.

【図2】エンジン制御装置(ECU)の構成を示す図で
ある。
FIG. 2 is a diagram illustrating a configuration of an engine control device (ECU).

【図3】本発明のメインルーチンのフローチャートであ
る。
FIG. 3 is a flowchart of a main routine of the present invention.

【図4】図3のメインルーチンにおけるダイアグノーシ
ス(S7)のフローチャートである。
FIG. 4 is a flowchart of diagnosis (S7) in the main routine of FIG. 3;

【図5】本発明の空燃比フィードバック制御のフローチ
ャートである。
FIG. 5 is a flowchart of air-fuel ratio feedback control of the present invention.

【図6】一定周期毎に割り込むタイマ割り込みにより、
図2のアナログ信号系の検出信号をA/D変換するA/
D変換器を起動するフローチャートを示す。
FIG. 6 shows a timer interrupt interrupting at regular intervals,
A / D converting the detection signal of the analog signal system of FIG.
5 shows a flowchart for activating the D converter.

【図7】図6のフローチャートにおけるA/D起動(S
3)の部分のフローチャートを示す。
FIG. 7 shows A / D activation (S
The flowchart of the part 3) is shown.

【図8】本発明の方法によりA/D変換を行う場合の順
序を示す図である。
FIG. 8 is a diagram showing an order when performing A / D conversion by the method of the present invention.

【図9】図8のテーブル1とテーブル2の差異を説明す
るための図である。
FIG. 9 is a diagram for explaining a difference between table 1 and table 2 in FIG. 8;

【図10】優先度の低い車速の割り込み制御のフローチ
ャートである。
FIG. 10 is a flowchart of a low-priority vehicle speed interrupt control.

【図11】優先度の低い通信の割り込み制御のフローチ
ャートである。
FIG. 11 is a flowchart of interrupt control for low-priority communication.

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

1…インテークマニホルド 2…エアクリーナ 3…スロットル 4…ISCバルブ 5…サージタンク 6…インジェクタ 7…スロットルセンサ 8…吸気温センサ 9…吸気管圧力センサ 10…エキゾーストマニホルド 11…マフラー 12…O2 センサ 13…点火プラグ 14…ピストン 15…クランクケース 16…水温センサ 17…回転数センサ 18…車速センサ 20…CPU 21…発信子 22…分周器 23…入力インタフェース 24…A/D変換器 25…出力インタフェース Reference Signs List 1 intake manifold 2 air cleaner 3 throttle 4 ISC valve 5 surge tank 6 injector 7 throttle sensor 8 intake temperature sensor 9 intake pipe pressure sensor 10 exhaust manifold 11 muffler 12 O2 sensor 13 ignition Plug 14 Piston 15 Crankcase 16 Water temperature sensor 17 Revolution sensor 18 Vehicle speed sensor 20 CPU 21 Transmitter 22 Frequency divider 23 Input interface 24 A / D converter 25 Output interface

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 マイクロコンピュータを駆動する発振器
の周波数を予め定められた値にマイクロコンピュータ自
身が任意に変更できる機能を有するエンジン制御ECU
において、マイクロコンピュータの駆動周波数が所定の
値より低い時には自己診断機能を停止するマイクロコン
ピュータの制御方法。
An engine control ECU having a function of allowing a microcomputer to arbitrarily change a frequency of an oscillator for driving the microcomputer to a predetermined value.
A control method of the microcomputer, wherein the self-diagnosis function is stopped when the driving frequency of the microcomputer is lower than a predetermined value.
【請求項2】 マイクロコンピュータの駆動周波数が所
定の値より低い時には、異常検出を記憶せず、かつすで
に行った自己診断の結果を消去する、請求項1に記載の
マイクロコンピュータの制御方法。
2. The microcomputer control method according to claim 1, wherein when the microcomputer driving frequency is lower than a predetermined value, the abnormality detection is not stored and the result of the self-diagnosis already performed is deleted.
【請求項3】 マイクロコンピュータを駆動する発振器
の周波数を予め定められた値にマイクロコンピュータ自
身が任意に変更できる機能を有するエンジン制御ECU
において、マイクロコンピュータの駆動周波数が所定の
値より低い時には空燃比フィードバック制御を禁止する
マイクロコンピュータの制御方法。
3. An engine control ECU having a function of allowing the microcomputer itself to arbitrarily change the frequency of an oscillator for driving the microcomputer to a predetermined value.
A control method of a microcomputer for prohibiting air-fuel ratio feedback control when the driving frequency of the microcomputer is lower than a predetermined value.
【請求項4】 マイクロコンピュータを駆動する発振器
の周波数を予め定められた値にマイクロコンピュータ自
身が任意に変更できる機能を有するエンジン制御ECU
において、マイクロコンピュータの駆動周波数が所定の
値より低い時には一部のアナログ検出信号のみA/D変
換を行うマイクロコンピュータの制御方法。
4. An engine control ECU having a function of allowing the microcomputer itself to arbitrarily change the frequency of an oscillator for driving the microcomputer to a predetermined value.
A control method of a microcomputer which performs A / D conversion only on a part of analog detection signals when the driving frequency of the microcomputer is lower than a predetermined value.
【請求項5】 マイクロコンピュータを駆動する発振器
の周波数を予め定められた値にマイクロコンピュータ自
身が任意に変更できる機能を有するエンジン制御ECU
において、マイクロコンピュータの駆動周波数が所定の
値より低い時にはアナログ検出信号のA/D変換を起動
する周期を長くするマイクロコンピュータの制御方法。
5. An engine control ECU having a function of allowing the microcomputer itself to arbitrarily change the frequency of an oscillator for driving the microcomputer to a predetermined value.
A control method of a microcomputer, wherein when the drive frequency of the microcomputer is lower than a predetermined value, a cycle for starting A / D conversion of the analog detection signal is lengthened.
【請求項6】 マイクロコンピュータを駆動する発振器
の周波数を予め定められた値にマイクロコンピュータ自
身が任意に変更できる機能を有するエンジン制御ECU
において、割り込み項目に優先順位を設け、マイクロコ
ンピュータの駆動周波数が所定の値より低い時には優先
順位の低い項目の割り込みを禁止するマイクロコンピュ
ータの制御方法。
6. An engine control ECU having a function of allowing the microcomputer itself to arbitrarily change the frequency of an oscillator for driving the microcomputer to a predetermined value.
A method of controlling a microcomputer, wherein priorities are assigned to interrupt items, and when the drive frequency of the microcomputer is lower than a predetermined value, interrupts of items having lower priorities are prohibited.
JP2258997A 1997-02-05 1997-02-05 Control method of micro computer Pending JPH10220276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2258997A JPH10220276A (en) 1997-02-05 1997-02-05 Control method of micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2258997A JPH10220276A (en) 1997-02-05 1997-02-05 Control method of micro computer

Publications (1)

Publication Number Publication Date
JPH10220276A true JPH10220276A (en) 1998-08-18

Family

ID=12087047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2258997A Pending JPH10220276A (en) 1997-02-05 1997-02-05 Control method of micro computer

Country Status (1)

Country Link
JP (1) JPH10220276A (en)

Similar Documents

Publication Publication Date Title
JP2507550B2 (en) Fuel control device
JPS6336408B2 (en)
JP2570443B2 (en) Oxygen sensor heater control device
US6397585B2 (en) Catalyst temperature estimating apparatus
JPS6335825B2 (en)
JPS6256345B2 (en)
JPS6254982B2 (en)
JP5533471B2 (en) Catalyst deterioration diagnosis device
JP2005188309A (en) Abnormality determination device of throttle system
US6029630A (en) Engine control device having an arrangement for limiting interrupt processing
JP2781878B2 (en) Engine control device
JPH04292545A (en) Electronic control device for automobile
JPH10220276A (en) Control method of micro computer
JPS62103446A (en) Control device for internal combustion engine
JP2775676B2 (en) Fuel supply control device for internal combustion engine
JPS63173838A (en) Abnormality determining device for exhaust gas recirculation device
JPH0610446B2 (en) Engine idle control device
JPH02130252A (en) Anomaly judging device for exhaust recirculation device
JP2685176B2 (en) Engine air-fuel ratio control device
JP2873506B2 (en) Engine air-fuel ratio control device
JPH07139395A (en) Fuel injection control method
JP2535796B2 (en) Engine controller
JP2591095B2 (en) Control device for internal combustion engine
JPH0663480B2 (en) Engine controller
JPH1082340A (en) Throttle control integrated engine control device and medium for recording engine control program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060228

A02 Decision of refusal

Effective date: 20060704

Free format text: JAPANESE INTERMEDIATE CODE: A02