JPS61180338A - Interruption input device - Google Patents

Interruption input device

Info

Publication number
JPS61180338A
JPS61180338A JP1973585A JP1973585A JPS61180338A JP S61180338 A JPS61180338 A JP S61180338A JP 1973585 A JP1973585 A JP 1973585A JP 1973585 A JP1973585 A JP 1973585A JP S61180338 A JPS61180338 A JP S61180338A
Authority
JP
Japan
Prior art keywords
circuit
input
interrupt
signal
cpu1
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1973585A
Other languages
Japanese (ja)
Inventor
Takeo Fujimura
藤村 武夫
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1973585A priority Critical patent/JPS61180338A/en
Publication of JPS61180338A publication Critical patent/JPS61180338A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Abstract

PURPOSE:To obtain an interruption input device containing a self-diagnosis function which can detect quickly a trouble a simple constitution, by checking periodically each interruption input accepting circuit through a CPU. CONSTITUTION:An interruption input accepting circuit 32 supplies an interruption signal through an input/output device and delivers the interruption data D1-Dn and an interruption interrupting signal to a CPU1. Then the circuit 32 receives the factor reset signals R1-Rn from the CPU1. A check data output circuit 33 supplies the check data to the input side of the circuit 32 by the signal sent from the CPU1. The 1st switch SW1 controls the actuation of the circuit 33 which is driven by the signal given from the CPU1. While the 2nd switch SW2 is connected to a common line of the input/output device and controls the actuation of an input/output circuit with the signal given from the CPU1. The CPU1 checks periodically the circuit 32 to check quickly the troubles of those circuits.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明fl、  Ilo (Inputloutput
)から出力された割込信号をコンビエータ(CPU)へ
伝達する割込入力装置に関する。更に詳しくは、本発明
は、自己診断機能を有した割込入力装置に関するもので
ある。
[Detailed Description of the Invention] (Industrial Application Field) The present invention fl, Ilo (Inputoutput
) The present invention relates to an interrupt input device that transmits an interrupt signal output from a combiator (CPU) to a combiator (CPU). More specifically, the present invention relates to an interrupt input device having a self-diagnosis function.

(従来の技術) 従来よシ、種々の割込入力装置があるが、いずれのもの
も割込入力装置自身の故@を発見できるように構成され
たものはなかった。
(Prior Art) There have been various interrupt input devices in the past, but none of them have been configured to be able to discover the faulty @ of the interrupt input device itself.

(発明が解決しようとする問題点) 割込入力装置は、割込入力のリクエスト時に機能するも
ので、これが故障すると割込機能が働かなくなり、シス
テムの信頼性を著しく低下させる。
(Problems to be Solved by the Invention) The interrupt input device functions when an interrupt input is requested, and if this device malfunctions, the interrupt function will not work, significantly reducing the reliability of the system.

割込入力装置を二重化すれば、信頼性を向上させること
が可能であるが、構成が複雑となるという問題点がある
。  、 本発明は、従来技術におけるこのような問題点に鑑みて
なされたもので、その目的は、簡単な構成で、故障の発
見を迅速に行なうことのできる自己診断機能を有した割
込入力装置を実現しようとするものである。
Although it is possible to improve reliability by duplicating the interrupt input device, there is a problem in that the configuration becomes complicated. The present invention has been made in view of these problems in the prior art, and its purpose is to provide an interrupt input device that has a simple configuration and has a self-diagnosis function that can quickly discover failures. This is what we are trying to achieve.

(問題点を解決するための手段) 前記した問題点を解決する本発明は、入出力装置から出
力される割込信号?入力しコンピュータに割込データと
割込インターラット信号とを出力するとともに前記コン
ピュータから要因リセット信号を受ける割込入力受付回
路と、前記コンピュータからの信号によって前記割込入
力受付回路の入力側にチェックデータを入力させるチェ
ックデータ出力回路と、前記コンビ二一夕からの信号に
よって駆動さh前記チェックデータ出力回路の動作、非
動作を制御する第1のスイッチと、前記入出力装置のコ
モンラインに接続され当該入出力回路の動作、非動作を
前記コンピュータからの信号によって制御する第2のス
イッチとを備えて構成される。
(Means for Solving the Problems) The present invention that solves the above-mentioned problems is based on an interrupt signal output from an input/output device. an interrupt input reception circuit that inputs and outputs interrupt data and an interrupt interlat signal to the computer, and receives a factor reset signal from the computer; and a check mark on the input side of the interrupt input reception circuit according to the signal from the computer. A check data output circuit for inputting data; a first switch driven by a signal from the combination unit; and a first switch for controlling operation/non-operation of the check data output circuit; and a first switch connected to the common line of the input/output device. and a second switch that controls the operation or non-operation of the input/output circuit by a signal from the computer.

(実施例) 第1図は、本発明に係る装置の一例を示す構成ブロック
図である。図において、1はCPUであって、一般的な
コンビエータあるいはマイクロコンピュータのようなも
のである。21 + 22 e 2 nは割込入力信号
を出力する入力回路で、例えば接点が用いられ、接点が
オフ状態からオン状態に変化した時、あるいは、直流電
圧のレベルが′H#レベルから1Lルベルに変化した時
をもって、割込みをリクエストする。3[CP U 1
と各入力回路21〜2nとの間に設けられた本発明の割
込入力装置である。この割込入力装置3において、31
は割込入力信号が印加される入力端子、32は入力端子
31に印加された割込信号を入力する割込人力受付回路
で、この回路はラッチ回路を含んで構成されており、C
PU1に割込データD、及び割込インターラット信号I
Tを出力するとともに、CPU1から要因リセット信号
R1を受けている。33iチ工ツクデータ出力回路で、
例えばスイッチ素子として働くトランジスタTrヲ含ん
で構成されておp、CPUIからの信号によって対応す
る割込入力回路32の入力側にチェックデータを入力さ
せる。各割込入力受付回路32及び、チェックデータ出
力回路33ij、、それぞれ各入力回路21.22・・
・2nに対応してす1からすnまで複数個(n個)設け
られている。SWI U第1のスイッチで、各チェック
データ出力回路33のトランジスタTrのエミッタに共
通に接続されておシ、各チェックデータ出力回路の動作
、非動作を制御する。34は第1のスイッチSW1の駆
動回路で、CPU1からの信号が印加される。sw2は
第2のスイッチで、各入力回路21〜2nのコモンライ
ンが共通に接続され、各入力回路の動作、非動作を制御
する。35は第2のスイッチsw2の駆動回路で、例え
ばラッチ回路が用いられ、CPUIからの信号が印加さ
れる。
(Example) FIG. 1 is a configuration block diagram showing an example of an apparatus according to the present invention. In the figure, 1 is a CPU, which is like a general combinator or microcomputer. 21 + 22 e 2 n is an input circuit that outputs an interrupt input signal, for example, when a contact is used and the contact changes from an OFF state to an ON state, or when the DC voltage level changes from 'H# level to 1L level. An interrupt is requested when the value changes to . 3 [CPU 1
This is an interrupt input device of the present invention provided between the input circuits 21 to 2n and each of the input circuits 21 to 2n. In this interrupt input device 3, 31
32 is an input terminal to which an interrupt input signal is applied; 32 is an interrupt manual acceptance circuit that inputs the interrupt signal applied to the input terminal 31; this circuit is configured including a latch circuit;
Interrupt data D and interrupt interlat signal I to PU1
It outputs T and also receives a factor reset signal R1 from the CPU1. 33i chip data output circuit,
For example, it is configured to include a transistor Tr that functions as a switching element, and inputs check data to the input side of the corresponding interrupt input circuit 32 in response to a signal from the CPUI. Each interrupt input reception circuit 32, each check data output circuit 33ij, each input circuit 21, 22, etc.
- A plurality of (n) numbers from 1 to 2n are provided corresponding to 2n. The first switch SWI U is commonly connected to the emitter of the transistor Tr of each check data output circuit 33, and controls the operation or non-operation of each check data output circuit. 34 is a drive circuit for the first switch SW1, to which a signal from the CPU1 is applied. sw2 is a second switch to which the common lines of the input circuits 21 to 2n are connected in common, and controls the operation and non-operation of each input circuit. 35 is a drive circuit for the second switch sw2, for example, a latch circuit is used, and a signal from the CPUI is applied.

36は第1のスイッチsw1のオン、オフ状態を読込む
回路、37は第2のスイッチsw2のオン、オフ状態を
読込む回路で、いずれも読込んだ信号はCPUIに印加
されている。第2のスイッチは、装置の動作チェックを
行なっている時間、コモンラインをオフとし、人出カ回
路21〜2nからの割込要求を受付けないようにしてい
る。
36 is a circuit that reads the on/off state of the first switch sw1, 37 is a circuit that reads the on/off state of the second switch sw2, and the read signals are applied to the CPUI. The second switch turns off the common line during the time when the operation of the device is being checked, and does not accept interrupt requests from the people output circuits 21 to 2n.

このように構成された装置において、CPU1は各割込
人力受付回路32を定周期でチェックすることによって
、これらの各回路の故障を迅速に発見するものである。
In the device configured in this manner, the CPU 1 checks each interrupt manual acceptance circuit 32 at regular intervals to quickly discover failures in each of these circuits.

以下、動作の詳細を第2図に示すフローチャートに従っ
て説明する。
The details of the operation will be explained below according to the flowchart shown in FIG.

CPUIは、まずはじめに、第1.第2のスイッチSW
1 、 SW2を各駆動回路34.35を介してオフに
駆動するとともに、各チェックデータ出力回路33にオ
フデータを出力する(ステップ1、以下ステップをsp
と略す)。続いて、第1.第2のスイッチsw1 、 
sw2のオン、オフ状態を各読込回路36.371に介
して読込む(SF3)。次に第1゜第2のスイッチがオ
ンかオフかを判断する(sp3)。これまでのSP1〜
SP3はチェックのための準備工程である。sp3にお
いて、オフ(YES)と判断されれは、各スイッチsw
1 、 sw2は正常であるとし、sp5に移り、また
オン(No)と判断されると、sp4 に移り、ここで
、スイッチが不良である旨のメツセージを例えば図示し
てないプリンタ等に出力する。
First of all, the CPUI has 1. Second switch SW
1. Drive SW2 to OFF via each drive circuit 34, 35, and output OFF data to each check data output circuit 33 (Step 1, hereinafter referred to as SP).
). Next, the first. second switch sw1,
The on/off state of sw2 is read through each reading circuit 36,371 (SF3). Next, it is determined whether the first and second switches are on or off (sp3). SP1 so far~
SP3 is a preparation process for checking. In sp3, if it is determined to be off (YES), each switch sw
1. Assuming that sw2 is normal, the process moves to sp5, and if it is determined to be on (No), the process moves to sp4, where a message indicating that the switch is defective is output to, for example, a printer (not shown). .

sp5では、各割込入力受付回路32から出力されてい
る割込データD、〜Dnt−読込み、SP6においで、
sp5で読込んた各割込データD、〜籟が全てオフかど
うか判断する。ここで、YESであれは5PjQに移り
、NOであれはsp7で割込みが入っているかどうかを
割込インタラブド信号ITによって判断し、割込みが入
っていればspB  で通常の割込処理ルーチンを呼び
出し、割込処理を実行する。また、SP7において、割
込みが入っていないと判断されると、SP9に移シ、こ
こで、1′の状態にあるデータを不良、すなわち1′の
データを出力している割込入力受付回路が不良とする旨
のメツセージを出力する。
In sp5, interrupt data D, ~Dnt- outputted from each interrupt input acceptance circuit 32 is read, and in SP6,
It is determined whether each of the interrupt data D, . . . , read in sp5 are all off. If the answer is YES, the process moves to 5PjQ, and if the answer is NO, it is determined in sp7 whether or not an interrupt has occurred using the interrupt interwoven signal IT, and if an interrupt has occurred, the normal interrupt handling routine is called in spB. Execute interrupt processing. If it is determined in SP7 that there is no interrupt, the process moves to SP9, where it is determined that the data in the 1' state is defective, that is, the interrupt input receiving circuit outputting the data in the 1' state is Outputs a message indicating that it is defective.

sp5〜SP9は、各割込入力受付回路に割込まれてい
ないことの確認工程である。
sp5 to SP9 are steps for confirming that each interrupt input reception circuit is not interrupted.

5pioでは、第1のスイッチswi 1オンにし、続
いて、第1のスイッチSWのオン、オフ状態を読込み(
spll)、swlがオンであるかどうか判断するfs
p12)。 5P12において、swlがオン(YES
 ]  と判断されnば5p14に移り、swiがオフ
(NO)と判断されると、swI不良(オープン)とし
てメツセージを出力する(SP131゜spl 4で、
割込チェックモードにし、続いて、各チェックデータ出
力回路33の全てにオンデータを出力する(spl5)
、  そして、所定のt時間(mS又はμs程度)待っ
て(SP16)、各チェックデータ出力回路33の全て
にオフデータを出力するとともに、第1のスイッチ5W
11にオフとする(spl 7 )。続いて、5P18
において、割込みが入り次か否か判断し、割込みが入っ
でいないと判断されると、割込コントロールが不良であ
る旨のメツセージを出力する(SP20)。割込みが入
っていると判断されると、各割込入力受付回路32から
の割込人力り、〜Dnを読込み(SP2o)、続いて当
該割込入力データD、〜Dnが全てオンか否か判断する
( 5P21 )。ここで、ひとつでもオフのデータが
あれば、当該万フのデータを出方しfc割込入力受付回
路が不良として、その旨?示すメツセージを出力する(
 5P22)。5p21において、データD、〜Dnが
全チオンであれば(YES)、5P25VC移り、ここ
で谷割込入力受付回路33にリセット信号R9,〜Rn
を出力し、枕いて割込入ヵデータD、〜へヲ読込み(5
P24)、当該読込んだデータD、〜Dnが全てオフか
否か判断する( 5P25)。ここで、ひとつでもオン
のデータがあれば、当該オンのデータを出力した割込入
力受付回路が不良として、その旨を示すメツセージを出
力する( 5P26)。
In 5pio, turn on the first switch swi 1, then read the on/off state of the first switch SW (
spll), fs to determine if swl is on
p12). At 5P12, swl is on (YES
] If it is determined that swi is off (NO), a message is output as swi is defective (open) (SP131°spl 4,
Set to interrupt check mode, and then output ON data to all check data output circuits 33 (spl5)
, Then, after waiting for a predetermined time t (about mS or μs) (SP16), off data is output to all of the check data output circuits 33, and the first switch 5W
11 (spl 7). Next, 5P18
At step SP20, it is determined whether or not an interrupt has occurred, and if it is determined that no interrupt has occurred, a message indicating that the interrupt control is defective is output (SP20). When it is determined that an interrupt has occurred, the interrupt input data D and ~Dn from each interrupt input reception circuit 32 are read (SP2o), and then it is checked whether or not all of the relevant interrupt input data D and ~Dn are on. Judge (5P21). Here, if even one data is off, the relevant data is output and the fc interrupt input reception circuit is considered to be defective. output a message indicating (
5P22). At 5p21, if the data D, ~Dn are all on (YES), the process moves to 5P25VC, where the reset signal R9, ~Rn is sent to the valley interrupt input reception circuit 33.
Output and read the interrupt data D to ~ (5
P24), it is determined whether the read data D, -Dn are all off (5P25). Here, if there is any ON data, the interrupt input receiving circuit that outputs the ON data is considered defective and outputs a message to that effect (5P26).

以上5P10〜5P25は、各割込入力受付回路のチェ
ックを行なう工程である。
The above steps 5P10 to 5P25 are steps for checking each interrupt input reception circuit.

S P 25において、データD、〜Dnが全てオフで
あれば、割込チェックモードを解除しく 5P27)、
第2のスイッチsw21オンとしく5P28) 、この
スイッチsw2の状態を読込む(sp29)。そして第
2のスイッチsw2がオンか否か判断しく s p 3
0)、sw2がオフであれば、このスイッチSW2が不
良であるとし、その旨を示すメツセージを出力する(S
P31)。また、SW2がオンであれば、割込入力装[
3のすべてが正常動作していると判断し、5P32に移
り、通常割込処理に移行する。以上5P27〜5P32
は、外部からの正規な割込を受付ける準備のための工程
である。
In S P25, if data D and ~Dn are all off, interrupt check mode should be canceled. 5P27)
The second switch sw21 is turned on (5P28), and the state of this switch sw2 is read (sp29). Then, it is necessary to judge whether the second switch sw2 is on or not. s p 3
0), if sw2 is off, it is assumed that this switch SW2 is defective, and a message to that effect is output (S
P31). Also, if SW2 is on, the interrupt input device [
It is determined that all of 3 are operating normally, and the process moves to 5P32 to proceed to normal interrupt processing. Above 5P27~5P32
is a process for preparing to accept regular interrupts from outside.

なお、第2図フローチャートでは、入力回路21〜2n
から接点信号が入る場合を想定したものであるが、各入
力回路から、ワンショット信号で入るような場合にも適
用可能である。この場合、第2図フローチャートにおい
て、SP7.8PQ、5P18等の工程を削除すること
で対応できる。
In addition, in the flowchart of FIG. 2, the input circuits 21 to 2n
This assumes a case where a contact signal is input from the input circuit, but it can also be applied to a case where a one-shot signal is input from each input circuit. In this case, it can be dealt with by deleting steps such as SP7.8PQ and 5P18 in the flowchart of FIG.

(発明の効果) 以上説明したように、本発明によれば第2図フローチャ
ートに示すような動作を定周期で行なわせることによっ
て、割込入力装置自身の故障を迅速に発見することがで
きるもので、簡単な構成で信頼性の高いシステムが実現
できる。
(Effects of the Invention) As explained above, according to the present invention, a failure of the interrupt input device itself can be quickly discovered by performing the operations shown in the flowchart of FIG. 2 at regular intervals. A highly reliable system can be realized with a simple configuration.

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

第1図は本発明に係る装置の構成ブロック図、第2図は
動作の一例を示すフローチャートである。 1 ”・CP U   、  21〜2n −入力回路
3・・・割込入力装置  31・・・入力端子32・・
・割込入力受付回路
FIG. 1 is a block diagram of the configuration of the apparatus according to the present invention, and FIG. 2 is a flowchart showing an example of the operation. 1"・CPU, 21~2n - Input circuit 3... Interrupt input device 31... Input terminal 32...
・Interrupt input reception circuit

Claims (1)

【特許請求の範囲】[Claims] 入出力装置から出力される割込信号を入力しコンピュー
タに割込データと割込インターラプト信号とを出力する
とともに前記コンピュータから要因リセット信号を受け
る割込入力受付回路と、前記コンピュータからの信号に
よって前記割込入力受付回路の入力側にチェックデータ
を入力させるチェックデータ出力回路と、前記コンピュ
ータからの信号によって駆動され前記チェックデータ出
力回路の動作、非動作を制御する第1のスイッチと、前
記入出力装置のコモンラインに接続され当該入出力回路
の動作、非動作を前記コンピュータからの信号によって
制御する第2のスイッチとを備えた割込入力装置。
an interrupt input reception circuit that inputs an interrupt signal output from an input/output device, outputs interrupt data and an interrupt interrupt signal to a computer, and receives a factor reset signal from the computer; a check data output circuit that inputs check data to the input side of the interrupt input reception circuit; a first switch that is driven by a signal from the computer and controls the operation or non-operation of the check data output circuit; an interrupt input device comprising: a second switch connected to a common line of the output device and controlling operation/non-operation of the input/output circuit according to a signal from the computer;
JP1973585A 1985-02-04 1985-02-04 Interruption input device Pending JPS61180338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1973585A JPS61180338A (en) 1985-02-04 1985-02-04 Interruption input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1973585A JPS61180338A (en) 1985-02-04 1985-02-04 Interruption input device

Publications (1)

Publication Number Publication Date
JPS61180338A true JPS61180338A (en) 1986-08-13

Family

ID=12007580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1973585A Pending JPS61180338A (en) 1985-02-04 1985-02-04 Interruption input device

Country Status (1)

Country Link
JP (1) JPS61180338A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998011486A1 (en) * 1996-09-12 1998-03-19 Advanced Micro Devices, Inc. System and method for simulating a multiprocessor environment for testing a multiprocessing interrupt controller
US6078972A (en) * 1996-11-06 2000-06-20 Nec Corporation Control system of FIFO memories

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998011486A1 (en) * 1996-09-12 1998-03-19 Advanced Micro Devices, Inc. System and method for simulating a multiprocessor environment for testing a multiprocessing interrupt controller
US6078972A (en) * 1996-11-06 2000-06-20 Nec Corporation Control system of FIFO memories

Similar Documents

Publication Publication Date Title
JPS61180338A (en) Interruption input device
JP2693627B2 (en) Redundant system of programmable controller
JPS6343771B2 (en)
JPH0343836A (en) Vectored interruption control system
JPS6095663A (en) Automatic switching device of dual type magnetic disk device
JPS60251443A (en) Backup device of programmable controller
JPS6113627B2 (en)
JPH05342076A (en) Dual writing filing device
JPH06139028A (en) Disk control system
JPS63248254A (en) Communication control equipment
JPS6228841A (en) Input/output processor
JP2002007220A (en) Multiple memory system
JPH10187473A (en) Duplex information processor
JPH0675653A (en) Computer redundancy control system
JPS6240557A (en) Logout system
JPS63186351A (en) Control system for peripheral device
JPH04168670A (en) Trouble treatment system of magnetic disk
JPS63131234A (en) Diagnosis control system
JPH03209552A (en) Inter-cpu interface device
JPH02212946A (en) Fault informing system for information processor
JPH06274445A (en) Bus adaptor switching system
JPH0298747A (en) Multiple controller
JPH103435A (en) Fault detection method for channel device and input and output controller using the same
JPS597971B2 (en) I/O device control method
JPH0954739A (en) Circuit adapter