JPS63112894A - Battery backup circuit for random access memory - Google Patents
Battery backup circuit for random access memoryInfo
- Publication number
- JPS63112894A JPS63112894A JP61257402A JP25740286A JPS63112894A JP S63112894 A JPS63112894 A JP S63112894A JP 61257402 A JP61257402 A JP 61257402A JP 25740286 A JP25740286 A JP 25740286A JP S63112894 A JPS63112894 A JP S63112894A
- Authority
- JP
- Japan
- Prior art keywords
- ram
- circuit
- power supply
- becomes
- write
- 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
Links
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 19
- 230000002401 inhibitory effect Effects 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008595 infiltration Effects 0.000 description 1
- 238000001764 infiltration Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Static Random-Access Memory (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は計算機のランダムアクセスメモリのメモリ内
容をバッテリー保護する回路方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a circuit system for battery protecting the memory contents of a random access memory of a computer.
第3図は従来のバッテリーバックアップ回路を示すブロ
ック接続図であり、図において、(1)はリセット信号
発生回路、(2)は中央演算処理装置(以下CPUと称
す)であり、そのリセット入力端子にはリセット信号発
生回路(1)の出力信号1aが接続きれている。また、
リセット信号発生回:@ (1)の入力にはリセットス
イッチ(1,0が接続され、リセットスイッチCl0k
oNすることでリセット信号発生回1g (1)の入力
信号がOVとなるようにしている。FIG. 3 is a block connection diagram showing a conventional battery backup circuit. In the figure, (1) is a reset signal generation circuit, (2) is a central processing unit (hereinafter referred to as CPU), and its reset input terminal. The output signal 1a of the reset signal generation circuit (1) is disconnected. Also,
Reset signal generation time: @ The input of (1) is connected to the reset switch (1, 0, reset switch Cl0k
By turning on, the input signal of reset signal generation time 1g (1) becomes OV.
(8)は書込禁止信号発生回路、(9)はRAMであり
、RA M (9)の書込禁止信号入力端子には蓄込禁
止信号発生回路(8)の出力信号8aが接続されている
。(4)は5■電源、(5)はバッテリーであり、これ
らの電源はダイオード(6)及び(7)を介して突き合
わせられた後、RAM(9)の電源端子に入力する接続
となっている。(8) is a write inhibit signal generation circuit, (9) is a RAM, and the output signal 8a of the storage inhibit signal generation circuit (8) is connected to the write inhibit signal input terminal of RAM (9). There is. (4) is the 5 ■ power supply, and (5) is the battery, and after these power supplies are matched through diodes (6) and (7), they are connected to the power supply terminal of RAM (9). There is.
RA M (9)はバス(3)を介してCPU (2)
と接続され、CPU(2)からRAM(9)の内容が読
出し/書込みアクセスできる構成となっている。RAM (9) connects to CPU (2) via bus (3)
The CPU (2) is connected to the RAM (9) so that the contents of the RAM (9) can be accessed for reading/writing.
次に動作について説明する。Next, the operation will be explained.
リセット信号発生回路(1)は、その入力信号がIIL
11レベルとなるか、あるいは5■電源(4)の電圧値
があらかじめ定められた電圧値■Rより小さい値となっ
たとき、その出力信号を一定時間Tの期間のみIIHl
lレベルとする。vRの値は通常TTLレベル信号の+
1J、11レベルしきい値、すなわち約0.8■の値と
なっている。The reset signal generation circuit (1) has an input signal of IIL.
11 level, or when the voltage value of the 5 ■ power supply (4) becomes a value smaller than the predetermined voltage value ■ R, the output signal is IIHl for a certain period of time T.
level. The value of vR is usually + of the TTL level signal.
1J, an 11-level threshold value, that is, a value of about 0.8■.
書込禁止信号発生回路(8)は5■電源(4)の電圧値
があらかじめ定められた電圧値■Pより小さい値となっ
たとき、その出力信号を1“H”レベルとする。Vpの
値はc P U (2)が正常動作する5v電源電圧の
下限値と等しく、通常4,75V(−5%値)にセット
される。The write inhibit signal generating circuit (8) sets its output signal to the 1 "H" level when the voltage value of the 5) power supply (4) becomes a value smaller than a predetermined voltage value (2) P. The value of Vp is equal to the lower limit of the 5V power supply voltage at which cPU (2) operates normally, and is normally set to 4.75V (-5% value).
5v電源(4)の電源電圧が確立し、CP U (2)
がRAM(9)ヲアクセスしながらプログラム全実行し
ているとき、5v電源(4)全オフすると、第4図に示
すような手順でRA M (9)内容のバッテリーノぐ
ツクアップが行なわれる。The power supply voltage of the 5v power supply (4) is established, and the CPU (2)
While the program is being executed while accessing the RAM (9), when the 5V power supply (4) is completely turned off, a battery check-up of the contents of the RAM (9) is performed in the procedure shown in FIG.
(1) 5V電源(4)の電圧値が漸低していき、v
PO値より小さくなると、書込禁止信号発生回路(8)
の出力信号8aがIIHIIとなり、RAM(9)の内
容を書き換えできないようにする。(1) The voltage value of the 5V power supply (4) gradually decreases, and
When it becomes smaller than the PO value, the write inhibit signal generation circuit (8)
The output signal 8a becomes IIHII, making it impossible to rewrite the contents of the RAM (9).
(215V電源(4)の電圧値がVpO値よりさらに小
さくなるとc p U (2)が正常動作しなくなり、
RA M(9)に対し誤まった書込を行なう可能性が
あると、RA M (9)は書込禁止状態となっている
ので内容は書き換えられない。(If the voltage value of the 215V power supply (4) becomes even smaller than the VpO value, c p U (2) will not operate normally,
If there is a possibility that an erroneous write is made to the RAM (9), the contents cannot be rewritten since the RAM (9) is in a write-inhibited state.
(3) 5V電源(4)の電圧値が0■となり CP
Uが停止するが、RA M (9)にはバッチIJ−(
7)からの電源が供給され、データ内容は保持されてb
る。(3) The voltage value of the 5V power supply (4) becomes 0■, and CP
U stops, but RAM (9) has batch IJ-(
7) is supplied with power and the data contents are retained.
Ru.
通常、バッテリー(7)の電圧はRAM(9)のデータ
保持電圧よυ少し高めの電圧値約3.5■となっている
。従って5v電源(4)が確立されている状態ではダイ
オード(7)によりRAM(9)の電源端子から切離さ
れている。Normally, the voltage of the battery (7) is approximately 3.5■ which is slightly higher than the data retention voltage of the RAM (9). Therefore, when the 5V power supply (4) is established, it is separated from the power supply terminal of the RAM (9) by the diode (7).
(4) 5V電源(4) k ONすると電圧値が漸
高じていき、vRの値より大きくなると、リセット信号
発生回路(1)の出力信号1aが一定時間Tの間11i
11となる。(4) When the 5V power supply (4) k is turned on, the voltage value gradually increases, and when it becomes larger than the value of vR, the output signal 1a of the reset signal generation circuit (1) remains 11i for a certain period of time T.
It becomes 11.
(5) 5y電源(4)の電源値がさらに漸高し、■
アの値より大きくなると出力信号8aがII L II
になり、RAM(9)の書込禁止が解除される。(5) The power value of 5y power supply (4) gradually increases, and ■
When it becomes larger than the value of a, the output signal 8a becomes II L II
, and the write protection of RAM (9) is released.
(6) 出力信号1aが1″H1+となってから一定
時間Tが経過すると出力信号1aがII L IIとな
り CPU(2)はプログラムの先頭番地よりプログラ
ム全実行していく。(6) When a certain period of time T has elapsed since the output signal 1a became 1''H1+, the output signal 1a becomes II L II, and the CPU (2) executes the entire program from the first address of the program.
通常Tの値は5■電源(4)が投入されてから確立する
までの時間に比べ十分長い値となっているので、出力信
号1aがIILIIとなった時点ではCPU(2+は正
常にプログラムを実行できる。Normally, the value of T is sufficiently long compared to the time from when the power supply (4) is turned on until it is established. Can be executed.
以上のように第3図に示した回路では上記のような動作
を行ない5■電源(4)が喪失してもRAM(9)の内
容全保持するようになっている。As described above, the circuit shown in FIG. 3 performs the above-described operation so that even if the power supply (4) is lost, the entire contents of the RAM (9) are retained.
従来のバッテリーバックアップ回路は以上のように構成
されているので、例えば5■電源電圧値が第5図に示す
ような動作をした場合、出力信号1aがIIHIIとな
らすCP U 12)が誤動作したま7RAM(9)の
潜込禁止が解除され、RA M (9)の内容がCP
U (2)により書き換えられてしまうという欠点があ
った。このため5v電源の電源装置に投入シーケンス回
路を設は第5図のような電源電圧変化が起きないように
する々どの対策が必要で、電源装置が複雑で高価なもの
になってしまうなどの問題点があった。Since the conventional battery backup circuit is configured as described above, for example, if the power supply voltage value operates as shown in Figure 5, the output signal 1a becomes IIHII and the CPU 12) malfunctions. The prohibition of infiltration of 7RAM (9) is canceled and the contents of RAM (9) are changed to CP.
There was a drawback that it could be rewritten by U (2). For this reason, it is necessary to install a power-on sequence circuit in a 5V power supply to prevent the power supply voltage change shown in Figure 5 from occurring, which may result in the power supply being complicated and expensive. There was a problem.
この発明は上記のような問題点全解消するためになされ
たもので、第5図に示すような5■電源電圧変動が発生
してもRAMの内容全誤書込から保護でき、特殊な電源
装置を必要としないバッチIJ −バックアップ回路を
得ることを目的としている。This invention was made in order to solve all of the above problems, and even if power supply voltage fluctuations occur, it can protect the contents of the RAM from being written incorrectly, and it can be The aim is to obtain a batch IJ-backup circuit that does not require equipment.
この発明に係るバッテリーバックアップ回路は、書込禁
止信号にラッチ回路を付加したものである。The battery backup circuit according to the present invention has a latch circuit added to the write inhibit signal.
この発明におけるバッテリーバックアップ回路は書込禁
止信号にラッチ回路を設けたので、5v電源電圧に切れ
込みが発生しても再びCPU’ilJセットするまでは
書込禁止信号がアクティブ状態を継続することにより、
電源切れ込み後のCPU誤簀込からRAMの内容全保護
することができる。Since the battery backup circuit according to the present invention has a latch circuit for the write inhibit signal, even if a cut occurs in the 5V power supply voltage, the write inhibit signal continues to be active until the CPU'ilJ is set again.
The entire contents of RAM can be protected from erroneous storage of the CPU after the power is turned off.
以下、この発明の一実施例を図について説明する0
第1図はこの発明のバッテリーバックアップ回路を示す
ブロック図であり、第3図と同一符号のものは同一部分
からなることを示す。Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a battery backup circuit of the present invention, and the same reference numerals as in FIG. 3 indicate the same parts.
バッテリーバックアップ回路の主要な部分の構成は第3
図に示す従来と同じであるが、ラッチ回路−が追加され
ている。The configuration of the main parts of the battery backup circuit is as follows.
It is the same as the conventional one shown in the figure, but a latch circuit is added.
第1図のバッテリーバックアップ回路において、リセッ
ト信号発生回路(1)の出力信号1aがラッチ回路(1
)のS(セット)側入力端子に、書込信号発生回路(8
)の出力信号8aがラッチ回路に)のR(+)セット)
側入力端子に接続され、ラッチ回路に)の出力信号20
aがRA11!(9)の書込禁止入力端子に接続されて
いる。In the battery backup circuit shown in FIG. 1, the output signal 1a of the reset signal generation circuit (1)
) is connected to the S (set) side input terminal of the write signal generation circuit (8
)'s output signal 8a is sent to the latch circuit)'s R(+) set)
output signal 20 (connected to the side input terminal and into the latch circuit)
a is RA11! It is connected to the write inhibit input terminal (9).
以下、リセットスイッチC1O、CPU(21、バス(
3)。Below, reset switch C1O, CPU (21, bus (
3).
5v電源(4)、バッテリー(5)、ダイオード(6)
、ダイオード(7)は従来のものと等しい接続を持つ。5v power supply (4), battery (5), diode (6)
, the diode (7) has a connection equal to the conventional one.
次に動作について説明する。Next, the operation will be explained.
リセット信号発生回路(1)及び書込禁止信号発生回路
(8)の動作は従来のものと等しく、従ってラッチ回路
(ホ)は出力信%8aがIIHIIとなるとその出力信
号20ai IIHllとし、出力信号1aがIIHI
Iとなると出力信号20ai IILllにする。出力
信′5+la、8aがともにIILllのときは出力信
820aの状態は変化せず(前回の出力信号状態が保持
され)、la、8aがともに“Hllのときは、出力信
号20aはH”となる。The operations of the reset signal generation circuit (1) and the write inhibit signal generation circuit (8) are the same as those of the conventional ones. Therefore, when the output signal %8a becomes IIHII, the latch circuit (e) sets the output signal 20ai IIHll, and outputs the output signal %8a. 1a is IIHI
When it becomes I, the output signal is set to 20ai IILll. When the output signals '5+la and 8a are both IILll, the state of the output signal 820a does not change (the previous output signal state is maintained), and when both la and 8a are "Hll", the output signal 20a becomes H. Become.
第1図に示すバッテリーバックアップ回路に、第4図に
示すよりな5■電源(4)の電圧切込みが発生したとき
の動作全第2図に示す。FIG. 2 shows the entire operation when the voltage cut of the power supply (4) shown in FIG. 4 occurs in the battery backup circuit shown in FIG. 1.
(1) 5V電源(4)の電圧値がVpよす小さくな
ると、書込禁止信号発生回路(8〕の出力信号8aがI
IHllとなり、ラッチ回路(ホ)の出力信% 20a
がII HIIとなる。(1) When the voltage value of the 5V power supply (4) becomes smaller than Vp, the output signal 8a of the write inhibit signal generation circuit (8) becomes I
IHll and the output signal of the latch circuit (E) is % 20a
becomes II HII.
(2+ 5V電源(4)の電圧値は、■3の値より小
さくなることなく再び5■に復帰するため、リセット信
号発生回路(1)の出力はII L IIとなったまま
である。(The voltage value of the 2+5V power supply (4) returns to 5■ again without becoming smaller than the value of ■3, so the output of the reset signal generation circuit (1) remains at II L II.
(3) CPU(2)は5v電源(4)の電圧値が■
Rよシ低くなった時点から正常動作しなくなる(暴走す
る)が、リセット入力信号1aがIIHllとならない
ため、5■電源(4)が5v値に復帰しても暴走全継続
する。(3) The voltage value of the 5V power supply (4) for the CPU (2) is ■
Normal operation stops (runaway occurs) from the moment R becomes low, but since the reset input signal 1a does not become IIHll, the runaway continues even if the 5.2 power supply (4) returns to the 5V value.
(4) CPU(2)が暴走しRA M (9)に誤
書込してもラップ回路(1)の出力がIIHIIとなっ
ているためRAM(9)のデータ内容は書き換えられな
い。(4) Even if the CPU (2) goes out of control and erroneously writes to the RAM (9), the data contents of the RAM (9) cannot be rewritten because the output of the wrap circuit (1) is IIHII.
(5) (4)の状態でスイッチC1OをON L、
cpu(21をリセットするとc p u (2)はリ
セットされ、T時間後出力信号1aが1“L”になると
同時にプログラム実行全正常に開始する。一方うッチ回
路翰の出力は、出力信号1aが“Hllになることで、
そのとき出力信号8aがIILllすなわち5v電源(
4)の電圧値が■Pより大きければ、出力信号20a
211LIIにしRAM(9)の書込禁止を解除する0
従って、5■電源(4)に第4図に示すような切れ込み
が発生しても、電源復帰後もRA M (9)の書込禁
止状態が継続されるため、CPU(2)の暴走による誤
書込からRAM(9)の内容全保護できる。(5) In the state of (4), turn switch C1O ON L,
When the CPU (21) is reset, the CPU (2) is reset, and the program execution starts normally at the same time as the output signal 1a becomes 1 "L" after T time. On the other hand, the output of the switch circuit is the output signal By 1a becoming “Hll”,
At that time, the output signal 8a is IILll, that is, the 5v power supply (
4) If the voltage value is larger than ■P, the output signal 20a
211LII and release the write protection of RAM (9) 0 Therefore, even if a cut occurs in the power supply (4) as shown in Figure 4, the write protection of RAM (9) will be disabled even after the power is restored. Since the state continues, the entire contents of the RAM (9) can be protected from erroneous writing due to runaway of the CPU (2).
以上のようにこの発明によれば、RAMの書込禁止信号
にラッチ回路を設けたので、電源電圧のいかなる変動に
対してもR,A Mの内容が保持でき、特殊電源が不要
となり装置を安価に構成できる効果がある。As described above, according to the present invention, since a latch circuit is provided for the RAM write inhibit signal, the contents of R and A M can be held even if there is any fluctuation in the power supply voltage, eliminating the need for a special power supply and making the device easier to use. This has the effect of being able to be configured at low cost.
第1図はこの発明の一実施例によるバッテリーバックア
ップ回路を示すブロック図、第2図はこの発明の一実施
例によるバッテリーバックアップ回路の動作タイミング
図、第3図は従来のバッテリーバックアップ回路を示す
ブロック図、第4図。
第5図は従来のバッテリーバックアップ回路の動作タイ
ミング図である。FIG. 1 is a block diagram showing a battery backup circuit according to an embodiment of the present invention, FIG. 2 is an operation timing diagram of the battery backup circuit according to an embodiment of the invention, and FIG. 3 is a block diagram showing a conventional battery backup circuit. Figure, Figure 4. FIG. 5 is an operation timing diagram of a conventional battery backup circuit.
Claims (1)
出しあるいは書き込みアクセスされるランダムアクセス
メモリと、上記中央演算処理装置をリセットするリセッ
ト信号発生回路と、上記ランダムアクセスメモリを書込
禁止状態にする書込禁止信号発生回路を備えたバッテリ
ーバックアップ回路において、上記書込禁止信号発生回
路出力にセットされ、上記リセット信号発生回路により
リセットされるラッチ回路を備えたことを特徴とするラ
ンダムアクセスメモリのバッテリーバックアップ回路。A central processing unit, a random access memory that is accessed for reading or writing by the central processing unit, a reset signal generation circuit that resets the central processing unit, and a write that sets the random access memory to a write-protected state. A battery backup circuit for a random access memory equipped with a prohibition signal generation circuit, characterized in that the battery backup circuit includes a latch circuit that is set to the output of the write prohibition signal generation circuit and reset by the reset signal generation circuit. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61257402A JPS63112894A (en) | 1986-10-28 | 1986-10-28 | Battery backup circuit for random access memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61257402A JPS63112894A (en) | 1986-10-28 | 1986-10-28 | Battery backup circuit for random access memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63112894A true JPS63112894A (en) | 1988-05-17 |
Family
ID=17305877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61257402A Pending JPS63112894A (en) | 1986-10-28 | 1986-10-28 | Battery backup circuit for random access memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63112894A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5375246A (en) * | 1990-08-30 | 1994-12-20 | Sharp Kabushiki Kaisha | Back-up power supply apparatus for protection of stored data |
-
1986
- 1986-10-28 JP JP61257402A patent/JPS63112894A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5375246A (en) * | 1990-08-30 | 1994-12-20 | Sharp Kabushiki Kaisha | Back-up power supply apparatus for protection of stored data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6336174B1 (en) | Hardware assisted memory backup system and method | |
TW200915341A (en) | Memory device | |
KR100614639B1 (en) | Memory device having a write-protectable buffer memory and information processing system including the same | |
JPH08249244A (en) | Data holding circuit | |
US5016219A (en) | Computer memory write protection circuit | |
JP2003316664A (en) | Nonvolatile semiconductor storage device | |
JPH06202762A (en) | Reset signal generating circuit with write data protecting function | |
EP1473733B1 (en) | Composite storage circuit and semiconductor device having the same | |
JPS63112894A (en) | Battery backup circuit for random access memory | |
JP2003022670A (en) | Semiconductor integrated circuit | |
JPH0822422A (en) | Memory device | |
US5592650A (en) | Computer apparatus and method for replacing programs between memories by employing protection mechanism with write enable generation scheme | |
JP2504864B2 (en) | Memory system | |
JPS60239850A (en) | Microprocessor system provided with no-break memory | |
JP3832117B2 (en) | Programmable controller backup data protection method and programmable controller | |
JP3009236B2 (en) | Hot maintenance of devices | |
JP2809752B2 (en) | Memory access circuit | |
JPS61283939A (en) | Memory protecting circuit | |
JPS62157955A (en) | Memory protecting circuit | |
JP2002099468A (en) | Writing control circuit | |
JPH0436426B2 (en) | ||
JP3112277B2 (en) | Memory card | |
JPS62286143A (en) | Semiconductor memory device | |
JPH02100743A (en) | Electronic equipment | |
JPS60138655A (en) | Protecting method of nonvolatile memory |