JPH04245547A - Processing abnormality detection system for processor - Google Patents
Processing abnormality detection system for processorInfo
- Publication number
- JPH04245547A JPH04245547A JP3031612A JP3161291A JPH04245547A JP H04245547 A JPH04245547 A JP H04245547A JP 3031612 A JP3031612 A JP 3031612A JP 3161291 A JP3161291 A JP 3161291A JP H04245547 A JPH04245547 A JP H04245547A
- Authority
- JP
- Japan
- Prior art keywords
- watchdog timer
- task
- tasks
- processing
- processor
- 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
Links
- 230000005856 abnormality Effects 0.000 title claims abstract description 19
- 238000001514 detection method Methods 0.000 title claims abstract description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 238000003672 processing method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【0001】0001
【技術分野】本発明はプロセッサの処理異常検出方式に
関し、特にウオッチドッグタイマを用いたマイクロプロ
セッサの処理異常検出方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting processing abnormalities in a processor, and more particularly to a method for detecting processing abnormalities in a microprocessor using a watchdog timer.
【0002】0002
【従来技術】マイクロプロセッサにおいては、個々に定
められた優先順位を有する複数のタスクを設け、オペレ
ーティングシステムによりこの優先順位に従って順次タ
スク処理を行うようになっている。2. Description of the Related Art In a microprocessor, a plurality of tasks are provided with individually determined priorities, and an operating system sequentially processes the tasks according to the priorities.
【0003】図3はこの様なタスク処理方式を示すシス
テムブロック図である。図において、オペレーティング
システム16は、起動状態にあるタスク11〜14をス
ケジューラ17により管理されるタスク実行順序管理テ
ーブル18に従って、優先順位の高いタスクから順次処
理を行うものである。尚、15はアイドルタスクを示し
ている。FIG. 3 is a system block diagram showing such a task processing method. In the figure, the operating system 16 sequentially processes tasks 11 to 14 in an activated state in accordance with a task execution order management table 18 managed by a scheduler 17, starting from the task with the highest priority. Note that 15 indicates an idle task.
【0004】この様なマイクロプロセッサの処理異常を
検出する場合、予め定められた一定時間内にマイクロプ
ロセッサによりアクセスされないとき外部に対してアラ
ームを出力するウオッチドッグタイマが用いられる。[0004] To detect such a processing abnormality in a microprocessor, a watchdog timer is used which outputs an alarm to the outside when no access is made by the microprocessor within a predetermined period of time.
【0005】図2はこのウオッチドッグタイマを用いた
マイクロプロセッサの処理異常検出方式の概略を説明す
るブロック図である。ウオッチドッグタイマ起動制御タ
スク22はタイマ23を用いて周期的にウオッチドッグ
タイマアクセスタスク21の起動を行うようになってい
る。FIG. 2 is a block diagram illustrating an outline of a microprocessor processing abnormality detection method using this watchdog timer. The watchdog timer activation control task 22 uses a timer 23 to periodically activate the watchdog timer access task 21.
【0006】ここで、あるタスク処理中に異常が発生し
て処理が中断するとウオッチドッグタイマアクセスタス
ク21の起動が行われず、よって外部に対して異常が出
力されるのである。[0006] Here, if an abnormality occurs during the processing of a certain task and the processing is interrupted, the watchdog timer access task 21 is not activated, and therefore the abnormality is output to the outside.
【0007】この様な従来のマイクロプロセッサの処理
異常検出方式では、ウオッチドッグタイマのためにタイ
マ23が占有されるという欠点の他に、他に起動される
タスクが存在する場合でもタイマ23がタイムアップし
た時点でウオッチドッグタイマアクセスタスク21が無
条件に起動されるので、ウオッチドッグタイマアクセス
タスクよりも優先順位の低いタスクはウオッチドッグタ
イマのアクセス処理が終了するまで処理されないことに
なり、処理速度が低下するという欠点がある。[0007] In this conventional microprocessor processing abnormality detection method, in addition to the drawback that the timer 23 is occupied by the watchdog timer, the timer 23 is also Since the watchdog timer access task 21 is started unconditionally when the watchdog timer access task is uploaded, tasks with a lower priority than the watchdog timer access task will not be processed until the watchdog timer access processing is completed, which will reduce the processing speed. It has the disadvantage that it decreases.
【0008】[0008]
【発明の目的】本発明の目的は、タイマを使用すること
なく異常処理を可能とすると共に、処理速度の向上を図
ったプロセッサの処理異常検出方式を提供することであ
る。OBJECTS OF THE INVENTION An object of the present invention is to provide a method for detecting processing abnormalities in a processor that enables abnormal processing without using a timer and improves processing speed.
【0009】[0009]
【発明の構成】本発明によれば、予め定められた一定時
間プロセッサによりアクセスされない場合に外部に対し
てアラームを出力するウオッチドッグタイマと、このウ
オッチドッグタイマを前記一定時間毎にアクセスするウ
オッチドッグタイマアクセスタスクと、個々に定められ
た優先順位を有する複数のタスクとを有し、オペレーテ
ィングシステムにより優先順位に従って順次タスク処理
を行うようにしたプロセッサの処理異常検出方式であっ
て、前記ウオッチドッグタイマアクセスタスクの優先順
位を全タスク中最下位としたことを特徴とする処理異常
検出方式が得られる。According to the present invention, there is provided a watchdog timer that outputs an alarm to the outside when no access is made by a processor for a predetermined period of time, and a watchdog that accesses the watchdog timer at intervals of the predetermined period of time. A processing abnormality detection method for a processor that has a timer access task and a plurality of tasks each having individually determined priorities, and the tasks are sequentially processed according to the priorities by an operating system, wherein the watchdog timer A processing abnormality detection method is obtained in which the access task is given the lowest priority among all tasks.
【0010】0010
【実施例】次に、本発明の実施例を図面を用いて説明す
る。Embodiments Next, embodiments of the present invention will be described with reference to the drawings.
【0011】図1は本発明の実施例に用いるマイクロプ
ロセッサ処理異常検出方式におけるタスク構成を示す図
である。個々に予め定められた優先順位を有するn個の
タスク#1〜#nと、これ等タスクよりも低い優先順位
を有する独立したウオッチドッグタイマアクセスタスク
とが設けられている。FIG. 1 is a diagram showing a task configuration in a microprocessor processing abnormality detection method used in an embodiment of the present invention. There are n tasks #1 to #n each having a predetermined priority, and an independent watchdog timer access task having a lower priority than these tasks.
【0012】オペレーティングシステムにより起動状態
にある全てのタスクが優先順位に従って処理されること
は図3のシステムの例と同じである。これによりウオッ
チドッグタイマアクセスタスクよりも優先順位の高いタ
スクの処理が終了して、他に起動状態にあるタスクが存
在しなくなった時点で、ウオッチドッグタイマアクセス
タスクの処理が始めて行われることになる。[0012] As in the example of the system of FIG. 3, all tasks in the activated state are processed by the operating system according to their priorities. As a result, the watchdog timer access task will be processed for the first time when the task with a higher priority than the watchdog timer access task has finished processing and there are no other tasks in the active state. .
【0013】ここで、通常の処理状態において、ウオッ
チドッグタイマアクセスタスクが処理される時間よりも
、ウオッチドッグタイマの計測時間を長く設定しておけ
ば、マイクロプロセッサの処理に異常が発生していずれ
かのタスクにおいて処理が停止した場合には、ウオッチ
ドッグタイマアクセスタスクは処理されずに、マイクロ
プロセッサの処理異常が検出されるのである。[0013] If the watchdog timer measurement time is set to be longer than the time during which the watchdog timer access task is processed under normal processing conditions, an abnormality may occur in the microprocessor's processing. If processing in that task is stopped, the watchdog timer access task is not processed and a processing abnormality in the microprocessor is detected.
【0014】[0014]
【発明の効果】叙上の如く、本発明によれば、全てのタ
スクに比して処理優先順位を低く設定しておくことによ
り、タイマを用いることなくプロセッサ処理異常が検出
できると共に、他の起動状態にあるタスクが存在しない
場合に、ウオッチドッグタイマのアクセス処理が実行さ
れるので、マイクロプロセッサの処理速度が向上すると
いう効果がある。[Effects of the Invention] As described above, according to the present invention, by setting the processing priority lower than that of all tasks, it is possible to detect processor processing abnormalities without using a timer, and to detect other tasks. Since the watchdog timer access process is executed when no task is activated, the processing speed of the microprocessor is improved.
【図面の簡単な説明】[Brief explanation of the drawing]
【図1】本発明の実施例に用いられるタスク構成を示す
図である。FIG. 1 is a diagram showing a task configuration used in an embodiment of the present invention.
【図2】従来のウオッチドッグタイマを用いたマイクロ
プロセッサ処理異常検出方式を示すブロック図である。FIG. 2 is a block diagram showing a conventional microprocessor processing abnormality detection method using a watchdog timer.
【図3】マイクロプロセッサシステムのタスク処理方式
を示すブロック図である。FIG. 3 is a block diagram showing a task processing method of the microprocessor system.
11〜14 タスク 16 オペレーティングシステム 17 スケジューラ 18 タスク実行順序管理テーブル 11-14 Task 16 Operating system 17 Scheduler 18 Task execution order management table
Claims (1)
よりアクセスされない場合に外部に対してアラームを出
力するウオッチドッグタイマと、このウオッチドッグタ
イマを前記一定時間毎にアクセスするウオッチドッグタ
イマアクセスタスクと、個々に定められた優先順位を有
する複数のタスクとを有し、オペレーティングシステム
により優先順位に従って順次タスク処理を行うようにし
たプロセッサの処理異常検出方式であって、前記ウオッ
チドッグタイマアクセスタスクの優先順位を全タスク中
最下位としたことを特徴とする処理異常検出方式。1. A watchdog timer that outputs an alarm to the outside when the processor is not accessed for a predetermined period of time; a watchdog timer access task that accesses the watchdog timer at intervals of the specified period of time; A processing abnormality detection method for a processor has a plurality of tasks having priority orders determined by the watchdog timer access task, and the tasks are processed sequentially according to the priority orders by an operating system, wherein the priority order of the watchdog timer access task is A processing abnormality detection method characterized by placing the task at the lowest level among all tasks.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3031612A JPH04245547A (en) | 1991-01-31 | 1991-01-31 | Processing abnormality detection system for processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3031612A JPH04245547A (en) | 1991-01-31 | 1991-01-31 | Processing abnormality detection system for processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04245547A true JPH04245547A (en) | 1992-09-02 |
Family
ID=12336032
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3031612A Pending JPH04245547A (en) | 1991-01-31 | 1991-01-31 | Processing abnormality detection system for processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04245547A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007334587A (en) * | 2006-06-14 | 2007-12-27 | Denso Corp | Abnormality monitoring program, recording medium, and electronic device |
-
1991
- 1991-01-31 JP JP3031612A patent/JPH04245547A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007334587A (en) * | 2006-06-14 | 2007-12-27 | Denso Corp | Abnormality monitoring program, recording medium, and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6148322A (en) | Processing unit with an improved ability to coordinate the execution of multiple tasks with varying priorities | |
| US20120029659A1 (en) | Safety controller and safety control method | |
| JPS63238630A (en) | Interruption controller for microprocessor | |
| JPH04245547A (en) | Processing abnormality detection system for processor | |
| JPH064318A (en) | Error detecting system | |
| JPS63300326A (en) | Transaction execution schedule system | |
| JPS5920061A (en) | Watchdog timer | |
| JPH08137703A (en) | Task switching device | |
| JP2566002B2 (en) | Task dispatching method | |
| JPH05204667A (en) | Task execution control device in computer system | |
| JP2880658B2 (en) | Runaway detection device for multitask program | |
| JPS63317834A (en) | Ladder program processing system | |
| JP2901714B2 (en) | Programmable controller | |
| US9195498B2 (en) | Supply capability engine weekly poller | |
| EP0422246A1 (en) | Programmable controller | |
| JPH0683652A (en) | Micro computer system | |
| JPH04270441A (en) | Data processor | |
| JPS59111563A (en) | Controlling system of multi-processor | |
| JPS62271147A (en) | Task control method | |
| JPH05282162A (en) | Interruption controller | |
| JPH03208137A (en) | Abnormality detection system for control microcomputer | |
| JPH0462093B2 (en) | ||
| JPH0199137A (en) | Method for detecting intermittent execution loop condition | |
| JPH02113363A (en) | Time slice controlling system for multiprocessor system | |
| JP2000066926A (en) | Method for detecting runaway at time of programming by using os |