JPH0683499A - Battery power source memory protecting method - Google Patents

Battery power source memory protecting method

Info

Publication number
JPH0683499A
JPH0683499A JP4236690A JP23669092A JPH0683499A JP H0683499 A JPH0683499 A JP H0683499A JP 4236690 A JP4236690 A JP 4236690A JP 23669092 A JP23669092 A JP 23669092A JP H0683499 A JPH0683499 A JP H0683499A
Authority
JP
Japan
Prior art keywords
battery
voltage
power source
ram
dummy
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
JP4236690A
Other languages
Japanese (ja)
Inventor
Yasushi Yabe
康司 矢部
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP4236690A priority Critical patent/JPH0683499A/en
Publication of JPH0683499A publication Critical patent/JPH0683499A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the storage contents of a memory from changing owing to the driving of a heavy load by saving the storage contents in a RAM, then measuring a battery voltage while a dummy operating means which is driven by a battery is placed in dummy operation, and stopping the operation of electronic equipment if the battery voltage drops below a specific voltage value. CONSTITUTION:The battery 1 is provided as the power source of the electronic equipment and the voltage state of the battery 1 is monitored by a CPU 7 through a source voltage detecting circuit 2. For example, the saving process for protecting the storage contents of the RAM 9 temporarily is performed before an optical communication and the data stored in the RAM 9 are protected so that they can be neither selected nor written. Then an LED 12 for transmission as the dummy means is turned ON to increase a current. It is checked whether or not the voltage drops in the source voltage state; when the voltage drops, the set is turned OFF and when not, the LED 12 for transmission is turned OFF and the optical communication is made.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は例えばプリンタ付電子式
卓上計算機等の電池を電源とする電子機器におけるメモ
リの記憶内容の保護方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of protecting the contents stored in a memory of an electronic device such as an electronic desk calculator with a printer which uses a battery as a power source.

【0002】[0002]

【従来の技術】図2に電池を電源とする電子機器の1例
についてそのブロック図を示す。CPU7はROM8に
内蔵されているプログラムに従い動作しており、CPU
7に対する指示は入力装置10によって行われる。RA
M9にはデータが格納されており、動作結果等は液晶表
示装置4に表示される。またこの装置はICカード6に
よってプログラム及びデータ等を扱うこともできる。さ
らに、外部機器とはシリアル入出力ポート11あるいは
LED12によってデータの交換を行う。このような構
成の電子機器の電源として電池1が備えられており、重
負荷あるいは軽負荷を電源に導入接続する電源スイッチ
5が設けられている。この電池の電圧状態は、CPU7
により電源電圧検出回路2を通じてモニタできるように
なっている。この電源電圧検出回路2には、例えば特開
昭55−116270に開示されている電池電圧検出装
置等が用いられている。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of an electronic device using a battery as a power source. The CPU 7 operates according to a program stored in the ROM 8,
The input device 10 gives an instruction to the device 7. RA
Data is stored in M9, and the operation result and the like are displayed on the liquid crystal display device 4. This device can also handle programs, data, etc. by the IC card 6. Furthermore, data is exchanged with an external device through the serial input / output port 11 or the LED 12. A battery 1 is provided as a power source for an electronic device having such a configuration, and a power switch 5 for introducing and connecting a heavy load or a light load to the power source is provided. This battery voltage status is CPU7
Thus, it can be monitored through the power supply voltage detection circuit 2. For the power supply voltage detection circuit 2, for example, the battery voltage detection device disclosed in JP-A-55-116270 is used.

【0003】ここで、従来例としてこのような電池を電
源とする電子機器の電圧の低下をチェックする方法につ
いて、最も負荷の重い光通信を行う場合を例にあげて説
明する。図3はその方法を説明するためのフローチャー
トである。
Here, as a conventional example, a method of checking the voltage drop of an electronic device using such a battery as a power source will be described by way of an example in which optical communication with the heaviest load is performed. FIG. 3 is a flow chart for explaining the method.

【0004】まず、図2に示したRAM9から通信すべ
きデータファイルを選択し、加工できるようファイルを
開く(STEP.31)。次に、このデータファイルからのデー
タ群から 1データを通信できる形に加工する(STEP.3
2)。その後、1データを通信する(STEP.33)。この時、
電圧の低下をチェックする。電圧の低下があれば、(STE
P.37) の工程に進む。一方、電圧の低下がなければ、(S
TEP.35) の工程に進む(STEP.34) 。ここで電圧の低下が
なければ、データが終了か否かをチェックし、終了して
いれば(STEP.36) の工程に進む。また、終了していなけ
れば、(STEP.32)の工程に戻る(STEP.35) 。データが終
了した場合、通信すべきデータファイルを閉じ、光通信
を終了する(STEP.36) 。
First, a data file to be communicated is selected from the RAM 9 shown in FIG. 2 and the file is opened for processing (STEP.31). Next, process one data from the data group from this data file into a communicable form (STEP.3
2). After that, one data is communicated (STEP.33). At this time,
Check the voltage drop. If there is a voltage drop, (STE
Proceed to the process of P.37). On the other hand, if there is no voltage drop, (S
Proceed to the process of TEP.35) (STEP.34). If the voltage does not drop here, it is checked whether the data is completed, and if it is completed, the process proceeds to (STEP.36). If not completed, return to the step (STEP.32) (STEP.35). When the data is completed, the data file to be communicated is closed and the optical communication is terminated (STEP.36).

【0005】また、電圧が低下している場合、通信すべ
きデータファイルを閉じ(STEP.37)、セットオフとする
(STEP.38) 。
If the voltage is low, the data file to be communicated is closed (STEP.37) and set off.
(STEP.38).

【0006】[0006]

【発明が解決しようとする課題】ところで、従来の技術
では電圧の低下をチェックするのは、RAMに格納され
ているファイルを開いた後であるため、リチウム電池等
内部インピーダンスの高い電池でLED等をドライブし
た場合等、電圧が急激に低下するためシステムが動作で
きる電圧を下回ってしまう可能性があり、低下している
と判断したときにはシステムが暴走している可能性があ
り、その後のファイルを閉じる処理が正常に行われない
場合も生じていた。
By the way, in the prior art, the voltage drop is checked only after the file stored in the RAM is opened, so that the LED or the like can be used with a battery having a high internal impedance such as a lithium battery. The voltage may drop sharply when you drive the system, and the voltage may drop below the voltage at which the system can operate.If it is determined that the voltage has dropped, the system may be running out of control. There was also a case where the closing process was not performed normally.

【0007】また、別の従来技術として重負荷を駆動す
る前に、その重負荷と同等のダミー負荷を設け、そのダ
ミー負荷を駆動し、電圧チェックを行う方式があるが、
部品点数が多くなりコストアップをもたらす要因となっ
ていた。
As another conventional technique, there is a system in which a dummy load equivalent to the heavy load is provided before the heavy load is driven, and the dummy load is driven to check the voltage.
The number of parts was large, which was a factor of increasing costs.

【0008】これらの従来例では電圧低下をCPUがチ
ェックするが、この電圧の低下を検出回路からの割込入
力とする場合でも上記同様の問題が考えられる。つま
り、LEDをドライブして電圧が低下し、CPUに割込
みがかかったとしてもファイルを開き、データを加工し
た後であるため、その後のRAM内容が保証できない場
合がある。
In these conventional examples, the CPU checks the voltage drop, but the same problem as described above can be considered when the voltage drop is used as an interrupt input from the detection circuit. In other words, even if the voltage is lowered by driving the LED and the CPU is interrupted, since the file has been opened and the data has been processed, the RAM contents thereafter may not be guaranteed.

【0009】本発明は上記の問題点を解決するためにな
されたものであり、重負荷の駆動によってメモリ内の記
憶内容が変化することを防ぐことができ、また部品の点
数を増やすことなく、容易に行うことができ、しかもコ
ストが上昇することがない電池電源メモリ保護方法を提
供することを目的とする。
The present invention has been made to solve the above problems, and can prevent the contents stored in the memory from being changed by driving a heavy load, and can increase the number of parts without increasing the number of parts. It is an object of the present invention to provide a battery-powered memory protection method that can be easily performed and that does not increase the cost.

