Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6342297B2 - - Google Patents
[go: Go Back, main page]

JPS6342297B2 - - Google Patents

Info

Publication number
JPS6342297B2
JPS6342297B2 JP58099774A JP9977483A JPS6342297B2 JP S6342297 B2 JPS6342297 B2 JP S6342297B2 JP 58099774 A JP58099774 A JP 58099774A JP 9977483 A JP9977483 A JP 9977483A JP S6342297 B2 JPS6342297 B2 JP S6342297B2
Authority
JP
Japan
Prior art keywords
timer
interrupt
value
processor
time
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
Application number
JP58099774A
Other languages
Japanese (ja)
Other versions
JPS59223860A (en
Inventor
Keiji Maeda
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 JP58099774A priority Critical patent/JPS59223860A/en
Publication of JPS59223860A publication Critical patent/JPS59223860A/en
Publication of JPS6342297B2 publication Critical patent/JPS6342297B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 この発明は、データ処理装置の故障診断方法に
関し、特に所定周期で割込みがかけられるデータ
処理装置の故障診断方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method of diagnosing a failure of a data processing apparatus, and more particularly to a method of diagnosing a failure of a data processing apparatus in which an interrupt is applied at a predetermined period.

複雑な機能をもつデータ処理装置は、故障を発
見するための自己診断機能を備えることが不可欠
となつて来ている。従来の故障診断方法は、デー
タ処理装置の一部をなすプロセツサ自体は正常で
あるとの前提のもとにこのプロセツサを用いて当
該装置他の部分の故障診断を行なうものであつ
た。
It has become essential for data processing devices with complex functions to have a self-diagnosis function to detect failures. Conventional fault diagnosis methods use the processor, which is a part of a data processing device, to diagnose other parts of the device on the premise that the processor itself is normal.

しかし、プロセツサそのものは故障診断できな
いという欠点があつた。
However, the problem was that the processor itself could not be diagnosed.

この発明は、上記のような従来の問題点に鑑み
てなされたもので、プロセツサに対する定期的な
割込みを監視することにより、装置全般にわたり
自己診断を行なわせることができる故障診断方法
を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional problems, and an object of the present invention is to provide a fault diagnosis method that can perform self-diagnosis on the entire device by monitoring periodic interrupts to the processor. With the goal.

以下、この発明の一実施例を図について説明す
る。第1図はこの発明の方法を実施したプロセツ
サのブロツク図である。図示のように、プロセツ
サ1にはタイマ2,3及び割込コントローラ4が
バス1aを介して接続されており、割込コントロ
ーラ4は所定周期Tでプロセツサに割込処理の実
行を要求する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a processor implementing the method of the present invention. As shown in the figure, timers 2 and 3 and an interrupt controller 4 are connected to the processor 1 via a bus 1a, and the interrupt controller 4 requests the processor to execute interrupt processing at a predetermined period T.

第2図は第1図に示すプロセツサ1の動作を示
すメインプログラムのフローチヤートである。処
理P1でプロセツサ1に内蔵されているメモリN
を0にセツトし、処理P2でタイマ2に所定の値
Y2Iをセツトし、処理P3で割込の禁止を解除す
る。これにより、タイマ2は時間Y2I後に零にな
るように直線的にY2Iからカウントダウンを開始
しプロセツサ1は割込みを受付けられるようにな
り、後述するように割込処理を実行する都度メモ
リNの値を1増加させるように働き割込処理回数
がNの値として知られるようになる。処理P4で
はメモリNが所定数Mより大きいか否かの判断を
し、N≧Mであるならば処理P5に進む。処理P
5では割込みを禁止し、故障なしの処理をし、一
連の故障診断処理を完了する。一方、N≧Mが成
立しないとき、即ち割込処理回数Nが所定数Mに
達しないときは処理P6に進みタイマ2のカウン
トダウン値を読込む(読込みを値を以下Y2と記
す)。処理P7ではY2と所定の判定値Aとを比較
し、A≦Y2のときは処理P4に戻る。A≦Y2
ないとき、即ち少なくともタイマ2が判定値Aま
でカウントダウンする時間内に割込みの発生回数
がM回以上にならなかつたときは、装置に異常が
あるものとし、処理P8により故障表示をする。
FIG. 2 is a flowchart of a main program showing the operation of processor 1 shown in FIG. Memory N built in processor 1 in processing P1
is set to 0, and a predetermined value is set to timer 2 in process P2.
Y2I is set and interrupt prohibition is canceled in process P3. As a result, timer 2 starts counting down linearly from Y 2I so that it reaches zero after time Y 2I , and processor 1 becomes able to accept interrupts. The value is increased by 1, and the number of interrupt processing times becomes known as the value of N. In process P4, it is determined whether the memory N is larger than a predetermined number M, and if N≧M, the process advances to process P5. Processing P
In step 5, interrupts are prohibited, processing is performed without any failure, and a series of failure diagnosis processing is completed. On the other hand, when N≧M does not hold, that is, when the number of interrupt processing times N does not reach the predetermined number M, the process advances to process P6 and reads the countdown value of timer 2 (the read value is hereinafter referred to as Y2 ). In process P7, Y2 is compared with a predetermined determination value A, and when A≦ Y2 , the process returns to process P4. If A≦Y 2 is not true, that is, if the number of interrupts does not reach M or more within the time it takes for timer 2 to count down to the judgment value A, it is assumed that there is an abnormality in the device, and a failure is displayed in process P8. do.

第3図は割込処理のフローチヤートである。処
理P10により、メリNが0であるか否かを判断
をする。N=0のときは処理P11に進み、Nの
値を1増加させる。処理P12ではタイマ3に時
間Y3I後に零になるよう直線的にY3Iからカウント
ダウンを開始させる値Y3Iの設定をし、当該割込
処理を終了する。一方、処理P10でN≠0と判
断されたときは処理13に進み、タイマ3のカウ
ントダウン値を読込む(以下読込み値をY3と記
す)。処理P14において、X≧Y3≧Zの判断を
し、イエスのときは処理P11に進み、ノーのと
きは処理P15に進み、X及びYで定められる範
囲にカウントダウン値Y3が存在せず、装置に異
常があることを表示する。
FIG. 3 is a flowchart of interrupt processing. In process P10, it is determined whether the merit N is 0 or not. When N=0, the process advances to process P11 and the value of N is increased by 1. In process P12, a value Y 3I is set in the timer 3 to start counting down linearly from Y 3I so that it becomes zero after a time Y 3I , and the interrupt process ends. On the other hand, when it is determined in process P10 that N≠0, the process proceeds to process 13 and reads the countdown value of timer 3 (hereinafter the read value will be referred to as Y3 ). In process P14, it is determined that X≧Y 3 ≧Z, and if yes, proceed to process P11; if no, proceed to process P15, and if countdown value Y 3 does not exist within the range defined by X and Y, Indicates that there is a problem with the device.

第4図は、以上のように構成されたプログラム
の下でbに示されるような一定周期Tを持つた割
込要求信号を割込コントローラ4へ供給した場合
タイマ2,3及びメモリNの変化状態を表わすタ
イミングチヤートであり、横軸に時間tを縦軸に
夫々のカウント値をとつている。ただし、割込は
bに示される割込コントローラ4から出力される
信号の立ち上り時点でなされるものとする。
FIG. 4 shows the changes in timers 2, 3 and memory N when an interrupt request signal with a constant period T as shown in b is supplied to the interrupt controller 4 under the program configured as described above. This is a timing chart showing the state, with time t on the horizontal axis and respective count values on the vertical axis. However, it is assumed that the interrupt is made at the rising edge of the signal output from the interrupt controller 4 shown in b.

第4図cに示すように、時刻t0でメインプログ
ラムの処理P2(タイマ2の設定)が実行される
と、タイマ2のカウント値Y3は、カウントの進
行により、即ち時間と共に一定の傾きをもつて減
少していく。時刻t1までは、割込に基づく、タイ
マ3の設定が実行されていないため、第4図aに
破線で示すようにタイマ3のカウント値Y3は不
定である。、時刻t1で割込コントローラ4の信号
が立ち上るので、割込がかけられ、タイマ3のカ
ウント値Y3はaに示されるようにある値Y3Iに設
定される。その後、時間と共に一定の傾きをもつ
て減少していく。dはメモリNの変化状態を示
す。
As shown in Figure 4c, when the main program's process P2 (setting of timer 2) is executed at time t0 , the count value Y3 of timer 2 has a constant slope as the count progresses, that is, with time. It decreases with . Until time t1 , the setting of timer 3 based on the interrupt has not been executed, so the count value Y3 of timer 3 is indefinite, as shown by the broken line in FIG. 4a. , the signal from the interrupt controller 4 rises at time t 1 , an interrupt is generated, and the count value Y 3 of the timer 3 is set to a certain value Y 3I as shown in a. After that, it decreases with a constant slope over time. d indicates the changing state of the memory N.

しかる後、時刻t2において再度割込がかけられ
ると、プロセツサ1はこれに応答してその時点の
タイマ3のカウント値Y3を読取り、所定の設定
値X,Yと比較する。カウント値Y3に対して Z≦Y3≦X が成立する場合は、装置は正常に機能しているも
のとして、再び値Y3Iをタイマ3に設定し、以上
説明の動作を反復する。従つて、タイマ3の内容
は、aで示されるような変化をする。しかるに、
bに示すように、周期的な割込がなされているに
も拘らず、割込が不規則に実行され、タイマ3の
カウント値Y3が Y3>X 又は Y3<Z となつてしまつた場合、即ち第5図で示されるよ
うに Z≦Y3≦X の範囲外となつてしまつている場合は、割込処理
機能に故障があると判断し、第3図の処理15に
より故障を表示する。
Thereafter, when an interrupt is issued again at time t2 , processor 1 responds by reading the count value Y3 of timer 3 at that time and comparing it with predetermined set values X and Y. If Z≦Y 3 ≦X holds true for the count value Y 3 , it is assumed that the device is functioning normally, and the value Y 3I is set in the timer 3 again, and the operations described above are repeated. Therefore, the contents of timer 3 change as shown by a. However,
As shown in b, even though periodic interrupts are being made, the interrupts are executed irregularly, and the count value Y 3 of timer 3 becomes Y 3 >X or Y 3 <Z. In other words, if it is outside the range of Z≦Y 3 ≦X as shown in Figure 5, it is determined that there is a failure in the interrupt processing function, and the failure is detected by processing 15 in Figure 3. Display.

以上のように、この発明によれば、割込プログ
ラムの実行中にタイマ及び割込機能が正常である
ことを判断し、その正常な割込処理に基づいてメ
インプログラムの実行時における故障を判断する
ので、故障診断をきわめて正確にすることができ
る。また、割込コントローラ及びタイマを用いて
故障診断を行なつているために特別な装置を必要
とすることなく、しかも充分な故障自己診断結果
を得られると云う効果がある。
As described above, according to the present invention, it is determined that the timer and interrupt functions are normal during execution of the interrupt program, and a failure during execution of the main program is determined based on the normal interrupt processing. Therefore, fault diagnosis can be made extremely accurate. Further, since fault diagnosis is performed using an interrupt controller and a timer, there is no need for any special equipment, and there is an advantage that sufficient fault self-diagnosis results can be obtained.

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

第1図はプロセツサの構成を示す構成図、第2
図はメインプログラムのフローチヤート、第3図
は割込処理プログラムのフローチヤート、第4図
は装置に故障がない時の各部の状態を示すタイミ
ングチヤート、第5図は装置に故障があつたとき
の各部分の状態を示すタイミングチヤートであ
る。 1……プロセツサ、2,3……タイマ、4……
割込コントローラ。
Figure 1 is a block diagram showing the configuration of the processor;
The figure is a flowchart of the main program, Figure 3 is a flowchart of the interrupt processing program, Figure 4 is a timing chart showing the status of each part when there is no failure in the equipment, and Figure 5 is a diagram when there is a failure in the equipment. This is a timing chart showing the status of each part. 1... Processor, 2, 3... Timer, 4...
Interrupt controller.

Claims (1)

【特許請求の範囲】[Claims] 1 割込禁止の解除により割込要求を受付けられ
るようになるプロセツサと、前記プロセツサが設
定した値を初期値とし該初期値から設定時間後に
零になるよう直線的にカウントダウンし、且つ、
そのカウントダウン値を前記プロセツサが読込め
る第1タイマおよび第2タイマと、前記プロセツ
サに所定周期で割込要求を出力する割込コントロ
ーラと、割込み処理実行の都度メモリ値を1増加
させる前記プロセツサに内蔵されたメモリを有
し、メインプログラムの実行で前記メモリ値を零
とした後、前記第1タイマに初期値を設定して該
第1タイマにカウントダウンを開始させ、その
後、前記プロセツサに割込禁止の解除を行なつて
割込要求を受け付けさせるようにし、前記第1タ
イマがある値以下にカウントダウンするまでに前
記メモリ値が所定の値以上にならない場合、タイ
マもしくは割込機能に故障があると判断し、割込
プログラムの実行中で前記第2タイマに初期値を
設定して該第2タイマにカウントダウンを開始さ
せ、次回の割込処理時に前記第2タイマのカウン
トダウンした値が所定の範囲内に収まつているこ
とを条件にタイマ及び割込機能が正常であると判
断することを特徴とするデータ処理装置の故障診
断方法。
1. A processor that becomes able to accept interrupt requests by canceling interrupt prohibition, and a value set by the processor as an initial value, and a linear countdown from the initial value to zero after a set time, and
A first timer and a second timer whose countdown values can be read by the processor, an interrupt controller that outputs an interrupt request to the processor at a predetermined period, and a controller built in the processor that increases a memory value by 1 each time an interrupt process is executed. After the memory value is set to zero by executing the main program, an initial value is set in the first timer to cause the first timer to start counting down, and then the processor is disabled from interrupts. If the memory value does not exceed a predetermined value by the time the first timer counts down to a certain value, it is determined that there is a failure in the timer or the interrupt function. determine, set an initial value to the second timer during execution of the interrupt program, cause the second timer to start counting down, and at the next interrupt processing, the counted down value of the second timer is within a predetermined range. 1. A failure diagnosis method for a data processing device, characterized in that a timer and an interrupt function are determined to be normal on the condition that the timer and interrupt functions are within the above range.
JP58099774A 1983-06-02 1983-06-02 Fault diagnosis method of data processor Granted JPS59223860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58099774A JPS59223860A (en) 1983-06-02 1983-06-02 Fault diagnosis method of data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58099774A JPS59223860A (en) 1983-06-02 1983-06-02 Fault diagnosis method of data processor

Publications (2)

Publication Number Publication Date
JPS59223860A JPS59223860A (en) 1984-12-15
JPS6342297B2 true JPS6342297B2 (en) 1988-08-23

Family

ID=14256302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58099774A Granted JPS59223860A (en) 1983-06-02 1983-06-02 Fault diagnosis method of data processor

Country Status (1)

Country Link
JP (1) JPS59223860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02109490U (en) * 1989-02-21 1990-08-31

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63221437A (en) * 1987-03-11 1988-09-14 Alps Electric Co Ltd Detecting system for cpu runaway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5835291B2 (en) * 1978-12-29 1983-08-02 富士通株式会社 Automatic reset device for microprocessor runaway
JPS57134757A (en) * 1981-02-12 1982-08-20 Matsushita Electric Ind Co Ltd Self-diagnosis system for microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02109490U (en) * 1989-02-21 1990-08-31

Also Published As

Publication number Publication date
JPS59223860A (en) 1984-12-15

Similar Documents

Publication Publication Date Title
US4072852A (en) Digital computer monitoring and restart circuit
CA1257908A (en) Watchdog timer
GB2065939A (en) Arrangement having a programmabel electrical circuit and monitoring menas
JPH0341853B2 (en)
JPS6342297B2 (en)
JPS59180463A (en) System of reading revolutions of engine
JPH09114541A (en) Interrupt generation time confirmation circuit, processor
JPH04283840A (en) Diagnostic method for information processor
JP2852156B2 (en) Self-diagnosis method for IC inspection device
JP3387175B2 (en) Time erroneous measurement prevention device
JPH02150942A (en) Bus abnormality detecting circuit
JP3145937B2 (en) Runaway detection method for microcomputer
JPS59205613A (en) Sequence monitor device
JPS6051141B2 (en) Program runaway detection method
JPS62152048A (en) Runaway monitoring circuit
JPH0635998B2 (en) Capture device
JPS6253712B2 (en)
JPS62175848A (en) Monitor system for input and output action of data processing system
JPS6363932B2 (en)
JP2818437B2 (en) Fault detection circuit
JP2770051B2 (en) Input/Output Control Unit
JPH05191496A (en) Failure diagnosis method
JPH0259947A (en) Automatic diagnostic system for input/output device
JPH0630055B2 (en) Information processing equipment
JPS59162484A (en) Device for diagnosing scram recording device