[go: up one dir, main page]

JP2005025290A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2005025290A
JP2005025290A JP2003187242A JP2003187242A JP2005025290A JP 2005025290 A JP2005025290 A JP 2005025290A JP 2003187242 A JP2003187242 A JP 2003187242A JP 2003187242 A JP2003187242 A JP 2003187242A JP 2005025290 A JP2005025290 A JP 2005025290A
Authority
JP
Japan
Prior art keywords
watchdog timer
cpu
electronic control
control device
microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003187242A
Other languages
Japanese (ja)
Inventor
Makoto Kobayashi
誠 小林
Koichi Ono
浩一 小野
Takao Fukuda
隆夫 福田
Kunihito Nakazuru
州人 中鶴
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.)
Hitachi Ltd
Hitachi Astemo Ltd
Original Assignee
Hitachi Ltd
Hitachi Car Engineering 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 Hitachi Ltd, Hitachi Car Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP2003187242A priority Critical patent/JP2005025290A/en
Publication of JP2005025290A publication Critical patent/JP2005025290A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

【課題】リセット信号のポートへの切り換えを行うことなく、ウォッチドッグタイマの診断を行うことによって、診断中のCPU暴走時においても、ウォッチドッグタイマが正常に動作していれば復帰が可能となる電子制御装置を提供することにある。
【解決手段】CPU2は、CPU2からウォッチドッグタイマ3に供給されるP−RUN信号が停止した際に、ウォッチドッグタイマ3がCPU2に対してリセット動作をしたか否かを判定することでウォッチドッグタイマ3の故障診断をおこなう。リセット動作時には、CPU2は、P−RUN信号の停止前にEEPROM5にエータを書き込むので、ウォッチドッグタイマ3がリセット動作をしたかしないかの判定を、EEPROM5に書き込んだデータを用いて判断する。
【選択図】 図1
By diagnosing a watchdog timer without switching a reset signal to a port, even if a CPU runs out of control during diagnosis, it can be restored if the watchdog timer is operating normally. It is to provide an electronic control device.
When a P-RUN signal supplied from a CPU 2 to a watchdog timer 3 is stopped, the CPU 2 determines whether the watchdog timer 3 has reset the CPU 2 or not. A failure diagnosis of the timer 3 is performed. During the reset operation, the CPU 2 writes an etaner to the EEPROM 5 before the P-RUN signal is stopped. Therefore, the CPU 2 determines whether or not the watchdog timer 3 has performed the reset operation using the data written to the EEPROM 5.
[Selection] Figure 1

Description

【0001】
【発明の属する技術分野】
本発明は、CPUより出力するP−RUN信号をウォッチドッグタイマに入力することにより、CPUの暴走を検知する電子制御装置に関する。
【0002】
【従来の技術】
従来の電子制御装置としては、例えば,特開平5−216711号公報に記載されているように、ウォッチドッグタイマを診断するために、CPUへのリセット信号を診断時のみポートに切り換えて診断をおこなうものが知られている。
【0003】
【特許文献1】
特開平5−216711号公報
【0004】
【発明が解決しようとする課題】
しかしながら、特開平5−216711号公報に記載されている方法では、リセット信号をポート側に切り換えているときにCPUの暴走が発生した場合、CPUのリセット端子を操作することができなくなるため、復帰が不可能となるという問題があった。
【0005】
本発明の目的は、リセット信号のポートへの切り換えを行うことなく、ウォッチドッグタイマの診断を行うことによって、診断中のCPU暴走時においても、ウォッチドッグタイマが正常に動作していれば復帰が可能となる電子制御装置を提供することにある。
【0006】
【課題を解決するための手段】
(1)上記目的を達成するために、本発明は、マイクロコンピュータと、このマイクロコンピュータからのプログラムランニング信号に基づいて、前記マイクロコンピュータの異常状態を検出するウォッチドッグタイマを有する電子制御装置において、前記マイクロコンピュータは、前記マイクロコンピュータから前記ウォッチドッグタイマに供給されるプログラムランニング信号が停止した際に、前記ウォッチドッグタイマが前記マイクロコンピュータに対してリセット動作をしたか否かを判定することでウォッチドッグタイマの故障診断をおこなうようにしたものである。
かかる構成により、リセット信号のポートへの切り換えを行うことなく、ウォッチドッグタイマの診断を行うことによって、診断中のCPU暴走時においても、ウォッチドッグタイマが正常に動作していれば復帰が可能となる。
【0007】
(2)上記(1)において、好ましくは、前記マイクロコンピュータは、前記ウォッチドッグタイマがリセット動作をしたかしないかの判定を、記憶装置に書き込んだデータを用いて判断するようにしたものである。
【0008】
(3)上記(2)において、好ましくは、前記記憶装置に書き込んだデータは、前記プログラムランニング信号の停止前に前記記憶装置に書き込むようにしたものである。
【0009】
(4)上記(1)において、好ましくは、前記マイクロコンピュータは、前記ウォッチドッグタイマがリセット動作をしたかしないかの判定を、前記マイクロコンピュータがプログラムランニング信号の停止後の規定期間中にリセットがかからないことで判断するようにしたものである。
【0010】
【発明の実施の形態】
以下、図1〜図4を用いて、本発明の一実施形態による電子制御装置の構成及び動作について説明する。
最初に、図1を用いて、本実施形態による電子制御装置のシステム構成について説明する。
図1は、本発明の一実施形態による電子制御装置の構成を示すシステム構成図である。
【0011】
電子制御装置1は、マイクロコンピュータ(CPU)2と、ウォッチドッグタイマ3と、電源回路4と、EEPROM5と、警告ランプ駆動用ドライバ6とを備えている。また、電子制御装置1の外部には、電源9と、電源スイッチ8と、警告ランプ7とが接続される。
【0012】
電源スイッチ8が投入されると、電源9からの電圧に基づいて、電源回路4のレギュレータにより一定電圧が生成され、CPU2と、、ウォッチドッグタイマ3と、EEPROM5とに供給される。ウォッチドッグタイマ3が出力するリセット信号RESは、CPU2に入力する。また、CPU2が出力するプログラムランニング(P−RUN)信号は、ウォッチドッグタイマ3に入力する。
【0013】
次に、図2を用いて、本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの正常時の動作について説明する。
図2は、本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの正常時の動作を示すタイムチャートである。図2において横軸は時間を示している。図2(A)は電源回路4の出力電圧を示している。図2(B)はウォッチドッグタイマ3が出力するリセット信号RESを示している。図2(C)はウォッチドッグタイマ3が出力するP−RUN信号を示している。図2(D)は警告ランプ7の動作状態を示している。図2(E)はCPU2の内部のROMのデータの内容を示している。図2(F)はEEPROM5のデータを示している。
【0014】
図2(A)に示すように、電源スイッチ8が投入されると、電源回路4はレギュレータにより制御用定電源電圧をCPU2,ウォッチドッグタイマ3,EEPROM5に供給する。ウォッチドッグタイマ3は、制御用定電源電圧値が所定値を超えた時点からCPUへの発振子出力が安定するまでの間(時刻t1の前まで)、図2(B)に示すように、リセット信号ローレベルを出力する。
【0015】
次に、時刻t1において、図2(B)に示すように、リセット信号立上がるとCPU2は正常起動し、P−RUN信号をウォッチドッグタイマ3に出力し続ける。
【0016】
時刻t2において、CPU2は、図2(E)及び図2(F)に示すように、CPU2の内部のROMに記憶されたデータ(この例では、「$55」というデータ)をEEPROM5に書込む。
【0017】
書込みが終了すると、時刻t3において、CPU2は、図2(C)に示すように、P−RUN信号を停止させる。これにより、時刻t4において、ウォッチドッグタイマ3は、図2(B)に示すように、リセット信号ローレベルを出力し、CPU2はリセット状態となる。
【0018】
時刻t5において、図2(B)に示すように、再び、リセット信号立上がると、CPU2が再度正常に復帰し、図2(C)に示すように、P−RUN信号を出力し始める。
【0019】
そして、時刻t6において、CPU2は、リセット前に書き込んだEEPROM5の内部に記憶されているデータを読み出し、CPU2の内部の書き込み元であるROMデータと比較する。比較した結果、データが合致した場合、時刻t7において、図2(F)に示すように、EEPROM5の書き込みデータをクリアし($FFにし)、ウォッチドッグタイマ3の動作診断を終了する。これによって、ウォッチドッグタイマ3が正常に動作していることを診断できる。
【0020】
次に、図3を用いて、本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの異常時の動作について説明する。
図3は、本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの異常時の動作を示すタイムチャートである。図3の縦軸及び横軸は、図2と同様である。
【0021】
図3(A)に示すように、電源スイッチ8が投入されると、電源回路4はレギュレータにより制御用定電源電圧をCPU2,ウォッチドッグタイマ3,EEPROM5に供給する。ウォッチドッグタイマ3は、制御用定電源電圧値が所定値を超えた時点からCPUへの発振子出力が安定するまでの間(時刻t1の前まで)、図3(B)に示すように、リセット信号ローレベルを出力する。
【0022】
次に、時刻t1において、図3(B)に示すように、リセット信号立上がるとCPU2は正常起動し、P−RUN信号をウォッチドッグタイマ3に出力し続ける。
【0023】
時刻t2において、CPU2は、図3(E)及び図2(F)に示すように、CPU2の内部のROMに記憶されたデータをEEPROM5に書込む。
【0024】
書込みが終了すると、時刻t3において、CPU2は、図3(C)に示すように、P−RUN信号を停止させる。ここまでの動作は、正常時の動作と同様である。P−RUN信号が停止すると、ウォッチドッグタイマ3が正常な場合には、ウォッチドッグタイマ3は、図2(B)に示したように、リセット信号ローレベルを出力し、CPU2はリセット状態とする。
【0025】
しかしながら、ウォッチドッグタイマ3が故障しているため、時刻t4においても、図3(B)に示すように、ウォッチドッグタイマ3はリセット信号を出力することなく、時刻t5においても、CPU2は、図3(C)に示すように、リセット信号の立上がりが出力されないため、P−RUN信号の出力停止を継続している。
【0026】
そして、図3(D)に示すように、P−RUN信号停止から規定時間以上経過した時点(時刻t6)において、CPU2は、警告ランプ駆動用ドライバ6にON信号ハイレベルを出力し、警告ランプ7を点灯させることによって、ウォッチドッグタイマが故障していることを知らせることが可能となる。
【0027】
次に、図4を用いて、本発明の一実施形態による電子制御装置の制御動作について説明する。
図4は、本発明の一実施形態による電子制御装置の制御動作を示すフローチャートである。
【0028】
電源スイッチ8により電源が投入され、リセット信号の立ち上がりを検出することにより、ステップs10において、CPU2は、リセットルーチンとして、初期設定プログラムを実行する。
【0029】
そして、ステップs20において、CPU2は、一定周期のP−RUN信号出力を開始する。
【0030】
次に、ステップs30において、CPU2は、EEPROM5の所定アドレスからデータ読み出しを行い、ステップs40において、CPU2は、その値が、例えば$55か否かを判定する。読み出したデータが$55の場合にはステップs100に進み、$55でない場合にはステップs50に進む。
【0031】
図2の時刻t2の時点では、EEPROM5のデータ初期値は$FFであるため、ステップs50において、CPU2は、EEPROM5の所定アドレスに$55の書き込みを行う。
【0032】
次に、ステップs60において、CPU2は、P−RUN信号を停止させ、規定時間中にウォッチドッグタイマによるリセットが発生するのを待つ。リセット信号の発生を監視するため、タイマを起動して、ステップs70において、CPU2は、タイマに+1を加算する。そして、ステップs70において、CPU2はタイマの値が規定値を超えたか否かを判定する。越えない場合にはステップs70に戻り、越えた場合にはステップs90に進。
【0033】
ここで正常動作として、規定時間以内に、ウォッチドッグタイマによるリセットが発生した場合は、破線に示すように、ステップs10に戻り、再度CPU2の初期設定(ステップs10),P−RUN信号出力(ステップs20),EEPROM5の所定データ読み出し(ステップs30),データ比較(ステップs40)を実行する。
【0034】
ステップs40の判定において、ここでは、EEPROM5読み出しデータは$55となっているので、ステップs100に進み、CPU2は、EEPROM5の所定データをクリアしてウォッチドッグタイマ故障診断判定制御は終了となる。なお、ここまでのフロー中のどの時点でCPUの暴走が起こった場合でも、CPU2はウォッチドッグタイマのリセット信号を検出できる構成となっている。
【0035】
一方、ウォッチドッグタイマの故障時は、ステップs60におけるP−RUN信号停止のあとリセットが発生しないため、ステップs70タイマの加算を繰り返し、ステップs80の判定により、規定値を超えた時点で、ステップs90において、CPU2は、警告ランプ7を点灯させてウォッチドッグタイマの故障を知らせ終了となる。
【0036】
なお、以上の説明では、データを書き込む記憶装置として、EEPROMを用いているが、RAMを用いることもできる。
【0037】
また、故障診断の結果は、警告ランプ7により表示しているが、他の制御装置や表示装置に出力するようにしてもよく、故障診断の結果を他の制御装置や表示装置に通信にて伝達することができる。また、故障診断の結果を記憶装置に記憶させておくこともできる。
【0038】
以上説明したように、本実施形態によれば、リセット信号の切り換えを行うことなくウォッチドッグタイマの診断をおこなうことができるため、診断中にCPUが暴走した場合でも、ウォッチドッグタイマが正常であれば、確実に復帰することができる。
【0039】
【発明の効果】
本発明によれば、リセット信号のポートへの切り換えを行うことなく、ウォッチドッグタイマの診断を行うことによって、診断中のCPU暴走時においても、ウォッチドッグタイマが正常に動作していれば復帰が可能となる。
【図面の簡単な説明】
【図1】本発明の一実施形態による電子制御装置の構成を示すシステム構成図である。
【図2】本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの正常時の動作を示すタイムチャートである。
【図3】本発明の一実施形態による電子制御装置におけるウォッチドッグタイマの異常時の動作を示すタイムチャートである。
【図4】本発明の一実施形態による電子制御装置の制御動作を示すフローチャートである。
【符号の説明】
1…電子制御装置
2…CPU
3…ウォッチドッグタイマ
4…電源回路
5…EEPROM
6…警告ランプ駆動用ドライバ
7…警告ランプ
8…電源スイッチ
9…電源
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic control device that detects CPU runaway by inputting a P-RUN signal output from a CPU to a watchdog timer.
[0002]
[Prior art]
As a conventional electronic control device, for example, as described in JP-A-5-216711, in order to diagnose a watchdog timer, a reset signal to the CPU is switched to a port only at the time of diagnosis, and diagnosis is performed. Things are known.
[0003]
[Patent Document 1]
JP-A-5-216711 [0004]
[Problems to be solved by the invention]
However, in the method described in Japanese Patent Laid-Open No. 5-216711, if a CPU runaway occurs when the reset signal is switched to the port side, the reset terminal of the CPU cannot be operated. There was a problem that would be impossible.
[0005]
The object of the present invention is to perform a diagnosis of the watchdog timer without switching the reset signal to the port, so that even if the CPU runs out of control during the diagnosis, if the watchdog timer is operating normally, the recovery is possible. An object of the present invention is to provide an electronic control device that can be used.
[0006]
[Means for Solving the Problems]
(1) In order to achieve the above object, the present invention provides an electronic control device having a microcomputer and a watchdog timer for detecting an abnormal state of the microcomputer based on a program running signal from the microcomputer. When the program running signal supplied from the microcomputer to the watchdog timer is stopped, the microcomputer determines whether or not the watchdog timer has reset the microcomputer. It is designed to diagnose the failure of the dog timer.
With this configuration, by diagnosing the watchdog timer without switching the reset signal to the port, it is possible to recover if the watchdog timer is operating normally even during a CPU runaway during diagnosis. Become.
[0007]
(2) In the above (1), preferably, the microcomputer uses the data written in the storage device to determine whether or not the watchdog timer has performed a reset operation. .
[0008]
(3) In the above (2), preferably, the data written to the storage device is written to the storage device before the program running signal is stopped.
[0009]
(4) In the above (1), preferably, the microcomputer determines whether or not the watchdog timer has performed a reset operation, and resets the microcomputer during a specified period after the program running signal is stopped. Judgment is based on not taking it.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the configuration and operation of an electronic control device according to an embodiment of the present invention will be described with reference to FIGS.
First, the system configuration of the electronic control device according to the present embodiment will be described with reference to FIG.
FIG. 1 is a system configuration diagram showing the configuration of an electronic control device according to an embodiment of the present invention.
[0011]
The electronic control device 1 includes a microcomputer (CPU) 2, a watchdog timer 3, a power supply circuit 4, an EEPROM 5, and a warning lamp driving driver 6. A power source 9, a power switch 8, and a warning lamp 7 are connected to the outside of the electronic control device 1.
[0012]
When the power switch 8 is turned on, a constant voltage is generated by the regulator of the power supply circuit 4 based on the voltage from the power supply 9 and supplied to the CPU 2, the watchdog timer 3, and the EEPROM 5. A reset signal RES output from the watchdog timer 3 is input to the CPU 2. A program running (P-RUN) signal output from the CPU 2 is input to the watchdog timer 3.
[0013]
Next, the normal operation of the watchdog timer in the electronic control apparatus according to the embodiment of the present invention will be described with reference to FIG.
FIG. 2 is a time chart showing the normal operation of the watchdog timer in the electronic control apparatus according to the embodiment of the present invention. In FIG. 2, the horizontal axis indicates time. FIG. 2A shows the output voltage of the power supply circuit 4. FIG. 2B shows the reset signal RES output from the watchdog timer 3. FIG. 2C shows a P-RUN signal output from the watchdog timer 3. FIG. 2D shows the operating state of the warning lamp 7. FIG. 2E shows the contents of ROM data inside the CPU 2. FIG. 2F shows the data stored in the EEPROM 5.
[0014]
As shown in FIG. 2A, when the power switch 8 is turned on, the power supply circuit 4 supplies a constant power supply voltage for control to the CPU 2, the watchdog timer 3, and the EEPROM 5 by a regulator. As shown in FIG. 2B, the watchdog timer 3 is in a period from the time when the control constant power supply voltage value exceeds a predetermined value until the oscillator output to the CPU is stabilized (before time t1). Reset signal low level is output.
[0015]
Next, at time t1, as shown in FIG. 2B, when the reset signal rises, the CPU 2 starts normally and continues to output the P-RUN signal to the watchdog timer 3.
[0016]
At time t2, as shown in FIGS. 2E and 2F, the CPU 2 writes the data (in this example, data “$ 55”) stored in the ROM inside the CPU 2 into the EEPROM 5. .
[0017]
When the writing ends, at time t3, the CPU 2 stops the P-RUN signal as shown in FIG. Thereby, at time t4, the watchdog timer 3 outputs a reset signal low level as shown in FIG. 2B, and the CPU 2 is in a reset state.
[0018]
At time t5, when the reset signal rises again as shown in FIG. 2 (B), the CPU 2 returns to normal again and starts outputting the P-RUN signal as shown in FIG. 2 (C).
[0019]
At time t6, the CPU 2 reads the data stored in the EEPROM 5 written before the reset, and compares it with the ROM data that is the writing source in the CPU 2. As a result of the comparison, when the data match, at time t7, as shown in FIG. 2F, the write data in the EEPROM 5 is cleared (set to $ FF), and the operation diagnosis of the watchdog timer 3 is finished. Thus, it can be diagnosed that the watchdog timer 3 is operating normally.
[0020]
Next, the operation at the time of abnormality of the watchdog timer in the electronic control device according to the embodiment of the present invention will be described with reference to FIG.
FIG. 3 is a time chart showing the operation when the watchdog timer is abnormal in the electronic control device according to the embodiment of the present invention. The vertical and horizontal axes in FIG. 3 are the same as those in FIG.
[0021]
As shown in FIG. 3A, when the power switch 8 is turned on, the power supply circuit 4 supplies a constant power supply voltage for control to the CPU 2, the watchdog timer 3, and the EEPROM 5 by a regulator. As shown in FIG. 3 (B), the watchdog timer 3 is in a period from when the constant power supply voltage for control exceeds a predetermined value until the oscillator output to the CPU is stabilized (before time t1). Reset signal low level is output.
[0022]
Next, at time t1, as shown in FIG. 3B, when the reset signal rises, the CPU 2 starts normally and continues to output the P-RUN signal to the watchdog timer 3.
[0023]
At time t2, the CPU 2 writes the data stored in the ROM inside the CPU 2 to the EEPROM 5, as shown in FIGS. 3 (E) and 2 (F).
[0024]
When the writing is completed, at time t3, the CPU 2 stops the P-RUN signal as shown in FIG. The operation so far is the same as the normal operation. When the P-RUN signal is stopped, if the watchdog timer 3 is normal, the watchdog timer 3 outputs a reset signal low level as shown in FIG. 2B, and the CPU 2 enters a reset state. .
[0025]
However, since the watchdog timer 3 is out of order, the watchdog timer 3 does not output a reset signal at time t4 as shown in FIG. As indicated by 3 (C), since the rising edge of the reset signal is not output, the output stop of the P-RUN signal is continued.
[0026]
Then, as shown in FIG. 3D, when a specified time or more has elapsed since the P-RUN signal stopped (time t6), the CPU 2 outputs an ON signal high level to the warning lamp driving driver 6, and the warning lamp By illuminating 7, it is possible to inform that the watchdog timer has failed.
[0027]
Next, the control operation of the electronic control device according to the embodiment of the present invention will be described with reference to FIG.
FIG. 4 is a flowchart showing a control operation of the electronic control device according to the embodiment of the present invention.
[0028]
When power is turned on by the power switch 8 and the rising edge of the reset signal is detected, in step s10, the CPU 2 executes an initial setting program as a reset routine.
[0029]
In step s20, the CPU 2 starts outputting a P-RUN signal with a constant period.
[0030]
Next, in step s30, the CPU 2 reads data from a predetermined address of the EEPROM 5, and in step s40, the CPU 2 determines whether the value is, for example, $ 55. If the read data is $ 55, the process proceeds to step s100, and if it is not $ 55, the process proceeds to step s50.
[0031]
Since the data initial value of the EEPROM 5 is $ FF at time t2 in FIG. 2, the CPU 2 writes $ 55 to a predetermined address of the EEPROM 5 in step s50.
[0032]
Next, in step s60, the CPU 2 stops the P-RUN signal and waits for a reset by the watchdog timer to occur during a specified time. In order to monitor the generation of the reset signal, a timer is started, and in step s70, the CPU 2 adds +1 to the timer. In step s70, the CPU 2 determines whether or not the timer value has exceeded a specified value. When it does not exceed, the process returns to step s70, and when it exceeds, the process proceeds to step s90.
[0033]
Here, as a normal operation, when a reset by the watchdog timer occurs within a specified time, as shown by a broken line, the process returns to step s10, and the CPU 2 is initialized again (step s10), and the P-RUN signal output (step s20), predetermined data reading from the EEPROM 5 (step s30), and data comparison (step s40) are executed.
[0034]
In the determination of step s40, since the EEPROM 5 read data is $ 55 here, the process proceeds to step s100, where the CPU 2 clears the predetermined data in the EEPROM 5 and the watchdog timer failure diagnosis determination control ends. It should be noted that the CPU 2 is configured to be able to detect a watchdog timer reset signal at any point in the flow so far when the CPU runs away.
[0035]
On the other hand, when the watchdog timer fails, since no reset occurs after the P-RUN signal is stopped in step s60, the addition of the timer in step s70 is repeated, and when the prescribed value is exceeded by the determination in step s80, step s90 Then, the CPU 2 turns on the warning lamp 7 to notify the failure of the watchdog timer and the process is ended.
[0036]
In the above description, an EEPROM is used as a storage device for writing data, but a RAM can also be used.
[0037]
Moreover, although the result of failure diagnosis is displayed by the warning lamp 7, it may be output to another control device or display device, and the result of failure diagnosis can be communicated to another control device or display device. Can communicate. Moreover, the result of failure diagnosis can be stored in the storage device.
[0038]
As described above, according to this embodiment, since the watchdog timer can be diagnosed without switching the reset signal, even if the CPU runs out of control during the diagnosis, the watchdog timer should be normal. If it is, it can return reliably.
[0039]
【The invention's effect】
According to the present invention, the diagnosis of the watchdog timer is performed without switching the reset signal to the port, so that even if the CPU runs out of control during the diagnosis, the watchdog timer can be restored if it is operating normally. It becomes possible.
[Brief description of the drawings]
FIG. 1 is a system configuration diagram illustrating a configuration of an electronic control device according to an embodiment of the present invention.
FIG. 2 is a time chart showing an operation of the watchdog timer in a normal state in the electronic control device according to the embodiment of the present invention.
FIG. 3 is a time chart showing an operation when the watchdog timer is abnormal in the electronic control device according to the embodiment of the present invention;
FIG. 4 is a flowchart showing a control operation of the electronic control device according to the embodiment of the present invention.
[Explanation of symbols]
1 ... Electronic control unit 2 ... CPU
3 ... Watchdog timer 4 ... Power supply circuit 5 ... EEPROM
6 ... Warning lamp driver 7 ... Warning lamp 8 ... Power switch 9 ... Power supply

Claims (4)

マイクロコンピュータと、このマイクロコンピュータからのプログラムランニング信号に基づいて、前記マイクロコンピュータの異常状態を検出するウォッチドッグタイマを有する電子制御装置において、
前記マイクロコンピュータは、前記マイクロコンピュータから前記ウォッチドッグタイマに供給されるプログラムランニング信号が停止した際に、前記ウォッチドッグタイマが前記マイクロコンピュータに対してリセット動作をしたか否かを判定することでウォッチドッグタイマの故障診断をおこなうこと特徴とする電子制御装置。
In an electronic control device having a microcomputer and a watchdog timer for detecting an abnormal state of the microcomputer based on a program running signal from the microcomputer,
When the program running signal supplied from the microcomputer to the watchdog timer is stopped, the microcomputer determines whether or not the watchdog timer has reset the microcomputer. An electronic control device characterized by performing failure diagnosis of a dog timer.
請求項1記載の電子制御装置において、
前記マイクロコンピュータは、前記ウォッチドッグタイマがリセット動作をしたかしないかの判定を、記憶装置に書き込んだデータを用いて判断することを特徴とする電子制御装置。
The electronic control device according to claim 1,
The electronic control device, wherein the microcomputer determines whether or not the watchdog timer has performed a reset operation using data written in a storage device.
請求項2記載の電子制御装置において、
前記記憶装置に書き込んだデータは、前記プログラムランニング信号の停止前に前記記憶装置に書き込むことを特徴とする電子制御装置。
The electronic control device according to claim 2,
The electronic control device, wherein the data written to the storage device is written to the storage device before the program running signal is stopped.
請求項1記載の電子制御装置において、
前記マイクロコンピュータは、前記ウォッチドッグタイマがリセット動作をしたかしないかの判定を、前記マイクロコンピュータがプログラムランニング信号の停止後の規定期間中にリセットがかからないことで判断することを特徴とする電子制御装置。
The electronic control device according to claim 1,
The microcomputer determines whether or not the watchdog timer has performed a reset operation by determining that the microcomputer does not reset during a specified period after the stop of the program running signal. apparatus.
JP2003187242A 2003-06-30 2003-06-30 Electronic control device Pending JP2005025290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003187242A JP2005025290A (en) 2003-06-30 2003-06-30 Electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003187242A JP2005025290A (en) 2003-06-30 2003-06-30 Electronic control device

Publications (1)

Publication Number Publication Date
JP2005025290A true JP2005025290A (en) 2005-01-27

Family

ID=34186157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003187242A Pending JP2005025290A (en) 2003-06-30 2003-06-30 Electronic control device

Country Status (1)

Country Link
JP (1) JP2005025290A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996927B2 (en) 2011-09-14 2015-03-31 Keihin Corporation Electronic control device with watchdog timer and processing unit to diagnose malfunction of watchdog timer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996927B2 (en) 2011-09-14 2015-03-31 Keihin Corporation Electronic control device with watchdog timer and processing unit to diagnose malfunction of watchdog timer

Similar Documents

Publication Publication Date Title
CN113335208A (en) Reverse image offline configuration method and system, storage medium and computer equipment
JPS58201154A (en) Mode monitoring device of microcomputer
CN113189907A (en) Vehicle-mounted system recovery method and device
JP2005041273A (en) Diagnostic data collection apparatus and method
JP7186049B2 (en) POWER SUPPLY MONITORING DEVICE AND POWER SUPPLY MONITORING METHOD
CN116394959A (en) Automobile body control domain and control method
JP5582748B2 (en) Electronic control device for vehicle
JP2005025290A (en) Electronic control device
JPH11167505A (en) Electronic control unit
JP4254577B2 (en) Control device
JP3915411B2 (en) Electronic control device for vehicle
JP2018134964A (en) Electronic control unit for automobile
CN100378676C (en) Method and base chip for monitoring the operation of a microcontroller unit
JP2006253921A (en) Network system for vehicle
JP2003294129A (en) Electronic control device for vehicle
JP2002002419A (en) Electronic control unit for vehicles
JP7596934B2 (en) Fault Detection Method
JP2016126692A (en) Electronic control device
JP2015058885A (en) Automobile electronic control device
KR20130042317A (en) Method for diagnosing engine off timer
CN103287357A (en) Vehicle control device, vehicle control system and vehicle control method
JP2010049367A (en) Control device and control method therefor
JP2000035923A (en) Abnormality detecting method and abnormality detecting device
KR20130003976A (en) Electronic control power steering electronic control unit and running reset processing method using the same
JP6887277B2 (en) Electronic control device for automobiles

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050617

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080205

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080610