JPH07107674A - Power supply controlling device - Google Patents

Power supply controlling device

Info

Publication number
JPH07107674A
JPH07107674A JP27322693A JP27322693A JPH07107674A JP H07107674 A JPH07107674 A JP H07107674A JP 27322693 A JP27322693 A JP 27322693A JP 27322693 A JP27322693 A JP 27322693A JP H07107674 A JPH07107674 A JP H07107674A
Authority
JP
Japan
Prior art keywords
battery
electronic device
power
power supply
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
JP27322693A
Other languages
Japanese (ja)
Other versions
JP3337788B2 (en
Inventor
Yoji Sugito
洋史 杉戸
Noboru Tamura
昇 田村
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 JP27322693A priority Critical patent/JP3337788B2/en
Publication of JPH07107674A publication Critical patent/JPH07107674A/en
Application granted granted Critical
Publication of JP3337788B2 publication Critical patent/JP3337788B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To rationalize the control of the power supply of an electronic apparatus, which is driven with a battery, by turning OFF the power supply of the first electronic apparatus when the power supply of the first electronic apparatus, wherein the battery is the power supply, is in the ON state and the battery voltage has a value smaller than the specified value. CONSTITUTION:In a interface part 10a on the side of a printer, the power supply voltage of a battery 21a is inputted into a power-supply driving circuit 20c when a power transistor 20b is turned ON with a switching transistor 20a, and the power is supplied into each part. The ON/OFF control signal of the switching transistor 20a is transferred from a interface 30a on the side of an electronic computer through a signal line 23a. When the battery voltage supplied from the power-supply driving circuit 20c becomes lower than the internal working voltage, a CPU 14 outputs the reset signal, and the supply of the battery voltage to each part from the power-supply driving circuit 20c is stopped. Thus the power supply control of the electronic apparatus such as the printer and the electronic computer driven by the battery 21a can be adequately performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電池で駆動される電子
機器の電源管理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a power management device for battery-powered electronic equipment.

【0002】[0002]

【従来の技術】従来、電子計算機にプリンタを接続する
場合など複数の電子機器の電源管理には種々のやり方が
ある。例えば、電子機器の一方にだけ電池を設け、他方
の電子機器の電源をオンオフすることによって一方の電
子機器の電池から電力の供給を受けるものがある。ある
いは、電子機器の双方に電池を設け、それぞれの電池の
電圧低下を検出するものもある。さらに、電子機器間で
データを通信しているときに、一方の電子機器が電池の
電圧低下を検出してそのデータの通信を中断すると、他
方の電子機器はデータが送信されて来ない時間を計測し
タイムアウトの発生によって通信を終了してしまうとい
ったものもある。
2. Description of the Related Art Conventionally, there are various methods for power management of a plurality of electronic devices such as a case where a printer is connected to an electronic computer. For example, there is one in which a battery is provided only in one of the electronic devices and power is supplied from the battery of one of the electronic devices by turning on / off the power of the other electronic device. Alternatively, there is a device in which batteries are provided in both electronic devices and a voltage drop of each battery is detected. Further, when one of the electronic devices detects a voltage drop of the battery and interrupts the communication of the data while data is being communicated between the electronic devices, the other electronic device waits for the time when the data is not transmitted. In some cases, the measurement ends and the communication ends when a timeout occurs.

【0003】また、電池駆動の電子機器では、電池の交
換時期あるいは再充電時期を知らせるために電池の残存
容量を検出して残量が少ないことの警告を表示してい
た。
Further, in battery-powered electronic equipment, the remaining capacity of the battery is detected and a warning that the remaining capacity is low is displayed in order to inform the battery replacement time or recharge time.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、以下に
掲げる種々の問題点を有していた。一方の電子機器のみ
に電池を有する場合には複数の電子機器を接続して同時
に動作を行なっても大丈夫な電池としなければならず、
例えば、電池を有しないプリンタを電子計算機に接続す
るときには電子計算機の消費電力に較べてプリンタの消
費電力は圧倒的に大きく、プリンタを使わないときで
も、電子計算機は常に過剰な電池を有していなければな
らなかった。
However, there are various problems as described below. When only one electronic device has a battery, it is necessary to connect a plurality of electronic devices and operate at the same time so that the battery is okay.
For example, when a printer without a battery is connected to a computer, the power consumption of the printer is overwhelmingly higher than that of the computer, and the computer always has an excessive battery even when the printer is not used. I had to.

【0005】また、電子計算機にプリンタやモデムの通
信ケーブルが接続されておらず使用できない状態であっ
ても、電源ケーブルさえ接続されていれば、プリンタや
モデムの電源消し忘れなどの意図しない電源オンによっ
て電池が消耗されてしまうことがあった。さらに、双方
の電子機器が電池を有しているときにはそれぞれに電源
をオンオフするスイッチや電池の電圧低下を表示する表
示手段を持たなければならず、しかも使用者は双方の表
示を確認する必要があった。
Even if the computer or the communication cable for the modem is not connected to the computer and cannot be used, as long as the power cable is connected, the printer or modem cannot be turned off unintentionally and the power is turned on unintentionally. The battery may be exhausted due to. Furthermore, when both electronic devices have batteries, each must have a switch for turning the power on and off and display means for displaying the voltage drop of the battery, and the user needs to confirm both displays. there were.

【0006】また、電池の電圧降下を検出してデータの
通信を中断するときには通信がハンドシェイクできない
ことにより誤動作したり、タイムアウトの発生など不必
要な待ち時間を持たなくてはならなかった。
Further, when the voltage drop of the battery is detected and the data communication is interrupted, it is necessary to have an unnecessary waiting time such as a malfunction due to the handshake of the communication or the occurrence of a timeout.

【0007】さらに、電池の交換時期あるいは再充電時
期を知らせる表示手段を有する場合に、電池の残存容量
を検出するために専用のハードウェアを組み込まなけれ
ばならなかった。また、残存容量を一概に決めることが
困難であった。例えば、ハードディスクを頻繁に使用す
るときと、そうでないときとでは残量が少ないと警告さ
れてから動作不能になるまでの時間が異なるので、ハー
ドディスク利用者にとっては警告が遅すぎたり、利用し
ない者にとっては早すぎるといったことが起きる。さら
に、残存容量は常に表示されているわけではなく、低下
した時点で警告されるため、いつ残量が少なくなって警
告を受けるか不明なので電源のない所へ持って行くとき
は不安のためにとりあえず充電をすることなり、電池の
劣化を早めてしまうことになる。
Further, when the display means for notifying the replacement time or the recharge time of the battery is provided, dedicated hardware must be incorporated to detect the remaining capacity of the battery. Moreover, it was difficult to determine the remaining capacity unconditionally. For example, the time from when a hard disk is frequently used to when it is not used is different from the time when it is warned that the remaining capacity is low until it becomes inoperable. It happens too early for me. In addition, the remaining capacity is not always displayed, and since it will be warned when it drops, it is unclear when the remaining capacity will be low and the warning will be issued, so be worried when taking it to a place without power supply. For the time being, it will be charged, and the deterioration of the battery will be accelerated.

【0008】そこで、本発明は電池で駆動される電子機
器の電源管理を適正に行なう電源管理装置を提供するこ
とを目的とする。
[0008] Therefore, an object of the present invention is to provide a power management device that appropriately manages the power of a battery-driven electronic device.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明の電源管理装置は、電池を電源とする第1の
電子機器を第2の電子機器に接続し、前記第2の電子機
器は前記第1の電子機器の電源を管理する電源管理装置
であって、前記第2の電子機器は、前記第1の電子機器
の電池電圧を検出する電池電圧検出手段と、前記第1の
電子機器の電源がオンの状態にあるときに、前記電池電
圧検出手段によって検出される前記電池電圧を所定値と
比較する比較手段と、この比較手段によって前記電池電
圧が前記所定値以下のときに前記第1の電子機器の電源
をオフにするスイッチング手段とを備える。
In order to achieve the above object, a power management apparatus of the present invention connects a first electronic device having a battery as a power source to a second electronic device, The device is a power management device that manages the power supply of the first electronic device, and the second electronic device includes a battery voltage detection unit that detects a battery voltage of the first electronic device, and the first electronic device. When the power supply of the electronic device is in the ON state, the comparing means for comparing the battery voltage detected by the battery voltage detecting means with a predetermined value, and when the battery voltage is equal to or less than the predetermined value by the comparing means. Switching means for turning off the power supply of the first electronic device.

【0010】また、本発明の電源管理装置は、電池を電
源とする制御回路と、前記電源をオンオフするスイッチ
回路とを備え、この制御回路は、前記スイッチ回路によ
って電源がオンされてから通電中に一定周期の割込み信
号を発生する信号発生回路と、この割込み信号発生回路
によって発生される割込み信号の回数を記憶するカウン
タと、このカウンタに記憶された前記割込み信号の回数
に基づく通電時間の表示を行なう表示回路とを備える。
Further, the power management apparatus of the present invention comprises a control circuit which uses a battery as a power source and a switch circuit which turns on and off the power source. The control circuit is energized after the power source is turned on by the switch circuit. , A signal generating circuit for generating an interrupt signal of a constant cycle, a counter for storing the number of interrupt signals generated by the interrupt signal generating circuit, and a display of energization time based on the number of interrupt signals stored in the counter And a display circuit for performing.

【0011】[0011]

【作用】本発明の電源管理装置は、電池を電源とする第
1の電子機器を第2の電子機器に接続し、前記第2の電
子機器は前記第1の電子機器の電源を管理する際に、前
記第2の電子機器に備えられた電池電圧検出手段によっ
て前記第1の電子機器の電池電圧を検出し、前記第1の
電子機器の電源がオンの状態にあるときに、前記電池電
圧検出手段によって検出される前記電池電圧を比較手段
によって所定値と比較し、この比較手段によって前記電
池電圧が前記所定値以下のときにスイッチング手段によ
って前記第1の電子機器の電源をオフにする。
In the power management device of the present invention, the first electronic device, which uses a battery as a power source, is connected to the second electronic device, and the second electronic device manages the power supply of the first electronic device. The battery voltage detection means provided in the second electronic device detects the battery voltage of the first electronic device, and when the power supply of the first electronic device is in the ON state, the battery voltage is The battery voltage detected by the detection means is compared with a predetermined value by the comparison means, and the switching means turns off the power source of the first electronic device when the battery voltage is equal to or lower than the predetermined value by the comparison means.

【0012】本発明の電源管理装置は、電池を制御回路
の電源とし、スイッチ回路により前記電源をオンオフ
し、この制御回路に備えられた前記スイッチ回路によっ
て電源がオンされてから通電中に信号発生回路により一
定周期の割込み信号を発生し、この割込み信号発生回路
によって発生される割込み信号の回数をカウンタにより
記憶し、このカウンタに記憶された前記割込み信号の回
数に基づく通電時間の表示を表示回路により行なう。
In the power management apparatus of the present invention, a battery is used as the power source of the control circuit, the switch circuit turns on / off the power source, and the switch circuit provided in the control circuit turns on the power source to generate a signal during energization. A circuit generates an interrupt signal of a fixed cycle, a counter stores the number of interrupt signals generated by the interrupt signal generation circuit, and a display circuit displays a power-on time based on the number of interrupt signals stored in the counter. By.

【0013】[0013]

【実施例】つぎに、本発明の電源管理装置の実施例につ
いて説明する。
EXAMPLE Next, an example of the power management apparatus of the present invention will be described.

【0014】[第1実施例]図1は第1実施例の電源管
理装置が適用された情報処理装置5の構成を示すブロッ
ク図である。本実施例の情報処理装置5はプリンタ10
および電子計算機30から構成されており、プリンタ1
0と電子計算機30は着脱可能なケーブル23で接続さ
れている。プリンタ10はバス13を介して周知のCP
U14、処理プログラムを格納するROM15、ワーキ
ングエリアとしてデータを格納するRAM16、プリン
タ10の状態を表示するLED表示器17、印字を行な
う印刷部18および外部と通信を行なう通信回路19を
備える。電源回路20には電池パック21が設けられて
おり、これらの電源回路20および電池パック21はコ
ネクタ22にケーブル25、26で接続されている。R
AM16にはローバッテリフラグ16aが割り当てられ
ている。
[First Embodiment] FIG. 1 is a block diagram showing the arrangement of an information processing apparatus 5 to which the power management apparatus of the first embodiment is applied. The information processing device 5 according to the present exemplary embodiment is the printer 10.
And a computer 1 and a printer 1
0 and the computer 30 are connected by a detachable cable 23. The printer 10 is a well-known CP via the bus 13.
A U14, a ROM 15 for storing a processing program, a RAM 16 for storing data as a working area, an LED display 17 for displaying the state of the printer 10, a printing unit 18 for printing, and a communication circuit 19 for communicating with the outside are provided. The power supply circuit 20 is provided with a battery pack 21, and the power supply circuit 20 and the battery pack 21 are connected to a connector 22 by cables 25 and 26. R
A low battery flag 16a is assigned to the AM 16.

【0015】電子計算機30は、バス36を介して周知
のCPU37、処理プログラムを格納するROM38、
ワーキングエリアとしてデータやアプリケーションプロ
グラムを記憶するRAM39、LCD表示器40、キー
ボード41、通信回路42、43、コネクタ45を介し
て接続されるプリンタ10の電源を監視する電源モニタ
回路49を備える。電源回路51は電池パック54を備
えており、電子計算機30の各部に電力を供給する。コ
ネクタ45から通信回路42および電源モニタ回路49
にはケーブル48、47が設けられている。通信回路4
3には外部機器と接続するためのコネクタ60が接続さ
れている。また、RAM39にはローバッテリフラグ3
9a、ONフラグ39bが割り当てられている。
The electronic computer 30 has a well-known CPU 37, a ROM 38 for storing a processing program, and a well-known CPU 37 via a bus 36.
The working area includes a RAM 39 for storing data and application programs, an LCD display 40, a keyboard 41, communication circuits 42, 43, and a power supply monitor circuit 49 for monitoring the power supply of the printer 10 connected via the connector 45. The power supply circuit 51 includes a battery pack 54 and supplies power to each unit of the electronic computer 30. From the connector 45 to the communication circuit 42 and the power supply monitor circuit 49
Cables 48 and 47 are provided in the. Communication circuit 4
A connector 60 for connecting to an external device is connected to 3. Further, the low battery flag 3 is stored in the RAM 39.
9a and ON flag 39b are assigned.

【0016】つぎに、プリンタ10と電子計算機30の
インターフェース部分について図2を用いて説明する。
プリンタ10のコネクタ22と電子計算機30のコネク
タ45の間は多芯ケーブル23で接続されており、多芯
ケーブル23は後述する電源ケーブル23e、信号線2
3a、23b、23c、23dを束に収納する。また、
プリンタ側インターフェース部10aは、通信回路1
9、電源回路20、電池パック21およびコネクタ22
からなり、電子計算機側インターフェース部30aは通
信回路42、電源モニタ回路49およびコネクタ45か
ら構成される。プリンタ側インターフェース部10aで
はスイッチングトランジスタ20aによってパワートラ
ンジスタ20bがオンされると電池パック21に内蔵さ
れている電池21aの電池電圧が電源駆動回路20cに
入力されて各部に電力を供給する。このスイッチングト
ランジスタ20aのON/OFF制御信号は電子計算器
側インターフェース30aから信号線23aを介して伝
達される。ON/OFF制御信号がHレベルのときスイ
ッチングトランジスタ20a、パワートランジスタ20
bがともにオンになる。電源駆動回路20cが供給する
電池電圧が内部動作電圧よりも低くなったときにCPU
14はリセット信号を出力して電源駆動回路20cによ
る各部への電池電圧の供給を停止する。CPU14の割
込み端子INTBには、電子計算器側インターフェース30
aから信号線23bを介して伝達されたローバッテリフ
ラグ信号によってドライブされるトランジスタ19aの
コレクタ端子19bが接続されている。また、バッファ
19c、42a間にはコントロール信号およびデータ信
号が伝達される信号線23c、23dが設けられてい
る。さらに、前述の電池21aの電池電圧は電源ケーブ
ル23eを介して電子計算器側インターフェース30a
の電源モニタ回路49に接続されている。
Next, the interface portion between the printer 10 and the electronic computer 30 will be described with reference to FIG.
A multi-core cable 23 is connected between the connector 22 of the printer 10 and the connector 45 of the electronic computer 30, and the multi-core cable 23 includes a power cable 23e and a signal line 2 which will be described later.
3a, 23b, 23c and 23d are stored in a bundle. Also,
The printer-side interface unit 10a includes the communication circuit 1
9, power supply circuit 20, battery pack 21 and connector 22
The computer-side interface unit 30a is composed of a communication circuit 42, a power supply monitor circuit 49, and a connector 45. In the printer-side interface unit 10a, when the power transistor 20b is turned on by the switching transistor 20a, the battery voltage of the battery 21a contained in the battery pack 21 is input to the power supply drive circuit 20c to supply power to each unit. The ON / OFF control signal of the switching transistor 20a is transmitted from the electronic calculator side interface 30a through the signal line 23a. When the ON / OFF control signal is at H level, the switching transistor 20a and the power transistor 20
Both b are turned on. When the battery voltage supplied by the power supply drive circuit 20c becomes lower than the internal operating voltage, the CPU
Reference numeral 14 outputs a reset signal to stop the supply of the battery voltage to each part by the power supply drive circuit 20c. The interrupt terminal INTB of the CPU 14 has an interface 30 on the electronic calculator side.
The collector terminal 19b of the transistor 19a driven by the low battery flag signal transmitted from a through the signal line 23b is connected. Further, signal lines 23c and 23d for transmitting control signals and data signals are provided between the buffers 19c and 42a. Further, the battery voltage of the battery 21a described above is supplied to the electronic calculator side interface 30a via the power cable 23e.
Of the power supply monitor circuit 49.

【0017】電子計算器側インターフェース30a側で
は、電源モニタ回路49の電源ケーブル23eにプリン
タ10の負荷と同程度の負荷を有するダミーの負荷抵抗
器49aが接続され、この負荷抵抗器49aの他端はエ
ミッタ接地されたトランジスタ49bのコレクタに接続
されている。この負荷抵抗器49aは後述するように電
池21aに負荷を接続して電池21aの残存容量を調べ
るための抵抗器である。トランジスタ49bのベースは
CPU37のP3ポートに接続されており、P3ポート
からHレベルの信号をトランジスタ49bに入力すると
トランジスタ49bはオンして負荷抵抗器49aに電圧
降下が生じる。この負荷抵抗器49aの抵抗値はプリン
タ10が印字するときに電池21aから供給される電流
より僅かに高い電流が流れるようにその値が定められて
いる。また、電源モニタ回路49にコンパレータ49c
が設けられており、負荷抵抗器49aによって電圧降下
される電源ケーブル23cの電池電圧が分圧抵抗器49
d、49eによって分圧されてコンパレータ49cの非
反転入力端子に接続されており、反転入力端子には電子
計算機30側の電池電圧を分圧して基準電圧であるロー
バッテリ電圧とする分圧抵抗器49f、49gが設けら
れている。コンパレータ49cの出力端子はCPU37
の割込み端子INTAに接続されている。したがって、
電池21aの電池電圧がローバッテリ電圧以下にならな
いかどうかをコンパレータ49cが比較することで判断
する。ローバッテリ電圧はプリンタ10のリセット発生
電圧より0.2[V]程度高く設定される。電池電圧が
ローバッテリ電圧以下になったときに、コンパレータ4
9cの出力電圧がLレベルであるとCPU17に割込み
信号を発生する。この割込み信号により、CPU17は
出力ポートP2からON/OFF制御信号を前述した信
号線23aを介してスイッチングトランジスタ20aに
出力する。プリンタ側インターフェース10aでは電池
21aの電池電圧が低くなったとして、スイッチングト
ランジスタ20aによって制御されるパワートランジス
タ20bをオフして電池21aを電源駆動回路20cか
ら遮断する。ここで、万一、電子計算機側インターフェ
ース30aの電源回路51が遮断しても、CPU37か
ら出力されるON/OFF制御信号はLレベルとなるの
でプリンタ30の電源が遮断されることになり、フェー
ルセーフは守られている。また、前述したように、CP
U37はバッファ42aを介してCPU14と後述する
印字データやレディ、ビジー信号などのコントロール信
号のやりとりを行なう。
On the electronic computer side interface 30a side, a dummy load resistor 49a having a load similar to that of the printer 10 is connected to the power cable 23e of the power monitor circuit 49, and the other end of the load resistor 49a is connected. Is connected to the collector of a transistor 49b whose emitter is grounded. The load resistor 49a is a resistor for connecting a load to the battery 21a and checking the remaining capacity of the battery 21a as described later. The base of the transistor 49b is connected to the P3 port of the CPU 37, and when an H level signal is input to the transistor 49b from the P3 port, the transistor 49b is turned on and a voltage drop occurs in the load resistor 49a. The resistance value of the load resistor 49a is set so that a current slightly higher than the current supplied from the battery 21a flows when the printer 10 prints. Further, the power supply monitor circuit 49 has a comparator 49c.
Is provided and the battery voltage of the power cable 23c, which is dropped by the load resistor 49a, is the voltage dividing resistor 49a.
The voltage dividing resistors are connected to the non-inverting input terminal of the comparator 49c after being divided by d and 49e. The inverting input terminal divides the battery voltage on the electronic computer 30 side into a low battery voltage which is a reference voltage. 49f and 49g are provided. The output terminal of the comparator 49c is the CPU 37
Connected to the interrupt terminal INTA. Therefore,
The comparator 49c determines whether or not the battery voltage of the battery 21a does not become lower than the low battery voltage. The low battery voltage is set higher than the reset generation voltage of the printer 10 by about 0.2 [V]. When the battery voltage drops below the low battery voltage, the comparator 4
When the output voltage of 9c is L level, an interrupt signal is generated to the CPU 17. In response to this interrupt signal, the CPU 17 outputs an ON / OFF control signal from the output port P2 to the switching transistor 20a via the above-mentioned signal line 23a. In the printer-side interface 10a, assuming that the battery voltage of the battery 21a is low, the power transistor 20b controlled by the switching transistor 20a is turned off to disconnect the battery 21a from the power supply drive circuit 20c. Here, even if the power supply circuit 51 of the computer side interface 30a is cut off, the ON / OFF control signal output from the CPU 37 is at the L level, so the power supply of the printer 30 is cut off and the failure occurs. Safe is protected. Also, as mentioned above, CP
The U 37 exchanges control signals such as print data and ready and busy signals, which will be described later, with the CPU 14 via the buffer 42a.

【0018】以上示した構成のプリンタ10および電子
計算機30を有する情報処理装置5の電源管理について
説明する。図3は電子計算機30のCPU37が実行す
るプリンタ電源ONルーチンを示すフローチャートであ
る。本ルーチンはアプリケーションプログラムからの要
求にしたがって開始される。CPU37はプリンタ10
の電源オンの要求に際して、まず、RAM39に割り当
てられた1ビットのONフラグ39bおよびローバッテ
リフラグ39aをそれぞれLレベルにセットして初期化
する(ステップS120、S130)。CPU37の割
込み端子INTAがHレベルになっていて割込み禁止状
態になっているかどうかを調べる(ステップS14
0)。前述したように、プリンタ10側の電池電圧がロ
ーバッテリ電圧以上であれば、割込み端子INTAはH
レベルの電圧となる。割込み端子INTAがLレベルの
電圧であるときにはコネクタ22、45間の電源ケーブ
ル23eが正しく接続されていないか、プリンタ10の
電池電圧がローバッテリ電圧以下ということになる。こ
こで、割込み端子INTAがLレベルの電圧であるとき
にはアプリケーションプログラムへのリターンコードに
「プリンタ・ローバッテリ」をセットして(ステップS
260)、本ルーチンを終了する。
Power management of the information processing apparatus 5 having the printer 10 and the electronic computer 30 having the above-described configurations will be described. FIG. 3 is a flowchart showing a printer power ON routine executed by the CPU 37 of the electronic computer 30. This routine is started according to the request from the application program. The CPU 37 is the printer 10
When the power is turned on, the 1-bit ON flag 39b and the low battery flag 39a assigned to the RAM 39 are set to the L level and initialized (steps S120 and S130). It is checked whether the interrupt terminal INTA of the CPU 37 is at the H level and is in the interrupt disabled state (step S14).
0). As described above, if the battery voltage on the printer 10 side is equal to or higher than the low battery voltage, the interrupt terminal INTA becomes H level.
It becomes the level voltage. When the interrupt terminal INTA is at the L level voltage, it means that the power cable 23e between the connectors 22 and 45 is not properly connected or the battery voltage of the printer 10 is lower than the low battery voltage. When the interrupt terminal INTA is at the L level voltage, "printer low battery" is set as the return code to the application program (step S
260), and this routine ends.

