JPH04217827A - Electronic appliance provided with battery - Google Patents

Electronic appliance provided with battery

Info

Publication number
JPH04217827A
JPH04217827A JP3010680A JP1068091A JPH04217827A JP H04217827 A JPH04217827 A JP H04217827A JP 3010680 A JP3010680 A JP 3010680A JP 1068091 A JP1068091 A JP 1068091A JP H04217827 A JPH04217827 A JP H04217827A
Authority
JP
Japan
Prior art keywords
discharge amount
battery
load
charging
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3010680A
Other languages
Japanese (ja)
Inventor
Satoru Tsuchiya
悟 土屋
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3010680A priority Critical patent/JPH04217827A/en
Publication of JPH04217827A publication Critical patent/JPH04217827A/en
Pending 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 prevent overcharge of a battery in an electronic appliance and to know the residual life of battery by depressing a key during operation of the electronic appliance. CONSTITUTION:An electronic appliance provided with a battery comprises a charging circuit 33, a memory 21 storing operational parameters and constants, and a CPU 2O which calculates the charging time and provides the calculated charging time to the charging circuit 33 and then calculates the residual life of the battery based on a command provided by an operating key 24 and providing thus calculated residual life to a print head 30.

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 such as a printer equipped with a battery that can be charged by connecting an adapter or the like, and more particularly to a battery charging function and a printing function of remaining usage time.

【0002】0002

【従来の技術】一般に、モータ、電子回路等の各負荷へ
バッテリから電流を供給するバッテリ付電子機器におい
ては、充電回路に充電電流供給ライン、充電信号ライン
を介してそれぞれバッテリ、制御部が接続してある。使
用者はバッテリの電圧が低下してアラーム領域に入った
ことを知らせるアラームランプを見て、充電回路にAC
アダプタを接続し、充電用スイッチを押す。充電用スイ
ッチが押されると制御部からの充電信号がオンになると
ともに充電時間をセットされたタイマ手段も作動する。 充電信号がオンになるとACアダプタからの直流出力は
充電回路を介して充電電流としてバッテリに供給される
。そしてタイマ手段がタイムアウトになると、充電信号
がオフとなり充電電流も停止するものであった。
[Prior Art] Generally, in battery-equipped electronic equipment that supplies current from a battery to loads such as motors and electronic circuits, the battery and the control unit are connected to a charging circuit via a charging current supply line and a charging signal line, respectively. It has been done. When the user sees the alarm lamp that indicates that the battery voltage has dropped and entered the alarm area, the user must
Connect the adapter and press the charging switch. When the charging switch is pressed, a charging signal from the control section is turned on and a timer means for setting a charging time is also activated. When the charging signal is turned on, the DC output from the AC adapter is supplied to the battery as charging current via the charging circuit. When the timer means times out, the charging signal is turned off and the charging current is also stopped.

【0003】0003

【発明が解決しようとする課題】従来のバッテリ付電子
機器にあっては、バッテリの電圧が低下してアラーム領
域に入ったことを知らせるアラームランプが点燈してい
なくとも予めバッテリに充分に充電しておきたいときは
充電回路にアダプタを接続して充電していた。この場合
も、充電残量に関係なく一率に決められた充電時間がタ
イマ手段にセットされ、タイマアウトになるまで充電し
ていたので過充電することになり、バッテリの寿命を短
めるのみならず、内部圧力が高まりともすれば爆発する
危険性もあった。
[Problem to be Solved by the Invention] In conventional electronic devices with batteries, the battery is sufficiently charged in advance even if the alarm lamp that indicates that the battery voltage has dropped and entered the alarm area is not lit. When I wanted to keep it running, I connected the adapter to the charging circuit and charged it. In this case as well, a fixed charging time is set in the timer means regardless of the remaining charge level, and charging continues until the timer runs out, resulting in overcharging, which only shortens the life of the battery. There was also the risk of an explosion if the internal pressure increased.

【0004】又、機器を使用中、バッテリで機器を使用
できる時間(以後残存使用時間と記す)があとどのくら
いかを知る機能がないので、バッテリの電圧が低下して
アラーム領域に入ったことを知らせるアラームランプが
点灯するまで使用してしまい、バッテリ充電の為に仕事
を中断しなければならないという問題点もあった。
[0004] Also, while the device is in use, there is no function to know how much time the device can be used with the battery (hereinafter referred to as remaining usage time), so it is difficult to know when the battery voltage has dropped and entered the alarm range. There was also the problem that users used the device until the alarm lamp came on to notify them, and they had to stop work to charge the battery.

【0005】本発明はバッテリの電圧がアラーム領域に
入ったことを知らせるアラームランプが点燈していない
ときに充電しても過充電しないとともに、機器を使用中
いつでも残存使用時間を知り得るバッテリ付電子機器を
提供することを目的とする。
[0005] The present invention provides a battery that does not overcharge even if it is charged when the alarm lamp indicating that the voltage of the battery has entered the alarm range is not lit, and that the remaining usage time can be known at any time while the device is in use. The purpose is to provide electronic equipment.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明のバッテリ付電子機器においては、各負荷ご
との負荷量と各負荷の単位負荷量当りの放電量とを入力
して総放電量を算出する放電量算出手段と、総放電量と
限界放電量とを比較してバッテリ充電手段への充電信号
をオンにするか否かを判別する充電判別信号を出力する
充電判別手段と、総放電量と充電電流量とから充電時間
を求めるタイマ値算出手段と、充電判別手段からの充電
判別信号に基づいて充電時間をセットし、カウントして
充電信号をオフにするタイマアウト信号を出力するタイ
マ手段とを設けたものであり、あるいはさらに入力手段
からの指示に基づいて各負荷の単位負荷量当りの放電量
、総放電量、限界放電量を入力し、残存使用時間を算出
して印字手段に出力する残存使用時間算出手段とを備え
たものである。
[Means for Solving the Problems] In order to achieve the above object, in the electronic device with a battery of the present invention, the load amount for each load and the discharge amount per unit load amount of each load are input and the total a discharge amount calculation means for calculating the discharge amount; and a charge determination means for outputting a charge determination signal for determining whether to turn on a charge signal to the battery charging means by comparing the total discharge amount and a limit discharge amount. , a timer value calculation means for calculating the charging time from the total discharge amount and the charging current amount, and a timer out signal for setting the charging time based on the charging determination signal from the charging determining means, counting and turning off the charging signal. It is equipped with a timer means for outputting, or further inputs the discharge amount per unit load of each load, the total discharge amount, and the limit discharge amount based on instructions from the input means, and calculates the remaining usage time. and a remaining usage time calculation means for outputting the remaining usage time to the printing means.

【0007】[0007]

【作用】上記のように構成されたバッテリ付電子機器に
あっては、放電量算出手段が各負荷への負荷量と各負荷
の単位負荷量当りの放電量とから各負荷への放電量を求
め、さらに各負荷への放電量を総和して総放電量を求め
る。又、充電判別手段は総放電量と限界放電量とを比較
して充電信号をオンにするか否かを判別する。又、タイ
マ値算出手段は総放電量と放電電流量とからタイマ手段
にセットする充電時間を求める。総放電量が限界放電量
を越えると制御部からの充電信号がオンとなるとともに
充電時間をセットしたタイマ手段も作動する。充電信号
がオンになるとバッテリへの充電電流が供給される。タ
イマ手段がタイムアウトになると充電信号がオフになり
、充電電流の供給も停止する。
[Operation] In the electronic device with a battery configured as described above, the discharge amount calculation means calculates the discharge amount to each load from the load amount to each load and the discharge amount per unit load amount of each load. Then, the total discharge amount is determined by summing the discharge amount to each load. Further, the charge determining means compares the total discharge amount and the limit discharge amount to determine whether or not to turn on the charge signal. Further, the timer value calculation means calculates the charging time to be set in the timer means from the total discharge amount and the discharge current amount. When the total amount of discharge exceeds the limit amount of discharge, the charging signal from the control section is turned on and the timer means for setting the charging time is also activated. When the charging signal is turned on, charging current is supplied to the battery. When the timer means times out, the charging signal is turned off and the supply of charging current is also stopped.

【0008】又、機器を使用中に残存使用時間を知りた
いときは、入力手段から指示を入力すると残存使用時間
算出手段が限界放電量を総放電量とから残存充電量を算
出し、さらにその残存放電量と各負荷の単位負荷量当り
の放電量とから残存使用時間を算出して印字手段に出力
する。
[0008] Also, when you want to know the remaining usage time while using the device, you input an instruction from the input means, and the remaining usage time calculation means calculates the remaining charge amount from the limit discharge amount and the total discharge amount, and then calculates the remaining charge amount. The remaining usage time is calculated from the remaining discharge amount and the discharge amount per unit load amount of each load, and is output to the printing means.

【0009】従って、本発明のバッテリ付電子機器によ
れば、バッテリの電圧がまだアラーム領域に入っていな
いときに充電しても、その時まで放電した総放電量から
放電時間を求めて充電するので過放電することはないと
ともに、機器を使用中、いつでも残存使用時間を知るこ
とができる。
Therefore, according to the battery-equipped electronic device of the present invention, even if the battery is charged when the voltage of the battery has not yet entered the alarm range, the battery is charged by calculating the discharging time from the total discharge amount up to that point. There is no over-discharging, and you can always know the remaining usage time while using the device.

【0010】0010

【実施例】本発明の一実施例について図面を参照しなが
ら説明する。なお、各図面に共通な要素には同一符号を
付す。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the drawings. Note that elements common to each drawing are given the same reference numerals.

【0011】図1は本発明の基本的構成を示す機能ブロ
ック図である。放電量算出手段1は各負荷への負荷量を
記憶している負荷量記憶手段2と各負荷の単位負荷量当
りの放電量を記憶している単位放電量記憶手段3とバッ
テリから各負荷へ電流を供給し始めてからの総放電量を
記憶している総放電量記憶手段4と第1の放電量算出手
段5と第2の放電量算出手段6とからなる。第1の放電
量算出手段5は負荷量記憶手段2と単位放電量記憶手段
3とから負荷量とその単位当りの放電量とを入力して、
その負荷の放電量を求める。第2の放電量算出手段6は
第1の放電量算出手段5と総放電量記憶手段4とからそ
れぞれ放電量と総放電量とを入力し、加算して再び総放
電量記憶手段4に出力する。充電判別手段7は限界放電
量記憶手段8と比較手段9とからなり、比較手段9は総
放電量記憶手段4と限界放電量記憶手段8との内容を比
較して充電するか否かの判別を行い、制御信号発生手段
15へ充電判別信号を出力する。タイマ値算出手段10
はバッテリに供給する充電電流量を記憶する充電電流量
記憶手段11とタイマ手段14にセットする充電時間を
記憶する充電時間記憶手段13と充電時間算出手段12
とからなる。充電時間算出手段12は総放電量記憶手段
4と充電電流量記憶手段11とから総放電量と充電電流
量とを入力し、充電時間を算出して充電時間記憶手段1
3に出力する。制御信号発生手段15は充電判別手段7
からの充電判別信号を入力すると、充電回路16へ充電
信号をオンするとともにタイマ手段14に充電時間記憶
手段13から充電時間をセットさせ、作動させる。タイ
マ手段14がタイムアウトになるとタイマアウト信号が
タイマ手段14から制御信号発生手段15に出力され、
制御信号発生手段15は充電信号をオフにする。
FIG. 1 is a functional block diagram showing the basic configuration of the present invention. The discharge amount calculation means 1 includes a load amount storage means 2 which stores the amount of load on each load, a unit discharge amount storage means 3 which stores the amount of discharge per unit load of each load, and a battery to each load. It consists of a total discharge amount storage means 4 that stores the total discharge amount since the start of supplying current, a first discharge amount calculation means 5, and a second discharge amount calculation means 6. The first discharge amount calculation means 5 inputs the load amount and the discharge amount per unit from the load amount storage means 2 and the unit discharge amount storage means 3,
Find the discharge amount of that load. The second discharge amount calculation means 6 inputs the discharge amount and the total discharge amount from the first discharge amount calculation means 5 and the total discharge amount storage means 4, adds them together, and outputs the sum to the total discharge amount storage means 4 again. do. The charging determining means 7 comprises a limiting discharge amount storing means 8 and a comparing means 9, and the comparing means 9 compares the contents of the total discharge amount storing means 4 and the limiting discharge amount storing means 8 to determine whether or not to charge. and outputs a charging determination signal to the control signal generating means 15. Timer value calculation means 10
These are a charging current amount storage means 11 for storing the amount of charging current supplied to the battery, a charging time storage means 13 for storing the charging time set in the timer means 14, and a charging time calculation means 12.
It consists of The charging time calculation means 12 inputs the total discharge amount and the charging current amount from the total discharge amount storage means 4 and the charging current amount storage means 11, calculates the charging time, and stores it in the charging time storage means 1.
Output to 3. The control signal generating means 15 is the charge determining means 7.
When the charging determination signal from the charging circuit 16 is inputted, a charging signal is turned on to the charging circuit 16, and the timer means 14 is set to a charging time from the charging time storage means 13, and is activated. When the timer means 14 times out, a timer out signal is output from the timer means 14 to the control signal generating means 15,
The control signal generating means 15 turns off the charging signal.

【0012】又、残存使用時間算出手段18は入力手段
17から指示を入力すると、総放電量記憶手段4と限界
放電量記憶手段8とを入力し、残存充電量を求め、さら
に単位放電量記憶手段3から各負荷の単位負荷量当りの
放電量を入力して残存使用時間を算出し、印字手段19
に出力する。
Further, when the remaining usage time calculation means 18 inputs an instruction from the input means 17, it inputs the total discharge amount storage means 4 and the limit discharge amount storage means 8, calculates the remaining charge amount, and further stores the unit discharge amount. The remaining usage time is calculated by inputting the discharge amount per unit load of each load from the means 3, and the printing means 19
Output to.

【0013】図2はマイクロコンピュータを用いて本発
明を実現した一実施例を示すシリアルプリンタの構成ブ
ロック図であり、図3は図2の充電回路の詳細図である
。中央処理装置20(以後CPU20と記す)は記憶装
置21(以後メモリ21と記す)と入出力ポート22(
以後I/Oポート22と記す)とにライン39,40で
接続してある。メモリ21は制御プログラムエリア21
a、単位放電量記憶エリア21b、総放電量記憶エリア
21c、バッテリ容量記憶エリア21d、比較基準量記
憶エリア21e、充電電流量記憶エリア21f、充電時
間記憶エリア21g、定充電時間記憶エリア21h、デ
ータ記憶エリア21iに区分けされ、それぞれに制御プ
ログラム、単位負荷量当りの放電量、総放電量、バッテ
リ容量、比較基準量、充電電流量、充電時間、定充電時
間、負荷量を記憶する。
FIG. 2 is a configuration block diagram of a serial printer showing an embodiment of the present invention using a microcomputer, and FIG. 3 is a detailed diagram of the charging circuit of FIG. 2. The central processing unit 20 (hereinafter referred to as CPU 20) has a storage device 21 (hereinafter referred to as memory 21) and an input/output port 22 (hereinafter referred to as memory 21).
(hereinafter referred to as I/O port 22) through lines 39 and 40. Memory 21 is a control program area 21
a, unit discharge amount storage area 21b, total discharge amount storage area 21c, battery capacity storage area 21d, comparison reference amount storage area 21e, charging current amount storage area 21f, charging time storage area 21g, constant charging time storage area 21h, data It is divided into storage areas 21i, each of which stores a control program, discharge amount per unit load amount, total discharge amount, battery capacity, comparison reference amount, charging current amount, charging time, constant charging time, and load amount.

【0014】入出力ドライバ23(以後I/Oドライバ
23と記す)はI/Oポート22、プリンタインタフェ
ース27、スペースモータ28、ラインフィードモータ
29、印字ヘッド30とそれぞれライン44,47,4
8,49,50で接続してある。又、I/Oポート22
は操作キー24、アラームランプ25、レディランプ2
6、A/D変換器32の出力側、充電回路33の充電信
号入力部とそれぞれライン41,42,43,45,4
6で接続してある。充電回路33は図3に示すようにな
っている。即ち、充電信号入力部であるトランジスタT
R1 のベースには前述したライン46が接続してあり
、さらに、抵抗R1 を介して+5Vに接続してある。 又、トランジスタTR1 のエミッタはアースに接続し
てあり、コレクタは抵抗R3 を介してトランジスタT
R2 のベースに接続してある。トランジスタTR2の
エミッタはソケット35の一方の端子35aとライン5
3で接続してあり、コレクタはダイオードD1 、抵抗
R4 を介してバッテリ34の+極及びA/D変換器3
2の入力側とライン51で接続してある。バッテリ34
にはニッケル・カドミウム電池(以後Ni−Cd電池と
記す)を使用するものとする。ダイオードD1 はバッ
テリ34からの逆バイアス抑止に用い、抵抗R4 は充
電電流制限に用いる。A/D変換器32はバッテリ34
の出力電圧値をアナログ値からデジタル値に変換するバ
ッテリ電圧検出器である。ライン51とライン53とは
接続されてライン54となり、電流を消費する負荷であ
る各回路へ接続される。バッテリ34の−極とソケット
35の他方の端子35bとはライン52でアースに接続
してある。ACアダプタ36はプラグ37,38とそれ
ぞれライン55,56及びライン57,58で接続して
ある。ACアダプタ36は交流100Vのソケットにプ
ラグ38で接続し、変圧したのち整流化を行う。
The input/output driver 23 (hereinafter referred to as I/O driver 23) has an I/O port 22, a printer interface 27, a space motor 28, a line feed motor 29, a print head 30, and lines 44, 47, and 4, respectively.
They are connected at 8, 49, and 50. Also, I/O port 22
are operation key 24, alarm lamp 25, ready lamp 2
6, the output side of the A/D converter 32, the charging signal input part of the charging circuit 33, and lines 41, 42, 43, 45, 4, respectively.
It is connected with 6. The charging circuit 33 is as shown in FIG. That is, the transistor T which is the charge signal input section
The base of R1 is connected to the line 46 mentioned above, and is further connected to +5V via a resistor R1. Furthermore, the emitter of the transistor TR1 is connected to ground, and the collector is connected to the transistor T through a resistor R3.
It is connected to the base of R2. The emitter of transistor TR2 is connected to one terminal 35a of socket 35 and line 5.
3, and the collector is connected to the + pole of the battery 34 and the A/D converter 3 via a diode D1 and a resistor R4.
It is connected to the input side of 2 by a line 51. battery 34
A nickel-cadmium battery (hereinafter referred to as a Ni-Cd battery) is used. Diode D1 is used to inhibit reverse bias from battery 34, and resistor R4 is used to limit charging current. A/D converter 32 is connected to battery 34
This is a battery voltage detector that converts the output voltage value from an analog value to a digital value. Line 51 and line 53 are connected to form line 54, which is connected to each circuit that is a load that consumes current. The negative pole of the battery 34 and the other terminal 35b of the socket 35 are connected to ground via a line 52. The AC adapter 36 is connected to plugs 37 and 38 through lines 55 and 56 and lines 57 and 58, respectively. The AC adapter 36 is connected to an AC 100V socket with a plug 38, and after voltage transformation, rectification is performed.

【0015】次に本発明の動作について説明する。Next, the operation of the present invention will be explained.

【0016】図4は本発明の一実施例を示すシリアルプ
リンタにおいてバッテリ電圧低下を検出する動作のフロ
ーチャート、図5は本発明の一実施例を示すシリアルプ
リンタの充電動作を示すフローチャートである。先づ、
電子機器の図示せぬ電源スイッチをオンにすると、電子
機器は制御プログラムにより、初期化される。初期化後
、電子機器は制御プログラムとCPU20によって制御
される。ステップS1 で図2に示したACアダプタ3
6が電子機器に接続されているか否かをチェックする。 チェックの手段は図示しないが、例えばソケット35の
一方の端子35aに電圧がかかっているか否かをチェッ
クする。ACアダプタ36が接続されていないと、バッ
テリモードとなりステップS2 に進む。ステップS2
 でバッテリ34の電圧値をA/D変換器32でアナロ
グ値からデジタル値に変換し、その値とメモリ21の比
較基準量記憶エリア21eに記憶してある比較基準量5
.8Vとを比較して、5.8V以下か否かをチェックす
る。 (Ni−Cd電池の電圧は5.8V付近まではなだらか
に低下し、5.8V以下になると急激に低下する。)バ
ッテリ34の電圧値が5.8Vを越えていれば、ステッ
プS4  に進む。ステップS4 ではバッテリ34の
電圧は正常なのでレディランプ26が点燈し、印字動作
に入れることをオペレータに知らせる。同時にCPU2
0、メモリ21、I/Oポート22、I/Oドライバ2
3、プリンタインタフェース27、スペースモータ28
、ラインフィードモータ29、印字ヘッド30、その他
の回路の負荷量をメモリ21のデータ記憶エリア21i
に記憶する。そして、所定の時間、例えば3分間経過し
たときの各負荷に対する負荷量とそれに対する単位負荷
量当りの放電量とをデータ記憶エリア21iと単位負荷
量当りの放電量記憶エリア21bとから順次読み出して
掛け合せ、掛け合せた値を総放電量記憶エリア21cの
総放電量に加算し、その結果を再び総放電量記憶エリア
21cに記憶する。これを全負荷に対して順次繰返す。 この結果、3分間経過したときの全負荷の負荷量が求め
られて、総放電量に加算されたことになる。(以後この
処理を放電量算出処理と記す)総放電量記憶エリア21
cには電源スイッチをオフにしても記憶内容が消えない
ようにEEPROMを使用している。
FIG. 4 is a flowchart showing an operation for detecting a battery voltage drop in a serial printer according to an embodiment of the present invention, and FIG. 5 is a flowchart showing a charging operation of a serial printer according to an embodiment of the present invention. First,
When a power switch (not shown) of the electronic device is turned on, the electronic device is initialized by a control program. After initialization, the electronic device is controlled by the control program and the CPU 20. In step S1, the AC adapter 3 shown in FIG.
6 is connected to an electronic device. Although the means for checking is not shown, it is checked, for example, whether voltage is applied to one terminal 35a of the socket 35. If the AC adapter 36 is not connected, the mode becomes battery mode and the process proceeds to step S2. Step S2
The voltage value of the battery 34 is converted from an analog value to a digital value by the A/D converter 32, and the value is compared with the comparison reference amount 5 stored in the comparison reference amount storage area 21e of the memory 21.
.. 8V and check whether it is 5.8V or less. (The voltage of the Ni-Cd battery gradually decreases to around 5.8V, and rapidly decreases below 5.8V.) If the voltage value of the battery 34 exceeds 5.8V, proceed to step S4. . In step S4, since the voltage of the battery 34 is normal, the ready lamp 26 lights up, notifying the operator that printing is to begin. CPU2 at the same time
0, memory 21, I/O port 22, I/O driver 2
3. Printer interface 27, space motor 28
, line feed motor 29, print head 30, and other circuit loads are stored in the data storage area 21i of the memory 21.
to be memorized. Then, after a predetermined period of time, for example, 3 minutes, the load amount for each load and the discharge amount per unit load amount are sequentially read out from the data storage area 21i and the discharge amount storage area 21b per unit load amount. The multiplied value is added to the total discharge amount in the total discharge amount storage area 21c, and the result is stored again in the total discharge amount storage area 21c. Repeat this step by step for all loads. As a result, the amount of full load after 3 minutes has passed is determined and added to the total amount of discharge. (Hereinafter, this process will be referred to as the discharge amount calculation process) Total discharge amount storage area 21
EEPROM is used in C so that the stored contents will not be erased even when the power switch is turned off.

【0017】ここで放電量の求め方を説明する。負荷量
とはスペーシングモータ28、ラインフィードモータ2
9に対してはモータを作動させるパルス数であり、アラ
ームランプ25、レディランプ26、プリンタインタフ
ェース27、印字ヘッド30、メモリ21、CPU20
、I/Oポート22、I/Oドライバ23、A/D変換
器32、充電回路33等に対しては電流を流した時間〔
SEC〕である。又、単位負荷量当りの放電量とはスペ
ーシングモータ28、ラインフィードモータ29に対し
ては1パルス当り放電量〔A〕であり、アラームランプ
25、レディランプ26、プリンタインタフェース27
、印字ヘッド30、メモリ21、CPU20、I/Oポ
ート22、I/Oドライバ23、A/D変換器32、充
電回路等に対しては1秒当りの放電量〔A〕である。
[0017] Here, the method for determining the amount of discharge will be explained. Load amount is spacing motor 28, line feed motor 2
9 is the number of pulses that activate the motor, and includes the alarm lamp 25, ready lamp 26, printer interface 27, print head 30, memory 21, and CPU 20.
, I/O port 22, I/O driver 23, A/D converter 32, charging circuit 33, etc.
SEC]. Further, the discharge amount per unit load is the discharge amount [A] per pulse for the spacing motor 28 and line feed motor 29, and the discharge amount [A] for the alarm lamp 25, ready lamp 26, and printer interface 27.
, the print head 30, the memory 21, the CPU 20, the I/O port 22, the I/O driver 23, the A/D converter 32, the charging circuit, etc. are discharged per second [A].

【0018】即ち、データ記憶エリア21iに3分間経
過したとき、各負荷量として記憶されている負荷量をN
  :スペーシングモータのパルス数NLF:ラインフ
ィードモータのパルス数P  :印字時間〔SEC〕 T  :アイドル状態の時間〔SEC〕とし、単位放電
量記憶エリア21bに記憶されている単位負荷量当りの
放電量を Q    :スペーシングモータの1パルス当りの放電
量〔A〕 QLF  :ラインフィードモータの1パルス当りの放
電量〔A〕 I    :印字ヘッドの1秒間当りの放電量〔A〕Q
IDLE:アイドル状態の1秒間当りの放電量〔A〕と
すると、3分間経過したときの放電量q〔A〕はq〔A
〕=QN+QLF・NLF+QIDLE・T+P・Iで
求められる。これは分りやすくアンペア時(以後Ahと
記す)に直すと、 Q=1/20q〔Ah〕 となる。
That is, when 3 minutes have passed in the data storage area 21i, the load amount stored as each load amount is
: Number of pulses of the spacing motor NLF: Number of pulses of the line feed motor P: Printing time [SEC] T: Time of idle state [SEC], discharge per unit load stored in the unit discharge amount storage area 21b Q: Discharge amount per pulse of the spacing motor [A] QLF: Discharge amount per one pulse of the line feed motor [A] I: Discharge amount per second of the print head [A] Q
IDLE: If the amount of discharge per second in idle state [A], then the amount of discharge q[A] after 3 minutes has passed is q[A]
]=QN+QLF・NLF+QIDLE・T+P・I. To make it easier to understand, converting this into ampere hours (hereinafter referred to as Ah), it becomes Q = 1/20q [Ah].

【0019】放電量算出処理後、ステップS1 に戻る
。 そしてこのステップS1 ,S2 ,S4 を繰返して
いくが、ステップS2 ,S4 間でオペレータが操作
キー24を押下すると残存使用時間算出処理に入る。
After the discharge amount calculation process, the process returns to step S1. Steps S1, S2, and S4 are then repeated, and when the operator presses the operation key 24 between steps S2 and S4, the remaining usage time calculation process begins.

【0020】先づ、単位放電量記憶エリア21bから各
負荷の1秒当りの放電量を読み出し、加算して1秒当り
の総放電量X〔A〕を求めると、 X〔A〕=Q+QLF+QIDLE+Iとなる。
First, the discharge amount per second of each load is read out from the unit discharge amount storage area 21b and added to obtain the total discharge amount per second X[A].X[A]=Q+QLF+QIDLE+I Become.

【0021】次にバッテリ容量記憶エリア21d、総放
電量記憶エリア21からそれぞれバッテリ容量、総放電
量を読み出し、減算して残存充電量Y〔Ah〕を求める
。この値をX〔A〕で除算すると、残存使用時間Z〔h
〕=Y/X が求まる。
Next, the battery capacity and total discharge amount are read from the battery capacity storage area 21d and the total discharge amount storage area 21, respectively, and subtracted to determine the remaining charge amount Y [Ah]. Dividing this value by X [A] gives the remaining usage time Z [h
]=Y/X is found.

【0022】求まった残存使用時間Z〔h〕は印字ヘッ
ド30から印字される。
The determined remaining usage time Z[h] is printed by the print head 30.

【0023】尚、放電量算出処理は第1の優先度があり
、初期化後、3分経過するごとに割込み信号が発生し、
処理される。このステップS1 ,S2 ,S4 のル
ープを繰返しているうちに、ステップS2でバッテリ3
4の電圧が5.8V以下になると、ステップS3 に移
る。 ステップS3 で図2に示したアラームランプ24を点
燈する。以後ステップS1 に戻り、ステップS1 ,
S2 ,S3 のループを繰返す。オペレータがアラー
ムに気付いて電源スイッチをオフにし、図2に示したA
Cアダプタ36のプラグ37を電子機器のソケット35
に接続して電源スイッチをオンにする。初期化後、前述
したようにACアダプタ36が接続されたか否かのチェ
ックを受けてアダプタモードとなり、ステップS1 か
ら図5に示したステップS5 に進む。ステップS5 
でバッテリ34の電圧をセンスする。ステップS6 で
メモリ21の比較基準量記憶エリア21eに記憶してあ
る比較基準量5.8Vと比較して、5.8V以下か否か
をチェックする。 5.8V以下ならばステップS7 に進み、メモリ21
の定充電時間記憶エリア21hからの定充電時間“15
時間”をCPU20のレジスタにセットする。ステップ
S8 でタイマカウントを開始するとともに、I/Oポ
ート22を介して図3に示した充電回路33への充電信
号の出力レベル“H”にする。トランジスタTR1 の
ベースがレベル“H”に設定されるとトランジスタTR
1 がオンになり、コレクタ、エミッタ間に電流が流れ
る。これによって今度はトランジスタTR2 がオンに
なり、ACアダプタ36で整流化された充電電流はトラ
ンジスタTR2 のエミッタ、コレクタ間を通ってバッ
テリ34に流れる。充電電流値はバッテリ容量値の1/
10程度とする。例えばバッテリ容量値が12Ahなら
ば充電電流値は1.2Aである。ステップS9 でカウ
ントアウトか否かをチェックし、カウントアウトになる
とステップS10に進む。ステップS10で充電信号を
レベル“L”にして充電電流を停止する。又、このとき
総放電量記憶エリア21cの内容を消去する。ステップ
S6 で5.8Vを越ていると、ステップS11に進む
。ステップS11でメモリ21の総放電量記憶エリア2
1c及びバッテリ容量記憶エリア21dから総放電量と
バッテリ容量値とを読み出し、総放電量のパーセンテー
ジを求め、さらに比較基準量記憶エリア21eから基準
値“10%”を読み出して比較する。バッテリ34の放
電量が10%を越えたならば、即ちバッテリ34の残存
充電量が90%未満ならばステップS12に進み、メモ
リ21の総放電量記憶エリア21cの総放電量を充電電
流記憶エリア21fの充電電流で割って充電時間“H時
間”を求め、充電時間記憶エリア21gに記憶する。ス
テップS13で充電時間記憶エリア21gから充電時間
“H時間”をCPU20のレジスタにセットし、ステッ
プS8 に戻る。ステップS11でバッテリ34の放電
量が10%以下ならば、即ちバッテリ34の残存充電量
が90%以上ならば充電不要となる。尚、充電は電子機
器が印字していないアイドル状態において行う。
Note that the discharge amount calculation process has the first priority, and an interrupt signal is generated every three minutes after initialization.
It is processed. While repeating this loop of steps S1, S2, and S4, in step S2, the battery 3
When the voltage of 4 becomes 5.8V or less, the process moves to step S3. In step S3, the alarm lamp 24 shown in FIG. 2 is turned on. Thereafter, the process returns to step S1, and steps S1,
Repeat the loop of S2 and S3. When the operator noticed the alarm and turned off the power switch,
Connect the plug 37 of the C adapter 36 to the socket 35 of the electronic device.
and turn on the power switch. After initialization, as described above, it is checked whether or not the AC adapter 36 is connected, and the adapter mode is entered, and the process proceeds from step S1 to step S5 shown in FIG. Step S5
The voltage of the battery 34 is sensed. In step S6, it is compared with the comparison reference amount 5.8V stored in the comparison reference amount storage area 21e of the memory 21 to check whether it is less than 5.8V. If the voltage is 5.8V or less, the process advances to step S7, and the memory 21
Constant charging time “15” from constant charging time storage area 21h
time" is set in the register of the CPU 20. In step S8, timer counting is started, and the output level of the charging signal to the charging circuit 33 shown in FIG. 3 is set to "H" via the I/O port 22. Transistor When the base of TR1 is set to level “H”, the transistor TR
1 is turned on, and current flows between the collector and emitter. As a result, the transistor TR2 is turned on, and the charging current rectified by the AC adapter 36 flows to the battery 34 through the emitter and collector of the transistor TR2. The charging current value is 1/ of the battery capacity value.
It should be about 10. For example, if the battery capacity value is 12Ah, the charging current value is 1.2A. In step S9, it is checked whether the count is out or not, and when the count is out, the process proceeds to step S10. In step S10, the charging signal is set to the level "L" and the charging current is stopped. Also, at this time, the contents of the total discharge amount storage area 21c are erased. If the voltage exceeds 5.8V in step S6, the process advances to step S11. In step S11, the total discharge amount storage area 2 of the memory 21 is
1c and the battery capacity storage area 21d, the percentage of the total discharge amount is determined, and the reference value "10%" is read out from the comparison reference amount storage area 21e for comparison. If the discharge amount of the battery 34 exceeds 10%, that is, if the remaining charge amount of the battery 34 is less than 90%, the process advances to step S12, and the total discharge amount in the total discharge amount storage area 21c of the memory 21 is stored in the charging current storage area. The charging time "H time" is obtained by dividing by the charging current of 21f, and is stored in the charging time storage area 21g. In step S13, the charging time "H time" is set in the register of the CPU 20 from the charging time storage area 21g, and the process returns to step S8. In step S11, if the discharge amount of the battery 34 is 10% or less, that is, if the remaining charge amount of the battery 34 is 90% or more, charging is not necessary. Note that charging is performed in an idle state when the electronic device is not printing.

【0024】従って、バッテリの電圧が5.8V以上あ
っても、バッテリに充分に充電しておきたい場合にはA
Cアダプタを接続し、電源スイッチをオンにすれば充電
時間を求めて放電量分充電するので、過充電することは
ない。尚、本実施例では充電するか否かの判別をバッテ
リ容量に対する総放電量の割合を出して比較基準量と比
較したが限界放電量を決めて、直接総放電量と比較して
もよい。
Therefore, even if the battery voltage is 5.8V or higher, if you want to keep the battery sufficiently charged, use A.
When the C adapter is connected and the power switch is turned on, the charging time is determined and the battery is charged by the amount of discharge, so there is no overcharging. In this embodiment, the ratio of the total discharge amount to the battery capacity is determined to determine whether or not to charge the battery, and the ratio of the total discharge amount to the battery capacity is compared with the reference amount for comparison. However, a limit discharge amount may be determined and directly compared with the total discharge amount.

【0025】[0025]

【発明の効果】本発明はバッテリ付電子機器において、
各負荷ごとに負荷量と各負荷の単位負荷量当りの放電量
とから総放電量を算出する放電量算出手段と、総放電量
と限界放電量とを比較してバッテリ充電手段への充電信
号をオンにするか否かを判別する充電判別信号を出力す
る充電判別手段と、総放電量と充電電流量とから充電時
間を求めるタイマ値算出手段と、充電判別手段からの判
別信号に基づいて充電時間をセットし、カウントして充
電信号をオフにするタイマアウト信号を出力するタイマ
手段とを備え、総放電量が限界放電量を越えると制御部
からの充電信号がオンとなるとともに充電時間をセット
したタイマ手段も作動し、タイマ手段がタイマアウトに
なると充電信号がオフになるようにしたので、ACアダ
プタを接続するば、総放電量に見合っただけの充電を自
動的に行う。
[Effects of the Invention] The present invention provides electronic equipment with a battery.
Discharge amount calculation means that calculates the total discharge amount from the load amount for each load and the discharge amount per unit load amount of each load, and a charging signal to the battery charging means that compares the total discharge amount and the limit discharge amount. charge determination means for outputting a charge determination signal for determining whether to turn on or not, a timer value calculation means for calculating charging time from the total discharge amount and charging current amount, and a timer value calculation means based on the determination signal from the charge determination means. It is equipped with a timer means for setting and counting the charging time and outputting a timer-out signal to turn off the charging signal, and when the total discharge amount exceeds the limit discharge amount, the charging signal from the control section is turned on and the charging time is turned off. The timer means set also operates, and when the timer means times out, the charging signal is turned off, so that when the AC adapter is connected, charging is automatically performed in an amount commensurate with the total amount of discharge.

【0026】従って、過充電することはなく、バッテリ
の寿命を短めたり、爆発する危険性もない。
[0026] Therefore, there is no possibility of overcharging, shortening the life of the battery, or risk of explosion.

【0027】又、残存使用時間を知る機能を設けたこと
によりバッテリで機器を使用中、予め残存使用時間を知
り得るので、先に充電しておいた方がよいのか、現状の
残存充電量で十分仕事を終了できるかが判別できる。
[0027] Also, by providing a function to know the remaining usage time, you can know the remaining usage time in advance while using the device on battery, so you can check whether it is better to charge it first or not based on the current remaining charge. You can determine whether you are able to complete the task sufficiently.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の基本的構成を示す機能ブロックである
FIG. 1 is a functional block diagram showing the basic configuration of the present invention.

【図2】一実施例を示すシリアルプリンタの構成ブロッ
ク図である。
FIG. 2 is a configuration block diagram of a serial printer showing one embodiment.

【図3】図2の充電回路の詳細図である。FIG. 3 is a detailed diagram of the charging circuit of FIG. 2;

【図4】本発明の一実施例を示すシリアルプリンタにお
いてバッテリ電圧低下を検出する動作のフローチャート
である。
FIG. 4 is a flowchart of an operation for detecting a battery voltage drop in a serial printer according to an embodiment of the present invention.

【図5】本発明の一実施例を示すシリアルプリンタの充
電動作を示すフローチャートである。
FIG. 5 is a flowchart showing a charging operation of a serial printer according to an embodiment of the present invention.

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

1    放電量算出手段 4    総放電量記憶手段 7    充電判別手段 10    タイマ値算出手段 13    充電時間記憶手段 14    タイマ手段 15    制御信号発生手段 16    充電回路 18    残存使用時間算出手段 1 Discharge amount calculation means 4 Total discharge amount storage means 7 Charging determination means 10. Timer value calculation means 13 Charging time storage means 14 Timer means 15 Control signal generation means 16 Charging circuit 18 Remaining usage time calculation means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  モータ、電子回路等の各負荷へバッテ
リから電流を供給するバッテリ付電子機器において、上
記各負荷ごとに負荷量を記憶する負荷量記憶手段と、上
記各負荷の単位負荷量当りの放電量を記憶する単位放電
量記憶手段と、上記負荷量と上記単位負荷量当りの放電
量とを入力して放電量を算出する第1の放電量算出手段
と、上記バッテリから上記各負荷へ電流を供給し始めて
から上記第1の放電量算出手段が放電量を算出するまで
の総放電量を記憶している総放電量記憶手段と、上記第
1の放電量算出手段からの放電量と上記総放電量記憶手
段の総放電量とを入力し、加算して総放電量記憶手段へ
出力する第2の放電量算出手段とからなる放電量算出手
段を備えたことを特徴とするバッテリ付電子機器。
[Claim 1] A battery-equipped electronic device that supplies current from a battery to each load such as a motor or an electronic circuit, comprising a load storage means for storing a load amount for each load, and a unit load amount per unit load of each load. unit discharge amount storage means for storing the discharge amount of the battery; first discharge amount calculating means for calculating the discharge amount by inputting the load amount and the discharge amount per unit load amount; a total discharge amount storage means for storing the total discharge amount from the time when the current is started to be supplied to until the first discharge amount calculation means calculates the discharge amount; and a discharge amount from the first discharge amount calculation means. and a second discharge amount calculation means that inputs and adds the total discharge amount and the total discharge amount of the total discharge amount storage means and outputs the sum to the total discharge amount storage means. with electronic equipment.
【請求項2】  モータ、電子回路等の各負荷へ電流を
供給するバッテリを有し、そのバッテリを所定時間充電
するバッテリ充電手段を備えたバッテリ付電子機器にお
いて、上記各負荷ごとの負荷量と各負荷の単位負荷量当
りの放電量とから総放電量を算出する放電量算出手段と
、総放電量と限界放電量とを比較して上記バッテリ充電
手段への充電信号をオンにするか否かを判別する充電判
別信号を出力する充電判別手段と、総放電量と充電電流
量とから充電時間を求めるタイマ値算出手段と、上記充
電判別手段からの充電判別信号に基づいて上記充電時間
をセットし、カウントして上記充電信号をオフにするタ
イマアウト信号を出力するタイマ手段とを備えたことを
特徴とするバッテリ付電子機器。
[Claim 2] A battery-equipped electronic device that has a battery that supplies current to each load such as a motor and an electronic circuit, and is equipped with a battery charging means that charges the battery for a predetermined period of time. A discharge amount calculation means that calculates a total discharge amount from the discharge amount per unit load of each load, and a device that compares the total discharge amount with a limit discharge amount and turns on a charging signal to the battery charging means. a timer value calculation means that calculates the charging time from the total discharge amount and the charging current amount; and timer means for outputting a timer-out signal for setting, counting, and turning off the charging signal.
【請求項3】  入力手段からの指示に基づいて、各負
荷の単位負荷量当りの放電量、総放電量、限界放電量を
入力し、残存使用時間を算出して出力手段に出力する残
存使用時間算出手段を備えた請求項1、又は請求項2記
載のバッテリ付電子機器。
3. Based on an instruction from the input means, the discharge amount per unit load of each load, the total discharge amount, and the limit discharge amount are input, and the remaining usage time is calculated and outputted to the output means. The battery-equipped electronic device according to claim 1 or 2, further comprising a time calculation means.
JP3010680A 1990-07-27 1991-01-31 Electronic appliance provided with battery Pending JPH04217827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3010680A JPH04217827A (en) 1990-07-27 1991-01-31 Electronic appliance provided with battery

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2-197712 1990-07-27
JP19771290 1990-07-27
JP3010680A JPH04217827A (en) 1990-07-27 1991-01-31 Electronic appliance provided with battery

Publications (1)

Publication Number Publication Date
JPH04217827A true JPH04217827A (en) 1992-08-07

Family

ID=26345994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3010680A Pending JPH04217827A (en) 1990-07-27 1991-01-31 Electronic appliance provided with battery

Country Status (1)

Country Link
JP (1) JPH04217827A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011015532A (en) * 2009-07-02 2011-01-20 Diamond Electric Mfg Co Ltd Charger
JP2011091879A (en) * 2009-10-20 2011-05-06 Toyota Motor Corp System for displaying the situation of electric accumulation to vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011015532A (en) * 2009-07-02 2011-01-20 Diamond Electric Mfg Co Ltd Charger
JP2011091879A (en) * 2009-10-20 2011-05-06 Toyota Motor Corp System for displaying the situation of electric accumulation to vehicle

Similar Documents

Publication Publication Date Title
TW309669B (en)
EP0406858B1 (en) A battery charger and method for a portable wireless telephone set having means for tricklingly charging the battery with an increased current during a stand-by period of the telephone set
US7432685B2 (en) Battery charger and control method therefor
US5363312A (en) Method and apparatus for battery control
US6246890B1 (en) Portable telephone with built-in charger
EP0580351B1 (en) Battery charging apparatus
US7602150B2 (en) Battery device for electronic apparatus with rechargeable secondary battery, fuel cell and run time computing unit
JPH1094185A (en) Battery charger
US20020060552A1 (en) Battery charger capable of accurately determining fully charged condition regardless of batteries with different charge chracteristics
JP2000184614A (en) Dc power supply unit with charging function
JPH04217827A (en) Electronic appliance provided with battery
JP2001021630A (en) Battery charging device and detecting method full charge
JP3642105B2 (en) Battery pack
JP2679392B2 (en) Secondary battery charge control circuit
JP2809661B2 (en) Battery driven information processing device, battery power supply system, and battery management device
EP0450145B1 (en) Method and apparatus for battery control
JP3034924B2 (en) Charging device
JP3917046B2 (en) Charging circuit, charging method, and portable terminal equipped with the charging circuit
JP2539979Y2 (en) Electronics
JP3197683B2 (en) Charger
JP2627328B2 (en) Battery charging device
JPH0595638A (en) Circuit for charging secondary battery
JPH07336906A (en) Charging and discharging control circuit for secondary battery
JPH05176467A (en) Charger/discharger
JP3435902B2 (en) Battery charger