JPH0334032B2 - - Google Patents

Info

Publication number
JPH0334032B2
JPH0334032B2 JP56075760A JP7576081A JPH0334032B2 JP H0334032 B2 JPH0334032 B2 JP H0334032B2 JP 56075760 A JP56075760 A JP 56075760A JP 7576081 A JP7576081 A JP 7576081A JP H0334032 B2 JPH0334032 B2 JP H0334032B2
Authority
JP
Japan
Prior art keywords
circuit
counter
output
logic
logic circuit
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 - Lifetime
Application number
JP56075760A
Other languages
Japanese (ja)
Other versions
JPS57192132A (en
Inventor
Yoji Oono
Yoshihiro Sumyama
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.)
Railway Technical Research Institute
Original Assignee
Railway Technical Research Institute
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 Railway Technical Research Institute filed Critical Railway Technical Research Institute
Priority to JP56075760A priority Critical patent/JPS57192132A/en
Publication of JPS57192132A publication Critical patent/JPS57192132A/en
Publication of JPH0334032B2 publication Critical patent/JPH0334032B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/40Monitoring; Error detection; Preventing or correcting improper counter operation

Description

【発明の詳細な説明】 本発明は、周期的な動作を行う論理回路の故障
を検知する方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for detecting failures in logic circuits that operate periodically.

周期的な動作を行う論理回路の故障検知方法と
しては、一般にウオツチドツグタイマが多く用い
られている。この方法は、1組のカウンタ回路に
より論理回路における周期動作の時間的な間隔を
計数し、あらかじめ定められた周期動作時隔以上
の値、すなわちウオツチドツグタイマがタイムア
ツプに至ると異常処理開始のトリガとするもので
あるが、論理回路が正常時には周期動作の都度カ
ウンタが初期セツトされることによりウオツチド
ツグタイマはタイムアツプには至らず、従つてタ
イムアツプ以後における回路の動作が行われない
ため、異常処理開始のトリガとなる回路の故障が
判断できなかつた。
A watchdog timer is generally used as a failure detection method for logic circuits that operate periodically. This method uses a set of counter circuits to count the time intervals of periodic operations in a logic circuit, and when the value exceeds a predetermined periodic operation interval, that is, the watchdog timer times up, abnormality processing starts. However, when the logic circuit is normal, the counter is initially set each time a periodic operation occurs, so the watchdog timer does not reach time-up, and therefore the circuit does not operate after time-up. Therefore, it was not possible to determine the failure of the circuit that would trigger the start of abnormal processing.

上記のようにウオツチドツグタイマのうちの常
時動作していない部分の故障が発見されない状態
で論理回路の故障が発生すると、迅速な出力の抑
止とか、定められた状態に固定出力するなどのフ
エイルセイフな機能は得難く、保安系装置への導
入には大きな制約があつた。
As mentioned above, if a failure occurs in the logic circuit without being detected in the part of the watchdog timer that is not always operating, it is necessary to quickly suppress the output or fix the output to a predetermined state. Fail-safe functions were difficult to obtain, and there were major restrictions on its introduction into security equipment.

本発明は、上記欠点を除去するためになされた
もので、以下、本発明の実施例を図に従つて説明
する。第1図は、本発明の方法を実施するための
回路構成を示すブロツク図で、論理回路1の処理
結果Hを出力回路5に接続するとともに、該論理
回路1からの論理動作終了信号Aを監視回路4に
接続し、該監視回路4からの起動信号Bおよび出
力抑止信号Gをそれぞれ前記論理回路1と前記出
力回路5に接続する。
The present invention has been made to eliminate the above-mentioned drawbacks, and embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a circuit configuration for implementing the method of the present invention, in which a processing result H of a logic circuit 1 is connected to an output circuit 5, and a logic operation end signal A from the logic circuit 1 is connected. It is connected to a monitoring circuit 4, and an activation signal B and an output inhibit signal G from the monitoring circuit 4 are connected to the logic circuit 1 and the output circuit 5, respectively.

またタイマ回路2、カウンタ回路3および前記
監視回路4から成るウオツチドツグタイマの前記
タイマ回路2のタイムアツプ信号Fを前記カウン
タ回路3に接続し、該カウンタ回路3のカウント
アツプ信号Cおよび計数出力信号Dを前記監視回
路4に接続するとともに該監視回路4からのカウ
ンタ計数制御信号Eを前記カウンタ回路3に接続
することにより構成される。
Further, the time-up signal F of the timer circuit 2 of the watchdog timer consisting of the timer circuit 2, the counter circuit 3, and the monitoring circuit 4 is connected to the counter circuit 3, and the count-up signal C and counting output of the counter circuit 3 are connected. It is constructed by connecting the signal D to the monitoring circuit 4 and the counter counting control signal E from the monitoring circuit 4 to the counter circuit 3.

第2図は、第1図の具体的な実施例における前
記論理回路1の動作が正常の場合と前記タイマ回
路2あるいはカウンタ回路3が故障の場合の動作
を説明するためのものである。
FIG. 2 is for explaining the operation in the specific embodiment of FIG. 1 when the logic circuit 1 operates normally and when the timer circuit 2 or the counter circuit 3 is out of order.

前記カウンタ回路3は、前記監視回路4からの
起動信号Bが出力されるさいに、一担初期値がセ
ツトされるとともに、周期的あるいはプリセツト
によりタイムアツプする前記タイマ回路2のタイ
ムアツプ信号Fにより、タイムアツプの都度イン
クリメントされる。この状態において前記論理回
路1の論理動作終了信号Aにより前記監視回路4
が起動されると、該監視回路4は、第2図に示す
ように前記カウンタ回路3の計数出力信号Dを入
力し、この計数値1があらかじめ定められた数値
の範囲内にあれば前記タイマ回路2およびカウン
タ回路3は正常に動作していると判断するととも
に、前記論理回路1の動作周期が正常と判断す
る。
The counter circuit 3 is set to an initial value when the start signal B from the monitoring circuit 4 is output, and is timed up by the time up signal F of the timer circuit 2 which times up periodically or by preset. It is incremented each time. In this state, the logic operation end signal A of the logic circuit 1 causes the monitoring circuit 4 to
When activated, the monitoring circuit 4 inputs the count output signal D of the counter circuit 3 as shown in FIG. It is determined that the circuit 2 and the counter circuit 3 are operating normally, and the operation cycle of the logic circuit 1 is determined to be normal.

次いで前記監視回路4は、前記カウンタ回路3
のカウントアツプ値nから前記計数値1を減算し
た数だけ該カウンタ回路3を前記計数制御信号E
によりインクリメントした後、該カウンタ回路3
からの計数出力信号Dがカウントアツプ値のnに
なつているかを検査し、nになつていれば前記計
数制御信号Eにより前記カウンタ回路3を初期セ
ツトするとともに前記論理回路起動信号Bにより
論理回路1を起動するが、nになつていなければ
該カウンタ回路3が故障と判断して、前記出力抑
止信号Gにより前記出力回路5の外部出力情報I
を、あらかじめ定められた状態(例えば論理
“0”など)に強制出力させ前記論理回路1の起
動を行わない。
Next, the monitoring circuit 4 controls the counter circuit 3
The counter circuit 3 is controlled by the count control signal E by the number obtained by subtracting the count value 1 from the count up value n.
After the counter circuit 3 is incremented by
It is checked whether the counting output signal D from the circuit has reached the count-up value n, and if it has reached n, the counter circuit 3 is initially set by the counting control signal E, and the logic circuit is activated by the logic circuit activation signal B. 1, but if the counter circuit 3 does not reach n, it is determined that the counter circuit 3 is malfunctioning, and the external output information I of the output circuit 5 is activated by the output suppression signal G.
is forcibly output to a predetermined state (for example, logic "0") and the logic circuit 1 is not activated.

また、前記カウンタ回路3の計数値iがあらか
じめ定められた数値の範囲内になければ、前記論
理回路1の論理動作周期に異常があつたと判断
し、前記出力抑止信号Gにより前記出力回路5の
外部出力情報Iをあらかじめ定められた状態に強
制出力させ前記論理回路1の起動を行わない。な
お前記論理回路起動信号Bにより該論理回路1が
起動されると定められた処理動作の結果から出力
情報Hを前記出力回路5に出力し、処理終了とと
もに論理回路動作終了信号Aを前記監視回路4に
出力する。
Further, if the count value i of the counter circuit 3 is not within a predetermined value range, it is determined that there is an abnormality in the logic operation cycle of the logic circuit 1, and the output suppression signal G is used to control the output circuit 5. The external output information I is forced to be output in a predetermined state and the logic circuit 1 is not activated. Note that when the logic circuit 1 is activated by the logic circuit activation signal B, output information H is outputted from the result of the determined processing operation to the output circuit 5, and upon completion of the processing, the logic circuit operation end signal A is sent to the monitoring circuit. Output to 4.

第3図は、前記論理回路1が故障し前記論理動
作終了信号Aが発生しなくなつた場合の動作を説
明するためのものである。
FIG. 3 is for explaining the operation when the logic circuit 1 fails and the logic operation end signal A is no longer generated.

図において、前記論理回路1が故障し前記論理
動作終了信号Aが発生しなくなると、前記カウン
タ回路3は連続に計数されるため、一定時間を経
過するとカウントアツプ値のnに達しカウントア
ツプ信号Cにより前記監視回路4が起動される。
該監視回路4は、前記出力抑止信号Gにより前記
出力回路5の外部出力情報をあらかじめ定めら
れた状態に強制出力させ前記論理回路1の起動を
行わない。
In the figure, when the logic circuit 1 fails and the logic operation completion signal A is no longer generated, the counter circuit 3 continues to count, so that after a certain period of time, the count-up value n is reached and the count-up signal C is reached. Accordingly, the monitoring circuit 4 is activated.
The monitoring circuit 4 forces the output circuit 5 to output external output information in a predetermined state using the output inhibit signal G, and does not activate the logic circuit 1.

本実施例では、前記タイマ回路2の周期動作を
前記監視回路4が前記カウンタ回路3の計数出力
信号Dを監視することにより、該カウンタ回路3
を含めて故障を発見できる他、前記論理回路1の
周期動作時隔をも監視することにより該論理回路
1の異常動作も発見できる。
In this embodiment, the monitoring circuit 4 monitors the count output signal D of the counter circuit 3 to monitor the periodic operation of the timer circuit 2.
In addition to detecting failures including the above, abnormal operation of the logic circuit 1 can also be detected by monitoring the periodic operation time interval of the logic circuit 1.

また正常動作時でも前記カウンタ回路3のカウ
ントアツプ動作の検査を行うため、該カウンタ回
路3の故障も事前に発見することができ、即前記
出力回路5の外部出力情報を定められた状態に
強制出力することができる。
Furthermore, since the count-up operation of the counter circuit 3 is checked even during normal operation, failures in the counter circuit 3 can be detected in advance, and the external output information of the output circuit 5 can be immediately forced to a predetermined state. It can be output.

一方前記監視回路4は、前記論理回路1の動作
停止などの故障が発生すると前記カウンタ回路3
からタイムアツプ信号Cにより故障検知ができ、
しかも本発明におけるウオツチドツグタイマの故
障検知もできるので、きわめて高い確率で前記論
理回路1の故障検知ができ、かつ前記出力回路1
の外部出力情報をあらかじめ定められた状態に
強制出力することができる。
On the other hand, the monitoring circuit 4 monitors the counter circuit 3 when a failure such as a stoppage of the logic circuit 1 occurs.
Failure can be detected by time-up signal C from
Moreover, since it is possible to detect a failure in the watchdog timer according to the present invention, it is possible to detect a failure in the logic circuit 1 with an extremely high probability, and also to detect a failure in the output circuit 1.
External output information can be forced to be output in a predetermined state.

したがつて従来は汎用の論理部品を用いたデジ
タル論理回路は、保安装置への導入が難かしいと
されていたが、本発明の方法を用いることにより
その導入が容易となり保安装置として機能向上小
型化、低価格化および信頼度の向上などが可能と
なる。
Therefore, conventionally, digital logic circuits using general-purpose logic components were thought to be difficult to introduce into security devices, but by using the method of the present invention, they can be easily introduced, and can be used as security devices with improved functionality and small size. This makes it possible to reduce costs, improve reliability, and improve reliability.

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

第1図は本発明の方法を実施するための回路構
成を示すブロツク図、第2図は、第1図の回路構
成における動作を説明するためのフローチヤー
ト、第3図は、論理回路が故障した場合のフロー
チヤートを示す。 1……論理回路、2……タイマ回路、3……カ
ウンタ回路、4……監視回路、5……出力回路。
FIG. 1 is a block diagram showing a circuit configuration for implementing the method of the present invention, FIG. 2 is a flowchart for explaining the operation of the circuit configuration in FIG. The flowchart for this case is shown below. 1...Logic circuit, 2...Timer circuit, 3...Counter circuit, 4...Monitoring circuit, 5...Output circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 論理回路の周期的な動作を監視するためのウ
オツチドツグタイマを、周期タイマまたはプリセ
ツトタイマから成るタイマ回路とカウンタ回路お
よび監視回路から構成し、前記カウンタ回路を前
記タイマ回路と前記監視回路に接続するととも
に、該監視回路を論理回路と出力回路に、さらに
前記論理回路を前記出力回路にそれぞれ接続し、
前記監視回路は、前記論理回路からの周期動作終
了信号を入力する都度、前記カウンタ回路の計数
値を入力し、その計数値がフルカウント以下の定
められた範囲内にある場合には、前記論理回路の
動作と前記タイマ回路および前記カウンタ回路の
計数動作が正常と判断し、さらに該カウンタ回路
をフルカウントまで既知の数だけインクリメント
あるいは加算してフルカウントに至ると前記カウ
ンタ回路のカウントアツプ動作が正常と判断し
て、前記論理回路の次の周期動作を監視するため
の初期値を前記カウンタ回路にセツトするととも
に、前記論理回路を起動して該論理回路と前記ウ
オツチドツグタイマの正常動作を相互で監視する
ようにし、前記カウンタ回路の計数値が定められ
た範囲外の場合には、前記論理回路の故障と判断
し、また前記カウンタ回路がフルカウントに至ら
ない場合には該カウンタ回路のカウントアツプ動
作が故障と判断し、前記出力回路の出力をあらか
じめ定められた状態に強制出力するとともに前記
論理回路を停止させ、さらに前記カウンタ回路が
連続的に計数され、フルカウントに至つた場合に
はこれを前記論理回路の故障として判断し、前記
出力回路の出力をあらかじめ定められた状態に強
制出力するとともに前記論理回路の起動を行わな
いことを特徴とした論理回路の故障検知方法。
1. A watchdog timer for monitoring the periodic operation of a logic circuit is composed of a timer circuit consisting of a periodic timer or a preset timer, a counter circuit, and a monitoring circuit, and the counter circuit is connected to the timer circuit and the monitoring circuit. the monitoring circuit to a logic circuit and an output circuit, and the logic circuit to the output circuit;
The monitoring circuit inputs the counted value of the counter circuit every time the periodic operation end signal from the logic circuit is input, and if the counted value is within a predetermined range below the full count, the monitoring circuit inputs the counted value of the counter circuit. The operation of the counter circuit and the counting operation of the timer circuit and the counter circuit are determined to be normal, and when the counter circuit is incremented or added by a known number until the full count is reached, the count up operation of the counter circuit is determined to be normal. Then, an initial value for monitoring the next periodic operation of the logic circuit is set in the counter circuit, and the logic circuit is activated to ensure normal operation of the logic circuit and the watchdog timer. If the count value of the counter circuit is outside a predetermined range, it is determined that the logic circuit has failed, and if the counter circuit does not reach a full count, the counter circuit performs a count-up operation. is determined to be a failure, the output of the output circuit is forcibly output to a predetermined state and the logic circuit is stopped, and furthermore, when the counter circuit continuously counts and reaches a full count, it is A method for detecting a failure in a logic circuit, characterized in that the failure is determined to be a failure in the logic circuit, the output of the output circuit is forcibly outputted in a predetermined state, and the logic circuit is not activated.
JP56075760A 1981-05-21 1981-05-21 Failure detecting method for logical circuit Granted JPS57192132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56075760A JPS57192132A (en) 1981-05-21 1981-05-21 Failure detecting method for logical circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56075760A JPS57192132A (en) 1981-05-21 1981-05-21 Failure detecting method for logical circuit

Publications (2)

Publication Number Publication Date
JPS57192132A JPS57192132A (en) 1982-11-26
JPH0334032B2 true JPH0334032B2 (en) 1991-05-21

Family

ID=13585499

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56075760A Granted JPS57192132A (en) 1981-05-21 1981-05-21 Failure detecting method for logical circuit

Country Status (1)

Country Link
JP (1) JPS57192132A (en)

Also Published As

Publication number Publication date
JPS57192132A (en) 1982-11-26

Similar Documents

Publication Publication Date Title
JP3633092B2 (en) Microcomputer failure monitoring device
JPH0346854B2 (en)
JPH0632144B2 (en) Environmental abnormality alarm device
US5440725A (en) Microprocessor circuit arrangement with watchdog circuit
JPH0334032B2 (en)
JPH0626894A (en) Abnormality judging device
JP4126849B2 (en) Multi-CPU system monitoring method
KR0125945B1 (en) Method of operating monitoring for processor
JP2680473B2 (en) Watchdog mechanism
JPH0581080A (en) Runaway supervisory device for micro processor
JPH05313955A (en) Cpu abnormality detecting circuit
JPS5855535B2 (en) Multi-computer device for vehicles
JPH04369740A (en) Controller with watch dog timer
JPH03214332A (en) Watch dog timer
JPS6343770B2 (en)
SU881678A1 (en) Device for testing terminals
JPH0418321B2 (en)
JP2548479B2 (en) Computer system operation monitoring method
JPS5834855B2 (en) Computer monitoring method
SU1537856A1 (en) Vibration of limiter for gas-turbine engine
JP2555688Y2 (en) Digital relay monitoring device
JPH04367944A (en) Method and device for detecting fault
SU674073A1 (en) Teleindication system receiving device
JPH0326696Y2 (en)
JPH05189271A (en) Detecting device for abnormality of central processing unit