【0010】[0010]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の電池電源メモリ保護方法は、入力部、出
力部、ROM、RAM及びCPUを備えた電子機器を、
電池を駆動電源として駆動させた後、重負荷をその駆動
電源に導入する前に、上記RAM内の記憶内容の退避処
理を行い、その後上記電池によって駆動するダミー動作
手段にダミー動作を行わせた状態で、その電池の電圧を
測定し、その測定結果が所定の電圧値よりも低下してい
る場合、上記電子機器の動作を停止することによって特
徴付けられている。
In order to achieve the above object, a battery power source memory protection method of the present invention provides an electronic device including an input section, an output section, a ROM, a RAM and a CPU.
After the battery was driven as the driving power source, before the heavy load was introduced into the driving power source, the stored contents in the RAM were saved, and then the dummy operating means driven by the battery performed the dummy operation. In this state, the voltage of the battery is measured, and when the measurement result is lower than a predetermined voltage value, the operation of the electronic device is stopped.

【0011】[0011]

【作用】RAM内のデータファイルを開く前に、メモリ
内の記憶内容の退避処理がなされ、その後ダミー動作を
行って電池の電圧の低下があるか否かの判断を行い、低
下がある場合には、次の動作を行わず、セットオフがな
される。
Before the data file in the RAM is opened, the contents stored in the memory are saved, and then a dummy operation is performed to determine whether or not the battery voltage has dropped. Is set off without performing the next operation.

【0012】[0012]

【実施例】まず、電池電圧の負荷による電圧の変動すな
わち、電池の放電特性を図4に示す。
EXAMPLE First, FIG. 4 shows the fluctuation of the voltage due to the load of the battery voltage, that is, the discharge characteristic of the battery.

【0013】時刻T1 から軽負荷のときは、L1 のカー
ブに示す特性となる。一方、時刻T 1 から重負荷とする
と、電圧はV1 からV2 に急激に低下する特性を示す。
すなわち、L1 よりも勾配がきつく、L2 のカーブに示
す特性を示す。
Time T1From light load to L1Car
It has the characteristics shown in B. On the other hand, time T 1From heavy load
And the voltage is V1To V2It shows the characteristic of rapidly decreasing.
That is, L1Steeper than L, L2Shown in the curve
Shows the characteristics.

【0014】重負荷駆動中、時刻T2 に軽負荷としても
1 に達することができず、L3 のカーブとなり、時刻
3 において再び重負荷を駆動すると再び急激に電圧が
低下する。図4においてこの場合は(b−c−d−e)
の経路をたどる。なお、従来例では図3のSTEP.34 の判
断でYESの場合、(b−c)の経路となり、電圧はV
3 となるが、この電圧値が暴走レベルとなる可能性があ
る。
During heavy load driving, even if a light load is applied at time T 2 , L 1 cannot be reached, and a curve of L 3 is formed. When the heavy load is driven again at time T 3 , the voltage drops sharply again. In this case in FIG. 4, (b-c-d-e)
Follow the route. In addition, in the conventional example, when the determination in STEP.34 of FIG. 3 is YES, the route is (bc), and the voltage is V
3 become, but may this voltage value becomes the runaway level.

【0015】こうした放電特性を有する電池を電源とす
る電子機器の構成は、先に説明した図2のブロック図と
同様である。本発明実施例はこの電子機器に適用したも
のであり、以下に詳細に説明する。なお、ここではこの
電子機器の構成については先に説明したものと同様であ
るので、その説明は省略する。
The structure of an electronic device using a battery having such a discharge characteristic as a power source is similar to that of the block diagram of FIG. 2 described above. The embodiment of the present invention is applied to this electronic device and will be described in detail below. Since the configuration of this electronic device is the same as that described above, the description thereof will be omitted.

【0016】図1は本発明実施例を説明するためのフロ
ーチャートである。ここでは、本発明実施例として電池
を電源とする電子機器の電圧の低下をチェックする方法
について、最も負荷の重い光通信を行う場合を例にあげ
て説明する。
FIG. 1 is a flow chart for explaining the embodiment of the present invention. Here, a method of checking a voltage drop of an electronic device using a battery as a power source will be described as an embodiment of the present invention by taking as an example a case where optical communication with the heaviest load is performed.

【0017】まず、光通信を実際に行う前に一旦RAM
内の記憶内容を保護するための退避処理を行う。この退
避処理ではRAMに格納されているデータのセレクトま
たは書込みができないようにプロテクトする(STEP.1)。
次に、ダミー手段として送信用LEDをを用い、この送
信用LEDを点灯させ、電流を増加させる。このいわゆ
るダミー動作は本実施例の場合、光通信を想定したもの
であり、次に行う重負荷駆動に対応できるか否かが判断
される(STEP.2)。そして、この電源電圧状態において、
電圧が低下しているか否かをチェックする(STEP.3)。こ
こで電圧が低下していれば、直ちにセットをオフさせる
(STEP.10) 。一方、電圧が低下していない場合は送信用
LEDを消灯し(STEP.4)、通信するファイルを開く(STE
P.5)。
First, before actually performing optical communication, the RAM is temporarily
Save processing is performed to protect the stored contents in the storage. In this saving process, data stored in the RAM is protected so that it cannot be selected or written (STEP.1).
Next, the transmitting LED is used as the dummy means, and the transmitting LED is turned on to increase the current. In the case of the present embodiment, this so-called dummy operation is based on the assumption of optical communication, and it is determined whether or not it is possible to support the heavy load driving to be performed next (STEP.2). And in this power supply voltage state,
Check whether the voltage has dropped (STEP.3). If the voltage drops here, turn off the set immediately.
(STEP.10). On the other hand, when the voltage has not dropped, the LED for transmission is turned off (STEP.4) and the file to be communicated is opened (STE.
P.5).

【0018】次に、このデータファイルからのデータ群
から 1データを通信できる形に加工する(STEP.6) 。
その後、1データを通信する(STEP.7) 。その後、デー
タが終了か否かをチェックし、終了していれば(STEP.9)
の工程に進み、また、終了していなければ、(STEP.6)
の工程に戻る(STEP.8)。データが終了した場合、通信す
べきデータファイルを閉じ、光通信を終了する(STEP.
9)。
Next, one data is processed from the data group from this data file into a communicable form (STEP.6).
After that, one data is communicated (STEP.7). After that, check if the data is finished and if it is finished (STEP.9)
If not completed, proceed to the process of (STEP.6)
Return to step (STEP.8). When the data is completed, the data file to be communicated is closed and the optical communication is terminated (STEP.
9).

【0019】この本発明実施例では、送信用LEDのダ
ミー点灯により電圧が急激に低下し、システムが暴走し
た場合でも、(STEP.1)における退避処理によってメモリ
内の記憶内容の保護処理を行っているため、このような
暴走によりメモリ内の記憶内容が変化することはない。
In this embodiment of the present invention, even if the voltage suddenly drops due to the dummy lighting of the transmitting LED, and the system goes out of control, the saving process in (STEP.1) protects the stored contents in the memory. Therefore, such runaway does not change the stored contents in the memory.

【0020】このように、重負荷を駆動する前にメモリ
保護処理、送信用LEDのダミー駆動及び電圧チェック
を行うことにより、メモリ内の記憶内容の保護が可能と
なる。
As described above, by performing the memory protection process, the dummy drive of the LED for transmission, and the voltage check before driving the heavy load, the stored contents in the memory can be protected.

【0021】[0021]

【発明の効果】以上説明したように、本発明の電池電源
メモリ保護方法によれば、RAM内のデータファイルを
開く前に、メモリ内の記憶内容の退避処理がなされ、そ
の後ダミー動作を行って電池の電圧の低下があるか否か
の判断を行い、低下がある場合には、次の動作を行わ
ず、セットオフがなされるようにしたので、重負荷の駆
動によってメモリ内の記憶内容の変化を防ぐことができ
る。またこの方法を実現するにあたって、部品の点数を
増やすことなく、容易に行うことができコストも上昇す
ることがない。
As described above, according to the battery power source memory protection method of the present invention, the stored contents in the memory are saved before the data file in the RAM is opened, and then the dummy operation is performed. It is determined whether or not the battery voltage has dropped. If there is a drop, the next operation is not performed and the set-off is performed. You can prevent change. Further, in realizing this method, it can be easily performed without increasing the number of parts, and the cost does not increase.

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

【図1】本発明実施例を説明するためのフローチャートFIG. 1 is a flowchart for explaining an embodiment of the present invention.

【図2】本発明実施例に適用される電子機器のブロック
FIG. 2 is a block diagram of an electronic device applied to an embodiment of the present invention.

【図3】従来例を説明するためのフローチャートFIG. 3 is a flowchart for explaining a conventional example.

