JP2007156864A - Data retention unit - Google Patents

Data retention unit Download PDF

Info

Publication number
JP2007156864A
JP2007156864A JP2005351678A JP2005351678A JP2007156864A JP 2007156864 A JP2007156864 A JP 2007156864A JP 2005351678 A JP2005351678 A JP 2005351678A JP 2005351678 A JP2005351678 A JP 2005351678A JP 2007156864 A JP2007156864 A JP 2007156864A
Authority
JP
Japan
Prior art keywords
circuit
voltage
power supply
data
data holding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005351678A
Other languages
Japanese (ja)
Inventor
Toshio Iwai
敏夫 岩井
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2005351678A priority Critical patent/JP2007156864A/en
Publication of JP2007156864A publication Critical patent/JP2007156864A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data retention unit which does not destroy data even when power interruption or a hit occurs, is small-sized, and has excellent characteristics in the data retention unit to be used for portable equipment. <P>SOLUTION: Power of an EEPROM or flash memory is supplied by a backup supply and a power supply line is provided with a power separation switch. The switch is controlled by having both a voltage drop detection signal of a main battery and a ready/busy signal outputted from the EEPROM or flash memory as conditions. Thus, the data retention unit which does not destroy the data due to the power interruption or hits while suppressing power consumption of the backup power supply is provided. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、ポータブル機器に使用されるデータ保持装置に関するものである。   The present invention relates to a data holding device used for a portable device.

近年、ポータブル機器にはCPUを使った制御がなされ、使用するユーザー自身がメニューや、モード等の機器設定を自由に行うことができ、その設定条件を次に機器を使うときにも利用できるように、データをバックアップしておく機能を搭載することが増えている。その実現の為にデータ保持装置が備えられている。通常、データ保持装置には、メインのバッテリを外したときも、データが消えてしまわないように、電気的書き込み可能な不揮発性メモリーであるEEPROMまたはフラッシュメモリ等が使用される。   In recent years, portable devices have been controlled using a CPU, and users themselves can freely set device settings such as menus and modes, and the setting conditions can be used the next time they use the device. In addition, it is increasingly equipped with a function to back up data. For this purpose, a data holding device is provided. Usually, an EEPROM or flash memory, which is an electrically writable non-volatile memory, is used for the data holding device so that data is not lost even when the main battery is removed.

以下に従来のポータブル機器に使用されるデータ保持装置について説明する。   A data holding device used in a conventional portable device will be described below.

従来のデータ保持装置として、特開平8―63405号公報に記載されたものが知られている。従来のポータブル機器に使用されるデータ保持装置のブロック図を図5に示す。図5において、101はEEPROMであり、電源供給が喪失しても記憶されたデータを保持する。102は、マイクロコンピュータであり、機器固有の機能、及びEEPROM101に対してデータの書き込みや読み出し処理を行う。103は電源回路であり、マイクロコンピュータ102やEEPROM101等に電源を供給する。104はリセット用電圧低下検出回路であり、電源回路103の電源電圧が所定のレベル以下になったのを検出すると、電源電圧低下信号を出力してマイクロコンピュータ102をリセットする。105はリセット予告用電圧低下検出回路であり、電源回路103の電源電圧が供給されており、その出力端子はマイクロコンピュータ102の入力ポートに接続されている。   As a conventional data holding device, one described in Japanese Patent Laid-Open No. 8-63405 is known. A block diagram of a data holding device used in a conventional portable device is shown in FIG. In FIG. 5, reference numeral 101 denotes an EEPROM which retains stored data even when power supply is lost. Reference numeral 102 denotes a microcomputer, which performs device-specific functions and data write / read processing on the EEPROM 101. A power circuit 103 supplies power to the microcomputer 102, the EEPROM 101, and the like. A reset voltage drop detection circuit 104 outputs a power supply voltage drop signal and resets the microcomputer 102 when it detects that the power supply voltage of the power supply circuit 103 has fallen below a predetermined level. A reset notice voltage drop detection circuit 105 is supplied with the power supply voltage of the power supply circuit 103, and its output terminal is connected to the input port of the microcomputer 102.

以上のように構成された従来のデータ保持装置について、以下その動作を説明する。リセット予告用電圧低下検出回路105は、リセット用電圧低下検出回路104と同様に電源回路103が出力する電源電圧の低下を検出するが、その検出レベル(しきい値)は、リセット用電圧低下検出回路104より所定の電圧だけ高めに設定してある。よって、電源電圧の低下があった場合は、リセット予告用電圧低下検出回路105が先に電源回路103の電源電圧の低下を検出し、マイクロコンピュータ102に対して電源電圧低下検出信号を出力する。マイクロコンピュータ102は、EEPROM101への書き込み処理の実行中に、その出力信号を検出すると、書き込み処理を中断して処理情報をEEPROM101に書き込んだ後に、処理を終了する。
特開平8―63405号公報
The operation of the conventional data holding apparatus configured as described above will be described below. The reset notice voltage drop detection circuit 105 detects a drop in the power supply voltage output from the power supply circuit 103 in the same manner as the reset voltage drop detection circuit 104, and the detection level (threshold) is the reset voltage drop detection circuit. It is set higher than the circuit 104 by a predetermined voltage. Therefore, when the power supply voltage is lowered, the reset notice voltage drop detection circuit 105 first detects the power supply voltage drop of the power supply circuit 103 and outputs a power supply voltage drop detection signal to the microcomputer 102. When the microcomputer 102 detects the output signal during execution of the writing process to the EEPROM 101, the microcomputer 102 interrupts the writing process and writes the processing information to the EEPROM 101, and then ends the process.
JP-A-8-63405

