JP5438667B2 - Microprocessor intermittent error detection method - Google Patents
Microprocessor intermittent error detection method Download PDFInfo
- Publication number
- JP5438667B2 JP5438667B2 JP2010285821A JP2010285821A JP5438667B2 JP 5438667 B2 JP5438667 B2 JP 5438667B2 JP 2010285821 A JP2010285821 A JP 2010285821A JP 2010285821 A JP2010285821 A JP 2010285821A JP 5438667 B2 JP5438667 B2 JP 5438667B2
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- task
- counter
- intermittent
- count value
- 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 - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Description
本発明は、制御装置におけるマイクロプロセッサの電源電圧の瞬時低下による間欠異常を検出する方法に関するものである。 The present invention relates to a method for detecting an intermittent abnormality caused by an instantaneous drop in the power supply voltage of a microprocessor in a control device.
従来、マイクロプロセッサを用いた制御装置では、ウォッチドッグタイマ回路を用いてマイクロプロセッサの異常を監視している。すなわち、マイクロプロセッサが不正な状態に陥り、リセット信号が規則的に送信されなくなった場合(タイムアウト)に、異常検出信号を発生し規定の処置を実行する。規定の処置とは、システムのリセットや電源切断によるシステムの強制停止、あるいは電源切断後の再投入等である。 Conventionally, in a control device using a microprocessor, an abnormality of the microprocessor is monitored using a watch dog timer circuit. That is, when the microprocessor enters an illegal state and the reset signal is not transmitted regularly (timeout), an abnormality detection signal is generated and a prescribed procedure is executed. The prescribed measures include a system reset, a forced system stop by power-off, or a power-on after power-off.
例えば特許文献1では、ウォッチドッグタイマを用いたプロセッサの異常監視方法として、ウォッチドッグタイマのカウンタは、プロセッサがリセット信号を発生する毎にカウントを初期値から開始し、そのカウント値が第1設定値に到達した時に第1タイムアウト信号を発生し、第1タイムアウト信号によって割り込み信号を生成し、その割り込み信号のタイミングでカウントを開始し第2設定値に達した時に第2タイムアウト信号からアラーム信号を発生する方法が提示されている。
For example, in
この方法によれば、第1設定値を最も長い処理時間を有するタスクに依存して設定する必要がなく、例えば最も実行頻度の多いタスクの処理時間を考慮して設定することができるため、ソフトウェアに依存することなくプロセッサの異常を速やかに検出することができる。 According to this method, it is not necessary to set the first set value depending on the task having the longest processing time, and for example, the setting time can be set in consideration of the processing time of the task with the highest execution frequency. It is possible to detect a processor abnormality promptly without depending on.
ところで、マイクロプロセッサは、処理が高負荷になると消費電力が増大し、電源電圧が瞬時低下する場合がある。制御装置においては、電源電圧低下の監視を行っているが、上記のようなマイクロプロセッサの負荷状態による電源電圧の瞬時低下については、異常とは認識せず、検出しないようにしていた。 By the way, in the microprocessor, when the processing becomes a heavy load, the power consumption increases, and the power supply voltage may drop instantaneously. In the control device, the power supply voltage drop is monitored. However, the instantaneous power supply voltage drop caused by the load state of the microprocessor as described above is not recognized as an abnormality and is not detected.
このように、従来の異常検出方法では、マイクロプロセッサの負荷状態による電源電圧の瞬時低下が発生した場合、完全な電圧低下ではないためマイクロプロセッサは間欠的に動作できており、ウォッチドッグタイマが働かない場合があった。その結果、マイクロプロセッサが、例えばタスクAは正常に実行しているがタスクBは正常に実行していないという間欠異常の状態に陥っていても、検出できていない可能性があった。 As described above, in the conventional abnormality detection method, when the power supply voltage instantaneously drops due to the load state of the microprocessor, the microprocessor can operate intermittently because it is not a complete voltage drop, and the watchdog timer works. There was no case. As a result, for example, there is a possibility that even if the microprocessor falls into an intermittent abnormality state where task A is normally executed but task B is not normally executed, it cannot be detected.
本発明は、上記のような課題を解決するためになされたものであり、マイクロプロセッサがすべてのタスクを正常に実行していることを容易に監視でき、マイクロプロセッサの間欠異常を簡単に検出することが可能なマイクロプロセッサの間欠異常検出方法を提供することを目的とする。 The present invention has been made to solve the above-described problems, and can easily monitor that the microprocessor is executing all tasks normally, and can easily detect intermittent abnormalities in the microprocessor. An object of the present invention is to provide a method for detecting intermittent abnormality of a microprocessor.
本発明に係るマイクロプロセッサの間欠異常検出方法は、第1カウンタを有し、実行の
優先度が最も高いタスク1から最も低いタスクnを含むn個(n≧2)のタスク及びウォッチドッグタイマリセットタスクを実行するマイクロプロセッサと、第2カウンタを有するウォッチドッグタイマ回路を含み、マイクロプロセッサがリセット信号を発生する毎に第2カウンタをリセットし、第2カウンタのカウント値が設定値に達したときに規定の処置を実行する異常検出回路を備えた制御装置において、n個のタスクのいずれかが正常に実行されなかったことを検出するマイクロプロセッサの間欠異常検出方法であって、第1カウンタのカウント値の初期値をタスク1に与え、n個のタスクを優先度の高い順に実行すると共に該カウント値を後段のタスクに順次送っていき、タスクnにおいて該カウント値をカウントアップして次の演算周期のタスク1に与え、以下同様の処理を繰り返す第1の工程と、第1の工程における第1カウンタのカウント値を監視し、今回演算周期と前回演算周期の第1カウンタのカウント値に変化がなかった場合に該マイクロプロセッサに間欠異常が発生したと判断する第2の工程を含むものである。
A method for detecting an intermittent abnormality of a microprocessor according to the present invention includes a first counter, n tasks (n ≧ 2) including
本発明に係るマイクロプロセッサの間欠異常検出方法によれば、n個のタスクを優先度の高い順に実行すると共に第1カウンタのカウント値を後段のタスクに順次送っていき、タスクnにおいて該カウント値をカウントアップして次の演算周期のタスク1に与える処理を繰り返しながら、今回演算周期と前回演算周期の第1カウンタのカウント値を比較するという簡単な方法で、マイクロプロセッサがすべてのタスクを正常に実行していることを容易に監視でき、マイクロプロセッサの間欠異常を簡単に検出することができる。
According to the intermittent abnormality detection method for a microprocessor according to the present invention, n tasks are executed in descending order of priority, and the count value of the first counter is sequentially sent to the subsequent task. The microprocessor normalizes all tasks in a simple way by comparing the count value of the first counter of the previous calculation cycle and the previous calculation cycle while repeating the process of counting up and giving to
実施の形態1.
以下に、本発明の実施の形態1に係るマイクロプロセッサの間欠異常検出方法について、図面に基づいて説明する。図1は、本実施の形態1におけるマイクロプロセッサを用いた制御装置の構成を示す概略図、図2は本実施の形態1におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。なお、図中、同一、相当部分には同一符号を付している。
Hereinafter, an intermittent abnormality detection method for a microprocessor according to
図1に示すように、本実施の形態1における制御装置(以下、本装置と略す)は、マイ
クロプロセッサ1と異常検出回路2を備えている。本装置のマイクロプロセッサ1は、第1カウンタである動作カウンタ(図示せず)を有し、実行の優先度が最も高いタスク1から最も低いタスクnを含むn個(n≧2)のタスクと、ウォッチドッグタイマリセットタスクを実行するものである。
As shown in FIG. 1, the control device (hereinafter abbreviated as “this device”) in the first embodiment includes a
また、異常検出回路2は、第2カウンタ(以下カウンタと略す)を有するウォッチドッグタイマ回路21を含み、マイクロプロセッサ1がウォッチドッグタイマリセット信号(以下、リセット信号と略す)を発生する毎に、ウォッチドッグタイマ回路21のカウンタをリセットする。異常検出回路2は、マイクロプロセッサ1からウォッチドッグタイマ回路21に規則的にリセット信号が送信されず、カウンタのカウント値が設定値に達したときに、規定の処置を実行する。規定の処理とは、例えばマイクロプロセッサ停止信号及び故障警報信号を生成し、それらを出力する処理である。
Further, the
異常検出回路2から出力されたマイクロプロセッサ停止信号を受信したマイクロプロセッサ1は、強制停止処理が実行される。また、異常検出回路2の警報出力回路22から出力された故障警報信号を受信した他装置3は、本装置のマイクロプロセッサ1の異常を認識する。なお、他装置3とは、他の制御装置または計算機であり、本装置が例えば発電所のタービン制御装置である場合は、他装置3はボイラ制御装置、シーケンス制御装置またはプラント制御計算機等が該当する。また、本装置が例えば情報通信システムのサーバである場合には、他装置3はクライアントのパーソナルコンピュータが該当する。あるいはこれらの本装置と他装置3は逆であってもよい。
The
本実施の形態1に係るマイクロプロセッサの間欠異常検出方法は、以下に説明する第1の工程と第2の工程を含み、マイクロプロセッサ1の負荷状態に起因する電源電圧の瞬時低下により、n個のタスクのいずれかが正常に実行されなかったことを容易な方法で検出するものである。
The method for detecting an intermittent abnormality of a microprocessor according to the first embodiment includes a first process and a second process described below, and n is performed by instantaneous reduction of the power supply voltage caused by the load state of the
まず、第1の工程では、動作カウンタのカウント値の初期値をタスク1に与え、n個のタスクを優先度の高い順に実行すると共に、該カウント値を後段のタスクに順次送っていき、タスクnにおいて該カウント値をカウントアップ(+1)する。このカウントアップしたカウント値を次の演算周期のタスク1に与え、以下同様の処理を繰り返す。なお、動作カウンタのカウント値は、動作カウンタ信号として後段のタスクに送信される。
First, in the first step, the initial value of the count value of the operation counter is given to
続いて第2の工程では、第1の工程における動作カウンタのカウント値を監視し、今回演算周期と前回演算周期の動作カウンタのカウント値に変化がなかった場合に、該マイクロプロセッサ1に間欠異常が発生したと判断する。本実施の形態1では、この第2の工程をウォッチドッグタイマリセットタスクにおいて実行するようにし、ウォッチドッグタイマリセットタスクは、今回演算周期と前回演算周期の動作カウンタのカウント値に変化があった場合に、異常検出回路2のウォッチドッグタイマ回路21にリセット信号を送信する。
Subsequently, in the second step, the count value of the operation counter in the first step is monitored, and if there is no change in the count value of the operation counter in the current calculation cycle and the previous calculation cycle, the
本実施の形態1に係るマイクロプロセッサの間欠異常検出方法について、図2のフローチャートを用いて詳細に説明する。マイクロプロセッサ1は、ステップ10(S10)のスタート処理に続いて、ステップ11(S11)の初期化処理を実行する。この初期化処理では、動作カウンタのカウント値の初期値として、動作カウンタ信号「LA0」に「ゼロ」を代入する。
The method for detecting an intermittent abnormality of the microprocessor according to the first embodiment will be described in detail with reference to the flowchart of FIG. The
次に、ステップ12(S12)において、ウォッチドッグタイマリセットタスクを実行する。なお、初回起動時は、S12において、ステップ121(S121)は実行せず、動作カウンタの初期値となる動作カウンタ信号「LA0」をステップ13(S13)のタ
スク1に送信する。
Next, in step 12 (S12), a watchdog timer reset task is executed. At the time of initial activation, in step S12, step 121 (S121) is not executed, and the operation counter signal “LA0” serving as the initial value of the operation counter is transmitted to
S13では、優先度1位のタスク1を実行すると共に、S12から送信された動作カウンタ信号「LA0」を「LA1」に代入し、この「LA1」を次のステップ14(S14)のタスク2へ送信する。続いてS14では、優先度2位のタスク2を実行すると共に、S13のタスク1から送信された動作カウンタ信号「LA1」を「LA2」に代入し、後段のタスク(図示せず)へ送信する。以下同様に、優先度の高い順にすべてのタスクを実行すると共に、動作カウンタ信号を送信していく。
In S13,
さらに、ステップ15(S15)のタスクnにおいて、優先度最下位のタスクnを実行すると共に、前段タスクであるタスク(n−1)から送信された動作カウンタ信号「LA(n−1)」のカウント値に対して、+1カウントアップする。このカウントアップしたカウント値を、更新された動作カウンタ信号「LAn」として、S12のウォッチドッグタイマリセットタスクへ送信する。 Further, in task n in step 15 (S15), task n having the lowest priority is executed, and operation counter signal “LA (n−1)” transmitted from task (n−1), which is the preceding task, is executed. +1 count up with respect to the count value. This counted up count value is transmitted to the watchdog timer reset task in S12 as an updated operation counter signal “LAn”.
S12のウォッチドッグタイマリセットタスクでは、S121において、今回演算周期と前回演算周期の動作カウンタのカウント値を比較する。今回演算周期と前回演算周期の動作カウンタ信号「LAn」を比較し、それらの値に変化があった場合(YES)、すべてのタスクが正常に実行されたものと判断し、異常検出回路2のウォッチドッグタイマ回路21にリセット信号を送信する。また、S12のウォッチドッグタイマリセットタスクは、更新された動作カウンタ信号「LAn」を「LA0」に代入して次の演算周期のタスク1(S13)に与える。
In the watchdog timer reset task in S12, the count value of the operation counter in the current calculation cycle and the previous calculation cycle is compared in S121. The operation counter signal “LAn” of the current calculation cycle and the previous calculation cycle are compared, and when those values are changed (YES), it is determined that all tasks are executed normally, and the abnormality detection circuit 2 A reset signal is transmitted to the
一方、異常検出回路2では、ステップ20(S20)のスタート処理後、ステップ21(S21)においてウォッチドッグタイマ回路21のカウンタをカウントアップ(+1)する。さらに、ステップ22(S22)において、マイクロプロセッサ1からリセット信号が送信された場合(YES)、ステップ23(S23)でウォッチドッグタイマ回路21のカウンタをリセット(0クリア)し、ステップ24(S24)に進む。
On the other hand, the
また、S22において、マイクロプロセッサ1からリセット信号が所定期間送信されない場合(NO)、S24においてウォッチドッグタイマ回路21のカウンタがオーバーフローか否かを確認する。オーバーフローの場合(YES)には、ステップ25(S25)及びステップ26(S26)を実行する。S25ではマイクロプロセッサ停止信号を生成、出力し、S26では故障警報信号を生成し、他装置3に対して故障警報をデジタル出力(DO1)する。S25でマイクロプロセッサ停止信号が出力されると、ステップ16(S16)においてマイクロプロセッサ1は強制停止される。
If the reset signal is not transmitted from the
次に、マイクロプロセッサ1に間欠異常が発生した場合の動作について説明する。例えばS13のタスク1を実行時にマイクロプロセッサ1の電源電圧の瞬時低下が発生し、タスク1が正常に実行されなかった場合、タスク1ではS14のタスク2へ送信する動作カウンタ信号「LA1」の値を更新することができない。このため、前回演算周期と同じ動作カウンタ信号「LA1」が次のタスク2に送信される。タスク2は、前回演算周期から更新されていない動作カウンタ信号「LA1」を「LA2」に代入し、後段のタスクへ送信する。
Next, an operation when an intermittent abnormality occurs in the
これにより、S15のタスクnに送信されてきた動作カウンタ信号「LA(n−1)」は、前回演算周期から更新されていないものとなる。この値に+1カウントアップしたカウント値は、前回演算周期と等しいものとなる。従って、S12のウォッチドッグタイマリセットタスクのS121において、今回演算周期と前回演算周期の「LAn」を比較すると、それらの値に変化がないため(NO)、異常検出回路2に対してリセット信号を送
信しない。
Thus, the operation counter signal “LA (n−1)” transmitted to the task n in S15 is not updated from the previous calculation cycle. The count value incremented by 1 to this value is equal to the previous calculation cycle. Therefore, in S121 of the watchdog timer reset task in S12, when the current calculation cycle and the previous calculation cycle “LAn” are compared, there is no change in the values (NO), so a reset signal is sent to the
このような状態が所定期間継続すると、異常検出回路2では、S22においてリセット信号が受信されない状態が続き、S24においてウォッチドッグタイマ回路21のカウンタがオーバーフローする。これにより、S25でマイクロプロセッサ停止信号が出力され、S26で故障警報が出力される。これらの結果、他装置3はマイクロプロセッサ1に異常が発生したことを認識し、マイクロプロセッサ1はS16の強制停止処理により異常状態での動作が停止される。
When such a state continues for a predetermined period, the
図3は、本実施の形態1の比較例である従来のウォッチドッグタイマを用いたマイクロプロセッサの異常検出方法を示している。図3中、マイクロプロセッサ1で実行される処理S10〜S16、及び異常検出回路2で実行される処理S20〜S26は、基本的には図2に示す本実施の形態1におけるマイクロプロセッサの間欠異常検出方法と同じ処理である。
FIG. 3 shows a microprocessor abnormality detection method using a conventional watchdog timer, which is a comparative example of the first embodiment. In FIG. 3, the processes S10 to S16 executed by the
ただし、従来の異常検出方法では、S12のウォッチドッグタイマリセットタスクは定周期でリセット信号を出力するもので、他の各タスクにおいて正常処理が実行されたか否かを判断するものではない。マイクロプロセッサ1のウォッチドッグタイマリセットタスク(S12)からリセット信号が出力されず、その結果、異常検出回路2内のウォッチドッグタイマのカウンタがオーバーフローすることで(S24)、マイクロプロセッサ1に異常が発生したと判断する。
However, in the conventional abnormality detection method, the watchdog timer reset task in S12 outputs a reset signal at a fixed period, and does not determine whether normal processing has been executed in other tasks. The reset signal is not output from the watchdog timer reset task (S12) of the
従来の異常検出方法では、マイクロプロセッサ1に電源電圧の瞬時低下が発生し、例えばS14のタスク2が正常に実行されなかったとしても、その後直ぐに電源電圧が回復して以降のタスクが順次実行され、最終的にS15のタスクnが実行されると、S12のウォッチドッグタイマリセットタスクは異常検出回路2にリセット信号を送信する。このため、ウォッチドッグタイマが働かず、マイクロプロセッサ1の間欠異常は検出されない。
In the conventional abnormality detection method, an instantaneous drop in the power supply voltage occurs in the
以上のように、本実施の形態1に係るマイクロプロセッサの間欠異常検出方法によれば、動作カウンタのカウント値の初期値をタスク1に与え、n個のタスクを優先度の高い順に実行すると共に、該カウント値を後段のタスクに順次送っていき、タスクnにおいて該カウント値をカウントアップして、次の演算周期のタスク1に与え、以下同様の処理を繰り返す第1の工程と、第1の工程における動作カウンタのカウント値を監視し、今回演算周期と前回演算周期の動作カウンタのカウント値に変化がなかった場合に、該マイクロプロセッサ1に間欠異常が発生したと判断する第2の工程により、マイクロプロセッサ1がすべてのタスクを正常に実行していることを容易に監視でき、マイクロプロセッサ1の間欠異常を簡単に検出することができる。
As described above, according to the intermittent abnormality detection method for a microprocessor according to the first embodiment, the initial value of the count value of the operation counter is given to
実施の形態2.
図4は、本発明の実施の形態2におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図4中、図2と同一、相当部分には同一符号を付している。上記実施の形態1では、動作カウンタのカウント値の監視(第2の工程)をウォッチドッグタイマリセットタスク(S12)において実行したが、本実施の形態2では、タスクnの後段の動作カウンタ監視タスクにおいて実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
FIG. 4 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the second embodiment of the present invention. In FIG. 4, the same reference numerals are assigned to the same and corresponding parts as in FIG. In the first embodiment, the count value of the operation counter is monitored (second step) in the watchdog timer reset task (S12). However, in the second embodiment, the operation counter monitoring task in the subsequent stage of task n is performed. Is to be executed. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.
本実施の形態2では、図4に示すように、タスクnの後段のステップ17(S17)の動作カウンタ監視タスクにおいて、動作カウンタのカウント値を監視する。なお、S12のウォッチドッグタイマリセットタスクは、従来方法(図3参照)と同様に、異常検出回路2に対して定周期でリセット信号を出力する。
In the second embodiment, as shown in FIG. 4, the count value of the operation counter is monitored in the operation counter monitoring task in step 17 (S17) subsequent to task n. Note that the watchdog timer reset task in S12 outputs a reset signal at a constant cycle to the
S13のタスク1は、S11の初期化処理において初期化された動作カウンタのカウント値「LA1」を使用して処理を開始する。S17の動作カウンタ監視タスクでは、初回演算周期にはステップ171(S171)を実行せず、2回目以降の演算周期において、S171で今回演算周期と前回演算周期のカウント値を比較する。
すなわち、今回演算周期と前回演算周期の動作カウンタ信号「LAn」を比較し、それらの値に変化があった場合(YES)、すべてのタスクが正常に実行されたものとし、動作カウンタ監視タスクは異常検出回路2のウォッチドッグタイマ回路21にリセット信号を送信する。また、S171において、今回演算周期と前回演算周期の「LAn」に変化がなかった場合(NO)、異常検出回路2に対してリセット信号を送信しない。
That is, the operation counter signal “LAn” of the current calculation cycle and the previous calculation cycle are compared, and when those values change (YES), it is assumed that all tasks are executed normally, and the operation counter monitoring task is A reset signal is transmitted to the
本実施の形態2によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタ監視タスク(S17)によりマイクロプロセッサ1の間欠異常を自己診断するようにしたので、異常検出精度がより高くなる効果がある。
According to the second embodiment, the intermittent abnormality of the
実施の形態3.
図5は、本発明の実施の形態3におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図5中、図4と同一、相当部分には同一符号を付している。本実施の形態3では、上記実施の形態2と同様に、動作カウンタのカウント値の監視(第2の工程)をS17の動作カウンタ監視タスクにおいて実行する。さらに、S17の動作カウンタ監視タスクでマイクロプロセッサ1に間欠異常が発生したと判断した場合に、該マイクロプロセッサ1を強制停止する自己診断回路を備えたものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
FIG. 5 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the third embodiment of the present invention. In FIG. 5, the same reference numerals are assigned to the same and corresponding parts as in FIG. 4. In the third embodiment, as in the second embodiment, monitoring of the count value of the operation counter (second step) is executed in the operation counter monitoring task in S17. Further, a self-diagnosis circuit for forcibly stopping the
本実施の形態3では、図5に示すように、S17の動作カウンタ監視タスクにおいて動作カウンタのカウント値を監視し、2回目以降の演算周期において、S171で今回演算周期と前回演算周期のカウント値を比較する。それらの値に変化があった場合(YES)、すべてのタスクが正常に実行されたものとし、異常検出回路2のウォッチドッグタイマ回路21にリセット信号を送信する。また、それらの値に変化がなかった場合(NO)、マイクロプロセッサ1に間欠異常が発生したと判断し、自己診断回路によりマイクロプロセッサ1を強制停止する(S16)。
In the third embodiment, as shown in FIG. 5, the count value of the operation counter is monitored in the operation counter monitoring task of S17, and in the second and subsequent calculation cycles, the count value of the current calculation cycle and the previous calculation cycle in S171. Compare If these values have changed (YES), it is assumed that all tasks have been executed normally, and a reset signal is transmitted to the
本実施の形態3によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタ監視タスク(S17)によりマイクロプロセッサ1の間欠異常を自己診断し、間欠異常が発生したと判断した場合に該マイクロプロセッサ1を強制停止する自己診断回路を備えることにより、異常発生時に迅速且つ確実にマイクロプロセッサ1を停止することができる。
According to the third embodiment, when an intermittent abnormality of the
実施の形態4.
図6は、本発明の実施の形態4におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図6中、図4と同一、相当部分には同一符号を付している。本実施の形態4では、動作カウンタのカウント値を他装置3にアナログ信号出力し、動作カウンタのカウント値の監視(第2の工程)を他装置3において実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
FIG. 6 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the fourth embodiment of the present invention. In FIG. 6, the same reference numerals are assigned to the same and corresponding parts as in FIG. In the fourth embodiment, the count value of the operation counter is output as an analog signal to the
本実施の形態4では、図6に示すように、S15のタスクnにおける動作カウンタのカウント値を他装置3にアナログ信号出力(図中AO1)する。他装置3は、動作カウンタのカウント値を監視し、今回演算周期と前回演算周期のカウント値に変化がなかった場合に、本装置のマイクロプロセッサ1に間欠異常が発生したと判断する。
In the fourth embodiment, as shown in FIG. 6, the count value of the operation counter in task n in S15 is output as an analog signal (AO1 in the figure) to the
本実施の形態4によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常を他装置3で検出することが可能である。
According to the fourth embodiment, in addition to the conventional watchdog timer reset task (S12), the count value of the operation counter is monitored by the
実施の形態5.
図7は、本発明の実施の形態5におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図7中、図6と同一、相当部分には同一符号を付している。本実施の形態5は、上記実施の形態3(図5)と実施の形態4(図6)を組み合わせたものであり、動作カウンタのカウント値の監視(第2の工程)を、S17の動作カウンタ監視タスクと他装置3において実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
FIG. 7 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the fifth embodiment of the present invention. In FIG. 7, the same reference numerals are assigned to the same and corresponding parts as in FIG. The fifth embodiment is a combination of the third embodiment (FIG. 5) and the fourth embodiment (FIG. 6), and the count value of the operation counter (second step) is monitored by the operation of S17. The counter monitoring task is executed in the
本実施の形態5では、図7に示すように、S17の動作カウンタ監視タスクでマイクロプロセッサ1に間欠異常が発生したと判断した場合には、上記実施の形態3と同様に、自己診断回路によりマイクロプロセッサ1を強制停止する。また、上記実施の形態4と同様に、他装置3においても動作カウンタのカウント値を監視し、今回演算周期と前回演算周期のカウント値に変化がなかった場合に、本装置のマイクロプロセッサ1に間欠異常が発生したと判断する。
In the fifth embodiment, as shown in FIG. 7, when it is determined in the operation counter monitoring task in S17 that an intermittent abnormality has occurred in the
本実施の形態5によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常を他装置3で検出することが可能である。さらに、間欠異常が発生したと判断した場合に該マイクロプロセッサ1を強制停止する自己診断回路を備えることにより、異常発生時に迅速且つ確実にマイクロプロセッサ1を停止することができる。
According to the fifth embodiment, since the count value of the operation counter is monitored by the
実施の形態6.
図8は、本発明の実施の形態6におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図8中、図6と同一、相当部分には同一符号を付している。本実施の形態6では、上記実施の形態4(図6)と同様に、動作カウンタのカウント値を他装置3にアナログ信号出力するものであるが、本実施の形態6では、複数の他装置3にネットワーク出力し、動作カウンタのカウント値の監視(第2の工程)を複数の他装置3において実行する。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
FIG. 8 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the sixth embodiment of the present invention. In FIG. 8, the same reference numerals are assigned to the same and corresponding parts as in FIG. In the sixth embodiment, the count value of the operation counter is output as an analog signal to the
本実施の形態6では、図8に示すように、S15のタスクnにおける動作カウンタのカウント値を複数の他装置3にネットワーク出力(図中AO100)する。複数の他装置3は、動作カウンタのカウント値を監視し、今回演算周期と前回演算周期のカウント値に変化がなかった場合に、本装置のマイクロプロセッサ1に間欠異常が発生したと判断する。
In the sixth embodiment, as shown in FIG. 8, the count value of the operation counter in task n in S15 is network-outputted to a plurality of other devices 3 (AO100 in the figure). The plurality of
本実施の形態6によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を複数の他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常をより早く検出することが可能である。
According to the sixth embodiment, since the count value of the operation counter is monitored by a plurality of
実施の形態7.
図9は、本発明の実施の形態7におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図9中、図7及び図8と同一、相当部分には同一符号を付している。本実施の形態7は、上記実施の形態5(図7)と実施の形態6(図8)を組み合わせたものであり、動作カウンタのカウント値の監視(第2の工程)を、S17の動作カウンタ監視タスクと複数の他装置3において実行するものである。なお、その他の構成及び動
作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 7 FIG.
FIG. 9 is a flowchart showing a method for detecting an intermittent abnormality of a microprocessor according to the seventh embodiment of the present invention. In FIG. 9, the same reference numerals are given to the same parts as those in FIGS. 7 and 8. The seventh embodiment is a combination of the fifth embodiment (FIG. 7) and the sixth embodiment (FIG. 8), and the count value of the operation counter (second step) is monitored by the operation of S17. The counter monitoring task is executed in a plurality of
本実施の形態7では、図9に示すように、S17の動作カウンタ監視タスクでマイクロプロセッサ1に間欠異常が発生したと判断した場合には、自己診断回路によりマイクロプロセッサ1を強制停止する。また、複数の他装置3においても動作カウンタのカウント値を監視し、今回演算周期と前回演算周期のカウント値に変化がなかった場合に、本装置のマイクロプロセッサ1に間欠異常が発生したと判断する。
In the seventh embodiment, as shown in FIG. 9, when it is determined that an intermittent abnormality has occurred in the
本実施の形態7によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を動作カウンタ監視タスクと複数の他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常をより早く検出することが可能である。さらに、間欠異常が発生したと判断した場合に該マイクロプロセッサ1を強制停止する自己診断回路を備えることにより、異常発生時に迅速且つ確実にマイクロプロセッサ1を停止することができる。
According to the seventh embodiment, in addition to the conventional watchdog timer reset task (S12), the count value of the operation counter is monitored by the operation counter monitoring task and a plurality of
本発明は、制御装置に用いられるマイクロプロセッサの間欠異常検出方法として利用することができる。 The present invention can be used as an intermittent abnormality detection method for a microprocessor used in a control device.
1 マイクロプロセッサ、2 異常検出回路、3 他装置、
21 ウォッチドッグタイマ回路、22 警報出力回路。
1 Microprocessor, 2 Anomaly detection circuit, 3 Other devices,
21 Watchdog timer circuit, 22 Alarm output circuit.
Claims (8)
前記第1カウンタのカウント値の初期値を前記タスク1に与え、前記n個のタスクを優先度の高い順に実行すると共に該カウント値を後段のタスクに順次送っていき、前記タスクnにおいて該カウント値をカウントアップして次の演算周期の前記タスク1に与え、以下同様の処理を繰り返す第1の工程、
前記第1の工程における前記第1カウンタのカウント値を監視し、今回演算周期と前回演算周期の前記第1カウンタのカウント値に変化がなかった場合に該マイクロプロセッサに間欠異常が発生したと判断する第2の工程を含むことを特徴とするマイクロプロセッサの間欠異常検出方法。 A microprocessor having a first counter, executing n tasks (n ≧ 2) including task 1 having the highest execution priority from task 1 to lowest task n and a watchdog timer reset task, and a second counter An abnormality detection circuit that includes a watchdog timer circuit, resets the second counter each time the microprocessor generates a reset signal, and executes a prescribed action when the count value of the second counter reaches a set value In a control device comprising: a microprocessor intermittent error detection method for detecting that any of the n tasks has not been executed normally;
The initial value of the count value of the first counter is given to the task 1, the n tasks are executed in order of priority, and the count values are sequentially sent to the subsequent task. A first step of counting up the value and giving it to the task 1 of the next calculation cycle, and repeating the same processing;
The count value of the first counter in the first step is monitored, and it is determined that an intermittent abnormality has occurred in the microprocessor when there is no change in the count value of the first counter in the current calculation cycle and the previous calculation cycle. A method for detecting an intermittent abnormality of a microprocessor, comprising: a second step of:
故障警報信号を生成し、それらを出力することを特徴とするマイクロプロセッサの間欠異常検出方法。 The intermittent abnormality detection method for a microprocessor according to any one of claims 1 to 7, wherein the abnormality detection circuit generates a microprocessor stop signal and a failure alarm signal as the prescribed measures, A method for detecting an intermittent abnormality of a microprocessor, characterized by outputting them.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010285821A JP5438667B2 (en) | 2010-12-22 | 2010-12-22 | Microprocessor intermittent error detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010285821A JP5438667B2 (en) | 2010-12-22 | 2010-12-22 | Microprocessor intermittent error detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012133625A JP2012133625A (en) | 2012-07-12 |
JP5438667B2 true JP5438667B2 (en) | 2014-03-12 |
Family
ID=46649147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010285821A Expired - Fee Related JP5438667B2 (en) | 2010-12-22 | 2010-12-22 | Microprocessor intermittent error detection method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5438667B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101491347B1 (en) | 2013-11-14 | 2015-02-06 | 현대오트론 주식회사 | Method and apparatus for operating processor and watch dog module |
EP3385155B1 (en) | 2015-12-04 | 2024-07-17 | Samsung Heavy Industries Co., Ltd. | Frictional resistance reducing device and ship including same |
CN110826873A (en) * | 2019-10-23 | 2020-02-21 | 支付宝(杭州)信息技术有限公司 | Service state judgment method and device based on service indexes and electronic equipment |
-
2010
- 2010-12-22 JP JP2010285821A patent/JP5438667B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012133625A (en) | 2012-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9720761B2 (en) | System fault detection and processing method, device, and computer readable storage medium | |
JP5476238B2 (en) | Semiconductor device | |
CN107003915B (en) | Drive control device | |
CN106527249B (en) | Timer for peripheral watchdog | |
CN105550057B (en) | Embedded software system fault detection recovery method and system | |
JP5438667B2 (en) | Microprocessor intermittent error detection method | |
KR20160035337A (en) | Motor control system for considering functional safety | |
KR20180108497A (en) | Monitoring circuit | |
JP2006252388A (en) | Software abnormality detection method | |
KR102438148B1 (en) | Abnormality detection apparatus, system and method for detecting abnormality of embedded computing module | |
JP2006221484A (en) | Temperature anomaly monitoring method for computer | |
JP2016095770A (en) | Controller and redundancy control system using the same | |
JP2009151440A (en) | Program hang-up detection method and computer device adopting the same method | |
JP2009053752A (en) | Watchdogging method and anomaly detection circuit | |
JP7063692B2 (en) | Watchdog timer monitoring system | |
EP3349398A1 (en) | Method for monitoring an iot device and using it as battery protection watchdog for iot devices | |
WO2012105029A1 (en) | Analog unit for sequencer system | |
CN111819557A (en) | Method for monitoring IoT equipment and application thereof on battery protection watchdog of IoT equipment | |
JP2004326405A (en) | State monitoring system for watchdog timer circuit | |
JP4396572B2 (en) | Method for resetting signal processing apparatus | |
JP2018097697A (en) | Processor | |
JP4465585B2 (en) | 2-wire transmitter | |
JP2004310291A (en) | Cpu system equipped with watchdog timer failure detecting circuit | |
JP6161105B2 (en) | Information processing system | |
JP2011008493A (en) | System abnormality detection system by watchdog timer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20121220 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131127 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20131203 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131213 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5438667 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |