JP2006025473A - Electronic apparatus and its data storage method - Google Patents

Electronic apparatus and its data storage method Download PDF

Info

Publication number
JP2006025473A
JP2006025473A JP2004198792A JP2004198792A JP2006025473A JP 2006025473 A JP2006025473 A JP 2006025473A JP 2004198792 A JP2004198792 A JP 2004198792A JP 2004198792 A JP2004198792 A JP 2004198792A JP 2006025473 A JP2006025473 A JP 2006025473A
Authority
JP
Japan
Prior art keywords
electronic device
battery
data storage
battery voltage
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004198792A
Other languages
Japanese (ja)
Inventor
Yuichi Nosaka
祐一 野坂
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2004198792A priority Critical patent/JP2006025473A/en
Publication of JP2006025473A publication Critical patent/JP2006025473A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)
  • Power Sources (AREA)
  • Stand-By Power Supply Arrangements (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize an electronic apparatus and its data storage method in which stored data is protected against destruction due to stoppage of operation of the apparatus caused by battery voltage drop, when data are stored in a nonvolatile memory such as an EEPROM, even if it is an electronic apparatus that does not have a backup function for battery voltage drop. <P>SOLUTION: A battery driven electronic apparatus, having nonvolatile memory for storing data, is provided with a battery voltage detecting section for comparing the battery voltage with a predetermined reference level. When an operation for storing specific data in the nonvolatile memory is performed, output from the battery voltage detecting section is checked in advance. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、携帯型測定器などのように、電池により駆動される電子機器およびこの電子機器におけるデータ保存方法に関するものである。
更に詳しくは、このような電子機器において、EEPROMのような不揮発性メモリにデータを保存する際に、電池電圧の低下により機器の動作が停止されて、保存中のデータが破壊されてしまうことのないデータ保存方法に関するものである。
The present invention relates to an electronic device driven by a battery, such as a portable measuring instrument, and a data storage method in the electronic device.
More specifically, in such an electronic device, when data is stored in a nonvolatile memory such as an EEPROM, the operation of the device is stopped due to a decrease in battery voltage, and the stored data is destroyed. There is no data storage method.

従来、電池により駆動される電子機器においては、電池電圧を監視して、電池電圧が当該電子機器における動作保証電圧未満となった時には、処理中のデータを不揮発性メモリに退避するとともに、機器の動作を停止させる機能(バックアップ機能)を有している。   Conventionally, in an electronic device driven by a battery, the battery voltage is monitored, and when the battery voltage falls below the guaranteed operating voltage of the electronic device, the data being processed is saved in a nonvolatile memory, It has a function to stop operation (backup function).

図5は、従来の電子機器の一例を示す構成図である。図において、1はCPUなどよりなり、各種演算や機器全体の動作を制御する制御部、2はデータなどを表示する表示部、3はEEPROMやフラッシュメモリなど、プログラムやデータを保存する不揮発性メモリ、4は駆動電力を供給する電池(充電池)、5は電池電圧Vbを機器の動作保証電圧Vg(実際には、動作保証電圧Vgより若干高い電圧値)と比較して、電池電圧Vbの低下を検出する電圧低下検出部である。   FIG. 5 is a configuration diagram illustrating an example of a conventional electronic device. In the figure, reference numeral 1 is a control unit for controlling various operations and the operation of the entire device, 2 is a display unit for displaying data, and 3 is a non-volatile memory for storing programs and data, such as an EEPROM and a flash memory. 4 is a battery for supplying driving power (rechargeable battery), and 5 is a battery voltage Vb compared with the operation guarantee voltage Vg of the device (actually a voltage value slightly higher than the operation guarantee voltage Vg). It is a voltage drop detection part which detects a fall.

図に示す装置において、電池4の消耗とともに電池電圧Vbが低下して、動作保証電圧Vgを下回ると、電圧低下検出部5により検出出力Sgが発生される。制御部1はこの検出出力Sgを受け、メモリや各種デバイスのレジスタの内容などを不揮発性メモリ3に退避するとともに、機器をシャットダウンさせる。
したがって、電池電圧Vbが低下して、電池4による駆動が不能となる前に、現在の使用状態や実行中の処理内容を不揮発性メモリ3に記憶させてバックアップすることが可能となる。
In the apparatus shown in the figure, when the battery voltage Vb decreases as the battery 4 is consumed and falls below the operation guarantee voltage Vg, the voltage drop detection unit 5 generates a detection output Sg. Upon receiving this detection output Sg, the control unit 1 saves the contents of the memory and the registers of various devices in the nonvolatile memory 3 and shuts down the device.
Therefore, before the battery voltage Vb decreases and the driving by the battery 4 becomes impossible, it becomes possible to store the current usage state and the processing contents being executed in the nonvolatile memory 3 for backup.

特開平07−020967号公報Japanese Patent Application Laid-Open No. 07-020967 特開2002−099468号公報JP 2002-099468 A

しかしながら、上記のようなバックアップ動作を実行するためには、大きな記憶容量と早い処理速度とが必要とされ、小型軽量化や低価格化が促進されている携帯型測定器などにおいては、種々の制約から、このように高度なバックアップ機能を搭載することはできない。
すなわち、携帯型測定器などにおいては、搭載するメモリの容量も限られ、制御部(CPU)の処理速度もさほど早くすることができないので、上記のようなバックアップ機能は搭載していないのが現状である。
このため、不揮発性メモリに保存されたデータの並べ替えを行うデフラグ操作などを実行した場合には、処理が終了するまでに長い時間がかかり、この間に電池電圧Vbの低下が発生すると、処理の途中で機器がシャットダウンして、保存中のデータが読めなくなってしまうことになる。
However, in order to execute the backup operation as described above, a large storage capacity and a high processing speed are required. Due to the restrictions, such advanced backup functions cannot be installed.
In other words, in portable measuring instruments and the like, the capacity of the memory to be mounted is limited, and the processing speed of the control unit (CPU) cannot be increased so much. It is.
For this reason, when a defragmentation operation for rearranging the data stored in the non-volatile memory is executed, it takes a long time to complete the process. If the battery voltage Vb decreases during this time, the process The device shuts down midway, and the stored data cannot be read.

本発明は、上記のような従来装置の欠点をなくし、電池電圧の低下に対してバックアップ機能を有しない電子機器であっても、EEPROMのような不揮発性メモリにデータを保存する際に、電池電圧の低下により機器の動作が停止されて、保存中のデータが破壊されてしまうことのない電子機器および電子機器におけるデータ保存方法を実現することを目的としたものである。   The present invention eliminates the drawbacks of the conventional device as described above, and even when an electronic device does not have a backup function against a decrease in battery voltage, the battery is stored when data is stored in a nonvolatile memory such as an EEPROM. An object of the present invention is to realize an electronic device and a data storage method in the electronic device in which the operation of the device is not stopped due to the voltage drop and the stored data is not destroyed.

上記のような目的を達成するために、本発明の請求項1では、電池により動作するとともに、データを保存する不揮発性メモリを有する電子機器において、前記電池における電池電圧を所定の基準値と比較する電池電圧検出部を具備し、前記不揮発性メモリに対して特定のデータ保存動作を実行する際には予め前記電池電圧検出部の検出出力を確認することを特徴とする。   In order to achieve the above object, according to claim 1 of the present invention, in an electronic device that operates by a battery and has a nonvolatile memory for storing data, the battery voltage in the battery is compared with a predetermined reference value. And a battery voltage detection unit configured to check a detection output of the battery voltage detection unit in advance when a specific data storage operation is performed on the nonvolatile memory.

請求項2では、請求項1の電子機器において、前記電池電圧検出部は、要求に応じて電池電圧と所定の基準値とを比較することを特徴とする。   According to a second aspect of the present invention, in the electronic device according to the first aspect, the battery voltage detection unit compares the battery voltage with a predetermined reference value as required.

請求項3では、請求項1または2の電子機器において、前記特定のデータ保存動作は、前記不揮発性メモリに保存されたデータの並べ替えを行うデフラグ操作であることを特徴とする。   According to a third aspect of the present invention, in the electronic device according to the first or second aspect, the specific data storage operation is a defragmentation operation for rearranging data stored in the nonvolatile memory.

請求項4では、請求項1乃至3のいずれかの電子機器において、前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧より大きな値に設定されたことを特徴とする。   According to a fourth aspect of the present invention, in the electronic device according to any one of the first to third aspects, the reference value for comparing the battery voltages is set to a value larger than an operation guarantee voltage in the electronic device.

請求項5では、請求項4の電子機器において、前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧に対して、前記特定のデータ保存動作を実行するために必要な動作時間に相当する電圧値の余裕を持った値に設定されたことを特徴とする。   According to a fifth aspect of the present invention, in the electronic device according to the fourth aspect, the reference value for comparing the battery voltage is an operation time necessary for executing the specific data storage operation with respect to an operation guarantee voltage in the electronic device. It is characterized in that it is set to a value with a margin for the corresponding voltage value.

請求項6では、電池により駆動される電子機器に適用され、不揮発性メモリにデータを保存するデータ保存方法において、前記不揮発性メモリに対して特定のデータ保存動作を実行する際には、前記電池の電池電圧を検出して、この電池電圧が所定の基準値より大きい時にのみ前記データ保存動作を実行することを特徴とする。   According to a sixth aspect of the present invention, in a data storage method that is applied to an electronic device driven by a battery and stores data in a nonvolatile memory, the battery stores the data when a specific data storage operation is performed on the nonvolatile memory. The data storage operation is executed only when the battery voltage is detected and the battery voltage is greater than a predetermined reference value.

請求項7では、請求項6の電子機器におけるデータ保存方法において、前記特定のデータ保存動作は、前記不揮発性メモリに保存されたデータの並べ替えを行うデフラグ操作であることを特徴とする。   According to a seventh aspect of the present invention, in the data storage method in the electronic device according to the sixth aspect, the specific data storage operation is a defragmentation operation for rearranging data stored in the nonvolatile memory.

請求項8では、請求項6または7の電子機器におけるデータ保存方法において、前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧より大きな値に設定されたことを特徴とする。   According to an eighth aspect of the present invention, in the data storage method in the electronic device according to the sixth or seventh aspect, the reference value for comparing the battery voltages is set to a value larger than an operation guarantee voltage in the electronic device.

請求項9では、請求項8の電子機器におけるデータ保存方法において、前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧に対して、前記特定のデータ保存動作を実行するために必要な動作時間に相当する電圧値の余裕を持った値に設定されたことを特徴とする。   According to a ninth aspect of the present invention, in the data storage method in the electronic device according to the eighth aspect, the reference value for comparing the battery voltage is necessary for executing the specific data storage operation with respect to the operation guarantee voltage in the electronic device. It is characterized in that it is set to a value having a margin of voltage value corresponding to a long operating time.

このように、不揮発性メモリに対して特定のデータ保存動作を実行する際には、予め電池の電池電圧を検出して、この電池電圧が所定の基準値より大きい時にのみデータ保存動作を実行するようにすると、デフラグ操作のように長時間にわたって不揮発性メモリにデータを保存するような処理を実行した場合にも、処理の実行中に電池が消耗して、機器の動作が停止されてしまうことがなく、電池電圧の低下に対してバックアップ機能を有しない電子機器であっても、保存中のデータが破壊されてしまうことがない。   As described above, when a specific data storage operation is performed on the nonvolatile memory, the battery voltage of the battery is detected in advance, and the data storage operation is performed only when the battery voltage is greater than a predetermined reference value. As a result, even when a process that stores data in a nonvolatile memory for a long time, such as a defragmentation operation, the battery is consumed during the process, and the operation of the device is stopped. Even if the electronic device does not have a backup function with respect to a decrease in battery voltage, stored data is not destroyed.

以下、図面を用いて、本発明の電子機器および電子機器におけるデータ保存方法を説明する。   Hereinafter, the electronic device of the present invention and the data storage method in the electronic device will be described with reference to the drawings.

図1は、本発明の電子機器および電子機器におけるデータ保存方法の一実施例を示す構成図である。図において、前記図5と同様のものは同一符号を付して示す。6は電池電圧Vbを監視して、その電圧値に応じた検出出力Sdを発生する電池電圧検出部、7は警報用のブザーである。   FIG. 1 is a configuration diagram showing an embodiment of an electronic device and a data storage method in the electronic device of the present invention. In the figure, components similar to those in FIG. 6 is a battery voltage detector that monitors the battery voltage Vb and generates a detection output Sd according to the voltage value, and 7 is a buzzer for alarm.

図2は、表示部2における表示状態の一例を示す図である。図に示す表示例は、携帯型のpH計の表示画面を示すものである。図において、20は電池残量表示、21は主測定信号表示(pH値)、22は補助信号表示(温度)、23は単位表示である。
電池残量表示20は前記電池電圧検出部6の検出出力Sdに応じてその表示状態が変化するものである。
FIG. 2 is a diagram illustrating an example of a display state on the display unit 2. The display example shown in the figure shows a display screen of a portable pH meter. In the figure, 20 is a battery remaining amount display, 21 is a main measurement signal display (pH value), 22 is an auxiliary signal display (temperature), and 23 is a unit display.
The battery remaining amount display 20 changes its display state according to the detection output Sd of the battery voltage detection unit 6.

図3は、電池残量表示20におけるセグメント構成および各種の表示状態を示す図である。図に示すように、電池残量表示20は基本セグメント200、残量セグメント201、202、203により構成されており、残量セグメント201〜203の点灯状態により電池残量を表している。   FIG. 3 is a diagram showing a segment configuration and various display states in the battery remaining amount display 20. As shown in the figure, the battery remaining amount display 20 is composed of a basic segment 200 and remaining amount segments 201, 202, 203, and the remaining amount of the battery is indicated by the lighting state of the remaining amount segments 201-203.

図において、(a)はフル充電の状態を示すもので、全ての残量セグメント201〜203が点灯している。
ここで、電池電圧検出部6がVH、VL、Vgなる比較値を有し、
VH>VL>Vg
VH:動作に充分な電圧レベル
VL:充電が必要な電圧レベル
Vg:動作保証電圧(実際には、動作保証電圧Vgより若干高い電圧値)
であるとすると、
Vb>VH
の時に、(a)の表示状態となる。
In the figure, (a) shows the state of full charge, and all the remaining amount segments 201 to 203 are lit.
Here, the battery voltage detection unit 6 has comparison values VH, VL, and Vg,
VH>VL> Vg
VH: voltage level sufficient for operation VL: voltage level that requires charging Vg: operation guarantee voltage (actually a voltage value slightly higher than operation guarantee voltage Vg)
If
Vb> VH
At this time, the display state shown in FIG.

また、電池4がやや消耗して、
VH>=Vb>VL
となると、(b)に示すように、残量セグメント201、202が点灯した状態となる。
更に、電池4が消耗して、
VL>=Vb>Vg
となると、(c)に示すように、残量セグメント201のみが点灯した状態となる。この状態では、機器を長く使用することはできず、電池4の充電が必要となる。
Also, the battery 4 is slightly depleted,
VH> = Vb> VL
Then, as shown in (b), the remaining amount segments 201 and 202 are lit.
Furthermore, the battery 4 is exhausted,
VL> = Vb> Vg
Then, as shown in (c), only the remaining amount segment 201 is lit. In this state, the device cannot be used for a long time, and the battery 4 needs to be charged.

電池4がさらに消耗して、
Vg>=Vb
となると、(d)に示すように、全ての残量セグメント201〜203を消灯するとともに、基本セグメント200を点滅させて、電池切れであることを知らせる。また、必要に応じて、ブザー7を駆動する。さらに、この点滅表示の後、機器をシャットダウンさせる。
なお、本発明を適用するような携帯型測定器(pH計)においては、機器をシャットダウンさせる際に、現在の使用状態や実行中の処理内容を不揮発性メモリ3に退避させるようなバックアップ動作は行われない。
Battery 4 is further depleted,
Vg> = Vb
Then, as shown in (d), all the remaining segments 201 to 203 are turned off, and the basic segment 200 is blinked to notify that the battery is dead. Further, the buzzer 7 is driven as necessary. Further, after this blinking display, the device is shut down.
In a portable measuring instrument (pH meter) to which the present invention is applied, when the device is shut down, a backup operation for saving the current use state and the processing contents being executed to the nonvolatile memory 3 is not performed. Not done.

また、電池電圧検出部6における電池電圧Vbの監視は、常時行われるものではなく、タイマー(カウンタ)などを使用して、例えば、128秒に1回程度のインターバルで行われるものである。
すなわち、電池電圧Vbは急激に減少するようなものではないので、常時監視しておく必要はなく、このような所においても、消費電力の低減が図られている。
Further, the monitoring of the battery voltage Vb in the battery voltage detection unit 6 is not always performed, but is performed at intervals of about once every 128 seconds using a timer (counter) or the like.
That is, since the battery voltage Vb does not decrease rapidly, it is not necessary to constantly monitor the battery voltage Vb, and power consumption is reduced even in such a place.

図4は、不揮発性メモリ3に保存されたデータの並べ替えを行うデフラグ操作を実行する際の動作を示すフロー図である。測定に際して逐次取り込まれた測定データは、不揮発性メモリ3に保存されるが、後にデータの削除が行われた場合には、限られたメモリ領域を有効に使用するために、デフラグ操作が必要となる。
例えば、不揮発性メモリ3の記憶容量を3KBとすると、デフラグ操作に要する時間は最大1分〜2分となる。
このため、電池4が動作保証電圧Vgぎりぎりの大きさまで消耗した状態からデフラグ操作を開始してしまうと、デフラグ操作中に電池電圧Vbが動作保証電圧Vgまで低下してしまい、機器がシャットダウンしてしまうことがある。
FIG. 4 is a flowchart showing an operation when executing a defragmentation operation for rearranging data stored in the nonvolatile memory 3. The measurement data sequentially acquired during the measurement is stored in the nonvolatile memory 3, but if the data is deleted later, a defragmentation operation is required to use the limited memory area effectively. Become.
For example, assuming that the storage capacity of the nonvolatile memory 3 is 3 KB, the time required for the defragmentation operation is a maximum of 1 to 2 minutes.
For this reason, if the defragmentation operation is started from the state where the battery 4 is exhausted to the level of the operation guarantee voltage Vg, the battery voltage Vb drops to the operation guarantee voltage Vg during the defragmentation operation, and the device shuts down. It may end up.

そこで、図4に示す如く、デフラグ操作の開始が指示されると(S1)、電池電圧検出部6により電池電圧Vbを所定の基準値Vdと比較する(S2)。電池電圧検出部6は制御部1からの要求に応じて、電池電圧Vbと所定の基準値Vdとの比較を行う。   Therefore, as shown in FIG. 4, when the start of the defragmentation operation is instructed (S1), the battery voltage detector 6 compares the battery voltage Vb with a predetermined reference value Vd (S2). The battery voltage detector 6 compares the battery voltage Vb with a predetermined reference value Vd in response to a request from the controller 1.

基準値Vdは動作保証電圧Vgより大きく、しかもデフラグ操作を実行するために必要な動作時間に相当する電圧値の余裕を持った値に設定されており、
Vb>=Vd
の時には、デフラグ操作を実行させ(S3)、
Vb<Vd
の時には、デフラグ操作を実施せず、この状態をブザー7で知らせるとともに、表示を行う(S4)。
The reference value Vd is set to a value that is larger than the operation guarantee voltage Vg and that has a margin of a voltage value corresponding to an operation time necessary for executing the defragmentation operation.
Vb> = Vd
In this case, the defragmentation operation is executed (S3),
Vb <Vd
At this time, the defragmentation operation is not performed, and this state is notified by the buzzer 7 and is displayed (S4).

すなわち、デフラグ操作の開始時点において、電池電圧Vbが基準値Vd以上の値であれば、デフラグ操作の実行中に電池電圧Vbが動作保証電圧Vgまで低下してしまうことはなく、デフラグ操作が中断されてしまうことがない。   That is, if the battery voltage Vb is equal to or higher than the reference value Vd at the start of the defragmentation operation, the battery voltage Vb does not drop to the operation guarantee voltage Vg during the execution of the defragmentation operation, and the defragmentation operation is interrupted. It will never be done.

このように、不揮発性メモリ3に対してデフラグ操作を実行する際には、予め電池4の電池電圧Vbを検出して、この電池電圧Vbが所定の基準値Vdより大きい時にのみデフラグ操作を実行するようにすると、デフラグ操作のように長時間にわたって不揮発性メモリ3にデータを保存するような処理を実行した場合にも、処理の実行中に電池4が消耗して、機器の動作が停止されてしまうことがなく、電池電圧Vbの低下に対してバックアップ機能を有しない電子機器であっても、保存中のデータが破壊されてしまうことがない。   As described above, when performing the defragmentation operation on the nonvolatile memory 3, the battery voltage Vb of the battery 4 is detected in advance, and the defragmentation operation is performed only when the battery voltage Vb is greater than the predetermined reference value Vd. As a result, even when a process for storing data in the nonvolatile memory 3 for a long time, such as a defragmentation operation, is performed, the battery 4 is consumed during the process and the operation of the device is stopped. Even if the electronic device does not have a backup function against the decrease in the battery voltage Vb, the data being stored is not destroyed.

ここで、測定データの保存のような通常のデータ保存動作は、不揮発性メモリ3に対するアクセス時間も短く、データ保存の実行中に、電池切れによって機器が動作不能となってしまうことはないので、上記のような予めの電池電圧Vbの確認は行われない。
例えば、データの保存中に、電池電圧Vbが動作保証電圧Vgまで低下したとすると、このデータ保存動作の終了を待って、機器のシャットダウンが行われることとなるが、この時の待ち時間はごく僅かであり、この間に電池電圧Vbが動作不能な電圧まで低下してしまうことはない。
Here, the normal data storage operation such as measurement data storage also has a short access time to the non-volatile memory 3, and the device does not become inoperable due to running out of battery during the data storage. The confirmation of the battery voltage Vb as described above is not performed.
For example, if the battery voltage Vb drops to the guaranteed operation voltage Vg during data storage, the device is shut down after the end of the data storage operation. The battery voltage Vb does not drop to an inoperable voltage during this period.

なお、上記の説明においては、不揮発性メモリ3に対するデータ保存動作の一例として、不揮発性メモリ3に保存されたデータの並べ替えを行うデフラグ操作を例示したが、予め電池電圧Vbの大きさを確認すべきデータ保存動作は、これに限られるものではなく、長時間にわたって不揮発性メモリ3にデータを保存するような処理は全て対象となる。   In the above description, the defragmentation operation for rearranging the data stored in the nonvolatile memory 3 is illustrated as an example of the data storage operation for the nonvolatile memory 3, but the magnitude of the battery voltage Vb is confirmed in advance. The data storage operation to be performed is not limited to this, and all processes that store data in the nonvolatile memory 3 for a long time are targeted.

また、上記説明においては、本発明を適用する電子機器の例として、携帯型測定器(pH計)を例示したが、電子機器の形態はこれに限られるものではない。   In the above description, a portable measuring instrument (pH meter) is illustrated as an example of an electronic apparatus to which the present invention is applied. However, the form of the electronic apparatus is not limited to this.

図1は本発明の電子機器および電子機器におけるデータ保存方法の一実施例を示す構成図。FIG. 1 is a configuration diagram showing an embodiment of an electronic device and a data storage method in the electronic device of the present invention. 図2は表示部2における表示状態の一例を示す図。FIG. 2 is a diagram illustrating an example of a display state on the display unit 2. 図3は電池残量表示20におけるセグメント構成および各種の表示状態を示す図。FIG. 3 is a diagram showing a segment configuration and various display states in the battery remaining amount display 20. 図4は不揮発性メモリ3に保存されたデータの並べ替えを行うデフラグ操作を実行する際の動作を示すフロー図。FIG. 4 is a flowchart showing an operation when a defragmentation operation for rearranging data stored in the nonvolatile memory 3 is executed. 図5は従来の電子機器の一例を示す構成図。FIG. 5 is a configuration diagram illustrating an example of a conventional electronic device.

符号の説明Explanation of symbols

1 制御部(CPU)
2 表示部
20 電池残量表示
21 主測定信号表示
22 補助信号表示
23 単位表示
3 不揮発性メモリ(EEPROM)
4 電池
5 電圧低下検出部
6 電池電圧検出部
7 ブザー
1 Control unit (CPU)
2 Display 20 Battery level display 21 Main measurement signal display 22 Auxiliary signal display 23 Unit display 3 Non-volatile memory (EEPROM)
4 Battery 5 Voltage drop detector 6 Battery voltage detector 7 Buzzer

Claims (9)

電池により動作するとともに、データを保存する不揮発性メモリを有する電子機器において、前記電池における電池電圧を所定の基準値と比較する電池電圧検出部を具備し、前記不揮発性メモリに対して特定のデータ保存動作を実行する際には予め前記電池電圧検出部の検出出力を確認することを特徴とする電子機器。   In an electronic device that is operated by a battery and has a nonvolatile memory for storing data, the electronic device includes a battery voltage detection unit that compares a battery voltage in the battery with a predetermined reference value, and specific data for the nonvolatile memory. An electronic apparatus characterized by confirming a detection output of the battery voltage detection unit in advance when executing a storage operation. 前記電池電圧検出部は、要求に応じて電池電圧と所定の基準値とを比較することを特徴とする請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the battery voltage detection unit compares the battery voltage with a predetermined reference value according to a request. 前記特定のデータ保存動作は、前記不揮発性メモリに保存されたデータの並べ替えを行うデフラグ操作であることを特徴とする請求項1または2に記載の電子機器。   The electronic device according to claim 1, wherein the specific data storage operation is a defragmentation operation for rearranging data stored in the nonvolatile memory. 前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧より大きな値に設定されたことを特徴とする請求項1乃至3のいずれかに記載の電子機器。   The electronic device according to claim 1, wherein the reference value for comparing the battery voltages is set to a value larger than an operation guarantee voltage in the electronic device. 前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧に対して、前記特定のデータ保存動作を実行するために必要な動作時間に相当する電圧値の余裕を持った値に設定されたことを特徴とする請求項4に記載の電子機器。   The reference value for comparing the battery voltage is set to a value having a margin of a voltage value corresponding to an operation time necessary for executing the specific data storage operation with respect to an operation guarantee voltage in the electronic device. The electronic device according to claim 4, wherein 電池により駆動される電子機器に適用され、不揮発性メモリにデータを保存するデータ保存方法において、前記不揮発性メモリに対して特定のデータ保存動作を実行する際には、前記電池の電池電圧を検出して、この電池電圧が所定の基準値より大きい時にのみ前記データ保存動作を実行することを特徴とする電子機器におけるデータ保存方法。   In a data storage method that is applied to an electronic device driven by a battery and stores data in a nonvolatile memory, the battery voltage of the battery is detected when a specific data storage operation is performed on the nonvolatile memory. The data storage method in the electronic device is characterized in that the data storage operation is executed only when the battery voltage is greater than a predetermined reference value. 前記特定のデータ保存動作は、前記不揮発性メモリに保存されたデータの並べ替えを行うデフラグ操作であることを特徴とする請求項6に記載の電子機器におけるデータ保存方法。   The data storage method in the electronic device according to claim 6, wherein the specific data storage operation is a defragmentation operation for rearranging data stored in the nonvolatile memory. 前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧より大きな値に設定されたことを特徴とする請求項6または7に記載の電子機器におけるデータ保存方法。   8. The data storage method in the electronic device according to claim 6, wherein the reference value for comparing the battery voltages is set to a value larger than an operation guarantee voltage in the electronic device. 前記電池電圧を比較する基準値は、当該電子機器における動作保証電圧に対して、前記特定のデータ保存動作を実行するために必要な動作時間に相当する電圧値の余裕を持った値に設定されたことを特徴とする請求項8に記載の電子機器におけるデータ保存方法。
The reference value for comparing the battery voltage is set to a value having a margin of a voltage value corresponding to an operation time necessary for executing the specific data storage operation with respect to an operation guarantee voltage in the electronic device. The data storage method in the electronic device according to claim 8, wherein:
JP2004198792A 2004-07-06 2004-07-06 Electronic apparatus and its data storage method Pending JP2006025473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004198792A JP2006025473A (en) 2004-07-06 2004-07-06 Electronic apparatus and its data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004198792A JP2006025473A (en) 2004-07-06 2004-07-06 Electronic apparatus and its data storage method

Publications (1)

Publication Number Publication Date
JP2006025473A true JP2006025473A (en) 2006-01-26

Family

ID=35798328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004198792A Pending JP2006025473A (en) 2004-07-06 2004-07-06 Electronic apparatus and its data storage method

Country Status (1)

Country Link
JP (1) JP2006025473A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007233642A (en) * 2006-02-28 2007-09-13 Toshiba Corp Information processor and method for controlling it
JP2008204935A (en) * 2007-02-16 2008-09-04 Neotec Semiconductor Ltd Battery management system chip having function flexibly expanding control rule

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007233642A (en) * 2006-02-28 2007-09-13 Toshiba Corp Information processor and method for controlling it
JP2008204935A (en) * 2007-02-16 2008-09-04 Neotec Semiconductor Ltd Battery management system chip having function flexibly expanding control rule

Similar Documents

Publication Publication Date Title
US6437540B2 (en) Battery pack
JP4111890B2 (en) Uninterruptible power system
US8041977B2 (en) Notebook battery replacement time-saving method and battery detector thereof
JP4973112B2 (en) A system comprising a charging device and a storage battery state detection device
JP2007230398A (en) Device and method of monitoring battery
JP2012226410A (en) Battery control system, battery module, and electronic apparatus
JP2015217911A (en) Electronic control apparatus
JPH10164764A (en) Battery capacity monitoring method
US9836110B2 (en) Apparatus, systems and methods for learning a critical voltage of a microprocessor control unit
JP5254732B2 (en) Electronics
JP2006025473A (en) Electronic apparatus and its data storage method
JPH0895682A (en) Electronic equipment
JP2011091940A (en) Battery voltage monitoring method
JP4682725B2 (en) Portable information terminal
JP4811947B2 (en) Electronics
JP5165929B2 (en) Proximity sensor with self-diagnosis function
JP5115409B2 (en) centrifuge
JP4577502B2 (en) Battery control circuit and electronic device provided with the battery control circuit
JP2017026452A (en) Deterioration determination apparatus of battery
JP4702343B2 (en) Mobile terminal device
JPH112670A (en) Device for predicting service life of secondary battery
JP2008020970A (en) Time data management system and method for cpu module
JP2004362037A (en) Information processor and power control method for the same
JP3187906B2 (en) Power supply circuit
JP2017004259A (en) Microcontroller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070413

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080312

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080811