JPS6231460A - Memory protecting circuit - Google Patents
Memory protecting circuitInfo
- Publication number
- JPS6231460A JPS6231460A JP60169618A JP16961885A JPS6231460A JP S6231460 A JPS6231460 A JP S6231460A JP 60169618 A JP60169618 A JP 60169618A JP 16961885 A JP16961885 A JP 16961885A JP S6231460 A JPS6231460 A JP S6231460A
- Authority
- JP
- Japan
- Prior art keywords
- power supply
- memory
- voltage
- circuit
- cmos
- 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
- 230000015654 memory Effects 0.000 title claims abstract description 51
- 230000002401 inhibitory effect Effects 0.000 claims description 4
- 230000005856 abnormality Effects 0.000 claims description 3
- 230000001052 transient effect Effects 0.000 abstract description 3
- 230000005764 inhibitory process Effects 0.000 abstract 2
- 238000012544 monitoring process Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000001514 detection method Methods 0.000 description 6
- 230000006378 damage Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明はメモリプロテクト回路に関し、特にマイクロプ
ロセッサのプログラムや処理データの一部を記憶させて
おくCMOSメモリを電源異常(停電、瞬断など)から
保護するメモリプロテクト回路に関する。[Detailed Description of the Invention] Technical Field The present invention relates to a memory protection circuit, and in particular to a memory protection circuit that protects a CMOS memory in which a part of microprocessor programs and processing data is stored from power abnormalities (power outages, instantaneous interruptions, etc.). Regarding circuits.
■】J【■
従来、マイクロプロセッサを用いたシステムにおけるC
MOSメモリブOテクト回路は、主電源の電圧が低下し
たことを検出して補助電源に切替えると同時に、CMO
Sメモリのチップセレクト(C3)端子を制御してデー
タの書込を禁止することによりデータの破壊を防ぐ方法
がとられている。■】J【■ Traditionally, C in systems using microprocessors
The MOS memorive O protect circuit detects that the voltage of the main power supply has dropped and switches to the auxiliary power supply, and at the same time
A method is used to prevent data destruction by controlling the chip select (C3) terminal of the S memory to inhibit data writing.
第4図はかかる従来のメモリプロチク1〜回路の一例を
示すブロック図であり、1は主電源、2は補助電源、3
はCMOSメモリ、4.5は電源入力、6は電源出力、
7はメモリプロテクト信号出力、10は電源切替回路、
20は電圧監視回路、40は基準電圧源、50はメモリ
プロテクト信号発生回路をそれぞれ示している。FIG. 4 is a block diagram showing an example of such a conventional memory processor 1 to circuit, in which 1 is a main power supply, 2 is an auxiliary power supply, 3
is CMOS memory, 4.5 is power input, 6 is power output,
7 is a memory protect signal output, 10 is a power supply switching circuit,
20 is a voltage monitoring circuit, 40 is a reference voltage source, and 50 is a memory protect signal generating circuit.
いま、主電源電圧を5v、補助電源電圧を3゜6■、電
圧監視回路20の電圧低下検出電圧を4Vとすると、第
4図に示す回路の動作は第5図に示す波形図で説明され
る。すなわち、主電源電圧が停電、瞬断等に起因して4
.0V以下になると、電圧監視回路20の出力がローレ
ベルからハイレベルに変化する。これにより電源切替回
路10はCMOSメモリ3への″電源供給を主電源から
補助電源に切替える。さらにメモリプロチク1ル信号が
ハイレベルからローレベルに変化J−るのでCMOSメ
モリのチップセレクト(C3’)端子がローレベルにな
り、CMOSメモリ3のデータ書込が禁止される。その
後主電源電圧が4.0V以上に復旧すればCMOSメモ
リへの電源供給は主電源に切替わり、CMOSメモリへ
のデータ書込禁止も解除される。Now, assuming that the main power supply voltage is 5V, the auxiliary power supply voltage is 3°6, and the voltage drop detection voltage of the voltage monitoring circuit 20 is 4V, the operation of the circuit shown in FIG. 4 is explained with the waveform diagram shown in FIG. Ru. In other words, if the main power supply voltage drops to 4.4
.. When the voltage falls below 0V, the output of the voltage monitoring circuit 20 changes from low level to high level. As a result, the power supply switching circuit 10 switches the power supply to the CMOS memory 3 from the main power supply to the auxiliary power supply.Furthermore, since the memory program signal changes from high level to low level, the CMOS memory chip select (C3 ') terminal becomes low level, and data writing to CMOS memory 3 is prohibited.After that, when the main power supply voltage is restored to 4.0V or higher, the power supply to the CMOS memory is switched to the main power supply, and the CMOS memory is Data write protection is also lifted.
しかしながら、第4図に示した回路を用いた場合、電源
切替の過渡的状態において、偶発的にデータが破壊され
る恐れがある。またCMOSメモリの数が多く、通常動
作中の消費電流が多い場合、電源切替時にノイズが発生
し、これによりCMOSメモリのデータ破壊が発生する
という欠点がある。However, when the circuit shown in FIG. 4 is used, there is a risk that data may be accidentally destroyed in a transient state of power supply switching. Furthermore, if there are a large number of CMOS memories and a large amount of current is consumed during normal operation, there is a disadvantage that noise is generated when switching the power supply, which causes data corruption in the CMOS memory.
発明の目的
本発明の目的は、電源切替時の過渡的状態においてCM
O’Sメモリのデータ保護を確実に1行うことが可能
なメモリプロテクト回路を提供することである。OBJECT OF THE INVENTION It is an object of the present invention to
It is an object of the present invention to provide a memory protection circuit that can reliably protect data in an O'S memory.
発明の構成
本発明によるメモリプロテクト回路は、主電源異常時に
メモリデータを保護するメモリプロテクト回路であって
、前記主電源の電圧の絶対値が所定閾値以下のときに補
助電源へ切替える電源切替手段と、前記所定閾値よりも
大なる第2の閾値を有し前記主電源の電圧の絶対値が前
記第2の閾値以下のときにデータの書込を禁止状態とす
る書込禁止手段とを含むことを特徴としている。Structure of the Invention A memory protect circuit according to the present invention is a memory protect circuit that protects memory data in the event of an abnormality in the main power supply, and includes a power supply switching means that switches to an auxiliary power supply when the absolute value of the voltage of the main power supply is below a predetermined threshold. , write inhibiting means having a second threshold value larger than the predetermined threshold value and inhibiting data writing when the absolute value of the voltage of the main power source is equal to or less than the second threshold value. It is characterized by
実施例 次に本発明の実施例について図面を参照して説明する。Example Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明によるCMOSメモリプロテクト回路の
構成を示したブロック図である。第1図において、先に
説明した従来例を示す第4図と共通する部分については
同一記号1名称を付与しであるのでその詳細は省略する
。FIG. 1 is a block diagram showing the configuration of a CMOS memory protect circuit according to the present invention. In FIG. 1, parts common to those in FIG. 4 showing the conventional example described above are given the same symbols and names, and the details thereof will be omitted.
いま、主電源1は5V、補助電源2は3.6■、電圧監
視回路20の電圧低下検出電圧(閾値)は4.0V、電
圧監視回路3oの電圧低下検出電圧RJ値)+、14.
5V、CMOSメモ’J3はチップセレクト(CS )
端子がローレベルでメモリプロテクトすなわち書込禁
止状態になるものとする。Now, the main power supply 1 is 5V, the auxiliary power supply 2 is 3.6V, the voltage drop detection voltage (threshold) of the voltage monitoring circuit 20 is 4.0V, the voltage drop detection voltage RJ value of the voltage monitoring circuit 3o)+, 14.
5V, CMOS memo 'J3 is chip select (CS)
It is assumed that when the terminal is at a low level, the memory is protected, that is, write is prohibited.
本実施例の動作波形を示したのが第3図である。FIG. 3 shows the operating waveforms of this embodiment.
まず主電源1の電圧が5vから低下し、4.5Vになっ
た時点で電圧監視回路30の出力がローレベルからハイ
レベルに変化することでメモリプロテクト信号がハイレ
ベルからローレベルに変化し、CM OSメモリは書込
禁止状態となる。次に主電源1がさらに低下して4.O
Vになると、電圧監視回路20の出力がローレベルから
ハイレベルに変化し、この信号により電源切替回路10
はCMOSメモリへの電源供給を主電源から補助電源に
切替える。すなわち主電源1が4.0V以下の間CMO
Sメモリには補助電源から3.6■の電源が供給される
。First, the voltage of the main power supply 1 drops from 5V, and when it reaches 4.5V, the output of the voltage monitoring circuit 30 changes from low level to high level, and the memory protect signal changes from high level to low level. The CM OS memory becomes write-protected. Next, the main power supply 1 decreases further and 4. O
When the voltage reaches V, the output of the voltage monitoring circuit 20 changes from low level to high level, and this signal causes the power supply switching circuit 10 to change from low level to high level.
switches the power supply to the CMOS memory from the main power supply to the auxiliary power supply. In other words, while the main power supply 1 is below 4.0V, the CMO
The S memory is supplied with 3.6μ power from the auxiliary power supply.
主電源1が再びW圧した場合上述の逆の手順でまず電源
が切替わり、その後でCMOSメモリの書込禁止が解除
される。When the main power supply 1 becomes W voltage again, the power supply is first switched in the reverse order as described above, and then the write protection of the CMOS memory is released.
第2図は第1図に示した本発明の一実施例を示す回路図
である。電源切替回路10は抵抗11゜12.14と、
トランジスタ13,15.16から構成され、トランジ
スタ16が電圧監視回路20の出力信号によりオン、オ
フすることでトランジスタ15.13は夫々オフ、オン
する。電圧監視回路20および30はオペアンプ23.
33と分圧抵抗2i、22.31.32によって構成さ
れ、それぞれ主電源電圧を分圧抵抗により分圧し、基準
電圧源40の電圧と比較する。基準電圧源40は一方を
補助電源2に接続した抵抗41とツェナーダイオード4
2とから成り、常に一定の基準電圧を発生する。メモリ
プロテクト信号発生回路50はプルアップ用抵抗51と
トランジスタ52とから成り、電圧監視回路30の出力
がハイレベルのときだけトランジスタ52がON状態と
なりローレベルのメモリプロテクト信号を発生する。FIG. 2 is a circuit diagram showing one embodiment of the present invention shown in FIG. 1. The power supply switching circuit 10 includes a resistor 11°12.14,
It is composed of transistors 13, 15, and 16, and when transistor 16 is turned on and off by the output signal of voltage monitoring circuit 20, transistors 15 and 13 are turned off and on, respectively. The voltage monitoring circuits 20 and 30 include operational amplifiers 23.
33 and voltage dividing resistors 2i, 22, 31, and 32, the main power supply voltage is divided by the voltage dividing resistors and compared with the voltage of the reference voltage source 40. A reference voltage source 40 includes a resistor 41 and a Zener diode 4, both of which are connected to the auxiliary power source 2.
2, which always generates a constant reference voltage. The memory protect signal generating circuit 50 includes a pull-up resistor 51 and a transistor 52, and only when the output of the voltage monitoring circuit 30 is at a high level, the transistor 52 is turned on and generates a low level memory protect signal.
先にも)ホべたように電圧監視回路30の電圧低下検出
電圧は電圧監視回路20の電圧低下検出電圧より高く設
定するので、メモリプロテクト状態に移行するときにC
MOSメモリの電源電圧が同時に変化することはない。As mentioned above, the voltage drop detection voltage of the voltage monitoring circuit 30 is set higher than the voltage drop detection voltage of the voltage monitoring circuit 20, so when transitioning to the memory protect state,
The power supply voltages of the MOS memories do not change at the same time.
したがってCMOSメモリのデータは保護されることに
なる。また、メモリプロテクト状態になれば、CMOS
メモリの消費電流が極端に減少するため、電源切替時に
大きなノイズが発生するのを防ぐことが可能である。Therefore, the data in the CMOS memory will be protected. Also, if the memory is protected, the CMOS
Since the current consumption of the memory is drastically reduced, it is possible to prevent large noise from occurring when switching the power supply.
尚、上記実施例では、電源電圧が正の場合であるが、負
の電源の場合にも同様に適用可能であり、一般には電圧
監視回路20の検出電圧の絶対1iαよりも電圧監視回
路30のそれを大に選定すれば良いものである。Although the above embodiment deals with the case where the power supply voltage is positive, it can be similarly applied to the case where the power supply voltage is negative. It is a good idea to choose a large number of them.
発明の詳細
な説明したように、本発明によれば、CMOSメモリプ
ロテクト回路において主電源の電圧監視用の検出電圧(
閾値)を互いに差を有するように二つ設定して、一方は
CMOSメモリの電源の切替制御に、またもう一方をC
MOSメモリのチップセレクト制御に用いることにより
、電源切替の過渡的状態に45けるCMOSメモリのデ
ータ保護を確実に行うことができる効果がある。DETAILED DESCRIPTION OF THE INVENTION As described in detail, according to the present invention, the detection voltage (
Two different threshold values are set, one is used to control the power supply switching of the CMOS memory, and the other is used to control the power supply switching of the CMOS memory.
By using it for chip select control of a MOS memory, it is possible to reliably protect data in the CMOS memory during a transient state of power supply switching.
第1図は本発明の実施例のブロック図、第2図は第1図
のブロックの具体例の回路図、第3図は第1図のブロッ
クの動作波形図、第4図は従来のメモリプロテクト回路
のブロック図、第5図は第4図のブロックの動作波形図
である。
主要部分の符号の説明
1・・・・・・主電源
2・・・・・・補助電源
3・・・・・・CMOSメモリ
10・・・・・・電源切替回路Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a circuit diagram of a specific example of the block in Fig. 1, Fig. 3 is an operation waveform diagram of the block in Fig. 1, and Fig. 4 is a conventional memory. A block diagram of the protect circuit, FIG. 5 is an operation waveform diagram of the block in FIG. 4. Explanation of symbols of main parts 1...Main power supply 2...Auxiliary power supply 3...CMOS memory 10...Power switching circuit
Claims (1)
ト回路であつて、前記主電源の電圧の絶対値が所定閾値
以下のときに補助電源へ切替える電源切替手段と、前記
所定閾値よりも大なる第2の閾値を有し前記主電源の電
圧の絶対値が前記第2の閾値以下のときにデータの書込
を禁止状態とする書込禁止手段とを含むことを特徴とす
るメモリプロテクト回路。A memory protect circuit that protects memory data in the event of a main power supply abnormality, the circuit comprising: power supply switching means for switching to an auxiliary power supply when the absolute value of the voltage of the main power supply is below a predetermined threshold; A memory protect circuit comprising write inhibiting means having a threshold value and inhibiting data writing when the absolute value of the voltage of the main power source is equal to or less than the second threshold value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60169618A JPS6231460A (en) | 1985-07-31 | 1985-07-31 | Memory protecting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60169618A JPS6231460A (en) | 1985-07-31 | 1985-07-31 | Memory protecting circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6231460A true JPS6231460A (en) | 1987-02-10 |
Family
ID=15889835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60169618A Pending JPS6231460A (en) | 1985-07-31 | 1985-07-31 | Memory protecting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6231460A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0164748U (en) * | 1987-10-16 | 1989-04-25 |
-
1985
- 1985-07-31 JP JP60169618A patent/JPS6231460A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0164748U (en) * | 1987-10-16 | 1989-04-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5790873A (en) | Method and apparatus for power supply switching with logic integrity protection | |
| US4951171A (en) | Power supply monitoring circuitry for computer system | |
| JPH06103748A (en) | Power control circuit for IC memory card | |
| JPH04212785A (en) | Integrated circuit device | |
| JPS6230666B2 (en) | ||
| JPH0522983B2 (en) | ||
| JPH0814781B2 (en) | IC memory card | |
| US6495994B1 (en) | Regulator circuit for independent adjustment of pumps in multiple modes of operation | |
| US4845467A (en) | Keyboard having microcomputerized encoder | |
| JPS5855591B2 (en) | Power supply for bubble memory unit | |
| US5586077A (en) | Circuit device and corresponding method for resetting non-volatile and electrically programmable memory devices | |
| JPH025457A (en) | BiCMOS power transition circuit | |
| JPS62157955A (en) | Memory protecting circuit | |
| EP0902294B1 (en) | A voltage monitoring circuit | |
| JPH01269114A (en) | Resetting circuit | |
| JPH0430720Y2 (en) | ||
| JPS6315954Y2 (en) | ||
| JPS6315346A (en) | Memory protection circuit | |
| JPS5864700A (en) | Storage protecting circuit | |
| JPS6231372B2 (en) | ||
| JPS5911291B2 (en) | Analog signal selection circuit | |
| KR0122339B1 (en) | Memory Storage in Chipmount Systems | |
| JPS6160514B2 (en) | ||
| CN119621624A (en) | USB interface circuit, circuit board and equipment | |
| JP2655766B2 (en) | Information card |