【0019】ステップS140で、割込み端子INTA
がHレベルになっているときには再度、電池電圧をチェ
ックする。すなわち、CPU37の出力ポートP3をH
レベルの電圧にして(ステップS150)トランジスタ
49bをオンにし、プリンタ10が印字しているときと
同等のダミー負荷を有する抵抗器49aに通電を行なう
(ステップS160)。これにより、コンパレータ49
cからの出力がLレベルとなる場合はプリンタ10をO
Nにしてもすぐにローバッテリが発生してしまう可能性
が高いので、出力ポートP3をLレベルに戻して(ステ
ップS250)から前述のステップS260に移行して
本ルーチンを終了する。
In step S140, the interrupt terminal INTA
When is at H level, the battery voltage is checked again. That is, the output port P3 of the CPU 37 is set to H.
The voltage of the level is set (step S150), the transistor 49b is turned on, and the resistor 49a having a dummy load equivalent to that when the printer 10 is printing is energized (step S160). As a result, the comparator 49
When the output from c becomes L level, the printer 10 is turned on.
Since there is a high possibility that a low battery will be generated immediately even if it is set to N, the output port P3 is returned to the L level (step S250) and then the process proceeds to step S260 and the present routine is ended.

【0020】ステップS160の電池電圧のチェックで
もHレベルであったときには大丈夫と判断して出力ポー
トP3をLレベルに戻す(ステップS170)。つぎ
に、割込み処理を登録し(具体的には割込みベクタを設
定する)(ステップS180)、割込み端子INTAを
Lレベルにして割込み許可にする(ステップS19
0)。この後、割込みを禁止するまでの間、プリンタ1
0の電池電圧がローバッテリ電圧以下となったときに割
込みが発生し、図6に示す割込みINTA処理が実行さ
れる。つぎに、出力ポートP2にHレベルの信号を出力
する(ステップS200)。出力ポートP2からのHレ
ベルの信号により電源回路20のスイッチングトランジ
スタ20aがオンになり、プリンタ10が電源ONとな
る。RAM39のONフラグ39aにHレベルを書き込
み、プリンタ10が電源ON状態にあることを示す(ス
テップS210)。リターンコードに「正常終了」をセ
ットして(ステップS220)アプリケーションプログ
ラムに戻る。アプリケーションプログラムはリターンコ
ードが「正常終了」のときに、プリンタ10に対して印
字要求ができる。
If the battery voltage is checked at step S160 and it is still at the H level, then it is determined that there is no problem and the output port P3 is returned to the L level (step S170). Next, the interrupt process is registered (specifically, the interrupt vector is set) (step S180), and the interrupt terminal INTA is set to the L level to enable the interrupt (step S19).
0). After that, until the interrupt is disabled, the printer 1
When the battery voltage of 0 becomes equal to or lower than the low battery voltage, an interrupt occurs and the interrupt INTA process shown in FIG. 6 is executed. Next, an H level signal is output to the output port P2 (step S200). The switching transistor 20a of the power supply circuit 20 is turned on by the H level signal from the output port P2, and the printer 10 is turned on. The H level is written in the ON flag 39a of the RAM 39 to indicate that the printer 10 is in the power ON state (step S210). The return code is set to "normal end" (step S220), and the process returns to the application program. The application program can issue a print request to the printer 10 when the return code is “normal end”.

【0021】図4は印字要求ルーチンを示すフローチャ
ートである。本ルーチンは前述したようにアプリケーシ
ョンプログラムからの印字要求によって開始する。ま
ず、RAM39のONフラグ39bがHレベルにあるか
どうかを調べる(ステップS310)。ONフラグ39
bがLレベルのままであるときには、プリンタ10の電
源がONされていないか、プリンタ電源ONルーチンが
正常終了していないかのどちらかなので、再度、出力ポ
ートP2にLレベルの信号を出力してプリンタ10の電
源をオフにする(ステップS470)。割込みINTA
を禁止して(ステップS480)からリターンコードに
「プリンタOFF」をセットして(ステップS490)
本ルーチンを終了する。ONフラグ39bがHレベルで
あるときにはつづいてローバッテリフラグ39aがLレ
ベルであるかどうか調べる(ステップS320)。この
ローバッテリフラグ39aは前述した割込みINTA処
理ルーチンの中でHレベルにセットされるフラグであ
り、Hレベルのときにはローバッテリが発生したことに
なり、リターンコードに「ローバッテリ」セットして本
ルーチンを終了する。ローバッテリフラグ39aがLレ
ベルであるときには印字データの有無を調べる(ステッ
プS330)。印字データがなければリターンコードに
「正常終了」をセットして本ルーチンを終了する。印字
データがあるときには再びローバッテリフラグ39aが
Lレベルであるかどうかを確認する。これはループの中
で常にローバッテリを監視するためである。ここで、ロ
ーバッテリフラグ39aがHレベルであるときには前述
と同じようにリターンコードに「プリンタ・ローバッテ
リ」をセットして本ルーチンを終了する。ローバッテリ
フラグ39aがLレベルであるときにはコントロール線
23cが異常であるかどうかを調べる(ステップS35
0)。コントロール線23cに異常があるときには異常
要因を解析し(ステップS440)、異常要因をリター
ンコードにセットして(ステップS450)本ルーチン
を終了する。コントロール線23cに異常がないときに
はプリンタ10がレディ状態かどうかを調べる(ステッ
プS360)。プリンタ10がレディ状態でなくビジー
状態のときにはプリンタ10が内部処理実行中であり、
データを受信できないのでステップS340に戻ってロ
ーバッテリフラグ39aのチェックをくりかえす。プリ
ンタ10がレディ状態になるまでステップS340、S
350、S360のループをくりかえして待つことにな
る。ステップS360でプリンタ10がレディ状態であ
れば印字データを送信し(ステップS370)、再び、
ステップS330に戻って印字データの有無を調べる。
このループをデータがなくなるまでくりかえし、総ての
印字データを送信し終えると前述したようにステップS
400でリターンコードに「正常終了」をセットして本
ルーチンを終了する。
FIG. 4 is a flow chart showing the print request routine. This routine is started by a print request from the application program as described above. First, it is checked whether the ON flag 39b of the RAM 39 is at the H level (step S310). ON flag 39
When b remains at the L level, either the power of the printer 10 is not turned on or the printer power ON routine is not normally completed. Therefore, the L level signal is output again to the output port P2. Power off the printer 10 (step S470). Interrupt INTA
Prohibited (step S480), and then set the return code to "printer OFF" (step S490)
This routine ends. When the ON flag 39b is at the H level, it is then checked whether the low battery flag 39a is at the L level (step S320). This low battery flag 39a is a flag that is set to the H level in the above-mentioned interrupt INTA processing routine, and when it is at the H level, it means that a low battery has occurred. Therefore, "low battery" is set in the return code and this routine is executed. To finish. When the low battery flag 39a is at the L level, the presence or absence of print data is checked (step S330). If there is no print data, the return code is set to "normal end" and this routine ends. When there is print data, it is confirmed again whether the low battery flag 39a is at the L level. This is to constantly monitor the low battery in the loop. Here, when the low battery flag 39a is at the H level, the "printer low battery" is set as the return code and the present routine is terminated as described above. When the low battery flag 39a is at the L level, it is checked whether the control line 23c is abnormal (step S35).
0). When there is an abnormality in the control line 23c, the cause of abnormality is analyzed (step S440), the cause of abnormality is set in the return code (step S450), and this routine ends. When there is no abnormality in the control line 23c, it is checked whether the printer 10 is ready (step S360). When the printer 10 is in the busy state instead of the ready state, the printer 10 is executing internal processing,
Since data cannot be received, the process returns to step S340 and the low battery flag 39a is repeatedly checked. Steps S340, S until printer 10 is ready
The loop of 350 and S360 is repeated and waits. If the printer 10 is ready in step S360, print data is transmitted (step S370), and
Returning to step S330, the presence or absence of print data is checked.
This loop is repeated until there is no more data, and when all the print data has been transmitted, as described above, step S
At 400, the return code is set to "normal end" and this routine is ended.

【0022】図5はプリンタ電源OFFルーチンを示す
フローチャートである。本ルーチンはアプリケーション
からの「プリンタ電源OFF」要求があるとき、あるい
は電子計算機30の電源をOFFするときに開始され
る。まず、出力ポートP2をLレベルにしてプリンタ1
0の電源をOFFにする(ステップS610)。割込み
INTAを禁止状態に戻し(ステップS620)、ON
フラグ39bをLレベルの電圧に戻す(ステップS63
0)。リターンコードに「正常終了」を設定し(ステッ
プS640)、本ルーチンを終了してアプリケーション
プログラムあるいは電子計算機30の電源OFFに戻
る。
FIG. 5 is a flowchart showing a printer power OFF routine. This routine is started when there is a "printer power off" request from the application or when the power of the electronic computer 30 is turned off. First, the output port P2 is set to the L level, and the printer 1
The power of 0 is turned off (step S610). The interrupt INTA is returned to the disabled state (step S620), ON
The flag 39b is returned to the L level voltage (step S63).
0). "Normal termination" is set as the return code (step S640), this routine is terminated, and the application program or the computer 30 is turned off again.

【0023】図6は割込みINTA処理ルーチンを示す
フローチャートである。本ルーチンは図3のプリンタ電
源ONルーチンのステップS190で割込み許可となっ
てから図5のプリンタ電源OFFルーチンのステップS
620で割込み禁止となるまでの間に割込み端子INT
AがLレベルとなったときに実行される処理である。ま
ず、ローバッテリフラグ39aにHレベルを書き込み
(ステップS670)ホ、ローバッテリの発生を示し、
出力ポートP1にHレベルの信号を出力してプリンタ1
0の割込みINTB端子にローバッテリの発生を知らせ
て本ルーチンを一旦終了する。
FIG. 6 is a flowchart showing the interrupt INTA processing routine. In this routine, after interruption is permitted in step S190 of the printer power ON routine of FIG. 3, step S of the printer power OFF routine of FIG.
Interrupt terminal INT until the interrupt is disabled at 620
This is a process executed when A becomes L level. First, an H level is written in the low battery flag 39a (step S670).
The printer 1 outputs an H level signal to the output port P1.
The generation of low battery is notified to the interrupt INTB terminal of 0, and this routine is once ended.

【0024】つぎに、プリンタ10の印字制御について
説明する。図7はプリンタ10の印字制御ルーチンを示
すフローチャートである。本ルーチンは電源がONして
起動直後、あるいはリセットによって開始される。ま
ず、入出力ポート等の初期設定を行ない(ステップS8
10)、この内部の処理が終了するまでの間、ビジー信
号を出力する(ステップS820)。割込み端子INT
B(この時点では割り込み禁止状態のため入力ポートと
なる)がHレベルにあるかどうかを調べる(ステップS
840)。前述したように、ローバッテリが発生した場
合には電子計算機30からのローバッテリ信号によって
この割込み端子INTBのポートはLレベルとなる。割
込み端子INTBのポートがLレベルのとき、ステップ
S980に処理は移行し、LED表示器17に「ローバ
ッテリ」を示す表示を行ない、このコントロール線23
cにもローバッテリを出力し(ステップS980)、リ
セットが発生するのを待つ(ステップS990)。この
後は、電池21aの残存容量がなくなりリセットとなる
か、電子計算機30からの電源OFF信号によってリセ
ットが発生し内部電源の供給が停止しOFFとなるかで
ある。ローバッテリ信号の発生時に直ちに電源OFFと
しないのはプリンタ側の表示によっても使用者にローバ
ッテリの発生を知らせるためである。ステップS840
で割込み端子INTBがHレベルのときはRAM16に
割り当てられた1ビットのローバッテリフラグ16aを
Lレベルにクリアする(ステップS850)。図8に示
す割込みINTB処理を登録し(ステップS860)、
割込みINTBを許可する(ステップS870)。この
後、ローバッテリの発生によって割込みINTBが発生
したときには図8の割込みINTB処理が自動的に実行
される。
Next, the print control of the printer 10 will be described. FIG. 7 is a flowchart showing a print control routine of the printer 10. This routine is started immediately after the power is turned on and then started or by a reset. First, initial settings such as input / output ports are made (step S8).
10) Until the internal processing is completed, a busy signal is output (step S820). Interrupt terminal INT
It is checked whether B (which becomes an input port because the interrupt is disabled at this point) is at the H level (step S
840). As described above, when a low battery is generated, the port of the interrupt terminal INTB becomes L level by the low battery signal from the electronic computer 30. When the port of the interrupt terminal INTB is at the L level, the process proceeds to step S980, the LED display 17 displays "low battery", and the control line 23
The low battery is also output to c (step S980), and the occurrence of reset is awaited (step S990). After this, the remaining capacity of the battery 21a is exhausted and the battery 21a is reset, or the power is turned off by the power off signal from the electronic computer 30 and the supply of the internal power supply is stopped to be turned off. The reason why the power is not turned off immediately when the low battery signal is generated is to notify the user of the generation of the low battery also by the display on the printer side. Step S840
When the interrupt terminal INTB is at H level, the 1-bit low battery flag 16a assigned to the RAM 16 is cleared to L level (step S850). Register the interrupt INTB processing shown in FIG. 8 (step S860),
The interrupt INTB is permitted (step S870). After that, when the interrupt INTB is generated due to the generation of the low battery, the interrupt INTB processing of FIG. 8 is automatically executed.

【0025】つぎに、ローバッテリフラグがLレベルで
あるかどうかを調べる(ステップS890)。Hレベル
のときにはローバッテリが発生したことになり、ステッ
プS980、ステップS990でリセット待ちの状態と
なる。ステップS890でLレベルときは印刷用紙の有
無などの異常がないかどうかを調べる(ステップS90
0)。異常がある場合にはLED表示器17に異常要因
を示す表示を行ない(ステップS1000)、コントロ
ール線23cに異常内容を出力してステップS890に
戻る。ステップS890、S900、S1000のルー
プで異常要因が取り除かれるのを待つ。ステップS90
0で異常無しのときにはLED表示器17に正常動作を
表示し(ステップS910)、コントロール線23cに
も異常なしを出力し、受信準備が整ったことを示すレデ
ィ信号を出力する(ステップS920)。つぎに、印字
データがあるかどうかを調べる(ステップS930)。
印字データがないときにはステップS890へ戻り、ス
テップS890、S900、S910、S920、S9
30と印字データがくるまで処理をくりかえす。ステッ
プS930で印字データがあるときにはステップS94
0で印字データをバッファ19aに取り込む。ステップ
S950では1ライン分の印字データがバッファ19a
収納されたかどうかを調べる(ステップS950)。1
ライン分の印字データが収納されていないときにはステ
ップS890に戻り、ステップS890、S900、S
910、S920、S930、S940、S950と処
理をくりかえして1ライン分の印字データが収納される
のを待つ。ステップS950で1ライン分の印字データ
が収納されたときには印字処理を行なうために印字デー
タの受信ができないことを示すビジー信号を出力して
(ステップS960)、印字処理を行なう(ステップS
970)。再び、ステップS890に戻り同様の処理を
くりかえす。尚、印字された1ライン分の印字データは
バッファ19aから消去される。
Next, it is checked whether or not the low battery flag is at L level (step S890). When it is at the H level, it means that a low battery has been generated, and the reset waiting state is set in steps S980 and S990. When it is L level in step S890, it is checked whether or not there is any abnormality such as the presence or absence of printing paper (step S90).
0). If there is an abnormality, a display indicating the cause of the abnormality is displayed on the LED display 17 (step S1000), the content of the abnormality is output to the control line 23c, and the process returns to step S890. The process waits until the cause of abnormality is removed in the loop of steps S890, S900, and S1000. Step S90
If 0 indicates no abnormality, normal operation is displayed on the LED display 17 (step S910), no abnormality is output to the control line 23c, and a ready signal indicating that preparation for reception is completed is output (step S920). Next, it is checked whether or not there is print data (step S930).
When there is no print data, the process returns to step S890, and steps S890, S900, S910, S920, S9.
Repeat the process until 30 and print data arrive. If there is print data in step S930, step S94
At 0, the print data is fetched into the buffer 19a. In step S950, the print data for one line is stored in the buffer 19a.
It is checked whether or not it is stored (step S950). 1
When the print data for the line is not stored, the process returns to step S890, and steps S890, S900, S
The processing is repeated 910, S920, S930, S940, and S950 to wait until one line of print data is stored. When the print data for one line is stored in step S950, a busy signal indicating that the print data cannot be received because the print processing is performed (step S960), and the print processing is performed (step S960).
970). Again, the process returns to step S890 and the same processing is repeated. The printed data for one line is erased from the buffer 19a.

【0026】図8は割込みINTB処理ルーチンを示す
フローチャートである。図7のステップS870で割込
み許可となってから割込み端子INTBがLレベルとな
って割込み信号が発生したときに実行される処理であ
る。ローバッテリフラグにHレベルを書き込み(ステッ
プS1020)、本ルーチンを一旦終了する。
FIG. 8 is a flowchart showing the interrupt INTB processing routine. This processing is executed when the interrupt terminal INTB goes to L level and an interrupt signal is generated after the interrupt is permitted in step S870 of FIG. The H level is written in the low battery flag (step S1020), and this routine is once ended.

【0027】以上示したように、本実施例の電源管理装
置が適用された情報処理装置5によれば、印字データの
送信途中で電池21aの電圧低下が発生しても電池電圧
の低下は印刷中に常に監視されていて電池電圧の低下に
よって「ローバッテリ」をリターンコードにセットして
印字要求ルーチンを終了するので、通信のハンドシェイ
クが崩れてプリンタ10や電子計算機30が停止、誤動
作したりすることを防ぐことができる。
As described above, according to the information processing device 5 to which the power management device of the present embodiment is applied, even if the voltage of the battery 21a drops during the transmission of print data, the battery voltage will not drop. It is constantly monitored inside, and when the battery voltage drops, "low battery" is set to the return code and the print request routine ends, so the communication handshake collapses and the printer 10 and computer 30 stop and malfunction. Can be prevented.

【0028】また、印字データが送信されて来ないこと
をタイムアウトするまで待たなくて済ますことができ
る。さらに、多芯ケーブル23がコネクタ22、45間
で接続された状態で電子計算機30側からプリンタ10
の電源ON/OFF制御を行なうので、電子計算機30
がプリンタ10と通信できない状態、例えば電子計算機
30の電源がOFFしているとき、多芯ケーブル23が
未装着であるときに電源の消し忘れなどを避けることが
でき、細かな電源管理を行なうことができる。
Further, it is not necessary to wait until the print data is not transmitted until it times out. Further, in a state where the multi-core cable 23 is connected between the connectors 22 and 45, the printer 10 is connected from the computer 30 side.
Since the power ON / OFF control of the
Is unable to communicate with the printer 10, for example, when the computer 30 is powered off or the multi-core cable 23 is not attached, it is possible to avoid forgetting to turn off the power supply and perform detailed power management. You can

【0029】さらに、接続されている双方に同等に表示
機能を持つ必要がなく、電源を管理している一方が接続
されているもう一方の機器の状態を知ることが容易であ
り、使用者においても電源を管理している一方の機器の
表示だけで状態を知ることができる。
Furthermore, it is not necessary for both connected devices to have the same display function, and it is easy for the user to know the status of the other device that is connected to one of the connected power supplies. Also, the status can be known only from the display of one device that manages the power supply.

【0030】尚、本実施例では、プリンタ10側にLE
D表示器17を設けて電源の状態を表示できるようにし
たが、プリンタ10側にLED表示器17を設けなくと
も電源を管理している電子計算機30側だけで電源の状
態を表示できるようにしてもよい。
In this embodiment, the LE is installed on the printer 10 side.
Although the D display unit 17 is provided so that the power supply state can be displayed, even if the LED display unit 17 is not provided on the printer 10 side, only the electronic computer 30 side that manages the power supply can display the power supply state. May be.

【0031】[第2実施例]つぎに、第2実施例の電源
管理装置について説明するが、前記第1実施例と較べて
電源回路120およびCPU114の構成が異なるだけ
で他の電気的構成は同じである。図9は電源回路120
の電気的構成を示す回路図である。前記第1実施例と同
一の部分は同一の符号を用いて示す。即ち、スイッチン
グトランジスタ20aと並列にスイッチングトランジス
タ20eが設けられている。このスイッチングトランジ
スタ20eのベース入力端子CPU114の出力ポート
P1が接続され、CPU114が出力ポートP1をHレ
ベルにすると、スイッチングトランジスタ20eはオン
になる。ここで、電源ON/OFFを示す信号線23a
によってプリンタ10の電源がONするまでは電源回路
120からプリンタ10の各部に電力供給されてないの
で、CPU114の出力ポートP1はLレベル、あるい
はハイインピーダンス状態になっているので、スイッチ
ングトランジスタ20eはオフである。この状態で電源
ON/OFFを示す信号線23aにHレベルのON信号
が伝達されると、前記第1実施例と同様にスイッチング
トランジスタ20a、パワートランジスタ20bがとも
にオンになって電池21aの電池電圧のチェックが行わ
れた後に電源駆動回路20cに電池21aの電池電圧が
加えられることになる。プリンタ10の電源がONとな
った後は出力ポートP1の出力がLレベルであるときに
はスイッチングトランジスタ20eはオフであり、電源
ON/OFFを示す信号線23aの電源ON信号によっ
てスイッチングトランジスタ20aはオンになり、それ
によってパワートランジスタ20bがオンになって電池
電圧は維持される。
[Second Embodiment] Next, a power management apparatus of a second embodiment will be described. However, the electric power management circuit of the second embodiment is different from that of the first embodiment only in the configurations of the power supply circuit 120 and the CPU 114, and other electrical configurations are different. Is the same. FIG. 9 shows a power supply circuit 120
3 is a circuit diagram showing the electrical configuration of FIG. The same parts as those in the first embodiment are designated by the same reference numerals. That is, the switching transistor 20e is provided in parallel with the switching transistor 20a. The output port P1 of the base input terminal CPU114 of the switching transistor 20e is connected, and when the CPU 114 sets the output port P1 to the H level, the switching transistor 20e is turned on. Here, the signal line 23a indicating the power ON / OFF
Since power is not supplied from the power supply circuit 120 to each part of the printer 10 until the printer 10 is turned on, the output port P1 of the CPU 114 is at the L level or in the high impedance state, so the switching transistor 20e is turned off. Is. In this state, when an H level ON signal is transmitted to the signal line 23a indicating the power ON / OFF, both the switching transistor 20a and the power transistor 20b are turned on as in the first embodiment, and the battery voltage of the battery 21a is increased. After the check is performed, the battery voltage of the battery 21a is applied to the power supply drive circuit 20c. After the power of the printer 10 is turned on, the switching transistor 20e is off when the output of the output port P1 is at L level, and the switching transistor 20a is turned on by the power on signal of the signal line 23a indicating power on / off. Then, the power transistor 20b is turned on and the battery voltage is maintained.

【0032】一方、出力ポートP1が出力がHレベルの
ときにはトランジスタ20eがオンとなるので、電源O
N/OFFを示す信号線23aがLレベルの電源OFF
信号であってスイッチングトランジスタ20aがオフで
あってもパワートランジスタ20bはオンになるので同
様に電池電圧は維持される。つまり、プリンタ10側の
電源がONした後は、出力ポートP1あるいは電源ON
/OFFを示す信号線23aがいずれもLレベルになっ
たときのみパワートランジスタ20bはオフとなり、電
池電圧の電源駆動回路20cへの供給は停止される。こ
れにより、プリンタ10は印字中や印字バッファに印字
データが残っているなどして電源をOFFされては困る
ときに出力ポートP1をHレベルにして電源をOFFで
きないようにし、印字処理が終了するまで引き延ばすこ
とができる。電源管理を行っている電子機器においても
接続相手の処理状態を意識せずに電源OFF信号を出力
することができる。
On the other hand, since the transistor 20e is turned on when the output of the output port P1 is at the H level, the power source O
The signal line 23a indicating N / OFF turns off the power at the L level
Even if the switching transistor 20a is a signal and the switching transistor 20a is off, the power transistor 20b is on, so that the battery voltage is maintained similarly. That is, after the power of the printer 10 is turned on, the output port P1 or the power is turned on.
The power transistor 20b is turned off only when the signal lines 23a indicating / OFF are both at the L level, and the supply of the battery voltage to the power supply drive circuit 20c is stopped. As a result, the printer 10 sets the output port P1 to the H level so that the power cannot be turned off when the power is turned off due to print data remaining in the print buffer or the like, and the print processing ends. Can be extended to. Even an electronic device that manages power supply can output a power-off signal without being aware of the processing state of the connection partner.

【0033】[第3実施例]つぎに、第3実施例の電源
管理装置について説明する。図10は本実施例の電源モ
ニタ回路の電気的構成を示す回路図である。前記第1実
施例と較べて電子計算機130の電源モニタ回路149
およびCPU137の構成が異なるだけで他の電気的構
成は同じである。前記第1実施例と同一の部分は同一の
番号で示してある。電源ケーブル23eにはダミーの負
荷として抵抗器155および抵抗器156がそれぞれト
ランジスタ153およびトランジスタ154に接続さ
れ、ダミーの負荷を2系統に用意することができる。ト
ランジスタ153および154のベース入力端子はCP
U137の出力ポートP3、P4に接続されており、C
PU137は出力ポートP3、P4を選択的にH/Lレ
ベルにすることにより、トランジスタ153、154を
オンオフすることができる。トランジスタ155、15
6をオンオフさせることによって、電源ケーブル23e
の負荷は「抵抗器155のみ」、「抵抗器156の
み」、「抵抗器155と抵抗器156の並列抵抗器」、
「負荷なし」の4つのダミーの負荷を選択することがで
きる。電源電圧の検出は、電源ケーブル23eを分圧抵
抗器175、176で分圧された電圧とアナログマルチ
プレクサ152の出力電圧152aをコンパレータ15
1で比較することにより行っている。アナログマルチプ
レクサ152はX1、X2、X3、Xの4端子に入力さ
れた電池電圧を選択端子A、BのH/Lの組み合わせで
X1〜X4の4入力の1つを選択してCOM端子に出力
する集積回路である。ここで、INH端子は出力の有無
をコントロールする信号が入力される端子であり、接地
(GND)することによりA、Bの選択に応じて常に出
力されていることになる。X1〜X4端子には安定化さ
れている内部動作電圧を分圧抵抗器183、184、1
85、186、187によって分圧して入力し、選択端
子A、BにはCPU137の出力ポートP5、P6の出
力信号が入力される。これにより、電源ケーブル23e
の抵抗器175および抵抗器176で分圧された電池電
圧Vaと比較するための、抵抗器183〜187で設定
した4種類の参照電圧Vx1、Vx2、Vx3、Vx4
を出力ポートP5、P6の電圧によつて選択することが
できる。コンパレータ151の出力はCPU137の割
込み端子INTAに接続され、電源ケーブル23eの分
圧された電池電圧Vaが選択された参照電圧Vx1、V
x2、Vx3、Vx4より低くなったときにLレベルを
信号を割込み端子INTAに出力して割込みINTA処
理を発生させる。
[Third Embodiment] A power management apparatus according to the third embodiment will be described below. FIG. 10 is a circuit diagram showing the electrical configuration of the power supply monitor circuit of this embodiment. Compared with the first embodiment, the power supply monitor circuit 149 of the electronic computer 130.
The other electrical configurations are the same except for the configuration of the CPU 137. The same parts as those in the first embodiment are indicated by the same numbers. A resistor 155 and a resistor 156 are connected as dummy loads to the power cable 23e to the transistors 153 and 154, respectively, so that dummy loads can be prepared for two systems. The base input terminals of the transistors 153 and 154 are CP
It is connected to the output ports P3 and P4 of U137, and C
The PU 137 can turn on / off the transistors 153 and 154 by selectively setting the output ports P3 and P4 to the H / L level. Transistors 155 and 15
By turning on and off 6, power cable 23e
Load is “only resistor 155”, “only resistor 156”, “parallel resistor of resistor 155 and resistor 156”,
Four dummy loads of "no load" can be selected. The power supply voltage is detected by comparing the voltage obtained by dividing the power supply cable 23e with the voltage dividing resistors 175 and 176 and the output voltage 152a of the analog multiplexer 152 into the comparator 15.
This is done by comparing in 1. The analog multiplexer 152 selects one of the four inputs X1 to X4 from the battery voltage input to the four terminals X1, X2, X3, and X by the combination of H / L of the selection terminals A and B, and outputs it to the COM terminal. Integrated circuit. Here, the INH terminal is a terminal to which a signal for controlling the presence / absence of the output is input, and by being grounded (GND), it is always output according to the selection of A and B. The stabilized internal operating voltage is applied to the voltage dividing resistors 183, 184, 1 at terminals X1 to X4.
The signals are divided by 85, 186 and 187 and input, and the output signals of the output ports P5 and P6 of the CPU 137 are input to the selection terminals A and B. As a result, the power cable 23e
Four reference voltages Vx1, Vx2, Vx3, Vx4 set by the resistors 183 to 187 for comparison with the battery voltage Va divided by the resistors 175 and 176 of FIG.
Can be selected according to the voltage of the output ports P5 and P6. The output of the comparator 151 is connected to the interrupt terminal INTA of the CPU 137, and the divided battery voltage Va of the power cable 23e is the selected reference voltage Vx1, Vx.
When it becomes lower than x2, Vx3, and Vx4, an L level signal is output to the interrupt terminal INTA to generate interrupt INTA processing.

【0034】電子計算機130のCPU137はアプリ
ケーションプログラムから接続された機器の電源をON
にする要求が出されたときにその機器に応じて参照電圧
Vx1、Vx2、Vx3、Vx4を出力ポートP5、P
6の出力によって選択し、かつその機器に応じたダミー
の負荷を出力ポートP3、P4の出力によって選択す
る。ダミーの負荷が選択されると電源ON/OFFを示
す信号線23aによって接続されたプリンタ10などの
機器の電源をONにする。このとき、出力ポートP5、
P6のH/L設定はアプリケーションプログラムから電
源OFFの要求があるまでそのままとする。CPU13
7では割込み端子INTAがLレベルとなったときにロ
ーバッテリ信号を示す信号線23bを介してローバッテ
リであることを知らせるのは前記第1実施例と同様であ
る。
The CPU 137 of the electronic computer 130 turns on the power of the equipment connected from the application program.
When a request to turn on is issued, the reference voltages Vx1, Vx2, Vx3, and Vx4 are output ports P5 and P according to the device.
6 output, and a dummy load corresponding to the device is selected by the output ports P3 and P4. When the dummy load is selected, the power of the device such as the printer 10 connected by the signal line 23a indicating the power ON / OFF is turned on. At this time, the output port P5,
The H / L setting of P6 remains unchanged until the application program requests power off. CPU13
In No. 7, when the interrupt terminal INTA becomes L level, the fact that the battery is a low battery is notified via the signal line 23b indicating the low battery signal, as in the first embodiment.

【0035】以上示したように、第3実施例の電源管理
装置によれば、消費電力の異なった複数種類の接続機器
に対応することができる。
As described above, according to the power management device of the third embodiment, it is possible to support a plurality of types of connected devices with different power consumption.

【0036】[第4実施例]つぎに、第4実施例の電源
管理装置について説明する。図11は電源モニタ回路1
49の電気的構成を示す回路図である。本実施例の電源
管理装置はプリンタと通信処理中に電子計算機で電池電
圧の低下を検出すると、プリンタ側の電源ケーブルから
の電池電圧によって処理を継続し、処理の終了後に電池
電圧の低下の処理に移るようにしたものである。前記第
1実施例と較べて電源モニタ回路149およびCPU2
37の構成を変更するだけで構成される。その他の前記
第1実施例と同一の部分は同一の符号で示されている。
[Fourth Embodiment] A power management apparatus according to the fourth embodiment will be described below. FIG. 11 shows a power supply monitor circuit 1
It is a circuit diagram which shows the electric constitution of 49. When the power management apparatus of the present embodiment detects a decrease in the battery voltage with the computer during the communication process with the printer, the process is continued by the battery voltage from the power cable on the printer side, and the process of the decrease in the battery voltage is performed after the process is completed. It was made to move to. Compared with the first embodiment, the power supply monitor circuit 149 and the CPU 2
It is configured only by changing the configuration of 37. The other parts that are the same as those in the first embodiment are designated by the same reference numerals.

【0037】電子計算機230の動作電源である電池5
4aの出力はパワートランジスタ205、ダイオード2
06を介して電源回路211の入力端子に接続されてい
る。パワートランジスタ205を駆動するスイッチング
トランジスタ209はON/OFF制御部202に接続
されている。このON/OFF制御部202にはスイッ
チ203が設けられており、このスイッチ203をON
にすることによりON/OFF制御部202の出力はH
レベルになり、スイッチングトランジスタ209はオン
する。これに伴ってパワートランジスタ205、ダイオ
ード206を介して電池54aの電池電圧は電源回路2
11に入力される。
The battery 5 which is the operating power source of the electronic computer 230
The output of 4a is a power transistor 205, a diode 2
It is connected to the input terminal of the power supply circuit 211 via 06. The switching transistor 209 that drives the power transistor 205 is connected to the ON / OFF control unit 202. The ON / OFF control unit 202 is provided with a switch 203, and the switch 203 is turned ON.
The output of the ON / OFF control unit 202 becomes H
The switching transistor 209 is turned on and the switching transistor 209 is turned on. Along with this, the battery voltage of the battery 54a is controlled by the power supply circuit 2 via the power transistor 205 and the diode 206.
11 is input.

【0038】電源回路211は電源ケーブル207を介
して入力された電圧をあらかじめ設定されたリセット電
圧およびローバッテリ電圧と常に比較する。ここで、リ
セット電圧はローバッテリ電圧より小さい(リセット電
圧<ローバッテリ電圧)関係に設定されている。電源ケ
ーブル207を介して入力された電池電圧がローバッテ
リ電圧より低いときにはローバッテリを示す信号線21
3をLレベルにしてCPU237の割込み端子INTC
に出力して割込みINTC処理を発生させ、リセット電
圧より低いときにはリセット線212をLレベルにして
CPU237をリセットする。
The power supply circuit 211 constantly compares the voltage input through the power supply cable 207 with the preset reset voltage and low battery voltage. Here, the reset voltage is set to be smaller than the low battery voltage (reset voltage <low battery voltage). When the battery voltage input via the power cable 207 is lower than the low battery voltage, the signal line 21 indicating the low battery
3 is set to the L level and the interrupt terminal INTC of the CPU 237 is set.
To generate the interrupt INTC process, and when the voltage is lower than the reset voltage, the reset line 212 is set to the L level to reset the CPU 237.

【0039】CPU237の出力ポートP7はスイッチ
ングトランジスタ210のベース入力端子に接続されて
おり、出力ポートP7をHレベルにすることによりスイ
ッチングトランジスタ210をオンにしてパワートラン
ジスタ209を駆動する。これにより、プリンタ10側
の電源ケーブル23eに接続された電池21aの電池電
圧はダイオード208を介して電源回路211に入力さ
れる。したがって、電源回路211には、プリンタ10
側の電池21aおよび電子計算機230側の電池54a
が選択的に電力供給されることになる。ここで、ダイオ
ード206、208はプリンタ10側の電池21aおよ
び電子計算機230側の電池54aの間で流れ込みが起
きないように逆流防止用のダイオードである。
The output port P7 of the CPU 237 is connected to the base input terminal of the switching transistor 210, and the switching transistor 210 is turned on to drive the power transistor 209 by setting the output port P7 to the H level. As a result, the battery voltage of the battery 21a connected to the power cable 23e on the printer 10 side is input to the power supply circuit 211 via the diode 208. Therefore, the power supply circuit 211 includes the printer 10
Side battery 21a and electronic computer 230 side battery 54a
Will be selectively powered. Here, the diodes 206 and 208 are diodes for preventing backflow so that no inflow occurs between the battery 21a on the printer 10 side and the battery 54a on the electronic computer 230 side.

【0040】また、RAM39に処理中フラグ39cを
割り当てると、通信処理をしているときには、その処理
中フラグ39cをHレベルにして処理中であることを示
し、通信処理の終了時には処理中フラグ39cをLレベ
ルにセットする。また、出力ポートP7もLレベルにセ
ットする。ローバッテリ信号がCPU237に入力され
ると、CPU237は割込みINTC処理を実行する。
割込みINTC処理では、まず処理中フラグ39cがH
レベルにあるかどうかを調べ、Hレベルになければ通常
のローバッテリ処理を行なう。Hレベルのときには出力
ポートP7をHレベルにしてローバッテリを示す信号線
213がHレベルに切り替わることをINTC入力ポー
トで確認する。Hレベルに切り替わらなければ出力ポー
トP7をLレベルに戻し、そのままローバッテリ処理を
行なう。Hレベルになったときには割込み処理を終了し
そのまま印字処理を継続する。印字処理が終了して処理
中フラグ39cをLレベルにし出力ポートをLレベルに
した時点でローバッテリが発生すればローバッテリ処理
が行なわれる。
When the in-process flag 39c is assigned to the RAM 39, it indicates that the in-process flag 39c is set to the H level during the communication process, and that the in-process flag 39c is set at the end of the communication process. Is set to L level. Also, the output port P7 is set to the L level. When the low battery signal is input to the CPU 237, the CPU 237 executes the interrupt INTC process.
In the interrupt INTC processing, first, the processing flag 39c is set to H.
Whether or not it is in the level is checked, and if it is not in the H level, normal low battery processing is performed. When it is H level, the INTC input port confirms that the output port P7 is set to H level and the signal line 213 indicating the low battery is switched to H level. If not switched to the H level, the output port P7 is returned to the L level and the low battery processing is performed as it is. When the H level is reached, the interrupt process is terminated and the printing process is continued. If a low battery is generated at the time when the printing process ends and the in-process flag 39c is set to the L level and the output port is set to the L level, the low battery process is performed.

【0041】以上示したように、電池54aの残存容量
が少なく、電池電圧が低くなってローバッテリ電圧以下
になったときにはローバッテリを示す信号線213がL
レベルとなって割込みINTC処理を実行すると、出力
ポートP7をHレベルにしてプリンタ10側の電池21
aの電圧が電源回路211に供給されて電子計算機はプ
リンタ10の電池21aで動作することになるので、プ
リンタの電源を管理している電子計算機の処理を確実に
終了することができる。また、接続された機器がプリン
タの場合はローバッテリ電圧が発生したことを印字して
記録に残すこともできる。
As described above, when the remaining capacity of the battery 54a is small and the battery voltage becomes low and becomes lower than the low battery voltage, the signal line 213 indicating the low battery is L.
When the interrupt INTC processing is performed when the level becomes the level, the output port P7 is set to the H level and the battery 21 of the printer 10 side is set.
Since the voltage of a is supplied to the power supply circuit 211 and the electronic computer operates on the battery 21a of the printer 10, the processing of the electronic computer that manages the power supply of the printer can be surely ended. Further, when the connected device is a printer, it is possible to print that the low battery voltage is generated and record it in a record.

【0042】[第5実施例]図12は第5実施例の電源
管理装置が適用された情報処理装置の電気的構成を示す
ブロック図である。本実施例の情報処理装置510はC
PU517、表示装置521、キーボード524、メイ
ンメモリ526、カウンタ528、タイマ536および
バッテリ541をバス543を介して備える。カウンタ
528はカウンタの専用バッテリ528aで電源バック
アップされている。カウンタ528は割込み回数を記憶
する。メインメモリ526には制御プログラムが格納さ
れている。主電池541からカウンタ528を除く各部
には電力供給線545が接続されている。カウンタ52
8は2バイトと記憶容量が小さく、それに使用される専
用電池528aも消費電力が少ないので、通常のアルカ
リ電池を使用できる。
[Fifth Embodiment] FIG. 12 is a block diagram showing the electrical construction of an information processing apparatus to which the power management apparatus of the fifth embodiment is applied. The information processing apparatus 510 of this embodiment is C
The PU 517, the display device 521, the keyboard 524, the main memory 526, the counter 528, the timer 536, and the battery 541 are provided via the bus 543. The power of the counter 528 is backed up by a dedicated battery 528a of the counter. The counter 528 stores the number of interrupts. A control program is stored in the main memory 526. A power supply line 545 is connected to each part of the main battery 541 except the counter 528. Counter 52
8 has a small storage capacity of 2 bytes, and the dedicated battery 528a used therein has low power consumption, so that a normal alkaline battery can be used.

【0043】本実施例の情報処理装置の動作について説
明する。図13はキーボード割込みルーチンを示すフロ
ーチャートである。本ルーチンはキーボード割込みによ
って実行される。すなわち、いずれかのキーが入力され
ると実行される。ここで、カウンタ528のカウント値
を「0」にするゼロクリアは、本装置の利用者が任意の
時期に行なえるが、通常は電池交換したとき、あるいは
再充電をした直後に行なうものである。ゼロクリアはキ
ーボード524の「CTRL」と「I」の2つのキーを
同時に押すことによってなされるが、まず「CTRL」
と「I」の2つのキーが同時に押されたかどうかを判断
する(ステップS510)。上記2つのキーが同時に押
されると、CPU517はカウンタ528に値「0」を
書き込んで(ステップS520)本ルーチンを一旦終了
する。
The operation of the information processing apparatus of this embodiment will be described. FIG. 13 is a flowchart showing the keyboard interrupt routine. This routine is executed by a keyboard interrupt. That is, it is executed when any key is input. Here, the zero clear for setting the count value of the counter 528 to “0” can be performed at any time by the user of this device, but normally it is performed when the battery is replaced or immediately after recharging. Zero-clear is done by pressing the two keys "CTRL" and "I" of the keyboard 524 at the same time. First, "CTRL"
It is determined whether or not the two keys "1" and "I" have been pressed simultaneously (step S510). When the above two keys are pressed at the same time, the CPU 517 writes the value "0" in the counter 528 (step S520), and once ends this routine.

【0044】タイマー536は電源投入直後から一定間
隔(本実施例では1秒)毎にタイマー割込み信号を発生
する。カウンタ528はタイマー割込み信号によってカ
ウント値をインクリメントするが、その記憶容量は2バ
イトであることから64K秒(約17〜18時間)をカ
ウントすることができる。現在のコンピュータ用の電池
の寿命を考慮するとこれだけの時間をカウントできれば
充分である。カウンタ528は専用電池528aで常に
電源バックアップされているので、本体の電源を切って
も1秒以内の誤差で通電時間としてのカウント値が記憶
されることになる。
The timer 536 generates a timer interrupt signal at regular intervals (1 second in this embodiment) immediately after the power is turned on. The counter 528 increments the count value by the timer interrupt signal, but since its storage capacity is 2 bytes, it can count 64K seconds (about 17 to 18 hours). Considering the current battery life of computers, it is sufficient to count such time. Since the power source of the counter 528 is always backed up by the dedicated battery 528a, even if the power of the main body is turned off, the count value as the energization time is stored with an error within 1 second.

【0045】図14はタイマー割込みルーチンを示すフ
ローチャートである。1秒毎にタイマー割込みが発生し
たら、CPU517はカウンタ528の値を読み込み
(ステップS610)、カウント値をインクリメントし
て(ステップS620)から再びカウンタ528に書き
込んで(ステップS630)本ルーチンを一旦終了す
る。
FIG. 14 is a flowchart showing the timer interrupt routine. When a timer interrupt occurs every one second, the CPU 517 reads the value of the counter 528 (step S610), increments the count value (step S620), and then writes the value again in the counter 528 (step S630), and this routine is once ended. .

【0046】CPU517は利用者によって「CTR
L」と「T」の2つのキーが同時に押されたかどうかを
判断し(ステップS530)、この2つのキーが同時に
押されることによってカウンタ528のカウント値を読
み込みを実行し(ステップS540)、読み込んだカウ
ント値を時、分、秒に換算して表示装置521に表示し
て本ルーチンを一旦終了する(ステップS550)。こ
れにより、利用者はいつでも累積された通電時間を知る
ことができる。他のキーが押されたときには通常のキー
入力処理を実行する(ステップS570)。
The CPU 517 is called "CTR" by the user.
It is determined whether or not the two keys "L" and "T" are pressed simultaneously (step S530), and the count value of the counter 528 is read by pressing these two keys at the same time (step S540). The count value is converted into hours, minutes, and seconds and displayed on the display device 521, and this routine is once ended (step S550). As a result, the user can always know the accumulated energization time. When another key is pressed, normal key input processing is executed (step S570).

【0047】前述したように、電池交換あるいは再充電
の直前に「CTRL」と「T」の2つのキーで通算の通
電時間を認識し、「CTRL」と「I」の2つのキーで
カウント値を「0」に戻しておく。こうした操作を何回
行なうことによって、利用者は電池交換あるいは再充電
までの平均的な通電時間を知ることができるようにな
る。したがって、使用中に電池切れの不安があれば「C
TRL」と「T」で時間を読み取り、平均通電時間と比
較することにより現在の残存容量を把握することができ
る。したがって、予め時間のあるときに充電等の処置を
とることができる。尚、カウンタ528はRAMで代用
してもよい。
As described above, the total energization time is recognized by the two keys "CTRL" and "T" immediately before the battery replacement or recharge, and the count value is recognized by the two keys "CTRL" and "I". Is reset to "0". By performing such an operation many times, the user can know the average energization time until the battery is replaced or recharged. Therefore, if you are worried about running out of battery during use, "C
The current remaining capacity can be grasped by reading the time with "TRL" and "T" and comparing it with the average energization time. Therefore, it is possible to take measures such as charging when there is time in advance. The counter 528 may be replaced with RAM.

【0048】[第6実施例]つぎに、第6実施例の電源
管理装置について説明する。図15は第6実施例の電源
管理装置の電気的構成を示すブロック図である。本実施
例の電源管理装置610は前記第5実施例にAC(交
流)外部電源611および電源判別装置615を付加し
て構成される。前記第5実施例と同一の部分は同一の符
号で示される。AC外部電源611は使用中にバッテリ
541を充電する構成を有する。CPU517は電源判
別装置615によって本体がバッテリ541で駆動され
ているか、AC(交流)外部電源611で駆動されてい
るかを判断し、AC外部電源611で駆動されている駆
動時間を前記第5実施例と同様の通電時間に積算しない
処理を行なう。図15はタイマー割込み処理ルーチンを
示すフローチャートである。電源判別装置615によっ
てバッテリ541かAC外部電源611のどちらである
かを判断し(ステップS705)、バッテリ駆動のとき
のみ前記第5実施例のステップS610〜S630と同
様の処理を行なってカウント値をインクリメントする
(ステップS710〜S730)。AC電源駆動である
ときにはカウント値をインクリメントすることなく、本
ルーチンを終了する。
[Sixth Embodiment] Next, a power management apparatus of a sixth embodiment will be described. FIG. 15 is a block diagram showing the electrical configuration of the power management device of the sixth embodiment. The power management device 610 of the present embodiment is configured by adding an AC (alternating current) external power supply 611 and a power supply discriminating device 615 to the fifth embodiment. The same parts as those in the fifth embodiment are designated by the same reference numerals. The AC external power supply 611 has a configuration for charging the battery 541 during use. The CPU 517 determines whether the main body is driven by the battery 541 or the AC (alternating current) external power source 611 by the power source determining device 615, and determines the drive time during which the main body is driven by the AC external power source 611 in the fifth embodiment. The same process as in (1) is performed without integrating the energization time. FIG. 15 is a flowchart showing the timer interrupt processing routine. Whether the battery 541 or the AC external power supply 611 is used is determined by the power supply discriminating device 615 (step S705), and only when the battery is driven, the same process as steps S610 to S630 of the fifth embodiment is performed to determine the count value. Increment (steps S710 to S730). When the AC power supply is being driven, this routine is ended without incrementing the count value.

【0049】以上示したように、専用のハードウェアを
設けることなく、従来のハードウェアのままでタイマー
割込み処理ルーチンとカウンタを電源バックアップする
専用バッテリを設けるだけの簡単な構成で利用価値の高
い通電時間の表示を行なうことができる。
As described above, energization with a high utility value is achieved by simply providing a timer interrupt processing routine and a dedicated battery for backing up the power of the counter without changing the dedicated hardware, without providing dedicated hardware. The time can be displayed.

【0050】[0050]

【発明の効果】本発明の電源管理装置によれば、それぞ
れの電子機器にそれぞれの消費電力に応じた容量の電池
を搭載しておき、一方の電子機器によって他方の電子機
器の電源を管理するので、双方の電子機器に電源スイッ
チやその表示器を設けなくて済ますことができる。ま
た、双方の電源の確認をしなくても済む。このように、
一方の電子機器によって他方の電子機器の電源を管理す
る場合に、電子機器間に消費電力の不釣合があっても一
方の電子機器にだけ過剰な電池を搭載してなくて済ます
ことができる。
According to the power management apparatus of the present invention, each electronic device is equipped with a battery having a capacity corresponding to its power consumption, and one electronic device manages the power supply of the other electronic device. Therefore, it is not necessary to provide a power switch and its display on both electronic devices. Also, it is not necessary to check the power supplies of both sides. in this way,
When one electronic device manages the power supply of the other electronic device, even if there is a power consumption imbalance between the electronic devices, it is not necessary to install an excessive battery in only one electronic device.

【0051】また、通信を行なっている双方の電子機器
の電源を一方の電子機器が管理することとなるので、一
方の電子機器だけが電池電圧の低下により通信を一方的
に中断してしまうといったことを防ぐことができる。
Also, since the power supply of both electronic devices that are communicating is managed by one electronic device, only one electronic device unilaterally interrupts communication due to a decrease in battery voltage. Can be prevented.

【0052】さらに、電池駆動される電子機器の通電時
間をカウンタに記憶されている割込み信号の回数から知
ることができるので、専用のハードウェアを設けること
なく、カウンタなど既存のハードウェアを使って利用価
値の高い通電時間の表示を行なうことができる。
Furthermore, since the energization time of the battery-driven electronic equipment can be known from the number of interrupt signals stored in the counter, existing hardware such as a counter can be used without providing dedicated hardware. It is possible to display the energization time with high utility value.

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

【図1】第1実施例の電源管理装置が適用された情報処
理装置5の電気的構成を示す回路図である。
FIG. 1 is a circuit diagram showing an electrical configuration of an information processing device 5 to which a power management device of a first embodiment is applied.

【図2】プリンタ10と電子計算機30のインターフェ
ース部分の電気的構成を示す回路図である。
2 is a circuit diagram showing an electrical configuration of an interface portion between the printer 10 and the electronic computer 30. FIG.

【図3】プリンタ電源ONルーチンを示すフローチャー
トである。
FIG. 3 is a flowchart showing a printer power ON routine.

【図4】印字要求ルーチンを示すフローチャートであ
る。
FIG. 4 is a flowchart showing a print request routine.

【図5】プリンタ電源OFFルーチンを示すフローチャ
ートである。
FIG. 5 is a flowchart showing a printer power OFF routine.

【図6】割込みINTA処理ルーチンを示すフローチャ
ートである。
FIG. 6 is a flowchart showing an interrupt INTA processing routine.

【図7】印字制御処理ルーチンを示すフローチャートで
ある。
FIG. 7 is a flowchart showing a print control processing routine.

【図8】割込みINTB処理ルーチンを示すフローチャ
ートである。
FIG. 8 is a flowchart showing an interrupt INTB processing routine.

【図9】第2実施例の電源管理装置が適用されたプリン
タ側の電源回路120の電気的構成を示す回路図であ
る。
FIG. 9 is a circuit diagram showing an electrical configuration of a printer-side power supply circuit 120 to which the power management device of the second embodiment is applied.

【図10】第3実施例の電源管理装置が適用された電子
計算機130の電源モニタ回路149の電気的構成を示
す回路図である。
FIG. 10 is a circuit diagram showing an electrical configuration of a power supply monitor circuit 149 of the electronic computer 130 to which the power supply management device of the third embodiment is applied.

【図11】第4実施例の電源管理装置が適用された電源
モニタ回路149の電気的構成を示す回路図である。
FIG. 11 is a circuit diagram showing an electrical configuration of a power supply monitor circuit 149 to which the power supply management device of the fourth embodiment is applied.

【図12】第5実施例の電源管理装置が適用された情報
処理装置510の電気的構成を示すブロック図である。
FIG. 12 is a block diagram showing an electrical configuration of an information processing device 510 to which the power management device of the fifth embodiment is applied.

【図13】キーボード割込みルーチンを示すフローチャ
ートである。
FIG. 13 is a flowchart showing a keyboard interrupt routine.

【図14】タイマー割込みルーチンを示すフローチャー
トである。
FIG. 14 is a flowchart showing a timer interrupt routine.

【図15】第6実施例の電源管理装置が適用された情報
処理装置510の電気的構成を示すブロック図である。
FIG. 15 is a block diagram showing an electrical configuration of an information processing device 510 to which the power management device of the sixth embodiment is applied.

【図16】タイマー割込みルーチンを示すフローチャー
トである。
FIG. 16 is a flowchart showing a timer interrupt routine.

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

5 … 情報処理装置 10 … プリンタ 20 … 電源回路 30 … 電子計算機 49 … 電源モニタ回路 5 ... Information processing device 10 ... Printer 20 ... Power supply circuit 30 ... Computer 49 ... Power supply monitor circuit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 電池を電源とする第1の電子機器を第2
の電子機器に接続し、前記第2の電子機器は前記第1の
電子機器の電源を管理する電源管理装置であって、 前記第2の電子機器は、 前記第1の電子機器の電池電圧を検出する電池電圧検出
手段と、 前記第1の電子機器の電源がオンの状態にあるときに、
前記電池電圧検出手段によって検出される前記電池電圧
を所定値と比較する比較手段と、 この比較手段によって前記電池電圧が前記所定値以下の
ときに前記第1の電子機器の電源をオフにするスイッチ
ング手段とを備えた電源管理装置。
1. A first electronic device having a battery as a power source is a second electronic device.
Is connected to the electronic device, the second electronic device is a power management device that manages the power supply of the first electronic device, and the second electronic device controls the battery voltage of the first electronic device. Battery voltage detection means for detecting, and when the power supply of the first electronic device is in the on state,
Comparing means for comparing the battery voltage detected by the battery voltage detecting means with a predetermined value, and switching for turning off the power source of the first electronic device by the comparing means when the battery voltage is less than or equal to the predetermined value. A power management device having means.
【請求項2】 前記第2の電子機器は、 前記第1の電子機器の前記電池を、この第1の電子機器
のダミーである負荷に接続する接続手段と、 この接続手段によって前記電池に接続された前記負荷の
電圧が所定値を越えているかどうかを検出する負荷電圧
検出手段とを備え、 前記スイッチング手段は前記第1の電子機器の電源をオ
ンにする電源オン手段を備え、 前記負荷電圧検出手段によって前記負荷の電圧が所定値
を越えているときに、前記電源オン手段によって前記第
1の電子機器の電源をオンにすることを特徴とする請求
項1記載の電源管理装置。
2. The second electronic device includes connecting means for connecting the battery of the first electronic device to a load that is a dummy of the first electronic device, and connecting the battery to the battery by the connecting means. Load voltage detection means for detecting whether or not the voltage of the loaded load exceeds a predetermined value, the switching means includes power-on means for turning on the power supply of the first electronic device, and the load voltage 2. The power management apparatus according to claim 1, wherein the power-on means turns on the power supply of the first electronic device when the voltage of the load exceeds a predetermined value by the detection means.
【請求項3】 前記スイッチング手段は、 前記比較手段による前記電池電圧の低下を前記第1の電
子機器に伝達する伝達手段と、 この伝達手段による伝達にしたがって、前記第1の電子
機器の電源をオフにする電源オフ手段とを備え、 前記第1の電子機器は、この伝達手段によって前記電池
電圧の低下が伝達されてから所定の期間、前記電源オフ
手段による前記電源のオフを無効にする電源オフ無効手
段とを備えた請求項1または2記載の電源管理装置。
3. The switching means transfers a decrease in the battery voltage by the comparing means to the first electronic device, and the power supply of the first electronic device according to the transfer by the transferring means. A power source for turning off the power source by the power source turning off means for a predetermined period after the battery voltage drop is transmitted by the transmitting means. 3. The power management device according to claim 1, further comprising an OFF invalidating unit.
【請求項4】 前記第2の電子機器は、 前記接続手段によって接続される前記負荷を、前記第1
の電子機器の前記電池の容量に応じて複数の中から選択
する第1の選択手段と、 この第1の選択手段によって選択される前記負荷に応じ
た前記所定値を複数の中から選択する第2の選択手段と
を備えたことを特徴とする請求項2記載の電源管理装
置。
4. The second electronic device connects the load connected by the connecting means to the first electronic device.
A first selecting means for selecting from a plurality according to the capacity of the battery of the electronic device, and a first selecting means for selecting the predetermined value according to the load selected by the first selecting means from the plurality. 3. The power management device according to claim 2, further comprising: two selection means.
【請求項5】 前記第1の電子機器および前記第2の電
子機器はそれぞれ第1の電池および第2の電池を電源と
して有し、 前記第2の電子機器の前記第2の電池の電池電圧が所定
値以下になったことを検出する第2の電池電圧検出手段
と、 この第2の電池電圧検出手段によって検出されたとき、
前記第1の電池を前記第2の電子機器の電源に切り替え
る切替手段とを備えたことを特徴とする請求項1ないし
請求項4いずれかに記載の電源管理装置。
5. The first electronic device and the second electronic device each have a first battery and a second battery as power sources, and a battery voltage of the second battery of the second electronic device. A second battery voltage detecting means for detecting that the battery voltage is below a predetermined value, and when detected by the second battery voltage detecting means,
The power management device according to claim 1, further comprising a switching unit that switches the first battery to a power source of the second electronic device.
【請求項6】 電池を電源とする制御回路と、 前記電源をオンオフするスイッチ回路とを備え、 この制御回路は、 前記スイッチ回路によって電源がオンされてから通電中
に一定周期の割込み信号を発生する信号発生回路と、 この割込み信号発生回路によって発生される割込み信号
の回数を記憶するカウンタと、 このカウンタに記憶された前記割込み信号の回数に基づ
く通電時間の表示を行なう表示回路とを備えた電子機器
の電源管理装置。
6. A control circuit that uses a battery as a power source, and a switch circuit that turns on and off the power source, the control circuit generating an interrupt signal of a constant cycle during energization after the power source is turned on by the switch circuit. A signal generating circuit, a counter that stores the number of interrupt signals generated by the interrupt signal generating circuit, and a display circuit that displays the energization time based on the number of interrupt signals stored in the counter. Power management device for electronic devices.
【請求項7】 第2の電池を備え、 この第2の電池によって前記カウンタは常時通電される
ことを特徴とする請求項6記載の電源管理装置。
7. The power management device according to claim 6, further comprising a second battery, wherein the counter is constantly energized by the second battery.
JP27322693A 1993-10-05 1993-10-05 Power management device Expired - Fee Related JP3337788B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27322693A JP3337788B2 (en) 1993-10-05 1993-10-05 Power management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27322693A JP3337788B2 (en) 1993-10-05 1993-10-05 Power management device

Publications (2)

Publication Number Publication Date
JPH07107674A true JPH07107674A (en) 1995-04-21
JP3337788B2 JP3337788B2 (en) 2002-10-21

Family

ID=17524878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27322693A Expired - Fee Related JP3337788B2 (en) 1993-10-05 1993-10-05 Power management device

Country Status (1)

Country Link
JP (1) JP3337788B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069641A (en) * 2010-08-13 2013-04-24 株式会社Lg化学 Apparatus for managing secondary battery
CN106334322A (en) * 2015-07-16 2017-01-18 深圳曼塔智能科技有限公司 Aircraft and power supply management system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069641A (en) * 2010-08-13 2013-04-24 株式会社Lg化学 Apparatus for managing secondary battery
JP2013538419A (en) * 2010-08-13 2013-10-10 エルジー・ケム・リミテッド Secondary battery management device
US9065291B2 (en) 2010-08-13 2015-06-23 Lg Chem, Ltd. Apparatus for managing secondary battery
CN106334322A (en) * 2015-07-16 2017-01-18 深圳曼塔智能科技有限公司 Aircraft and power supply management system

Also Published As

Publication number Publication date
JP3337788B2 (en) 2002-10-21

Similar Documents

Publication Publication Date Title
KR100811025B1 (en) Method and apparatus for handling a charging state in a mobile electronic device
KR910005595B1 (en) Computer systems power supply apparatus with micro computer
KR920002245B1 (en) Portable computer operated by batteries
TW477926B (en) A controller for a battery selector and a battery powered portable device
US6963933B2 (en) Data transfer control device, electronic equipment, and power supply switching method
US6714016B2 (en) Method for displaying information concerning power consumption and electronic device
US5300874A (en) Intelligent power supply system for a portable computer
US6055641A (en) Computer interface architecture having a power saving function
JP2002222031A (en) Information processor and power consumption control method for the same processor
WO2006116209A1 (en) Systems and methods for disabling power management in a computer system
JP2006506617A (en) Low voltage detection system
KR940006802B1 (en) Power control method and apparatus therefor
JPH07107674A (en) Power supply controlling device
JPH0898415A (en) Portable electronic apparatus
JP2780701B2 (en) Software notification type battery charging method
JP3120195B2 (en) Battery control device
JPH09205736A (en) Battery driven small-sized electronic equipment
KR100713850B1 (en) Battery pack, portable electronic apparatus, and control method thereof
JP3346289B2 (en) Power supply system and power supply method
CN219143051U (en) In-place detection device of battery power supply equipment
JP2809661B2 (en) Battery driven information processing device, battery power supply system, and battery management device
JPH0937483A (en) Portable electric equipment driven by battery, stationary electric equipment connected to that equipment, and information processor driven by battery
JP3581407B2 (en) Storage battery device
JPH1185337A (en) Portable information terminal
JPH06335172A (en) Information processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20070809

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080809

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080809

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20090809

LAPS Cancellation because of no payment of annual fees