JPS61267810A - Deciding circuit for detection of service interruption - Google Patents

Deciding circuit for detection of service interruption

Info

Publication number
JPS61267810A
JPS61267810A JP60111421A JP11142185A JPS61267810A JP S61267810 A JPS61267810 A JP S61267810A JP 60111421 A JP60111421 A JP 60111421A JP 11142185 A JP11142185 A JP 11142185A JP S61267810 A JPS61267810 A JP S61267810A
Authority
JP
Japan
Prior art keywords
power outage
interruption
interrupt
service interruption
signal
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
JP60111421A
Other languages
Japanese (ja)
Inventor
Yasushi Fuwa
不破 靖
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 JP60111421A priority Critical patent/JPS61267810A/en
Publication of JPS61267810A publication Critical patent/JPS61267810A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To eliminate the misjudgement of a service interruption by providing plural transmission lines for service interruption detecting signals and deciding no service interruption as long as no other output exists even when an interruption is given from an interruption controller. CONSTITUTION:A service interruption detector 1 monitors the power supply voltage of a system containing a CPU 4 and delivers its detecting signal when a service interruption occurs. The detector 1 is connected to an interruption controller 2 to produce an interruption signal from the service interruption detecting signal. This interruption signal is delivered to the CPU 4. Here an input interface 6 is provided in parallel to the controller 2 and at the same time a service interruption deciding program is provided to the CPU 4. Then the service interruption detecting signal is supplied to the controller 2 and the interface 6. It is decided whether the output of the interface 6 is supplied or not after the CPU 4 received an interruption. Then no service interruption is decided if no output of the interface 6 is detected. Then another routine is executed.

Description