しかしながら上記の従来の構成では、電源回路が外される等により、電源電圧が急激に低下した場合、リセット予告用電圧低下検出回路からの電源電圧低下検出信号の出力直後に、リセット用電圧低下検出回路から電源電圧低下検出信号が出力されるため、マイクロコンピュータ102は、書き込み処理の中断、及び処理情報のEEPROM101への書き込みプロセスを完了することができず、間違ったアドレスに、間違ったデータを書くといった現象が発生するという問題点を有していた。   However, in the above-described conventional configuration, when the power supply voltage suddenly drops due to the power supply circuit being removed, the reset voltage drop detection is performed immediately after the output of the power supply voltage drop detection signal from the reset notice voltage drop detection circuit. Since the power supply voltage drop detection signal is output from the circuit, the microcomputer 102 cannot complete the writing process interruption and the process of writing the processing information to the EEPROM 101, and writes the wrong data to the wrong address. There was a problem that such a phenomenon occurred.

この時の様子を、図6を使って説明する。EEPROM101にデータを書く時、マイクロコンピュータ102からの書き込み命令とアドレスとデータが送られてくる転送期間であるT1:CPU書き込みサイクルは、通常数μ秒から数百μ秒で終わる。しかしその後の、T2:内部書き込みサイクルは、EEPROMの種類によって違いはあるが、通常数m秒以上かかる。これは、書き込みサイクルは、内部で高電圧を発生させ、その電圧で絶縁物に囲まれた電気を貯める部分に電荷を注入し、電気的にデータを記憶させるプロセスなので、命令サイクルに対して、数十倍から数百倍の時間がかかるからである。図6の例では、例えば、T1:CPU書き込みサイクルは、100μ秒、T2:内部書き込みサイクルは、15m秒としている。図6のT2:内部書き込みサイクルの途中で電源回路が外されると、電源電圧が低下し、マイクロコンピュータ102が書き込み処理の中断を行う前に、電源供給が途絶える。このタイミングでEEPROM101の制御信号であるCSもWEも電源電圧と同時に低下し、書き込みプロセス途中のADD/DATAもEEPROM101の動作保証電圧以下の領域まで低下してしまい、動作不安定となる。その結果、間違ったアドレスにデータが書かれたり、正しいアドレスであっても、間違ったデータが書かれたりする。   The situation at this time will be described with reference to FIG. When writing data to the EEPROM 101, the T1: CPU write cycle, which is a transfer period in which a write command, address, and data are sent from the microcomputer 102, usually ends in a few to hundreds of microseconds. However, the subsequent T2: internal write cycle usually takes several milliseconds or more, although it varies depending on the type of EEPROM. This is because the write cycle is a process in which a high voltage is internally generated, electric charge is injected into the part that stores electricity surrounded by the insulator with that voltage, and data is electrically stored. This is because it takes tens to hundreds of times. In the example of FIG. 6, for example, T1: CPU write cycle is 100 μsec, and T2: internal write cycle is 15 ms. T2 in FIG. 6: If the power supply circuit is disconnected during the internal write cycle, the power supply voltage drops, and the power supply is interrupted before the microcomputer 102 interrupts the write process. At this timing, the control signals CS and WE of the EEPROM 101 both decrease simultaneously with the power supply voltage, and ADD / DATA during the writing process also decreases to a region below the operation guarantee voltage of the EEPROM 101, resulting in unstable operation. As a result, data is written at the wrong address, or wrong data is written even at the correct address.

本発明は上記従来の問題点を解決するもので、データ書き込み中に、電源回路が外され、電源電圧が急激に低下しても、データ保持回路の電圧が低下することがなく、したがって、書き込みが誤動作せずに書き込みプロセスを終了する事が出来るデータ保持装置を提供することを目的とする。   The present invention solves the above-mentioned conventional problems, and even if the power supply circuit is disconnected during data writing, and the power supply voltage drops rapidly, the voltage of the data holding circuit does not drop. An object of the present invention is to provide a data holding device that can finish the writing process without malfunctioning.

この目的を達成するために本発明のデータ保持装置は、更新電圧印加によりデータの書き込みができ、データ書き込み中を示す状態信号を出力するとともに、書き込まれたデータを保持するデータ保持回路と、前記更新電圧を供給する電源回路と、前記電源電圧の電圧低下を検出し、電圧低下検出信号を出力する電圧検出回路と、前記電圧低下検出信号の出力時であって、前記書き込み中の状態信号が出力されている際に、前記更新電圧を前記電源回路からバックアップ電源回路に切換えるスイッチ回路とを備える。   In order to achieve this object, the data holding device of the present invention can write data by applying an update voltage, outputs a status signal indicating that data is being written, and holds the written data, A power supply circuit that supplies an update voltage; a voltage detection circuit that detects a voltage drop of the power supply voltage and outputs a voltage drop detection signal; and a state signal that is being written when the voltage drop detection signal is output. And a switch circuit that switches the update voltage from the power supply circuit to a backup power supply circuit when output.

このような構成により、データ書き込み中に、バッテリを外されても、データ保持回路の電圧が低下することなく、書き込みが誤動作せず、書き込みプロセスを終了する事が出来るという優れた効果が得られる。   With such a configuration, even if the battery is removed during data writing, the voltage of the data holding circuit does not drop, the writing does not malfunction, and the writing process can be completed. .

本発明のデータ保持装置は、更新電圧印加によりデータの書き込みができ、データ書き込み中を示す状態信号を出力するとともに、書き込まれたデータを保持するデータ保持回路と、前記更新電圧を供給する電源回路と、前記電源電圧の電圧低下を検出し、電圧低下検出信号を出力する電圧検出回路と、前記電圧低下検出信号の出力時であって、前記書き込み中の状態信号が出力されている際に、前記更新電圧を前記電源回路からバックアップ電源回路に切換えるスイッチ回路とを備えることにより、データ書き込み中に、バッテリを外されても、データ保持回路の電圧が低下することなく、書き込みが誤動作せず、書き込みプロセスを終了する事ができる。   The data holding device of the present invention can write data by applying an update voltage, outputs a status signal indicating that data is being written, and holds a written data, and a power supply circuit that supplies the update voltage And a voltage detection circuit for detecting a voltage drop of the power supply voltage and outputting a voltage drop detection signal, and at the time of outputting the voltage drop detection signal, when the state signal being written is being output, By providing the switch circuit for switching the update voltage from the power supply circuit to the backup power supply circuit, even if the battery is removed during data writing, the voltage of the data holding circuit does not decrease, the writing does not malfunction, The writing process can be terminated.

上記の構成にかかる本発明のデータ保持装置において、前記バックアップ電源回路の前記電圧検出回路への電圧印加を制限する逆流防止回路をさらに備え、前記バックアップ電源回路は、前記電源回路からの電源供給により充電されるとしても良い。これにより、バックアップ電源回路の電流が、必要のない回路に流れて、無駄に消費されるのを防止するとともに、電源電圧を用いてバックアップ電源回路を充電することができる。   In the data holding device of the present invention according to the above configuration, the backup power supply circuit further includes a backflow prevention circuit that restricts voltage application to the voltage detection circuit, and the backup power supply circuit is supplied with power from the power supply circuit. It may be charged. Thus, it is possible to prevent the current of the backup power supply circuit from flowing into unnecessary circuits and being consumed wastefully, and to charge the backup power supply circuit using the power supply voltage.

上記の構成にかかる本発明のデータ保持装置において、前記スイッチ回路は、前記電源回路の電圧低下時であって、前記書き込み中の状態信号の出力が終了した際に、前記更新電圧の供給経路を切り放すとしても良い。これにより、データ保持回路への電圧供給が不要な際に、バックアップ電源回路が無駄に消耗するのを抑えることができる。   In the data holding device of the present invention according to the above configuration, the switch circuit provides a supply path for the update voltage when the voltage of the power supply circuit is lowered and when the output of the status signal being written is completed. It may be cut off. As a result, when the voltage supply to the data holding circuit is unnecessary, it is possible to prevent the backup power supply circuit from being wasted.

上記の構成にかかる本発明のデータ保持装置において、時刻の計測を行う時計回路をさらに備え、前記バックアップ電源回路は、前記時計回路に電源を供給するとしても良い。これにより、常時動作が必要な時計回路に対するバックアップ電源回路を兼用して用いることができ、装置の構成がシンプルになり、価格を抑えることができる。   The data holding device according to the present invention having the above-described configuration may further include a clock circuit for measuring time, and the backup power supply circuit may supply power to the clock circuit. As a result, a backup power supply circuit for a clock circuit that requires constant operation can also be used, which simplifies the configuration of the apparatus and reduces the price.

以下、本発明の実施の形態について、図面を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態1)
図1は本発明の実施の形態1におけるデータ保持装置の構成を示すブロック図である。図1において、1は装置全体に電力を供給するメインバッテリ、2はメインバッテリからの電圧を機器で使用する電圧へ変換する電源回路、5は機器使用時に変更と保存を要する条件設定等のデータを格納するデータ保持回路、6はCPUおよび周辺回路である。7はデータ保持回路がデータ書き込み中か否かを表すREADY/BUSY信号であり、CPUおよび周辺回路6に向かって出力される。READY/BUSY信号7は、データ保持回路5が書き込み中の時はBUSYのHIGHレベルの信号が、書き込み中以外の時はREADYのLOWレベルの信号が、データ保持回路5よりCPUおよび周辺回路6に出力される。
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of a data holding device according to Embodiment 1 of the present invention. In FIG. 1, 1 is a main battery that supplies power to the entire apparatus, 2 is a power supply circuit that converts the voltage from the main battery into a voltage used by the device, and 5 is data such as condition settings that need to be changed and stored when the device is used. A data holding circuit 6 stores a CPU and peripheral circuits. A READY / BUSY signal 7 indicates whether the data holding circuit is writing data, and is output toward the CPU and peripheral circuit 6. The READY / BUSY signal 7 is a BUSY HIGH level signal when the data holding circuit 5 is writing, and a READY LOW level signal from the data holding circuit 5 to the CPU and the peripheral circuit 6 when the data holding circuit 5 is not writing. Is output.

3は時計バックアップ用二次電池で、時計回路8が常に動作するための電流を供給する。時計バックアップ用二次電池3は、1のメインバッテリが装着されているときは、2の電源回路で電圧変換された電流を、4の逆流防止回路を通して受け取り、常に満充電の状態まで充電されており、1のメインバッテリがない時の時計動作のバックアップ用に使用される。4の逆流防止回路は、3の時計バックアップ用二次電池の電流が対象以外の回路に流れるのを阻止する為に挿入する。9は電圧検出回路で、4の逆流防止回路の手前の電圧であるVCC1を検出する。電圧検出回路9の判定のスレッシュは、データ保持回路5の動作可能電圧を下回らないように、ある程度の余裕を持って判定スレッシュ電圧を設定する。     Reference numeral 3 denotes a clock backup secondary battery that supplies a current for the clock circuit 8 to always operate. When the main battery 1 is mounted, the watch backup secondary battery 3 receives the current converted by the power supply circuit 2 through the backflow prevention circuit 4 and is always charged to a fully charged state. And used for backup of clock operation when there is no main battery. The backflow prevention circuit 4 is inserted in order to prevent the current of the timepiece backup secondary battery 3 from flowing into a circuit other than the target. Reference numeral 9 denotes a voltage detection circuit which detects VCC1 which is a voltage before the backflow prevention circuit 4. The determination threshold voltage of the voltage detection circuit 9 is set with a certain margin so as not to fall below the operable voltage of the data holding circuit 5.

10はスイッチ制御回路で、9の電圧検出回路の出力と、データ保持回路5がデータ書き込み中か否かを表すREADY/BUSY信号7の両方の情報から、11の電源切り放しスイッチ回路への制御信号を生成する。電源切り放しスイッチ回路11は、データ保持回路5への電源を供給したり、切り放したりする。     10 is a switch control circuit, and 11 is a control signal to the switch-off switch circuit 11 based on information of both the output of the voltage detection circuit 9 and the READY / BUSY signal 7 indicating whether or not the data holding circuit 5 is writing data. Is generated. The power cut-off switch circuit 11 supplies power to the data holding circuit 5 or cuts it off.

次に、図1を使って、その動作を説明する。電圧検出回路9で、逆流防止回路4の手前の電圧VCC1を常に検出しておき、一定電圧以下に成った時に電圧低下信号を出す。スイッチ制御回路10は、データ保持回路5がデータ書き込み中か否かを表すREADY/BUSY信号7と、電圧低下信号の両方の信号を使って、電源切り放しスイッチ回路11を制御する。つまり、スイッチ制御回路10は、データ保持回路5がデータ書き込み中を示すBUSY信号と電圧低下信号の両方を同時に受け取ったとき、データ保持回路5への電源供給を維持するために電源切り放しスイッチ回路11を繋いだままとし、逆流防止回路4の手前の電圧VCC1が落ちても、データ保持回路5側の電圧が落ちないように、時計バックアップ用二次電池3から電流を供給する。電源切り放しスイッチ回路11は、データの書き込みプロセスが終了し、BUSY信号LOWがREADY信号HIGHに変わると、時計バックアップ用二次電池3の無駄な消耗を押さえるため、電源供給線を切り放す。   Next, the operation will be described with reference to FIG. The voltage detection circuit 9 always detects the voltage VCC1 before the backflow prevention circuit 4, and outputs a voltage drop signal when the voltage detection circuit 9 is below a certain voltage. The switch control circuit 10 controls the power-off switch circuit 11 by using both the READY / BUSY signal 7 indicating whether or not the data holding circuit 5 is writing data and the voltage drop signal. That is, when the data holding circuit 5 receives both the BUSY signal indicating that data is being written and the voltage drop signal at the same time, the switch control circuit 10 switches off the power supply to maintain the power supply to the data holding circuit 5. And a current is supplied from the clock backup secondary battery 3 so that the voltage on the data holding circuit 5 side does not drop even if the voltage VCC1 before the backflow prevention circuit 4 drops. When the data write process ends and the BUSY signal LOW changes to the READY signal HIGH, the power cut-off switch circuit 11 cuts off the power supply line in order to suppress unnecessary consumption of the time-backup secondary battery 3.

次に、図7を使って、その動作のタイミングを説明する。なお、VCC1は、4の逆流防止回路の手前の電圧で、1のメインバッテリが外されると低下する。VCC2は、時計バックアップ用二次電池の電圧で、1のメインバッテリが外されても低下しない。VCC3は、電源切り放しスイッチ回路11のスイッチ切り替え後の電圧であり、データ保持回路5はこの電圧で動作する。   Next, the operation timing will be described with reference to FIG. Note that VCC1 is a voltage before the four backflow prevention circuits and decreases when one main battery is removed. VCC2 is the voltage of the secondary battery for clock backup and does not decrease even if one main battery is removed. VCC3 is a voltage after the power-off switch circuit 11 is switched, and the data holding circuit 5 operates at this voltage.

図7において、T2:内部書き込みサイクルの途中のタイミングiで、1のメインバッテリが外されても、VCC2の時計バックアップ用二次電池3の電圧は低下せず、この電圧で、T2:内部書き込みサイクルを最後まで終了させる。タイミングkで、T2:内部書き込みサイクルが終了した後、5のデータ保持回路は、データ書き込み中を示すBUSY信号をREADY信号に変える。その時、VCC1の電圧が低下していれば、スイッチを開く。その結果、VCC3の電源切り放しスイッチ回路11のスイッチ切り替え後の電圧は低下し、時計バックアップ用二次電池3の電流が無駄に使われることを防止する。   In FIG. 7, even if one main battery is removed at timing i in the middle of the internal write cycle, the voltage of the secondary battery 3 for clock backup of VCC2 does not decrease. With this voltage, T2: internal write End the cycle to the end. At timing k, T2: After the internal write cycle is completed, the data holding circuit 5 changes the BUSY signal indicating that data is being written into the READY signal. At that time, if the voltage of VCC1 is lowered, the switch is opened. As a result, the voltage after the switching of the power-off switch circuit 11 of the VCC 3 is lowered, and the current of the time-backup secondary battery 3 is prevented from being wasted.

(表1)は、VCC1の検出結果とREADY/BUSY信号7との関係から、電源切り放しスイッチ回路11の開閉を決定する表である。つまり、VCC1の電圧が無くなっており、且つREADY信号の時のみ11の電源切り放しスイッチ回路を開き、時計バックアップ用二次電池3の電流が無駄に使われることを防止する。それ以外のときは常に、11の電源切り放しスイッチ回路は閉じていて、データ保持回路5への電源供給は維持される。   (Table 1) is a table for determining opening / closing of the power-off switch circuit 11 from the relationship between the detection result of VCC1 and the READY / BUSY signal 7. That is, only when the voltage of VCC1 is lost and the READY signal is applied, the power supply switch circuit 11 is opened to prevent the current of the time-backup secondary battery 3 from being wasted. In all other cases, the power-off switch circuit 11 is closed and the power supply to the data holding circuit 5 is maintained.

図2は、より具体的な部品で構成した、実施の形態1のブロック図である。9の電圧検出回路は、基準電位付のコンパレータで実現する。10のスイッチ制御回路は、論理回路のANDで構成する。11の電源切り放しスイッチ回路は、単純な制御端子付のスイッチまたは、トランジスタやFETのスイッチで実現する。データ保持回路5は、EEPROMで構成する。動作としては、コンパレータ9に入力している基準電位よりもVCC1が低くなると、コンパレータ9の出力はHIGHとなるように構成する。一方READY信号はHIGHなので、10の論理回路のANDの入力条件が成立し、ANDの出力にHIGHを出す。11の制御端子付き電源スイッチ回路は、HIGH信号で、回路を切り放すように構成する。 FIG. 2 is a block diagram of the first embodiment configured with more specific parts. The voltage detection circuit 9 is realized by a comparator with a reference potential. The switch control circuit 10 is composed of AND of logic circuits. 11 is a switch with a simple control terminal or a transistor or FET switch. The data holding circuit 5 is composed of an EEPROM. The operation is configured such that when VCC1 becomes lower than the reference potential input to the comparator 9, the output of the comparator 9 becomes HIGH. On the other hand, since the READY signal is HIGH, an AND input condition of 10 logic circuits is satisfied, and HIGH is output to the AND output. The power switch circuit with 11 control terminals is configured to be disconnected by a HIGH signal.

(実施の形態2)
図3は本発明のデータ保持回路の実施の形態2の構成を示すブロック図である。図3において、図1の構成と異なるのは、メインバッテリが無いときに対象の回路のみを動作させる時計バックアップ用電池に一次電池を使用している点である。
(Embodiment 2)
FIG. 3 is a block diagram showing the configuration of the data holding circuit according to the second embodiment of the present invention. 3 is different from the configuration of FIG. 1 in that a primary battery is used as a clock backup battery that operates only a target circuit when there is no main battery.

通常、メインバッテリが装着され、機器の電源が入っているとき、データ保持回路5の電源は、メインバッテリからの電力を変換して対象回路に電源を供給する電源回路2から供給される。ところが、データ書き込み中にメインバッテリが外された場合、書き込みプロセスが終了するまでは、時計バックアップ用一次電池3の電流を使用する。その時の動作を(表2)に示す。(表2)は、VCC1の検出結果とREADY/BUSY信号7との関係から、12の電源切り換えスイッチ回路の接続先を決定する表である。つまり、VCC1の電圧が無くなっており、且つBUSY信号の時のみ12の電源切り換えスイッチ回路をVCC2とVCC3を繋ぐ方向にする。これにより、VCC1の電圧が無くなった時も、時計バックアップ用一次電池3の電流を使って、5のデータ保持回路は書き込みプロセスを終えることが出来る。   Normally, when the main battery is mounted and the device is turned on, the power of the data holding circuit 5 is supplied from the power supply circuit 2 that converts the power from the main battery and supplies the power to the target circuit. However, when the main battery is removed during data writing, the current of the timepiece backup primary battery 3 is used until the writing process is completed. The operation at that time is shown in (Table 2). (Table 2) is a table for determining the connection destination of the 12 power supply changeover switch circuits from the relationship between the detection result of VCC1 and the READY / BUSY signal 7. That is, only when the voltage of VCC1 is lost and the BUSY signal is applied, the 12 power supply changeover switch circuits are set to connect VCC2 and VCC3. Thereby, even when the voltage of VCC1 is lost, the data holding circuit 5 can finish the writing process by using the current of the primary battery 3 for time backup.

それ以外のときは常に、11の電源切り換えスイッチ回路はVCC1とVCC3を繋ぐ方向に切り替える。この切り替えにより、VCC1の電圧が無くなっており、且つREADY信号のときは、時計バックアップ用一次電池3の電流が無駄に使われることを防止する。一方この切り替えにより、VCC1の電圧がある時でBUSY信号のときは、メインバッテリの電流が5のデータ保持回路5の書き込みプロセスに使われる。 At all other times, the eleven power supply changeover switch circuits are switched in the direction connecting VCC1 and VCC3. By this switching, when the voltage of VCC1 is lost and the signal is a READY signal, the current of the watch backup primary battery 3 is prevented from being wasted. On the other hand, by this switching, when the voltage of VCC1 is present and the signal is BUSY, the current of the main battery is used for the writing process of the data holding circuit 5 of 5.

(実施の形態3)
図4は本発明のデータ保持回路の実施の形態3の構成を示すブロック図である。図4において、図1の構成と異なるのは、メインバッテリが無いときに対象の回路のみを動作させる時計バックアップ用にコンデンサ14を使用している点である。
(Embodiment 3)
FIG. 4 is a block diagram showing the configuration of the third embodiment of the data holding circuit of the present invention. 4 is different from the configuration of FIG. 1 in that a capacitor 14 is used for clock backup for operating only a target circuit when there is no main battery.

通常時は、メインバッテリ1が装着され、機器の電源が入っているとき、データ保持回路5の電源は、メインバッテリ1からの電力を変換して対象回路に電源を供給されるのは実施の形態1と同じである。ところが、実施の形態3においては、データ書き込み中にメインバッテリが外された場合、書き込みプロセスが終了するまでの電力を供給する構成要素に、コンデンサを用いている。   Normally, when the main battery 1 is mounted and the device is turned on, the power of the data holding circuit 5 is converted to the power from the main battery 1 and supplied to the target circuit. It is the same as Form 1. However, in the third embodiment, when the main battery is removed during data writing, a capacitor is used as a component that supplies power until the writing process is completed.

近年、コンデンサに於いても、電気二重コンテセンサ等の容量の大きいコンデンサが登場し、種類によっては1F(ファラッド)から数F(ファラッド)の巨大な容量を持つコンデンサが実用化されており、その電気二重コンテセンサ等を時計のバックアップ電源に使用するケースも存在する。   In recent years, capacitors with large capacities such as electric double container sensors have appeared, and capacitors with huge capacities from 1F (Farad) to several F (Farad) have been put into practical use depending on the type. There is a case where the electric double container sensor or the like is used as a backup power source of a watch.

コンデンサは、ボタン電池系の二次電池や一次電池に比べると容量は少なくなるが、用途を何ヶ月や、何年といった用途に使わなければ、利用は可能である。つまり、一時的な停電を想定した、バックアップや、機器のセッティング替え時の、時計リセットを防ぐため、数秒から、数分のバックアップ用電源としては、十分である。   Capacitors have a smaller capacity than button battery-type secondary batteries and primary batteries, but can be used if they are not used for months or years. In other words, it is sufficient as a backup power source for several seconds to several minutes in order to prevent a clock reset at the time of backup or changing the setting of equipment assuming a temporary power failure.

また、時計ICその物の計時モードの消費電流も年々少なくなっており、少ないコンデンサ容量でも、数十秒から、数分以上のバックアップに使えるようになってきている。   In addition, the current consumption of the timekeeping mode of the watch IC itself is decreasing year by year, and even with a small capacitor capacity, it can be used for backup from several tens of seconds to several minutes or more.

動作のタイミングは、図7と同様であるので、図7を使って説明する。なお、VCC1は、4の逆流防止回路の手前の電圧で、1のメインバッテリが外されると低下する。VCC2は、時計バックアップ用コンデンサ14の電圧で、1のメインバッテリが外されてもしばらくは、データ保持回路5の最低保障電圧を下回るほどには、急激には低下しない。VCC3は、11の電源切り放しスイッチ回路の切り替え後の電圧であり、データ保持回路5はこの電圧で動作する。T2:内部書き込みサイクルの途中で、1のメインバッテリが外されても、VCC2の時計バックアップ用コンデンサ14の電圧は急激には低下せず、この電圧で、T2:内部書き込みサイクルを最後まで終了させる。T2:内部書き込みサイクルが終了した後、5のデータ保持回路は、データ書き込み中を示すBUSY信号をREADY信号に変える。その時、VCC1の電圧が低下していれば、スイッチを開く。その結果、VCC3の電源切り放しスイッチ回路11のスイッチ切り替え後の電圧は低下し、時計バックアップ用コンデンサ14の電力が無駄に使われることを防止する。   The operation timing is the same as that in FIG. 7 and will be described with reference to FIG. Note that VCC1 is a voltage before the four backflow prevention circuits and decreases when one main battery is removed. VCC2 is a voltage of the clock backup capacitor 14, and does not decrease so rapidly that the voltage drops below the minimum guaranteed voltage of the data holding circuit 5 for a while even if one main battery is removed. VCC3 is a voltage after switching of the 11 power-off switch circuit, and the data holding circuit 5 operates at this voltage. T2: Even if one main battery is removed in the middle of the internal write cycle, the voltage of the clock backup capacitor 14 of VCC2 does not drop abruptly. At this voltage, T2: the internal write cycle is completed to the end. . T2: After the internal write cycle is completed, the data holding circuit 5 changes the BUSY signal indicating that data is being written into the READY signal. At that time, if the voltage of VCC1 is lowered, the switch is opened. As a result, the voltage after the switching of the power-off switch circuit 11 of the VCC 3 is lowered, and the power of the clock backup capacitor 14 is prevented from being wasted.

11の電源切り放しスイッチ回路の開閉を決定する表は(表1)であり、実施の形態1と同じになる。(表1)は、本発明の実施の形態3のVCC1の検出結果とREADY/BUSY信号7との関係から、11の電源切り放しスイッチ回路の開閉を決定する表である。つまり、VCC1の電圧が無くなっており、且つREADY信号の時のみ11の電源切り放しスイッチ回路を開き、時計バックアップ用コンデンサ14の電力が無駄に使われることを防止する。それ以外のときは常に、11の電源切り放しスイッチ回路は閉じていて、データ保持回路5への電源供給は維持される。つまり、VCC1の電圧がある時は、READY/BUSY信号に関わらず、メインバッテリの電流がデータ保持回路5の書き込みプロセスに使われ、VCC1の電圧が低下し、BUSY信号の時は、時計バックアップ用コンデンサ14の電流がデータ保持回路5の書き込みプロセスに使われる。   The table for determining the opening / closing of the 11 power-off switch circuit is (Table 1), which is the same as in the first embodiment. (Table 1) is a table for determining the opening / closing of the 11 power-off switch circuit from the relationship between the detection result of VCC1 and the READY / BUSY signal 7 in the third embodiment of the present invention. That is, only when the voltage of VCC1 is lost and the READY signal is received, the power supply switch circuit 11 is opened to prevent the power of the clock backup capacitor 14 from being wasted. In all other cases, the power-off switch circuit 11 is closed and the power supply to the data holding circuit 5 is maintained. That is, when the voltage of VCC1 is present, the current of the main battery is used for the writing process of the data holding circuit 5 regardless of the READY / BUSY signal, and the voltage of VCC1 is lowered. The current of the capacitor 14 is used for the writing process of the data holding circuit 5.

また、時計バックアップ用コンデンサ14は、メインバッテリ1があるとき、2の電源回路と、4の逆流防止回路を通じて、常に充電済みの状態となっており、いつメインバッテリ1が外されても、コンデンサに蓄えた電力をフルに使える状態となっている。   The clock backup capacitor 14 is always charged through the two power supply circuits and the four backflow prevention circuits when the main battery 1 is present. The power stored in can be fully used.

本発明は、データ書き込み中に、主電源からの電源供給が中断されても、データ保持回路の電圧の低下を防ぎ、書き込みが誤動作せず、書き込みプロセスを終了する事ができ、ポータブル機器に限らず、各種電子機器において有用である。   The present invention prevents the voltage of the data holding circuit from being lowered even if the power supply from the main power supply is interrupted during data writing, and the writing process can be terminated without writing malfunction, and is limited to portable devices. It is useful in various electronic devices.

本発明の一実施の形態におけるデータ保持装置のブロック図1 is a block diagram of a data holding device according to an embodiment of the present invention. 本発明の一実施の形態におけるデータ保持装置の具体的構成を示すブロック図The block diagram which shows the specific structure of the data holding device in one embodiment of this invention 本発明の他の実施の形態におけるデータ保持装置のブロック図The block diagram of the data holding device in other embodiments of the present invention 本発明のその他の実施の形態におけるデータ保持装置のブロック図The block diagram of the data holding device in other embodiment of this invention 従来のデータ保持回路のブロック図Block diagram of a conventional data holding circuit 従来のEEPROM書き込み時の電源断におけるタイミングを示す図The figure which shows the timing in the power interruption at the time of conventional EEPROM writing 本発明のEEPROM書き込み時の電源断におけるタイミングを示す図The figure which shows the timing in the power interruption at the time of EEPROM writing of this invention

符号の説明Explanation of symbols

1 メインバッテリ
2 電源回路
3 時計バックアップ用二次電池
4 逆流防止回路
5 データ保持回路
6 CPUおよび周辺回路
7 READY/BUSY信号
8 時計回路
9 電圧検出回路
10 スイッチ制御回路
11 電源スイッチ回路
12 電源切り換えスイッチ回路
13 時計バックアップ用一次電池
14 時計バックアップ用コンデンサ
101 EEPROM
102 マイクロコンピュータ
103 電源回路
104 リセット用電圧低下検出回路
105 リセット予告用電圧低下検出回路
DESCRIPTION OF SYMBOLS 1 Main battery 2 Power supply circuit 3 Secondary battery for clock backup 4 Backflow prevention circuit 5 Data holding circuit 6 CPU and peripheral circuit 7 READY / BUSY signal 8 Clock circuit 9 Voltage detection circuit 10 Switch control circuit 11 Power switch circuit 12 Power switch Circuit 13 Primary battery for clock backup 14 Capacitor for clock backup 101 EEPROM
102 microcomputer 103 power supply circuit 104 reset voltage drop detection circuit 105 reset notice voltage drop detection circuit

Claims (4)

更新電圧印加によりデータの書き込みができ、データ書き込み中を示す状態信号を出力するとともに、書き込まれたデータを保持するデータ保持回路と、
前記更新電圧を供給する電源回路と、
前記電源電圧の電圧低下を検出し、電圧低下検出信号を出力する電圧検出回路と、
前記電圧低下検出信号の出力時であって、前記書き込み中の状態信号が出力されている際に、前記更新電圧を前記電源回路からバックアップ電源回路に切換えるスイッチ回路とを備えたデータ保持装置。
A data holding circuit that can write data by applying an update voltage, outputs a status signal indicating that data is being written, and holds the written data;
A power supply circuit for supplying the update voltage;
A voltage detection circuit that detects a voltage drop of the power supply voltage and outputs a voltage drop detection signal;
A data holding device comprising: a switch circuit that switches the update voltage from the power supply circuit to a backup power supply circuit when the voltage drop detection signal is output and the status signal being written is output.
前記バックアップ電源回路の前記電圧検出回路への電圧印加を制限する逆流防止回路をさらに備え、
前記バックアップ電源回路は、前記電源回路からの電源供給により充電される請求項1に記載のデータ保持回路。
A backflow prevention circuit for limiting voltage application to the voltage detection circuit of the backup power supply circuit;
The data holding circuit according to claim 1, wherein the backup power supply circuit is charged by power supply from the power supply circuit.
前記スイッチ回路は、前記電源回路の電圧低下時であって、前記書き込み中の状態信号の出力が終了した際に、前記更新電圧の供給経路を切り放す請求項2に記載のデータ保持装置。 3. The data holding device according to claim 2, wherein the switch circuit disconnects the supply path of the update voltage when the voltage of the power supply circuit is lowered and when the output of the status signal being written is completed. 時刻の計測を行う時計回路をさらに備え、
前記バックアップ電源回路は、前記時計回路に電源を供給する請求項1から請求項3の何れかに記載のデータ保持装置。
It further includes a clock circuit that measures time,
4. The data holding device according to claim 1, wherein the backup power supply circuit supplies power to the timepiece circuit. 5.
JP2005351678A 2005-12-06 2005-12-06 Data retention unit Pending JP2007156864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005351678A JP2007156864A (en) 2005-12-06 2005-12-06 Data retention unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005351678A JP2007156864A (en) 2005-12-06 2005-12-06 Data retention unit

Publications (1)

Publication Number Publication Date
JP2007156864A true JP2007156864A (en) 2007-06-21

Family

ID=38241145

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005351678A Pending JP2007156864A (en) 2005-12-06 2005-12-06 Data retention unit

Country Status (1)

Country Link
JP (1) JP2007156864A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011108219A (en) * 2009-10-19 2011-06-02 Ricoh Co Ltd Power supply control device, image forming apparatus, and method of controlling power supply
JP2012249223A (en) * 2011-05-31 2012-12-13 Seiko Npc Corp Single-line serial interface
JP2014063209A (en) * 2012-09-19 2014-04-10 Tdk Corp Flash memory system and power supply control method
JPWO2013065136A1 (en) * 2011-11-01 2015-04-02 富士通株式会社 Power supply switching device, power supply unit, and computer system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011108219A (en) * 2009-10-19 2011-06-02 Ricoh Co Ltd Power supply control device, image forming apparatus, and method of controlling power supply
JP2012249223A (en) * 2011-05-31 2012-12-13 Seiko Npc Corp Single-line serial interface
JPWO2013065136A1 (en) * 2011-11-01 2015-04-02 富士通株式会社 Power supply switching device, power supply unit, and computer system
JP2014063209A (en) * 2012-09-19 2014-04-10 Tdk Corp Flash memory system and power supply control method

Similar Documents

Publication Publication Date Title
JP4302070B2 (en) Power supply switching circuit, microcomputer, portable terminal device, and power supply switching control method
EP2877994B1 (en) Ultra-deep power-down mode for memory devices
US11139511B2 (en) Control circuit, battery having the control circuit and battery control method
EP1481399B1 (en) Product and method for preventing incorrect storage of data
CN113453108B (en) Wireless earphone, wireless earphone system and wireless earphone shutdown method
JP2020017133A (en) Storage apparatus and control method thereof
JP2007156864A (en) Data retention unit
CN106328179B (en) Power supply circuit and power supply method
TW201312896A (en) Backup battery charger
JP2003316664A (en) Nonvolatile semiconductor storage device
US7193624B2 (en) Display apparatus with power saving capability
US9075588B2 (en) Voltage regulator and control circuit for supplying voltage to a plurality of subcircuits via a chain of switches
JP6066872B2 (en) Disk unit
KR102539913B1 (en) Smart battery device and operating method thereof
CN216979719U (en) USB power supply switching circuit and USB power supply device
TWI713039B (en) Semiconductor storing apparatus and flash memory operation method
JP4960674B2 (en) Backup device
KR100635204B1 (en) Flash memory device with stable auto read function regardless of external voltage and method for controlling auto read of the flash memory device
GB2247577A (en) Power supply arrangement
JPH10293998A (en) Nonvolatile semiconductor memory
JP5717583B2 (en) Logic circuit and portable terminal device
JPS5930284A (en) Chip selection controlling circuit
JPH0296209A (en) Ic card
JP4548714B2 (en) Power control circuit for portable radio
JPH0253126A (en) Semiconductor file device