JPH10207587A - Computer system and its worm starting method - Google Patents

Computer system and its worm starting method

Info

Publication number
JPH10207587A
JPH10207587A JP9012778A JP1277897A JPH10207587A JP H10207587 A JPH10207587 A JP H10207587A JP 9012778 A JP9012778 A JP 9012778A JP 1277897 A JP1277897 A JP 1277897A JP H10207587 A JPH10207587 A JP H10207587A
Authority
JP
Japan
Prior art keywords
power supply
rom
ram
power
program
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
JP9012778A
Other languages
Japanese (ja)
Inventor
Kazunori Ishikawa
主典 石川
Naoki Sudo
直樹 須藤
Yoshiharu Hisayoshi
義治 久芳
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.)
COMMUTER HERIKOPUTA SENSHIN GIJUTSU KENKYUSHO KK
Original Assignee
COMMUTER HERIKOPUTA SENSHIN GIJUTSU KENKYUSHO KK
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 COMMUTER HERIKOPUTA SENSHIN GIJUTSU KENKYUSHO KK filed Critical COMMUTER HERIKOPUTA SENSHIN GIJUTSU KENKYUSHO KK
Priority to JP9012778A priority Critical patent/JPH10207587A/en
Publication of JPH10207587A publication Critical patent/JPH10207587A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a computer system capable of reducing the load of a CPU at the instantaneous interruption of a power supply and quickly and safely executing preceding operation and a worm starting method for the computer system. SOLUTION: The computer system is constituted of a central processing unit(CPU) 1, a random access memory(RAM) 20, a read-only memory(ROM) 10 for storing a boot program to be executed after turning on the power supply, a ROM 11 for storing a worm starting program to be executed at the instantaneous interruption of the power supply, and a bus for mutually connecting the CPU 1, the RAM 20, and the ROMs 10, 11. The system is also provided with a power supply circuit 15, a memory holding capacitor 13 for supplying power to the RAM 20 only for prescribed time when power supply from the circuit 15 is interrupted, a capacitor monitor 14 for monitoring the output voltage of the capacitor 13, and a ROM switching circuit 12 for switching connection between the ROM 10 or 11 and a data bus DB in accordance with an output from the monitor 14 when power supply from the circuit 15 is restarted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電源瞬断後も正常
な動作を継続できる計算機システムおよびそのウォーム
スタート方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system capable of continuing normal operation even after a power interruption, and a warm start method thereof.

【0002】[0002]

【従来の技術】通常の計算機では、CPU(中央処理装
置)が直接扱うプログラムやデータをRAM(ランダム
アクセスメモリ)に格納しており、RAMとしてダイナ
ミックRAMなどの揮発性メモリを使用した構成が一般
的である。こうした計算機において、電源供給が非常に
短時間だけ停止する電源瞬断が起きた場合、RAMに格
納されていたデータが喪失してしまうため、その後電源
供給が再開されても、最早正常な動作は不可能であり、
最悪のときはCPUが暴走する。
2. Description of the Related Art An ordinary computer stores programs and data directly handled by a CPU (central processing unit) in a RAM (random access memory), and generally uses a volatile memory such as a dynamic RAM as the RAM. It is a target. In such a computer, if an instantaneous power interruption occurs in which the power supply is stopped for a very short time, the data stored in the RAM will be lost. Impossible
In the worst case, the CPU runs away.

【0003】航空機など特に高い信頼性が要求される機
器において、計算機の電源瞬断が発生しても、全体動作
の中断は許されず、従前の動作を正常に継続する必要が
ある。
In a device such as an aircraft which requires particularly high reliability, even if a momentary power failure of the computer occurs, the interruption of the entire operation is not allowed, and the previous operation must be normally continued.

【0004】通電直後に計算機がスタートする方法とし
て、コールドスタートとウォームスタートとがあり、コ
ールドスタートとは電源が長時間停止し、電源投入後に
計算機の初期化とともにROM(リードオンリメモリ)
や磁気ディスク等からRAMにプログラムをロードする
方法であり、ウォームスタートとは電源遮断時の直前の
状態を何らかの記憶装置、たとえば磁気ディスク等に記
憶しておいて、通電再開後に直前の状態を回復させて、
従前の動作を継続させる方法である。
[0004] As a method of starting the computer immediately after energization, there are a cold start and a warm start. In the cold start, the power supply is stopped for a long time, and after the power supply is turned on, the computer is initialized and a ROM (read only memory) is provided.
A warm start is a method of loading a program from a RAM or a magnetic disk into a RAM. A warm start is a method in which the state immediately before power-off is stored in some storage device, for example, a magnetic disk, and the state immediately before power-on is restored. Let me
This is a method of continuing the previous operation.

【0005】[0005]

【発明が解決しようとする課題】従来のウォームスター
ト方法では、ウォームスタートすべき状態の検知、状態
の復元、処理の再開等の動作をソフトウェア処理だけに
頼っている。たとえば、電源瞬断を検知してからデータ
を退避するまでの動作、および通電再開後にデータを復
帰させる動作は極めて短時間に実行する必要があるた
め、ソフトウェアを実行するCPUに多大の負荷がかか
り、電源瞬断から動作の再開までにある程度時間を要す
るのは避けられない。
In the conventional warm start method, operations for detecting a state to be warm started, restoring the state, restarting the processing, and the like rely only on software processing. For example, the operation from the detection of a momentary power interruption to the saving of data and the operation of restoring data after resuming energization must be performed in a very short time, which imposes a heavy load on the CPU executing software. Inevitably, it takes some time from the momentary interruption of the power supply to the restart of the operation.

【0006】また、こうした退避動作や復帰動作を実行
してる間、CPUは他のプログラムを実行する余裕が無
く、他の動作にも大きな影響を与えてしまう。
Further, during execution of such a save operation or a return operation, the CPU has no margin for executing other programs, which greatly affects other operations.

【0007】また、データの退避場所が磁気ディスクや
光磁気ディスクである場合、電気的なメモリと比べてデ
ータのアクセス時間が長くなるため、短時間で多くの処
理を実行できない。
[0007] Further, when the data save location is a magnetic disk or a magneto-optical disk, data access time is longer than that of an electrical memory, so that many processes cannot be executed in a short time.

【0008】本発明の目的は、電源瞬断時においてCP
Uの負荷を軽減し、迅速かつ安全に従前の動作を続行す
ることができる計算機システムおよびそのウォームスタ
ート方法を提供することである。
[0008] An object of the present invention is to provide a control system in which the CP
An object of the present invention is to provide a computer system capable of reducing the load on U and continuing the previous operation quickly and safely, and a warm start method thereof.

【0009】[0009]

【課題を解決するための手段】本発明は、所定のプログ
ラムに従って演算処理を行う中央処理装置と、プログラ
ムおよびデータを格納する揮発性のRAMと、電源投入
後に実行する第1プログラムを格納した不揮発性の第1
ROMと、電源瞬断時に実行する第2プログラムを格納
した不揮発性の第2ROMと、データバスおよびアドレ
スバスを有し、中央処理装置、RAMおよび各ROMを
相互に接続するバスと、中央処理装置、RAMおよび各
ROMに電力を供給する電源回路と、電源回路によって
充電され、電源回路からの電力供給が遮断した場合、所
定時間だけRAMに電力を供給する蓄電素子と、蓄電素
子の出力電圧を監視する電圧監視手段と、電源回路から
の電力供給が再開した場合に、電圧監視手段の出力に応
じて第1ROMまたは第2ROMとデータバスとの間の
接続を切替えるROM切替え手段とを備えることを特徴
とする計算機システムである。本発明に従えば、電源回
路からの電力供給が遮断した場合、蓄電素子が所定時間
だけRAMに電力を供給することによって、所定時間だ
けRAMの動作を確保できる。そのため、RAM以外の
揮発性メモリ、たとえば中央処理装置内の各種レジス
タ、プログラムカウンタ、スタックポインタ等、あるい
はその他周辺回路内のレジスタ等に記憶されているデー
タをRAMに退避することが可能になる。そして、通電
が再開したとき、RAMに退避していたデータを元のメ
モリに迅速に復帰できる。また、蓄電素子の出力電圧を
監視することによって、RAM内のプログラムや退避デ
ータが正常に保持されているか否かを容易に判定でき
る。通電再開後にRAMの退避データが保持されていれ
ば第2ROMとデータバスとの間を接続して電源瞬断時
に実行する第2プログラムによる動作に切替えて、ウォ
ームスタートを実行する。一方、通電再開後にRAMの
退避データが破壊されていれば第1ROMとデータバス
との間を接続して電源投入時に実行する第1プログラム
による動作に切替えて、コールドスタートを実行する。
こうして蓄電素子の出力電圧を判定することによって、
電源瞬断時間の長さに応じてウォームスタートまたはコ
ールドスタートの切替えを容易に実現できる。
According to the present invention, there is provided a central processing unit for performing arithmetic processing according to a predetermined program, a volatile RAM for storing programs and data, and a nonvolatile memory for storing a first program to be executed after power-on. Sex First
A central processing unit, a bus having a data bus and an address bus, and interconnecting the RAM and each ROM; a central processing unit; A power supply circuit that supplies power to the RAM and each ROM, a power storage element that is charged by the power supply circuit and supplies power to the RAM for a predetermined time when power supply from the power supply circuit is cut off, and an output voltage of the power storage element. A voltage monitoring means for monitoring, and a ROM switching means for switching a connection between the first ROM or the second ROM and the data bus according to an output of the voltage monitoring means when power supply from the power supply circuit is resumed. It is a computer system characterized by the following. According to the present invention, when the power supply from the power supply circuit is interrupted, the operation of the RAM can be ensured for the predetermined time by the power storage element supplying the power to the RAM for the predetermined time. Therefore, data stored in a volatile memory other than the RAM, for example, various registers in the central processing unit, a program counter, a stack pointer, or the like, or data stored in a register in a peripheral circuit or the like can be saved in the RAM. Then, when the energization is resumed, the data saved in the RAM can be quickly returned to the original memory. Further, by monitoring the output voltage of the storage element, it can be easily determined whether or not the program and the save data in the RAM are normally held. If the saved data in the RAM is retained after the power supply is resumed, the second ROM and the data bus are connected, and the operation is switched to the operation by the second program executed when the power supply is momentarily interrupted, and the warm start is executed. On the other hand, if the saved data in the RAM is destroyed after the power supply is resumed, the first ROM and the data bus are connected to switch to the operation by the first program executed when the power is turned on, and the cold start is executed.
By determining the output voltage of the storage element in this manner,
Switching between warm start and cold start can be easily realized according to the length of the instantaneous power interruption time.

【0010】また本発明は、所定のプログラムに従って
演算処理を行う中央処理装置と、プログラムおよびデー
タを格納する揮発性のRAMと、電源投入後に実行する
第1プログラムを格納した不揮発性の第1ROMと、中
央処理装置、RAMおよび第1ROMに電力を供給する
電源回路とを備える計算機システムのウォームスタート
方法であって、第1ROMとは別個に、電源瞬断時に実
行する第2プログラムを格納した不揮発性の第2ROM
を設け、電源回路からの電力供給が遮断した場合、所定
時間だけRAMに電力を供給する蓄電素子を設け、電源
回路からの電力供給が再開した場合に、蓄電素子の供給
電圧が所定値未満であれば、中央処理装置は第1ROM
に格納された第1プログラムを実行し、一方、蓄電素子
の供給電圧が所定値以上であれば、中央処理装置は第2
ROMに格納された第2プログラムを実行することを特
徴とする計算機システムのウォームスタート方法であ
る。本発明に従えば、電源回路からの電力供給が遮断し
た場合、蓄電素子が所定時間だけRAMに電力を供給す
ることによって、所定時間だけRAMの動作を確保でき
る。そのため、RAM以外の揮発性メモリ、たとえば中
央処理装置内の各種レジスタ、プログラムカウンタ、ス
タックポインタ等、あるいはその他周辺回路内のレジス
タ等に記憶されているデータをRAMに退避することが
可能になる。そして、通電が再開したとき、RAMに退
避していたデータを元のメモリに迅速に復帰できる。ま
た、蓄電素子の出力電圧と所定値とを比較することによ
って、RAM内のプログラムや退避データが正常に保持
されているか否かを容易に判定できる。通電再開後にR
AMの退避データが保持されていれば第2ROMとデー
タバスとの間を接続して電源瞬断時に実行する第2プロ
グラムによる動作に切替えて、ウォームスタートを実行
する。一方、通電再開後にRAMの退避データが破壊さ
れていれば第1ROMとデータバスとの間を接続して電
源投入時に実行する第1プログラムによる動作に切替え
て、コールドスタートを実行する。こうして蓄電素子の
出力電圧を判定することによって、電源瞬断時間の長さ
に応じてウォームスタートまたはコールドスタートの切
替えを容易に実現できる。
The present invention also provides a central processing unit for performing arithmetic processing in accordance with a predetermined program, a volatile RAM for storing programs and data, a non-volatile first ROM for storing a first program to be executed after power-on, and , A central processing unit, a RAM, and a power supply circuit for supplying power to a first ROM, comprising: a non-volatile memory storing a second program to be executed at the moment of a power interruption, separately from the first ROM; Second ROM
When the power supply from the power supply circuit is interrupted, a power storage element that supplies power to the RAM for a predetermined time is provided, and when the power supply from the power supply circuit is restarted, the power supply voltage of the power storage element is less than the predetermined value. If present, the central processing unit is the first ROM
Executes the first program stored in the storage device. On the other hand, if the supply voltage of the storage element is equal to or higher than a predetermined value, the central processing unit
A warm start method for a computer system characterized by executing a second program stored in a ROM. According to the present invention, when the power supply from the power supply circuit is interrupted, the operation of the RAM can be ensured for the predetermined time by the power storage element supplying the power to the RAM for the predetermined time. Therefore, data stored in a volatile memory other than the RAM, for example, various registers in the central processing unit, a program counter, a stack pointer, or the like, or data stored in a register in a peripheral circuit or the like can be saved in the RAM. Then, when the energization is resumed, the data saved in the RAM can be quickly returned to the original memory. Further, by comparing the output voltage of the storage element with a predetermined value, it can be easily determined whether or not the program and the saved data in the RAM are normally held. R after energization is resumed
If the saved data of the AM is held, the connection between the second ROM and the data bus is made, and the operation is switched to the operation by the second program executed at the moment of the instantaneous power interruption, and the warm start is executed. On the other hand, if the saved data in the RAM is destroyed after the power supply is resumed, the first ROM and the data bus are connected to switch to the operation by the first program executed when the power is turned on, and the cold start is executed. By determining the output voltage of the power storage element in this manner, switching between warm start and cold start can be easily realized in accordance with the length of the instantaneous power interruption time.

【0011】[0011]

【発明の実施の形態】図1は、本発明の実施の一形態の
電気的構成を示すブロック図である。計算機システム
は、CPU(中央処理装置)1と、ブート用のROM1
0と、ウォームスタート用のROM11と、RAM20
と、キーボード、スイッチやセンサ等の入力機器および
モータやアクチュエータ等の出力機器との間に介在する
入出力回路(I/O)21と、これらの回路を相互に接
続するバス22などで構成されている。
FIG. 1 is a block diagram showing an electrical configuration of an embodiment of the present invention. The computer system includes a CPU (central processing unit) 1 and a boot ROM 1.
0, a warm start ROM 11 and a RAM 20
And an input / output circuit (I / O) 21 interposed between input devices such as a keyboard, a switch and a sensor, and output devices such as a motor and an actuator, and a bus 22 for interconnecting these circuits. ing.

【0012】CPU1は、ROM10、11およびRA
M20に格納されたプログラムに従って演算処理を行
い、CPU1の内部にはデータを一時的に記憶する各種
のレジスタ3、プログラムの実行アドレスを記憶するプ
ログラムカウンタ4、割込処理時にレジスタ3やプログ
ラムカウンタ4等のデータをRAM20に退避させるア
ドレスを記憶するスタックポインタ5、CPU1自体の
電源電圧の低下を検知して割込を発生する割込回路2な
どが形設されている。
CPU 1 includes ROMs 10 and 11 and RA
The arithmetic processing is performed in accordance with the program stored in M20, and various registers 3 for temporarily storing data, a program counter 4 for storing the execution address of the program, and a register 3 and a program counter 4 for interrupt processing are provided in the CPU 1. A stack pointer 5 for storing an address for saving data such as data in the RAM 20, an interrupt circuit 2 for detecting a drop in the power supply voltage of the CPU 1 itself and generating an interrupt, and the like are formed.

【0013】ROM10、11は不揮発性のメモリであ
って、ROM10には電源投入後に実行するブートプロ
グラムが格納され、電源瞬断時に実行するウォームスタ
ートプログラムが格納されている。
The ROMs 10 and 11 are non-volatile memories. The ROM 10 stores a boot program to be executed after the power is turned on, and a warm start program to be executed when the power is momentarily interrupted.

【0014】RAM20は、ダイナミックRAM等の揮
発性メモリで構成され、OS(オペレーションシステ
ム)やアプリケーョンプログラムや種々のデータ等が格
納される。
The RAM 20 is composed of a volatile memory such as a dynamic RAM, and stores an OS (operation system), application programs, various data, and the like.

【0015】バス22は、複数のデータ線から成るデー
タバスDBと、複数のアドレス線から成るアドレスバス
ABと、複数の制御線から成るコントロールバスCBを
含んでいる。
The bus 22 includes a data bus DB including a plurality of data lines, an address bus AB including a plurality of address lines, and a control bus CB including a plurality of control lines.

【0016】電源回路15は、商用電力や発電機等から
供給される電力を直流電圧に変換して上記の回路に供給
する。
The power supply circuit 15 converts electric power supplied from commercial electric power or a generator into a DC voltage and supplies the DC voltage to the above circuit.

【0017】本実施形態において、RAM20の予備的
な電源としてメモリ保持コンデンサ13が設けられる。
メモリ保持コンデンサ13は、通電時に電源回路15に
よって充電されており、電源回路15からの電力供給が
遮断した場合、所定時間(たとえば1秒程度)RAM2
0に電力を供給する。
In this embodiment, a memory holding capacitor 13 is provided as a spare power supply for the RAM 20.
The memory holding capacitor 13 is charged by the power supply circuit 15 at the time of energization, and when the power supply from the power supply circuit 15 is cut off, the RAM 2 is stored for a predetermined time (for example, about 1 second).
Power 0.

【0018】さらにメモリ保持コンデンサ13の出力電
圧を監視するコンデンサモニタ14が設けられ、メモリ
保持コンデンサ13の出力電圧が所定値未満であればロ
ーレベルを出力し、メモリ保持コンデンサ13の出力電
圧が所定値以上であればハイレベルを出力する。
Further, a capacitor monitor 14 for monitoring the output voltage of the memory holding capacitor 13 is provided. If the output voltage of the memory holding capacitor 13 is lower than a predetermined value, a low level is output. If it is higher than the value, a high level is output.

【0019】ROM切替え回路12は、複数のデータ線
を同時にスイッチングするものであり、コンデンサモニ
タ14の出力がローレベルであればROM10とデータ
バスDBとの間を接続し、一方、コンデンサモニタ14
の出力がハイレベルであればROM11とデータバスD
Bとの間を接続する。
The ROM switching circuit 12 switches a plurality of data lines at the same time. If the output of the capacitor monitor 14 is at a low level, the ROM switch circuit 12 connects between the ROM 10 and the data bus DB.
Is high, the ROM 11 and the data bus D
B is connected.

【0020】図2は、メモリ保持コンデンサ13の周辺
回路の一例を示す回路図である。電源回路15の電源線
VCは、逆流防止用のダイオードD1を介してメモリ保
持コンデンサ13に接続され、さらにRAM20の電源
端子に接続されている。メモリ保持コンデンサ13の両
端には、放電時定数を決定する抵抗R1が接続され、電
源停止後に約1秒間だけRAM20の最低動作電圧以上
を保持するように設定される。
FIG. 2 is a circuit diagram showing an example of a peripheral circuit of the memory holding capacitor 13. The power supply line VC of the power supply circuit 15 is connected to the memory holding capacitor 13 via the diode D1 for preventing backflow, and further connected to the power supply terminal of the RAM 20. A resistor R1 for determining a discharge time constant is connected to both ends of the memory holding capacitor 13, and is set so as to hold the minimum operating voltage of the RAM 20 or more for about one second after the power is stopped.

【0021】コンデンサモニタ14としてコンパレータ
CPが使用され、コンパレータCP非反転入力にはメモ
リ保持コンデンサ13の出力が接続され、反転入力には
基準電圧回路VRが接続され、基準電圧回路VRからの
基準電圧ErはRAM20の最低動作電圧に設定され
る。コンパレータCPの出力はROM切替え回路12の
入力に接続される。
A comparator CP is used as the capacitor monitor 14, the output of the memory holding capacitor 13 is connected to the non-inverting input of the comparator CP, the reference voltage circuit VR is connected to the inverting input, and the reference voltage from the reference voltage circuit VR is applied. Er is set to the minimum operating voltage of the RAM 20. The output of the comparator CP is connected to the input of the ROM switching circuit 12.

【0022】図3は、動作を示すフローチャートであ
る。計算機システムが長期間停止した後、電源が投入さ
れると、メモリ保持コンデンサ13は放電した状態であ
るため、ステップs1でメモリ保持コンデンサ13の出
力電圧Ecは基準電圧Erより低いと判定され、コンデ
ンサモニタ14の出力はローレベルとなって、ROM切
替え回路12がROM10とデータバスDBとの間を接
続する。
FIG. 3 is a flowchart showing the operation. When the power is turned on after the computer system has been stopped for a long period of time, the memory holding capacitor 13 is in a discharged state. Therefore, it is determined in step s1 that the output voltage Ec of the memory holding capacitor 13 is lower than the reference voltage Er, The output of the monitor 14 becomes low level, and the ROM switching circuit 12 connects between the ROM 10 and the data bus DB.

【0023】次にステップs2に移行して、CPU1も
初期化された後、ブート用のROM10に記憶されてい
るブートプログラムが起動して、オペーレーションシス
テムや種々のアプリケーションプログラムを磁気ディス
ク(不図示)等からRAM20にロードするコールドス
タートを実行する。その後、ステップs4に移行してR
AM20上の所定のプログラムが動作を開始して通常処
理を実行する。
Next, the process proceeds to step s2, after the CPU 1 is also initialized, the boot program stored in the boot ROM 10 is started, and the operating system and various application programs are transferred to the magnetic disk (non-volatile). A cold start to load the data into the RAM 20 from the illustrated position) is executed. Then, the process proceeds to step s4 and R
A predetermined program on the AM 20 starts an operation and executes a normal process.

【0024】次に電源瞬断時の動作について説明する。
計算機システムが通常処理を行っているとき、別の大型
機器が起動して外部電源の容量を不足して、電源回路1
5の供給電圧が短時間低下することがある。このとき、
メモリ保持コンデンサ13によってRAM20のデータ
は所定時間だけ保存されるが、その他のCPU1や入出
力回路21の動作が不安定または不能になり、その後電
源回路15の供給電圧が復旧しても正常な動作は保障さ
れない。
Next, the operation at the moment of a power interruption will be described.
When the computer system is performing normal processing, another large device is started up and the capacity of the external power supply is insufficient, and the power supply circuit 1
5 may decrease for a short time. At this time,
Although the data in the RAM 20 is stored for a predetermined time by the memory holding capacitor 13, the operation of the other CPU 1 and the input / output circuit 21 becomes unstable or disabled, and the normal operation is performed even after the supply voltage of the power supply circuit 15 is restored. Is not guaranteed.

【0025】その対策として、電源瞬断を早期に検知し
て、電源回路15の供給電圧が完全に低下する直前にC
PU1や入出力回路21の内部レジスタのデータを別の
記憶装置に退避させておいて、電源回路15の供給電圧
が復旧した後に退避したデータを元の場所に戻すことに
よって速やかに瞬断前の状態に回復できる。これをウォ
ームスタートと称する。
As a countermeasure, an instantaneous interruption of the power supply is detected at an early stage, and C is detected immediately before the supply voltage of the power supply circuit 15 completely decreases.
The data of the PU1 and the internal register of the input / output circuit 21 is saved in another storage device, and the saved data is returned to the original place after the supply voltage of the power supply circuit 15 is restored, so that the data before the instantaneous interruption can be quickly restored. You can recover to the state. This is called a warm start.

【0026】本実施形態において、電源回路15の供給
電圧が低下すると、その途中で割込回路2が割込を発生
して、所定の割込プログラムに従ってレジスタ3、プロ
グラムカウンタ4、スタックポインタ5など電源停止に
よって消失するデータをRAM20に設定されたウォー
ムスタート用スタックに保存する。その後、CPU1は
停止する。
In the present embodiment, when the supply voltage of the power supply circuit 15 decreases, the interrupt circuit 2 generates an interrupt on the way, and the register 3, the program counter 4, the stack pointer 5, etc., according to a predetermined interrupt program. The data that is lost due to the power stop is stored in the warm start stack set in the RAM 20. Thereafter, the CPU 1 stops.

【0027】通電が再開すると、ステップs1において
メモリ保持コンデンサ13の出力電圧Ecと基準電圧E
rとを比較して、電源遮断がたとえば1秒間以上継続す
ると、出力電圧Ecは基準電圧Erより低いと判定され
る。このときRAM20内のデータも消失したと考えら
れるため、上述のステップs2と同様に、ブート用のR
OM10が選択されて電源投入時のコールドスタートを
実行する。
When the energization is resumed, in step s1, the output voltage Ec of the memory holding capacitor 13 and the reference voltage E
When the power supply is cut off, for example, for one second or longer, it is determined that the output voltage Ec is lower than the reference voltage Er. At this time, it is considered that the data in the RAM 20 has also been lost.
The OM 10 is selected to perform a cold start when the power is turned on.

【0028】一方、電源瞬断が短時間である場合、通電
再開後、ステップs1においてメモリ保持コンデンサ1
3の出力電圧Ecと基準電圧Erとを比較して、出力電
圧Ecが基準電圧Er以上であると判定されると、コン
デンサモニタ14の出力はハイレベルとなって、ROM
切替え回路12がROM11とデータバスDBとの間を
接続する。このときRAM20内のデータは保存されて
いる。
On the other hand, if the momentary power interruption is short, after the power supply is resumed, in step s1, the memory holding capacitor 1 is turned on.
3 is compared with the reference voltage Er, and when it is determined that the output voltage Ec is equal to or higher than the reference voltage Er, the output of the capacitor monitor 14 becomes high level and the ROM
The switching circuit 12 connects between the ROM 11 and the data bus DB. At this time, the data in the RAM 20 is stored.

【0029】次にステップs3に移行して、CPU1が
初期化された後、ウォームスタート用のROM11に記
憶されているウォームスタートプログラムが起動して、
RAM20のウォームスタート用スタックに保存された
データをレジスタ3、プログラムカウンタ4、スタック
ポインタ5などに戻す。このときRAM20内のオペー
レーションシステムや種々のアプリケーションプログラ
ムも消失していないため、磁気ディスク等から再ロード
する必要がない。したがって、ステップs4に移行した
後、瞬断直前の状態から通常処理を再開することが可能
となるため、コールドスタートと比べて処理中断時間を
格段に短縮化できる。
Next, the process proceeds to step s3, after the CPU 1 is initialized, the warm start program stored in the warm start ROM 11 is started, and
The data stored in the warm start stack of the RAM 20 is returned to the register 3, the program counter 4, the stack pointer 5, and the like. At this time, since the operating system and various application programs in the RAM 20 have not been lost, it is not necessary to reload the data from a magnetic disk or the like. Therefore, after shifting to step s4, the normal processing can be restarted from the state immediately before the momentary interruption, so that the processing interruption time can be significantly reduced as compared with the cold start.

【0030】また、コールドスタートと比べてCPU1
の負荷を軽減できるため、他の動作に与える影響を少な
くできる。さらに、CPU1の内部データをRAM20
に退避しているため、磁気ディスク等に退避する場合と
比べてデータのアクセス時間が短くなり、再開処理の時
間を大幅に短縮できる。
Further, compared to the cold start, the CPU 1
Can be reduced, so that the influence on other operations can be reduced. Further, the internal data of the CPU 1 is stored in the RAM 20.
Therefore, the data access time is shorter than in the case where the data is saved to a magnetic disk or the like, and the time for the restart process can be significantly reduced.

【0031】なお、メモリ保持コンデンサ13はRAM
20のデータ保持を維持できる小型の容量のもので足
り、あるいは鉛蓄電池やNi−Cd電池等の二次電池を
使用することも可能である。また、メモリ保持コンデン
サ13の容量や抵抗R1の抵抗値、基準電圧Erを調整
することによって、ウォームスタートの開始条件を任意
に設定できる。
The memory holding capacitor 13 is a RAM
It is sufficient to use a small capacity capable of maintaining 20 data retentions, or a secondary battery such as a lead storage battery or a Ni-Cd battery can be used. Further, by adjusting the capacitance of the memory holding capacitor 13, the resistance value of the resistor R1, and the reference voltage Er, the start condition of the warm start can be set arbitrarily.

【0032】[0032]

【発明の効果】以上詳説したように本発明によれば、電
源回路からの電力供給が遮断した場合、中央処理装置内
の各種レジスタ、プログラムカウンタ、スタックポイン
タ等、あるいはその他周辺回路内のレジスタ等に記憶さ
れているデータをRAMに退避することが可能になる。
そして、通電が再開したとき、RAMに退避していたデ
ータを元のメモリに迅速に復帰できる。
As described above in detail, according to the present invention, when power supply from the power supply circuit is cut off, various registers in the central processing unit, a program counter, a stack pointer, etc., or registers in other peripheral circuits, etc. Can be saved in the RAM.
Then, when the energization is resumed, the data saved in the RAM can be quickly returned to the original memory.

【0033】また、蓄電素子の出力電圧を監視すること
によって、電源瞬断時間の長さに応じてウォームスター
トまたはコールドスタートの切替えを容易に実現でき
る。
Further, by monitoring the output voltage of the storage element, switching between warm start and cold start can be easily realized according to the length of the instantaneous power interruption time.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の一形態の電気的構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing an electrical configuration of an embodiment of the present invention.

【図2】メモリ保持コンデンサ13の周辺回路の一例を
示す回路図である。
FIG. 2 is a circuit diagram showing an example of a peripheral circuit of a memory holding capacitor 13;

【図3】動作を示すフローチャートである。FIG. 3 is a flowchart showing an operation.

【符号の説明】[Explanation of symbols]

1 CPU 2 割込回路 3 レジスタ 4 プログラムカウンタ 5 スタックポインタ 10、11 ROM 13 メモリ保持コンデンサ 14 コンデンサモニタ 15 電源回路 20 RAM 21 入出力回路 22 バス DESCRIPTION OF SYMBOLS 1 CPU 2 Interrupt circuit 3 Register 4 Program counter 5 Stack pointer 10, 11 ROM 13 Memory holding capacitor 14 Capacitor monitor 15 Power supply circuit 20 RAM 21 I / O circuit 22 Bus

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所定のプログラムに従って演算処理を行
う中央処理装置と、 プログラムおよびデータを格納する揮発性のRAMと、 電源投入後に実行する第1プログラムを格納した不揮発
性の第1ROMと、 電源瞬断時に実行する第2プログラムを格納した不揮発
性の第2ROMと、 データバスおよびアドレスバスを有し、中央処理装置、
RAMおよび各ROMを相互に接続するバスと、 中央処理装置、RAMおよび各ROMに電力を供給する
電源回路と、 電源回路によって充電され、電源回路からの電力供給が
遮断した場合、所定時間だけRAMに電力を供給する蓄
電素子と、 蓄電素子の出力電圧を監視する電圧監視手段と、 電源回路からの電力供給が再開した場合に、電圧監視手
段の出力に応じて第1ROMまたは第2ROMとデータ
バスとの間の接続を切替えるROM切替え手段とを備え
ることを特徴とする計算機システム。
A central processing unit for performing arithmetic processing according to a predetermined program; a volatile RAM for storing programs and data; a non-volatile first ROM for storing a first program to be executed after power-on; A non-volatile second ROM storing a second program to be executed at the time of disconnection; a data bus and an address bus;
A bus for interconnecting the RAM and each ROM, a power supply circuit for supplying power to the central processing unit, the RAM and each ROM, and a RAM for a predetermined time when charged by the power supply circuit and interrupted by the power supply circuit , A voltage monitoring means for monitoring an output voltage of the power storage element, and a first ROM or a second ROM according to the output of the voltage monitoring means when the power supply from the power supply circuit is restarted. And a ROM switching means for switching a connection between the computer system.
【請求項2】 所定のプログラムに従って演算処理を行
う中央処理装置と、 プログラムおよびデータを格納する揮発性のRAMと、 電源投入後に実行する第1プログラムを格納した不揮発
性の第1ROMと、 中央処理装置、RAMおよび第1ROMに電力を供給す
る電源回路とを備える計算機システムのウォームスター
ト方法であって、 第1ROMとは別個に、電源瞬断時に実行する第2プロ
グラムを格納した不揮発性の第2ROMを設け、 電源回路からの電力供給が遮断した場合、所定時間だけ
RAMに電力を供給する蓄電素子を設け、 電源回路からの電力供給が再開した場合に、蓄電素子の
供給電圧が所定値未満であれば、中央処理装置は第1R
OMに格納された第1プログラムを実行し、一方、蓄電
素子の供給電圧が所定値以上であれば、中央処理装置は
第2ROMに格納された第2プログラムを実行すること
を特徴とする計算機システムのウォームスタート方法。
2. A central processing unit for performing arithmetic processing according to a predetermined program; a volatile RAM for storing programs and data; a non-volatile first ROM for storing a first program to be executed after power-on; A warm start method for a computer system comprising a device, a RAM, and a power supply circuit for supplying power to a first ROM, wherein a nonvolatile second ROM storing a second program to be executed at the moment of a power interruption separately from the first ROM When the power supply from the power supply circuit is interrupted, a power storage element for supplying power to the RAM for a predetermined time is provided when the power supply from the power supply circuit is restarted. If there is, the central processing unit is the first R
A computer system for executing the first program stored in the OM, and executing the second program stored in the second ROM when the supply voltage of the storage element is equal to or higher than a predetermined value. Warm start method.
JP9012778A 1997-01-27 1997-01-27 Computer system and its worm starting method Pending JPH10207587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9012778A JPH10207587A (en) 1997-01-27 1997-01-27 Computer system and its worm starting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9012778A JPH10207587A (en) 1997-01-27 1997-01-27 Computer system and its worm starting method

Publications (1)

Publication Number Publication Date
JPH10207587A true JPH10207587A (en) 1998-08-07

Family

ID=11814873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9012778A Pending JPH10207587A (en) 1997-01-27 1997-01-27 Computer system and its worm starting method

Country Status (1)

Country Link
JP (1) JPH10207587A (en)

Similar Documents

Publication Publication Date Title
US5815409A (en) Control system and method for automatic shutdown of a power supply
US6336174B1 (en) Hardware assisted memory backup system and method
JP2998737B2 (en) Power supply control device for peripheral equipment
JP3224153B2 (en) Improved data protection system and data protection method
US6438708B1 (en) Information processing apparatus that can hold internal information
US5809223A (en) Network hibernation system and a control method thereof
US5551077A (en) Portable telephone equipment with condition restoration
US6442702B1 (en) On-vehicle computer having function of protecting vehicular battery
US20050066158A1 (en) Fast resume to normal operation of a computer in a power saving mode
JPH10207587A (en) Computer system and its worm starting method
JP3231561B2 (en) Backup memory control method
JPH0594237A (en) Power source controller
JP3133492B2 (en) Information processing device
JPH02297237A (en) Automatic restarting device for electronic computer system
JPH06250939A (en) Data processor
JPH0471208B2 (en)
JP2854154B2 (en) Processing equipment
JPH10289385A (en) Information processor, commodity registering device and program storage medium
JP3051043B2 (en) Data processing device
JPS62138943A (en) Storage device
JPH0887431A (en) Abnormality detecting device for central processing unit
JPH0974694A (en) Uninerruptible power supply
JPH0546286A (en) Microcomputer system
JP2004145584A (en) Disk array device
JPH0687213B2 (en) Data processing device