【発明の詳細な説明】 [産業上の利用分野〕 この発明は中央処理装置(CP U)を有するシステム
の停電検出判定回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a power failure detection and determination circuit for a system having a central processing unit (CPU).

〔従来の技術〕[Conventional technology]

第3図は従来の停電検出判定回路の一例を示すブロック
図である。同図において、1は停電検出器テアって、C
PU4を有するシステムの電源電圧を監視して停電発生
時に停電検出信号を出力する。2は割込みコントローラ
であって、停電検出器lと伝送線3aで接続されており
、上記停電検出信号を受けると割込み信号を発生し、該
別込み信号はバス5を介してCPt14に入力ささる。
FIG. 3 is a block diagram showing an example of a conventional power failure detection/judgment circuit. In the same figure, 1 is a power failure detector tare, and C
The power supply voltage of the system including the PU 4 is monitored and a power outage detection signal is output when a power outage occurs. Reference numeral 2 denotes an interrupt controller, which is connected to the power failure detector 1 through a transmission line 3a, and generates an interrupt signal when receiving the power failure detection signal, and the separate signal is input to the CPt 14 via the bus 5. .

ところで、CPU4を含む上記システムの電源が正常な
場合、CPU4は所定のプログラムに基づき各ルーチン
を処理し該システムを安定して機能させているが、上記
電源に停電が起こるとCPU4が暴走し、内蔵するメモ
リの破壊等、特にソセ フトウアに大きな被害をもたらす。このため、停電が発
生し始めると、停電発生をCPU4へ知らせてCPU4
にメモリ退避等の停電対策処理ルーチンを実行させる必
要があり、この停電対策処理ルーチンはバックアップ用
電源あるいはシステム内の各機器のもつ静電容量に貯え
られたエネルギーか無くなる前に実行され、かつ、通常
、ごく短時間で終了させねばならない。
By the way, when the power supply of the system including the CPU 4 is normal, the CPU 4 processes each routine based on a predetermined program and makes the system function stably, but when a power outage occurs to the power supply, the CPU 4 goes out of control. It causes great damage, especially to software, such as destruction of built-in memory. Therefore, when a power outage begins to occur, the occurrence of a power outage is notified to the CPU 4, and the CPU 4
It is necessary to execute a power outage countermeasure processing routine such as saving memory, and this power outage countermeasure processing routine is executed before the energy stored in the backup power supply or the capacitance of each device in the system is used up, and Usually, it must be completed in a very short time.

上記従来例では、上記した電源の正常時には、停電検出
器lは出力しないので、停電検出判定回路は動作しない
、停電が起き始めると、第4図のフローチャートに示す
ように、停電検出器1から停電検出信号が出力され、こ
の停電検出信号は伝送線3aを介して割込みコントロー
ラ2へ伝送される。割込みコントローラ2は割込み信号
をバス5を経由してCPU4に送る。CPU4はこの割
込み信号により停電が発生したことを認識して上記した
停電対策処理ルーチンの実行を開始する。
In the above conventional example, when the above-mentioned power supply is normal, the power failure detector 1 does not output, so the power failure detection judgment circuit does not operate. A power failure detection signal is output, and this power failure detection signal is transmitted to the interrupt controller 2 via the transmission line 3a. The interrupt controller 2 sends an interrupt signal to the CPU 4 via the bus 5. The CPU 4 recognizes that a power outage has occurred based on this interrupt signal, and starts executing the above-described power outage countermeasure processing routine.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の停電検出判定回路は以上のように構成されている
ので、伝送線3aにノイズのったり、割込みコントロー
ラ2が誤動作したりすると、CPU4は停電が発生した
ものと誤判定し上記停電対策処理ルーチンを実行し始め
るので、最悪の場合には、CPU4が、常に、停電対策
処理ルーチンだけを実行し、他のルーチンを実行できな
くなり、システムが機能しなくなるという問題があった
Since the conventional power outage detection/judgment circuit is configured as described above, when noise occurs on the transmission line 3a or the interrupt controller 2 malfunctions, the CPU 4 erroneously determines that a power outage has occurred and performs the power outage countermeasure processing described above. Since the routine starts to be executed, in the worst case, the CPU 4 always executes only the power outage countermeasure processing routine and becomes unable to execute other routines, causing the system to malfunction.

この発明は上記問題を解消するためになされたもので、
ノイズ及び誤動作に強く、信頼性が高い停電検出判定回
路を得ることを目的とする。
This invention was made to solve the above problem.
The purpose of this invention is to obtain a highly reliable power outage detection/judgment circuit that is resistant to noise and malfunction.

〔問題を解決するための手段〕[Means to solve the problem]

この発明は上記目的を達成するため、割込みコントロー
ラと並列に、別の伝送線で接続された1個以上の入力イ
ンターフェイスを設けてCPUとバスとを接続する構成
としたものである。
In order to achieve the above object, the present invention has a configuration in which one or more input interfaces are provided in parallel with the interrupt controller and connected through separate transmission lines to connect the CPU and the bus.

〔作用〕[Effect]

この発明では、割込みコントローラが動作しても、直ち
に停電対策処理に入ることはなく、入力インターフェイ
スの信号を確認してから、上記停電対策処理ルーチンに
入るので、割込みコントローラが誤動作してもCPtJ
が誤認識する恐れはない。
In this invention, even if the interrupt controller operates, the power outage countermeasure processing routine is not immediately entered, but after checking the input interface signal, the power outage countermeasure processing routine is entered, so even if the interrupt controller malfunctions, the CPtJ
There is no risk of misidentification.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示したもので、割込はコ
ントローラ2に並列する入力インターフェイス6を有し
、CPU4が第2図に示す停電判定プログラムを有して
いる点において第3図の従来のものと相違する。入力イ
ンターフイエイス6は伝送線3bで停電検出器lと接続
されると共にバス5を介してCPU4に適当なアドレス
割付けによりソフトウェア的にも接続されている。
FIG. 1 shows one embodiment of the present invention, in which the interrupt has an input interface 6 parallel to the controller 2, and the CPU 4 has a power failure determination program shown in FIG. This is different from the conventional one shown in the figure. The input interface 6 is connected to the power failure detector 1 via a transmission line 3b, and is also connected to the CPU 4 via a bus 5 in terms of software by appropriate address assignment.

次に、この回路の動作を第2図に示すフローチートを参
照して説明する。
Next, the operation of this circuit will be explained with reference to the flow chart shown in FIG.

停電検出器lが停電検出信号を発生すると、割込みコン
トローラ2が割込み信号を作成してバス5にのせるが、
入力インターフェイス6も伝送線3bを介し停電検出信
号を受けて出力する。CPU4は割込みコントローラ2
側からの割込みを受けた場合、入力インターフイエス6
の出力が入力されているか否かを判定し、入力されてい
る場合には、停電が発生したものと判定して、前記した
停電対策処理ルーチンを実行する。
When the power failure detector l generates a power failure detection signal, the interrupt controller 2 creates an interrupt signal and puts it on the bus 5.
The input interface 6 also receives and outputs a power failure detection signal via the transmission line 3b. CPU4 is interrupt controller 2
If an interrupt is received from the input interface 6
If the output is input, it is determined that a power outage has occurred, and the above-described power outage countermeasure processing routine is executed.

しかし、入力インターフェイス6の出力が「無」である
場合には、上記割込みがあっても、停電対策処理ルーチ
ンは実行せず、他のルーチン、例えば、割込み前のルー
チンに戻る。
However, if the output of the input interface 6 is "no", the power failure countermeasure processing routine is not executed even if the above-mentioned interrupt occurs, and the process returns to another routine, for example, the routine before the interrupt.

即ち、割込みコントローラ2側からの割込みがあっても
、これが、伝送線3aに侵入したノイズや割込みコント
ローラ2の誤動作に基づくものである場合には、停電で
はないと判定して、他のルーチンを実行する。
That is, even if there is an interrupt from the interrupt controller 2 side, if it is due to noise that has entered the transmission line 3a or a malfunction of the interrupt controller 2, it is determined that there is no power outage and other routines are executed. Execute.

なお、上記実施例では、入力インターフェイス2の出力
の有無を1回だけ判定するプログラムとなっているが、
周囲条件等によっては、複数回判定する多多数決判定処
理を行わせるようにしてもよい。
Note that in the above embodiment, the program determines the presence or absence of an output from the input interface 2 only once.
Depending on the surrounding conditions, etc., a majority decision process may be performed in which the determination is made multiple times.

また、上記実施例では、入力インターフエイスを1個だ
け用いる場合について説明したが、複数個の入力インタ
ーフェイスをそれぞれ個別の伝送線を回して停電検出器
1に接続するようにすれば、信頼性をより高めることが
できる。
Further, in the above embodiment, the case where only one input interface is used has been described, but reliability can be improved by connecting a plurality of input interfaces to the power outage detector 1 through individual transmission lines. It can be increased further.

〔発明の効果〕〔Effect of the invention〕

この発明は以上説明した通り、停電検出信号をのせる伝
送線を複数とし、−の伝送線に接続される割込みコント
ローラ側からの割込みがあっても、他の伝送線に接続さ
れる入力インターフェイスの出力が有でない場合は、停
電でないと判定する構成としたことにより、前記したノ
イズや誤動作が発生しても、CPUが誤判定することが
防止され、従来に比し、信頼性を高めることができる。
As explained above, this invention has a plurality of transmission lines carrying a power failure detection signal, and even if there is an interrupt from the interrupt controller side connected to the negative transmission line, the input interface connected to other transmission lines By adopting a configuration in which it is determined that there is no power outage if there is no output, even if the above-mentioned noise or malfunction occurs, the CPU is prevented from making a false determination, and reliability can be improved compared to the past. can.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は上記実施例の動作を説明するためのフローチャート、
第3図は従来の停電検出判定回路のブロック図、第4図
は従来例の動作を説明するためのフローチャートである
。 図において、1−・・停電検出器、2−割込みコントロ
ーラ、3a、3b−伝送線1.l−CP U 、 5−
・・バス、6−人力インターフェイス。 なお、図中、同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart for explaining the operation of the above embodiment,
FIG. 3 is a block diagram of a conventional power failure detection/judgment circuit, and FIG. 4 is a flowchart for explaining the operation of the conventional example. In the figure, 1--power failure detector, 2--interrupt controller, 3a, 3b-transmission lines 1. l-CPU, 5-
...Bus, 6-Human interface. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.

Claims (2)

【特許請求の範囲】[Claims] (1)中央処理装置を有するシステムの電源電圧を監視
して停電発生時に停電検出信号を送出する停電検出器、
該停電検出器と伝送線を介して接続され上記停電検出信
号を受けると割込み信号をバスを介して上記中央処理装
置に送出する割込みコントローラを有し、上記中央処理
装置が上記割込みコントローラ側からの信号の割込みに
より停電対策処理ルーチンを実行する停電検出判定回路
において、上記停電検出器の出力が上記とは別の伝送線
を介して導かれる入力インターフェイスを有し、該入力
インターフェイスは上記中央処理装置にバスを介し接続
されて該中央処理装置の所定のアドレスに割付けられ、
上記中央処理装置は、上記割込みよる上記停電対策処理
ルーチンを、上記入力インターフェイスの出力が有であ
る時に実行させ、無である時に他のルーチンを実行させ
る停電判定プログラムを内蔵していることを特徴とする
停電検出判定回路。
(1) A power outage detector that monitors the power supply voltage of a system that has a central processing unit and sends out a power outage detection signal when a power outage occurs;
An interrupt controller is connected to the power outage detector via a transmission line and sends an interrupt signal to the central processing unit via the bus upon receiving the power outage detection signal, and the central processing unit receives the interrupt signal from the interrupt controller side. A power outage detection/judgment circuit that executes a power outage countermeasure processing routine based on a signal interruption has an input interface through which the output of the power outage detector is guided via a transmission line different from the above, and the input interface is connected to the central processing unit. connected to via a bus and assigned to a predetermined address of the central processing unit,
The central processing unit has a built-in power outage determination program that executes the power outage countermeasure processing routine using the interrupt when the output of the input interface is present, and executes another routine when there is no output. Power outage detection judgment circuit.
(2)前記他のルーチンが、前記割込み前のルーチンで
あることを特徴とする特許請求の範囲第1項記載の停電
検出判定回路。
(2) The power failure detection and determination circuit according to claim 1, wherein the other routine is a routine before the interrupt.
JP60111421A 1985-05-22 1985-05-22 Deciding circuit for detection of service interruption Pending JPS61267810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60111421A JPS61267810A (en) 1985-05-22 1985-05-22 Deciding circuit for detection of service interruption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60111421A JPS61267810A (en) 1985-05-22 1985-05-22 Deciding circuit for detection of service interruption

Publications (1)

Publication Number Publication Date
JPS61267810A true JPS61267810A (en) 1986-11-27

Family

ID=14560747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60111421A Pending JPS61267810A (en) 1985-05-22 1985-05-22 Deciding circuit for detection of service interruption

Country Status (1)

Country Link
JP (1) JPS61267810A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6454128U (en) * 1987-09-30 1989-04-04
JPS6454127U (en) * 1987-09-30 1989-04-04
JPH0161726U (en) * 1987-10-15 1989-04-19

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6454128U (en) * 1987-09-30 1989-04-04
JPS6454127U (en) * 1987-09-30 1989-04-04
JPH0454506Y2 (en) * 1987-09-30 1992-12-21
JPH0454505Y2 (en) * 1987-09-30 1992-12-21
JPH0161726U (en) * 1987-10-15 1989-04-19
JPH0454507Y2 (en) * 1987-10-15 1992-12-21

Similar Documents

Publication Publication Date Title
US3377623A (en) Process backup system
EP1703401B1 (en) Information processing apparatus and control method therefor
US3921149A (en) Computer comprising three data processors
US5638510A (en) Multiplexed system with watch dog timers
JPS61267810A (en) Deciding circuit for detection of service interruption
KR102262090B1 (en) Apparatus and method for duplexing input of plc
JPS63224446A (en) Communication system
US6507916B1 (en) Method and circuit arrangement for using two processors to read values of two independently clocked counters, exchanging values therebetween, comparing two values to determine error when the comparison exceed a threshold
JP2744113B2 (en) Computer system
US6807514B2 (en) Apparatus for monitoring the proper operation of components of an electrical system carrying out the same or mutually corresponding actions
JP3107104B2 (en) Standby redundancy method
JPH01166161A (en) Mutual monitoring system for multiprocessor system
EP0112672B1 (en) System for processing machine check interruption
JPS5812062A (en) Output device for parallel electronic computer system
JP2778691B2 (en) Bus monitoring circuit
JPS61169036A (en) System supervisory device
JPS58114145A (en) Monitoring system for fault of master microprocessor
JPH0588926A (en) Automatic switching circuit for monitor and control system
JPS6224329A (en) State signal detector
JPS6320540A (en) Information processor
JPS6330660B2 (en)
JPH0675867A (en) I/o monitoring controller
JP2001325117A (en) Stand-by duplex system information processor and its system state checking method
JPH05143379A (en) Program monitoring device
JPS63163540A (en) Multiprocessor system