JP5438667B2 - Microprocessor intermittent error detection method - Google Patents

Microprocessor intermittent error detection method Download PDF

Info

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
Application number
JP2010285821A
Other languages
Japanese (ja)
Other versions
JP2012133625A (en
Inventor
宏樹 西嶌
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010285821A priority Critical patent/JP5438667B2/en
Publication of JP2012133625A publication Critical patent/JP2012133625A/en
Application granted granted Critical
Publication of JP5438667B2 publication Critical patent/JP5438667B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Document 1, as a processor abnormality monitoring method using a watchdog timer, the watchdog timer counter starts counting from an initial value every time the processor generates a reset signal, and the count value is set to the first setting. A first timeout signal is generated when the value is reached, an interrupt signal is generated by the first timeout signal, counting is started at the timing of the interrupt signal, and an alarm signal is generated from the second timeout signal when the second set value is reached. The way it occurs is presented.

この方法によれば、第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.

特開平11−327959号公報Japanese Patent Laid-Open No. 11-327959

このように、従来の異常検出方法では、マイクロプロセッサの負荷状態による電源電圧の瞬時低下が発生した場合、完全な電圧低下ではないためマイクロプロセッサは間欠的に動作できており、ウォッチドッグタイマが働かない場合があった。その結果、マイクロプロセッサが、例えばタスク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 task 1 having the highest priority of execution and task n having the lowest priority, and a watchdog timer reset A microprocessor that executes a task and a watchdog timer circuit having a second counter, and resets the second counter each time the microprocessor generates a reset signal, and the count value of the second counter reaches a set value In the control device provided with the abnormality detection circuit for executing the prescribed action, a method for detecting an intermittent abnormality of the microprocessor for detecting that any of the n tasks has not been normally executed, comprising: The initial value of the count value is given to task 1, n tasks are executed in order of priority, and the count value is The first step is sequentially sent to the task, and the count value is incremented in task n and given to task 1 in the next calculation cycle. Thereafter, the same process is repeated, and the first counter in the first step is counted. This includes a second step of monitoring the value and determining 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.

本発明に係るマイクロプロセッサの間欠異常検出方法によれば、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 task 1 of the next calculation cycle It is possible to easily monitor whether or not the microprocessor is running and to easily detect an intermittent abnormality of the microprocessor.

本発明の実施の形態1におけるマイクロプロセッサを用いた制御装置の構成を示す概略図である。It is the schematic which shows the structure of the control apparatus using the microprocessor in Embodiment 1 of this invention. 本発明の実施の形態1におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 1 of this invention. 本発明の実施の形態1の比較例である従来のウォッチドッグタイマ回路を用いたマイクロプロセッサの異常検出方法を示す図である。It is a figure which shows the abnormality detection method of the microprocessor using the conventional watchdog timer circuit which is a comparative example of Embodiment 1 of this invention. 本発明の実施の形態2におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 2 of this invention. 本発明の実施の形態3におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 3 of this invention. 本発明の実施の形態4におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 4 of this invention. 本発明の実施の形態5におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 5 of this invention. 本発明の実施の形態6におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 6 of this invention. 本発明の実施の形態7におけるマイクロプロセッサの間欠異常検出方法を示す図である。It is a figure which shows the intermittent abnormality detection method of the microprocessor in Embodiment 7 of this invention.

実施の形態1.
以下に、本発明の実施の形態1に係るマイクロプロセッサの間欠異常検出方法について、図面に基づいて説明する。図1は、本実施の形態1におけるマイクロプロセッサを用いた制御装置の構成を示す概略図、図2は本実施の形態1におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。なお、図中、同一、相当部分には同一符号を付している。
Embodiment 1 FIG.
Hereinafter, an intermittent abnormality detection method for a microprocessor according to Embodiment 1 of the present invention will be described with reference to the drawings. FIG. 1 is a schematic diagram illustrating a configuration of a control device using a microprocessor according to the first embodiment, and FIG. 2 is a flowchart illustrating a method for detecting an intermittent abnormality of the microprocessor according to the first embodiment. In the drawing, the same and corresponding parts are denoted by the same reference numerals.

図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 microprocessor 1 and an abnormality detection circuit 2. The microprocessor 1 of this apparatus has an operation counter (not shown) as a first counter, and includes n tasks (n ≧ 2) including the task 1 having the highest execution priority and the task n having the lowest priority. The watchdog timer reset task is executed.

また、異常検出回路2は、第2カウンタ(以下カウンタと略す)を有するウォッチドッグタイマ回路21を含み、マイクロプロセッサ1がウォッチドッグタイマリセット信号(以下、リセット信号と略す)を発生する毎に、ウォッチドッグタイマ回路21のカウンタをリセットする。異常検出回路2は、マイクロプロセッサ1からウォッチドッグタイマ回路21に規則的にリセット信号が送信されず、カウンタのカウント値が設定値に達したときに、規定の処置を実行する。規定の処理とは、例えばマイクロプロセッサ停止信号及び故障警報信号を生成し、それらを出力する処理である。   Further, the abnormality detection circuit 2 includes a watchdog timer circuit 21 having a second counter (hereinafter abbreviated as a counter), and whenever the microprocessor 1 generates a watchdog timer reset signal (hereinafter abbreviated as a reset signal), The counter of the watchdog timer circuit 21 is reset. The abnormality detection circuit 2 executes a prescribed measure when the reset signal is not regularly transmitted from the microprocessor 1 to the watchdog timer circuit 21 and the count value of the counter reaches the set value. The prescribed process is a process for generating, for example, a microprocessor stop signal and a failure alarm signal and outputting them.

異常検出回路2から出力されたマイクロプロセッサ停止信号を受信したマイクロプロセッサ1は、強制停止処理が実行される。また、異常検出回路2の警報出力回路22から出力された故障警報信号を受信した他装置3は、本装置のマイクロプロセッサ1の異常を認識する。なお、他装置3とは、他の制御装置または計算機であり、本装置が例えば発電所のタービン制御装置である場合は、他装置3はボイラ制御装置、シーケンス制御装置またはプラント制御計算機等が該当する。また、本装置が例えば情報通信システムのサーバである場合には、他装置3はクライアントのパーソナルコンピュータが該当する。あるいはこれらの本装置と他装置3は逆であってもよい。   The microprocessor 1 that has received the microprocessor stop signal output from the abnormality detection circuit 2 performs a forced stop process. The other device 3 that has received the failure alarm signal output from the alarm output circuit 22 of the abnormality detection circuit 2 recognizes an abnormality in the microprocessor 1 of this device. The other device 3 is another control device or a computer. When this device is a turbine control device of a power plant, for example, the other device 3 is a boiler control device, a sequence control device, a plant control computer, or the like. To do. When this apparatus is a server of an information communication system, for example, the other apparatus 3 corresponds to a client personal computer. Alternatively, the present apparatus and the other apparatus 3 may be reversed.

本実施の形態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 microprocessor 1. It is an easy method to detect that one of the tasks is not executed normally.

まず、第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 task 1, n tasks are executed in descending order of priority, and the count values are sequentially sent to subsequent tasks. At n, the count value is counted up (+1). This counted up count value is given to task 1 of the next calculation cycle, and thereafter the same processing is repeated. The count value of the operation counter is transmitted to the subsequent task as an operation counter signal.

続いて第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 microprocessor 1 is intermittently abnormal. Is determined to have occurred. In the first embodiment, the second step is executed in the watchdog timer reset task, and the watchdog timer reset task is executed when the count value of the operation counter in the current calculation cycle and the previous calculation cycle is changed. Then, a reset signal is transmitted to the watchdog timer circuit 21 of the abnormality detection circuit 2.

本実施の形態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 microprocessor 1 executes the initialization process of step 11 (S11) following the start process of step 10 (S10). In this initialization process, “zero” is substituted into the operation counter signal “LA0” as the initial value of the count value of the operation counter.

次に、ステップ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 task 1 in step 13 (S13).

S13では、優先度1位のタスク1を実行すると共に、S12から送信された動作カウンタ信号「LA0」を「LA1」に代入し、この「LA1」を次のステップ14(S14)のタスク2へ送信する。続いてS14では、優先度2位のタスク2を実行すると共に、S13のタスク1から送信された動作カウンタ信号「LA1」を「LA2」に代入し、後段のタスク(図示せず)へ送信する。以下同様に、優先度の高い順にすべてのタスクを実行すると共に、動作カウンタ信号を送信していく。   In S13, task 1 with the highest priority is executed, and the operation counter signal “LA0” transmitted from S12 is assigned to “LA1”, and this “LA1” is transferred to task 2 in the next step 14 (S14). Send. Subsequently, in S14, the task 2 having the second highest priority is executed, and the operation counter signal “LA1” transmitted from the task 1 in S13 is assigned to “LA2” and transmitted to the subsequent task (not shown). . Similarly, all tasks are executed in descending order of priority, and operation counter signals are transmitted.

さらに、ステップ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 watchdog timer circuit 21. The watchdog timer reset task in S12 assigns the updated operation counter signal “LAn” to “LA0” and gives it to task 1 (S13) of the next calculation cycle.

一方、異常検出回路2では、ステップ20(S20)のスタート処理後、ステップ21(S21)においてウォッチドッグタイマ回路21のカウンタをカウントアップ(+1)する。さらに、ステップ22(S22)において、マイクロプロセッサ1からリセット信号が送信された場合(YES)、ステップ23(S23)でウォッチドッグタイマ回路21のカウンタをリセット(0クリア)し、ステップ24(S24)に進む。   On the other hand, the abnormality detection circuit 2 counts up (+1) the counter of the watchdog timer circuit 21 in step 21 (S21) after the start process in step 20 (S20). Further, when a reset signal is transmitted from the microprocessor 1 in step 22 (S22) (YES), the counter of the watchdog timer circuit 21 is reset (cleared to 0) in step 23 (S23), and step 24 (S24). Proceed to

また、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 microprocessor 1 for a predetermined period in S22 (NO), it is confirmed in S24 whether the counter of the watchdog timer circuit 21 is overflowed. In case of overflow (YES), step 25 (S25) and step 26 (S26) are executed. In S25, a microprocessor stop signal is generated and output. In S26, a failure alarm signal is generated, and a failure alarm is digitally output (DO1) to the other device 3. When the microprocessor stop signal is output in S25, the microprocessor 1 is forcibly stopped in step 16 (S16).

次に、マイクロプロセッサ1に間欠異常が発生した場合の動作について説明する。例えばS13のタスク1を実行時にマイクロプロセッサ1の電源電圧の瞬時低下が発生し、タスク1が正常に実行されなかった場合、タスク1ではS14のタスク2へ送信する動作カウンタ信号「LA1」の値を更新することができない。このため、前回演算周期と同じ動作カウンタ信号「LA1」が次のタスク2に送信される。タスク2は、前回演算周期から更新されていない動作カウンタ信号「LA1」を「LA2」に代入し、後段のタスクへ送信する。   Next, an operation when an intermittent abnormality occurs in the microprocessor 1 will be described. For example, when task 1 in S13 is executed and the power supply voltage of the microprocessor 1 is instantaneously reduced and task 1 is not executed normally, the value of the operation counter signal “LA1” transmitted to task 2 in S14 in task 1 Can not be updated. Therefore, the same operation counter signal “LA1” as the previous calculation cycle is transmitted to the next task 2. Task 2 substitutes operation counter signal “LA1”, which has not been updated since the previous calculation cycle, in “LA2”, and transmits it to the subsequent task.

これにより、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 abnormality detection circuit 2. Do not send.

このような状態が所定期間継続すると、異常検出回路2では、S22においてリセット信号が受信されない状態が続き、S24においてウォッチドッグタイマ回路21のカウンタがオーバーフローする。これにより、S25でマイクロプロセッサ停止信号が出力され、S26で故障警報が出力される。これらの結果、他装置3はマイクロプロセッサ1に異常が発生したことを認識し、マイクロプロセッサ1はS16の強制停止処理により異常状態での動作が停止される。   When such a state continues for a predetermined period, the abnormality detection circuit 2 continues to receive no reset signal in S22, and the counter of the watchdog timer circuit 21 overflows in S24. As a result, a microprocessor stop signal is output in S25, and a failure alarm is output in S26. As a result, the other device 3 recognizes that an abnormality has occurred in the microprocessor 1, and the microprocessor 1 is stopped in the abnormal state by the forced stop processing in S16.

図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 microprocessor 1 and the processes S20 to S26 executed by the abnormality detection circuit 2 are basically intermittent microprocessor abnormalities in the first embodiment shown in FIG. This is the same process as the detection method.

ただし、従来の異常検出方法では、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 microprocessor 1, and as a result, the counter of the watchdog timer in the abnormality detection circuit 2 overflows (S24), and an abnormality occurs in the microprocessor 1. Judge that

従来の異常検出方法では、マイクロプロセッサ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 microprocessor 1. For example, even if the task 2 in S14 is not normally executed, the power supply voltage is recovered immediately thereafter, and the subsequent tasks are sequentially executed. When the task n of S15 is finally executed, the watchdog timer reset task of S12 transmits a reset signal to the abnormality detection circuit 2. For this reason, the watchdog timer does not work and the intermittent abnormality of the microprocessor 1 is not detected.

以上のように、本実施の形態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 task 1 and n tasks are executed in descending order of priority. , Sequentially sending the count value to the subsequent task, counting up the count value in task n, giving it to task 1 in the next calculation cycle, and thereafter repeating the same processing, A second step of monitoring the count value of the operation counter in step (2) and determining that an intermittent abnormality has occurred in the microprocessor 1 when there is no change in the count value of the operation counter in the current calculation cycle and the previous calculation cycle. Therefore, it is possible to easily monitor that the microprocessor 1 is executing all the tasks normally, and to detect an intermittent abnormality of the microprocessor 1 easily. Kill.

実施の形態2.
図4は、本発明の実施の形態2におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図4中、図2と同一、相当部分には同一符号を付している。上記実施の形態1では、動作カウンタのカウント値の監視(第2の工程)をウォッチドッグタイマリセットタスク(S12)において実行したが、本実施の形態2では、タスクnの後段の動作カウンタ監視タスクにおいて実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 2. FIG.
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 abnormality detection circuit 2 as in the conventional method (see FIG. 3).

S13のタスク1は、S11の初期化処理において初期化された動作カウンタのカウント値「LA1」を使用して処理を開始する。S17の動作カウンタ監視タスクでは、初回演算周期にはステップ171(S171)を実行せず、2回目以降の演算周期において、S171で今回演算周期と前回演算周期のカウント値を比較する。   Task 1 in S13 starts processing using the count value “LA1” of the operation counter initialized in the initialization processing in S11. In the operation counter monitoring task in S17, step 171 (S171) is not executed in the first calculation cycle, and in the second and subsequent calculation cycles, the count values of the current calculation cycle and the previous calculation cycle are compared in 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 watchdog timer circuit 21 of the abnormality detection circuit 2. In S171, if there is no change between “LAn” of the current calculation cycle and the previous calculation cycle (NO), no reset signal is transmitted to the abnormality detection circuit 2.

本実施の形態2によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタ監視タスク(S17)によりマイクロプロセッサ1の間欠異常を自己診断するようにしたので、異常検出精度がより高くなる効果がある。   According to the second embodiment, the intermittent abnormality of the microprocessor 1 is self-diagnosed by the operation counter monitoring task (S17) in addition to the conventional watchdog timer reset task (S12). There is an effect to increase.

実施の形態3.
図5は、本発明の実施の形態3におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図5中、図4と同一、相当部分には同一符号を付している。本実施の形態3では、上記実施の形態2と同様に、動作カウンタのカウント値の監視(第2の工程)をS17の動作カウンタ監視タスクにおいて実行する。さらに、S17の動作カウンタ監視タスクでマイクロプロセッサ1に間欠異常が発生したと判断した場合に、該マイクロプロセッサ1を強制停止する自己診断回路を備えたものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 3 FIG.
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 microprocessor 1 when it is determined in the operation counter monitoring task of S17 that an intermittent abnormality has occurred in the microprocessor 1 is provided. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.

本実施の形態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 watchdog timer circuit 21 of the abnormality detection circuit 2. If there is no change in these values (NO), it is determined that an intermittent abnormality has occurred in the microprocessor 1, and the microprocessor 1 is forcibly stopped by the self-diagnosis circuit (S16).

本実施の形態3によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタ監視タスク(S17)によりマイクロプロセッサ1の間欠異常を自己診断し、間欠異常が発生したと判断した場合に該マイクロプロセッサ1を強制停止する自己診断回路を備えることにより、異常発生時に迅速且つ確実にマイクロプロセッサ1を停止することができる。   According to the third embodiment, when an intermittent abnormality of the microprocessor 1 is self-diagnosed by the operation counter monitoring task (S17) in addition to the conventional watchdog timer reset task (S12), and it is determined that the intermittent abnormality has occurred. By providing a self-diagnosis circuit for forcibly stopping the microprocessor 1, the microprocessor 1 can be quickly and reliably stopped when an abnormality occurs.

実施の形態4.
図6は、本発明の実施の形態4におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図6中、図4と同一、相当部分には同一符号を付している。本実施の形態4では、動作カウンタのカウント値を他装置3にアナログ信号出力し、動作カウンタのカウント値の監視(第2の工程)を他装置3において実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 4 FIG.
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 other device 3, and the count value of the operation counter is monitored (second step) in the other device 3. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.

本実施の形態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 other device 3. The other device 3 monitors the count value of the operation counter and determines that an intermittent abnormality has occurred in the microprocessor 1 of this device when there is no change in the count value of the current calculation cycle and the previous calculation cycle.

本実施の形態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 other device 3, so that the intermittent abnormality of the microprocessor 1 of this device can be monitored. It can be detected by the device 3.

実施の形態5.
図7は、本発明の実施の形態5におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図7中、図6と同一、相当部分には同一符号を付している。本実施の形態5は、上記実施の形態3(図5)と実施の形態4(図6)を組み合わせたものであり、動作カウンタのカウント値の監視(第2の工程)を、S17の動作カウンタ監視タスクと他装置3において実行するものである。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 5 FIG.
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 other device 3. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.

本実施の形態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 microprocessor 1, the self-diagnostic circuit performs the same as in the third embodiment. The microprocessor 1 is forcibly stopped. Similarly to the fourth embodiment, the other device 3 monitors the count value of the operation counter, and if there is no change in the count value of the current calculation cycle and the previous calculation cycle, the microprocessor 1 of the present device It is determined that an intermittent abnormality has occurred.

本実施の形態5によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常を他装置3で検出することが可能である。さらに、間欠異常が発生したと判断した場合に該マイクロプロセッサ1を強制停止する自己診断回路を備えることにより、異常発生時に迅速且つ確実にマイクロプロセッサ1を停止することができる。   According to the fifth embodiment, since the count value of the operation counter is monitored by the other device 3 in addition to the conventional watchdog timer reset task (S12), the intermittent abnormality of the microprocessor 1 of this device can be monitored. It can be detected by the device 3. Furthermore, by providing a self-diagnosis circuit that forcibly stops the microprocessor 1 when it is determined that an intermittent abnormality has occurred, the microprocessor 1 can be stopped quickly and reliably when an abnormality occurs.

実施の形態6.
図8は、本発明の実施の形態6におけるマイクロプロセッサの間欠異常検出方法を示すフローチャートである。図8中、図6と同一、相当部分には同一符号を付している。本実施の形態6では、上記実施の形態4(図6)と同様に、動作カウンタのカウント値を他装置3にアナログ信号出力するものであるが、本実施の形態6では、複数の他装置3にネットワーク出力し、動作カウンタのカウント値の監視(第2の工程)を複数の他装置3において実行する。なお、その他の構成及び動作については、上記実施の形態1と同様であるので説明を省略する。
Embodiment 6 FIG.
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 other device 3 as in the fourth embodiment (FIG. 6). However, in the sixth embodiment, a plurality of other devices are output. 3 is output to the network, and the count value of the operation counter is monitored (second step) in a plurality of other devices 3. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.

本実施の形態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 other devices 3 monitor the count values of the operation counters, and determine that an intermittent abnormality has occurred in the microprocessor 1 of this device when there is no change in the count values of the current calculation cycle and the previous calculation cycle.

本実施の形態6によれば、従来のウォッチドッグタイマリセットタスク(S12)に加え、動作カウンタのカウント値を複数の他装置3で監視するようにしたので、本装置のマイクロプロセッサ1の間欠異常をより早く検出することが可能である。   According to the sixth embodiment, since the count value of the operation counter is monitored by a plurality of other devices 3 in addition to the conventional watchdog timer reset task (S12), the intermittent abnormality of the microprocessor 1 of the present device Can be detected earlier.

実施の形態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 other devices 3. Since other configurations and operations are the same as those in the first embodiment, description thereof is omitted.

本実施の形態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 microprocessor 1 in the operation counter monitoring task in S17, the microprocessor 1 is forcibly stopped by the self-diagnosis circuit. In addition, the count values of the operation counters are also monitored in a plurality of other devices 3, and it is determined that an intermittent abnormality has occurred in the microprocessor 1 of this device when there is no change in the count values of the current calculation cycle and the previous calculation cycle. To do.

本実施の形態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 other devices 3. It is possible to detect the intermittent abnormality of the processor 1 earlier. Furthermore, by providing a self-diagnosis circuit that forcibly stops the microprocessor 1 when it is determined that an intermittent abnormality has occurred, the microprocessor 1 can be stopped quickly and reliably when an abnormality occurs.

本発明は、制御装置に用いられるマイクロプロセッサの間欠異常検出方法として利用することができる。   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個(n≧2)のタスク及びウォッチドッグタイマリセットタスクを実行するマイクロプロセッサと、第2カウンタを有するウォッチドッグタイマ回路を含み、前記マイクロプロセッサがリセット信号を発生する毎に前記第2カウンタをリセットし、前記第2カウンタのカウント値が設定値に達したときに規定の処置を実行する異常検出回路を備えた制御装置において、前記n個のタスクのいずれかが正常に実行されなかったことを検出するマイクロプロセッサの間欠異常検出方法であって、
前記第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:
請求項1に記載のマイクロプロセッサの間欠異常検出方法であって、前記第2の工程は、前記ウォッチドッグタイマリセットタスクにおいて実行され、前記ウォッチドッグタイマリセットタスクは、今回演算周期と前回演算周期の前記第1カウンタのカウント値に変化があった場合に、前記異常検出回路にリセット信号を送信することを特徴とするマイクロプロセッサの間欠異常検出方法。   2. The method for detecting an intermittent abnormality of a microprocessor according to claim 1, wherein the second step is executed in the watchdog timer reset task, and the watchdog timer reset task includes a current calculation cycle and a previous calculation cycle. An intermittent abnormality detection method for a microprocessor, comprising: transmitting a reset signal to the abnormality detection circuit when the count value of the first counter is changed. 請求項1に記載のマイクロプロセッサの間欠異常検出方法であって、前記第2の工程は、前記タスクnの後段の動作カウンタ監視タスクにおいて実行され、前記動作カウンタ監視タスクは、今回演算周期と前回演算周期の前記第1カウンタのカウント値に変化があった場合に、前記異常検出回路にリセット信号を送信することを特徴とするマイクロプロセッサの間欠異常検出方法。   2. The method according to claim 1, wherein the second step is executed in an operation counter monitoring task subsequent to the task n, and the operation counter monitoring task includes a current calculation cycle and a previous time. An intermittent abnormality detection method for a microprocessor, comprising: transmitting a reset signal to the abnormality detection circuit when a change is made in the count value of the first counter in a calculation cycle. 請求項1に記載のマイクロプロセッサの間欠異常検出方法であって、前記第2の工程において、前記マイクロプロセッサに間欠異常が発生したと判断した場合に、前記マイクロプロセッサが有する自己診断回路により該マイクロプロセッサを強制停止することを特徴とするマイクロプロセッサの間欠異常検出方法。   2. The microprocessor intermittent abnormality detection method according to claim 1, wherein in the second step, when it is determined that an intermittent abnormality has occurred in the microprocessor, the microprocessor performs self-diagnosis using the self-diagnosis circuit. A method for detecting an intermittent abnormality of a microprocessor, wherein the processor is forcibly stopped. 請求項1に記載のマイクロプロセッサの間欠異常検出方法であって、前記第1カウンタのカウント値を他装置にアナログ信号出力し、前記第2の工程を前記他装置において実行するようにしたことを特徴とするマイクロプロセッサの間欠異常検出方法。   2. The method according to claim 1, wherein the count value of the first counter is output as an analog signal to another device, and the second step is executed in the other device. A method for detecting intermittent abnormality of a microprocessor, which is characterized. 請求項5に記載のマイクロプロセッサの間欠異常検出方法であって、前記他装置は、他の制御装置または計算機であることを特徴とするマイクロプロセッサの間欠異常検出方法。   6. The microprocessor intermittent abnormality detection method according to claim 5, wherein the other device is another control device or a computer. 請求項5に記載のマイクロプロセッサの間欠異常検出方法であって、前記第1カウンタのカウント値を複数の前記他装置にネットワーク出力し、前記第2の工程を複数の前記他装置において実行するようにしたことを特徴とするマイクロプロセッサの間欠異常検出方法。   6. The method for detecting intermittent abnormality of a microprocessor according to claim 5, wherein the count value of the first counter is network-outputted to the plurality of other devices, and the second step is executed in the plurality of other devices. An intermittent abnormality detection method for a microprocessor, characterized in that 請求項1〜請求項7のいずれか一項に記載のマイクロプロセッサの間欠異常検出方法であって、前記異常検出回路は、前記規定の処置として、マイクロプロセッサ停止信号及び
故障警報信号を生成し、それらを出力することを特徴とするマイクロプロセッサの間欠異常検出方法。
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.
JP2010285821A 2010-12-22 2010-12-22 Microprocessor intermittent error detection method Expired - Fee Related JP5438667B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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