JPH06103480B2 - Blackout processor - Google Patents
Blackout processorInfo
- Publication number
- JPH06103480B2 JPH06103480B2 JP3167355A JP16735591A JPH06103480B2 JP H06103480 B2 JPH06103480 B2 JP H06103480B2 JP 3167355 A JP3167355 A JP 3167355A JP 16735591 A JP16735591 A JP 16735591A JP H06103480 B2 JPH06103480 B2 JP H06103480B2
- Authority
- JP
- Japan
- Prior art keywords
- power failure
- power
- level
- circuit
- cpu
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 14
- 238000000034 method Methods 0.000 claims description 11
- 238000011084 recovery Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 4
- 230000007257 malfunction Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は落雷,高負荷モータの起
動等による瞬時の電源電圧の低下(以下、瞬時停電とい
う)と長時間の電源電圧低下(以下、停電という)とを
判別し、マイクロコンピュータのデータの破壊を防止
し、制御回路の誤動作を未然に防ぐことを目的とした停
電処理方式に関するものである。BACKGROUND OF THE INVENTION The present invention discriminates between a momentary drop in power supply voltage (hereinafter referred to as "instantaneous power failure") and a long-term power supply voltage drop (hereinafter referred to as "blackout") due to lightning strikes, high-load motor startup, etc. The present invention relates to a power failure processing method for preventing data destruction of a microcomputer and preventing malfunction of a control circuit.
【0002】[0002]
【従来の技術】一般にマイクロコンピュータ(以下、C
PUという)を用いた制御回路において、停電が起こっ
た場合は、電源回復時に必要なデータをメモリ上に保存
し、電源回復時にはCPUがそれらのデータをもとに制
御回路を規定のシーケンス通り動作させるように停電処
理回路を設けることが通常となっている。2. Description of the Related Art Generally, a microcomputer (hereinafter referred to as C
When a power failure occurs in a control circuit using (PU), the necessary data is saved in the memory when the power is restored, and when the power is restored, the CPU operates the control circuit according to the specified sequence based on the data. It is usual to provide a power failure processing circuit to do so.
【0003】従来、この停電処理回路は図3に一例を示
すように、停電時には商用電源の低下を検出する停電検
出回路5からの停電信号を、「H」レベルから「L」レ
ベルへの変化を検知できるCPU1の入力端子6に入力
する構成となっていた。通常、商用電源が停電してから
直流電源回路4の出力電圧がCPU1の動作電圧以下、
すなわちリセット回路8が動作停止信号を発する電圧以
下に低下するまでに数十[ms]程度の時間がある。停
電が起こると停電検出回路5が停電を検知し、CPU1
の入力端子6に停電検知信号が入力される。するとCP
U1は現在実行中のプログラムを中断し、停電回復時に
必要なデータをメモリ2に書き込み、そのデータが変化
しない様、自身の動作を停止せしめることをこの時間内
に行う。一方、停電回復時にはリセット回路8からのリ
セット信号がCPU1のリセット端子9に入力されるた
めCPU1は動作を開始する。これらの一連の動作を図
4及び図5により説明する。Conventionally, this power failure processing circuit changes a power failure signal from a power failure detection circuit 5 for detecting a drop in commercial power supply from a "H" level to an "L" level when a power failure occurs, as shown in FIG. Is input to the input terminal 6 of the CPU 1 capable of detecting Normally, after the commercial power supply fails, the output voltage of the DC power supply circuit 4 is less than the operating voltage of the CPU 1 ,
That is, the voltage below the voltage at which the reset circuit 8 issues the operation stop signal
There is a time of several tens [ms] until it drops downward . When a power failure occurs, the power failure detection circuit 5 detects the power failure and the CPU 1
The power failure detection signal is input to the input terminal 6 of. Then CP
U1 interrupts the program currently being executed, writes necessary data to the memory 2 when power is restored, and stops its own operation within this time so that the data does not change. On the other hand, when the power is restored, the reset signal from the reset circuit 8 is input to the reset terminal 9 of the CPU 1, so that the CPU 1 starts its operation. A series of these operations will be described with reference to FIGS.
【0004】図4は、従来の停電処理回路を用いた場合
の動作タイミングを示すタイミング図、図5はCPUの
動作フローチャート図である。図4に示すように、停電
が起こると停電検出回路5の停電信号は「H」レベルか
ら「L」レベルに変化する。この変化が入力端子6に入
力されるとCPU1は直ちに現在実行中のプログラムを
中断し、停電回復時に必要なデータをメモリ2に書き込
み、自身の動作を停止せしめる。その後、停電が継続し
た場合は、直流電源回路4の出力電圧がCPU1の動作
電圧以下まで低下する。一方、停電回復時には、直流電
源回路4の出力電圧がCPU1の動作電圧以下になり、
その後、数十ms遅れてリセット回路8が動作し、
「L」レベルから「H」レベルへ変化するリセット信号
8をCPU1のリセット入力端子9に入力する。リセッ
ト入力端子にリセット信号が入力されるとCPU1は動
作を開始し、バックアップ回路3により保持されている
メモリ2のデータをもとに規定のシーケンスに従い、制
御回路を動作せしめるようになっている。FIG. 4 is a timing chart showing the operation timing when the conventional power failure processing circuit is used, and FIG. 5 is an operation flow chart of the CPU. As shown in FIG. 4, when a power failure occurs, the power failure signal of the power failure detection circuit 5 changes from "H" level to "L" level. When this change is input to the input terminal 6, the CPU 1 immediately interrupts the program that is currently being executed, writes the necessary data to the memory 2 when power is restored, and stops its own operation. After that, if the power failure continues, the output voltage of the DC power supply circuit 4 drops to the operating voltage of the CPU 1 or less. On the other hand, when the power is restored, the output voltage of the DC power supply circuit 4 becomes equal to or lower than the operating voltage of the CPU 1,
After that, the reset circuit 8 operates with a delay of several tens of ms,
The reset signal 8 that changes from the “L” level to the “H” level is input to the reset input terminal 9 of the CPU 1. When a reset signal is input to the reset input terminal, the CPU 1 starts its operation, and operates the control circuit according to a prescribed sequence based on the data in the memory 2 held by the backup circuit 3.
【0005】また、図示しないが、実開昭60−250
02号公報に見られるように、電源電圧が低下する時間
T1 とCPUが停電処理に必要な時間T2 とを計数可能
なタイマーなどを用いて、CPUが瞬断か否か判断し、
瞬断の場合は元の処理を継続し、一定時間経過後も停電
信号が存在していれば瞬時停電ではなく停電であったと
判断し停電処理を行うように構成された制御装置もあ
る。Although not shown in the drawing, the actual construction number 60-250
As can be seen in Japanese Patent Publication No. 02-2002, a timer or the like capable of counting the time T 1 for which the power supply voltage drops and the time T 2 required for the CPU to perform a power outage is used to determine whether or not the CPU has an instantaneous interruption.
There is also a control device configured to continue the original process in the case of a momentary interruption, and to judge that it is not an instantaneous power outage but a power outage if the power outage signal is present even after a lapse of a certain time, and perform the power outage process.
【0006】さらに、図示しないが、特開昭58−10
1348公報に見られるように、強制割込みが発生した
ときに割込み要因を調べて割り込み処理を行うか否かを
判定し、割込み要因が不明の場合は無処理で元のルーチ
ンへ戻り、雑音などの影響を最小限にとどめることを目
的とした強制割込処理方式もある。Further, although not shown, JP-A-58-10
As can be seen in 1348, when a forced interrupt occurs, the interrupt factor is checked to determine whether or not the interrupt process is to be performed. If the interrupt factor is unknown, the process returns to the original routine without any processing, and noise etc. There is also a forced interrupt handling method that aims to minimize the effect.
【0007】[0007]
【発明が解決しようとする課題】 しかしながら、図3に
示した従来の停電処理回路では、図5のフローチャート
のように、停電が停電検出回路5によって検出され直流
電源電圧がCPU1の動作電圧以下に低下するまで継続
すればよいが、停電が非常に短時間であったり、ノイズ
等の外乱により停電信号が瞬間的に「H」から「L」に
変化した場合には、CPU1は必要なデータをメモリに
書き込み、自身の動作を停止するにもかかわらず直流電
源回路4の出力電圧が低下しない。このため電源電圧回
復時にしか動作しないリセット回路8が動作せず、リセ
ット入力端子9にリセット信号が入力されない。したが
って制御回路は停止したまま、全く動作しないという致
命的な欠点があった。 [SUMMARY OF THE INVENTION However, in the conventional power failure processing circuit shown in FIG. 3, as in the flowchart of FIG. 5, a power failure is detected by the power failure detecting circuit 5 the DC power supply voltage is below the operating voltage of the CPU1 It may be continued until it drops, but if the power outage is very short or the power outage signal instantaneously changes from "H" to "L" due to disturbance such as noise, the CPU 1 outputs necessary data. The output voltage of the DC power supply circuit 4 does not drop despite writing to the memory and stopping its operation. Therefore, the reset circuit 8 that operates only when the power supply voltage is restored does not operate, and the reset signal is not input to the reset input terminal 9. Therefore, there is a fatal defect that the control circuit remains stopped and does not operate at all.
【0008】また、実開昭60−25002号公報に示
されるような停電処理を行う制御装置では、通常、商用
電源の停電が発生してからCPUの作動電源である直流
電源回路の電源電圧が、CPUの動作電圧の下限まで低
下するまでの時間(これをT1 とする。)は数10[m
s]であり、かつ制御装置の負荷の状態などにより大き
く変動する場合がある。従って、タイマー時間Tの設定
は、この電源電圧が低下する時間T1 とCPUが停電処
理に必要な時間(これをT2 とする。)の和よりも短く
しなければならない。すなわち、T<T1 +T2 が必要
条件にとなる。ところで、前述のようにT1 は大きく変
動するため、タイマー時間の設定によってはこの条件を
満足することができない場合が発生し、正常な停電処理
ができない可能性がある。すなわち、停電が瞬時停電か
通常の停電かを判断するのにタイマー時間を用いる方式
のものは、瞬時停電がタイマー時間より十分短い場合は
よいが、これ以外の場合は正常な停電処理ができず、停
電回復時に正しい制御が保証されないという致命的な欠
点を有していた。Further, in a control device for performing a power failure process as disclosed in Japanese Utility Model Laid-Open No. 60-25002, the power supply voltage of the DC power supply circuit, which is the operating power supply of the CPU, is usually set after the power failure of the commercial power supply occurs. , The time required for the operating voltage of the CPU to drop to the lower limit (this is T 1 ) is several tens of meters.
s], and may greatly vary depending on the load condition of the control device. Therefore, the timer time T must be set shorter than the sum of the time T 1 for which the power supply voltage drops and the time required for the CPU to perform the power outage (this is referred to as T 2 ). That is, T <T 1 + T 2 is a necessary condition. By the way, as described above, T 1 fluctuates greatly, so that this condition may not be satisfied depending on the setting of the timer time, and there is a possibility that normal power failure processing cannot be performed. In other words, the method that uses the timer time to determine whether the power failure is an instantaneous power failure or a normal power failure is good when the momentary power failure is sufficiently shorter than the timer time, but in other cases, normal power failure processing cannot be performed. However, it had a fatal drawback that correct control could not be guaranteed when power was restored.
【0009】また、特開昭58−101348公報に示
されるような強制割込処理方式では、電源断による割込
み発生時データをバッテリーサポートされたRAMメモ
リ上に写すという処理は可能であっても停電回復時の処
理に対しては何ら考慮されていない。すなわち、電源断
による強制割込み発生時に電源断であることを認識して
バックアップされたメモリ上にデータを退避させた後、
メインルーチンへ戻り元のプログラムを実行するのであ
れば当然通常使用するRAM内のデータとバックアップ
されたRAM内のデータは違うものとならざるを得な
い。従って、通常停電回復後にはバックアップされたR
AM内のデータを使用し、プログラムを実行するようプ
ログラムされていると考えると、停電時には次の流れで
プログラムは実行される。(1) 停電(割込み発生)→
(2) データ退避(割込み処理)→(3) 元のメインルーチ
ン実行→(4) MPU(CPU)停止→(5) 電源回復→
(6) バックアップされたRAM内のデータを使用してメ
インルーチン実行となる。従って、前記(3) 番目の元の
メインルーチン実行時におけるデータは失われることに
なり、電源回復時点では前記(3) 番目元のメインルーチ
ン実行前の時点のデータによりメインルーチンを実行す
ることになるため、正常に停電バックアップできないと
いう問題点があった。Further, in the forced interrupt processing method as disclosed in Japanese Patent Laid-Open No. 58-101348, although the processing of copying the data at the time of interrupt occurrence due to the power interruption to the battery-supported RAM memory is possible, a power failure occurs. No consideration is given to the recovery process. That is, after recognizing that the power is cut off when a forced interrupt is generated due to the power cut and saving the data in the backed up memory,
When returning to the main routine and executing the original program, the data in the RAM normally used and the data in the backed up RAM must be different. Therefore, after normal power failure recovery, backup R
Considering that the data in the AM is used and the program is programmed to be executed, the program is executed in the following flow at the time of power failure. (1) Power failure (interrupt occurs) →
(2) Data save (interrupt processing) → (3) Original main routine execution → (4) MPU (CPU) stop → (5) Power recovery →
(6) The main routine is executed using the backed up data in RAM. Therefore, the data during the execution of the (3) th original main routine will be lost, and the main routine will be executed by the data before the execution of the (3) th original main routine when the power is restored. Therefore, there was a problem that the power failure cannot be backed up normally.
【0010】[0010]
【課題を解決するための手段】本発明はこれらの問題点
を解決するもので、CPUの入力端子を一つ増加させる
のみで瞬時停電やノイズによる停電信号の変化と、通常
の停電とを停電処理プログラム内で判別し、瞬時停電の
場合はそのまま通常の処理プログラムに戻り制御回路を
継続させて動作させ、通常の停電の場合は停電回復時に
規定のシーケンス通りに制御回路を動作せしめる様に構
成された停電処理装置を提供するものである。すなわ
ち、本発明は、電気信号の「H」レベルから「L」レベ
ルへの変化を検知できる入力端子6と、電気信号が
「H」レベルか「L」レベルかを検知できる入力端子7
と、リセット端子9とを具備し、比較判断機能を有する
とともに供給電圧が所定値以下になるとリセット端子9
への「L」レベル信号によりその動作を停止するCPU
1と、該CPU1のデータを記憶するメモリ2と、停電
時にメモリ2の内容を保持するためのバックアップ回路
3と、商用電源の停電を検出し、入力端子6、7へ信号
を発する停電検出回路5と、CPU1への供給電圧が前
記所定値以下になるとCPU1の動作を停止せしめるべ
くリセット端子9へ「L」レベルの停止信号を発し、C
PU1への供給電圧が前記所定値以下となったのち回復
した場合に、CPU1の動作を開始せしめるべくCPU
1のリセット端子9へ「L」レベルから「H」レベルへ
変化するリセット信号を発する回路8と、前記CPU
1、メモリ2、バックアップ回路3、停電検出回路5及
びリセット回路8に電圧,電流を供給する直流電源回路
4により構成されており、前記CPU1は、停電検出回
路5の発する停電信号が入力端子6に入力された場合
に、直ちに停電処理(データの待避の処理)を行うとと
もに、その停電処理プログラム内で、商用電源が回復を
するか否かを別の入力端子7により監視する動作を供給
電源の低下によりその動作が停止するまで連続して行う
ことにより、供給電源の低下による動作停止前に商用電
源が回復した場合は、そのまま通常のプログラムを継続
させて動作を行い、商用電源が回復することなく供給電
源が低下し動作を停止した場合は、商用電源の回復後リ
セット回路8が発するリセット信号により動作を開始
し、メモリ2にて保持された停電前の仕事の内容に従っ
て制御回路を規定のシーケンス通り動作せしめるべく構
成された停電処理装置である。 SUMMARY OF THE INVENTION The present invention solves these problems by changing the power failure signal due to momentary power failure or noise and normal power failure only by increasing the number of input terminals of the CPU. Determined in the processing program, if there is an instantaneous power failure, return to the normal processing program and continue to operate the control circuit.In case of normal power failure, the control circuit operates according to the specified sequence when the power is restored. The present invention provides an improved power failure processing device . That is, according to the present invention, the “L” level is changed from the “H” level of the electric signal.
Input terminal 6 that can detect changes to the
Input terminal 7 that can detect "H" level or "L" level
And a reset terminal 9 and have a comparison and judgment function.
When the supply voltage goes below a predetermined value, the reset terminal 9
CPU that stops its operation by "L" level signal to
1, a memory 2 for storing the data of the CPU 1, a power failure
Sometimes a backup circuit for holding the contents of memory 2
3 and the power failure of the commercial power supply is detected, and signals to the input terminals 6 and 7
Power failure detection circuit 5 that emits
The operation of CPU1 should be stopped when the value is below the specified value.
Issue a "L" level stop signal to reset terminal 9
Recovery after the supply voltage to PU1 falls below the specified value
CPU to start the operation of the CPU1
1 reset terminal 9 from "L" level to "H" level
Circuit 8 for issuing a changing reset signal, and said CPU
1, memory 2, backup circuit 3, power failure detection circuit 5 and
And DC power supply circuit that supplies voltage and current to the reset circuit 8
4 and the CPU 1 is configured to detect a power failure.
When the power failure signal generated by path 5 is input to input terminal 6
Then, if the power outage process (data saving process) is immediately performed,
In the blackout processing program, commercial power is restored.
Supply operation to monitor with another input terminal 7
Performs continuously until the operation is stopped due to the decrease in power supply
This allows commercial power to be supplied before operation stops due to a drop in power supply.
If the source recovers, continue normal program
Operation is performed and the power is supplied without the commercial power being restored.
If the power goes down and stops working, the
The operation is started by the reset signal issued by the set circuit 8.
According to the contents of the work held in the memory 2 before the power failure.
Control circuit to operate according to the specified sequence.
It is a power failure processing device made.
【0011】[0011]
【実施例】本発明の実施例を図1及び図2により説明す
る。本発明は、電気信号の「H」レベルから「L」レベ
ルへの変化を検知できる入力端子6と、電気信号が
「H」レベルか「L」レベルかを検知できる入力端子7
と、リセット端子9とを具備し、比較判断機能を有する
とともに供給電圧が所定値以下になるとリセット端子9
への「L」レベル信号によりその動作を停止するCPU
1と、該CPU1のデータを記憶するメモリ2と、停電
時にメモリ2の内容を保持するためのバックアップ回路
3と、商用電源の停電を検出し、入力端子6、7へ信号
を発する停電検出回路5と、CPU1への供給電圧が前
記所定値以下になるとCPU1の動作を停止せしめるべ
くリセット端子9へ「L」レベルの停止信号を発し、C
PU1への供給電圧が前記所定値以下となったのち回復
した場合に、CPU1の動作を開始せしめるべくCPU
1のリセット端子9へ「L」レベルから「H」レベルへ
変化するリセット信号を発する回路8と、前記CPU
1、メモリ2、バックアップ回路3、停電検出回路5及
びリセット回路8に電圧,電流を供給する直流電源回路
4により構成されている。停電が起こると、停電検出回
路5は、CPU1の入力端子6および入力端子7へ
「H」レベルから「L」レベルへの変化する停電信号を
発する。CPU1は、この停電信号の「H」レベルから
「L」レベルへの変化を入力端子6により検出し、停電
がおきたことを認識し、直ちに現在実行中のプログラム
を中断し、停電回復時に必要なデータをメモリ2に書き
込む。その後、CPU1は停電検出回路5からの停電信
号「H」,「L」のレベルを入力端子7により監視を続
ける。つまり、図2の動作フローチャート図に示すよう
に、所定のデータをメモリ2に書き込んだ後、停電信号
が「H」レベルか「L」レベルかをチェックすることに
より停電が非常に短時間で回復したかどうかを判別する
ことが可能となる。入力端子7に入力されている停電信
号レベルが「H」レベルであった場合にはCPU1は停
電が非常に短時間であったと判断し、中断していたプロ
グラムを再開し、通常の制御回路の制御を続ける。また
停電信号レベルが「L」レベルのままであった場合は、
そのまま停電信号のレベルの監視を続け、停電信号が
「L」レベルのまま直流電源回路4の出力電圧がCPU
1の動作電圧以下に低下した場合は、リセット回路8は
CPU1へ「L」レベルの動作停止信号を発し、CPU
1の動作が停止する。停電回復時にはリセット回路8か
らのリセット信号によりCPU1は動作を再開し、バッ
クアップ回路3により保持されているメモリ2のデータ
をもとに制御回路を規定のシーケンス通りに制御する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of the present invention will be described with reference to FIGS. The present invention is designed to change the level of an electrical signal from "H" level to "L" level.
Input terminal 6 that can detect changes to the
Input terminal 7 that can detect "H" level or "L" level
And a reset terminal 9 and have a comparison and judgment function.
When the supply voltage goes below a predetermined value, the reset terminal 9
CPU that stops its operation by "L" level signal to
1, a memory 2 for storing the data of the CPU 1, a power failure
Sometimes a backup circuit for holding the contents of memory 2
3 and the power failure of the commercial power supply is detected, and signals to the input terminals 6 and 7
Power failure detection circuit 5 that emits
The operation of CPU1 should be stopped when the value is below the specified value.
Issue a "L" level stop signal to reset terminal 9
Recovery after the supply voltage to PU1 falls below the specified value
CPU to start the operation of the CPU1
1 reset terminal 9 from "L" level to "H" level
Circuit 8 for issuing a changing reset signal, and said CPU
1, memory 2, backup circuit 3, power failure detection circuit 5 and
And DC power supply circuit that supplies voltage and current to the reset circuit 8
It is composed of four. When a power failure occurs, the power failure detection time
The path 5 is connected to the input terminal 6 and the input terminal 7 of the CPU 1.
A power failure signal that changes from "H" level to "L" level
Emit. CPU1 starts from the "H" level of this power failure signal
A change to "L" level is detected by input terminal 6 and a power failure occurs
The program that is currently running, immediately recognizing that
And write the necessary data to memory 2 when power is restored.
Put in. After that, the CPU 1 receives the power failure signal from the power failure detection circuit 5.
Continue monitoring the levels of "H" and "L" with input terminal 7.
Kick That is, as shown in the operation flowchart of FIG. 2, after writing predetermined data in the memory 2, the power failure is recovered in a very short time by checking whether the power failure signal is at “H” level or “L” level. It is possible to determine whether or not it has been done. When the power failure signal level input to the input terminal 7 is the "H" level, the CPU 1 determines that the power failure was very short, restarts the interrupted program, and restarts the normal control circuit. Continue control. If the power failure signal level remains at "L" level,
Continuing to monitor the level of the power failure signal, the output voltage of the DC power supply circuit 4 is the CPU when the power failure signal is at the “L” level.
If the voltage drops below the operating voltage of 1, the reset circuit 8
Sending an "L" level operation stop signal to CPU1, CPU
The operation of 1 stops. At the time of power failure recovery, the CPU 1 restarts the operation by the reset signal from the reset circuit 8, and controls the control circuit according to the prescribed sequence based on the data of the memory 2 held by the backup circuit 3.
【0012】[0012]
【発明の効果】以上の説明から容易に理解されるよう
に、本発明は停電期間が非常に短い瞬時停電や、ノイズ
等の外乱による停電検出回路5の誤動作によってCPU
1が停電を検知しても制御回路は正常な動作を継続し、
かつ通常の停電によりCPUの動作が停止した場合も停
電回復時には正しい動作シーケンスにより制御回路を動
作させるという信頼性の高い停電処理装置が得られる。As can be easily understood from the above description, the present invention provides a CPU due to a momentary power failure with a very short power failure period or a malfunction of the power failure detection circuit 5 due to a disturbance such as noise.
Even if 1 detects a power failure, the control circuit continues normal operation,
In addition, even if the operation of the CPU is stopped due to a normal power failure, a highly reliable power failure processing device can be obtained in which the control circuit is operated in the correct operation sequence when the power failure is restored.
【図1】 本発明の停電処理回路のブロック図。FIG. 1 is a block diagram of a power failure processing circuit according to the present invention.
【図2】 本発明の停電処理回路を用いた場合の動作フ
ローチャート図。FIG. 2 is an operation flowchart diagram when the power failure processing circuit of the present invention is used.
【図3】 従来の停電処理回路のブロック図。FIG. 3 is a block diagram of a conventional power failure processing circuit.
【図4】 従来の停電処理回路を用いた場合の動作タイ
ミング図。FIG. 4 is an operation timing chart when a conventional power failure processing circuit is used.
【図5】 従来の停電処理回路を用いた場合の動作フロ
ーチャート図。FIG. 5 is an operation flowchart diagram when a conventional power failure processing circuit is used.
【符号の説明】1 CPU。 2 メモ
リ。 3 バツクアップ回路。4 直流電源回
路。 5 停電検出回路。 6 入力端子。7
入力端子。 8 リセット回路。 9
入力端子。[Explanation of Codes] 1 CPU. 2 memory. 3 Back-up circuit. 4 DC power supply circuit. 5 Power failure detection circuit. 6 input terminals. 7
Input terminal. 8 Reset circuit. 9
Input terminal.
Claims (1)
ルへの変化を検知できる入力端子6と、電気信号が
「H」レベルか「L」レベルかを検知できる入力端子7
と、リセット端子9とを具備し、比較判断機能を有する
とともに供給電圧が所定値以下になるとリセット端子9
への「L」レベル信号によりその動作を停止するCPU
1と、該CPU1のデータを記憶するメモリ2と、停電
時にメモリ2の内容を保持するためのバックアップ回路
3と、商用電源の停電を検出し、入力端子6、7へ信号
を発する停電検出回路5と、CPU1への供給電圧が前
記所定値以下になるとCPU1の動作を停止せしめるべ
くリセット端子9へ「L」レベルの停止信号を発し、C
PU1への供給電圧が前記所定値以下となったのち回復
した場合に、CPU1の動作を開始せしめるべくCPU
1のリセット端子9へ「L」レベルから「H」レベルへ
変化するリセット信号を発する回路8と、前記CPU
1、メモリ2、バックアップ回路3、停電検出回路5及
びリセット回路8に電圧,電流を供給する直流電源回路
4により構成されており、前記CPU1は、停電検出回
路5の発する停電信号が入力端子6に入力された場合
に、直ちに停電処理(データの待避の処理)を行うとと
もに、その停電処理プログラム内で、商用電源が回復を
するか否かを別の入力端子7により監視する動作を供給
電源の低下によりその動作が停止するまで連続して行う
ことにより、供給電源の低下による動作停止前に商用電
源が回復した場合は、そのまま通常のプログラムを継続
させて動作を行い、商用電源が回復することなく供給電
源が低下し動作を停止した場合は、商用電源の回復後リ
セット回路8が発するリセット信号により動作を開始
し、メモリ2にて保持された停電前の仕事の内容に従っ
て制御回路を規定のシーケンス通り動作せしめるべく構
成された停電処理装置。 1. A level from "H" level of an electric signal to "L" level
Input terminal 6 that can detect changes to the
Input terminal 7 that can detect "H" level or "L" level
And a reset terminal 9 and have a comparison and judgment function.
When the supply voltage goes below a predetermined value, the reset terminal 9
CPU that stops its operation by "L" level signal to
1, a memory 2 for storing the data of the CPU 1, a power failure
Sometimes a backup circuit for holding the contents of memory 2
3 and the power failure of the commercial power supply is detected, and signals to the input terminals 6 and 7
Power failure detection circuit 5 that emits
The operation of CPU1 should be stopped when the value is below the specified value.
Issue a "L" level stop signal to reset terminal 9
Recovery after the supply voltage to PU1 falls below the specified value
CPU to start the operation of the CPU1
1 reset terminal 9 from "L" level to "H" level
Circuit 8 for issuing a changing reset signal, and said CPU
1, memory 2, backup circuit 3, power failure detection circuit 5 and
And DC power supply circuit that supplies voltage and current to the reset circuit 8
4 and the CPU 1 is configured to detect a power failure.
When the power failure signal generated by path 5 is input to input terminal 6
Then, if the power outage process (data saving process) is immediately performed,
In the blackout processing program, commercial power is restored.
Supply operation to monitor with another input terminal 7
Performs continuously until the operation is stopped due to the decrease in power supply
This allows commercial power to be supplied before operation stops due to a drop in power supply.
If the source recovers, continue normal program
Operation is performed and the power is supplied without the commercial power being restored.
If the power goes down and stops working, the
The operation is started by the reset signal issued by the set circuit 8.
According to the contents of the work held in the memory 2 before the power failure.
Control circuit to operate according to the specified sequence.
Power outage processing device made.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3167355A JPH06103480B2 (en) | 1991-04-26 | 1991-04-26 | Blackout processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3167355A JPH06103480B2 (en) | 1991-04-26 | 1991-04-26 | Blackout processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05108503A JPH05108503A (en) | 1993-04-30 |
| JPH06103480B2 true JPH06103480B2 (en) | 1994-12-14 |
Family
ID=15848188
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3167355A Expired - Lifetime JPH06103480B2 (en) | 1991-04-26 | 1991-04-26 | Blackout processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06103480B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004272562A (en) | 2003-03-07 | 2004-09-30 | Orion Denki Kk | Electrical equipment |
| JP4935241B2 (en) * | 2006-08-23 | 2012-05-23 | トヨタ自動車株式会社 | Data holding device, motor control device and motor control system |
| EP3134210A4 (en) * | 2014-04-25 | 2017-06-28 | Siemens Healthcare Diagnostics Inc. | Sample collection unit |
-
1991
- 1991-04-26 JP JP3167355A patent/JPH06103480B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH05108503A (en) | 1993-04-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5175845A (en) | Integrated circuit with watchdog timer and sleep control logic which places IC and watchdog timer into sleep mode | |
| US5203000A (en) | Power-up reset conditioned on direction of voltage change | |
| US5903767A (en) | Integrated circuit for providing supervisory functions to a microprocessor | |
| US7139937B1 (en) | Method and apparatus to establish safe state in a volatile computer memory under multiple hardware and software malfunction conditions | |
| US4827149A (en) | Operation halting circuit | |
| CN107197380B (en) | Intelligent television and undervoltage protection fault-tolerant method thereof | |
| WO1990006555A1 (en) | Auxiliary integrated circuit for microprocessor management | |
| JP7063692B2 (en) | Watchdog timer monitoring system | |
| JPH06103480B2 (en) | Blackout processor | |
| CN112269463A (en) | A power failure protection circuit, method and electric energy meter | |
| JPH10105422A (en) | Protection device control circuit | |
| US20190250685A1 (en) | Computer system, operational method for a microcontroller, and computer program product | |
| WO2021169476A1 (en) | Server expansion system, and power control method for same | |
| JP2778299B2 (en) | Programmable controller | |
| JPH11203173A (en) | Watch dog timer circuit | |
| JPH01245322A (en) | Power failure control circuit for microprocessor | |
| JP2982294B2 (en) | Instantaneous power failure time detection method for programmable controller | |
| JPH11337596A (en) | Power failure detection method and power failure detection circuit using the method | |
| JP2752090B2 (en) | Programmable controller | |
| JPS62281781A (en) | Monitoring method for accident information | |
| JPS6310463B2 (en) | ||
| KR0136864Y1 (en) | Memory backup device | |
| JPS61278953A (en) | Method for checking error in ram | |
| JPH09274524A (en) | Automatic power recovery system | |
| JP2718055B2 (en) | Terminal device with built-in instantaneous interruption detection circuit |