JPH0519030A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPH0519030A
JPH0519030A JP3168581A JP16858191A JPH0519030A JP H0519030 A JPH0519030 A JP H0519030A JP 3168581 A JP3168581 A JP 3168581A JP 16858191 A JP16858191 A JP 16858191A JP H0519030 A JPH0519030 A JP H0519030A
Authority
JP
Japan
Prior art keywords
battery
voltage
electronic device
printer
reference 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.)
Granted
Application number
JP3168581A
Other languages
Japanese (ja)
Other versions
JP2881047B2 (en
Inventor
Masahiro Rachi
正浩 良知
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3168581A priority Critical patent/JP2881047B2/en
Publication of JPH0519030A publication Critical patent/JPH0519030A/en
Application granted granted Critical
Publication of JP2881047B2 publication Critical patent/JP2881047B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Tests Of Electric Status Of Batteries (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

PURPOSE:To enable capacity of a battery to be consumed effectively without any waste and a drive time of an electronic equipment which can be driven to be extended in an electronic equipment which has a battery as a power supply and supplies power to each portion of the electronic equipment through a power-supply voltage stabilization circuit from this battery. CONSTITUTION:A control portion 8 detects output voltages VB and VP of a battery power supply portion 1 and a power-supply voltage stabilization circuit 5 with a voltage detection circuit 6, compares each reference voltage which is stored in a memory M2, and then performs specified processings such as an alarm output for replacing the battery and operation disable. Detection can be performed highly accurately by selecting which of the output voltages VB and VP is compared according to a drive state of, for example, a printer 7. Also, the detection can be performed highly accurately by setting a reference voltage of an output voltage of the stabilization circuit 5 based on an actual detection value of the output voltage, thus enabling the reference voltage to be set to a smaller value.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は電子機器に関し、特に電
池を電源として駆動される電子機器に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device, and more particularly to an electronic device driven by a battery as a power source.

【0002】[0002]

【従来の技術】従来より、電卓など電池を電源として駆
動される電子機器において、電池の出力電圧を検出し、
これが所定の基準電圧以下になった場合に電池の交換を
使用者に促す警告情報を出力したり、電子機器の動作を
禁止したりする技術が知られている。動作を禁止する技
術は、メモリ機能付きの電子機器において記憶データの
消失を防止するために不可欠である。
2. Description of the Related Art Conventionally, in an electronic device driven by a battery such as a calculator, the output voltage of the battery is detected,
There is known a technique of outputting warning information prompting the user to replace the battery when the voltage becomes lower than a predetermined reference voltage, or prohibiting the operation of the electronic device. The technique of prohibiting the operation is indispensable for preventing loss of stored data in an electronic device with a memory function.

【0003】[0003]

【発明が解決しようとする課題】ところが、上記のよう
に電池の出力電圧を検出する構成では、機器の構成にプ
リンタなどのピーク電流が大きい負荷特性を有するもの
が含まれる場合、電池電圧を検出する時にプリンタなど
が駆動中であると電圧検出の読み取り誤差が生じる。そ
して、この誤差を考慮して上記の基準電圧の設定が高目
になるため、電池にまだ電源供給の余力があるにも拘ら
ず、電池交換の警告を出力して電池が無駄に交換された
り、電子機器の動作を禁止して電子機器を使用できなく
なってしまったりするという欠点があった。
However, in the configuration for detecting the output voltage of the battery as described above, when the configuration of the device includes a printer or the like having a load characteristic with a large peak current, the battery voltage is detected. If a printer or the like is driven at the time of reading, a reading error of voltage detection occurs. In consideration of this error, the setting of the above reference voltage becomes high, so the battery replacement warning is output and the battery is replaced unnecessarily even though the battery still has power supply capacity. However, there is a drawback that the operation of the electronic device is prohibited and the electronic device cannot be used.

【0004】そこで本発明の課題は、この種の電子機器
において上記のような欠点を解消し、電池の容量をより
無駄無く有効に消費でき、電池で駆動できる電子機器の
駆動時間をより長くできる構成を提供することにある。
Therefore, the object of the present invention is to solve the above-mentioned drawbacks in this kind of electronic equipment, to effectively consume the capacity of the battery without waste, and to prolong the driving time of the electronic equipment which can be driven by the battery. To provide a configuration.

【0005】[0005]

【課題を解決するための手段】上記の課題を解決するた
め、本発明によれば、電池を電源とし、該電池から電源
電圧安定化回路を介して電子機器各部への電源供給を行
なう電子機器において、前記電池と安定化回路の出力電
圧を検出する検出手段と、前記電池または安定化回路の
出力電圧の検出結果をそれぞれの基準電圧と比較し、そ
の比較結果に応じて所定処理を行なう制御手段と、前記
基準電圧のデータを記憶する記憶手段を有し、前記制御
手段は、該電子機器の初期化時に電源供給が正常な場
合、前記安定化回路の出力電圧の検出結果に基づいて該
安定化回路の出力電圧の基準電圧を設定し、そのデータ
を前記記憶手段に格納する構成を採用した。
In order to solve the above-mentioned problems, according to the present invention, an electronic device uses a battery as a power source and supplies power from the battery to each part of the electronic device through a power supply voltage stabilizing circuit. In the control means, detecting means for detecting the output voltage of the battery and the stabilizing circuit, and a detection result of the output voltage of the battery or the stabilizing circuit are compared with respective reference voltages, and a predetermined process is performed according to the comparison result. And a storage unit for storing the data of the reference voltage, the control unit, based on the detection result of the output voltage of the stabilization circuit, when the power supply is normal at the initialization of the electronic device, The reference voltage of the output voltage of the stabilizing circuit is set, and the data is stored in the storage means.

【0006】[0006]

【作用】このような構成によれば、上記電圧の検出時に
所定条件、例えば電子機器に設けられたプリンタの駆動
状態などに応じて、電池と電源電圧安定化回路の出力電
圧の内でより検出に適した方を選択して上記所定処理を
行なうか否かの判定に用いることができ、検出を高精度
に行なえ、基準電圧を低めに設定できる。更に、電源電
圧安定化回路の出力電圧の基準電圧については、その出
力電圧の実際の検出値に基づいて設定するので、更に低
めに設定できる。
According to this structure, when the voltage is detected, the output voltage of the battery and the power supply voltage stabilizing circuit is detected more depending on a predetermined condition, for example, the driving state of the printer provided in the electronic device. Can be used to determine whether or not to perform the above-described predetermined process, and the detection can be performed with high accuracy, and the reference voltage can be set to a low level. Further, since the reference voltage of the output voltage of the power supply voltage stabilizing circuit is set based on the actual detected value of the output voltage, it can be set lower.

【0007】[0007]

【実施例】以下、図を参照して本発明の実施例を説明す
る。ここでは、電池を電源として駆動されるプリンタ付
き電子機器を例示する。
Embodiments of the present invention will be described below with reference to the drawings. Here, an electronic device with a printer driven by using a battery as a power source is exemplified.

【0008】まず図1は実施例の電子機器の本発明に関
わる要部の構成を示している。図1において符号1は第
1の電源としての電池電源部であり、また符号2は第2
の電源としてのACアダプタである。スイッチ3によっ
て電池電源部1の出力電圧VBとACアダプタ2の出力
電圧VAのいずれかが選択されて電源供給に使用され
る。
First, FIG. 1 shows the structure of the main part of the electronic equipment of the embodiment relating to the present invention. In FIG. 1, reference numeral 1 is a battery power supply unit as a first power supply, and reference numeral 2 is a second power supply.
It is an AC adapter as a power source of. Either the output voltage VB of the battery power supply unit 1 or the output voltage VA of the AC adapter 2 is selected by the switch 3 and used for power supply.

【0009】電池電源部1とACアダプタ2のいずれか
の出力は、電源スイッチ4を介して、DC−DCコンバ
ータから構成された電源電圧安定化回路(以下「安定化
回路」と略す)5および電圧検出回路6に入力される。
The output of either the battery power supply unit 1 or the AC adapter 2 is fed through a power switch 4 to a power supply voltage stabilizing circuit (hereinafter abbreviated as "stabilizing circuit") 5 composed of a DC-DC converter, and It is input to the voltage detection circuit 6.

【0010】安定化回路5は本電子機器の電源の負荷と
なる各部、すなわちプリンタ7、制御部8、表示器9、
ブザー13などに安定化した電源電圧を供給し、この電
圧は電圧検出回路6にも入力される。
The stabilizing circuit 5 is a unit that serves as a load of the power source of the electronic device, that is, the printer 7, the control unit 8, the display unit 9,
A stabilized power supply voltage is supplied to the buzzer 13 and the like, and this voltage is also input to the voltage detection circuit 6.

【0011】電圧検出回路6は3チャンネルのA/Dコ
ンバータから構成され、信号線l1〜l3を介して入力
される電圧、即ちスイッチ4直後の安定化回路5の入力
電圧(電池電源部1の出力電圧VBまたはACアダプタ
2の出力電圧VA)、安定化回路5の出力電圧であるプ
リンタ供給電圧VP、及び制御部8への供給電圧VSのそ
れぞれをデジタルデータに変換し、バスラインl4 を介
して制御部8に入力する。その検出データは制御部8に
設けられたタイマTCにより定められる所定周期で制御
部8に読み取られるようになっている。
The voltage detection circuit 6 is composed of a three-channel A / D converter, and is a voltage input through the signal lines 11 to 13, that is, an input voltage of the stabilization circuit 5 immediately after the switch 4 (of the battery power supply unit 1). Each of the output voltage VB or the output voltage VA of the AC adapter 2, the printer supply voltage VP which is the output voltage of the stabilizing circuit 5, and the supply voltage VS to the control unit 8 is converted into digital data and transmitted via the bus line l4. Input to the control unit 8. The detection data is read by the control unit 8 at a predetermined cycle determined by a timer TC provided in the control unit 8.

【0012】制御部8はマイクロプロセッサなどから構
成され電子機器全体を制御する。制御部8には上記タイ
マの他にメモリM1〜M3が設けられている。メモリM
1には制御部8の制御プログラムが格納されている。メ
モリM2には後述のように検出した電源電圧の比較を行
なうための基準電圧のデータが格納される。メモリM3
には上記のように検出される電源電圧VB、VPなどのデ
ータが格納される。メモリM2、M3には書き換え可能
なRAMを用いる。メモリM2のデータは、ダイオード
D1、D2と電池Bからなるバックアップ回路BUにより
バックアップされ、本電子機器の電源オフ状態でも保存
される。
The control unit 8 is composed of a microprocessor and controls the entire electronic equipment. The control unit 8 is provided with memories M1 to M3 in addition to the timer. Memory M
A control program of the control unit 8 is stored in 1. The memory M2 stores the data of the reference voltage for comparing the detected power supply voltages as described later. Memory M3
Stores data such as the power supply voltages VB and VP detected as described above. A rewritable RAM is used for the memories M2 and M3. The data in the memory M2 is backed up by the backup circuit BU including the diodes D1 and D2 and the battery B, and is stored even when the power of the electronic device is off.

【0013】制御部8はセンサー増幅器10および駆動
回路11を介してプリンタ7を制御する。即ち、プリン
タ7の記録紙の有無や位置などを検出する不図示のセン
サの検出信号が増幅器10を介して制御部8に入力さ
れ、それに応じて制御部8は駆動回路11を介してプリ
ンタ7の記録ヘッドや駆動モータなどの被制御部材を制
御し、記録動作を行なわせる。
The control unit 8 controls the printer 7 via the sensor amplifier 10 and the drive circuit 11. That is, a detection signal from a sensor (not shown) that detects the presence or absence of recording paper or the position of the printer 7 is input to the control unit 8 via the amplifier 10, and accordingly the control unit 8 drives the printer 7 via the drive circuit 11. The controlled members such as the recording head and the driving motor of (1) are controlled to perform the recording operation.

【0014】また、制御部8は駆動回路12を介して液
晶表示器などからなる表示器9の表示動作を制御し、各
種情報の表示出力を行なう。またブザー13を用いて警
告などの音声出力も行なえるようになっている。
The control unit 8 also controls the display operation of the display unit 9 such as a liquid crystal display unit via the drive circuit 12 to display and output various information. In addition, a sound such as a warning can be output using the buzzer 13.

【0015】更に制御部8は、上記各部の制御の他に、
タイマTCによる所定周期で電圧検出回路6から読み取
る各電源電圧の検出結果に応じて電子機器の動作を禁止
する、ないしは使用者に電池の交換を促す警告情報を表
示器9に表示させる制御を行なう。
Further, the control unit 8 has a function in addition to the control of each unit described above.
According to the detection result of each power supply voltage read from the voltage detection circuit 6 in a predetermined cycle by the timer TC, the operation of the electronic device is prohibited, or the display 9 displays warning information prompting the user to replace the battery. .

【0016】この制御は、図2に示したプリンタ7の動
作状態に応じた電池駆動時の負荷特性を考慮して、電池
電源部1の出力電圧(以下「電池電圧」という)VBと
プリンタ供給電圧VPの検出結果に基づいて行なう。こ
の制御の詳細を図2を参照して以下に説明する。
In this control, the output voltage (hereinafter referred to as "battery voltage") VB of the battery power source 1 and the printer supply are taken into consideration in consideration of the load characteristic when the battery is driven according to the operating state of the printer 7 shown in FIG. This is performed based on the detection result of the voltage VP. Details of this control will be described below with reference to FIG.

【0017】図2は、本電子機器の電池駆動時の電池電
圧VBとプリンタ供給電圧VPの経時変化を示している。
図2の(A)はプリンタが動作しているときの電圧変化
を示し、プリンタの負荷変動に応じて電池電圧VBにリ
ップルΔvBが発生する。また、電池電圧VBが電池の終
止電圧v1 に近づくとプリンタ供給電圧VPにも安定化
の乱れが発生し、その電圧降下Δvp が所定値を越えた
ところで動作保証範囲外となってしまう。
FIG. 2 shows changes with time in the battery voltage VB and the printer supply voltage VP when the electronic device is driven by the battery.
FIG. 2A shows a voltage change when the printer is operating, and a ripple ΔvB is generated in the battery voltage VB according to the load change of the printer. Further, when the battery voltage VB approaches the end voltage v1 of the battery, the printer supply voltage VP is also disturbed in stabilization, and when the voltage drop Δvp exceeds a predetermined value, the operation is out of the guaranteed range.

【0018】このようなプリンタ動作時では電池電圧V
BにはリップルΔvBがあり、その検出は高精度に行なえ
ないので、プリンタ供給電圧VPを検出し、プリンタ供
給電圧VPの安定化が乱れ始めた時点T1で電池交換の警
告を出力し、安定化の乱れが所定以上になったら動作を
禁止するのが良い。
During such a printer operation, the battery voltage V
B has ripple ΔvB, which cannot be detected with high accuracy. Therefore, the printer supply voltage VP is detected, and at the time T1 when the stabilization of the printer supply voltage VP begins to be disturbed, a battery replacement warning is output and stabilization is performed. It is better to prohibit the operation when the disturbance becomes larger than a predetermined value.

【0019】一方、図2の(B)はプリンタ7が動作し
ていないときの電圧変化を示す。この場合、プリンタ7
の負荷変動がないので、電池電圧VBのリップルは殆ど
無い。また電池電圧VBが電池の終止電圧v1に近づいて
も、プリンタ7が無負荷に近いので、電池の終止電圧v1
の直前までプリンタ供給電圧VPの安定化が維持され
る。
On the other hand, FIG. 2B shows a voltage change when the printer 7 is not operating. In this case, the printer 7
Since there is no load fluctuation of, the battery voltage VB has almost no ripple. Further, even if the battery voltage VB approaches the end voltage v1 of the battery, since the printer 7 is almost no load, the end voltage v1 of the battery is reached.
The stabilization of the printer supply voltage VP is maintained until immediately before.

【0020】この場合、プリンタ供給電圧VPの安定化
が乱れた時点T2では同様に制御部8への供給電圧VSの
安定化が乱れ始めるので、時点T2では制御部8の動作
保証が難しい。従って、時点T2より前の時点で、電池
電圧VBが終止電圧v1より所定値高い基準電圧v2 とク
ロスする時点T3で電池交換の警告ないし動作の禁止を
行なうのが良い。
In this case, at the time T2 when the stabilization of the printer supply voltage VP is disturbed, similarly, the stabilization of the supply voltage VS to the control unit 8 begins to be disturbed, so that it is difficult to guarantee the operation of the control unit 8 at the time T2. Therefore, prior to time T2, it is preferable to issue a battery replacement warning or prohibit operation at time T3 when the battery voltage VB crosses the reference voltage v2 which is higher than the final voltage v1 by a predetermined value.

【0021】このようなことから、本実施例において制
御部8は、電池駆動時にタイマTCにより定められる所
定周期で電源電圧の検出を行ない、検出時がプリンタ駆
動時ならばプリンタ供給電圧VPが第1の基準電圧VPR1
ないし第2の基準電圧VPR2以下であるか否かにより電
子機器の動作禁止ないし電池交換の警告を行なう。また
検出時がプリンタの駆動時でなければ電池電圧VBが第
1の基準電圧VBR1ないし第2の基準電圧VBR2以下であ
るか否かにより動作禁止ないし電池交換の警告を行なう
ものとする。
Therefore, in the present embodiment, the control unit 8 detects the power supply voltage at a predetermined cycle determined by the timer TC when the battery is driven, and if the detection time is the printer drive, the printer supply voltage VP is the first. 1 reference voltage VPR1
Also, depending on whether or not the voltage is equal to or lower than the second reference voltage VPR2, an operation prohibition of the electronic device or a battery replacement warning is given. Further, if the detection time is not driving the printer, the operation prohibition or the battery replacement warning is given depending on whether the battery voltage VB is equal to or lower than the first reference voltage VBR1 or the second reference voltage VBR2.

【0022】なお、電池駆動時で電源供給が正常な状態
でも、安定化回路5の出力するプリンタ供給電圧VPに
は、電子機器1台ごとに部品のバラツキと電圧調整によ
りバラツキがある。これを考慮して、本実施例ではプリ
ンタ供給電圧VPの基準電圧VPR1、VPR2は一義的に決
めず、電子機器の初期化時に電源供給が正常な場合、制
御部8がプリンタ供給電圧VPを検出し、その検出値に
基づいて基準電圧VPR1、VPR2を設定するものとする。
Even when the battery is driven and the power supply is normal, the printer supply voltage VP output from the stabilizing circuit 5 varies depending on the components and the voltage adjustment for each electronic device. In consideration of this, in the present embodiment, the reference voltages VPR1 and VPR2 of the printer supply voltage VP are not uniquely determined, and when the power supply is normal at the time of initialization of the electronic device, the control unit 8 detects the printer supply voltage VP. Then, the reference voltages VPR1 and VPR2 are set based on the detected value.

【0023】次に、上記のような電圧検出に関わる制御
部8の処理動作の詳細を図3および図4のフローチャー
トにより説明する。なお、以下の処理は電池駆動を前提
としてなされる。また図3の処理のスタート前で電源オ
フ状態でもメモリM2には上記の各基準電圧のデータが
バックアップされて保存されている。
Next, details of the processing operation of the control unit 8 relating to the voltage detection as described above will be described with reference to the flowcharts of FIGS. 3 and 4. The following process is performed on the assumption that the battery is driven. The data of each of the reference voltages is backed up and stored in the memory M2 even when the power is off before the processing of FIG. 3 is started.

【0024】まず図3は電子機器の初期化時の処理を示
している。まず図3のステップS11において制御部8
のリセットが解除されると制御部8はステップS12で
内部のレジスタ、入出力ポートなどの初期化処理を行な
う。
First, FIG. 3 shows a process at the time of initialization of the electronic device. First, in step S11 of FIG.
When the reset is released, the control unit 8 initializes internal registers, input / output ports, etc. in step S12.

【0025】次にステップS13において電圧検出回路
6により検出される電池電圧VBとプリンタ供給電圧VP
を読み取り、ステップS14でそのデータをメモリM3
に格納する。この時に検出されたプリンタ供給電圧VP
の初期値をVPAとする。
Next, in step S13, the battery voltage VB detected by the voltage detection circuit 6 and the printer supply voltage VP are detected.
Is read and the data is stored in the memory M3 in step S14.
To store. Printer supply voltage VP detected at this time
The initial value of VPA is VPA.

【0026】次にステップS15では、プリンタ供給電
圧の初期値VPAがメモリM2に記憶されているプリンタ
供給電圧の第1の基準電圧VPR1以上か否か比較する。
Next, in step S15, it is compared whether or not the initial value VPA of the printer supply voltage is equal to or higher than the first reference voltage VPR1 of the printer supply voltage stored in the memory M2.

【0027】その結果、初期値VPAが基準電圧VPR1よ
り低いときは、プリンタ供給電圧に電池電源部1の電池
容量低下による電圧降下が生じ動作保証範囲外であると
判断し、ステップS19で電子機器の動作を禁止する。
具体的には安定化回路5への電源供給をオフするか、あ
るいは電力消耗が最小となる待機状態にシステムを固定
し、プリンタ7の動作や内部メモリへのアクセスなどを
禁止する。
As a result, when the initial value VPA is lower than the reference voltage VPR1, it is judged that the printer supply voltage is out of the operation guarantee range due to the voltage drop due to the decrease in the battery capacity of the battery power source unit 1, and the electronic device is determined in step S19. Operation is prohibited.
Specifically, the power supply to the stabilizing circuit 5 is turned off, or the system is fixed in a standby state where power consumption is minimized, and the operation of the printer 7 and access to the internal memory are prohibited.

【0028】一方、ステップS15での比較の結果、初
期値VPAが基準電圧VPR1以上であるときは、プリンタ
供給電圧VPに電池容量低下による電圧降下が生じてい
ないと判断してステップS16に移り、プリンタの初期
化動作を実行する。
On the other hand, as a result of the comparison in step S15, when the initial value VPA is equal to or higher than the reference voltage VPR1, it is determined that the printer supply voltage VP has not dropped due to the battery capacity decrease, and the process proceeds to step S16. Perform printer initialization operation.

【0029】そしてステップS17で電子機器のシステ
ムの初期化を終了するが、この時点でシステムが正常に
動作し、プリンタ供給電圧VPも安定していると判断で
きるので、またプリンタ供給電圧VPを電圧検出回路6
により検出し、その検出値に基づいてプリンタ供給電圧
の基準電圧VPR1、VPR2を設定し、メモリM2に格納す
る。前述のようにメモリM2はバックアップ回路BUに
よりバックアップされ、前記基準電圧のデータは電源ス
イッチ4がオフされても保存される。ステップS17の
後は待機状態に入る(ステップS18)。
Then, in step S17, the initialization of the system of the electronic device is completed. At this point, it can be determined that the system is operating normally and the printer supply voltage VP is stable, and the printer supply voltage VP is set to the voltage level. Detection circuit 6
The reference voltages VPR1 and VPR2 of the printer supply voltage are set based on the detected value and stored in the memory M2. As described above, the memory M2 is backed up by the backup circuit BU, and the data of the reference voltage is stored even when the power switch 4 is turned off. After step S17, a standby state is entered (step S18).

【0030】次に、図4は初期化後の電圧検出に関わる
制御を示している。ここでは初期化後の待機状態(ステ
ップS21)からステップS22に進み、タイマTCの
カウントにより、前回の電圧判定ループから所定時間T
(msec)が経過したかどうかを判定する。
Next, FIG. 4 shows control relating to voltage detection after initialization. Here, the process proceeds from the standby state after initialization (step S21) to step S22, and the count of the timer TC causes a predetermined time T from the previous voltage determination loop.
Determine whether (msec) has elapsed.

【0031】ステップS22が否定された場合にはステ
ップS28において通常のシステム動作の処理、すなわ
ち表示器9によるデータの表示出力、あるいはプリンタ
7による記録出力処理などを行なう。ステップS28の
後はステップS21の待機状態に戻る。
When step S22 is denied, the normal system operation processing, that is, the display output of the data by the display 9 or the recording output processing by the printer 7 is performed in step S28. After step S28, the process returns to the standby state of step S21.

【0032】一方、ステップS22が肯定されるとステ
ップS23に移り、現在プリンタ7が駆動されている状
態ならば電圧検出回路6からプリンタ供給電圧VPを読
み取り、プリンタ7の非駆動状態ならば電池電圧VBを
読み取り、その値を検出電圧VD としてメモリM3に格
納する。
On the other hand, if the result at step S22 is affirmative, the routine proceeds to step S23, where the printer supply voltage VP is read from the voltage detection circuit 6 if the printer 7 is currently driven, and the battery voltage is read if the printer 7 is not driven. VB is read and the value is stored in the memory M3 as the detection voltage VD.

【0033】続いてステップS24において上記検出電
圧VD の値がメモリM2に格納されている動作禁止判定
用の第1の基準電圧VPR1またはVBR1以下かどうか比較
する。この場合、現在プリンタ7が駆動されている状態
ならばプリンタ供給電圧の第1の基準電圧VPR1と比較
し、プリンタ7が駆動されていない状態ならば電池電圧
の第1の基準電圧VBR1と比較する。
Subsequently, in step S24, it is compared whether or not the value of the detection voltage VD is equal to or lower than the first reference voltage VPR1 or VBR1 for operation inhibition determination stored in the memory M2. In this case, if the printer 7 is currently driven, it is compared with the first reference voltage VPR1 of the printer supply voltage, and if the printer 7 is not driven, it is compared with the first reference voltage VBR1 of the battery voltage. .

【0034】そしてステップS24が肯定されるとステ
ップS29に移り、電子機器の動作を禁止する。
If the result at step S24 is affirmative, the process proceeds to step S29 to prohibit the operation of the electronic device.

【0035】一方、ステップS24が否定されたらステ
ップS25に移り、今度は電圧VDが電池交換判定用の
第2の基準電圧VPR2またはVBR2以下かどうか比較す
る。この場合も、プリンタ7の駆動状態ならばプリンタ
供給電圧の第2の基準電圧VPR2と比較し、非駆動状態
ならば電池電圧の第2の基準電圧VBR2と比較する。
On the other hand, if the result in step S24 is negative, the process proceeds to step S25, in which it is compared whether the voltage VD is the second reference voltage VPR2 or VBR2 for battery replacement determination. Also in this case, when the printer 7 is in the driving state, it is compared with the second reference voltage VPR2 of the printer supply voltage, and in the non-driving state, it is compared with the second reference voltage VBR2 of the battery voltage.

【0036】そしてステップS25が否定された場合
は、まだ電池に余力があると判断し、ステップS28に
移行し、通常のシステム動作の処理を行なう。
If step S25 is denied, it is determined that the battery has a sufficient capacity, and the process proceeds to step S28 to perform normal system operation processing.

【0037】またステップS25が肯定された場合に
は、電池の交換が必要であると判断してステップS27
に移行し、表示器9を用いて電池交換を示す文字列など
を表示して使用者に電池の交換を促す。その表示例を図
5に示してある。図5の(A)に示すように電池交換を
促すメッセージを表示しても良いし、(B)に示すよう
に電池交換を促す電池のシンボルを表示しても良い。ま
たブザー13を鳴動させて使用者に警告することも可能
である。なお表示器やブザーを持たないシステムにおい
ては、プリンタの印字で警告したり、ランプの特定パタ
ーンの点滅で警告することも可能である。
If the result at step S25 is affirmative, it is determined that the battery needs to be replaced, and step S27 is performed.
Then, the display 9 is used to display a character string indicating battery replacement or the like to prompt the user to replace the battery. The display example is shown in FIG. A message prompting battery replacement may be displayed as shown in FIG. 5A, or a battery symbol prompting battery replacement may be displayed as shown in FIG. 5B. It is also possible to sound the buzzer 13 to warn the user. In a system that does not have a display or a buzzer, it is possible to give a warning by printing with a printer or a blinking of a specific pattern of a lamp.

【0038】ステップS27の後はステップS28で通
常のシステム動作の処理を行ない、その後はステップS
21の待機状態に戻る。
After step S27, normal system operation processing is performed in step S28, and then step S28.
Return to the standby state of 21.

【0039】以上のような本実施例によれば、電池駆動
時で電池電圧VBにリップルが生ずるプリンタ駆動状態
では変動の少ないプリンタ供給電圧VPにより電源電圧
の検出を行なうので、高精度に検出を行なうことができ
る。従って、この場合の基準電圧VPR1、VPR2はあまり
余裕を持たせずに低めに設定できる。しかも、この基準
電圧は初期化終了時に検出した実際のプリンタ供給電圧
VPに基づいて設定するため、電子機器1台ごとの部品
のバラツキ、電圧調整による誤差を見込まなくてよく、
この点からも基準電圧VPR1、VPR2を低めに設定でき
る。
According to the present embodiment as described above, the power supply voltage is detected by the printer supply voltage VP, which has little fluctuation in the printer driving state where the battery voltage VB has a ripple when the battery is driven, so that the detection can be performed with high accuracy. Can be done. Therefore, the reference voltages VPR1 and VPR2 in this case can be set to a lower level without much allowance. Moreover, since this reference voltage is set based on the actual printer supply voltage VP detected at the end of initialization, it is not necessary to take into account variations in parts for each electronic device and errors due to voltage adjustment.
From this point as well, the reference voltages VPR1 and VPR2 can be set lower.

【0040】このように基準電圧VPR1、VPR2を低めに
設定できるので、従来のように基準電圧の設定が高めで
電池容量にまだ余裕が有るのに交換の警告を出力したり
動作を禁止したりする問題を避けることができる。即
ち、電池の容量を無駄なく有効に消費でき、電池により
駆動できる電子機器の駆動時間を長くできる。
Since the reference voltages VPR1 and VPR2 can be set lower in this way, a warning for replacement is issued or the operation is prohibited even though the reference voltage is set higher and the battery capacity still has a margin as in the conventional case. You can avoid the problem of That is, the capacity of the battery can be effectively consumed without waste, and the driving time of the electronic device that can be driven by the battery can be lengthened.

【0041】また電池電圧VBにリップルの生じないプ
リンタの非駆動状態では電池電圧VBにより電源電圧の
検出を行なうので、プリンタ供給電圧VPにより検出を
行なう場合に伴なう問題を避けて、検出を高精度に行な
うことができる。
Further, since the power supply voltage is detected by the battery voltage VB in a non-driving state of the printer in which the battery voltage VB does not cause a ripple, the detection accompanying the printer supply voltage VP is avoided. It can be performed with high accuracy.

【0042】なお以上では、電源電圧の検出を電池電圧
VBとプリンタ供給電圧VPにより行なうものとしたが、
システムの負荷特性に応じて制御部8への供給電圧VS
や表示器9への供給電圧を用いても良い。またフロッピ
ーディスク装置を有するものにあっては同装置への供給
電圧を検出して電池交換を促しても良い。
In the above description, the power supply voltage is detected by the battery voltage VB and the printer supply voltage VP.
Supply voltage VS to the control unit 8 according to the load characteristics of the system
Alternatively, the voltage supplied to the display 9 may be used. In the case of a device having a floppy disk device, the voltage supplied to the device may be detected to prompt battery replacement.

【0043】また、電池についても通常の1次電池や2
次電池(Ni-Cd電池、鉛蓄電池)などの各種電池の放電
特性などの特性に合わせて、データメモリM2に設定さ
れる電池の消耗を示す基準電圧のデータを複数設定し、
選択することにより、最適化された電圧判定が可能とな
り、各種電池を有効に使用することもできる。
Regarding the battery, a normal primary battery or a secondary battery is used.
According to the characteristics such as the discharge characteristics of various batteries such as the secondary battery (Ni-Cd battery, lead storage battery), a plurality of reference voltage data indicating the battery consumption set in the data memory M2 is set,
By selecting it, optimized voltage determination is possible, and various batteries can be used effectively.

【0044】また以上では基準電圧のデータを格納する
メモリM2をRAMとしてバックアップ回路BUにより
バックアップするものとしたが、電気的に消去、追記が
可能なEEPROMをメモリM2に用いてもよい。また
電子機器に磁気ディスク装置(FDDまたはHDD)が
設けられる場合は基準電圧のデータを磁気ディスクに保
存してもよい。
In the above description, the memory M2 for storing the data of the reference voltage is used as a RAM and backed up by the backup circuit BU, but an electrically erasable and additionally recordable EEPROM may be used as the memory M2. If the electronic device is provided with a magnetic disk device (FDD or HDD), the data of the reference voltage may be stored in the magnetic disk.

【0045】[0045]

【発明の効果】以上の説明から明らかなように、本発明
によれば、電池を電源とし、該電池から電源電圧安定化
回路を介して電子機器各部への電源供給を行なう電子機
器において、前記電池と安定化回路の出力電圧を検出す
る検出手段と、前記電池または安定化回路の出力電圧の
検出結果をそれぞれの基準電圧と比較し、その比較結果
に応じて所定処理を行なう制御手段と、前記基準電圧の
データを記憶する記憶手段を有し、前記制御手段は、該
電子機器の初期化時に電源供給が正常な場合、前記安定
化回路の出力電圧の検出結果に基づいて該安定化回路の
出力電圧の基準電圧を設定し、そのデータを前記記憶手
段に格納する構成を採用したので、電源電圧の検出をよ
り適当に高精度に行なうことができ、前記判定のための
基準電圧を低めに設定できる。このため電池の容量をよ
り無駄無く有効に消費でき、電池で駆動できる電子機器
の駆動時間をより長くできるという優れた効果が得られ
る。
As is apparent from the above description, according to the present invention, in an electronic device which uses a battery as a power source and supplies power from the battery to each part of the electronic device through a power supply voltage stabilizing circuit, Detection means for detecting the output voltage of the battery and the stabilizing circuit, and a control means for comparing the detection result of the output voltage of the battery or the stabilizing circuit with respective reference voltages, and performing predetermined processing according to the comparison result, If the power supply is normal at the time of initialization of the electronic device, the control means has a storage means for storing the data of the reference voltage, and the stabilization circuit is based on the detection result of the output voltage of the stabilization circuit. Since the reference voltage of the output voltage is set and the data is stored in the storage means, the power supply voltage can be detected more appropriately and highly accurately, and the reference voltage for the determination can be lowered. To It can be constant. Therefore, it is possible to effectively consume the capacity of the battery without waste, and it is possible to obtain an excellent effect that the driving time of the electronic device that can be driven by the battery can be extended.

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

【図1】本発明の実施例の電子機器の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of an electronic device according to an embodiment of the present invention.

【図2】同電子機器の電池駆動時における電池電圧とプ
リンタ供給電圧の経時変化を示す特性図である。
FIG. 2 is a characteristic diagram showing changes with time in battery voltage and printer supply voltage when the electronic device is driven by a battery.

【図3】同電子機器の制御部による初期化処理を示すフ
ローチャート図である。
FIG. 3 is a flowchart showing an initialization process by a control unit of the electronic device.

【図4】同制御部による電源電圧の検出処理のフローチ
ャート図である。
FIG. 4 is a flowchart of a power supply voltage detection process by the control unit.

【図5】電池交換を促す警告の表示例を示す説明図であ
る。
FIG. 5 is an explanatory diagram showing a display example of a warning prompting battery replacement.

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

1 電池電源部 2 ACアダプタ 3 電源選択用のスイッチ 4 電源スイッチ 5 電源電圧安定化回路 6 電圧検出回路 7 プリンタ 8 制御部 9 表示器 13 ブザー M1〜M3 メモリ TC タイマ 1 Battery power supply 2 AC adapter 3 Power supply selection switch 4 power switch 5 Power supply voltage stabilization circuit 6 Voltage detection circuit 7 printer 8 control unit 9 Display 13 buzzer M1 to M3 memory TC timer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 電池を電源とし、該電池から電源電圧安
定化回路を介して電子機器各部への電源供給を行なう電
子機器において、 前記電池と安定化回路の出力電圧を検出する検出手段
と、 前記電池または安定化回路の出力電圧の検出結果をそれ
ぞれの基準電圧と比較し、その比較結果に応じて所定処
理を行なう制御手段と、 前記基準電圧のデータを記憶する記憶手段を有し、 前記制御手段は、該電子機器の初期化時に電源供給が正
常な場合、前記安定化回路の出力電圧の検出結果に基づ
いて該安定化回路の出力電圧の基準電圧を設定し、その
データを前記記憶手段に格納することを特徴とする電子
機器。
1. An electronic device that uses a battery as a power source and supplies power from the battery to each part of the electronic device via a power supply voltage stabilizing circuit, and a detecting unit that detects output voltages of the battery and the stabilizing circuit. The detection result of the output voltage of the battery or the stabilizing circuit is compared with each reference voltage, and has a control means for performing a predetermined process according to the comparison result, and a storage means for storing the data of the reference voltage, The control means sets the reference voltage of the output voltage of the stabilizing circuit based on the detection result of the output voltage of the stabilizing circuit when the power supply is normal at the time of initialization of the electronic device, and stores the data. An electronic device characterized by being stored in a means.
【請求項2】 前記制御手段は、前記所定処理として、
電子機器の使用者に対し前記電池の交換を促す警告情報
の出力、または該電子機器の動作の禁止の少なくとも一
方を行なうことを特徴とする請求項1に記載の電子機
器。
2. The control means, as the predetermined processing,
The electronic device according to claim 1, wherein at least one of outputting warning information for prompting a user of the electronic device to replace the battery and prohibiting operation of the electronic device is performed.
【請求項3】 前記記憶手段の前記基準電圧のデータは
該電子機器の電源オフの状態においても保存されるよう
にしたことを特徴とする請求項1または2に記載の電子
機器。
3. The electronic device according to claim 1, wherein the data of the reference voltage in the storage means is stored even when the power of the electronic device is off.
【請求項4】 前記制御手段は、前記出力電圧の検出を
周期的に行ない、その検出時に、所定条件に応じて前記
電池と安定化回路の出力電圧のいずれか一方を選択して
前記基準電圧との比較を行なうことを特徴とする請求項
1から3までのいずれか1項に記載の電子機器。
4. The control means periodically detects the output voltage, and at the time of detection, selects one of the battery and the output voltage of the stabilizing circuit according to a predetermined condition to select the reference voltage. The electronic device according to any one of claims 1 to 3, wherein the electronic device is compared with.
JP3168581A 1991-07-10 1991-07-10 Electronics Expired - Fee Related JP2881047B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3168581A JP2881047B2 (en) 1991-07-10 1991-07-10 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3168581A JP2881047B2 (en) 1991-07-10 1991-07-10 Electronics

Publications (2)

Publication Number Publication Date
JPH0519030A true JPH0519030A (en) 1993-01-26
JP2881047B2 JP2881047B2 (en) 1999-04-12

Family

ID=15870712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3168581A Expired - Fee Related JP2881047B2 (en) 1991-07-10 1991-07-10 Electronics

Country Status (1)

Country Link
JP (1) JP2881047B2 (en)

Also Published As

Publication number Publication date
JP2881047B2 (en) 1999-04-12

Similar Documents

Publication Publication Date Title
US5825100A (en) Intelligent battery power system
US6510400B1 (en) Temperature control circuit for central processing unit
US4984185A (en) Portable computer having a battery voltage detecting circuit
US5136246A (en) Apparatus with intermittent enabling means for detecting end of battery life
EP0834796B1 (en) A computer system and control method for saving power
US5698971A (en) Device for detecting the end of battery life, power supply circuit having the device, and a portable machine having the power supply circuit
JP3080544B2 (en) Portable electronic devices
JPH05111170A (en) Battery driven electronic appliance
JPH09222939A (en) Memory card
JP2881047B2 (en) Electronics
EP0523652B1 (en) Electronic apparatus with resume function
JP2881046B2 (en) Electronics
JP2730735B2 (en) Electronics
JP3190564B2 (en) Electronic equipment with battery power
JPH05189096A (en) Power control circuit for computer system
JP2002182799A (en) Power supply switching device
JPH1115570A (en) Computer power managing system
JPH0512137A (en) Information processor
JP2000324719A (en) Electronic apparatus, control method therefor, and storage medium
JP2002270248A (en) Cell voltage detection device, and cell voltage detecting method
JPH0815396A (en) Power supply voltage detector
JPH05119879A (en) Document processing device
JPH0566866A (en) Information processor
JP2002229688A (en) Battery driven information terminal device and data backup method
JP2544728B2 (en) Battery power supply

Legal Events

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