JPS6130304B2 - - Google Patents
Info
- Publication number
- JPS6130304B2 JPS6130304B2 JP56204672A JP20467281A JPS6130304B2 JP S6130304 B2 JPS6130304 B2 JP S6130304B2 JP 56204672 A JP56204672 A JP 56204672A JP 20467281 A JP20467281 A JP 20467281A JP S6130304 B2 JPS6130304 B2 JP S6130304B2
- Authority
- JP
- Japan
- Prior art keywords
- power supply
- power
- power outage
- random access
- voltage
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Stand-By Power Supply Arrangements (AREA)
Description
【発明の詳細な説明】
この発明は、商用電源の停電時に商用電源から
電源が供給されているマイクロコンピユータのメ
モリを保護する保護装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a protection device that protects the memory of a microcomputer that is supplied with power from a commercial power source during a power outage of the commercial power source.
第1図は従来のマイクロコンピユータの一例を
示すブロツク図であり、図において1は中央処理
装置(CPU)、2はアドレスデコーダ、3a,…
……,3nはランダムアクセスメモリ(RAM)、
4はCPU1からアドレスデコーダコーダへのア
ドレスバス、5はCPU1とRAM3a,………,
3n間のデータバス、6はCPU1からRAM3
a,………,3nへの制御ライン、7はアドレス
デコーダ2からRAM3a,………,3nへのメ
モリ選択ライン、8は電源装置からの電源供給ラ
インである。 FIG. 1 is a block diagram showing an example of a conventional microcomputer. In the figure, 1 is a central processing unit (CPU), 2 is an address decoder, 3a,...
..., 3n is random access memory (RAM),
4 is the address bus from CPU1 to address decoder coder, 5 is CPU1 and RAM3a, ......,
Data bus between 3n, 6 is from CPU1 to RAM3
7 is a memory selection line from the address decoder 2 to the RAM 3a, . . . , 3n, and 8 is a power supply line from the power supply device.
次に動作について説明する。電源供給ライン8
によつてCPU1及びRAM3a,………,3nに
電源が供給される。CPU1よりRAM3a,……
…,3nへの読み書きを行うには、CPU1及び
RAM3a,………,3nに電源が供給されてい
る状態で、まず、CPU1からアドレスバス4に
よつてアドレスデコーダ2へアドレス情報が送出
される。このアドレス情報がアドレスデコーダ2
でデコードされ、メモリ選択ライン7によつて該
当RAM3iへ送出される。同時にCPU1から制
御ライン6を通してRAM3a,………,3nへ
読み書き命令が伝送される。その結果、該当
RAM3iのみがCPU1とデータ送受可能とな
り、データバス5によつてデータが送受される。 Next, the operation will be explained. Power supply line 8
Power is supplied to the CPU 1 and the RAMs 3a, . . . , 3n. RAM3a from CPU1,...
..., 3n, CPU1 and
While power is being supplied to the RAMs 3a, . . . , 3n, address information is first sent from the CPU 1 to the address decoder 2 via the address bus 4. This address information is sent to address decoder 2.
The data is decoded by the memory selection line 7 and sent to the corresponding RAM 3i. At the same time, read/write commands are transmitted from the CPU 1 to the RAMs 3a, . . . , 3n through the control line 6. As a result, applicable
Only the RAM 3i can send and receive data to and from the CPU 1, and data is sent and received via the data bus 5.
従来のマイクロコンピユータは以上のように構
成されているので、商用電源から電源装置を介し
て電源が供給されているマイクロコンピユータに
おいては、商用電源が停電するとRAM内容は揮
発してしまうという欠点があつた。 Conventional microcomputers are configured as described above, so microcomputers that are supplied with power from a commercial power source via a power supply device have the disadvantage that the RAM contents will be volatile if the commercial power supply is interrupted. Ta.
この発明は上記のような従来のものの欠点を除
去するためになされたもので、商用電源の停電時
にマイクロコンピユータのメモリを保護するとと
もに、停電が止み電源が再び供給されたときマイ
クロコンピユータが停電前の状態を継続して動作
できるように保護するマイクロコンピユータ保護
装置を提供することを目的としている。 This invention was made in order to eliminate the drawbacks of the conventional ones as described above. It protects the memory of a microcomputer during a commercial power outage, and when the power outage stops and power is supplied again, the microcomputer The purpose of the present invention is to provide a microcomputer protection device that protects the microcomputer so that it can continue to operate.
以下、この発明の一実施例について説明する。
第2図はこの発明の一実施例を示すブロツク図で
あり、図において1,2,3a,3n,4,5,
6,7,8は第1図の同一符号と同一または相当
する部分を示す。なお、電源供給ライン8は
RAM3a,………,3nに直接接続されていな
い。9は充電可能なバツテリ、10はRAM3
a,………,3nに対する電源を切替える電源切
替部、11はRAM3a,………3nへの電源供
給ライン、12は商用電源から交流をとり入れる
商用電源ライン、13は停電検出部、14は停電
検出信号ライン、15はリセツト信号発生部、1
6は停電検出アンサ信号ライン、17はリセツト
信号ラインである。 An embodiment of the present invention will be described below.
FIG. 2 is a block diagram showing an embodiment of the present invention, and in the figure, 1, 2, 3a, 3n, 4, 5,
6, 7, and 8 indicate the same or corresponding parts as the same reference numerals in FIG. Note that the power supply line 8 is
Not directly connected to RAM3a, ......, 3n. 9 is a rechargeable battery, 10 is RAM3
11 is a power supply line to RAM 3a, 3n, 12 is a commercial power line that takes in AC from the commercial power supply, 13 is a power failure detection unit, and 14 is a power failure detection unit. Detection signal line, 15 is a reset signal generator, 1
6 is a power failure detection answer signal line, and 17 is a reset signal line.
次に動作について説明する。商用電源が停電
し、商用電源から商用電源ライン12によつて送
られてくる交流の電圧が降下するとき、停電検出
部13で交流を整流して得た直流の電圧が基準電
圧より低くなると、これを探知して停電発生とみ
なし、停電検出信号を発生する。発生した停電検
出信号は停電検出信号ライン14によつてCPU
1及びリセツト信号発生部15へ送られる。この
時点ではマイクロコンピユータの電源装置自身が
持つている時定数のため電源供給ライン8での電
圧は低下していないので、マイクロコンピユータ
は動作可能である。 Next, the operation will be explained. When the commercial power supply fails and the voltage of the AC sent from the commercial power supply through the commercial power line 12 drops, the DC voltage obtained by rectifying the AC in the power failure detection unit 13 becomes lower than the reference voltage. This is detected and regarded as a power outage, and a power outage detection signal is generated. The generated power failure detection signal is sent to the CPU via the power failure detection signal line 14.
1 and the reset signal generator 15. At this point, the voltage on the power supply line 8 has not dropped due to the time constant of the microcomputer's power supply itself, so the microcomputer is operable.
CPU1では、停電検出部13からの停電検出
信号を割込信号として入力し、この停電検出信号
で最優先処理にてCPU1の内部状態をRAM3
a,………,3nに退避させるプログラムを駆動
させる。CPU1の内部状態のRAM3a,……
…,3nへの退避処理完了時点で、CPU1から
停電検出信号による処理が完了したことを表わす
停電検出アンサ信号を停電検出アンサ信号ライン
16によつてリセツト信号発生部15へ送出す
る。 In the CPU 1, the power failure detection signal from the power failure detection unit 13 is input as an interrupt signal, and the internal state of the CPU 1 is changed to the RAM 3 using the power failure detection signal with the highest priority processing.
The program to be saved is driven in a, . . . , 3n. RAM3a of internal state of CPU1,...
. . , 3n, the CPU 1 sends a power failure detection answer signal to the reset signal generating section 15 via the power failure detection answer signal line 16, indicating that the process based on the power failure detection signal has been completed.
リセツト信号発生部15では、先に停電検出部
13から送出されてきた停電検出信号と、この
CPU1から送出されてきた停電検出アンサ信号
との論理積によつて、電源供給ライン8による
CPU1への電源供給が停止するまで、CPU1へ
リセツト信号をリセツト信号ライン17によつて
送出し続け、CPU1が暴走しないように制御す
る。すなわち停電検出アンサ信号が送出されるの
は退避処理完了を意味するので、その後では
CPU1をリセツトしても差支えない。また、商
用電源ライン12の電圧が低下してリセツト信号
発生部17の動作が停止する状態のときはCPU
1の動作も停止するので暴走は起らない。 The reset signal generating section 15 outputs the power outage detection signal previously sent from the power outage detection section 13 and this power outage detection signal.
By logical product with the power failure detection answer signal sent from CPU1, the power supply line 8
A reset signal is continued to be sent to the CPU 1 through the reset signal line 17 until the power supply to the CPU 1 is stopped, thereby controlling the CPU 1 so that it does not run out of control. In other words, the sending of the power outage detection answer signal means that the evacuation process is complete, so after that
There is no harm in resetting CPU1. In addition, when the voltage of the commercial power line 12 drops and the operation of the reset signal generator 17 stops, the CPU
Since the operation of step 1 also stops, runaway does not occur.
一方、商用電源の停電のときには、電源装置の
時定数分だけ時間遅れの後、電源供給ライン8で
の電圧が降下してくる。電源供給ライン8での電
圧がバツテリ9のバツテリ電圧より低くなれば、
電源切替部10でRAM3a,………,3nへの
電源供給はバツテリ9から行なわれるように切替
えられる。以上のように電源供給が切替えられ
て、商用電源の停電中も、RAM3a,………,
3nはバツテリ9から電源供給を受け、RAM内
容は揮発することなく保護される。なお、電源供
給ライン8によつて電源が供給されている時は、
バツテリ9は電源切替部10を介して電源の供給
を受け、常に充電されるように構成されている。 On the other hand, during a power outage of the commercial power supply, the voltage in the power supply line 8 drops after a time delay equal to the time constant of the power supply device. If the voltage on the power supply line 8 becomes lower than the battery voltage of the battery 9,
The power supply switching unit 10 switches the power supply to the RAMs 3a, . . . , 3n from the battery 9. As described above, the power supply is switched and even during a commercial power outage, RAM3a,......,
3n receives power supply from the battery 9, and the RAM contents are protected without being volatile. Note that when power is supplied through the power supply line 8,
The battery 9 is configured to receive power supply through the power supply switching section 10 and to be constantly charged.
停電が止み、商用電源からの電源の供給が回復
すると、商用電源から商用電源ライン12によつ
てとり入れられている交流の電圧が上昇し、停電
検出部13で、交流を整流して得た直流の電圧が
基準電圧より高くなり、停電検生信号の発生が止
まる。このため、リセツト信号発生部15からの
CPU1へのリセツト信号の送出が止まり、CPU
1のリセツトが解除される。この際、RAM3
a,………,3nに停電前退避したCPU1の内
部状態を再びCPU1へ復帰させることにより、
停電前の状態を継続して動作することが可能とな
る。 When the power outage stops and the power supply from the commercial power source is restored, the voltage of the alternating current taken in from the commercial power source by the commercial power line 12 increases, and the power outage detection unit 13 rectifies the alternating current and converts it into a direct current. voltage becomes higher than the reference voltage, and the power failure detection signal stops generating. Therefore, the reset signal generator 15
Sending of the reset signal to CPU1 stops, and the CPU
1 reset is released. At this time, RAM3
By restoring the internal state of CPU1 that was saved before the power outage to a, ......, 3n, to CPU1 again,
It becomes possible to continue operating in the state before the power outage.
以上のように、この発明によれば商用電源の停
電中も商用電源から電源の供給されているマイク
ロコンピユータのRAM内容が保護されるととも
に、停電が止み商用電源からの電源供給が回復す
るとただちに停電前のシステム状態を継続するこ
とが可能となるので、商品電源の停電によつてシ
ステム状態が変動すると不都合な設備にもマイク
ロコンピユータの導入を可能にするという効果が
ある。 As described above, according to the present invention, even during a commercial power outage, the RAM contents of a microcomputer that is supplied with power from the commercial power source are protected, and the power outage is restored as soon as the power outage ends and the power supply from the commercial power source is restored. Since it is possible to continue the previous system state, there is an effect that the microcomputer can be introduced into equipment that would be inconvenient if the system state changes due to a power outage of the product.
第1図は従来のマイクロコンピユータの一例を
示すブロツク図、第2図はこの発明の一実施例を
示すブロツク図である。
図において、1はCPU、2はアドレスデコー
ダ、3a,……,3nはRAM、4はアドレスバ
ス、5はデータバス、6は制御ライン、7はメモ
リ選択ライン、8は電源供給ライン、9はバツテ
リ、10は電源切替部、11は電源供給ライン、
12は商用電源ライン、13は停電検出部、14
は停電検出信号ライン、15はリセツト信号発生
部、16は停電検出アンサ信号ライン、17はリ
セツト信号ラインである。なお、各図中同一符号
は同一または相当する部を示すものとする。
FIG. 1 is a block diagram showing an example of a conventional microcomputer, and FIG. 2 is a block diagram showing an embodiment of the present invention. In the figure, 1 is a CPU, 2 is an address decoder, 3a, ..., 3n is a RAM, 4 is an address bus, 5 is a data bus, 6 is a control line, 7 is a memory selection line, 8 is a power supply line, and 9 is a battery, 10 is a power supply switching unit, 11 is a power supply line,
12 is a commercial power line, 13 is a power outage detection unit, 14
15 is a power failure detection signal line, 15 is a reset signal generator, 16 is a power failure detection answer signal line, and 17 is a reset signal line. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
源を有するマイクロコンピユータのメモリを保護
するマイクロコンピユータのメモリ保護装置にお
いて、上記商用電源の停電時にランダムアクセス
メモリに対し電源を供給するために設けられるバ
ツテリ、上記商用電源から得た電圧があらかじめ
定められた電圧より低くなると商用電源の停電を
表す停電検出信号を発生する停電検出部、この停
電検出部の発生する停電検出信号を中央処理装置
に割込信号として入力させあらかじめ定めたプロ
グラムを発動し上記中央処理装置の内部状態を上
記ランダムアクセスメモリに退避させる手段、上
記内部状態の上記ランダムアクセスメモリへの退
避が完了した後停電検出アンサ信号を出力する手
段、上記停電検出アンサ信号が出力された後上記
停電検出信号が存在する期間を通じ上記中央処理
装置の内部状態をリセツト状態に保持する手段、
上記商用電源から得て上記ランダムアクセスメモ
リに供給する電圧と上記バツテリの電圧とを比較
し、電圧が高い方の電源を上記ランダムアクセス
メモリに供給するよう切換えを行う電源切換部を
備えたことを特徴とするマイクロコンピユータの
メモリ保護装置。1. In a memory protection device for a microcomputer that protects the memory of a microcomputer that has power supplied from a commercial power supply via a power supply device, a battery is installed to supply power to the random access memory during a power outage of the commercial power supply. , a power outage detection unit that generates a power outage detection signal indicating a power outage of the commercial power supply when the voltage obtained from the commercial power supply becomes lower than a predetermined voltage; and a power outage detection signal generated by the power outage detection unit that interrupts the central processing unit. Means for saving the internal state of the central processing unit to the random access memory by inputting it as a signal and activating a predetermined program, and outputting a power failure detection answer signal after the internal state has been saved to the random access memory. means for maintaining the internal state of the central processing unit in a reset state throughout the period during which the power outage detection signal exists after the power outage detection answer signal is output;
The present invention further includes a power supply switching unit that compares the voltage obtained from the commercial power supply and supplied to the random access memory with the voltage of the battery, and switches the power supply with the higher voltage to be supplied to the random access memory. A memory protection device for microcomputers.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56204672A JPS58105499A (en) | 1981-12-17 | 1981-12-17 | Memory protecting device of microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56204672A JPS58105499A (en) | 1981-12-17 | 1981-12-17 | Memory protecting device of microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58105499A JPS58105499A (en) | 1983-06-23 |
| JPS6130304B2 true JPS6130304B2 (en) | 1986-07-12 |
Family
ID=16494377
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56204672A Granted JPS58105499A (en) | 1981-12-17 | 1981-12-17 | Memory protecting device of microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58105499A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61152128U (en) * | 1985-03-07 | 1986-09-20 | ||
| JPH0164748U (en) * | 1987-10-16 | 1989-04-25 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5419740A (en) * | 1977-07-14 | 1979-02-14 | Canon Inc | Camera exposure controller with optical shutter speed restricting mechanism |
| JPS55135398A (en) * | 1979-04-10 | 1980-10-22 | Canon Inc | Electronic equipment |
-
1981
- 1981-12-17 JP JP56204672A patent/JPS58105499A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58105499A (en) | 1983-06-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| GB2290891B (en) | Multiprocessor system | |
| KR880008120A (en) | Power supply for computer system with built-in microcomputer | |
| KR960024823A (en) | Computer system capable of recovering work by key signal input and its control method | |
| JPH09212261A (en) | Power control system for information processing equipment | |
| JPS6130304B2 (en) | ||
| JPH10207586A (en) | Power-off control system for computer | |
| JPS5854418A (en) | Interrupt processing method | |
| JPH01245322A (en) | Power failure control circuit for microprocessor | |
| JP2741990B2 (en) | Computer power outage protection device | |
| JPH06318159A (en) | Device abnormality detecting system | |
| JPS61223916A (en) | Power source control system | |
| JP2536046Y2 (en) | Power supply circuit of programmable controller | |
| JPS6116104B2 (en) | ||
| JP2627508B2 (en) | Interrupt processing device | |
| JPS5814204A (en) | Microcomputer control device | |
| JPH01287722A (en) | Power unit without power failure | |
| JPS60189037A (en) | Special unit of programmable controller | |
| JPS5935216A (en) | Multiple information processing system | |
| JPS61273124A (en) | Power source interruption alarm display system | |
| JP2744113B2 (en) | Computer system | |
| JPS5946001B2 (en) | Momentary power outage handling method for process control equipment | |
| JPH0512824Y2 (en) | ||
| JPS6336431Y2 (en) | ||
| JPH0334007A (en) | Power supply monitor device | |
| JPH0535460B2 (en) |