JPH08249244A - Data holding circuit - Google Patents

Data holding circuit

Info

Publication number
JPH08249244A
JPH08249244A JP7052985A JP5298595A JPH08249244A JP H08249244 A JPH08249244 A JP H08249244A JP 7052985 A JP7052985 A JP 7052985A JP 5298595 A JP5298595 A JP 5298595A JP H08249244 A JPH08249244 A JP H08249244A
Authority
JP
Japan
Prior art keywords
memory
power supply
supply voltage
data
chip select
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.)
Withdrawn
Application number
JP7052985A
Other languages
Japanese (ja)
Inventor
Masaharu Hamaguchi
雅春 浜口
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP7052985A priority Critical patent/JPH08249244A/en
Publication of JPH08249244A publication Critical patent/JPH08249244A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To provide a highly reliable data holding circuit capable of inhibiting the generation of the destruction of already stored data and preventing the loss of data to be updated even when the disconnection or the instantaneous break of a power source is generated. CONSTITUTION: When the disconnection or the instantaneous break of the power supply voltage Vcc of a device is generated, the power supply voltages V1 and V2 outputted from a power source regulator 21 are lowered. The decline of the power supply voltage V1 is detected in a voltage decline detector 25, a NAND gate 26 is closed by reset signals outputted from the detector 25 and chip selection signals CSROM outputted from a CPU 22 are interrupted. By the power supply voltage V2a for a memory charged to a capacitor 29, the operating state of the NAND gate 26 and an EEPROM 24 is maintained. As the power supply voltage V2a is lowered, the write of the EEPROM 24 is inhibited by memory reset signals REST2/outputted from the voltage decline detector 30.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、携帯電話機等に設けら
れるデータ保持用のメモリをバックアップする回路にお
いて、装置電源断あるいは瞬断によるデータの破壊等を
防ぐデータ保持回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data holding circuit for backing up a data holding memory provided in a portable telephone or the like, which prevents data from being destroyed due to power interruption or momentary interruption.

【0002】[0002]

【従来の技術】従来、中央処理装置(以下、CPUとい
う)を使用した制御装置においては、データを一時的あ
るいは半永久的に保持するメモリの存在が不可欠であ
る。データを半永久的に保持するメモリとしては、一般
的に、再書き込み可能な不揮発性メモリ、例えばEPR
OM(Erasable Programmable Read Only Memory)や、
OTPROM(One Time Programmable Read Only Memo
ry)等が使用される。これは、データを半永久的に保持
することに加え、そのデータを電気的に書き換えられな
いデバイス構造となっている。一方、データを一時的に
保持するメモリは、その使用目的上、データを電気的に
容易に書き換え可能である必要がある。代表的なもの
に、随時読み書き可能な揮発性メモリ、例えばSRAM
(Static Random Access Memory)やDRAM(Dynamic
Random Access Memory)といったRAM(Random Acce
ss Memory)等が挙げられる。但し、RAMは揮発性メ
モリであるため、データ保持には電源の供給が必要であ
る。これらの中間的位置付けとして、電気的にデータ書
き換えが行え、かつ電源の供給を必要とせずにデータを
長期間保持できる不揮発性メモリとして、EEPROM
(Electrically Erasable Programmable Read Only Mem
ory )等がある。携帯電話機等においては、短縮ダイヤ
ルの登録等の使用者が各々設定するデータや、データ上
逐次変更しながら記憶しておかなければならないデータ
が発生する。これらのデータの中には、装置電源を一旦
切った後も保持しておかなければならない種類のものが
あるため、データの更新が発生するまで保持する必要が
ある。この種のデータの保持方法としては、次の2つの
方法(1),(2)が良く用いられる。
2. Description of the Related Art Conventionally, in a control device using a central processing unit (hereinafter referred to as CPU), it is essential to have a memory for temporarily or semi-permanently holding data. As a memory that semi-permanently retains data, a rewritable nonvolatile memory such as EPR is generally used.
OM (Erasable Programmable Read Only Memory),
OTPROM (One Time Programmable Read Only Memo
ry) etc. are used. This has a device structure in which, in addition to holding data semi-permanently, the data cannot be electrically rewritten. On the other hand, a memory that temporarily holds data needs to be capable of electrically rewriting data for the purpose of use. A typical example is a volatile memory that can be read and written at any time, such as SRAM.
(Static Random Access Memory) and DRAM (Dynamic
RAM (Random Acce) such as Random Access Memory
ss Memory) and the like. However, since the RAM is a volatile memory, it is necessary to supply power to hold the data. As an intermediate position between these, EEPROM is used as a non-volatile memory that can electrically rewrite data and can retain data for a long period of time without supplying power.
(Electrically Erasable Programmable Read Only Mem
ory) etc. In a mobile phone or the like, data set by the user such as registration of abbreviated dial or data that must be stored while being sequentially changed is generated. Since some of these data must be retained even after the power of the device is turned off, it is necessary to retain them until the data is updated. The following two methods (1) and (2) are often used as this type of data holding method.

【0003】(1) 電気的消去型ROMであるEEP
ROMのように、電気的に書き換えが可能で、かつ電源
の供給を必要とせずに、長期間に渡ってデータが保持で
きるデバイスを使用する方法。 (2) SRAMのように、電気的に書き換えが可能で
はあるが、データの保持に電源の供給を必要とするた
め、データ保持用として主電源とは別に保持用の電源
(電池等を使用)を搭載する方法。(2)の方法では、
保持用(バックアップ用)の電源が切れた場合に、デー
タの保証ができなくなるため、一般に(1)の方法が採
用されている。また、携帯用の装置は、装置電源に電池
を使用するのが普通であり、その電池は容易に交換がで
きる構造となっているものが多い。このような装置で
は、電源の瞬断(あるいは断)が発生しやすく、その対
策も重要になってくる。次に、図2を参照しつつ、EE
PROMの特性について説明する。
(1) EEP which is an electrically erasable ROM
A method of using a device, such as a ROM, which is electrically rewritable and can retain data for a long period of time without requiring power supply. (2) Like SRAM, it is electrically rewritable, but it requires power supply to hold data, so a power supply for holding data (using a battery etc.) separate from the main power supply for holding data How to install. In the method of (2),
Since the data cannot be guaranteed when the power for holding (for backup) is turned off, the method (1) is generally adopted. Further, a portable device usually uses a battery as a power source of the device, and many of the batteries have a structure that can be easily replaced. In such a device, a momentary power interruption (or interruption) of the power source easily occurs, and countermeasures against it are also important. Next, referring to FIG. 2, EE
The characteristics of the PROM will be described.

【0004】図2は、従来のEEPROMの書き込みサ
イクルを示す図である。この図は、日立製作所製のEE
PROM(型番HN58V257)の日立メモリデータ
ブックに記載されているものである。EEPROMのデ
ータ書き換えを行う場合、図2に示すように次の2つの
サイクルT1,T2に分けて考えることができる。 T1:CPU書き込みサイクル CPUからデータを書き込む場合を考えると、該CPU
はEEPROMへデータとアドレスを出力すると共に、
チップセレクト信号CSとライトイネーブル信号WEを
“1”から“0”レベルにする。その後、規定の時間経
過後に、CPUがチップセレクト信号CSとライトイネ
ーブル信号WEを“1”レベルに戻すことにより、1バ
イトのデータ転送が終了する。データは連続して64バ
イトまで転送が可能である。 T2:内部書き込みサイクル 前記CPU書き込みサイクルT1の終了後に、チップセ
レクト信号CSまたはライトイネーブル信号WEを10
0μsec間“1”レベルに保つと、EEPROMは自
動的に内部書き込み動作に移行する。書き換え時間は約
15msecで、この間はCPUからEEPROMへの
書き込み及び通常の読み出しは行えない。内部書き込み
動作の終了は、EEPROMのレディ/ビジー(RDY
/BUSY)ピンに出力される。また、前記EEPRO
Mにはリセット(RES)ピンが付いている。そのた
め、EEPROMへの電源投入・解除時等で電源電圧が
動作範囲外となった場合の誤動作を防ぐために、このリ
セット(RES)ピンの入力が“0”レベルの場合は、
内部書き込み動作を禁止するようになっている。通常
は、CPU等へ接続する電圧低下検出信号(内部リセッ
ト信号)を接続する。ここで注意しなくてはならないの
は、内部書き込みサイクルT2中にEEPROMの電源
断が発生すると、書き込もうとしているデータが失われ
るばかりでなく、既に保持されているデータまでが破壊
されてしまう。また、内部書き込み中にリセット(RE
S)ピンの入力がアクティブ(“0”レベル)になった
場合も、同様のことが発生する可能性がある。
FIG. 2 is a diagram showing a write cycle of a conventional EEPROM. This figure shows Hitachi's EE
The PROM (model number HN58V257) is described in the Hitachi Memory Data Book. When rewriting the data of the EEPROM, as shown in FIG. 2, the following two cycles T1 and T2 can be considered separately. T1: CPU write cycle Considering the case of writing data from the CPU, the CPU
Outputs data and address to EEPROM,
The chip select signal CS and the write enable signal WE are changed from "1" to "0" level. Then, after a lapse of a prescribed time, the CPU returns the chip select signal CS and the write enable signal WE to the "1" level, thereby completing the data transfer of 1 byte. Data can be continuously transferred up to 64 bytes. T2: Internal write cycle After the CPU write cycle T1, the chip select signal CS or write enable signal WE is set to 10
When the level is kept at "1" for 0 μsec, the EEPROM automatically shifts to the internal write operation. The rewriting time is about 15 msec, and during this period, writing from the CPU to the EEPROM and normal reading cannot be performed. The end of the internal write operation is determined by the ready / busy (RDY) of the EEPROM.
/ BUSY) pin. In addition, the EEPRO
M has a reset (RES) pin. Therefore, in order to prevent malfunctions when the power supply voltage goes out of the operating range at the time of turning on / off the power to the EEPROM, etc., when the input of the reset (RES) pin is at “0” level,
The internal write operation is prohibited. Normally, a voltage drop detection signal (internal reset signal) connected to a CPU or the like is connected. It should be noted here that if the EEPROM is powered off during the internal write cycle T2, not only the data to be written is lost, but also the already held data is destroyed. In addition, reset (RE
The same thing may occur when the input of the S) pin becomes active (“0” level).

【0005】図3は従来のSRAMを使用したデータ保
持回路の構成例を示すブロック図、及び図4は従来のE
EPROMを使用したデータ保持回路の構成例を示すブ
ロック図である。これらの例は、CPUの周辺メモリと
して、SRAMとEEPROMを使用した場合の一般的
なものであり、回路電源の安定化のために装置の電源電
圧Vccをレギュレータを通して電源電圧V1として回
路内に供給している。また、この図3及び図4では、本
発明の技術と関係のない信号線は省略してある。図3の
データ保持回路は、保持すべきデータがCPUあるいは
その周辺回路からSRAMに書き込まれる場合の回路で
ある。このデータ保持回路は、装置の電源電圧Vccを
安定化して一定の電源電圧V1を出力する電源レギュレ
ータ1と、メモリのアクセス制御を行うCPU及びその
周辺回路(以下、これを単にCPUという)2とを備
え、そのCPU2にバス3を介してSRAM4が接続さ
れている。電源レギュレータ1の出力側には、電圧低下
検出器5と、小型電池6が接続された電源切替制御回路
7とが、接続されている。電源切替制御回路7は、トラ
ンジスタとダイオード各々2〜3個で構成されている。
CPU2から出力されたチップセレクト信号CSRAMは、
チップセレクト制御回路8を介して、チップセレクト信
号CSRAMaの形でSRAM4に与えられるようになってい
る。チップセレクト制御回路8は、ロジックゲート数個
で構成されている。
FIG. 3 is a block diagram showing a configuration example of a data holding circuit using a conventional SRAM, and FIG. 4 is a conventional E circuit.
3 is a block diagram showing a configuration example of a data holding circuit using an EPROM. FIG. These examples are typical when SRAM and EEPROM are used as the peripheral memory of the CPU, and the power supply voltage Vcc of the device is supplied to the circuit as the power supply voltage V1 through the regulator in order to stabilize the circuit power supply. are doing. Further, in FIGS. 3 and 4, signal lines unrelated to the technique of the present invention are omitted. The data holding circuit of FIG. 3 is a circuit in the case where the data to be held is written into the SRAM from the CPU or its peripheral circuits. The data holding circuit includes a power supply regulator 1 that stabilizes the power supply voltage Vcc of the device and outputs a constant power supply voltage V1, a CPU that controls access to a memory and its peripheral circuit (hereinafter, simply referred to as CPU) 2, and , And the SRAM 4 is connected to the CPU 2 via the bus 3. To the output side of the power supply regulator 1, a voltage drop detector 5 and a power supply switching control circuit 7 to which a small battery 6 is connected are connected. The power supply switching control circuit 7 is composed of two to three transistors and two diodes.
The chip select signal CSRAM output from CPU2 is
A chip select signal CSRAMa is supplied to the SRAM 4 via the chip select control circuit 8. The chip select control circuit 8 is composed of several logic gates.

【0006】SRAM4は揮発性メモリであり、データ
保持に電源が必要となるため、一般的に小型電池6を使
用する。装置の電源電圧Vccが入っている場合、それ
が電源レギュレータ1で安定化されて一定の電源電圧V
1となり、電源切替制御回路7を介してSRAM4に供
給される。SRAM4は、電源電圧V1=V1aで動作
する。装置の電源電圧Vccの断あるいは低下を電圧低
下検出器5が検出した場合は、該電圧低下検出器5から
出力される反転リセット信号RES1/(但し、/は反転を
表す。以下同様)がアクティブ状態になり、電圧切替制
御回路7によって電池6の電源電圧V1aがSRAM4
に供給される。チップセレクト制御回路8は、通常、C
PU2から出力されるチップセレクト信号CSRAMを入力
してそれをそのままチップセレクト信号CSRAMaの形で出
力してSRAM4に与える。ところが、このチップセレ
クト制御回路8は、電圧低下検出器5から出力されるリ
セット信号RES1/のアクティブ状態を検出すると、電源
電圧V1aを使用してSRAM4のチップセレクト端子
CSをノンアクティブ状態(即ち、インアクティブ状
態)に固定する。この制御により、SRAM4はデータ
保持状態に入る。データ保持のための電源電圧V1a
は、通常の装置の電源電圧Vcc及びV1より低い電圧
で可能である。
Since the SRAM 4 is a volatile memory and requires a power source to hold data, a small battery 6 is generally used. When the power supply voltage Vcc of the device is present, it is stabilized by the power supply regulator 1 and is kept at a constant power supply voltage Vcc.
It becomes 1 and is supplied to the SRAM 4 via the power supply switching control circuit 7. The SRAM 4 operates at the power supply voltage V1 = V1a. When the voltage drop detector 5 detects disconnection or drop of the power supply voltage Vcc of the device, the inversion reset signal RES1 / (where / represents inversion. The same applies hereinafter) output from the voltage drop detector 5 is active. Then, the power supply voltage V1a of the battery 6 is changed to the SRAM 4 by the voltage switching control circuit 7.
Is supplied to. The chip select control circuit 8 is normally C
The chip select signal CSRAM output from PU2 is input, and it is output as it is in the form of chip select signal CSRAMa and given to SRAM4. However, when the chip select control circuit 8 detects the active state of the reset signal RES1 / output from the voltage drop detector 5, it uses the power supply voltage V1a to put the chip select terminal CS of the SRAM 4 in the non-active state (that is, Fixed to inactive state). By this control, the SRAM 4 enters the data holding state. Power supply voltage V1a for holding data
Can be lower than the power supply voltages Vcc and V1 of a normal device.

【0007】図4のデータ保持回路は、保持すべきデー
タがCPUからEEPROMへ書き込まれる場合の回路
である。このデータ保持回路は、電源レギュレータ11
とCPU(CPU及びその周辺回路)12とを備え、該
CPU12がバス13を介してEEPROM14に接続
されている。電源レギュレータ11の出力側には、電圧
低下検出器15が接続され、その出力側がCPU12及
びEEPROM14に接続されてる。EEPROM14
は、例えば日立製作所製のHN58V257で構成され
ている。CPU12からEEPROM14にデータを書
き込む場合、CPU12から反転チップセレクト信号CS
ROM/を出力してEEPROM14を選択した後、バス1
3を介して該CPU12からEEPROM14にデータ
を書き込む。電源投入時やその解除時において、電源レ
ギュレータ11から出力される電源電圧V1が一定電圧
以下の時には、それが電圧低下検出器15で検出され、
該電圧低下検出器15から出力される反転リセット信号
RES1/がアクティブ状態となり、CPU12がリセット
される。また、このリセット信号RES1/はEEPROM
14の反転リセット端子(反転リセットピン)RES/に与
えられるので、電源投入・解除時の誤書き換え等といっ
た誤動作を防止できる。この図4のデータ保持回路は、
図3のSRAM使用のデータ保持回路と比較して非常に
簡潔な回路構成となっている。そのため、携帯電話機等
においては、この図4のデータ保持回路の回路構成が良
く用いられる。
The data holding circuit of FIG. 4 is a circuit for writing data to be held in the EEPROM from the CPU. This data holding circuit is a power supply regulator 11
And a CPU (CPU and its peripheral circuits) 12 are provided, and the CPU 12 is connected to an EEPROM 14 via a bus 13. A voltage drop detector 15 is connected to the output side of the power supply regulator 11, and its output side is connected to the CPU 12 and the EEPROM 14. EEPROM14
Is composed of HN58V257 manufactured by Hitachi Ltd., for example. When writing data from the CPU 12 to the EEPROM 14, the inverted chip select signal CS
After outputting ROM / and selecting EEPROM14, bus 1
Data is written from the CPU 12 to the EEPROM 14 via the CPU 3. When the power supply voltage V1 output from the power supply regulator 11 is equal to or lower than a certain voltage when the power is turned on or off, the voltage drop detector 15 detects it.
Inverted reset signal output from the voltage drop detector 15
RES1 / becomes active and the CPU 12 is reset. Also, this reset signal RES1 / is the EEPROM
Since it is given to the inverting reset terminal (inverting reset pin) RES / of 14, it is possible to prevent erroneous operations such as erroneous rewriting at power-on / power-off. The data holding circuit of FIG. 4 is
The circuit configuration is very simple as compared with the data holding circuit using the SRAM in FIG. Therefore, the circuit configuration of the data holding circuit of FIG. 4 is often used in a mobile phone or the like.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、従来の
図3及び図4のデータ保持回路では、次のような問題
(a),(b)があり、それを解決することが困難であ
った。 (a) 図3のSRAM使用のデータ保持回路では、デ
ータ保持用の小型電池6と電源切替制御回路7が必要と
なる。このデータ保持回路を例えば携帯電話機等に使用
する場合を考えると、バックアップ用の小型電池6と、
トランジスタやダイオード等で構成された電源切替制御
回路7とが必要となり、部品点数が多くなって装置の小
型化を考えると課題が残る。また、バックアップ用の小
型電池6の電圧低下やその電池6の寿命を考えた場合、
信頼性の面から見ても、この方法のみでのデータ保持に
は問題がある。 (b) 図4のEEPROM使用のデータ保持回路で
は、EEPROM14の特性上、図2に示すような内部
書き込みサイクルT2が必要となるので、この状態中に
電源断あるいは電源電圧Vccが動作電圧以下へ低下し
た場合は、書き込みデータの消失と保持データの破壊が
発生する可能性がある。内部書き込みサイクルT2は、
十数msec程度の時間を必要とするため、頻繁に保持
データの更新が行われ、かつ装置の電源電圧Vccの瞬
断が発生しやすい携帯電話機等の装置では、障害が発生
する確率が高くなる。また、EEPROM14に対して
多量のデータを更新する場合、CPU12の処理状態に
よっては全てのデータを書き換えるまでにある程度長い
時間が必要となる。このことは更新データの消失の確率
が高くなることにつながる。本発明は、前記従来技術が
持っていた課題を解決し、装置電源断あるいは瞬断が発
生した場合においても、既に蓄積されているデータの破
壊が発生せず、あるいは更新するデータの消失も極力防
止できる信頼性の高いデータ保持回路を提供することを
目的とする。
However, the conventional data holding circuits of FIGS. 3 and 4 have the following problems (a) and (b), and it is difficult to solve them. (A) The data holding circuit using the SRAM of FIG. 3 requires the small battery 6 for holding data and the power supply switching control circuit 7. Considering the case where this data holding circuit is used in, for example, a mobile phone, a small battery 6 for backup,
The power supply switching control circuit 7 composed of transistors, diodes, and the like is required, and the number of parts is increased, so that a problem remains when considering downsizing of the device. Also, considering the voltage drop of the small backup battery 6 and the life of the battery 6,
From a reliability point of view, there is a problem in retaining data only by this method. (B) In the data holding circuit using the EEPROM shown in FIG. 4, the internal write cycle T2 as shown in FIG. 2 is required due to the characteristics of the EEPROM 14, and therefore the power supply is cut off or the power supply voltage Vcc becomes equal to or lower than the operating voltage during this state. If it drops, the write data may be lost and the held data may be destroyed. The internal write cycle T2 is
Since a time of about ten and several msec is required, the held data is frequently updated, and in a device such as a mobile phone in which the power supply voltage Vcc of the device is likely to be instantaneously interrupted, the probability of failure increases. . Further, when a large amount of data is updated in the EEPROM 14, it takes a long time to rewrite all the data depending on the processing state of the CPU 12. This leads to a higher probability of loss of update data. The present invention solves the problems that the above-described conventional technology has, and even when the power to the apparatus is cut off or a momentary interruption occurs, the data already stored is not destroyed or the data to be updated is lost as much as possible. An object of the present invention is to provide a highly reliable data holding circuit that can be prevented.

【0009】[0009]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、データ保持回路において、メモリ用
電源電圧で動作し、チップセレクト信号によって選択さ
れ、かつメモリリセット信号によって書き込みが禁止さ
れる再書き込み可能な不揮発性のメモリ(例えば、EE
PROM等)と、第1の電源電圧で動作し、前記チップ
セレクト信号を出力して前記メモリを選択し、該メモリ
内のアドレスを指定して該メモリに対するデータの読み
書きを制御するメモリアクセス手段(例えば、CPUや
その周辺回路等)と、前記メモリアクセス手段に供給す
る前記第1の電源電圧の電圧低下を検出して該第1の電
源電圧が一定値以下に低下したときにはリセット信号を
出力する第1の電圧低下検出手段とを、備えている。さ
らに、この第1の発明のデータ保持回路では、前記メモ
リ用電源電圧で動作し、前記メモリアクセス手段から出
力された前記チップセレクト信号を前記メモリへ転送
し、前記第1の電圧低下検出手段から出力された前記リ
セット信号が入力されると該チップセレクト信号を遮断
する転送手段と、前記第1の電源電圧の電荷又はそれと
は異なる第2の電源電圧の電荷を蓄積して前記メモリ用
電源電圧を一定方向に出力し、該メモリ用電源電圧を前
記メモリ及び前記転送手段に供給する電荷蓄積手段と、
前記メモリ用電源電圧の電圧低下を検出して該メモリ用
電源電圧が一定値以下に低下したときには前記メモリリ
セット信号を出力して前記メモリの書き込みを禁止する
第2の電圧低下検出手段とが、設けられている。
In order to solve the above-mentioned problems, a first aspect of the present invention, in a data holding circuit, operates with a memory power supply voltage, is selected by a chip select signal, and is written by a memory reset signal. Rewritable non-volatile memory that is prohibited (eg EE
PROM or the like) and a memory access unit that operates at a first power supply voltage, outputs the chip select signal to select the memory, specifies an address in the memory, and controls reading and writing of data from and to the memory. For example, the CPU and its peripheral circuits) and the first power supply voltage supplied to the memory access means are detected, and a reset signal is output when the first power supply voltage drops below a certain value. And a first voltage drop detecting means. Further, in the data holding circuit according to the first aspect of the present invention, the chip selection signal output from the memory access unit is transferred to the memory by operating at the memory power supply voltage, and the first voltage drop detection unit outputs the chip select signal. Transfer means for blocking the chip select signal when the output reset signal is input, and charge for the first power supply voltage or charge for a second power supply voltage different from the first power supply voltage to accumulate the memory power supply voltage Is output in a fixed direction to supply the memory power supply voltage to the memory and the transfer means,
A second voltage drop detecting means for detecting the voltage drop of the memory power supply voltage and outputting the memory reset signal when the memory power supply voltage drops below a certain value to prohibit writing to the memory; It is provided.

【0010】第2の発明では、データ保持回路におい
て、メモリ用電源電圧で動作し、第1のチップセレクト
信号によって選択され、かつメモリリセット信号によっ
て書き込みが禁止される再書き込み可能な不揮発性の第
1のメモリ(例えば、EEPROM等)と、前記メモリ
用電源電圧で動作し、第2のチップセレクト信号によっ
て選択される随時読み書き可能な第2のメモリ(例え
ば、RAM等)と、CPUやその周辺回路等で構成され
るメモリアクセス手段とを、備えている。メモリアクセ
ス手段は、第1の電源電圧で動作し、前記第1及び第2
のチップセレクト信号を出力して前記第1及び第2のメ
モリを選択し、該第1及び第2のメモリに対するデータ
の読み書きを制御し、該第1のメモリの保持データを更
新するときには、新たなデータを該第2のメモリに書き
込んだ後に該第2のメモリ内にデータ有効フラグを設定
し、該データ有効フラグの設定の有無を判定して「設定
有り」のときには該第2のメモリに記憶された該新たな
データを読み出して該1のメモリへ転送した後に該デー
タ有効フラグをクリアするものである。
According to a second aspect of the present invention, in the data holding circuit, a non-rewritable non-rewritable non-rewritable nonvolatile memory which operates at the memory power supply voltage, is selected by the first chip select signal, and is prohibited from being written by the memory reset signal. One memory (for example, EEPROM), a second memory (for example, RAM) that operates at the power supply voltage for the memory and can be read and written at any time selected by a second chip select signal, a CPU and its peripherals And a memory access unit composed of a circuit or the like. The memory access unit operates at a first power supply voltage, and has the first and second power supply voltages.
Of the chip select signal to select the first and second memories, control the reading and writing of data from and to the first and second memories, and update the data held in the first memory. Data is written in the second memory, a data valid flag is set in the second memory, it is determined whether or not the data valid flag is set, and if "setting is present", the data is set in the second memory. The new data stored is read and transferred to the first memory, and then the data valid flag is cleared.

【0011】さらに、この第2の発明のデータ保持回路
では、前記メモリアクセス手段に供給する前記第1の電
源電圧の電圧低下を検出して該第1の電源電圧が一定値
以下に低下したときにはリセット信号を出力する第1の
電圧低下検出手段と、前記メモリ用電源電圧で動作し、
前記メモリアクセス手段から出力された前記第1のチッ
プセレクト信号を前記第1のメモリへ転送し、前記第1
の電圧低下検出手段から出力された前記リセット信号が
入力されると該第1のチップセレクト信号を遮断する転
送手段と、前記第1の電源電圧の電荷又はそれとは異な
る第2の電源電圧の電荷を蓄積して前記メモリ用電源電
圧を一定方向に出力し、該メモリ用電源電圧を前記第1
及び第2のメモリと前記転送手段に供給する電荷蓄積手
段と、前記メモリ用電源電圧の電圧低下を検出して該メ
モリ用電源電圧が一定値以下に低下したときには前記メ
モリリセット信号を出力して前記第1のメモリの書き込
みを禁止する第2の電圧低下検出手段とが、設けられて
いる。第3の発明では、第1又は第2の発明のデータ保
持回路において、前記転送手段を、ロジックゲートで構
成し、前記電荷蓄積手段を、前記第1又は第2の電源電
圧がアノード側に印加される逆流防止用のダイオード
と、前記ダイオードのカソード側とグランドとの間に接
続されたコンデンサとで、構成している。
Further, in the data holding circuit according to the second aspect of the present invention, when the voltage drop of the first power supply voltage supplied to the memory access means is detected and the first power supply voltage drops below a certain value. A first voltage drop detecting means for outputting a reset signal and operating with the memory power supply voltage;
The first chip select signal output from the memory access unit is transferred to the first memory, and the first chip select signal is transferred to the first memory.
Transfer means for interrupting the first chip select signal when the reset signal output from the voltage drop detecting means is input, and a charge of the first power supply voltage or a charge of a second power supply voltage different from the charge. Is stored and the power supply voltage for memory is output in a fixed direction, and the power supply voltage for memory is
And a second memory, a charge accumulating means for supplying to the transfer means, a voltage drop of the memory power supply voltage, and when the memory power supply voltage drops below a certain value, the memory reset signal is output. Second voltage drop detecting means for prohibiting writing to the first memory is provided. According to a third invention, in the data holding circuit according to the first or second invention, the transfer means is constituted by a logic gate, and the charge storage means is applied with the first or second power supply voltage on the anode side. And a capacitor connected between the cathode side of the diode and the ground.

【0012】[0012]

【作用】第1及び第3の発明によれば、以上のようにデ
ータ保持回路を構成したので、第1及び第2の電源電圧
が印加されると、該第1の電源電圧によってメモリアク
セス手段が動作可能状態になると共に、該第1又は第2
の電源電圧の電荷が電荷蓄積手段に蓄積される。メモリ
アクセス手段では、チップセレクト信号によってメモリ
を選択し、そのメモリに対するデータの書き込み、ある
いは読み出しを行う。電源断あるいは瞬断が発生する
と、電荷蓄積手段から出力されたメモリ用電源電圧によ
ってメモリの動作状態が維持される。電源の断あるいは
瞬断によって第1の電源電圧が一定値以下になると、第
1の電圧低下検出手段から出力されたリセット信号によ
って転送手段が閉じ、メモリアクセス手段から出力され
るチップセレクト信号が遮断され、メモリへ転送されな
い。電荷蓄積手段から供給されるメモリ用電源電圧が一
定値以下に低下すると、第2の電圧低下検出手段から出
力されたメモリリセット信号により、メモリに対する書
き込みが禁止される。これにより、電源の断あるいは瞬
断時に発生するメモリの保持データの破壊の防止が図れ
る。
According to the first and third aspects of the invention, since the data holding circuit is constructed as described above, when the first and second power supply voltages are applied, the memory access means is driven by the first power supply voltage. Becomes the operable state, and the first or second
The electric charge of the power supply voltage is stored in the charge storage means. The memory access means selects a memory by a chip select signal and writes or reads data to or from the memory. When a power failure or momentary power failure occurs, the memory operating state is maintained by the memory power supply voltage output from the charge storage means. When the first power supply voltage becomes a certain value or less due to power interruption or momentary power interruption, the transfer means is closed by the reset signal output from the first voltage drop detection means, and the chip select signal output from the memory access means is shut off. And not transferred to memory. When the memory power supply voltage supplied from the charge storage means drops below a certain value, writing to the memory is prohibited by the memory reset signal output from the second voltage drop detection means. As a result, it is possible to prevent the data held in the memory from being destroyed when the power is turned off or when there is an instantaneous interruption.

【0013】第2及び第3の発明によれば、メモリアク
セス手段によって第1のメモリの保持データを更新する
時には、新たなデータを第2のメモリに書き込んだ後に
該第2のメモリ内にデータ有効フラグを設定し、第1の
メモリへ転送を行う必要のあるデータが該第2のメモリ
上に存在することを示す。そして、メモリアクセス手段
は、第2のメモリ上のデータ有効フラグの設定の有無を
チェックし、「設定あり」の時には該第2のメモリに記
憶されたデータを読み出し、第1のメモリへ転送した後
に該データ有効フラグをクリアし、該第2のメモリ上に
転送すべきデータが存在しないことを示す。データ有効
フラグの設定中に電源の断あるいは瞬断が発生した場
合、電荷蓄積手段から出力されたメモリ用電源電圧が第
1及び第2のメモリに供給されるので、それらのメモリ
の動作状態が維持される。そのため、電源の断あるいは
瞬断が発生しても、第2のメモリに保持された更新デー
タは消失しない。従って、前記課題を解決できるのであ
る。
According to the second and third inventions, when the data held in the first memory is updated by the memory access means, new data is written in the second memory and then the data in the second memory is written. A valid flag is set to indicate that data that needs to be transferred to the first memory exists in the second memory. Then, the memory access means checks whether or not the data valid flag on the second memory is set, and when it is “set”, the data stored in the second memory is read and transferred to the first memory. After that, the data valid flag is cleared to indicate that there is no data to be transferred on the second memory. If the power supply is interrupted or the power is interrupted during the setting of the data valid flag, the memory power supply voltage output from the charge accumulating means is supplied to the first and second memories. Maintained. Therefore, the update data held in the second memory is not lost even when the power is cut off or a momentary cut occurs. Therefore, the above problem can be solved.

【0014】[0014]

【実施例】第1の実施例 図1は、本発明の第1の実施例を示すデータ保持回路の
構成図である。なお、この構成図では、本実施例と関係
のない信号線は省略されている。このデータ保持回路
は、例えば携帯電話機に用いられる回路であり、装置の
電源電圧Vccを安定化して2系統の第1の電源電圧
(装置内部の主電源)V1と第2の電源電圧V2とを出
力する電源レギュレータ21を有している。電源レギュ
レータ21から出力される電源電圧V1側には、メモリ
アクセス手段であるCPU及びその周辺回路(以下、こ
れを単にCPUという)22が接続されている。CPU
22には、バス23を介して再書き込み可能な不揮発性
メモリ(例えば、日立製作所製のHN58V257T3
5SRのEEPROM)24が接続されている。CPU
22は、アクティブ“1”でチップセレクト信号CSROM
を出力してEEPROM24を選択し、そのEEPRO
M24の読み書き(アクセス)を制御する機能を有して
いる。EEPROM24は、反転チップセレクト信号CS
ROMa/を入力する反転チップセレクト端子CS/、反転
メモリリセット信号RES2/を入力する反転リセット端子R
ES/、及びメモリ用電源電圧V2aを入力する電源端子
+V等を有している。リセット端子RES/は、電源電圧低
下等による内部回路の誤動作を防ぐため、書き込みを禁
止するための端子である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a block diagram of a data holding circuit showing a first embodiment of the present invention. In this configuration diagram, signal lines not related to this embodiment are omitted. This data holding circuit is a circuit used in, for example, a mobile phone, and stabilizes the power supply voltage Vcc of the device to generate a first power supply voltage (main power supply inside the device) V1 and a second power supply voltage V2 of two systems. It has a power supply regulator 21 for outputting. A CPU as a memory access unit and its peripheral circuit (hereinafter, simply referred to as CPU) 22 are connected to the power supply voltage V1 side output from the power supply regulator 21. CPU
22 is a non-volatile memory that can be rewritten via the bus 23 (for example, HN58V257T3 manufactured by Hitachi, Ltd.).
5SR EEPROM) 24 is connected. CPU
22 is an active "1" and a chip select signal CSROM
Is output to select the EEPROM 24, and the EEPROM
It has a function of controlling reading / writing (access) of M24. The EEPROM 24 has an inverted chip select signal CS
Inversion chip select terminal CS / for inputting ROMa /, Inversion reset terminal R for inputting inverted memory reset signal RES2 /
It has a power supply terminal + V for inputting ES / and a memory power supply voltage V2a. The reset terminal RES / is a terminal for prohibiting writing in order to prevent malfunction of the internal circuit due to a decrease in power supply voltage or the like.

【0015】また、電源レギュレータ21から出力され
る第1の電源電圧V1側には、第1の電圧低下検出手段
である電圧低下検出器25の入力側が接続されている。
電圧低下検出器25は、電源電圧V1の電圧低下を検出
して反転リセット信号RES1/を出力し、該電源電圧V1
が一定値以下に低下した時には該リセット信号RES1/を
“0”レベルにする回路である。電圧低下検出器25の
出力側は、CPU22のリセット入力端子に接続される
と共に、転送手段である2入力NANDゲート26の一
方の入力側に接続されている。このNANDゲート26
の他方の入力側は、CPU22から出力されるチップセ
レクト信号CSROM側に接続されている。チップセレクト
信号CSROM側は、CPU22が電源断となった時に不定
な信号状態とならないように抵抗27を通してグランド
に接続されている。NANDゲート26は、メモリ用電
源電圧V2aで動作して反転チップセレクト信号CSROMa
/を出力する回路であり、その出力側がEEPROM2
4のチップセレクト端子CS/に接続されている。電源
レギュレータ21から出力される第2の電源電圧V2側
には、該電源電圧V2の電荷を蓄積するために逆流防止
用のダイオード28及び大容量のコンデンサ29からな
る電荷蓄積手段が接続されている。ダイオード28は、
そのアノード側が電源レギュレータ21の第2の電源電
圧V2側に接続され、そのカソード側がコンデンサ29
を介してグランドに接続されている。また、ダイオード
28のカソード側は、EEPROM24の電源端子+V
及びNANDゲート26の電源端子に接続されると共
に、第2の電圧低下検出手段である電圧低下検出器30
の入力側に接続されている。電圧低下検出器30は、コ
ンデンサ29から出力されるメモリ用電源電圧V2aの
電圧低下を検出して、該電源電圧V2aが一定値以下に
低下した時には反転メモリリセット信号RES2/をEEP
ROM24のリセット端子RES/へ出力する回路である。
次に、以上のように構成されるデータ保持回路の通常の
書き込み動作(1)と、電源断発生時の書き込み動作
(2)とを、図2及び図5を参照しつつ説明する。図5
は、図1のデータ保持回路においてCPU書き込みサイ
クル中に装置の電源断が発生した場合の各信号の動作波
形を示す図である。
The input side of a voltage drop detector 25, which is a first voltage drop detection means, is connected to the side of the first power supply voltage V1 output from the power supply regulator 21.
The voltage drop detector 25 detects the voltage drop of the power supply voltage V1, outputs an inverted reset signal RES1 /, and outputs the power supply voltage V1.
Is a circuit that sets the reset signal RES1 / to the "0" level when the voltage drops below a certain value. The output side of the voltage drop detector 25 is connected to the reset input terminal of the CPU 22 and is also connected to one input side of the 2-input NAND gate 26 which is the transfer means. This NAND gate 26
The other input side is connected to the chip select signal CSROM side output from the CPU 22. The chip select signal CSROM side is connected to the ground through the resistor 27 so as not to be in an undefined signal state when the CPU 22 is powered off. The NAND gate 26 operates at the memory power supply voltage V2a to operate as the inverted chip select signal CSROMa.
This circuit outputs /, and its output side is EEPROM2
4 chip select terminals CS /. On the side of the second power supply voltage V2 output from the power supply regulator 21, a charge storage means including a backflow prevention diode 28 and a large-capacity capacitor 29 is connected to store the charge of the power supply voltage V2. . The diode 28 is
The anode side is connected to the second power supply voltage V2 side of the power supply regulator 21, and the cathode side is connected to the capacitor 29.
Is connected to ground via. The cathode side of the diode 28 is connected to the power supply terminal + V of the EEPROM 24.
And a voltage drop detector 30 which is a second voltage drop detection means and is connected to the power supply terminal of the NAND gate 26.
Is connected to the input side of. The voltage drop detector 30 detects a voltage drop of the memory power supply voltage V2a output from the capacitor 29, and when the power supply voltage V2a drops below a certain value, the inverted memory reset signal RES2 / is set to EEP.
This is a circuit for outputting to the reset terminal RES / of the ROM 24.
Next, a normal write operation (1) and a write operation (2) when the power is cut off of the data holding circuit configured as described above will be described with reference to FIGS. 2 and 5. Figure 5
FIG. 3 is a diagram showing operation waveforms of respective signals in the data holding circuit of FIG. 1 when power-off of the device occurs during a CPU write cycle.

【0016】(1) 通常の書き込み動作 CPU22によってEEPROM24のデータ書き換え
を行う場合、従来の図2と同様に、次の2つのサイクル
T1,T2によって行われる。 T1:CPU書き込みサイクル 装置の電源電圧Vccが印加されると、それが電源レギ
ュレータ21によって安定化され、該電源レギュレータ
21から2系統の電源電圧V1,V2が出力される。電
源電圧V1はCPU22に供給され、該CPU22が動
作可能状態となる。電源電圧V2は、順方向のダイオー
ド28を通り、メモリ用電源電圧V2aとしてEEPR
OM24の電源端子+Vへ供給されると共に、NAND
ゲート26の電源端子へ供給される。通常の動作状態で
は、電源レギュレータ21から出力される電源電圧V
1,V2が所定の電圧値であるため、電圧低下検出器2
5から出力されるリセット信号RES1/が“1”となり、
NANDゲート26が開いている。CPU22によって
EEPROM24にデータを書き込む場合、該CPU2
2はバス23を通してEEPROM24へデータとアド
レスを出力すると共に、チップセレクト信号CSROMを
“0”から“1”レベル(図2のチップセレクト信号C
Sでは“1”から“0”レベル)にし、さらに図示しな
いライトイネーブル信号WEを“1”から“0”レベル
にする。“1”レベルのチップセレクト信号CSROMは、
NANDゲート26を通り、アクティブ“0”のチップ
セレクト信号CSROMa/としてEEPROM24のチップ
セレクト端子CS/に入力される。
(1) Normal write operation When data is rewritten in the EEPROM 24 by the CPU 22, it is carried out by the following two cycles T1 and T2, as in the conventional case of FIG. T1: CPU write cycle When the power supply voltage Vcc of the device is applied, it is stabilized by the power supply regulator 21, and the power supply regulator 21 outputs the power supply voltages V1 and V2 of two systems. The power supply voltage V1 is supplied to the CPU 22, and the CPU 22 becomes operable. The power supply voltage V2 passes through the diode 28 in the forward direction and is EEPR as the memory power supply voltage V2a.
The power is supplied to the power supply terminal + V of the OM24, and the NAND
It is supplied to the power supply terminal of the gate 26. In the normal operating state, the power supply voltage V output from the power supply regulator 21
Since 1 and V2 are predetermined voltage values, the voltage drop detector 2
The reset signal RES1 / output from 5 becomes "1",
NAND gate 26 is open. When data is written to the EEPROM 24 by the CPU 22, the CPU 2
2 outputs data and an address to the EEPROM 24 through the bus 23, and outputs the chip select signal CSROM from "0" to "1" level (chip select signal C in FIG. 2).
At S, the level is changed from "1" to "0"), and the write enable signal WE (not shown) is changed from "1" to "0" level. The "1" level chip select signal CSROM is
It passes through the NAND gate 26 and is input to the chip select terminal CS / of the EEPROM 24 as the active "0" chip select signal CSROMa /.

【0017】その後、規定の時間の経過後に、CPU2
2がチップセレクト信号CSROMを“0”レベル(図2の
チップセレクト信号CSでは“1”レベル)に戻すと共
に、図示しないライトイネーブル信号WEを“1”レベ
ルに戻すことにより、1バイトのデータ転送が終了す
る。データは連続して64バイトまで転送が可能であ
る。 T2:内部書き込みサイクル CPU書き込みサイクルT1の終了後に、チップセレク
ト信号CSROMを約100μsec間“0”レベル(図2
のチップセレクト信号CSでは“1”レベル)に保つ
か、あるいは図示しないライトイネーブル信号を約10
0μsec間“1”レベルに保つと、EEPROM24
は自動的に内部書き込み動作に移行する。書き換え時間
は約15msecで、この間は、CPU22からEEP
ROM24への書き込み及び通常の読み出しは行えな
い。内部書き込み動作の終了は、EEPROM24に設
けられた図示しないレディ/ビジー端子(RDY/BU
SYピン)に出力される。
After that, after a lapse of a prescribed time, the CPU 2
2 returns the chip select signal CSROM to the “0” level (“1” level in the chip select signal CS of FIG. 2) and the write enable signal WE (not shown) to the “1” level to transfer 1-byte data. Ends. Data can be continuously transferred up to 64 bytes. T2: Internal write cycle After the CPU write cycle T1, the chip select signal CSROM is kept at "0" level for about 100 μsec (see FIG. 2).
Of the chip select signal CS of "1" level) or a write enable signal (not shown) of about 10
If the "1" level is maintained for 0 μsec, the EEPROM 24
Automatically shifts to the internal write operation. The rewriting time is about 15 msec.
Writing to the ROM 24 and normal reading cannot be performed. The internal write operation is terminated by the ready / busy terminal (RDY / BU) (not shown) provided in the EEPROM 24.
It is output to the SY pin).

【0018】(2) 電源断発生時の書き込み動作 図5に示すように、CPU書き込みサイクルT1中に装
置の電源電圧Vccが断となると、電源レギュレータ2
1から出力される電源電圧V1及びV2も同様に断とな
る。電圧低下検出器25は、電源電圧V1の低下を検出
した時点で、リセット信号RES1/を“0”レベルに駆動
する。この電圧低下検出器25の検出レベルは、通常、
回路の動作電圧の下限付近に設定される。リセット信号
RES1/が“0”になると、CPU22はリセット状態と
なってその後動作を停止すると共に、NANDゲート2
6が閉じてチップセレクト信号CSROMが遮断される。 電
源電圧V2が断となっても、コンデンサ29に充電され
たメモリ用電源電圧V2aが、EEPROM24の電源
端子+VとNANDゲート26の電源端子とに供給され
続ける。電源断直後は電源電圧V2=V2aであり、ダ
イオード28によって電源レギュレータ21側への電流
の流れ込みが防止される。これは、メモリ用電源電圧V
2aを必要最低限の回路にのみ供給することにより、該
電源電圧V2aの電圧低下時間を延ばすためである。C
PU22から出力されるチップセレクト信号CSROMは、
該CPU22が電源断となった時に不定な信号状態とな
らないように、抵抗27を通して接地される。
(2) Write operation when power is cut off As shown in FIG. 5, when the power supply voltage Vcc of the device is cut off during the CPU write cycle T1, the power supply regulator 2
Similarly, the power supply voltages V1 and V2 output from 1 are also cut off. The voltage drop detector 25 drives the reset signal RES1 / to the “0” level at the time when the drop in the power supply voltage V1 is detected. The detection level of the voltage drop detector 25 is usually
It is set near the lower limit of the operating voltage of the circuit. Reset signal
When RES1 / becomes “0”, the CPU 22 enters the reset state and stops its operation thereafter, and the NAND gate 2
6 is closed and the chip select signal CSROM is cut off. Even if the power supply voltage V2 is cut off, the memory power supply voltage V2a charged in the capacitor 29 is continuously supplied to the power supply terminal + V of the EEPROM 24 and the power supply terminal of the NAND gate 26. Immediately after the power supply is cut off, the power supply voltage V2 = V2a, and the diode 28 prevents the current from flowing into the power supply regulator 21 side. This is the memory power supply voltage V
This is because the voltage drop time of the power supply voltage V2a is extended by supplying 2a only to the minimum necessary circuit. C
The chip select signal CSROM output from PU22 is
The CPU 22 is grounded through a resistor 27 so as to prevent an indefinite signal state when the power is cut off.

【0019】電圧低下検出器25から出力されるリセッ
ト信号RES1/の“0”レベルがNANDゲート26に入
力されると、該NANDゲート26が閉じる。そのた
め、このNANDゲート26から出力されるチップセレ
クト信号CSROMa/は、チップセレクト信号CSROMの状態に
関わらず常に“1”レベルに固定される。この動作によ
り、チップセレクト信号CSROMの過渡的なレベル変化で
の誤動作を防止すると共に、CPU書き込みサイクルT
1を速やかに終了し、内部書き込みサイクルT2へ移行
する動作を行う。この時点から約100μsec+15
msec後に書き込みが終了する。コンデンサ29の容
量値は、この約15msec間は確実に電圧が保てるよ
うにその容量値が決められている。そのため、CPU2
2から転送されたデータに関しては、確実にEEPRO
M24へ書き込む動作が完了する。この動作の後、メモ
リ用電源電圧V2aのレベルが降下して内部回路保護状
態となり、EEPROM24の動作電圧以下になる前
に、電圧低下検出器30から出力されたメモリリセット
信号RES2/によって該EEPROM24が書き込み禁止
状態となり、誤動作が防止される。ここで、電圧低下検
出器30の検出レベルは、EEPROM24の動作電圧
の範囲内に設定されている。
When the "0" level of the reset signal RES1 / output from the voltage drop detector 25 is input to the NAND gate 26, the NAND gate 26 is closed. Therefore, the chip select signal CSROMa / output from the NAND gate 26 is always fixed at "1" level regardless of the state of the chip select signal CSROM. This operation prevents a malfunction due to a transient level change of the chip select signal CSROM, and the CPU write cycle T
1 is quickly ended, and the operation of shifting to the internal write cycle T2 is performed. About 100μsec + 15 from this point
Writing ends after msec. The capacitance value of the capacitor 29 is determined so that the voltage can be maintained for about 15 msec. Therefore, CPU2
Regarding the data transferred from 2, surely EEPRO
The operation of writing to M24 is completed. After this operation, the level of the memory power supply voltage V2a drops to enter the internal circuit protection state, and the EEPROM 24 is driven by the memory reset signal RES2 / output from the voltage drop detector 30 before the voltage falls below the operating voltage of the EEPROM 24. The write-protected state is set, and malfunction is prevented. Here, the detection level of the voltage drop detector 30 is set within the range of the operating voltage of the EEPROM 24.

【0020】以上のように、この第1の実施例では、次
のような利点がある。 (a) 電源断あるいは瞬断が発生した場合、コンデン
サ29に充電されたメモリ用電源電圧V2aによってE
EPROM24の内部書き込みサイクルT2が保証さ
れ、その後メモリリセット信号RES2/によってEEPR
OM24の書き込みが禁止されるので、該EEPROM
24に既に保持されているデータの破壊を的確に防止で
きる。 (b) 前記(a)の実現のため、従来のデータ保持回
路に、NANDゲート26、ダイオード28、コンデン
サ29及び電圧低下検出器30等といった簡単な回路を
付加するだけであるから、装置を小型化できる。
As described above, the first embodiment has the following advantages. (A) When a power failure or momentary power failure occurs, E is generated by the memory power supply voltage V2a charged in the capacitor 29.
The internal write cycle T2 of the EPROM 24 is guaranteed, and then EEPR is generated by the memory reset signal RES2 /.
Since writing to the OM24 is prohibited, the EEPROM
It is possible to accurately prevent the destruction of the data already stored in 24. (B) In order to realize the above (a), a simple circuit such as the NAND gate 26, the diode 28, the capacitor 29, and the voltage drop detector 30 is added to the conventional data holding circuit. Can be converted.

【0021】第2の実施例 図6は、本発明の第2の実施例を示すデータ保持回路の
構成図であり、第1の実施例を示す図1中の要素と共通
の要素には共通の符号が付されている。第1の実施例
(図1)のようなCPU22を使用した場合、通常、R
AMをCPU周辺のメモリとして搭載する。例えば、携
帯電話機の場合、そのRAMとしてSRAMを一般的に
使用している。そこで、この第2の実施例では、第1の
実施例とSRAMとを用いて保持すべきデータの消失を
防ぐ工夫をしている。このデータ保持回路では、図1の
第1のチップセレクト信号CSROM等を出力するCPU2
2に、第2のチップセレクト信号CSRAMを出力する機能
を付加したCPU22Aを用い、該CPU22Aに、バ
ス23を介して第1のメモリであるEEPROM24の
他に、第2のメモリであるSRAM31を接続してい
る。CPU22Aは、第1の電源電圧V1で動作し、第
1のチップセレクト信号CSROM及び第2のチップセレク
ト信号CSRAMを出力してEEPROM24及びSRAM
31を選択し、該EEPROM24及びSRAM31に
対するデータの読み書き(アクセス)を制御する機能を
有している。さらに、このCPU22Aは、EEPRO
M24の保持データを更新する場合、新たなデータをS
RAM31に書き込んだ後にEEPROM24内にデー
タ有効フラグを設定し、その後、該データ有効フラグの
設定の有無を判定して「設定あり」の時には、該SRA
M31に記憶された該新たなデータを読み出してバス2
3を介して該EEPROM24へ転送した後、該データ
有効フラグをクリアする機能を有している。CPU22
Aから出力される第2のチップセレクト信号CSRAM側
は、SRAM31のチップセレクト端子CSに接続され
ると共に、該CPU22Aが電源断となった時に不定な
信号状態とならないように抵抗32を通してグランドに
接続されている。また、ダイオード28のカソード側
は、SRAM31の電源端子+Vにも接続されている。
そのため、装置の電源電圧Vccが断あるいは瞬断した
場合にも、コンデンサ29に充電されたメモリ用電源電
圧V2aがSRAM31にも印加されるので、該SRA
M31のデータが保持されるようになっている。
Second Embodiment FIG. 6 is a block diagram of a data holding circuit showing a second embodiment of the present invention. Elements common to those in FIG. 1 showing the first embodiment are common to the elements. Is attached. When the CPU 22 as in the first embodiment (FIG. 1) is used, R
The AM is mounted as a memory around the CPU. For example, in the case of a mobile phone, SRAM is generally used as its RAM. Therefore, in the second embodiment, the device of the first embodiment and the SRAM are used to prevent the loss of the data to be held. In this data holding circuit, the CPU 2 that outputs the first chip select signal CSROM or the like shown in FIG.
2, a CPU 22A having a function of outputting a second chip select signal CSRAM is used, and the CPU 22A is connected to a second memory SRAM 31 in addition to the first memory EEPROM 24 via a bus 23. are doing. The CPU 22A operates at the first power supply voltage V1 and outputs the first chip select signal CSROM and the second chip select signal CSRAM to the EEPROM 24 and SRAM.
31 has a function of controlling read / write (access) of data with respect to the EEPROM 24 and the SRAM 31. Furthermore, this CPU 22A is EEPRO
When updating the data stored in M24, S
After writing to the RAM 31, a data valid flag is set in the EEPROM 24, and then it is determined whether or not the data valid flag is set.
The new data stored in M31 is read and the bus 2
It has a function of clearing the data valid flag after the data is transferred to the EEPROM 24 via No. 3. CPU22
The second chip select signal CSRAM side output from A is connected to the chip select terminal CS of the SRAM 31 and is connected to the ground through the resistor 32 so that the CPU 22A does not have an indefinite signal state when the power is cut off. Has been done. The cathode side of the diode 28 is also connected to the power supply terminal + V of the SRAM 31.
Therefore, even if the power supply voltage Vcc of the device is cut off or momentarily cuts off, the memory power supply voltage V2a charged in the capacitor 29 is applied to the SRAM 31 as well.
The data of M31 is held.

【0022】図7は、図6に示すデータ保持回路の動作
手順のフローチャートであり、この図を参照しつつ、保
持すべきデータ消失を防ぐ制御方法の動作を説明する。
CPU22Aは、通常、EEPROM24に保持蓄積す
るデータを一旦SRAM31上に保持するものとする。
これは、EEPROM24にデータを蓄積する前に、書
き込むべきデータの整理・演算及びフォーマット変換等
を行う必要があることと、該EEPROM24へ書き込
みを行う際に数msecの時間を必要とするため、CP
U22Aの動作状態によってはすぐに書き込み動作を行
うことが難しい場合があることによる。図7のステップ
41の開始から始まる流れは、EEPROM24へデー
タを書き込む動作のフローチャートである。CPU22
Aは、ステップ42において保持データの更新が発生す
ると、チップセレクト信号CSRAMによってSRAM31
を選択し、バス23を通して該SRAM31内のアドレ
スを選択してその選択したアドレスに、ステップ43で
データを書き込む。SRAM31へデータを書き込む時
には、データの整理や、EEPROM24に保持するた
めの形式への変更等の演算もあわせて行い、後でSRA
M31からEEPROM24へ転送する時には、データ
の加工は行わず、単純に転送作業だけを行えるようにし
ておく。ステップ44において、必要なデータを全てS
RAM31上に書き込むと、CPU22Aはステップ4
5でデータ有効フラグDFLをSRAM31上に設定
し、EEPROM24へ転送を行う必要のあるデータが
該SRAM31上に存在することを示す。データ有効フ
ラグDFLは、例えば、数ビット又は数バイトのビット
パターンである。このデータ有効フラグDFLの内容
は、ここでは特に定義しないが、偶然によるパターンの
一致で誤動作が発生しないように、このような確率が低
くなる方法が望ましい。このデータ有効フラグDFLが
SRAM31上に設定される前に発生した電源断に対し
ては、装置としてデータを受け取れなかったことにな
り、当然データは消失する。そのため、外部装置へデー
タを受け取ったことの応答を返す必要がある場合には、
データ有効フラグDFLの設定後にデータ受け取りの応
答が返される。
FIG. 7 is a flowchart of the operation procedure of the data holding circuit shown in FIG. 6, and the operation of the control method for preventing the loss of data to be held will be described with reference to this figure.
The CPU 22A normally temporarily holds the data to be held and accumulated in the EEPROM 24 on the SRAM 31.
This is because it is necessary to organize / calculate the data to be written and format conversion before the data is stored in the EEPROM 24, and it takes several msec to write to the EEPROM 24.
This is because it may be difficult to perform the write operation immediately depending on the operating state of U22A. The flow starting from the start of step 41 in FIG. 7 is a flow chart of the operation of writing data to the EEPROM 24. CPU22
When the update of the held data occurs in step 42, A changes the SRAM 31 by the chip select signal CSRAM.
Is selected, an address in the SRAM 31 is selected through the bus 23, and data is written to the selected address in step 43. When writing data to the SRAM 31, calculations such as data rearrangement and change to a format for holding in the EEPROM 24 are also performed, and SRA is performed later.
When the data is transferred from the M31 to the EEPROM 24, the data is not processed and only the transfer work can be performed. In step 44, all necessary data is S
When the data is written in the RAM 31, the CPU 22A executes step 4
In step 5, the data valid flag DFL is set on the SRAM 31 to indicate that the data that needs to be transferred to the EEPROM 24 exists on the SRAM 31. The data valid flag DFL is, for example, a bit pattern of several bits or several bytes. The content of the data valid flag DFL is not particularly defined here, but it is desirable to use a method of reducing such a probability so that a malfunction does not occur due to coincidence of patterns by accident. When the power is cut off before the data valid flag DFL is set on the SRAM 31, the device cannot receive the data, and the data is naturally lost. Therefore, when it is necessary to return the response that the data is received to the external device,
After setting the data valid flag DFL, a response of data reception is returned.

【0023】CPU22Aは、あるタイミング(開始ス
テップ51)でデータ有効フラグDFLのチェックを定
期的に行うため、ステップ52での電源電圧Vccの投
入後に、ステップ53で、データ有効フラグDFLがS
RAM31上に設定されているか否かをチェックする。
データ有効フラグDFLが有効であることを確認できた
ならば、CPU22Aはステップ54において、SRA
M31の規定のアドレス(データが格納されているアド
レス)からデータを読み出し、チップセレクト信号CSRO
M,CSROMa/で選択したEEPROM24へデータを転送
する。ステップ55の転送が全て終了した段階で、CP
U22Aはステップ56で、データ有効フラグDFLを
クリアし、SRAM31上に転送すべきデータが存在し
ないことを示す。本実施例において、データ有効フラグ
DFLの有効中に電源瞬断があった場合、コンデンサ2
9に充電されたメモリ用電源電圧V2aによってSRA
M31が動作を継続するので、該SRAM31に保持さ
れたデータの消失を防止できる。SRAM31の保持デ
ータをどれだけの電源断時間まで有効としてデータ消失
を防ぐかは、コンデンサ29の容量値で決まる。そのた
め、できるだけ大容量のコンデンサ29を搭載するにこ
したことはないが、本実施例のデータ保持回路が設けら
れる携帯電話機の仕様及び用途を考慮して該コンデンサ
29の容量値を適宜決定すればよい。EEPROM24
に対してデータの更新が終わった後、そのEEPROM
24に保持されたデータを読み出す場合には、CPU2
2Aが該EEPROM24から直接データを読み出した
り、あるいは該EEPROM24から読み出したデータ
を一旦SRAM31に転送した後に該SRAM31から
読み出すようにすればよい。
Since the CPU 22A periodically checks the data valid flag DFL at a certain timing (start step 51), after the power supply voltage Vcc is turned on in step 52, the data valid flag DFL is set to S in step 53.
It is checked whether or not it is set in the RAM 31.
If it is confirmed that the data valid flag DFL is valid, the CPU 22A proceeds to step S54 to execute SRA.
Data is read from the specified address of M31 (address where data is stored) and the chip select signal CSRO is read.
Data is transferred to the EEPROM 24 selected by M and CSROMa /. When all the transfers in step 55 are completed, the CP
The U22A clears the data valid flag DFL in step 56 to indicate that there is no data to be transferred in the SRAM 31. In this embodiment, when the power supply is interrupted while the data valid flag DFL is valid, the capacitor 2
SRA by the memory power supply voltage V2a charged to 9
Since the M31 continues to operate, it is possible to prevent the data held in the SRAM 31 from being lost. The capacity value of the capacitor 29 determines how long the data held in the SRAM 31 is valid until the power is cut off to prevent data loss. Therefore, although the capacitor 29 having the largest capacity has not been mounted, if the capacity value of the capacitor 29 is appropriately determined in consideration of the specifications and application of the mobile phone provided with the data holding circuit of this embodiment. Good. EEPROM 24
After updating the data for the EEPROM
When reading the data held in 24, the CPU 2
2A may read the data directly from the EEPROM 24, or may transfer the data read from the EEPROM 24 to the SRAM 31 and then read the data from the SRAM 31.

【0024】以上のように、この第2の実施例では、第
1の実施例とほぼ同様の利点を有するほかに、次のよう
な利点(i),(ii)もある。 (i) CPU22Aの周辺メモリとして例えばSRA
M31を使用している場合、EEPROM24の更新デ
ータを予め該SRAM31に保持した後、その保持デー
タをEEPROM24へ転送するようにしているので、
電源瞬断発生時の更新データの消失を防止できる。本実
施例では、例えば、コンデンサ29に0.03Fの容量
を使用し、1時間以上のバックアップが可能であること
を確認できた。 (ii) 図6で用いたEEPROM24は、例えば、6
4バイトまで連続的に書き込みができるページ書き換え
モード機能が搭載されているため、SRAM31から該
EEPROM24への転送時間を減らすことが可能であ
る。従って、EEPROM24へのデータの更新速度の
高速化が期待できる。なお、本発明は上記実施例に限定
されず、種々の変形が可能である。その変形例として
は、例えば次の(1)〜(6)のようなものがある。
As described above, the second embodiment has the following advantages (i) and (ii) in addition to the advantages substantially similar to those of the first embodiment. (I) As a peripheral memory of the CPU 22A, for example, SRA
When the M31 is used, the update data of the EEPROM 24 is held in the SRAM 31 in advance, and then the held data is transferred to the EEPROM 24.
It is possible to prevent the loss of updated data when a power failure occurs. In this embodiment, for example, it was confirmed that the capacitor 29 has a capacity of 0.03 F and can be backed up for 1 hour or more. (Ii) The EEPROM 24 used in FIG.
Since the page rewrite mode function capable of continuously writing up to 4 bytes is installed, it is possible to reduce the transfer time from the SRAM 31 to the EEPROM 24. Therefore, the speed of updating the data in the EEPROM 24 can be expected to increase. The present invention is not limited to the above embodiment, and various modifications can be made. For example, there are the following modifications (1) to (6).

