JP3938643B2 - Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium - Google Patents

Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium Download PDF

Info

Publication number
JP3938643B2
JP3938643B2 JP29987799A JP29987799A JP3938643B2 JP 3938643 B2 JP3938643 B2 JP 3938643B2 JP 29987799 A JP29987799 A JP 29987799A JP 29987799 A JP29987799 A JP 29987799A JP 3938643 B2 JP3938643 B2 JP 3938643B2
Authority
JP
Japan
Prior art keywords
remaining amount
battery
calculated
voltage
current
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.)
Expired - Fee Related
Application number
JP29987799A
Other languages
Japanese (ja)
Other versions
JP2001119864A (en
Inventor
剛 森田
秀浩 大野
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.)
Fujitsu Ltd
PFU Ltd
Original Assignee
Fujitsu Ltd
PFU 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 Fujitsu Ltd, PFU Ltd filed Critical Fujitsu Ltd
Priority to JP29987799A priority Critical patent/JP3938643B2/en
Publication of JP2001119864A publication Critical patent/JP2001119864A/en
Application granted granted Critical
Publication of JP3938643B2 publication Critical patent/JP3938643B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明はバッテリ残量検出装置、バッテリ残量検出方法及び電子機器並びに記録媒体に係り、特に、バッテリにより駆動され、バッテリの残量を検出し、表示するためのバッテリ残量検出装置、バッテリ残量検出方法及び電子機器並びに記録媒体に関する。
【0002】
携帯型のコンピュータは、内蔵されたバッテリにより駆動される。このようなコンピュータでは、バッテリの残量を表示し、使用者に知らせる機能がある。
このとき、使用者は、使用中にバッテリが切れることがないように、表示されたバッテリの残量に応じてバッテリの交換や使用時間管理を行う。このため、バッテリの残量を正確に検出し、表示する必要があった。
【0003】
【従来の技術】
従来の携帯型のコンピュータにおいて、バッテリの残量を検出する方法の一つとして、バッテリに流入出する電流を積算する電流積算法が知られている。この方法は、バッテリから流入出する電流の総和がバッテリの残量に対応することを利用して残量を検出しようとする方法である。
【0004】
図1は従来の電流積算法の一例を説明するための図を示す。
図1において、1はバッテリパック、2は携帯型コンピュータ本体を示す。
バッテリパック1は、外部端子T1 、T2 、T3 を有する。外部端子T1 、T2 、T3 は、携帯型コンピュータ本体2の外部端子T11、T12、T13に接続される。
【0005】
バッテリパック1は、バッテリ本体3、電流検出抵抗R、電源マイコン4から構成される。バッテリ本体3は、電圧V1 を発生する。バッテリ本体3は、内部抵抗rを有する。
電流検出抵抗Rは、バッテリ本体3と端子T1 との間に直列に接続され、バッテリ本体3から端子T1 を介して携帯型コンピュータ本体2に流出する電流及び携帯型コンピュータ本体2から端子T1 を介してバッテリ本体3に流入する電流に応じた電圧を検出する。
【0006】
電源マイコン4は、電流検出抵抗Rの両端に接続され、電流検出抵抗Rに流れる電流Iに応じて電流検出抵抗Rに発生される電圧Vを検出する。電源マイコン4は、バッテリ本体3に流入出する電流Iを積算して、バッテリ本体3の残量値を算出する。電源マイコン4で算出された残量値は、端子T2 から出力され、携帯型コンピュータ本体2の端子T12に供給される。
【0007】
携帯型コンピュータ本体2は、処理部5、表示部6を内蔵する。処理部5は、端子T11、T12、T13に接続され、端子T11、T13から駆動電源を受け取るとともに、端子T12からバッテリパック1の残量値を受け取る。処理部5は、表示部6を制御してバッテリパック1の残量値を表示する。
図1に示す電流積算法では、バッテリパック1に流入出する電流を積算する必要がある。このとき、携帯型コンピュータ本体2に装着されるバッテリパック1が交換されても装着されたバッテリパック1の残量値を表示するためには、バッテリパック毎に流入出する電流を検出し、バッテリ本体3の残量を管理する必要がある。これは、携帯型コンピュータ本体2側でバッテリパック1に流入出する電流を積算した場合、バッテリパック1が交換されると、それまで積算した電流が無効になり、残量を表示することができなくなるからである。
【0008】
バッテリパック1側でバッテリ本体2の残量を管理するためには、バッテリパック1側に電源マイコン4を搭載する必要があり、バッテリパック1が高価になる。
このため、バッテリパックを低価格にするためには、携帯型コンピュータ本体2側で装着されたバッテリパック1の残量を算出する必要がある。
【0009】
携帯型コンピュータ本体2側でバッテリパック1の残量を算出する方法として、バッテリの電圧から残量を算出する方法がある。この方法は、バッテリがエネルギーの消耗に応じて出力電圧が低下する特性を利用して、バッテリの残量を検出しようとするものである。
図2は従来のバッテリの電圧から残量を算出する方法を説明するための図を示す。同図中、図1と同一構成部分には同一符号を付し、その説明は省略する。
【0010】
図2において、11はバッテリパック、12は携帯型コンピュータ本体を示す。
バッテリパック11は、外部端子T21、T22を有する。外部端子T21、T22は、携帯型コンピュータ本体12の外部端子T31、T32に接続される。バッテリパック11は、少なくともバッテリ本体3が内蔵され、バッテリ本体3で発生される電源電圧が外部端子T21、T22に印加される。
【0011】
携帯型コンピュータ本体12の外部端子T31、T32は、処理部5及び電源マイコン13に接続される。処理部5は、外部端子T31、T32に供給された電源電圧により駆動される。また、電源マイコン13は、端子T31と端子T32との間の電圧を検出し、検出された電圧からバッテリ本体3の残量を算出する。電源マイコン13で算出されたバッテリ本体3の残量は処理部5に供給され、表示部6に表示される。
【0012】
【発明が解決しようとする課題】
しかるに、従来のバッテリから供給された電流を積算する電流積算法では、バッテリパック毎に電流を積算する必要があり、バッテリパック毎に電源マイコンを搭載する必要があるので、高価になる等の問題点があった。
バッテリパックを安価にするために用いられるバッテリパックの電圧を検出してバッテリパックの残量を算出する方法では、携帯型コンピュータ本体12の負荷の変動によりバッテリパック3から供給される電流が変動すると、バッテリ本体が有する内部抵抗rに流れる電流が変動する。内部抵抗rに流れる電流が変動すると、内部抵抗rによる電圧降下が変化して、携帯型コンピュータ本体12の外部端子T31、T32に印加される電圧が変動する。このため、電源マイコン13により検出される電圧が変動する。電源マイコン13は、外部端子T31、T32に印加される電圧に応じてバッテリパックの残量を算出しているので、外部端子T31、T32に印加される電圧が変動すると、バッテリパックの残量も変動していしまう。よって、正確な残量表示が行えないなどの問題点があった。バッテリ本体3としてリチウムイオン電池を用いると、リチウムイオン電池は、内部抵抗rが大きいので、負荷変動による外部端子T31、T32に印加される電圧の変動が特に大きくなり、残量表示が大きくずれてしまう等の問題点があった。
【0013】
本発明は上記の点に鑑みてなされたもので、安価で、かつ、バッテリの残量を正確に検出できるバッテリ残量検出装置、バッテリ残量検出方法及び電子機器並びに記録媒体を提供することを目的とする。
【0014】
【課題を解決するための手段】
本発明は、バッテリの電圧、電流を検出し、検出電圧を検出電流に基づいて補正し、補正された検出電圧に基づいてバッテリの残量を算出し、バッテリが放電されている場合に、算出された残量が前回の残量より小さいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より大きいときには、前回の残量を今回の残量としており、バッテリの脱着が検出されたときに、算出された残量をバッテリの残量に決定することを特徴とする。
【0015】
また、本発明は、バッテリの残量を算出しており、バッテリが充電されている場合に、算出された残量が前回の残量より大きいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より小さいときには、前回の残量を今回の残量にし、バッテリの脱着が検出されたときに、算出された残量をバッテリの残量に決定することを特徴とする。
【0018】
本発明によれば、バッテリの脱着が検出されたときには、記憶手段に記憶された残量とは異なるバッテリの残量であるので、不要な比較を避けて、算出されたバッテリの残量をそのまま出力することにより、処理の負荷を低減できる。
【0019】
【発明の実施の形態】
図3は本発明の一実施例のブロック構成図を示す。
本実施例の電子機器として携帯型コンピュータについて説明する。
本実施例の携帯型コンピュータ20は、処理装置21、電源制御回路22が内蔵され、バッテリパック23が装着される。
【0020】
処理装置21は、記憶装置24、CPU25、RAM26、入力装置27、表示装置28、PCカードコントローラ29、PCカードコネクタ30、モデム31、モジュラジャック32、入出力インタフェース33、入出力コネクタ34、赤外線ポート35、バス36を有する。
記憶装置24は、ROM、フラッシュメモリなどから構成され、OS(Operating System)、ドライバソフト、アプリケーションソフトがインストールされている。後に詳細に説明する本実施例のバッテリパック23の残量を表示するためのプログラムは、ドライバソフトの一つとして記憶されている。
【0021】
CPU25は、記憶装置24に記憶されたソフトウェアに応じた演算処理を行う。RAM26は、EDO−DRAM、SD−RAMなどから構成され、CPU25での処理の作業用記憶領域として用いられる。
入力装置27は、キーボードやタッチパネルから構成され、CPU25にデータを入力したり、処理の指示を与える。表示装置28は、LCD(Liquid Crystal Device )パネルから構成され、CPU25での処理に応じた画面を表示する。
【0022】
PCカード制御部29は、PCカードコネクタ30とバス36との間に接続される。PCカードコネクタ30には、PCカード37が接続される。PCカード制御部29は、PCカード37とバス36とのインタフェースをとる。
PCカード37は、PCMCIA規格に準拠した構造とされており、PCカードコネクタ30に接続されて、各種機能を付加する。例えば、PCカード37とインタフェースとして用いてフロッピーディスクドライブ38やCD−ROMドライブ39が接続される。
【0023】
フロッピーディスクドライブ38にはフロッピーディスク40が装着される。
フロッピーディスクドライブ38は、フロッピーディスク40に情報を書き込むとともに、フロッピーディスク40に書き込まれた情報を読み出し、処理装置21に供給する。
また、CD−ROMドライブ39にはCD−ROMディスク41が装着される。CD−ROMドライブ39は、装着されたCD−ROMディスク41から情報を読み出し、処理装置21に供給する。
【0024】
なお、本実施例のバッテリパック23の残量を表示するためのプログラムは、フロッピーディスク40、あるいはCD−ROMディスク41などの記録媒体として提供されてもよい。フロッピーディスク40、あるいはCD−ROMディスク41などの記録媒体として提供されたプログラムは、フロッピーディスクドライブ38、あるいはCD−ROMドライブ39により読み出され、記憶装置24にインストールされて、用いられる。
【0025】
入出力インタフェース33は、CPU25と、入出力コネクタ34並び赤外線ポート35との間に接続され、CPU25と、入出力コネクタ34並びに赤外線ポート35とのインタフェースをとる。
入出力コネクタ34は、RS−232Cに準拠したコネクタであり、RS−232Cケーブルが接続される。赤外線ポート35は、IrDA規格に準拠した赤外線通信ポートであり、赤外線により外部装置との通信を行う。
【0026】
電源制御回路22は、処理装置21への電源の供給を制御、バッテリパック23の充電の制御を行うとともに、CPU25にバッテリパック23の残量を検出するのに必要な情報を提供する。
バッテリパック23は、図2に示すバッテリパック11と同じ構成であり、内部に電源マイコンを内蔵しない。
【0027】
図4は本発明の一実施例の電源制御回路のブロック構成図を示す。
電源制御回路22は、外部端子T41、T42、T43を有する。外部端子T41には、ACアダプタ51が接続される。外部端子T42、T43には、バッテリパック23が接続される。ACアダプタ51は、交流電源52に接続され、交流電源52から印加される交流電圧を所定の直流電圧に変換する。また、外部端子T42には、バッテリパック23から直流電圧が印加される。外部端子T43には、バッテリパック23が装着されていないときには、開放され、バッテリパック23が装着されると、バッテリパック23の内部で接地される。外部端子T43は、バッテリパック23の接続の有無を検出するための端子として用いられる。
【0028】
電源制御回路22は、充電部53、ACアダプタ検出部54、ラッチ回路55、センス抵抗56、電圧検出部57、電流検出部58、逆流防止用ダイオード59、60から構成される。
充電部53は、外部端子T41に接続され、ACアダプタ51から供給される直流電圧によりバッテリパック23を充電する。
【0029】
充電部53は、ダイオード61、62、トランジスタ63、コイル64、抵抗65a、65b、コンデンサ66、充電制御IC67、充電コントロール回路68から構成される。
ダイオード61は、アノードが外部端子T41に接続され、カソードが抵抗65aを介してトランジスタ63のソースに接続される。ダイオード61は、充電部53側から外部端子T41側への電流の逆流を防止する。トランジスタ63は、nチャネルMOSトランジスタから構成され、ゲートが充電制御IC67に接続され、ドレインがコイル64、抵抗65bを介して抵抗56とダイオード60との接続点に接続される。トランジスタ63は、充電制御IC67から供給される制御信号に応じてオン・オフし、バッテリパック23に供給する充電電流をPWM制御する。
【0030】
ダイオード62は、ツェナーダイオードから構成され、トランジスタ63のドレインと接地間に逆方向に接続され、トランジスタ63のドレイン電位を一定レベル以下にする。コイル64、コンデンサ66は、フィルタを構成しており、トランジスタ63のドレイン電流を整流して、出力する。
抵抗65aは、ダイオード61とトランジスタ63のソースとの間に直列に接続されるとともに、充電制御IC67に接続される。抵抗65aの両端には、トランジスタ63に供給される電流に応じた電圧が発生する。充電制御IC67は、抵抗65aの両端の電圧を検出することにより充電部53への入力電流を検出し、トランジスタ63を制御する。
【0031】
抵抗65bは、コイル64に直列に接続されるとともに、充電制御IC67に接続される。抵抗65aの両端には、充電部53から出力される電流に応じた電圧が発生する。充電制御IC67は、抵抗65bの両端の電圧を検出することにより充電部53の出力電流を検出する。また、充電制御IC67は、抵抗65bの出力側の電圧を検出することにより充電部53の出力電圧を検出する。
【0032】
また、充電制御IC67は、抵抗65bの両端電圧に応じて充電電流及び充電電圧を検出し、定電流充電制御時には出力電流が定電流となるようにようにトランジスタ63を制御し、定電圧制御時には出力電圧が定電圧となるようにトランジスタ63を制御する。
図5は本発明の一実施例の充電制御ICのブロック構成図を示す。
【0033】
充電制御IC67は、端子T50〜T57を有する。端子T50は、ダイオード61と抵抗65aとの接続点に接続される。端子T51は、抵抗65aとトランジスタ63のドレインとの接続点に接続される。端子T52には、基準電源69から基準電圧Vref0が印加される。端子T53は、コイル64と抵抗65bとの接続点に接続される。端子T54は、抵抗65bとコンデンサ66との接続点に接続される。端子T55には、基準電源70から基準電圧Vref1が印加される。端子T56は、充電コントロール回路68に接続される。端子T57は、トランジスタ63のゲートに接続される。
【0034】
充電制御IC67は、誤差増幅器71〜75、三角波発振器76、PWM比較器77、ドライバ78から構成される。
誤差増幅器71は、非反転入力端子が端子T50に接続され、反転入力端子が端子T51に接続される。誤差増幅器71は、抵抗65aに印加される電圧に応じた信号を出力する。
【0035】
誤差増幅器72は、反転入力端子が誤差増幅器71の出力に接続され、非反転入力端子が端子T52に接続される。誤差増幅器72は、誤差増幅器71の出力と基準電圧Vref0との差に応じた信号を出力する。
誤差増幅器73は、非反転入力端子が端子T53に接続され、反転入力端子が端子T54に接続される。誤差増幅器73は、抵抗65bの両端に印加される電圧に応じた信号を出力する。
【0036】
誤差増幅器74は、非反転入力端子に誤差増幅器73の出力が供給され、反転入力端子が端子T55に接続される。誤差増幅器74は、誤差増幅器73の出力と基準電圧Vref1との差に応じた信号を出力する。
誤差増幅器75は、非反転入力端子が端子T54に接続され、反転入力端子に内蔵された基準電源79から基準電圧Vref2が供給される。誤差増幅器75は、充電電圧と基準電圧Vref2との差に応じた信号を出力する。
【0037】
また、三角波発振器76は、三角波信号を発生し、PWM比較器77に供給する。
PWM比較器77は、3つの非反転入力端子と、1つの反転入力端子を有し、非反転入力端子には、誤差増幅器72、74、75の出力信号が入力され、反転入力端子には三角波発振器76の出力三角波信号が入力される。PWM比較器77は、誤差増幅器72、74、75の出力と三角波発振器76の出力とを比較し、誤差増幅器72、74、75の出力のうち最も小さい出力が三角波発振器76の出力より小さいときにはローレベルとなり、誤差増幅器72、74、75の出力のうち最も小さい出力が三角波発振器76の出力より大きいときにハイレベルとなるパルス信号を出力する。
【0038】
PWM比較器77から出力されたパルス信号は、ドライバ78に供給される。ドライバ78は、端子T57に接続され、PWM比較器77から出力されたパルス信号に応じたトランジスタ63をドライブする。以上により、充電制御IC67により、入力電圧、充電電圧、充電電流に応じて定電流充電制御及び定電圧充電制御が行われるとともに、充電動作が制御される。
【0039】
また、充電制御IC67の端子T56は、充電コントロール回路68が接続される、充電制御IC67は、端子T56に供給される充電制御信号が有効なときには、回路を動作状態とし、端子T56に供給される充電制御信号が無効なときには、回路を停止状態とし、トランジスタ63を常時オフにする。
充電コントロール回路68は、外部端子T42、T43に接続され、外部端子T42の電圧に応じて充電の要否を判定し、充電制御IC67を制御する。充電コントロール回路68は、外部端子T42がバッテリパック23の満充電電圧V2 以上であれば、充電を停止させるように充電制御IC67を制御する。
【0040】
充電コントロール回路68は、外部端子T43がローレベルで、かつ、外部端子T42がバッテリパック23の満充電電圧V2 未満であれば、バッテリパック23の充電状況を示す充電ステータスを有効にする。また、充電コントロール回路68は、外部端子T43がハイレベル又は外部端子T42がバッテリパック23の満充電電圧V2 以上であれば、バッテリパック23の充電状況を示す充電ステータス無効にする。
【0041】
図6は本発明の一実施例の充電コントロール回路のブロック構成図を示す。
充電コントロール回路68は、端子T61〜T64を有する。端子T61は、端子T42に接続される。端子T62は、端子T43に接続される。端子T63は、充電制御IC67の端子T63に接続される。端子T64は、CPU25に接続される。
充電コントロール回路68は、コンパレータ81、基準電圧源82、インバータ83、ANDゲート84から構成される。コンパレータ81は、反転入力端子が端子T61に接続され、非反転入力端子が基準電圧源82に接続される。基準電源82は、バッテリパック23に満充電電圧V2 を基準電圧として発生する。コンパレータ81は、端子T61の電圧と基準電圧源82からの基準電圧とを比較して、端子T61の電圧が基準電圧より小さければハイレベル、大きければローレベルとなる信号を出力する。コンパレータ81の出力は、ANDゲート84に供給される。
【0042】
インバータ83は、端子T62に接続され、端子T62に供給されるバッテリパック23の接続の有無を検出する信号を反転してANDゲート84に供給する。ANDゲート84は、コンパレータ81の出力とインバータ83とのAND論理を出力する。ANDゲート84の出力は、コンパレータ81の出力がハイレベルで、かつ、インバータ83の出力がハイレベルのとき、ハイレベルとなり、その他の場合は、ローレベルとなる。ANDゲート84の出力は、端子T63、T64から出力される。なお、ANDゲート84の出力がハイレベルのときを有効と呼び、ローレベルのときを無効と呼ぶ。
【0043】
充電コントロール回路68は、端子T61の電圧が満充電電圧V2 以上のとき、及び端子T62がハイレベルのとき、端子T63から出力する充電制御信号を無効にする。また、充電コントロール回路68は、端子T61の電圧が満充電電圧V2 未満で、かつ、端子T62がローレベルのとき、端子T63から出力する充電制御信号を有効にする。さらに、充電コントロール回路68は、端子T61の電圧が満充電電圧V2 未満で、かつ、端子T62がローレベルのとき、端子T64から出力する充電ステータスを有効にする。
【0044】
充電部53は、バッテリパック23への充電を迅速かつ安全に行うために、バッテリパック23の電圧が所定電圧V1 より小さいときには、定電流充電を行い、バッテリパック23の電圧が所定電圧V1 より大きいときには、定電圧充電を行う。定電流充電は、一定電流I0 で充電を行う制御であり、定電圧充電は、一定電圧V2 で充電を行う制御である。
【0045】
図7は本発明の一実施例の充電動作を説明するための図を示す。
図7において、実線はバッテリパック23の充電時の充電電圧波形、破線はバッテリパック23の充電時の充電電流波形を示す。
充電部53は、バッテリパック23の充電電圧が所定電圧V1 より小さいときには、図7に破線で示すように定電流I0 で定電流充電を行う。時刻t0 で、バッテリパック23の充電電圧が所定電圧V1 以上になると、略満充電電圧V2 で定電圧充電を行う。このとき、図7に破線で示すように充電電流は、漸次減少する。
【0046】
次に、ACアダプタ検出部54について説明する。
ACアダプタ検出部54は、抵抗91、92から構成される。抵抗91、92は、端子T41と接地との間に直列に接続され、ACアダプタ51からの電圧を分圧し、ACアダプタステータスとして出力する。ACアダプタステータスは、端子T41にACアダプタ51から直流電圧が供給されると有効となり、端子T41が開放されると無効となる。
【0047】
次に、ラッチ回路55について説明する。
ラッチ回路55は、抵抗101、インバータ102、NORゲート103、フリップフロップ104から構成される。抵抗101は、一端が端子T43に接続され、他端に所定の電圧V0 が印加される。インバータ102は、端子T42が接続され、端子T42のレベルを反転してNORゲート103に供給する。
【0048】
NORゲート103は、インバータ102の出力と端子T42の出力とのNOR論理を出力する。NORゲート103の出力は、フリップフロップ104に供給される。フリップフロップ104は、NORゲート103の出力を保持する。
フリップフロップ104の出力は、バッテリ状態ステータスとしてCPU25に供給される。
【0049】
センス抵抗56は、端子T42に一端が接続され、他端がダイオード60を介して処理部21に接続される。センス抵抗56には、バッテリパック23から処理部21に供給される電流が流れる。
電圧検出部57は、抵抗111、112から構成される。抵抗111、112は、直列に接続されており、一端が端子T42に接続され、他端が接地されており、抵抗111と抵抗112との接続点からバッテリパック23の出力電圧を分圧して出力する。電圧検出部57の出力電圧は、検出電圧Vs としてCPU25に供給される。
【0050】
電流検出部58は、抵抗121〜127、差動増幅器128〜130から構成される。抵抗121、122は、センス抵抗56とダイオード60との接続点と接地との間に直列に接続される。抵抗121と抵抗122との接続点からは、レベルシフトされた電圧が出力される。
抵抗123、124は、センス抵抗56と端子T42との接続点と接地との間に直列に接続される。抵抗123と抵抗124との接続点からは、レベルシフトされた電圧が出力される。
【0051】
差動増幅器128は、非反転増幅回路を構成しており、抵抗121、122によりレベルシフトされた電圧を非反転増幅する。差動増幅回路129は、反転増幅回路を構成しており、抵抗123、124によりレベルシフトされた電圧を反転増幅する。
抵抗125〜127、差動増幅器130は、差動増幅回路を構成しており、差動増幅器128の出力と差動増幅器129の出力との差動信号を出力する。差動増幅器130の出力は、検出電流Is としてCPU25に供給される。
【0052】
CPU25は、上記電源制御回路22で生成された充電ステータス、ACアダプタステータス、バッテリ状態ステータス、検出電圧Vs 、検出電流Is によりバッテリパック23の残量を算出する。
次に、バッテリパック23の残量を検出するためのCPU25での処理について説明する。
【0053】
図8は本発明の一実施例のバッテリ残量検出処理のフローチャートを示す。
バッテリ残量検出処理プログラムは、記憶装置24に記憶されており、CPU25により所定時間毎に実行される。バッテリ残量検出処理プログラムは、電源制御回路22から供給される充電ステータス、ACアダプタステータス、バッテリ状態ビット、検出電流値、検出電圧値からバッテリ残量の検出を行う。
【0054】
バッテリ残量検出処理プログラムでは、まず、ステップS0が実行される。ステップS0は、電圧検出部57で検出された電圧及び電流検出部58で検出された電流を取り込む。次にステップS1が実行される。ステップS1は、電源制御回路22からのバッテリ状態変更ビットを参照して、バッテリ状態ビットが有効か否かを判定する。
【0055】
ステップS1で、バッテリ状態ビットが無効であれば、バッテリパック23が交換されたと判断できる。ステップS1で、バッテリ状態ビットが無効であれば、ステップS2を実行する。ステップS2は、電源制御回路22で検出された検出電圧値及び検出電流値に応じてバッテリ残量を算出し、そのときのバッテリ残量として採用する。
【0056】
ここで、ステップS2でのバッテリ残量の算出方法について説明する。
バッテリ残量CB は、検出電圧をVs 、検出電流をIs 、電圧重み係数をA、電流重み係数をB、補正値をC、電圧/%変換値をDとすると、下記の式(1)により算出される。
CB =(A×Vs +B×Is −C)/D〔%〕 ・・・(1)
で表される。なお、上記各係数A、B、C、Dは、バッテリパック23に内蔵されるバッテリの残量、内部抵抗rなどの特性によって実験的に決定される。
【0057】
なお、係数A、Bは、バッテリパック23の内部抵抗rによりその比率が決定される。例えば、バッテリパック23の内部抵抗rが大きく、電流Is に応じて電圧Vs が大きく変化する場合には、Bを大きく、Aを小さく設定し、内部抵抗rが小さく、電流Is に応じた電圧Vs の変化が小さい場合には、Aを大きく、Bを小さく設定する。
【0058】
また、係数Dは、電圧の変換比率を決定する。係数Dは、バッテリパック23が満充電電圧で、残量CB が100%となるように設定される。
係数Cは、補正係数であり、バッテリパック23の内部抵抗r及び(A×Vs +B×Is )を%に変換する際の変換特性によって決定される。
ここで、係数A〜Dについて詳細に説明する。
【0059】
係数Aは、バッテリ電圧についての重み係数であり、バッテリパック23の電圧及び、それをCPU25に内蔵されたA/Dコンバータ経由でCPU25に読み込んだ数値からバッテリ残量比率に変換するための数値である。この数値は、バッテリパック23の特性及びA/Dコンバータの特性、装置の特性などにより決定される。
【0060】
係数Bは、検出電流についての重み係数であり、電流検出抵抗の両端に発生する電圧をA/Dコンバータ経由でCPU25に読み込んだ数値から、バッテリ電圧の補正値を求めるための数値である。この数値は、電流検出抵抗値及びA/Dコンバータの特性、装置の特性、内部抵抗などのバッテリパック23の特性により決定される。
【0061】
係数C、Dは、バッテリ電圧を容量に換算するための係数である。バッテリパック23は、放電時でも一定の電圧を持っているため、バッテリ電圧から残量に変換するためには、この電圧を考慮する必要がある。また、容量の表示を百分率とするために、これらの係数を用いる。これらの数値についてもバッテリや装置の条件により異なるものであり、計算・実験などの方法により値を決めるものである。
【0062】
上記式(1)では、A×Vs にB×Is を加算する計算を行っている。すなわち、バッテリパック23の内部抵抗による電圧降下分に対応する値(B×Is )をバッテリパック23の電圧Vs に対応する値(A×Vs )に加算することにより、内部抵抗rによる電圧降下分により測定された電池電圧を補正している。すなわち、バッテリパック23の電圧の落ち込みを補正している。
【0063】
以上のように上記式(1)によれば、バッテリパック23の電圧Vs がバッテリパック23の内部抵抗rに流れる電流Is によって補正できる。このため、バッテリパック23の電圧を正確に決定できる。よって、バッテリパック23の残量を正確に算出できるようになる。
ステップS2で、上記の式(1)に基づいてバッテリパック23の残量が算出されると、次にステップS3が実行される。ステップS3は、ステップS2で算出されたバッテリパック23の残量を記憶装置24に設定された残量メモリに格納する。
【0064】
また、ステップS1で、バッテリ状態ビットが有効であれば、次にステップS4が実行される。ステップS4は、ACアダプタ51が外部端子T41に接続されたか否かを判定する。ACアダプタ51が外部端子T41に接続されたか否かは、電源制御回路22から供給されるACアダプタステータスにより判定される。
ステップS4で、ACアダプタ51が装着されていれば、次にステップS5が実行される。ステップS5は、バッテリパック23が充電中か否かを判定する。バッテリパック23が充電中か否かは、電源制御回路22から供給される充電ステータスにより判定される。
【0065】
ステップS5で、充電中でなければ、次にステップS6が実行される。ステップS6は、電源制御回路22で検出された検出電圧Vs が満充電電圧V2 か否かを判定する。
ステップS6で、検出電圧Vs が満充電電圧V2 以上であれば、次にステップS7が実行される。ステップS7は、バッテリ残量は、100%であると判断できるので、バッテリ残量を100%に決定する。ステップS7でバッテリパック23の残量が100%に決定されると、ステップS3によりバッテリパック23の残量として100%が残量メモリに格納される。
【0066】
ステップS6で、検出電圧Vs が満充電電圧V2 未満のときには、装置に異常があると判定できるので、「UNKOWN」を表示し、終了する
また、ステップS5で、充電中の場合には、次にステップS9が実行される。ステップS9は、検出電圧Vs が定電流充電と定電圧充電とを切り換える切換電圧V1 以上か否かを判定する。
【0067】
ステップS9で検出電圧Vs が切換電圧V1 以上のときには、次にステップS10が実行される。ステップS10は、検出電流Is からバッテリ残量を算出する。検出電圧Vs が切換電圧V1 以上のときには、充電部51により定電圧充電が行われており、図7に実線で示すように検出電圧Vs の変化は微小などので、検出電圧Vs からバッテリパック23の残量を正確に算出できない。そこで、図7に破線で示すように漸次減少する検出電流Is からバッテリパック23の残量を算出する。
【0068】
検出電流Is からバッテリ残量CB を算出する方法について説明する。
バッテリ残量CB は、検出電流をIs 、αを補正係数、βを%変換係数とすると、下記の式(2)により求められる。
CB =(Is +α)/β ・・・(2)
なお、係数α、βは、バッテリパック23の特性に応じて決定されもので、実験的に求められる。
【0069】
ステップS9で検出電圧Vs が切換電圧V1 未満のときには、次にステップS11が実行される。ステップS11は、検出電圧Vs からバッテリ残量CB を算出する。検出電圧Vs が切換電圧V1 未満のときには、充電部51によりバッテリパック23が定電流I0 で定電流充電が行われているので、検出電流Is は図7に破線で示すように一定の電流I0 となる。このため、検出電流Is からバッテリパック23の残量CB を検出することはできない。このため、検出電圧Vs からバッテリ残量CB を算出する。
【0070】
検出電圧Vs からバッテリ残量CB を算出する方法について説明する。
バッテリ残量CB は、Vs を検出電圧s 、γを%変換係数とすると、下記の式(3)により算出される。
CB =Vs /γ ・・・(3)
なお、係数γは、バッテリパック23の特性に応じて決定されもので、実験的に求められる。
【0071】
次に、ステップS10、S11でバッテリ残量CB が算出されると、次にステップS12が実行される。ステップS12は、ステップS10、S11で算出されたバッテリ残量CB とステップS3で残量メモリに格納されたバッテリ残量Cb とを比較し、バッテリ残量CB がバッテリ残量Cb より大きいか否かを判定する。
【0072】
ステップS12で、バッテリ残量CB がバッテリ残量Cb より大きければ、ステップS13が実行される。ステップS13では、ステップS10、S11で算出されたバッテリ残量CB を今回のバッテリ残量として決定する。これは、ステップS12でバッテリ残量CB がバッテリ残量Cb より大きければ、充電が行われ、バッテリ残量が増加したものと判断できるためである。
【0073】
また、ステップS12で、バッテリ残量CB がバッテリ残量Cb より小さければ、ステップS14が実行される。ステップS14では、前回処理にステップS3で残量メモリに格納されたバッテリ残量Cb を今回のバッテリ残量として決定する。これは、充電中であるため、バッテリ残量が低下することはなく、検出電流Is あるは検出電圧Vs の測定誤差であると判断できるためである。
【0074】
ステップS13、S14でバッテリ残量CB 、Cb が決定されると、ステップS3で決定されたバッテリ残量を残量メモリに格納する。
次に、ステップS4でACアダプタ51が外部端子T41に接続されてないと判断された場合について説明する。
ステップS4で、ACアダプタ51が外部端子T41に接続されていない場合には、次にステップS15が実行される。ステップS15は、上述の式(1)によりバッテリ残量を算出する。
【0075】
ステップS15で式(1)によりバッテリ残量が算出されると、次にステップS16が実行される。ステップS16は、ステップS15で算出されたバッテリ残量CB と前回処理にステップS3で残量メモリに格納されたバッテリ残量Cb とを比較し、バッテリ残量CB がバッテリ残量Cb 以下か否かを判定する。
ステップS16で、バッテリ残量CB がバッテリ残量Cb 以下であれば、ステップS13が実行される。これは、バッテリパック23が消費されたと判断できるためである。
【0076】
また、ステップS16で、バッテリ残量CB がバッテリ残量Cb より大きいときには、ステップS14が実行される。これは、バッテリパック23が消費されているため、バッテリパック23のバッテリ残量CB が増加することはなく、よって、検出電流Is あるは検出電圧Vs の測定誤差であると判断できるためである。
【0077】
以上により残量メモリに表示すべきバッテリ残量が格納される。
CPU25は、残量メモリに格納されたバッテリ残量を表示装置28に表示させる。
なお、本実施例では、携帯型コンピュータにおけるバッテリパックの残量表示について説明したが、携帯型コンピュータに限定されるものではなく、バッテリで駆動される電子機器に適用できる。
【0078】
【発明の効果】
上述の如く、本発明によれば、電流を検出することによりバッテリの内部抵抗の電圧降下の影響をバッテリ電圧に考慮することができるため、バッテリの正確な電圧を検出でき、よって、バッテリの残量を正確に検出できる等の特長を有する。
【0079】
また、本発明によれば、バッテリが放電されている場合においては、バッテリの残量が順次減少するので、算出された残量が小さいときの残量をバッテリの残量として採用することにより、正確な充電量の表示が行える等の特長を有する。さらに、本発明によれば、バッテリが充電されている場合においては、バッテリの残量が順次増加するので、算出された残量が大きいときの残量をバッテリの残量として採用することにより、正確な充電量の表示が行える等の特長を有する。
【0080】
また、本発明によれば、バッテリの脱着が検出されたときには、記憶手段に記憶された残量とは異なるバッテリの残量であるので、不要な比較を避けて、算出されたバッテリの残量をそのまま出力することにより、処理の負荷を低減できる等の特長を有する。
【図面の簡単な説明】
【図1】従来の電流積算法の一例を説明するための図である。
【図2】従来のバッテリの電圧から残量を算出する方法を説明するための図である。
【図3】本発明の一実施例のブロック構成図である。
【図4】本発明の一実施例の電源制御回路のブロック構成図である。
【図5】本発明の一実施例の充電制御ICのブロック構成図である。
【図6】本発明の一実施例の充電コントロール回路のブロック構成図である。
【図7】本発明の一実施例の充電動作を説明するための図である。
【図8】本発明の一実施例のバッテリ残量検出処理のフローチャートである。
【符号の説明】
20 携帯型コンピュータ
21 処理装置
22 電源制御回路
23 バッテリパック
24 記憶装置
25 CPU
28 表示装置
51 ACアダプタ
53 充電部
54 ACアダプタ検出部
55 ラッチ回路
56 センス抵抗
57 電圧検出部
58 電流検出部
63 トランジスタ
64 コイル
65 抵抗
66 コンデンサ
67 充電制御IC
68 充電コントロール回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a battery remaining amount detecting device, a battery remaining amount detecting method, an electronic apparatus, and a recording medium, and more particularly, to a battery remaining amount detecting device, a battery remaining amount detecting device for detecting and displaying a remaining amount of a battery driven by a battery. The present invention relates to a quantity detection method, an electronic device, and a recording medium.
[0002]
A portable computer is driven by a built-in battery. Such a computer has a function of displaying the remaining battery level and notifying the user.
At this time, the user performs battery replacement and usage time management according to the displayed remaining battery level so that the battery does not run out during use. Therefore, it is necessary to accurately detect and display the remaining battery level.
[0003]
[Prior art]
In a conventional portable computer, as one method for detecting the remaining battery level, a current integration method is known in which currents flowing into and out of the battery are integrated. This method is a method for detecting the remaining amount by utilizing the fact that the sum of the current flowing into and out of the battery corresponds to the remaining amount of the battery.
[0004]
FIG. 1 is a diagram for explaining an example of a conventional current integration method.
In FIG. 1, 1 is a battery pack, 2 is a portable computer main body.
The battery pack 1 has external terminals T1, T2, and T3. The external terminals T1, T2, T3 are connected to the external terminals T11, T12, T13 of the portable computer body 2.
[0005]
The battery pack 1 includes a battery body 3, a current detection resistor R, and a power supply microcomputer 4. The battery body 3 generates a voltage V1. The battery body 3 has an internal resistance r.
The current detection resistor R is connected in series between the battery body 3 and the terminal T1, and the current flowing from the battery body 3 to the portable computer body 2 via the terminal T1 and from the portable computer body 2 via the terminal T1. The voltage corresponding to the current flowing into the battery body 3 is detected.
[0006]
The power supply microcomputer 4 is connected to both ends of the current detection resistor R, and detects the voltage V generated in the current detection resistor R according to the current I flowing through the current detection resistor R. The power supply microcomputer 4 integrates the current I flowing into and out of the battery body 3 and calculates the remaining value of the battery body 3. The remaining amount value calculated by the power supply microcomputer 4 is output from the terminal T2 and supplied to the terminal T12 of the portable computer main body 2.
[0007]
The portable computer main body 2 includes a processing unit 5 and a display unit 6. The processing unit 5 is connected to the terminals T11, T12, and T13, receives drive power from the terminals T11 and T13, and receives a remaining amount value of the battery pack 1 from the terminal T12. The processing unit 5 controls the display unit 6 to display the remaining amount value of the battery pack 1.
In the current integration method shown in FIG. 1, it is necessary to integrate the current flowing into and out of the battery pack 1. At this time, in order to display the remaining amount value of the attached battery pack 1 even if the battery pack 1 attached to the portable computer main body 2 is replaced, the current flowing into and out of each battery pack is detected, and the battery It is necessary to manage the remaining amount of the main body 3. This is because when the current flowing into and out of the battery pack 1 is integrated on the portable computer main body 2 side, when the battery pack 1 is replaced, the accumulated current becomes invalid and the remaining amount can be displayed. Because it disappears.
[0008]
In order to manage the remaining amount of the battery body 2 on the battery pack 1 side, it is necessary to mount the power supply microcomputer 4 on the battery pack 1 side, and the battery pack 1 becomes expensive.
For this reason, in order to reduce the price of the battery pack, it is necessary to calculate the remaining amount of the battery pack 1 mounted on the portable computer main body 2 side.
[0009]
As a method of calculating the remaining amount of the battery pack 1 on the portable computer main body 2 side, there is a method of calculating the remaining amount from the battery voltage. This method is intended to detect the remaining amount of the battery by utilizing the characteristic that the output voltage of the battery decreases as the energy is consumed.
FIG. 2 is a diagram for explaining a conventional method of calculating the remaining amount from the voltage of the battery. In the figure, the same components as in FIG.
[0010]
In FIG. 2, 11 is a battery pack, and 12 is a portable computer body.
The battery pack 11 has external terminals T21 and T22. The external terminals T21 and T22 are connected to the external terminals T31 and T32 of the portable computer main body 12. The battery pack 11 includes at least the battery main body 3 and a power supply voltage generated by the battery main body 3 is applied to the external terminals T21 and T22.
[0011]
External terminals T31 and T32 of the portable computer main body 12 are connected to the processing unit 5 and the power supply microcomputer 13. The processing unit 5 is driven by the power supply voltage supplied to the external terminals T31 and T32. The power supply microcomputer 13 detects the voltage between the terminal T31 and the terminal T32, and calculates the remaining amount of the battery body 3 from the detected voltage. The remaining amount of the battery body 3 calculated by the power supply microcomputer 13 is supplied to the processing unit 5 and displayed on the display unit 6.
[0012]
[Problems to be solved by the invention]
However, in the current integration method of integrating the current supplied from the battery, it is necessary to integrate the current for each battery pack, and it is necessary to install a power supply microcomputer for each battery pack. There was a point.
In the method of detecting the voltage of the battery pack used to make the battery pack inexpensive and calculating the remaining amount of the battery pack, the current supplied from the battery pack 3 fluctuates due to the fluctuation of the load of the portable computer body 12. The current flowing through the internal resistance r of the battery body varies. When the current flowing through the internal resistance r varies, the voltage drop due to the internal resistance r varies, and the voltage applied to the external terminals T31 and T32 of the portable computer body 12 varies. For this reason, the voltage detected by the power supply microcomputer 13 varies. Since the power supply microcomputer 13 calculates the remaining amount of the battery pack according to the voltage applied to the external terminals T31 and T32, if the voltage applied to the external terminals T31 and T32 varies, the remaining amount of the battery pack also changes. It will fluctuate. Therefore, there is a problem that an accurate remaining amount display cannot be performed. When a lithium ion battery is used as the battery body 3, since the lithium ion battery has a large internal resistance r, the fluctuation of the voltage applied to the external terminals T31 and T32 due to the load fluctuation becomes particularly large, and the remaining amount display is greatly deviated. There was a problem such as.
[0013]
The present invention has been made in view of the above points, and provides a remaining battery level detection device, a remaining battery level detection method, an electronic device, and a recording medium that are inexpensive and can accurately detect the remaining battery level. Objective.
[0014]
[Means for Solving the Problems]
  The present inventionDetects the battery voltage and current, corrects the detected voltage based on the detected current, calculates the remaining battery level based on the corrected detected voltage, and calculates the remaining battery level when the battery is discharged Is smaller than the previous remaining amount, the calculated remaining amount is set to the current remaining amount. When the calculated remaining amount is larger than the previous remaining amount, the previous remaining amount is set to the present remaining amount, When is detected, the calculated remaining amount is determined as the remaining amount of the battery.
[0015]
In the present invention, the remaining amount of the battery is calculated. When the battery is charged and the calculated remaining amount is larger than the previous remaining amount, the calculated remaining amount is set as the current remaining amount. When the calculated remaining amount is smaller than the previous remaining amount, the previous remaining amount is set to the present remaining amount, and when the battery is detected to be attached or detached, the calculated remaining amount is determined to be the remaining amount of the battery. It is characterized by.
[0018]
  According to the present invention,When battery attachment / detachment is detected, the remaining battery capacity is different from the remaining battery capacity stored in the storage means. Therefore, avoid the unnecessary comparison and output the calculated remaining battery capacity as it is. Can be reduced.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 3 shows a block diagram of an embodiment of the present invention.
A portable computer will be described as the electronic apparatus of this embodiment.
The portable computer 20 of this embodiment includes a processing device 21 and a power supply control circuit 22 and a battery pack 23 is mounted.
[0020]
The processing device 21 includes a storage device 24, a CPU 25, a RAM 26, an input device 27, a display device 28, a PC card controller 29, a PC card connector 30, a modem 31, a modular jack 32, an input / output interface 33, an input / output connector 34, and an infrared port. 35 and bus 36.
The storage device 24 includes a ROM, a flash memory, and the like, and has an OS (Operating System), driver software, and application software installed therein. A program for displaying the remaining amount of the battery pack 23 of this embodiment, which will be described in detail later, is stored as one of the driver software.
[0021]
The CPU 25 performs arithmetic processing according to the software stored in the storage device 24. The RAM 26 is composed of EDO-DRAM, SD-RAM, and the like, and is used as a working storage area for processing in the CPU 25.
The input device 27 includes a keyboard and a touch panel, and inputs data and gives processing instructions to the CPU 25. The display device 28 is composed of an LCD (Liquid Crystal Device) panel, and displays a screen corresponding to the processing in the CPU 25.
[0022]
The PC card control unit 29 is connected between the PC card connector 30 and the bus 36. A PC card 37 is connected to the PC card connector 30. The PC card control unit 29 provides an interface between the PC card 37 and the bus 36.
The PC card 37 has a structure conforming to the PCMCIA standard, and is connected to the PC card connector 30 to add various functions. For example, a floppy disk drive 38 and a CD-ROM drive 39 are connected to the PC card 37 as an interface.
[0023]
A floppy disk 40 is loaded in the floppy disk drive 38.
The floppy disk drive 38 writes information to the floppy disk 40, reads information written to the floppy disk 40, and supplies the information to the processing device 21.
A CD-ROM disc 41 is loaded in the CD-ROM drive 39. The CD-ROM drive 39 reads information from the loaded CD-ROM disc 41 and supplies it to the processing device 21.
[0024]
Note that the program for displaying the remaining amount of the battery pack 23 of the present embodiment may be provided as a recording medium such as the floppy disk 40 or the CD-ROM disk 41. A program provided as a recording medium such as the floppy disk 40 or the CD-ROM disk 41 is read by the floppy disk drive 38 or the CD-ROM drive 39, installed in the storage device 24, and used.
[0025]
The input / output interface 33 is connected between the CPU 25, the input / output connector 34 and the infrared port 35, and serves as an interface between the CPU 25, the input / output connector 34 and the infrared port 35.
The input / output connector 34 is a connector compliant with RS-232C, and is connected to an RS-232C cable. The infrared port 35 is an infrared communication port compliant with the IrDA standard, and communicates with an external device using infrared rays.
[0026]
The power control circuit 22 controls the supply of power to the processing device 21, controls the charging of the battery pack 23, and provides the CPU 25 with information necessary to detect the remaining amount of the battery pack 23.
The battery pack 23 has the same configuration as the battery pack 11 shown in FIG. 2, and does not incorporate a power supply microcomputer inside.
[0027]
FIG. 4 is a block diagram of a power supply control circuit according to an embodiment of the present invention.
The power supply control circuit 22 has external terminals T41, T42, and T43. An AC adapter 51 is connected to the external terminal T41. The battery pack 23 is connected to the external terminals T42 and T43. The AC adapter 51 is connected to an AC power source 52 and converts an AC voltage applied from the AC power source 52 into a predetermined DC voltage. Further, a DC voltage is applied from the battery pack 23 to the external terminal T42. The external terminal T43 is opened when the battery pack 23 is not attached, and is grounded inside the battery pack 23 when the battery pack 23 is attached. The external terminal T43 is used as a terminal for detecting whether or not the battery pack 23 is connected.
[0028]
The power supply control circuit 22 includes a charging unit 53, an AC adapter detection unit 54, a latch circuit 55, a sense resistor 56, a voltage detection unit 57, a current detection unit 58, and backflow prevention diodes 59 and 60.
The charging unit 53 is connected to the external terminal T41 and charges the battery pack 23 with a DC voltage supplied from the AC adapter 51.
[0029]
The charging unit 53 includes diodes 61 and 62, a transistor 63, a coil 64, resistors 65a and 65b, a capacitor 66, a charge control IC 67, and a charge control circuit 68.
The diode 61 has an anode connected to the external terminal T41 and a cathode connected to the source of the transistor 63 through the resistor 65a. The diode 61 prevents a backflow of current from the charging unit 53 side to the external terminal T41 side. The transistor 63 is composed of an n-channel MOS transistor, the gate is connected to the charge control IC 67, and the drain is connected to the connection point between the resistor 56 and the diode 60 via the coil 64 and the resistor 65b. The transistor 63 is turned on / off according to a control signal supplied from the charge control IC 67, and performs PWM control of the charging current supplied to the battery pack 23.
[0030]
The diode 62 is composed of a Zener diode, and is connected in the reverse direction between the drain of the transistor 63 and the ground, and makes the drain potential of the transistor 63 equal to or lower than a certain level. The coil 64 and the capacitor 66 constitute a filter, and rectifies and outputs the drain current of the transistor 63.
The resistor 65 a is connected in series between the diode 61 and the source of the transistor 63 and is connected to the charge control IC 67. A voltage corresponding to the current supplied to the transistor 63 is generated at both ends of the resistor 65a. The charging control IC 67 detects the input current to the charging unit 53 by detecting the voltage across the resistor 65 a and controls the transistor 63.
[0031]
The resistor 65 b is connected in series to the coil 64 and also connected to the charge control IC 67. A voltage corresponding to the current output from the charging unit 53 is generated at both ends of the resistor 65a. The charging control IC 67 detects the output current of the charging unit 53 by detecting the voltage across the resistor 65b. Further, the charging control IC 67 detects the output voltage of the charging unit 53 by detecting the voltage on the output side of the resistor 65b.
[0032]
The charging control IC 67 detects the charging current and the charging voltage according to the voltage across the resistor 65b, and controls the transistor 63 so that the output current becomes a constant current during the constant current charging control, and during the constant voltage control. The transistor 63 is controlled so that the output voltage becomes a constant voltage.
FIG. 5 is a block diagram of a charge control IC according to an embodiment of the present invention.
[0033]
The charge control IC 67 has terminals T50 to T57. The terminal T50 is connected to a connection point between the diode 61 and the resistor 65a. The terminal T51 is connected to a connection point between the resistor 65a and the drain of the transistor 63. A reference voltage Vref0 is applied to the terminal T52 from the reference power supply 69. The terminal T53 is connected to a connection point between the coil 64 and the resistor 65b. The terminal T54 is connected to a connection point between the resistor 65b and the capacitor 66. A reference voltage Vref1 is applied to the terminal T55 from the reference power supply 70. The terminal T56 is connected to the charge control circuit 68. The terminal T57 is connected to the gate of the transistor 63.
[0034]
The charge control IC 67 includes error amplifiers 71 to 75, a triangular wave oscillator 76, a PWM comparator 77, and a driver 78.
The error amplifier 71 has a non-inverting input terminal connected to the terminal T50 and an inverting input terminal connected to the terminal T51. The error amplifier 71 outputs a signal corresponding to the voltage applied to the resistor 65a.
[0035]
The error amplifier 72 has an inverting input terminal connected to the output of the error amplifier 71 and a non-inverting input terminal connected to the terminal T52. The error amplifier 72 outputs a signal corresponding to the difference between the output of the error amplifier 71 and the reference voltage Vref0.
The error amplifier 73 has a non-inverting input terminal connected to the terminal T53 and an inverting input terminal connected to the terminal T54. The error amplifier 73 outputs a signal corresponding to the voltage applied across the resistor 65b.
[0036]
In the error amplifier 74, the output of the error amplifier 73 is supplied to the non-inverting input terminal, and the inverting input terminal is connected to the terminal T55. The error amplifier 74 outputs a signal corresponding to the difference between the output of the error amplifier 73 and the reference voltage Vref1.
The error amplifier 75 has a non-inverting input terminal connected to the terminal T54 and is supplied with a reference voltage Vref2 from a reference power supply 79 built in the inverting input terminal. The error amplifier 75 outputs a signal corresponding to the difference between the charging voltage and the reference voltage Vref2.
[0037]
The triangular wave oscillator 76 generates a triangular wave signal and supplies it to the PWM comparator 77.
The PWM comparator 77 has three non-inverting input terminals and one inverting input terminal. The output signals of the error amplifiers 72, 74, and 75 are input to the non-inverting input terminal, and a triangular wave is input to the inverting input terminal. The output triangular wave signal of the oscillator 76 is input. The PWM comparator 77 compares the output of the error amplifiers 72, 74, and 75 with the output of the triangular wave oscillator 76. When the smallest output among the outputs of the error amplifiers 72, 74, and 75 is smaller than the output of the triangular wave oscillator 76, the PWM comparator 77 is low. A pulse signal that becomes a high level when the smallest output among the outputs of the error amplifiers 72, 74, and 75 is larger than the output of the triangular wave oscillator 76 is output.
[0038]
The pulse signal output from the PWM comparator 77 is supplied to the driver 78. The driver 78 is connected to the terminal T57 and drives the transistor 63 corresponding to the pulse signal output from the PWM comparator 77. As described above, the charging control IC 67 performs the constant current charging control and the constant voltage charging control according to the input voltage, the charging voltage, and the charging current, and controls the charging operation.
[0039]
The charging control IC 68 is connected to the terminal T56 of the charging control IC 67. When the charging control signal supplied to the terminal T56 is valid, the charging control IC 67 puts the circuit into an operating state and is supplied to the terminal T56. When the charge control signal is invalid, the circuit is stopped and the transistor 63 is always turned off.
The charging control circuit 68 is connected to the external terminals T42 and T43, determines whether charging is necessary according to the voltage of the external terminal T42, and controls the charging control IC 67. The charge control circuit 68 controls the charge control IC 67 so as to stop the charge if the external terminal T42 is equal to or higher than the full charge voltage V2 of the battery pack 23.
[0040]
If the external terminal T43 is at a low level and the external terminal T42 is less than the full charge voltage V2 of the battery pack 23, the charging control circuit 68 validates the charging status indicating the charging status of the battery pack 23. The charge control circuit 68 disables the charging status indicating the charging status of the battery pack 23 when the external terminal T43 is at a high level or the external terminal T42 is at or above the full charge voltage V2 of the battery pack 23.
[0041]
FIG. 6 is a block diagram of a charge control circuit according to an embodiment of the present invention.
The charge control circuit 68 has terminals T61 to T64. Terminal T61 is connected to terminal T42. Terminal T62 is connected to terminal T43. The terminal T63 is connected to the terminal T63 of the charging control IC 67. The terminal T64 is connected to the CPU 25.
The charge control circuit 68 includes a comparator 81, a reference voltage source 82, an inverter 83, and an AND gate 84. The comparator 81 has an inverting input terminal connected to the terminal T61 and a non-inverting input terminal connected to the reference voltage source 82. The reference power source 82 generates a full charge voltage V2 in the battery pack 23 as a reference voltage. The comparator 81 compares the voltage at the terminal T61 with the reference voltage from the reference voltage source 82, and outputs a signal that is at a high level if the voltage at the terminal T61 is smaller than the reference voltage, and that is at a low level if greater. The output of the comparator 81 is supplied to the AND gate 84.
[0042]
The inverter 83 is connected to the terminal T62, inverts a signal for detecting the presence or absence of connection of the battery pack 23 supplied to the terminal T62, and supplies the inverted signal to the AND gate 84. The AND gate 84 outputs an AND logic between the output of the comparator 81 and the inverter 83. The output of the AND gate 84 becomes high level when the output of the comparator 81 is high level and the output of the inverter 83 is high level, and becomes low level in other cases. The output of the AND gate 84 is output from terminals T63 and T64. When the output of the AND gate 84 is at a high level, it is called valid, and when it is at a low level, it is called invalid.
[0043]
The charge control circuit 68 invalidates the charge control signal output from the terminal T63 when the voltage at the terminal T61 is equal to or higher than the full charge voltage V2 and when the terminal T62 is at the high level. The charge control circuit 68 validates the charge control signal output from the terminal T63 when the voltage at the terminal T61 is less than the full charge voltage V2 and the terminal T62 is at the low level. Further, the charge control circuit 68 validates the charge status output from the terminal T64 when the voltage at the terminal T61 is less than the full charge voltage V2 and the terminal T62 is at the low level.
[0044]
In order to quickly and safely charge the battery pack 23, the charging unit 53 performs constant current charging when the voltage of the battery pack 23 is lower than the predetermined voltage V1, and the voltage of the battery pack 23 is higher than the predetermined voltage V1. Sometimes, constant voltage charging is performed. The constant current charging is control for charging with a constant current I0, and the constant voltage charging is control for charging with a constant voltage V2.
[0045]
FIG. 7 is a diagram for explaining the charging operation of one embodiment of the present invention.
In FIG. 7, a solid line indicates a charging voltage waveform when the battery pack 23 is charged, and a broken line indicates a charging current waveform when the battery pack 23 is charged.
When the charging voltage of the battery pack 23 is smaller than the predetermined voltage V1, the charging unit 53 performs constant current charging with a constant current I0 as shown by a broken line in FIG. When the charging voltage of the battery pack 23 becomes equal to or higher than the predetermined voltage V1 at time t0, constant voltage charging is performed at a substantially full charging voltage V2. At this time, the charging current gradually decreases as shown by the broken line in FIG.
[0046]
Next, the AC adapter detection unit 54 will be described.
The AC adapter detection unit 54 includes resistors 91 and 92. The resistors 91 and 92 are connected in series between the terminal T41 and the ground, divide the voltage from the AC adapter 51, and output it as an AC adapter status. The AC adapter status becomes valid when a DC voltage is supplied from the AC adapter 51 to the terminal T41, and becomes invalid when the terminal T41 is opened.
[0047]
Next, the latch circuit 55 will be described.
The latch circuit 55 includes a resistor 101, an inverter 102, a NOR gate 103, and a flip-flop 104. One end of the resistor 101 is connected to the terminal T43, and a predetermined voltage V0 is applied to the other end. The inverter 102 is connected to the terminal T42, inverts the level of the terminal T42, and supplies it to the NOR gate 103.
[0048]
The NOR gate 103 outputs a NOR logic between the output of the inverter 102 and the output of the terminal T42. The output of the NOR gate 103 is supplied to the flip-flop 104. The flip-flop 104 holds the output of the NOR gate 103.
The output of the flip-flop 104 is supplied to the CPU 25 as the battery status.
[0049]
The sense resistor 56 has one end connected to the terminal T42 and the other end connected to the processing unit 21 via the diode 60. A current supplied from the battery pack 23 to the processing unit 21 flows through the sense resistor 56.
The voltage detection unit 57 includes resistors 111 and 112. The resistors 111 and 112 are connected in series, one end is connected to the terminal T42 and the other end is grounded, and the output voltage of the battery pack 23 is divided and output from the connection point between the resistor 111 and the resistor 112. To do. The output voltage of the voltage detector 57 is supplied to the CPU 25 as the detection voltage Vs.
[0050]
The current detection unit 58 includes resistors 121 to 127 and differential amplifiers 128 to 130. The resistors 121 and 122 are connected in series between a connection point between the sense resistor 56 and the diode 60 and the ground. A level-shifted voltage is output from the connection point between the resistor 121 and the resistor 122.
The resistors 123 and 124 are connected in series between the connection point between the sense resistor 56 and the terminal T42 and the ground. A level-shifted voltage is output from the connection point between the resistor 123 and the resistor 124.
[0051]
The differential amplifier 128 forms a non-inverting amplifier circuit, and non-inverting amplifies the voltage level-shifted by the resistors 121 and 122. The differential amplifier circuit 129 constitutes an inverting amplifier circuit, and inverts and amplifies the voltage level-shifted by the resistors 123 and 124.
The resistors 125 to 127 and the differential amplifier 130 constitute a differential amplifier circuit, and output a differential signal between the output of the differential amplifier 128 and the output of the differential amplifier 129. The output of the differential amplifier 130 is supplied to the CPU 25 as the detection current Is.
[0052]
The CPU 25 calculates the remaining amount of the battery pack 23 based on the charge status, AC adapter status, battery status, detection voltage Vs, and detection current Is generated by the power supply control circuit 22.
Next, processing in the CPU 25 for detecting the remaining amount of the battery pack 23 will be described.
[0053]
FIG. 8 shows a flowchart of the remaining battery level detection process according to an embodiment of the present invention.
The battery remaining amount detection processing program is stored in the storage device 24 and is executed by the CPU 25 every predetermined time. The remaining battery level detection processing program detects the remaining battery level from the charging status, AC adapter status, battery status bit, detected current value, and detected voltage value supplied from the power supply control circuit 22.
[0054]
In the battery remaining amount detection processing program, step S0 is first executed. In step S 0, the voltage detected by the voltage detection unit 57 and the current detected by the current detection unit 58 are captured. Next, step S1 is executed. Step S1 refers to the battery state change bit from the power supply control circuit 22 to determine whether or not the battery state bit is valid.
[0055]
If the battery status bit is invalid in step S1, it can be determined that the battery pack 23 has been replaced. If the battery status bit is invalid in step S1, step S2 is executed. In step S2, the remaining battery level is calculated according to the detected voltage value and detected current value detected by the power supply control circuit 22, and is used as the remaining battery level at that time.
[0056]
Here, the calculation method of the battery remaining amount in step S2 is demonstrated.
The remaining battery level CB is expressed by the following equation (1), where Vs is the detection voltage, Is is the detection current, A is the voltage weighting factor, B is the current weighting factor, C is the correction value, and D is the voltage /% conversion value. Calculated.
CB = (A * Vs + B * Is-C) / D [%] (1)
It is represented by The coefficients A, B, C, and D are experimentally determined by characteristics such as the remaining amount of the battery built in the battery pack 23 and the internal resistance r.
[0057]
The ratios of the coefficients A and B are determined by the internal resistance r of the battery pack 23. For example, when the internal resistance r of the battery pack 23 is large and the voltage Vs changes greatly according to the current Is, B is set large, A is set small, the internal resistance r is small, and the voltage Vs according to the current Is. When the change in is small, A is set large and B is set small.
[0058]
The coefficient D determines the voltage conversion ratio. The coefficient D is set so that the battery pack 23 is at a fully charged voltage and the remaining amount CB is 100%.
The coefficient C is a correction coefficient, and is determined by the conversion characteristic when the internal resistance r of the battery pack 23 and (A × Vs + B × Is) are converted to%.
Here, the coefficients A to D will be described in detail.
[0059]
The coefficient A is a weighting coefficient for the battery voltage, and is a numerical value for converting the voltage of the battery pack 23 and the numerical value read into the CPU 25 via the A / D converter built in the CPU 25 into the remaining battery ratio. is there. This numerical value is determined by the characteristics of the battery pack 23, the characteristics of the A / D converter, the characteristics of the device, and the like.
[0060]
The coefficient B is a weighting coefficient for the detected current, and is a numerical value for obtaining a correction value of the battery voltage from the numerical value obtained by reading the voltage generated at both ends of the current detection resistor into the CPU 25 via the A / D converter. This numerical value is determined by the characteristics of the battery pack 23 such as the current detection resistance value, the characteristics of the A / D converter, the characteristics of the device, and the internal resistance.
[0061]
The coefficients C and D are coefficients for converting the battery voltage into a capacity. Since the battery pack 23 has a constant voltage even at the time of discharging, it is necessary to consider this voltage in order to convert the battery voltage into the remaining amount. Also, these coefficients are used to make the capacity display a percentage. These numerical values also vary depending on the conditions of the battery and the device, and the values are determined by a method such as calculation / experiment.
[0062]
In the above equation (1), calculation is performed by adding B × Is to A × Vs. That is, by adding the value (B × Is) corresponding to the voltage drop due to the internal resistance of the battery pack 23 to the value (A × Vs) corresponding to the voltage Vs of the battery pack 23, the voltage drop due to the internal resistance r is obtained. The battery voltage measured by is corrected. That is, the voltage drop of the battery pack 23 is corrected.
[0063]
As described above, according to the above equation (1), the voltage Vs of the battery pack 23 can be corrected by the current Is flowing through the internal resistance r of the battery pack 23. For this reason, the voltage of the battery pack 23 can be determined accurately. Therefore, the remaining amount of the battery pack 23 can be accurately calculated.
When the remaining amount of the battery pack 23 is calculated based on the above equation (1) in step S2, step S3 is executed next. In step S 3, the remaining amount of the battery pack 23 calculated in step S 2 is stored in the remaining amount memory set in the storage device 24.
[0064]
If the battery status bit is valid in step S1, step S4 is executed next. In step S4, it is determined whether or not the AC adapter 51 is connected to the external terminal T41. Whether or not the AC adapter 51 is connected to the external terminal T41 is determined by the AC adapter status supplied from the power supply control circuit 22.
If the AC adapter 51 is attached at step S4, then step S5 is executed. In step S5, it is determined whether or not the battery pack 23 is being charged. Whether or not the battery pack 23 is being charged is determined based on the charging status supplied from the power supply control circuit 22.
[0065]
If it is not charging in step S5, next step S6 is executed. In step S6, it is determined whether or not the detection voltage Vs detected by the power supply control circuit 22 is the full charge voltage V2.
If the detected voltage Vs is not less than the full charge voltage V2 at step S6, then step S7 is executed. In step S7, since it can be determined that the remaining battery level is 100%, the remaining battery level is determined to be 100%. When the remaining amount of the battery pack 23 is determined to be 100% in step S7, 100% is stored in the remaining amount memory as the remaining amount of the battery pack 23 in step S3.
[0066]
If the detected voltage Vs is less than the full charge voltage V2 in step S6, it can be determined that there is an abnormality in the device, so "UNKOWN" is displayed and the process ends.
If charging is being performed in step S5, step S9 is executed next. In step S9, it is determined whether or not the detected voltage Vs is equal to or higher than a switching voltage V1 for switching between constant current charging and constant voltage charging.
[0067]
If the detected voltage Vs is greater than or equal to the switching voltage V1 in step S9, then step S10 is executed. In step S10, the remaining battery level is calculated from the detected current Is. When the detection voltage Vs is equal to or higher than the switching voltage V1, constant voltage charging is performed by the charging unit 51, and the change in the detection voltage Vs is very small as shown by the solid line in FIG. The remaining amount cannot be calculated accurately. Therefore, as shown by the broken line in FIG. 7, the remaining amount of the battery pack 23 is calculated from the detected current Is that gradually decreases.
[0068]
A method for calculating the remaining battery level CB from the detected current Is will be described.
The battery remaining amount CB is obtained by the following equation (2), where Is is the detected current, α is the correction coefficient, and β is the% conversion coefficient.
CB = (Is + α) / β (2)
The coefficients α and β are determined according to the characteristics of the battery pack 23 and are obtained experimentally.
[0069]
If the detected voltage Vs is less than the switching voltage V1 in step S9, then step S11 is executed. In step S11, the remaining battery level CB is calculated from the detected voltage Vs. When the detected voltage Vs is less than the switching voltage V1, the battery pack 23 is charged with a constant current I0 by the charging unit 51. Therefore, the detected current Is is a constant current I0 as shown by a broken line in FIG. Become. For this reason, the remaining amount CB of the battery pack 23 cannot be detected from the detected current Is. For this reason, the remaining battery level CB is calculated from the detected voltage Vs.
[0070]
A method for calculating the remaining battery level CB from the detection voltage Vs will be described.
The remaining battery charge CB is calculated by the following equation (3), where Vs is the detection voltage s and γ is the% conversion coefficient.
CB = Vs / γ (3)
The coefficient γ is determined according to the characteristics of the battery pack 23, and is obtained experimentally.
[0071]
Next, when the battery remaining amount CB is calculated in steps S10 and S11, step S12 is executed next. In step S12, the remaining battery level CB calculated in steps S10 and S11 is compared with the remaining battery level Cb stored in the remaining amount memory in step S3, and whether or not the remaining battery level CB is greater than the remaining battery level Cb. Determine.
[0072]
If the remaining battery level CB is greater than the remaining battery level Cb in step S12, step S13 is executed. In step S13, the battery remaining amount CB calculated in steps S10 and S11 is determined as the current battery remaining amount. This is because if the remaining battery level CB is larger than the remaining battery level Cb in step S12, it is determined that charging has been performed and the remaining battery level has increased.
[0073]
In step S12, if the remaining battery level CB is smaller than the remaining battery level Cb, step S14 is executed. In step S14, the battery remaining amount Cb stored in the remaining amount memory in step S3 in the previous process is determined as the current battery remaining amount. This is because since the battery is being charged, the remaining amount of the battery does not decrease and it can be determined that the detection current Is or the measurement error of the detection voltage Vs is a measurement error.
[0074]
When the remaining battery levels CB and Cb are determined in steps S13 and S14, the remaining battery level determined in step S3 is stored in the remaining capacity memory.
Next, a case where it is determined in step S4 that the AC adapter 51 is not connected to the external terminal T41 will be described.
If the AC adapter 51 is not connected to the external terminal T41 in step S4, then step S15 is executed. In step S15, the remaining battery level is calculated by the above-described equation (1).
[0075]
When the remaining battery level is calculated by equation (1) in step S15, next step S16 is executed. In step S16, the battery remaining amount CB calculated in step S15 is compared with the battery remaining amount Cb stored in the remaining amount memory in step S3 in the previous process, and whether or not the battery remaining amount CB is equal to or less than the battery remaining amount Cb. Determine.
In step S16, if the remaining battery level CB is less than or equal to the remaining battery level Cb, step S13 is executed. This is because it can be determined that the battery pack 23 has been consumed.
[0076]
In step S16, when the remaining battery level CB is larger than the remaining battery level Cb, step S14 is executed. This is because the battery remaining amount CB of the battery pack 23 does not increase because the battery pack 23 is consumed, and therefore, it can be determined that this is a measurement error of the detected current Is or the detected voltage Vs.
[0077]
Thus, the remaining battery level to be displayed in the remaining amount memory is stored.
The CPU 25 displays the battery remaining amount stored in the remaining amount memory on the display device 28.
In this embodiment, the battery pack remaining amount display in the portable computer has been described. However, the present invention is not limited to the portable computer and can be applied to an electronic device driven by a battery.
[0078]
【The invention's effect】
  As mentioned above,ClearlyAccording to this, since the influence of the voltage drop of the internal resistance of the battery can be considered in the battery voltage by detecting the current, the accurate voltage of the battery can be detected, and therefore the remaining amount of the battery can be accurately detected, etc. It has the following features.
