JPS6265117A - Method for processing abnormality of power supply of information processor - Google Patents

Method for processing abnormality of power supply of information processor

Info

Publication number
JPS6265117A
JPS6265117A JP60203268A JP20326885A JPS6265117A JP S6265117 A JPS6265117 A JP S6265117A JP 60203268 A JP60203268 A JP 60203268A JP 20326885 A JP20326885 A JP 20326885A JP S6265117 A JPS6265117 A JP S6265117A
Authority
JP
Japan
Prior art keywords
power supply
voltage
abnormality
signal
power
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
JP60203268A
Other languages
Japanese (ja)
Inventor
Osamu Amano
修 天野
Taichi Sugiyama
太一 杉山
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60203268A priority Critical patent/JPS6265117A/en
Publication of JPS6265117A publication Critical patent/JPS6265117A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To restart easily the normal processing when a power supply is recovered even in case the abnormality of the power supply is detected owing to a service interruption or the distortions of an AC waveform, by securing the information of a storage. CONSTITUTION:A check circuit 2 detects a service interruption and delivers a power supply abnormality signal 9. While a voltage checking circuit 4 detects the drop of the DC voltage level and delivers a reset signal 11. An interruption is applied by the signal 9 and a program of a ROM601 is run for processing the abnormality of the power supply. When the abnormality of the power supply is processed after output of the signal 9, a retry point, the important data, etc. are saved in a battery back-up area 603 before the DC voltage has a drop, that is, before the signal 11 is delivered. In this case, an initial program is stored in the ROM601 and therefore never broken by the drop of the DC voltage. Thus, no initial program loading action is needed after the power supply is recovered.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、バッテリバックアップされた記憶装置を持つ
端末装置等の情報処理装置における停電等の電源異常処
理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a method for handling a power supply abnormality such as a power outage in an information processing apparatus such as a terminal device having a battery-backed storage device.

〔発明の背景〕[Background of the invention]

従来、情報処理装置における停電等の電源異常対策とし
ては、例えば「チェックアウトマネジメントの新−しい
夜明け」著者ニドワード、M、ハウエル、ウィリアム、
E、キンスロー(商業界)やHITACプログラムプロ
ダク1−V033/SPシステムジェネレーション80
90−3−614−10に記載されているように、発電
機もしくはバッテリイなどの補助電源を備え、停電時に
自動的に補助電源に切替えて急場をしのぐやり方が一般
的である。即ち、これはあくまでも装置全体を補助電源
によってバックアップし、瞬時の停電はむろんのこと長
時間の停電にも耐え得るようにするというものである。
Conventionally, countermeasures against power failures such as power outages in information processing equipment have been taken, for example, by Nidward, M., Howell, William, author of "A New Dawn of Checkout Management".
E. Kinslow (commercial industry) and HITAC program product 1-V033/SP system generation 80
As described in Japanese Patent Application No. 90-3-614-10, it is common practice to provide an auxiliary power source such as a generator or battery, and automatically switch to the auxiliary power source in the event of a power outage to survive an emergency. In other words, this is all about backing up the entire device with an auxiliary power source so that it can withstand not only instantaneous power outages but also long-term power outages.

この方法は、停電によるダウンの影響が広範囲に及ぶ大
型計算システムには最適であるが、PoSなどの端末装
置などに適用するにはコスト高を招くことになり好適と
は言えない。
Although this method is most suitable for large-scale computing systems whose downtime due to power outages is widespread, it is not suitable for application to terminal devices such as PoS because it increases costs.

第3図は端末装置などにおけるハードウェア構成を示し
たものであり、装置全体の補助電源は持っていない。
FIG. 3 shows the hardware configuration of a terminal device, etc., which does not have an auxiliary power source for the entire device.

第3図において、1は一般の商用電源(AC)であり、
入力された交流電圧8はスイッチングレギュレータなど
の電源装置13を介して直流電圧lOに変換される。こ
の直流電圧lOは論理装置!!5と記憶装置6に電源と
して供給されるようになっている。記憶装置i!6内に
はリードオンリイメモリ(ROM)601、ランダムア
クセスメモリ(RAM)602、およびバッテリイ64
でバックアップされているRAM603がある。2は商
用電源1からの交流電圧8をチェックするチェック回路
であり、電源周波数の周期でピーク電圧が発生している
かどうか監視しており、発生しなくなると電源異常信号
9を出力する。電源異常信号9は。
In Fig. 3, 1 is a general commercial power source (AC),
The input AC voltage 8 is converted into a DC voltage IO via a power supply device 13 such as a switching regulator. This DC voltage lO is a logic device! ! 5 and the storage device 6 as power. Storage device i! 6 includes read-only memory (ROM) 601, random access memory (RAM) 602, and battery memory 64.
There is a RAM 603 backed up by . Reference numeral 2 denotes a check circuit for checking the AC voltage 8 from the commercial power supply 1, which monitors whether or not a peak voltage is occurring at the cycle of the power supply frequency, and outputs a power supply abnormality signal 9 when it no longer occurs. Power supply abnormality signal 9 is.

論理装置t5に対して割込み信号となり、現在実行中の
処理を中断し割込むことになる。4は直流電圧lOの電
圧レベルをチェックするチェック回路であり、直流電圧
lOが論理装!i!5で動作可能な下限の電圧レベルを
下回った場合、論理装置5に対してリセッj・信号11
を出力する。
This becomes an interrupt signal for the logic device t5, and interrupts and interrupts the process currently being executed. 4 is a check circuit that checks the voltage level of the DC voltage lO, and the DC voltage lO is a logic circuit! i! 5, the reset signal 11 is sent to the logic device 5.
Output.

第4図は交流電圧8と直流電圧10と電源異常信号9と
リセット信号11の関係を示すタイムチャートである。
FIG. 4 is a time chart showing the relationship between the AC voltage 8, the DC voltage 10, the power supply abnormality signal 9, and the reset signal 11.

商用電g1からの交流電圧8が、停電により供給ストッ
プすると1周期的なピーク電圧が出なくなり、時間T、
経過後に、チェック回路2がそれを検出し、電源異常信
号9を出力する。
When the supply of AC voltage 8 from commercial electricity g1 is stopped due to a power outage, one periodic peak voltage is no longer output, and time T,
After the time has elapsed, the check circuit 2 detects this and outputs a power supply abnormality signal 9.

この時、直流電圧10は電源装置3の容皿で持ちこたえ
ているため、即時には電圧レベルは低下しない、?!電
源異常信号出力された後、時間T2の経過後、直流電圧
10の電圧レベルが低下し、チェック回路4がこれを検
出してリセット信号11が出力される。また、通常の電
源オン時にもリセット信号11が出力される。リセット
信号11によって、論理装[5はリセットされ、その後
、直流電圧10が確定していれば、通常処理ルーチンの
先頭から実行していく。
At this time, the DC voltage 10 is held up by the container of the power supply 3, so the voltage level does not drop immediately. ! After a time T2 elapses after the power supply abnormality signal is output, the voltage level of the DC voltage 10 decreases, the check circuit 4 detects this, and the reset signal 11 is output. The reset signal 11 is also output when the power is normally turned on. The logic unit [5 is reset by the reset signal 11, and thereafter, if the DC voltage 10 is determined, the normal processing routine is executed from the beginning.

上記の処理において、電源異常信号9が出力されてから
リセット信号11が出力されるまでの時間T2は、一般
に最低20〜301sは保証されている。その時間内に
プログラムにて電源回復後のりトライポイントや、その
ための必要データのセーブを不揮発性のメモリ(第3図
ではRAM603が該当する)にセーブしておく必要が
ある。このリトライポイントの設定、リトライ方法など
に関しては、特に大形計算機システムでは公知の技術で
ある。
In the above process, the time T2 from when the power supply abnormality signal 9 is output to when the reset signal 11 is output is generally guaranteed to be at least 20 to 301 seconds. Within that time, it is necessary to save the try point after the power is restored and the necessary data therefor in a non-volatile memory (RAM 603 in FIG. 3) by program within that time. The setting of retry points, retry methods, and the like are well-known techniques, especially in large-scale computer systems.

ところが、i!源設備として専用のものを持たず他の電
気機器と共有し、一般の商用電源をそのま>併給してい
るPoSなどの端末装置では、瞬間的な過負荷にもとづ
く交流波形ひずみなどによる瞬時停電や、落雷による停
電等による装置障害の頻度が高いにも関わらず、取扱う
情報の適時性や信ぴょう性が強く要求されているとNも
に、障害時の短時間復旧が必須となっている。従って、
プログラム領域をも含めた大容量のバッテリバックアッ
プされた記憶装置を持つ情報処理装置が出現してきてい
る。そして、この記憶装置には大容量の半導体メモリが
使用されている。
However, i! In terminal equipment such as PoS, which does not have a dedicated power source equipment but is shared with other electrical equipment and is fed with general commercial power, instantaneous power outages may occur due to alternating current waveform distortion due to momentary overload. Despite the high frequency of equipment failures due to power outages caused by lightning strikes, etc., there is a strong demand for the timeliness and reliability of the information handled, and short-term recovery in the event of a failure is essential. Therefore,
Information processing devices having large capacity battery-backed storage devices including a program area are emerging. This storage device uses a large-capacity semiconductor memory.

しかしながら、従来の情報処理装置においては、処理実
行中に停電が発生し直流電圧が低下した場合、その処理
を実行しているプログラム格納領域の記憶情報は保証さ
れなかった。これは半導体メモリの特性で、直流電圧が
バッテリでバックアップされていても、読出し、または
書込み動作にかNわらず、一連のメモリアクセス動作が
中断されることによって半導体メモリの情報が広範囲に
渡り破壊されることによる。この不正なメモリアクセス
動作は、バッテリバックアップされていない論理装置が
不測に発生する直流電圧低下によるリセット信号によっ
て、メモリアクセス途中にリセッ1〜されるためである
。しかして5本リセットをメモリアクセス動作に同期し
て出力するには複雑で高価なハードウェアを必要とする
。また、電源異常検出時に直流電圧の低下を予測し、事
前に論理装置をホールド(停止)した場合は、瞬停時の
復旧時でも、オペレータの介入を必要とするものになる
However, in conventional information processing apparatuses, if a power outage occurs during the execution of a process and the DC voltage drops, the stored information in the program storage area in which the process is being executed is not guaranteed. This is a characteristic of semiconductor memory, and even if the DC voltage is backed up by a battery, a series of memory access operations, whether reading or writing, is interrupted and the information in the semiconductor memory is extensively destroyed. By being done. This illegal memory access operation occurs because a logic device that is not backed up by a battery is reset during memory access by a reset signal caused by an unexpected drop in DC voltage. However, complicated and expensive hardware is required to output five reset signals in synchronization with memory access operations. Further, if a drop in DC voltage is predicted when a power supply abnormality is detected and the logic device is held (stopped) in advance, operator intervention will be required even when recovering from a momentary power failure.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、バッテリバックアップされた記憶装置
を持つ端末装置等の情報処理装置において、停電や交流
波形ひずみなどによって電源異常が検出された場合でも
、該記憶装置の情報を保証することによって、電源復旧
時に容易に通常処理が再開できる電源異常処理方法を提
供することにある。
An object of the present invention is to guarantee the information in the storage device in an information processing device such as a terminal device that has a battery-backed storage device even if a power supply abnormality is detected due to a power outage or AC waveform distortion. An object of the present invention is to provide a power supply abnormality handling method that allows normal processing to be easily restarted when power is restored.

〔発明の概要〕[Summary of the invention]

従来の情報処理装置では停電等の電源異常が発生した場
合、記憶装置内の記憶情報の保証は難かしかった。これ
は論理装置から記憶装置へのメモリアクセス信号が、直
流電圧低下によって、一連の規定動作を中断してしまう
ことに起因するものであった。従って、バッテリバック
アップされた半導体メモリからなる記憶装置でも同様に
情報の保証ができなかった。この対策として電源異常が
検出された時点で、論理装置をホールド(停止)させる
ことが考えられるが、ダイレクトメモリアクセス転送を
含め停止する必要があり、そのホールドさせるタイミン
グが難かしく、また、電源復旧時に、再実行させるため
にはオペレータの介入を必要とする。このため、本発明
では電源異常検出後のメモリアクセスを非バッテリバッ
クアップ領域に限定することによって、論理装置をホー
ルドすることなく、バッテリバックアップ領域の記憶情
報を保証するものである。
In conventional information processing devices, it is difficult to guarantee the information stored in the storage device in the event of a power failure such as a power outage. This is due to the fact that the memory access signal from the logic device to the storage device interrupts a series of prescribed operations due to a drop in DC voltage. Therefore, information cannot be guaranteed even in a storage device made of a battery-backed semiconductor memory. As a countermeasure to this problem, it is possible to hold (stop) the logical device as soon as a power failure is detected, but it is necessary to stop the logical device including direct memory access transfer, and the timing to hold it is difficult, and it is difficult to hold the logical device when the power is restored. Sometimes, operator intervention is required to get it running again. Therefore, in the present invention, memory access after a power abnormality is detected is limited to the non-battery backup area, thereby guaranteeing storage information in the battery backup area without holding the logical device.

〔発明の実施例〕[Embodiments of the invention]

以下1本発明の一実施例を第1図及び第2図により説明
する。第1図は本発明による電源異常処理のフローチャ
ートであり、第2図は記憶装置の領域割当てを示したも
のである。
An embodiment of the present invention will be described below with reference to FIGS. 1 and 2. FIG. 1 is a flowchart of power supply abnormality processing according to the present invention, and FIG. 2 shows area allocation of a storage device.

パワーオンにより、イニシャルプログラムロード(IP
L)を実行するが、これは記憶装置6の非バッテリバッ
クアップ領域であるROM601に対して行い、この時
、電源異常処理プログラムもロードする。次に、論理装
置5をイニシャライズ(INIT)L、通常処理を開始
する。通常処理においては、記憶装置6の全領域が自由
にアクセスされる。なお、ダイレクトメモリアクセス(
DMA)はハードウェア、ソフトウェアによってメモリ
アクセスを中止させることが難かしいため、アクセス領
域を非バッテリバックアップ領域のRAM602を用い
て行う。
When the power is turned on, the initial program load (IP
L) is executed in the ROM 601, which is a non-battery backup area of the storage device 6, and at this time, the power supply abnormality processing program is also loaded. Next, the logical device 5 is initialized (INIT) L and normal processing is started. During normal processing, all areas of the storage device 6 are freely accessed. Note that direct memory access (
Since it is difficult for DMA) to stop memory access by hardware or software, the RAM 602, which is a non-battery backup area, is used as the access area.

停電になると、チェック回路2がこれを検出して電源異
常信号9を出力し、所定時間の経過後、電圧チェック回
路4が直流電圧レベルの低下を検出してリセット信号1
1を出力する(第4図参照)。
When a power outage occurs, the check circuit 2 detects this and outputs a power abnormality signal 9, and after a predetermined period of time, the voltage check circuit 4 detects a drop in the DC voltage level and outputs a reset signal 1.
1 (see Figure 4).

電源異常信号9により割込みがかへり、ROM601の
電源異常処理プログラムが走行する。この電源異常信号
9が出力された後の電源異常処理において、直流電圧が
低下する以前に、すなわち、リセット信号11が出力さ
れる前に、リトライポイントや重要なデータ等を記憶装
置6のバッテリバックアップ領域603にセーブする。
An interrupt is triggered by the power supply abnormality signal 9, and the power supply abnormality processing program in the ROM 601 runs. In the power supply abnormality processing after the power supply abnormality signal 9 is output, retry points, important data, etc. are backed up by the battery of the storage device 6 before the DC voltage drops, that is, before the reset signal 11 is output. Save in area 603.

その後、瞬停か停電かの判別のための時間監視等を非バ
ッテリバックアップ領域のROM601で実行する。
Thereafter, the ROM 601 in the non-battery backup area executes time monitoring and the like to determine whether it is an instantaneous power outage or a power outage.

なお、これはROM601の替りにRAM602で実行
してもよい。
Note that this may be executed in the RAM 602 instead of the ROM 601.

所定時間を経過してもリセット信号11が到来しないと
、瞬時停電と判断し、そのま\通常処理に復帰する。リ
セット信号11が到来すると論理装置5がリセッ1−さ
れ、電源復旧を待つことになる。電源が復旧すると、論
理装置5を停電前の状態にイニシャライズし処理を再開
する。イニシャルプログラムは記憶装置a6のROM6
01に格納されているため、直流電圧の低下で破壊され
ることはなく、電源復旧後のIPL動作は不要である。
If the reset signal 11 does not arrive even after a predetermined period of time has elapsed, it is determined that there is an instantaneous power outage, and the process returns to normal processing. When the reset signal 11 arrives, the logic device 5 is reset and waits for the power to be restored. When the power is restored, the logical device 5 is initialized to the state before the power outage and processing is restarted. The initial program is in ROM6 of storage device a6.
01, it will not be destroyed by a drop in DC voltage, and an IPL operation is not required after the power is restored.

以上、本実施例によれば、電源異常によって発生する記
憶情報破壊エリアを狭い範囲に限定することができる。
As described above, according to this embodiment, the storage information destruction area caused by a power supply abnormality can be limited to a narrow range.

この破壊エリアの用途を例えばDMA用バッファエリア
のみに限定すれば、電源復旧後の回復処理は、電源異常
時点に実行していたDMA処理を再実行することによっ
て、容易に完了することができる。
If the use of this destroyed area is limited to, for example, only the DMA buffer area, the recovery process after the power is restored can be easily completed by re-executing the DMA process that was being executed at the time of the power failure.

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

本発明によれば、バッテリバックアップ領域の記憶情報
を保証することができるため、パックアyプ用データセ
ーブの処理、電源復旧後のイニシャライズプログラムロ
ード(IPL)、バックアップデータのロード等が不要
となる。また、通常処理への復帰ポイントは電源異常発
生の直前にすることができるため、復帰のための人手介
入等を最少限におさえることができると\もに、短時間
に回復処理を終了することができる。
According to the present invention, since the storage information in the battery backup area can be guaranteed, there is no need for data saving processing for backup, initialization program loading (IPL) after power restoration, loading backup data, etc. In addition, since the point of return to normal processing can be set immediately before the occurrence of a power failure, it is possible to minimize the need for manual intervention for recovery, and to complete the recovery process in a short time. I can do it.

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

第1図は本発明の一実施例を説明するフローチャート、
第2図は本発明によるメモリ領域の割当てを示す図、第
3図は本発明で対象とする情報処理装置の構成例を示す
図、第4図は従来技術による電源異常処理を説明するタ
イムチャートである。 l・・・交流電源、  2・・・チェック回路。 3・・・電源装置、  4・・・チェック回路、5・・
・論理装置、 6・・・記憶装置、601・・リードオ
ンリイメモリ、 602・・・ランダムアクセスメモリ、603・・・ラ
ンダムアクセスメモリ、604・・バッテリイ、  7
・・・メモリアクセス信号、  8・・・交流電圧、 
9・・・電源異常検出信号、10・・・直流電圧、  
 11・・・リセット信号。 と−゛) 代理人弁理士  小 川 勝 男・、 簗 17i
FIG. 1 is a flowchart explaining one embodiment of the present invention;
FIG. 2 is a diagram illustrating memory area allocation according to the present invention, FIG. 3 is a diagram illustrating a configuration example of an information processing device targeted by the present invention, and FIG. 4 is a time chart illustrating power failure processing according to the prior art. It is. l...AC power supply, 2...check circuit. 3...Power supply device, 4...Check circuit, 5...
-Logic device, 6...Storage device, 601...Read-only memory, 602...Random access memory, 603...Random access memory, 604...Battery, 7
...Memory access signal, 8...AC voltage,
9... Power supply abnormality detection signal, 10... DC voltage,
11...Reset signal. (To-゛) Representative Patent Attorney Katsuo Ogawa, Yan 17i

Claims (1)

【特許請求の範囲】[Claims] (1)交流電圧を入力し直流電圧を出力する電源装置と
、該直流電圧を受けて動作する論理装置と、該直流電圧
を受けて動作する記憶領域とバッテリーバックアップさ
れた記憶領域からなる記憶装置と、交流電圧の異常を検
出して論理装置へ電源異常信号を出力する第1のチェッ
ク回路と、直流電圧の異常を検出して該論理装置へリセ
ット信号を出力する第2のチェック回路とを備え、該論
理装置は電源異常信号によって通常処理を中断し、リセ
ット信号の到来までに電源異常処理を実行する情報処理
装置において、該電源異常処理を非バッテリバックアッ
プ領域上で実行して、該リセット信号による該論理装置
からの不正なメモリアクセスをバッテリバックアップ領
域に与えず、該バックバックアップの記憶情報を保証す
ることを特徴とする情報処理装置の電源異常処理方法。
(1) A storage device consisting of a power supply device that inputs AC voltage and outputs DC voltage, a logic device that operates in response to the DC voltage, a storage area that operates in response to the DC voltage, and a battery-backed storage area. a first check circuit that detects an abnormality in the AC voltage and outputs a power supply abnormality signal to the logic device; and a second check circuit that detects an abnormality in the DC voltage and outputs a reset signal to the logic device. In the information processing device that interrupts normal processing in response to a power abnormality signal and executes power abnormality processing before the arrival of a reset signal, the logical device executes the power abnormality processing on a non-battery backup area and performs the reset. 1. A power supply abnormality processing method for an information processing device, characterized in that the storage information of the backup backup is guaranteed without giving unauthorized memory access from the logic device by a signal to the battery backup area.
JP60203268A 1985-09-17 1985-09-17 Method for processing abnormality of power supply of information processor Pending JPS6265117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60203268A JPS6265117A (en) 1985-09-17 1985-09-17 Method for processing abnormality of power supply of information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60203268A JPS6265117A (en) 1985-09-17 1985-09-17 Method for processing abnormality of power supply of information processor

Publications (1)

Publication Number Publication Date
JPS6265117A true JPS6265117A (en) 1987-03-24

Family

ID=16471226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60203268A Pending JPS6265117A (en) 1985-09-17 1985-09-17 Method for processing abnormality of power supply of information processor

Country Status (1)

Country Link
JP (1) JPS6265117A (en)

Similar Documents

Publication Publication Date Title
US4351023A (en) Process control system with improved system security features
JPH07248858A (en) Electronic apparatus with power interruption function
EP0125797A1 (en) Interrupt signal handling apparatus
JPS6265117A (en) Method for processing abnormality of power supply of information processor
US20060221751A1 (en) Memory power supply backup system
JP2967219B2 (en) External power supply for digital computer
JPS61114323A (en) Processing method for abnormality of power supply of information processor
JPH064418A (en) Abnormality processing system for memory backup device
JPS6260019A (en) Information processor
JPH03280117A (en) Power interruption processing system
JP3185446B2 (en) Computer system
JPS58139225A (en) Service interruption storage circuit
JP2001175545A (en) Server system, fault diagnosing method, and recording medium
JPH05108503A (en) Power failure processing system
JPH1125007A (en) Method for storing/recovering backup data
JPH01287722A (en) Power unit without power failure
JPS61169036A (en) System supervisory device
JPH04332047A (en) Switching system for step-out of synchronism of redundant computer
JPH02264317A (en) Data processor
JPH05233474A (en) Storage contents protection system
JPS63224079A (en) Write operation interruption storage circuit for magnetic disk device
JPS6252650A (en) Memory checking method
JPH06259338A (en) Saving and restoring system for storage contents
JPS59140699A (en) Checking system of memory contents
JPH01231152A (en) Fault processing system