【0025】(1) 図1及び図6では、装置の電源電
圧Vccを電源レギュレータ21で安定化して2系統の
電源電圧V1,V2を出力している。実際には、例えば
電源電圧V1とV2の電圧値を同一に設定するため、特
に電源電圧V1とV2の2系統に分けなくてもよい。 (2) 図1及び図6では、CPU22,22Aを用い
てアクセス制御を行っているが、他のメモリアクセス手
段を用いてもよい。例えば、図6のCPU22Aにかえ
て、ダイレクトメモリアクセスコントローラ(DMA)
や、ハードウェアで構成したメモリアクセス回路等を使
用しても、上記実施例の実現が可能である。 (3) 図1及び図6において、EEPROM24とし
て日立製作所製のHN58V257T35SRを使用し
ているが、他の種類のEEPROMを用いてもよい。さ
らに、これらのEEPROMにかえて、他の再書き込み
可能な不揮発性メモリを用いてもよい。また、図6のE
EPROM24のデータバックアップ用としてSRAM
31を用いたが、DRAM等の他の読み書き可能なメモ
リを用いてもよい。 (4) 図1及び図6において、チップセレクト信号CS
ROMをNANDゲート26によってEEPROM24へ
転送するようにしたが、NORゲートやNANDゲート
等の他のロジックゲートを用いたり、あるいはトランジ
スタ等で構成される他の転送手段を用いてもよい。 (5) メモリバックアップ用の電荷蓄積手段は、ダイ
オード28及びコンデンサ29で構成したが、他の回路
構成の電荷蓄積手段を用いてもよい。 (6) 上記実施例では、携帯電話機に設けられるデー
タ保持回路について説明したが、上記実施例が用いられ
るデータ保持回路は、携帯電話機以外の他の装置にも搭
載可能である。
(1) In FIGS. 1 and 6, the power supply voltage Vcc of the apparatus is stabilized by the power supply regulator 21 and the two power supply voltages V1 and V2 are output. In practice, for example, since the voltage values of the power supply voltages V1 and V2 are set to be the same, it is not necessary to divide the power supply voltages V1 and V2 into two systems. (2) In FIGS. 1 and 6, access control is performed using the CPUs 22 and 22A, but other memory access means may be used. For example, instead of the CPU 22A in FIG. 6, a direct memory access controller (DMA)
Alternatively, the above-described embodiment can be realized by using a memory access circuit or the like configured by hardware. (3) Although HN58V257T35SR manufactured by Hitachi Ltd. is used as the EEPROM 24 in FIGS. 1 and 6, other types of EEPROM may be used. Further, other rewritable nonvolatile memory may be used instead of these EEPROMs. In addition, E of FIG.
SRAM for data backup of EPROM 24
Although 31 is used, other readable / writable memories such as DRAM may be used. (4) In FIGS. 1 and 6, the chip select signal CS
Although the ROM is transferred to the EEPROM 24 by the NAND gate 26, other logic gates such as a NOR gate and a NAND gate may be used, or another transfer means composed of a transistor or the like may be used. (5) The charge storage means for memory backup is composed of the diode 28 and the capacitor 29, but charge storage means of other circuit configuration may be used. (6) In the above embodiment, the data holding circuit provided in the mobile phone has been described, but the data holding circuit used in the above embodiment can be mounted in a device other than the mobile phone.

【0026】[0026]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、電源蓄積手段を設けたので、電源断あるいは
瞬断が発生した場合、該電荷蓄積手段によってメモリの
動作状態を維持できる。そして、この電荷蓄積手段から
出力されるメモリ用電源電圧が一定値以下に低下する
と、第2の電圧低下検出手段によってメモリへの書き込
みが禁止される。そのため、電源断あるいは瞬断が発生
した場合、メモリに既に保持されているデータの破壊を
的確に防止できる。しかも、従来のデータ保持回路に、
転送手段、電荷蓄積手段及び第2の電圧低下検出手段と
いった簡単な回路構成の付加のみで、データの破壊を防
止できるので、回路の小型化が可能である。第2の発明
によれば、第1の発明の構成に加えて第2のメモリを追
加し、そのメモリをメモリアクセス制御手段で制御する
ようにしたので、第1の発明の効果を有するほかに、該
第2のメモリによって電源瞬断発生時における第1のメ
モリへの更新データの消失を的確に防止できる。第3の
発明によれば、転送手段をロジックゲートで構成し、電
荷蓄積手段をダイオード及びコンデンサで構成したの
で、回路構成を簡単化できる。
As described in detail above, according to the first aspect of the present invention, since the power storage means is provided, the charge storage means maintains the operating state of the memory when the power supply is interrupted or momentary interruption occurs. it can. When the memory power supply voltage output from the charge storage means drops below a certain value, the second voltage drop detection means prohibits writing to the memory. Therefore, when a power failure or momentary power failure occurs, it is possible to accurately prevent the destruction of the data already held in the memory. Moreover, in the conventional data holding circuit,
Since the destruction of data can be prevented only by adding a simple circuit configuration such as the transfer means, the charge storage means, and the second voltage drop detection means, the circuit can be downsized. According to the second invention, in addition to the configuration of the first invention, the second memory is added and the memory is controlled by the memory access control means. Therefore, in addition to the effect of the first invention, By the second memory, it is possible to accurately prevent the update data from being lost to the first memory when the power supply is interrupted. According to the third invention, the transfer means is composed of the logic gate and the charge storage means is composed of the diode and the capacitor, so that the circuit structure can be simplified.

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

【図1】本発明の第1の実施例を示すデータ保持回路の
構成図である。
FIG. 1 is a configuration diagram of a data holding circuit showing a first embodiment of the present invention.

【図2】従来のEEPROMの書き込みサイクルを示す
図である。
FIG. 2 is a diagram showing a write cycle of a conventional EEPROM.

【図3】従来のSRAM使用のデータ保持回路の構成ブ
ロック図である。
FIG. 3 is a configuration block diagram of a conventional data holding circuit using SRAM.

【図4】従来のEEPROM使用のデータ保持回路の構
成ブロック図である。
FIG. 4 is a configuration block diagram of a conventional data holding circuit using an EEPROM.

【図5】図1のデータ保持回路における装置電源断発生
時の動作波形図である。
5 is an operation waveform diagram in the data holding circuit of FIG. 1 when the power supply to the device is cut off.

【図6】本発明の第2の実施例を示すデータ保持回路の
構成図である。
FIG. 6 is a configuration diagram of a data holding circuit showing a second embodiment of the present invention.

【図7】図6のデータ保持回路における動作手順のフロ
ーチャートである。
7 is a flowchart of an operation procedure in the data holding circuit of FIG.

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

22,22A CPU 24 EEPROM 25,30 電圧低下検出器 26 NANDゲート 28 ダイオード 29 コンデンサ 31 SRAM CSRAM,CSROM,CSROMa/ チップセレクト信号 DFL データ有効フラグ RES1/ リセット信号 RES2/ メモリリセット信号 V1,V2,V2a,Vcc 電源電圧 22, 22A CPU 24 EEPROM 25, 30 voltage drop detector 26 NAND gate 28 diode 29 capacitor 31 SRAM CSRAM, CSROM, CSROMa / chip select signal DFL data valid flag RES1 / reset signal RES2 / memory reset signal V1, V2, V2a, Vcc power supply voltage

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 メモリ用電源電圧で動作し、チップセレ
クト信号によって選択され、かつメモリリセット信号に
よって書き込みが禁止される再書き込み可能な不揮発性
のメモリと、 第1の電源電圧で動作し、前記チップセレクト信号を出
力して前記メモリを選択し、該メモリ内のアドレスを指
定して該メモリに対するデータの読み書きを制御するメ
モリアクセス手段と、 前記メモリアクセス手段に供給する前記第1の電源電圧
の電圧低下を検出して該第1の電源電圧が一定値以下に
低下したときにはリセット信号を出力する第1の電圧低
下検出手段と、 前記メモリ用電源電圧で動作し、前記メモリアクセス手
段から出力された前記チップセレクト信号を前記メモリ
へ転送し、前記第1の電圧低下検出手段から出力された
前記リセット信号が入力されると該チップセレクト信号
を遮断する転送手段と、 前記第1の電源電圧の電荷又はそれとは異なる第2の電
源電圧の電荷を蓄積して前記メモリ用電源電圧を一定方
向に出力し、該メモリ用電源電圧を前記メモリ及び前記
転送手段に供給する電荷蓄積手段と、 前記メモリ用電源電圧の電圧低下を検出して該メモリ用
電源電圧が一定値以下に低下したときには前記メモリリ
セット信号を出力して前記メモリの書き込みを禁止する
第2の電圧低下検出手段とを、 備えたことを特徴とするデータ保持手段。
1. A rewritable non-volatile memory that operates at a power supply voltage for a memory, is selected by a chip select signal, and is prohibited from being written by a memory reset signal, and operates at a first power supply voltage. A memory access unit that outputs a chip select signal to select the memory, and specifies an address in the memory to control reading and writing of data from and to the memory; and a first power supply voltage supplied to the memory access unit. First voltage drop detection means for detecting a voltage drop and outputting a reset signal when the first power supply voltage drops below a certain value, and operating from the memory power supply voltage and output from the memory access means. The chip select signal is transferred to the memory, and the reset signal output from the first voltage drop detecting means is input. A transfer unit that cuts off the chip select signal when input, and a charge of the first power supply voltage or a charge of a second power supply voltage different from the first charge voltage is accumulated to output the memory power supply voltage in a fixed direction, A charge storage unit that supplies the memory power supply voltage to the memory and the transfer unit; and a memory reset signal when the memory power supply voltage drops below a certain value by detecting a voltage drop of the memory power supply voltage. Data holding means for outputting and prohibiting writing to the memory.
【請求項2】 メモリ用電源電圧で動作し、第1のチッ
プセレクト信号によって選択され、かつメモリリセット
信号によって書き込みが禁止される再書き込み可能な不
揮発性の第1のメモリと、 前記メモリ用電源電圧で動作し、第2のチップセレクト
信号によって選択される随時読み書き可能な第2のメモ
リと、 第1の電源電圧で動作し、前記第1及び第2のチップセ
レクト信号を出力して前記第1及び第2のメモリを選択
し、該第1及び第2のメモリに対するデータの読み書き
を制御し、該第1のメモリの保持データを更新するとき
には、新たなデータを該第2のメモリに書き込んだ後に
該第2のメモリ内にデータ有効フラグを設定し、該デー
タ有効フラグの設定の有無を判定して「設定有り」のと
きには該第2のメモリに記憶された該新たなデータを読
み出して該1のメモリへ転送した後に該データ有効フラ
グをクリアするメモリアクセス手段と、 前記メモリアクセス手段に供給する前記第1の電源電圧
の電圧低下を検出して該第1の電源電圧が一定値以下に
低下したときにはリセット信号を出力する第1の電圧低
下検出手段と、 前記メモリ用電源電圧で動作し、前記メモリアクセス手
段から出力された前記第1のチップセレクト信号を前記
第1のメモリへ転送し、前記第1の電圧低下検出手段か
ら出力された前記リセット信号が入力されると該第1の
チップセレクト信号を遮断する転送手段と、 前記第1の電源電圧の電荷又はそれとは異なる第2の電
源電圧の電荷を蓄積して前記メモリ用電源電圧を一定方
向に出力し、該メモリ用電源電圧を前記第1及び第2の
メモリと前記転送手段に供給する電荷蓄積手段と、 前記メモリ用電源電圧の電圧低下を検出して該メモリ用
電源電圧が一定値以下に低下したときには前記メモリリ
セット信号を出力して前記第1のメモリの書き込みを禁
止する第2の電圧低下検出手段とを、 備えたことを特徴とするデータ保持手段。
2. A rewritable non-volatile first memory which operates at a memory power supply voltage, is selected by a first chip select signal, and is write-protected by a memory reset signal, and the memory power supply. A second memory that operates at a voltage and is readable and writable at any time selected by a second chip select signal; and a first memory that operates at a first power supply voltage and outputs the first and second chip select signals. When selecting the first and second memories, controlling the reading and writing of data from and to the first and second memories, and updating the data held in the first memory, write new data to the second memory. After that, the data valid flag is set in the second memory, the presence or absence of the setting of the data valid flag is judged, and when the setting is "present", the new data stored in the second memory is stored. Memory access means for clearing the data valid flag after reading the appropriate data and transferring it to the first memory; and a first power supply for detecting a voltage drop of the first power supply voltage supplied to the memory access means. First voltage drop detection means for outputting a reset signal when the voltage drops below a certain value, and the first chip select signal output from the memory access means for operating with the memory power supply voltage. Transfer means for transferring to the first memory, shutting off the first chip select signal when the reset signal output from the first voltage drop detecting means is input, and charge of the first power supply voltage or An electric charge of a second power supply voltage different from that is accumulated and the memory power supply voltage is output in a fixed direction, and the memory power supply voltage is supplied to the first and second memories. Charge storage means for supplying to the transfer means, and detecting the voltage drop of the memory power supply voltage and outputting the memory reset signal to write the first memory when the memory power supply voltage drops below a certain value. And a second voltage drop detecting means for prohibiting the data holding means.
【請求項3】 請求項1又は2記載のデータ保持回路に
おいて、 前記転送手段は、ロジックゲートで構成し、 前記電荷蓄積手段は、前記第1又は第2の電源電圧がア
ノード側に印加される逆流防止用のダイオードと、前記
ダイオードのカソード側とグランドとの間に接続された
コンデンサとで、構成したことを特徴とするデータ保持
回路。
3. The data holding circuit according to claim 1, wherein the transfer unit is composed of a logic gate, and the charge storage unit is applied with the first or second power supply voltage on an anode side. A data holding circuit comprising a reverse current preventing diode and a capacitor connected between the cathode side of the diode and the ground.
JP7052985A 1995-03-13 1995-03-13 Data holding circuit Withdrawn JPH08249244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7052985A JPH08249244A (en) 1995-03-13 1995-03-13 Data holding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7052985A JPH08249244A (en) 1995-03-13 1995-03-13 Data holding circuit

Publications (1)

Publication Number Publication Date
JPH08249244A true JPH08249244A (en) 1996-09-27

Family

ID=12930215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7052985A Withdrawn JPH08249244A (en) 1995-03-13 1995-03-13 Data holding circuit

Country Status (1)

Country Link
JP (1) JPH08249244A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149419A (en) * 1997-11-17 1999-06-02 Yaskawa Electric Corp Method and device for backing up data
KR100373995B1 (en) * 1999-03-30 2003-02-26 인터내셔널 비지네스 머신즈 코포레이션 Hot-pluggable voltage regulator module
JP2006163753A (en) * 2004-12-07 2006-06-22 Hitachi Ulsi Systems Co Ltd Storage device
JP2007206775A (en) * 2006-01-31 2007-08-16 Tdk Corp Memory controller and flash memory system
JP2008102908A (en) * 2006-09-08 2008-05-01 Toshiba Corp System and method for improving memory reliability
JP2008228147A (en) * 2007-03-15 2008-09-25 Toshiba Mitsubishi-Electric Industrial System Corp Gate pulse generating circuit of electric power converter
JP2011077716A (en) * 2009-09-29 2011-04-14 Seiko Instruments Inc Data holding circuit
JP2014157455A (en) * 2013-02-15 2014-08-28 Mitsubishi Nichiyu Forklift Co Ltd Data writing control device and data writing control method
JP2015103084A (en) * 2013-11-26 2015-06-04 株式会社ノーリツ Data storage device and communication device having the same
JP2016006703A (en) * 2014-06-20 2016-01-14 株式会社ミツトヨ Semiconductor integrated circuit and position detector
US9390805B2 (en) 2013-02-04 2016-07-12 Samsung Electronics Co., Ltd. Memory systems and operating methods of memory controllers
JP2016186747A (en) * 2015-03-27 2016-10-27 Necエンベデッドプロダクツ株式会社 Record processing controller, recording device, record processing control method and program
US9633699B2 (en) 2013-10-18 2017-04-25 Denso Corporation Data storage control device
JP2017220025A (en) * 2016-06-07 2017-12-14 ルネサスエレクトロニクス株式会社 Semiconductor device
CN111273864A (en) * 2020-01-17 2020-06-12 济南浪潮高新科技投资发展有限公司 Method and system for reducing NAND FLASH erasing times
JP2022182955A (en) * 2021-05-26 2022-12-08 三菱電機株式会社 Nonvolatile memory writing device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11149419A (en) * 1997-11-17 1999-06-02 Yaskawa Electric Corp Method and device for backing up data
KR100373995B1 (en) * 1999-03-30 2003-02-26 인터내셔널 비지네스 머신즈 코포레이션 Hot-pluggable voltage regulator module
JP2006163753A (en) * 2004-12-07 2006-06-22 Hitachi Ulsi Systems Co Ltd Storage device
JP2007206775A (en) * 2006-01-31 2007-08-16 Tdk Corp Memory controller and flash memory system
JP4544167B2 (en) * 2006-01-31 2010-09-15 Tdk株式会社 Memory controller and flash memory system
JP2008102908A (en) * 2006-09-08 2008-05-01 Toshiba Corp System and method for improving memory reliability
JP2008228147A (en) * 2007-03-15 2008-09-25 Toshiba Mitsubishi-Electric Industrial System Corp Gate pulse generating circuit of electric power converter
JP2011077716A (en) * 2009-09-29 2011-04-14 Seiko Instruments Inc Data holding circuit
US9390805B2 (en) 2013-02-04 2016-07-12 Samsung Electronics Co., Ltd. Memory systems and operating methods of memory controllers
JP2014157455A (en) * 2013-02-15 2014-08-28 Mitsubishi Nichiyu Forklift Co Ltd Data writing control device and data writing control method
US9633699B2 (en) 2013-10-18 2017-04-25 Denso Corporation Data storage control device
JP2015103084A (en) * 2013-11-26 2015-06-04 株式会社ノーリツ Data storage device and communication device having the same
JP2016006703A (en) * 2014-06-20 2016-01-14 株式会社ミツトヨ Semiconductor integrated circuit and position detector
JP2016186747A (en) * 2015-03-27 2016-10-27 Necエンベデッドプロダクツ株式会社 Record processing controller, recording device, record processing control method and program
JP2017220025A (en) * 2016-06-07 2017-12-14 ルネサスエレクトロニクス株式会社 Semiconductor device
CN111273864A (en) * 2020-01-17 2020-06-12 济南浪潮高新科技投资发展有限公司 Method and system for reducing NAND FLASH erasing times
CN111273864B (en) * 2020-01-17 2023-08-08 山东浪潮科学研究院有限公司 Method and system for reducing NAND FLASH erasing times
JP2022182955A (en) * 2021-05-26 2022-12-08 三菱電機株式会社 Nonvolatile memory writing device

Similar Documents

Publication Publication Date Title
JPH08249244A (en) Data holding circuit
JPH10106275A (en) Semiconductor memory
KR20000069983A (en) Programming voltage protection in non-volatile memory system
JP2008513925A (en) Method and apparatus for protecting integrated circuits from erroneous operation
KR100305994B1 (en) System with ferroelectric memory
JP3376306B2 (en) Data processing apparatus and data processing method
JPS5911998B2 (en) Data check method
US5925139A (en) Microcomputer capable of preventing writing errors in a non-volatile memory
JP2004062924A (en) Semiconductor storage device and initializing method for the same
JP2002015584A (en) Read/protect circuit for non-volatile memory
JP4822620B2 (en) Semiconductor integrated circuit
US6535442B2 (en) Semiconductor memory capable of debugging an incorrect write to or an incorrect erase from the same
JPH0822422A (en) Memory device
KR20200131749A (en) Semiconductor device
JP2002014947A (en) Microcomputer
JPH11167794A (en) Semiconductor memory and its backup method
JP3849942B2 (en) System including ferroelectric memory
JP2002245787A (en) Semiconductor memory
JP2740685B2 (en) Storage device backup circuit
JP2900551B2 (en) Portable semiconductor storage device
KR20040019220A (en) An apparatus and a method for protecting data of eeprom in a monitor
JP3112277B2 (en) Memory card
JP2002042479A (en) Semiconductor memory
JP2701790B2 (en) Nonvolatile semiconductor memory device
KR0125579Y1 (en) Memory battery backup circuits

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020604