[0079]
  Also,The present inventionAccording to the above, when the battery is discharged, the remaining amount of the battery decreases sequentially. Therefore, by adopting the remaining amount when the calculated remaining amount is small as the remaining amount of the battery, an accurate charge amount is obtained. It has the feature that can be displayed.Furthermore, the present inventionAccording to the above, when the battery is charged, the remaining amount of the battery sequentially increases. Therefore, by adopting the remaining amount when the calculated remaining amount is large as the remaining amount of the battery, an accurate charge amount is obtained. It has the feature that can be displayed.
[0080]
  Also, in the present inventionAccording to the present invention, when the battery attachment / detachment is detected, the remaining amount of the battery is different from the remaining amount stored in the storage means, so that the unnecessary remaining comparison is avoided and the calculated remaining battery amount is output as it is. Thus, the processing load can be reduced.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining an example of a conventional current integrating method.
FIG. 2 is a diagram for explaining a conventional method of calculating a remaining amount from a voltage of a battery.
FIG. 3 is a block diagram of an embodiment of the present invention.
FIG. 4 is a block diagram of a power supply control circuit according to an embodiment of the present invention.
FIG. 5 is a block diagram of a charging control IC according to an embodiment of the present invention.
FIG. 6 is a block diagram of a charge control circuit according to an embodiment of the present invention.
FIG. 7 is a diagram for explaining a charging operation according to an embodiment of the present invention.
FIG. 8 is a flowchart of battery remaining amount detection processing according to an embodiment of the present invention.
[Explanation of symbols]
20 Portable computer
21 Processing equipment
22 Power control circuit
23 Battery pack
24 storage devices
25 CPU
28 Display device
51 AC adapter
53 Charging section
54 AC adapter detector
55 Latch circuit
56 sense resistor
57 Voltage detector
58 Current detector
63 transistors
64 coils
65 resistance
66 capacitors
67 Charge control IC
68 Charge control circuit

Claims (8)

バッテリの残量を検出するバッテリ残量検出装置において、
前記バッテリの電圧を検出する電圧検出手段と、
前記バッテリから供給される電流を検出する電流検出手段と、
前記電圧検出手段で検出された検出電圧を前記電流検出手段で検出された検出電流に基づいて補正し、補正された電圧に基づいて前記バッテリの残量を算出するバッテリ残量算出手段と
前記バッテリが放電されている場合に、前記バッテリ残量算出手段で算出された残量が前回の残量より小さいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より大きいときには、前回の残量を今回の残量にするバッテリ残量比較決定手段と、
前記バッテリの脱着を検出する脱着検出手段と、
前記脱着検出手段で前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手段で算出された残量を前記バッテリの残量に決定する残量決定出力手段とを有することを特徴とするバッテリ残量検出装置。
In the battery remaining amount detection device for detecting the remaining amount of the battery,
Voltage detecting means for detecting the voltage of the battery;
Current detecting means for detecting a current supplied from the battery;
A battery remaining amount calculating unit that corrects the detected voltage detected by the voltage detecting unit based on the detected current detected by the current detecting unit, and calculates the remaining amount of the battery based on the corrected voltage ;
When the battery is discharged and the remaining amount calculated by the battery remaining amount calculating means is smaller than the previous remaining amount, the calculated remaining amount is set as the current remaining amount, and the calculated remaining amount is set as the previous remaining amount. When the remaining amount of the battery is larger than the remaining amount of the battery, the battery remaining amount comparison determining means for changing the previous remaining amount to the current remaining amount,
A desorption detecting means for detecting desorption of the battery;
And a remaining amount determination output unit that determines the remaining amount calculated by the remaining battery amount calculating unit as the remaining amount of the battery when the removal / removal of the battery is detected by the desorption detecting unit. Battery remaining amount detection device.
バッテリの残量を検出するバッテリ残量検出装置において、In the battery remaining amount detection device for detecting the remaining amount of the battery,
前記バッテリの残量を算出するバッテリ残量算出手段と、  Battery remaining amount calculating means for calculating the remaining amount of the battery;
前記バッテリが充電されている場合に、前記バッテリ残量算出手段で算出された残量が前回の残量より大きいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より小さいときには、前回の残量を今回の残量にする残量比較決定手段と、  When the battery is charged and the remaining amount calculated by the battery remaining amount calculating means is larger than the previous remaining amount, the calculated remaining amount is set as the current remaining amount, and the calculated remaining amount is set as the previous remaining amount. When the remaining amount is less than the remaining amount, the remaining amount comparison determining means for changing the previous remaining amount to the current remaining amount,
前記バッテリの脱着を検出する脱着検出手段と、  A desorption detecting means for detecting desorption of the battery;
前記脱着検出手段で前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手段で算出された残量を前記バッテリの残量に決定する残量決定出力手段とを有することを特徴とするバッテリ残量検出装置。  And a remaining amount determination output unit configured to determine the remaining amount calculated by the remaining battery amount calculating unit as the remaining amount of the battery when the attachment / detachment detecting unit detects the attachment / detachment of the battery. Battery remaining amount detection device.
バッテリの残量を検出するバッテリ残量検出方法において、In the battery remaining amount detection method for detecting the remaining amount of the battery,
前記バッテリの電圧を検出する電圧検出手順と、  A voltage detection procedure for detecting the voltage of the battery;
前記バッテリから供給される電流を検出する電流検出手順と、  A current detection procedure for detecting a current supplied from the battery;
前記電圧検出手順で検出された検出電圧を前記電流検出手順で検出された検出電流に基づいて検出電圧を補正し、補正された電圧に基づいて前記バッテリの残量を算出するバッテリ残量算出手順と、  A battery remaining amount calculating procedure for correcting the detected voltage detected by the voltage detecting procedure based on the detected current detected by the current detecting procedure and calculating the remaining amount of the battery based on the corrected voltage. When,
前記バッテリが放電されている場合に、前記バッテリ残量算出手順で算出された残量が前回の残量より小さいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より大きいときには、前回の残量を今回の残量にするバッテリ残量比較決定手順と、  When the battery is discharged and the remaining amount calculated in the battery remaining amount calculation procedure is smaller than the previous remaining amount, the calculated remaining amount is set to the current remaining amount, and the calculated remaining amount is set to the previous remaining amount. When the remaining battery level is greater than
前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手順で算出された残量を前記バッテリの残量に決定する残量決定出力手順とを有することを特徴とするバッテリ残量検出方法。  And a remaining battery level determining output procedure for determining the remaining battery level calculated in the remaining battery level calculating procedure as the remaining battery level when the removal / attachment of the battery is detected. .
バッテリの残量を検出するバッテリ残量検出方法において、In the battery remaining amount detection method for detecting the remaining amount of the battery,
前記バッテリの残量を算出するバッテリ残量算出手順と、  A battery remaining amount calculating procedure for calculating the remaining amount of the battery;
前記バッテリが充電されている場合に、前記バッテリ残量算出手順で算出された残量が前回の残量より大きいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より小さいときには、前回の残量を今回の残量にする残量比較決定手順と、  When the battery is charged and the remaining amount calculated in the battery remaining amount calculation procedure is larger than the previous remaining amount, the calculated remaining amount is set as the current remaining amount, and the calculated remaining amount is set as the previous remaining amount. When the remaining amount is less than the remaining amount, the remaining amount comparison determination procedure for changing the previous remaining amount to the current remaining amount,
前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手順で算出された残量を前記バッテリの残量に決定する残量決定出力手順とを有することを特徴とするバッテリ残量検出方法。  And a remaining battery level determining output procedure for determining the remaining battery level calculated in the remaining battery level calculating procedure as the remaining battery level when the removal / attachment of the battery is detected. .
バッテリにより駆動される電子機器において、In an electronic device driven by a battery,
前記バッテリの電圧を検出する電圧検出手段と、  Voltage detecting means for detecting the voltage of the battery;
前記バッテリから供給される電流を検出する電流検出手段と、  Current detecting means for detecting a current supplied from the battery;
前記電圧検出手段で検出された検出電圧を前記電流検出手段で検出された検出電流に基づいて補正し、補正された電圧に基づいて前記バッテリの残量を算出するバッテリ残量算  A battery remaining amount calculator that corrects the detected voltage detected by the voltage detecting unit based on the detected current detected by the current detecting unit and calculates the remaining amount of the battery based on the corrected voltage. 出手段と、Means of exiting,
前記バッテリが放電されている場合に、前記バッテリ残量算出手段で算出された残量が前回の残量より小さいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より大きいときには、前回の残量を今回の残量にするバッテリ残量比較決定手段と、  When the battery is discharged and the remaining amount calculated by the battery remaining amount calculating means is smaller than the previous remaining amount, the calculated remaining amount is made the current remaining amount, and the calculated remaining amount is the previous remaining amount. When the remaining amount of the battery is larger than the remaining amount of the battery, the remaining battery level comparison determining means for changing the previous remaining amount to the current remaining amount,
前記バッテリの脱着を検出する脱着検出手段と、  A desorption detecting means for detecting desorption of the battery;
前記脱着検出手段で前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手段で算出された残量を前記バッテリの残量に決定する残量決定出力手段とを有することを特徴とする電子機器。  And a remaining amount determination output unit configured to determine the remaining amount calculated by the remaining battery amount calculating unit as the remaining amount of the battery when the attachment / detachment detecting unit detects the attachment / detachment of the battery. Electronics.
バッテリにより駆動される電子機器おいて、In an electronic device driven by a battery,
前記バッテリの残量を算出するバッテリ残量算出手段と、  Battery remaining amount calculating means for calculating the remaining amount of the battery;
前記バッテリが充電されている場合に、前記バッテリ残量算出手段で算出された残量が前回の残量より大きいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より小さいときには、前回の残量を今回の残量にする残量比較決定手段と、  When the battery is charged and the remaining amount calculated by the battery remaining amount calculating means is larger than the previous remaining amount, the calculated remaining amount is set as the current remaining amount, and the calculated remaining amount is set as the previous remaining amount. When the remaining amount is less than the remaining amount, the remaining amount comparison determining means for changing the previous remaining amount to the current remaining amount,
前記バッテリの脱着を検出する脱着検出手段と、  A desorption detecting means for detecting desorption of the battery;
前記脱着検出手段で前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手段で算出された残量を前記バッテリの残量に決定する残量決定出力手段とを有することを特徴とする電子機器。  And a remaining amount determination output unit configured to determine the remaining amount calculated by the remaining battery amount calculating unit as the remaining amount of the battery when the attachment / detachment detecting unit detects the attachment / detachment of the battery. Electronics.
コンピュータに、On the computer,
バッテリの電圧を検出する電圧検出手順と、  A voltage detection procedure for detecting the voltage of the battery;
前記バッテリから供給される電流を検出する電流検出手順と、  A current detection procedure for detecting a current supplied from the battery;
前記電圧検出手順で検出された検出電圧を前記電流検出手順で検出された検出電流に基づいて補正し、補正された電圧に基づいて前記バッテリの残量を算出するバッテリ残量算出手順と、  Correcting the detection voltage detected in the voltage detection procedure based on the detection current detected in the current detection procedure, and calculating the remaining battery level based on the corrected voltage;
前記バッテリが放電されている場合に、前記バッテリ残量算出手順で算出された残量が前回の残量より小さいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より大きいときには、前回の残量を今回の残量にするバッテリ残量比較決定手順と、  When the battery is discharged and the remaining amount calculated in the battery remaining amount calculation procedure is smaller than the previous remaining amount, the calculated remaining amount is set to the current remaining amount, and the calculated remaining amount is set to the previous remaining amount. When the remaining battery level is greater than
前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手順で算出された残量を前記バッテリの残量に決定する残量決定出力手順とを実行させるコンピュータ読み取り可能な記録媒体。  A computer-readable recording medium that executes a remaining amount determination output procedure for determining the remaining amount calculated in the battery remaining amount calculation procedure as the remaining amount of the battery when the attachment / detachment of the battery is detected.
コンピュータに、On the computer,
バッテリの残量を算出するバッテリ残量算出手順と、  A battery remaining amount calculating procedure for calculating the remaining amount of the battery;
前記バッテリが充電されている場合に、前記バッテリ残量算出手順で算出された残量が前回の残量より大きいときには、算出された残量を今回の残量にし、算出された残量が前回の残量より小さいときには、前回の残量を今回の残量にする残量比較決定手順と、  When the battery is charged and the remaining amount calculated in the battery remaining amount calculation procedure is larger than the previous remaining amount, the calculated remaining amount is set as the current remaining amount, and the calculated remaining amount is set as the previous remaining amount. When the remaining amount is less than the remaining amount, the remaining amount comparison determination procedure for changing the previous remaining amount to the current remaining amount,
前記バッテリの脱着が検出されたときに、前記バッテリ残量算出手順で算出された残量を前記バッテリの残量に決定する残量決定出力手順とを実行させるコンピュータ読み取り可能な記録媒体。  A computer-readable recording medium that executes a remaining amount determination output procedure for determining the remaining amount calculated in the battery remaining amount calculation procedure as the remaining amount of the battery when the attachment / detachment of the battery is detected.
JP29987799A 1999-10-21 1999-10-21 Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium Expired - Fee Related JP3938643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29987799A JP3938643B2 (en) 1999-10-21 1999-10-21 Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29987799A JP3938643B2 (en) 1999-10-21 1999-10-21 Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium

Publications (2)

Publication Number Publication Date
JP2001119864A JP2001119864A (en) 2001-04-27
JP3938643B2 true JP3938643B2 (en) 2007-06-27

Family

ID=17878045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29987799A Expired - Fee Related JP3938643B2 (en) 1999-10-21 1999-10-21 Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium

Country Status (1)

Country Link
JP (1) JP3938643B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4039556B2 (en) * 2002-07-12 2008-01-30 ソニー・エリクソン・モバイルコミュニケーションズ株式会社 Electronic device, monitoring apparatus and method, recording medium, and program
JP4030008B2 (en) * 2002-08-08 2008-01-09 ソニー・エリクソン・モバイルコミュニケーションズ株式会社 Voltage detection apparatus, voltage detection method, and electronic apparatus
TWI403750B (en) * 2011-01-07 2013-08-01 Acer Inc Battery capacity calculating method and device thereof

Also Published As

Publication number Publication date
JP2001119864A (en) 2001-04-27

Similar Documents

Publication Publication Date Title
US5841284A (en) Apparatus for monitoring power of battery to supply electric power to load
JP4668957B2 (en) Charge control method and electronic device
US7917781B2 (en) Universal USB power supply
JP3080655B2 (en) Microcontroller with analog pre-circuit for intelligent battery management
US6452364B1 (en) Battery charge control circuit, battery charging device, and battery charge control method
US8305035B2 (en) Energy storage device
US7750612B2 (en) Voltage-pulse converting circuit and charge control system
WO1994001784A1 (en) Method and apparatus for monitoring the operating parameters of a battery
EP0649576A1 (en) Method and apparatus for monitoring battery capacity under fast discharge conditions
US9766295B2 (en) Coulomb counting using analog-to-frequency conversion
KR20070041361A (en) Apparatus and method of measuring charges in a battery on the basis of the voltage and portable electric instrument with the same
JP2001268899A (en) Power source controller, power source circuit and method for controlling power source as well as electronic equipment
JPH03269268A (en) Diagnostic apparatus of deterioration of capacitor
US10211731B2 (en) Semiconductor device and display device
US6339315B1 (en) Measuring counter of the state of charge of the powering battery of an electronic appliance
JP4846755B2 (en) Portable electronic devices
JP3938643B2 (en) Battery remaining amount detection device, battery remaining amount detection method, electronic device, and recording medium
JP2000137062A (en) Method and device for detecting residual capacity of secondary battery
JP2001185233A (en) Detection circuit for battery voltage, battery pack and detection method of battery voltage
JP4827457B2 (en) Electronic device and battery device
JP2000323177A (en) Charge control device
EP1081823A2 (en) Apparatus and method for compensating leakage current and battery self discharge of a system
JP2001174534A (en) Battery remaining capacity measuring device
US20090033284A1 (en) Charging device with battery capacity analysis function
US20050180227A1 (en) Booster circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050201

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061024

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061225

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070320

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070323

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees