JPH04153548A - Watchdog timing - Google Patents

Watchdog timing

Info

Publication number
JPH04153548A
JPH04153548A JP2277318A JP27731890A JPH04153548A JP H04153548 A JPH04153548 A JP H04153548A JP 2277318 A JP2277318 A JP 2277318A JP 27731890 A JP27731890 A JP 27731890A JP H04153548 A JPH04153548 A JP H04153548A
Authority
JP
Japan
Prior art keywords
watchdog timer
processing
time
anomaly
engine revolution
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
JP2277318A
Other languages
Japanese (ja)
Inventor
Minoru Hotsuka
稔 穂塚
Takashi Harada
隆嗣 原田
Masanori Yamamoto
正紀 山本
Junji Taguchi
田口 純司
Kazuhiko Nakai
和彦 中井
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
NipponDenso Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP2277318A priority Critical patent/JPH04153548A/en
Publication of JPH04153548A publication Critical patent/JPH04153548A/en
Pending legal-status Critical Current

Links

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect the operation anomaly exceedingly speedily free from the erroneous judgement for the normal operation by prolonging the standard judgement time in which a watchdog timer judges anomaly, according to the engine revolution speed. CONSTITUTION:A watchdog timer 4 carries out the interruption processing synchronized with the engine revolution. In this case, a means for prolonging the standard judgement time for judging the anomaly of the watch dog timer 4 according to the engine revolution speed is installed. Accordingly, anomaly is judged in the shorter standard judgement time in the low engine revolution region, while in the high engine revolution region, anomay is judged in the longer standard judgement time. Accordingly in the superhigh speed revolution, the revolution interruption occurs in mush times, and eve if the delay of the base processing increases, the trouble of the erroneous judgement is prevented, and the average standard judgement time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は車両用電子制御システムのウォッチドッグタイ
マに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a watchdog timer for a vehicle electronic control system.

〔従来の技術〕[Conventional technology]

従来、ノイズ等の偶発的な外乱によりソフトウェアが暴
走した場合に、速やかにプロセッサをリセットしフェー
ルセーフの制御を実行させるため、ウォッチドッグタイ
マが用いられている。この種のウォッチドッグタイマは
所定時間内にプロセッサからのクリアパルス信号が発せ
られなければ暴走と判定し、プロセッサに対してリセッ
ト信号を発生するものであり、種々の方式が提案されて
いる(特公昭64−1813号、特開昭63−2715
45号、特開昭58−201108号等)。
Conventionally, a watchdog timer has been used to quickly reset a processor and execute fail-safe control when software goes out of control due to an accidental disturbance such as noise. This type of watchdog timer determines that a runaway has occurred if the processor does not issue a clear pulse signal within a predetermined period of time, and generates a reset signal to the processor. Various methods have been proposed (in particular, Publication number 64-1813, Japanese Patent Application Publication No. 63-2715
No. 45, JP-A-58-201108, etc.).

これらは、いずれもプロセッサが所定処理の実行毎にク
リアパルス信号をウォッチドッグタイマに与えるもので
ある。そして、車両のエンジン制御用電子制御システム
では所定のベース処理実行毎にクリアパルス信号を与え
ていた。
In both of these, the processor gives a clear pulse signal to the watchdog timer every time a predetermined process is executed. In the electronic control system for engine control of a vehicle, a clear pulse signal is given every time a predetermined base process is executed.

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

しかしながら、車両のエンジンを制御する電子制御シス
テムでは、時間に同期した割り込み処理とエンジンの回
転に同期した割り込み処理が多用されており、高速回転
時には回転割り込みが多発し、ベース処理の遅れが大き
くなる。このため、超高速回転時にベース処理の周回時
間が長くなり、正常動作であるにもかかわらず、ウォッ
チドッグタイマが作動してリセット信号を発生してしま
う虞れがあるという問題点があった。一方、ウォッチド
ッグタイマの異常を判定する基準判定時間を長くすると
、超高速回転時の誤判定はなくなるが、異常検出が極め
て遅くなってしまうという問題点があった。
However, in electronic control systems that control vehicle engines, interrupt processing that is synchronized with time and interrupt processing that is synchronized with the rotation of the engine is frequently used, and when the engine rotates at high speeds, rotational interrupts occur frequently and delays in base processing become large. . For this reason, there is a problem in that the base processing cycle time becomes long during ultra-high speed rotation, and there is a risk that the watchdog timer will operate and generate a reset signal even though it is operating normally. On the other hand, if the reference determination time for determining abnormalities in the watchdog timer is lengthened, false determinations during extremely high-speed rotation will be eliminated, but there is a problem in that abnormality detection becomes extremely slow.

本発明は、上記の問題点に鑑みなされたものであり、そ
の目的とするところは、正常な動作に対して誤判定する
ことなく、動作異常を極力迅速に検出することができる
ウォッチドッグタイマを提供することにある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to provide a watchdog timer that can detect abnormal operation as quickly as possible without erroneously determining normal operation. It is about providing.

〔課題を解決するための手段〕[Means to solve the problem]

上記の目的を達成するため、本発明では、エンジンに回
転に同期した割り込み処理を有する車両用電子制御シス
テムのウォッチドッグタイマにおいて、ウオッチドソゲ
タイマが異常を判定する基準判定時間をエンジンの回転
数に従って延長する延長手段を備えることを特徴とする
ウォッチドッグタイマが提供される。
In order to achieve the above object, in the present invention, in a watchdog timer of a vehicle electronic control system having an interrupt process synchronized with the engine rotation, the watchdog timer has a reference judgment time for determining abnormality at the engine rotation speed. A watchdog timer is provided, characterized in that it comprises an extension means for extending the time according to the following.

〔作用〕[Effect]

上記のように構成されたウォッチドッグタイマでは、エ
ンジンの低回転域では短い基準判定時間で異常を判定し
、高回転域では長い基準判定時間で異常を判定する。従
って、超高速回転時で回転割り込みが多発し、ベース処
理の遅れが大きくなる時でも誤判定の虞れがなく、且つ
、平均的な基準判定時間が短くなる。
In the watchdog timer configured as described above, an abnormality is determined in a short reference determination time in a low engine speed range, and an abnormality is determined in a long reference determination time in a high engine speed range. Therefore, even when rotational interruptions occur frequently during ultra-high-speed rotation and delays in base processing become large, there is no risk of erroneous determination, and the average reference determination time is shortened.

〔実施例〕〔Example〕

本発明の実施例について図面を参照し説明する。 Embodiments of the present invention will be described with reference to the drawings.

第1図は、自動車のエンジン及びトランスミッションを
制御する電子制御システム(EC1J)の構成を示すブ
コック図である。この電子制御システムは入力回路1、
メインマイクロコンピュータ2(以下メインマイコン2
と略称する)、出力回路3、ウォッチドッグタイマ4か
らなり、ウォッチドッグタイマ4もマイクロコンピュー
タ(以下サブマイコンと略称する)で構成されている。
FIG. 1 is a block diagram showing the configuration of an electronic control system (EC1J) that controls the engine and transmission of an automobile. This electronic control system includes an input circuit 1,
Main microcomputer 2 (hereinafter referred to as main microcomputer 2)
It consists of a microcomputer (hereinafter abbreviated as a sub-microcomputer), an output circuit 3, and a watchdog timer 4.

入力回路1は、回転センサ、水温センサ、車速センサ、
スロットルセンサ等の各種センサからの信号の波形成形
やA/D変換等の入力処理を行う回路である。メインマ
イコン2はCPU、ROM、RAM等からなる周知のマ
イクロコンピュータであり、入力回路1からの各種信号
に基づき噴射パルス幅(INJ) 、通電開始時期及び
点火時期(IGT)、ソレノイド駆動(ECT)等の種
々の演算処理を行う。出力回路3はメインマイコン2か
らの信号に従い種々の駆動信号を出力する回路である。
The input circuit 1 includes a rotation sensor, a water temperature sensor, a vehicle speed sensor,
This circuit performs input processing such as waveform shaping and A/D conversion of signals from various sensors such as a throttle sensor. The main microcomputer 2 is a well-known microcomputer consisting of a CPU, ROM, RAM, etc., and controls the injection pulse width (INJ), energization start timing and ignition timing (IGT), and solenoid drive (ECT) based on various signals from the input circuit 1. Performs various calculation processes such as The output circuit 3 is a circuit that outputs various drive signals according to signals from the main microcomputer 2.

ウォッチドッグタイマ4には入力回路1からの回転信号
、メインマイコン2からのクリアパルス信号がそれぞれ
入力され、ウォッチドッグタイマ4からメインマイコン
2にリセット信号が出力されるようになっている。
A rotation signal from the input circuit 1 and a clear pulse signal from the main microcomputer 2 are input to the watchdog timer 4, and a reset signal is output from the watchdog timer 4 to the main microcomputer 2.

第2図はメインマイコン2での処理、第3図はサブマイ
コンで構成されたウォッチドッグタイマ4ての処理を示
すフローチャートである。
FIG. 2 is a flowchart showing the processing by the main microcomputer 2, and FIG. 3 is a flowchart showing the processing by the watchdog timer 4 constituted by the sub-microcomputer.

メインマイコン2ては、第2図に示す様に、ベース処理
110.4ms e c毎の第1タイマ割り込み処理】
20.16m5ec毎の第2タイマ割り込み処理】30
が行われる。
As shown in Figure 2, the main microcomputer 2 handles the first timer interrupt every 110.4 ms for base processing.
20. Second timer interrupt processing every 16m5ec] 30
will be held.

第2図(a)に示すベース処理1】0では、ステップ1
11て噴射パルス幅(INJ)や点火時期(IGT)等
の算出のために水温補正、吸気温補正等の各種補正量が
算出される。次にステップ】12で、ベース処理が実行
されたことを示すフラグ八が立てられ、ステップ】】】
にもどる。
In the base processing 1]0 shown in FIG. 2(a), step 1
11, various correction amounts such as water temperature correction and intake temperature correction are calculated in order to calculate the injection pulse width (INJ), ignition timing (IGT), etc. Next, in step ]]12, flag 8 is set to indicate that base processing has been executed, and step ]]]
Return to

第2図(b)に示す4m5ec毎の第1タイマ割り込み
処理120では、ステップ121でA/D変換の実行等
の処理が行われ、次のステップ122て第1タイマ割り
込み処理が実行されたことを示すフラグBが立てられる
。そして、ステップ123からベース処理110に戻る
In the first timer interrupt processing 120 every 4m5ec shown in FIG. 2(b), processing such as execution of A/D conversion is performed in step 121, and the first timer interrupt processing is performed in the next step 122. A flag B indicating this is set. Then, the process returns to the base process 110 from step 123.

第2図(c)に示す]6m5ec毎の第2タイマ割り込
み処理130では、ステップ13】でアイドル判定等の
処理が実行される。次に、ステップ132で、前記ステ
ップ112及び122で立てられるフラグA及びBが立
てられセットされているか否かを調べる。両フラグが共
にセットされていると、ベース処理110及び第1タイ
マ割り込み処理120が共に正常に実行されたのである
から、ステップ133に進み、ウォッチドッグタイマ4
にクリアパルス信号を出力する。そしてステップ】34
で、前記フラグA及びBをリセットしてステップ135
からベース処理110に戻る。
In the second timer interrupt process 130 every 6m5ec shown in FIG. 2(c), processing such as idle determination is executed in step 13. Next, in step 132, it is checked whether flags A and B set in steps 112 and 122 are set. If both flags are set, it means that both the base processing 110 and the first timer interrupt processing 120 were executed normally, so the process advances to step 133 and the watchdog timer 4 is set.
Outputs a clear pulse signal to And step】34
Then, the flags A and B are reset and step 135
Then, the process returns to base processing 110.

一方、ステップ132でフラグA又はBのいずれかがリ
セットされていると、ステップ132からステップ13
5に飛び、何も実行せずベース処理110に戻る。
On the other hand, if either flag A or B is reset in step 132, steps 132 to 13
5 and returns to base processing 110 without executing anything.

ウォッチドッグタイマ4では、第3図に示す様に、ベー
ス処理2】0.16ms e c毎のタイマ割り込み処
理220、メインマイコン2がらの前記クリアパルス信
号によるクリア割り込み処理230が行われる。
In the watchdog timer 4, as shown in FIG. 3, base processing 2: timer interrupt processing 220 every 0.16 msec, and clear interrupt processing 230 based on the clear pulse signal from the main microcomputer 2 are performed.

第3図(a)に示すベース処理210では、ステップ2
11で入力回路1からの回転信号Neを読み込み、次の
ステップ212で、読み込まれたエンジン回転数Neが
所定値NOより大か否かが調べられる。エンジン回転数
Neが所定値Noより大であるならば、ステップ213
に進み、基準値KoにKaを設定し、エンジン回転数N
eが所定値Noより小であるならば、ステップ214に
進み、基準値KoにKbを設定する。ここで、KaはK
bより大きな数値である。そして、ステップ211に戻
り上記の処理を繰り返す。
In the base processing 210 shown in FIG. 3(a), step 2
At step 11, the rotation signal Ne from the input circuit 1 is read, and at the next step 212, it is checked whether or not the read engine rotation speed Ne is larger than a predetermined value NO. If the engine speed Ne is greater than the predetermined value No, step 213
, set Ka to the reference value Ko, and set the engine speed N.
If e is smaller than the predetermined value No, the process proceeds to step 214, where Kb is set as the reference value Ko. Here, Ka is K
It is a larger value than b. Then, the process returns to step 211 and repeats the above process.

第3図(b)に示すタイマ割り込み処理220では、ス
テップ221で、変数にの値をカウントアツプする(K
=に+1)。次のステップ222では、カウントアツプ
された変数にの値が前記基準値Ko (Koの値はKa
又はKbである)より大であるか否かが調べられる。変
数にの値が前記基準値Koより大であれば何らかの異常
であると判定し、ステップ223に進み、リセット信号
をメインマイコン2に出力する。ウォッチドッグタイマ
4からのリセット信号により、メインマイコン2は初期
状態に戻され、フェールセーフ動作である最初の処理か
らやり直す。変数にの値が前記基準値Koより小であれ
ば正常であると判定し、何も実行せずステップ222が
らステップ224に飛び、ベース処理2]0に戻る。
In the timer interrupt processing 220 shown in FIG. 3(b), in step 221, the value of the variable is counted up (K
=+1). In the next step 222, the value of the counted up variable is set to the reference value Ko (the value of Ko is Ka
or Kb). If the value of the variable is greater than the reference value Ko, it is determined that there is some kind of abnormality, and the process proceeds to step 223, where a reset signal is output to the main microcomputer 2. The main microcomputer 2 is returned to its initial state by a reset signal from the watchdog timer 4, and starts over from the first process, which is a fail-safe operation. If the value of the variable is smaller than the reference value Ko, it is determined to be normal, and the process jumps from step 222 to step 224 without executing anything, and returns to base processing 2]0.

第3図(b)に示すメインマイコン2がらのクリアパル
ス信号によるクリア割り込み処理230では、ステップ
231で、変数にの値を0にリセットし、ステップ23
2からベース処理210に戻る。この様にして、変数に
の値がカウントアツプされ所定の基準値Koを超える前
にステップ】32でクリアパルス信号が出力されること
により、メインマイコン2が正常であることを確認して
いる。
In the clear interrupt processing 230 by the clear pulse signal from the main microcomputer 2 shown in FIG. 3(b), in step 231, the value of the variable is reset to 0, and in step 23
2 returns to base processing 210. In this manner, the main microcomputer 2 is confirmed to be normal by outputting a clear pulse signal in step 32 before the value of the variable counts up and exceeds the predetermined reference value Ko.

そして、エンジンの高回転時には、ステップ213で基
準値KoをKbがらより大きな値Kaに変更しウォッチ
ドッグタイマ4が異常を判定する基準判定時間を延長し
ている。即ち、ステップ212.213.2】4の処理
はウォッチドッグタイマ4が異常を判定する基準判定時
間をエンジンの回転数に従って延長する延長手段を構成
している。
When the engine is running at high speed, the reference value Ko is changed from Kb to a larger value Ka in step 213 to extend the reference determination time for the watchdog timer 4 to determine an abnormality. That is, the processing in steps 212, 213, 2]4 constitutes an extension means for extending the standard determination time for the watchdog timer 4 to determine abnormality in accordance with the engine speed.

従って、エンジンの高回転時に回転同期割り込みにより
ベース処理110の周回が遅れるようになっても、ウォ
ッチドッグタイマ4がメインマイコン2の異常を誤判定
する虞れはない。一方、エンジンの低回転時にはステッ
プ2】4で基準値KOがより小さな値Kbに変更される
ので、ウォッチドッグタイマ4が異常を判定する基準判
定時間が短縮され、素早くメインマイコン2の異常を判
定する。
Therefore, even if the rotation of the base processing 110 is delayed due to a rotation synchronization interrupt when the engine is running at high speed, there is no risk that the watchdog timer 4 will erroneously determine that the main microcomputer 2 is abnormal. On the other hand, when the engine speed is low, the reference value KO is changed to a smaller value Kb in step 2]4, so the reference judgment time for the watchdog timer 4 to judge an abnormality is shortened, and the abnormality of the main microcomputer 2 can be quickly determined. do.

以上説明した実施例では、ウォッチドッグタイマ4にサ
ブマイコンを利用したが、アナログ回路で構成すること
も可能である。
In the embodiment described above, a sub-microcomputer is used for the watchdog timer 4, but it is also possible to configure it with an analog circuit.

第4図はその一例を示す回路図である。本回路は、入力
回路1からの回転信号を電圧信号に変換するF/V変換
器(周波数/電圧変換器)41と、メインマイコン2か
らのクリアパルス信号aにより放電され一定の時定数で
充電する充放電回路42と、F/V変換器の出力電圧と
基準電源43の電圧を加えた基準電圧すと充放電回路4
2の出ヵ電圧Cとを比較する比較器44と、その比較器
44の出力dによりトリガされる単安定マルチバイブレ
ータ45とにより構成され、単安定マルチバイブレータ
45の出力eがリセット信号としてメインマイコン2に
出力されると共に、充放電回路42の入力に帰されるよ
うになっている。
FIG. 4 is a circuit diagram showing an example thereof. This circuit is discharged by an F/V converter (frequency/voltage converter) 41 that converts the rotation signal from the input circuit 1 into a voltage signal, and a clear pulse signal a from the main microcomputer 2, and charged at a constant time constant. A charging/discharging circuit 42 that generates a reference voltage that is the sum of the output voltage of the F/V converter and the voltage of the reference power source 43
It is composed of a comparator 44 that compares the output voltage C of 2 and a monostable multivibrator 45 that is triggered by the output d of the comparator 44, and the output e of the monostable multivibrator 45 is sent to the main microcontroller as a reset signal. 2 and is also returned to the input of the charging/discharging circuit 42.

第5図は上記ウォッチドッグタイマ回路の作動を説明す
る波形図である。メインマイコン2からのクリアパルス
信号aの入力毎に充放電回路42が放電され、所定時間
以上クリアパルス信号aが入力されないと充放電回路4
2の出力電圧Cが基準電圧すより高くなり、比較器44
の出力dにより単安定マルチバイブレータ45がトリガ
され、リセット信号eが出力される。ここで、基準電圧
すはF7V変換器41によりエンジンの回転数が高いほ
ど高くなり、ウォッチドッグタイマ回路4が異常を判定
する基準判定時間を延長している。
FIG. 5 is a waveform diagram illustrating the operation of the watchdog timer circuit. The charging/discharging circuit 42 is discharged every time the clear pulse signal a is input from the main microcomputer 2, and if the clear pulse signal a is not input for a predetermined period of time or more, the charging/discharging circuit 4 is discharged.
The output voltage C of the comparator 44 becomes higher than the reference voltage C.
The monostable multivibrator 45 is triggered by the output d, and a reset signal e is output. Here, the reference voltage is increased by the F7V converter 41 as the engine speed increases, and the watchdog timer circuit 4 extends the reference determination time for determining abnormality.

即ち、F/V変換器(周波数/電圧変換器)41はウォ
ッチドッグタイマ回路4が異常を判定する基準判定時間
をエンジンの回転数に従って延長する延長手段を構成し
ている。
That is, the F/V converter (frequency/voltage converter) 41 constitutes an extension means for extending the reference determination time for the watchdog timer circuit 4 to determine abnormality according to the engine rotation speed.

上記回路では、F/V変換器41によりエンジンの回転
数に応じて基準電圧すを上昇させるようにしたが、基準
電圧は一定値に固定し、充放電回路の充電時定数をエン
ジンの回転数に応じて切り換える様にしてもよい。
In the above circuit, the reference voltage is increased by the F/V converter 41 according to the engine speed, but the reference voltage is fixed at a constant value, and the charging time constant of the charging/discharging circuit is set to the engine speed. It may be possible to switch depending on the situation.

以上述べた実施例では、いずれも異常を判定する基準判
定時間をエンジンの回転数に従って延長する延長手段を
ウォッチドッグタイマ4内で構成したが、延長手段をメ
インマイコン2内に構成することも可能である。この場
合、ウォッチドッグタイマ回路はクリアパルス信号が入
力されなければ、所定時間経過後にリセット信号を出力
する通常のものでよい。
In each of the embodiments described above, the extension means for extending the reference judgment time for determining an abnormality according to the engine rotation speed is configured in the watchdog timer 4, but it is also possible to configure the extension means in the main microcomputer 2. It is. In this case, the watchdog timer circuit may be a normal watchdog timer circuit that outputs a reset signal after a predetermined period of time unless a clear pulse signal is input.

第6図はその一例である第3の実施例を示すメインマイ
コン2のフローチャートである。第6図(a)に示すベ
ース処理3】0では、当該処理(ステップ3]】)を終
了した後、変数C】を口にリセットする(ステップ31
2)。第6図(b)に示す4ms e c毎の第1のタ
イマ割り込み320では、当該処理(ステップ321)
を終了した後、変数C1を1だけカウントアツプする(
ステップ322)。そして、第6図(c)に示す16m
s e c毎の第2のタイマ割り込み330では、当該
処理(ステップ331)を終了した後、ステップ332
で基準数CIOをエンジンの回転数Neに応じて、たと
えば、第7図に示す様に、回転数Neが高いほど基準数
CIOが大きくなるように設定する。
FIG. 6 is a flowchart of the main microcomputer 2 showing a third embodiment, which is an example thereof. In base processing 3]0 shown in FIG. 6(a), after finishing the process (step 3]), the variable C] is reset to the mouth (step 31
2). In the first timer interrupt 320 every 4 ms e c shown in FIG. 6(b), the processing (step 321)
After finishing, count up variable C1 by 1 (
Step 322). Then, 16m shown in Figure 6(c)
In the second timer interrupt 330 for each s e c, after finishing the processing (step 331), step 332
Then, the reference number CIO is set in accordance with the engine rotational speed Ne, for example, as shown in FIG. 7, the reference number CIO becomes larger as the rotational speed Ne becomes higher.

そしてステップ333で、変数C]が基準数010より
大きくなっているか否かを調べる。否であれば、ステッ
プ334でクリアパルス信号をウォッチドッグタイマ4
に出力する。基準数CIOより太き(なっていれば何も
実行せずステップ335に飛び、ベース処理310に戻
る。
Then, in step 333, it is checked whether the variable C] is larger than the reference number 010. If not, the clear pulse signal is sent to watchdog timer 4 in step 334.
Output to. It is thicker than the reference number CIO (if it is, nothing is executed and the process jumps to step 335 and returns to base processing 310).

クリアパルス信号が出力されなければ、所定時間経過後
にウォッチドッグタイマ4からリセット信号が出力され
る。ここではステップ332の処理が、異常を判定する
基準判定時間をエンジンの回転数に従って延長する延長
手段を構成する。
If the clear pulse signal is not output, a reset signal is output from the watchdog timer 4 after a predetermined period of time has elapsed. Here, the process of step 332 constitutes an extension means for extending the reference determination time for determining abnormality according to the engine rotation speed.

第8図は他の一例である第4の実施例を示すメインマイ
コン2のフローチャートである。ここでは、ベース処理
周回中の回転割り込みの発生回数02が計数され、基準
判定時間が延長される。
FIG. 8 is a flowchart of the main microcomputer 2 showing a fourth embodiment, which is another example. Here, the number of occurrences 02 of rotational interrupts during the base processing round is counted, and the reference determination time is extended.

まず、第8図(b)に示す回転割り込み処理420では
、当該処理(ステップ421)を終了した後、変数C2
を1だけカウントアツプする(ステップ422)。
First, in the rotation interrupt process 420 shown in FIG. 8(b), after finishing the process (step 421), the variable C2
is counted up by 1 (step 422).

そして、第8図(a)に示すベース処理410では、当
該処理(ステップ4]1)を終了した後、変数C31を
C31=C30+A¥C2の式から求める。
Then, in the base processing 410 shown in FIG. 8(a), after completing the processing (step 4] 1), the variable C31 is determined from the formula C31=C30+A¥C2.

ここでC30は回転割り込みがない場合にベース処理周
回に要する時間に所定の余裕を加えた基本値、Aは正の
係数である。次にステップ413.414で、変数02
及び変数03をOにリセットする。
Here, C30 is a basic value obtained by adding a predetermined margin to the time required for the base processing cycle when there is no rotation interrupt, and A is a positive coefficient. Next, in steps 413 and 414, the variable 02
and reset variable 03 to O.

また、第8図(c)に示す4ms ec毎の第1のタイ
マ割り込み430では、当該処理(ステップ431)を
終了した後、変数C3を1だけカウントアツプする(ス
テップ432)。
Further, in the first timer interrupt 430 every 4 msec shown in FIG. 8(c), after the processing (step 431) is finished, the variable C3 is counted up by 1 (step 432).

そして、第8IN (cl)に示す64ms e c毎
の第2のタイマ割り込み440では、当該処理(ステッ
プ44])を終了した後、ステップ442で、変数03
が変数C31より大きいか否かが調べられる。否であれ
ばステップ443に進み、クリアパルス信号をウォッチ
ドッグタイマ4に出力する。
Then, in the second timer interrupt 440 every 64 ms e c shown in the 8th IN (cl), after finishing the process (step 44]), in step 442, the variable 03
It is checked whether C31 is larger than variable C31. If not, the process advances to step 443 and a clear pulse signal is output to the watchdog timer 4.

変数03が変数C31より大きければ何も実行せずステ
ップ444に飛び、ベース処理410に戻る。
If variable 03 is larger than variable C31, nothing is executed and the process jumps to step 444, returning to base processing 410.

クリアパルス信号が出力されなければ、所定時間経過後
にウォッチドッグタイマ4からリセット信号が出力され
る。ここではステップ412の処理が、異常を判定する
基準判定時間をエンジンの回転数に従って延長する延長
手段を構成する。
If the clear pulse signal is not output, a reset signal is output from the watchdog timer 4 after a predetermined period of time has elapsed. Here, the process of step 412 constitutes an extension means for extending the reference determination time for determining abnormality according to the engine rotation speed.

なお、本実施例では回転割り込みの発生回数C2のみを
計数したが、タイマ割り込み等の全ての割り込みの発生
回数を計数するようにしてもよい。
In this embodiment, only the number C2 of occurrences of rotational interrupts is counted, but the number of occurrences of all interrupts such as timer interrupts may be counted.

また、割り込み処理の種類によって処理時間に長短があ
るので、各割り込み処理毎に重み付けをして計数しても
よい。
Furthermore, since the processing time varies depending on the type of interrupt processing, each interrupt processing may be weighted and counted.

第9図はもう一つの例である第5の実施例を示すメイン
マイコン2のフローチャートである。ここでは、ベース
処理周回に要する時間が求められ、その平均時間から基
準判定時間が延長される。
FIG. 9 is a flowchart of the main microcomputer 2 showing another example of the fifth embodiment. Here, the time required for the base processing cycle is determined, and the reference determination time is extended from the average time.

第9図(a)に示すベース処理510では、当該処理(
ステップ511)を終了した後、ステップ512でフリ
ーランカウンタ(FRC)の値T1が読み込まれる。次
いてステップ513では、前回読み込んだFRCO値T
2と今回の値T1との差から今回のベース処理周回に要
した時間へTが求められる(ΔT=T2−TI )。ス
テップ514では値T2が今回の値T1に置き換えられ
、ステップ515では変数04が0にリセットされる。
In the base processing 510 shown in FIG. 9(a), the processing (
After completing step 511), the value T1 of the free run counter (FRC) is read in step 512. Next, in step 513, the previously read FRCO value T
2 and the current value T1, the time T required for the current base processing round is calculated (ΔT=T2-TI). In step 514, value T2 is replaced with the current value T1, and in step 515, variable 04 is reset to 0.

また、第9図(b)に示す4m5ec毎の第1のタイマ
割り込み520では、当該処理(ステップ521)を終
了した後、変数04を1だけカウントアツプする(ステ
ップ522)。
Further, in the first timer interrupt 520 every 4m5ec shown in FIG. 9(b), after the processing (step 521) is finished, the variable 04 is counted up by 1 (step 522).

そして、第9図(c)に示す16ms e c毎の第2
のタイマ割り込み530では、ステップ53Iで、ベー
ス処理周回時間Δ丁の平均値へTOがΔTO=(7XΔ
TO+八T)/8 の式により求められる。次にステッ
プ532では、平均値ΔTOから基準となる変数C40
が決定される。
Then, the second
In the timer interrupt 530, in step 53I, TO is set to the average value of the base processing cycle time ΔTO=(7XΔ
It is determined by the formula: TO+8T)/8. Next, in step 532, the reference variable C40 is calculated from the average value ΔTO.
is determined.

さらに、第9図(d)に示す64ms e c毎の第3
のタイマ割り込み540ては、当該処理(ステップ54
1)を終了した後、ステップ542で、変数04が変数
C40より大きいか否かが調へられる。否であればステ
ップ543に進み、クリアパルス信号をウォッチドッグ
タイマ4に出力する。
Furthermore, the third
The timer interrupt 540 executes the corresponding process (step 54
After completing step 1), it is checked in step 542 whether variable 04 is greater than variable C40. If not, the process advances to step 543 and a clear pulse signal is output to the watchdog timer 4.

変数04が変数C40より大きければ何も実行せずステ
ップ544に飛び、ベース処理510に戻る。
If variable 04 is greater than variable C40, nothing is executed and the process jumps to step 544, returning to base processing 510.

クリアパルス信号が出力されなければ、所定時間経過後
にウォッチドッグタイマ4からリセット信号が出力され
る。ここではステップ512.513.53】、532
の処理が、異常を判定する基準判定時間をエンジンの回
転数に従って延長する延長手段を構成する。
If the clear pulse signal is not output, a reset signal is output from the watchdog timer 4 after a predetermined period of time has elapsed. Here steps 512.513.53], 532
This process constitutes an extension means for extending the reference determination time for determining abnormality according to the engine rotation speed.

〔発明の効果〕〔Effect of the invention〕

本発明は、上記の構成を有しウォッチドッグタイマが異
常を判定する基準判定時間をエンジンの回転数に従って
延長する延長手段を備えるものであるから、回転割り込
みが多発する超高速回転時にも正常な動作に対して誤判
定することなく、動作異常を極力迅速に検出することが
できるという優れた効果がある。
The present invention has the above-mentioned configuration and is equipped with an extension means for extending the standard judgment time for the watchdog timer to judge abnormality according to the engine rotational speed. This has the excellent effect of being able to detect abnormalities in motion as quickly as possible without making erroneous judgments about the motion.

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

図面は本発明の実施例を示し、第1図は自動車のエンジ
ン及びトランスミッンヨンを制御する電子制御システム
(ECU)の構成を示すブロック図、第2図(a)、(
b)及び(c)はメインマイコンでの処理を示すフロー
チャート、第3図(a)、(b)及び(C)はサブマイ
コンでの処理を示すフローチャート、第4図はウォッチ
ドッグタイマの一例を示す回路図、第5図はその作動を
示す波形図、第6図(a)、(b)及び(c)は第3の
実施例を示すフローチャート、第7図は特性図、第8図
(a)、(b)、(c)及び(d)は第4の実施例を示
すフローチャート、第9図(a)、(b)、(c)及び
(d)は第5の実流側を示すフローチャートである。 11.入力回路、  2.、メインマイクロコンピュー
タ、31.出力回路、  40.ウオ・yチドッグタイ
マ。 第 図 回 転 数Ne 第 図 (c) (G) 図 (b) (c) 310、 第 図 (b) 320、 (c) (a) (b) 図 (C) (d) (G) (b) 図
The drawings show embodiments of the present invention, and FIG. 1 is a block diagram showing the configuration of an electronic control system (ECU) that controls the engine and transmission of an automobile, and FIGS.
b) and (c) are flowcharts showing processing in the main microcomputer, Figures 3(a), (b), and (C) are flowcharts showing processing in the submicrocomputer, and Figure 4 is an example of a watchdog timer. 5 is a waveform diagram showing its operation, FIGS. 6(a), (b), and (c) are flowcharts showing the third embodiment, FIG. 7 is a characteristic diagram, and FIG. a), (b), (c) and (d) are flowcharts showing the fourth embodiment, and Fig. 9 (a), (b), (c) and (d) show the fifth actual flow side. FIG. 11. Input circuit, 2. , main microcomputer, 31. Output circuit, 40. Woo-y-chi dog timer. Figure rotation speed Ne Figure (c) (G) Figure (b) (c) 310, Figure (b) 320, (c) (a) (b) Figure (C) (d) (G) (b ) figure

Claims (1)

【特許請求の範囲】  エンジンに回転に同期した割り込み処理を有する車両
用電子制御システムのウォッチドッグタイマにおいて、 ウォッチドッグタイマが異常を判定する基準判定時間を
エンジンの回転数に従って延長する延長手段を備えるこ
とを特徴とするウォッチドッグタイマ。
[Scope of Claims] A watchdog timer for a vehicle electronic control system having an interrupt process synchronized with the rotation of the engine, the watchdog timer comprising an extension means for extending the reference judgment time for determining an abnormality according to the engine rotation speed. A watchdog timer characterized by:
JP2277318A 1990-10-15 1990-10-15 Watchdog timing Pending JPH04153548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2277318A JPH04153548A (en) 1990-10-15 1990-10-15 Watchdog timing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2277318A JPH04153548A (en) 1990-10-15 1990-10-15 Watchdog timing

Publications (1)

Publication Number Publication Date
JPH04153548A true JPH04153548A (en) 1992-05-27

Family

ID=17581863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2277318A Pending JPH04153548A (en) 1990-10-15 1990-10-15 Watchdog timing

Country Status (1)

Country Link
JP (1) JPH04153548A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100422614B1 (en) * 1997-12-16 2004-06-16 현대자동차주식회사 Method for detecting error of engine control unit
JP2021056653A (en) * 2019-09-27 2021-04-08 富士ゼロックス株式会社 Information processing device and information processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875255A (en) * 1981-10-29 1983-05-06 Nec Home Electronics Ltd Runaway detector for microcomputer
JPS61232944A (en) * 1985-04-05 1986-10-17 Oki Electric Ind Co Ltd Watch dog timer of computer controlling system carried on car

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5875255A (en) * 1981-10-29 1983-05-06 Nec Home Electronics Ltd Runaway detector for microcomputer
JPS61232944A (en) * 1985-04-05 1986-10-17 Oki Electric Ind Co Ltd Watch dog timer of computer controlling system carried on car

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100422614B1 (en) * 1997-12-16 2004-06-16 현대자동차주식회사 Method for detecting error of engine control unit
JP2021056653A (en) * 2019-09-27 2021-04-08 富士ゼロックス株式会社 Information processing device and information processing program

Similar Documents

Publication Publication Date Title
US5257373A (en) System by determining if all multiple tasks were processed normally
US4788956A (en) Method of detecting abnormality in crank angle signal of internal combustion engines
EP0096869B1 (en) Method and apparatus of ignition timing control
EP0085909B1 (en) Crank angle detecting device for an internal combustion engine
JPS6352225B2 (en)
JPH04153548A (en) Watchdog timing
JPS62219030A (en) Computer having interrupt program
US5095437A (en) Engine controller with interrupt processing
US20080282248A1 (en) Electronic computing device capable of specifying execution time of task, and program therefor
JP3651088B2 (en) Control device for internal combustion engine
JP7251058B2 (en) In-vehicle control device
JPS60187765A (en) Ignition device for internal-combustion engine
JP2004003454A (en) Engine control system
JPH0134302B2 (en)
JP2001182605A (en) Reference position judging device for crankshaft, crank position detecting device, and engine controlling device
JPH0718379B2 (en) Internal combustion engine rotation sensor
JPS6013982A (en) Ignition timing control device for internal-combustion engine
JPH08319875A (en) Engine speed sensing device
JPS63193242A (en) Method for detecting malfunction of controller
JPH0763108A (en) Electronic controller of internal combustion engine
JP2639184B2 (en) Sensor fail detection method for knock control device
JP2528630B2 (en) Ignition timing control device for internal combustion engine
JP2639181B2 (en) Sensor fail detection method for knock control device
JP4179222B2 (en) Engine control device
JPH0342812B2 (en)