【図4】電池の放電特性の説明図FIG. 4 is an explanatory diagram of discharge characteristics of a battery.

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

1・・・・電池 2・・・・電源電圧検出回路 4・・・・液晶表示装置 7・・・・CPU 8・・・・ROM 9・・・・RAM 10・・・・入力装置 12・・・・LED 1 ... Battery 2 ... Power supply voltage detection circuit 4 ... Liquid crystal display device 7 ... CPU 8 ... ROM 9 ... RAM 10 ... Input device 12 ... ... LED

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力部、出力部、ROM、RAM及びC
PUを備えた電子機器を、電池を駆動電源として駆動さ
せた後、重負荷をその駆動電源に導入する前に、上記R
AM内の記憶内容の退避処理を行い、その後上記電池に
よって駆動するダミー動作手段にダミー動作を行わせた
状態で、その電池の電圧を測定し、その測定結果が所定
の電圧値よりも低下している場合、上記電子機器の動作
を停止することを特徴とする電池電源メモリ保護方法。
1. An input unit, an output unit, a ROM, a RAM and a C.
After driving an electronic device equipped with a PU with a battery as a driving power source, and before introducing a heavy load into the driving power source, the R
The stored voltage in the AM is saved, and then the voltage of the battery is measured with the dummy operating means driven by the battery performing the dummy operation, and the measurement result is lower than the predetermined voltage value. If so, the operation of the electronic device is stopped.
JP4236690A 1992-09-04 1992-09-04 Battery power source memory protecting method Pending JPH0683499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4236690A JPH0683499A (en) 1992-09-04 1992-09-04 Battery power source memory protecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4236690A JPH0683499A (en) 1992-09-04 1992-09-04 Battery power source memory protecting method

Publications (1)

Publication Number Publication Date
JPH0683499A true JPH0683499A (en) 1994-03-25

Family

ID=17004331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4236690A Pending JPH0683499A (en) 1992-09-04 1992-09-04 Battery power source memory protecting method

Country Status (1)

Country Link
JP (1) JPH0683499A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000171496A (en) * 1998-12-03 2000-06-23 Toshiba Corp Electronic device
JP2012116070A (en) * 2010-11-30 2012-06-21 Brother Industries Ltd Printing device
JP2012210743A (en) * 2011-03-30 2012-11-01 Brother Industries Ltd Printing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000171496A (en) * 1998-12-03 2000-06-23 Toshiba Corp Electronic device
JP2012116070A (en) * 2010-11-30 2012-06-21 Brother Industries Ltd Printing device
JP2012210743A (en) * 2011-03-30 2012-11-01 Brother Industries Ltd Printing apparatus

Similar Documents

Publication Publication Date Title
US5923099A (en) Intelligent backup power controller
KR950001418B1 (en) Pop up control system for portable computer having setup function and popup function
RU96107418A (en) PERFORMING THE DATA PROCESSING INSTRUCTIONS
US20210021136A1 (en) Dual-battery charging and discharging method and apparatus, terminal, and storage medium
JPH113151A (en) Hibernation control method for information processor and battery driven electronic equipment
JPH04178114A (en) Electronic appliance
US4849919A (en) System wake up circuit for computer
JPH0683499A (en) Battery power source memory protecting method
JPH0612376A (en) Portable electronic device
US20060061331A1 (en) Apparatus and method for controlling system operation based on battery state
US6256781B1 (en) External reset and data transfer method and apparatus for a portable electronic device
US5773960A (en) Electronic equipment detecting battery voltage to control power supply
CN107491304A (en) A kind of method that SIU driving functions are realized based on IPSM and IO control panels
JPS60205764A (en) Check system of memory pack
JP3404664B2 (en) Terminal device
JP3224262B2 (en) Electronic equipment and control method
KR102454517B1 (en) Apparatus for managing wake-up function of vehicle and method thereof
CN101572981A (en) Navigation light control system and control method thereof
JPH087930A (en) Power supply monitor device
JPH0659901A (en) Program loading system
JPH11102294A (en) Controller for elevator
JPH04172515A (en) Data reader
JPH07117940A (en) Control device for elevator
KR890004512B1 (en) Printing control method for memory typewriter
JPH09120471A (en) Automatic vending machine

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees