JP3070833B2 - Battery level monitoring method for portable information terminals - Google Patents
Battery level monitoring method for portable information terminalsInfo
- Publication number
- JP3070833B2 JP3070833B2 JP8305667A JP30566796A JP3070833B2 JP 3070833 B2 JP3070833 B2 JP 3070833B2 JP 8305667 A JP8305667 A JP 8305667A JP 30566796 A JP30566796 A JP 30566796A JP 3070833 B2 JP3070833 B2 JP 3070833B2
- Authority
- JP
- Japan
- Prior art keywords
- battery
- cpu
- voltage measurement
- voltage
- bus
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims description 38
- 238000000034 method Methods 0.000 title claims description 23
- 238000005259 measurement Methods 0.000 claims description 111
- 230000004044 response Effects 0.000 claims description 5
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 25
- 229910001416 lithium ion Inorganic materials 0.000 description 25
- 238000012545 processing Methods 0.000 description 9
- 230000002093 peripheral effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 239000000571 coke Substances 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Secondary Cells (AREA)
- Tests Of Electric Status Of Batteries (AREA)
- Power Sources (AREA)
- Calculators And Similar Devices (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は携帯情報端末の電池
残量監視方式に関し、特にパームトップ型ペン入力コン
ピュータ,ノート型パーソナルコンピュータ等でなる携
帯情報端末の電池残量監視方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for monitoring the remaining battery level of a portable information terminal, and more particularly to a method for monitoring the remaining battery level of a portable information terminal such as a palm-top pen input computer and a notebook personal computer.
【0002】[0002]
【従来の技術】携帯情報端末においては、電池等の限ら
れた電力の動作電源で動作するため、動作電源の残り電
力を監視して、その残量を知ることは重要である。従来
の電池残量の測定方法としては、動作電源としてコーク
ス系のリチウムイオン電池を使用した場合、ある一定値
の負荷をかけた状態の電池電圧を測定して、その電圧値
から電池残量を推測するような方法をとっていた。電池
電圧の測定は、例えば、実開平5−47871号公報の
従来例にあるように、A/D(Analog/Digi
tal)コンバータによって行われていた。2. Description of the Related Art In a portable information terminal, an operation power supply having a limited power such as a battery is used. Therefore, it is important to monitor the remaining power of the operation power supply and to know the remaining power. As a conventional method of measuring the remaining battery level, when a coke-based lithium-ion battery is used as an operating power source, the battery voltage under a certain constant load is measured, and the remaining battery capacity is calculated from the voltage value. He was taking a guesswork. The measurement of the battery voltage is performed by, for example, A / D (Analog / Digi) as disclosed in the conventional example of Japanese Utility Model Laid-Open No. 5-47871.
tal) converter.
【0003】しかし、現在の携帯情報端末においては、
複数の処理を同時を行うため、マルチタスクOS(Op
erating System)上で複数のタスクを動
かし、複数の処理を同時にこなしている。このようなマ
ルチタスクOSでは、時々刻々とタスクの量が大きく変
化するため、それを処理するCPU(CentralP
rocessing Unit)での処理量も時間によ
り大きく変化する。マルチタスクOSを動かした場合、
時間によりタスクの量が変化するため、CPUの消費電
力を一定の値することが難しい。However, in the current portable information terminal,
A multitask OS (Op
A plurality of tasks are run on an erating system to simultaneously perform a plurality of processes. In such a multitask OS, since the amount of a task changes greatly every moment, a CPU (Central P
The processing amount at the processing unit also changes greatly with time. When running a multitasking OS,
Since the amount of tasks changes with time, it is difficult to make the power consumption of the CPU constant.
【0004】そこで、電池残量を測定するためには、マ
ルチタスクOSにCPUの消費電力を一定にするような
タスクを1つだけ動かすモードをつける必要がある。な
ぜならば、携帯情報端末の大半の消費電力を占めるCP
Uの消費電力を一定化することにより動作電源であるリ
チウムイオン電池の負荷を一定にすることができ、その
際のリチウムイオン電池の電圧を測ることにより電池残
量を推測できるからである。[0004] Therefore, in order to measure the remaining battery level, it is necessary to provide a multitask OS with a mode in which only one task that keeps the power consumption of the CPU constant is operated. This is because the CP that accounts for the majority of the power consumption of portable information terminals
This is because by making the power consumption of U constant, it is possible to make the load of the lithium ion battery which is the operation power supply constant, and to estimate the remaining battery level by measuring the voltage of the lithium ion battery at that time.
【0005】図4は、従来の携帯情報端末の一例を示す
要部回路ブロック図である。この携帯情報端末は、動作
電源としてのリチウムイオン電池1と、中央処理部とし
てのCPU2と、通信,キー入力,表示等の入出力を行
う周辺回路3と、電池電圧を測定するA/Dコンバータ
6と、マルチタスクOS(図示せず),電池残量監視タ
スク21等が格納された主記憶7とを含んで構成されて
いる。FIG. 4 is a circuit diagram of a main part showing an example of a conventional portable information terminal. This portable information terminal includes a lithium ion battery 1 as an operation power supply, a CPU 2 as a central processing unit, a peripheral circuit 3 for input / output such as communication, key input, and display, and an A / D converter for measuring a battery voltage. 6 and a main memory 7 in which a multitask OS (not shown), a battery remaining amount monitoring task 21 and the like are stored.
【0006】CPU2は、バス10を通じて周辺回路3
とデータのやり取りを行う。特に、CPU2において
は、マルチタスクOSが走っていて処理が時間とともに
大きく変化し、それに伴いCPU2の消費電力も大きく
変化する。また、周辺回路3も、CPU2の動作に合わ
せて消費電力が大きく変化する。CPU2および周辺回
路3以外の消費電力はあまり大きくないため、CPU2
のタスクの変化が携帯情報端末全体の消費電力に大きな
変化を与える。A/Dコンバータ6は、CPU2からバ
ス10を通じて電圧測定要求17を受けることにより、
電圧供給線11から分岐した電圧測定線12を通じて供
給されるリチウムイオン電池1の電圧をA/D変換し
て、測定結果を測定結果線13を通じてCPU2に伝え
る。The CPU 2 is connected to the peripheral circuit 3 through a bus 10.
To exchange data with In particular, in the CPU 2, the multitask OS is running, and the processing greatly changes over time, and accordingly, the power consumption of the CPU 2 also greatly changes. Also, the power consumption of the peripheral circuit 3 greatly changes in accordance with the operation of the CPU 2. Since the power consumption other than the CPU 2 and the peripheral circuit 3 is not so large, the CPU 2
The change in the task causes a great change in the power consumption of the entire portable information terminal. The A / D converter 6 receives the voltage measurement request 17 from the CPU 2 through the bus 10,
The voltage of the lithium ion battery 1 supplied through a voltage measurement line 12 branched from the voltage supply line 11 is A / D converted, and the measurement result is transmitted to the CPU 2 through a measurement result line 13.
【0007】このような従来の携帯情報端末では、電池
残量の測定方法は、まず、CPU2上のマルチタスクO
Sが動作しているタスクをすべて止めた後に電池残量監
視タスク21を起動し、これによりCPU2の消費電力
を一定化してリチウムイオン電池1の負荷を一定化す
る。次に、電池残量監視タスク21がA/Dコンバータ
6にバス10を介して電圧測定要求17を出力し、A/
Dコンバータ6がこれを受けてリチウムイオン電池1の
電圧を電力供給線11から分岐した電圧測定線12を通
じて測定し、その測定結果を測定結果線13上に出力す
る。CPU2上で動作する電池残量監視タスク21は、
測定結果線13上の測定結果を入力し、予め測定してお
いたサンプルデータと比較することによりリチウムイオ
ン電池1の残量を推測する。リチウムイオン電池1の残
量の推測後、CPU2上のマルチタスクOSは、電池残
量監視タスク21を終了させた後に、電池残量測定のた
めに止めたすべてのタスクを再度走らせる。In such a conventional portable information terminal, the method of measuring the remaining battery power is as follows.
After all the tasks in which S is running are stopped, the battery remaining amount monitoring task 21 is started, whereby the power consumption of the CPU 2 is made constant and the load on the lithium ion battery 1 is made constant. Next, the battery remaining amount monitoring task 21 outputs a voltage measurement request 17 to the A / D converter 6 via the bus 10, and the A / D converter 6
In response, the D converter 6 measures the voltage of the lithium ion battery 1 through a voltage measurement line 12 branched from the power supply line 11 and outputs the measurement result on a measurement result line 13. The battery remaining amount monitoring task 21 operating on the CPU 2 includes:
The measurement result on the measurement result line 13 is input, and the remaining amount of the lithium ion battery 1 is estimated by comparing with the sample data measured in advance. After estimating the remaining amount of the lithium ion battery 1, the multitask OS on the CPU 2 terminates the remaining battery amount monitoring task 21 and then runs all the tasks stopped for the remaining battery amount measurement again.
【0008】[0008]
【発明が解決しようとする課題】上述した従来の技術に
おける問題点は、携帯情報端末でマルチタスクOSを動
かしながら電池残量を測定するには、マルチタスクOS
にCPUの消費電力を一定化するための電池残量監視タ
スクのみを動かすモードを付与する必要があることであ
る。その理由は、携帯情報端末でマルチタスクOSを動
かした場合、時間によりタスクの量が変化するため、C
PUの消費電力を一定化することが難しいので、動作電
源であるリチウムイオン電池の負荷が一定にならず、電
池残量を推測することが困難なためである。A problem with the above-mentioned prior art is that a multitasking OS is required to measure the remaining battery level while operating the multitasking OS on a portable information terminal.
Needs to be provided with a mode in which only the remaining battery level monitoring task for stabilizing the power consumption of the CPU is operated. The reason is that when a multitasking OS is run on a portable information terminal, the amount of tasks changes with time.
This is because it is difficult to stabilize the power consumption of the PU, so that the load of the lithium ion battery as the operation power source is not constant, and it is difficult to estimate the remaining battery level.
【0009】本発明の目的は、携帯情報端末に載せるマ
ルチタスクOSに電池残量監視タスクのみを動かすため
だけに必要な特殊なモードをつけずに、マルチタスクO
Sを簡単に携帯情報端末に搭載することができる携帯情
報端末の電池残量監視方式を提供することにある。An object of the present invention is to provide a multitasking OS which is mounted on a portable information terminal without a special mode necessary only for operating a battery remaining amount monitoring task.
An object of the present invention is to provide a battery level monitoring method for a portable information terminal, which can easily mount S on a portable information terminal.
【0010】[0010]
【課題を解決するための手段】本発明の携帯情報端末の
電池残量監視方式は、電池を電源とし、バスをホールド
可能なCPUを使用する携帯情報端末において、電池残
量測定時にCPUに対してバスホールド要求を発行する
バスホールド要求発行手段と、このバスホールド要求発
行手段によるバスホールド要求から前記CPUの消費電
力が一定化するまで以上の所定時間が経過した後に電圧
測定トリガを出力する電圧測定トリガ手段と、この電圧
測定トリガ手段からの電圧測定トリガを受けて前記電池
の電圧を測定する電圧測定手段と、この電圧測定手段に
よる測定結果から電池の残量を推測する電池残量推測手
段とを有することを特徴とする。SUMMARY OF THE INVENTION A portable information terminal battery level monitoring system according to the present invention uses a battery as a power source and uses a CPU capable of holding a bus. Bus hold request issuing means for issuing a bus hold request, and a voltage for outputting a voltage measurement trigger after a predetermined period of time has elapsed after the bus hold request issued by the bus hold request issuing means until the power consumption of the CPU becomes constant. Measurement trigger means, voltage measurement means for measuring the voltage of the battery in response to a voltage measurement trigger from the voltage measurement trigger means, and battery remaining quantity estimating means for estimating the remaining battery capacity from the measurement result by the voltage measurement means And characterized in that:
【0011】また、本発明の携帯情報端末の電池残量監
視方式は、電池を電源とし、バスをホールド可能なCP
Uを使用する携帯情報端末において、一定時間毎に起動
されて電圧測定要求を発行し、測定結果を入力して電池
残量を推測する電池残量監視タスクと、この電池残量監
視タスクからの電圧測定要求に基づいてバスホールド要
求を前記CPUに発行し、前記CPUからバスホールド
要求了解を受信するバスホールド制御回路と、前記CP
Uからのバスホールド要求了解を受信してから前記CP
Uの消費電力が一定化するまで以上の所定時間が経過し
た後に電圧測定トリガを出力する電圧測定開始タイマ
と、この電圧測定開始タイマからの電圧測定トリガを受
けて前記電池の電圧を測定し、測定結果を出力するA/
Dコンバータとを有することを特徴とする。[0011] In the portable information terminal of the present invention, the battery remaining amount monitoring method is a method in which a battery is used as a power source and a bus can be held.
In the portable information terminal using U, a battery level monitoring task which is started up at regular time intervals, issues a voltage measurement request, inputs a measurement result and estimates the battery level, and A bus hold control circuit for issuing a bus hold request to the CPU based on the voltage measurement request and receiving a bus hold request acknowledgment from the CPU;
After receiving the bus hold request acknowledgment from U,
A voltage measurement start timer that outputs a voltage measurement trigger after a predetermined time or more elapses until the power consumption of U becomes constant, and receives a voltage measurement trigger from the voltage measurement start timer to measure the voltage of the battery, A / to output the measurement result
And a D converter.
【0012】さらに、本発明の携帯情報端末の電池残量
監視方式は、電池を電源とし、DMA要求に基づいてバ
スをホールド可能なCPUを使用する携帯情報端末にお
いて、前記CPUに対してDMA要求を定期的に発行
し、前記CPUからDMA要求了解を受信するDMA回
路と、前記CPUからのDMA要求了解を受信してから
前記CPUの消費電力が一定化するまで以上の所定時間
が経過した後に電圧測定トリガを出力する電圧測定開始
タイマと、この電圧測定開始タイマからの電圧測定トリ
ガを受けて前記電池の電圧を測定し、測定結果を出力す
るA/Dコンバータと、一定時間毎に起動され、前記測
定結果を入力して電池残量を推測する電池残量監視タス
クとを有することを特徴とする。In a portable information terminal battery monitoring method according to the present invention, in a portable information terminal using a CPU capable of holding a bus based on a DMA request by using a battery as a power source, a DMA request is issued to the CPU. And a DMA circuit that receives a DMA request acknowledgement from the CPU, and after a predetermined time equal to or longer than the time until the power consumption of the CPU becomes constant after receiving the DMA request acknowledgement from the CPU. A voltage measurement start timer that outputs a voltage measurement trigger, an A / D converter that measures the voltage of the battery in response to a voltage measurement trigger from the voltage measurement start timer, and outputs a measurement result; And a battery remaining amount monitoring task for inputting the measurement result and estimating a battery remaining amount.
【0013】[0013]
【発明の実施の形態】次に、本発明について図面を参照
して説明する。Next, the present invention will be described with reference to the drawings.
【0014】図1は、本発明の第一の実施の形態に係る
携帯情報端末の電池残量監視方式の構成を示す要部回路
ブロック図である。本実施の形態に係る携帯情報端末の
電池残量監視方式は、動作電源としてのリチウムイオン
電池1と、中央処理部としてのCPU2と、通信,キー
入力,表示等の入出力を行う周辺回路3と、バスホール
ド要求を発行するバスホールド制御回路4と、電池電圧
の測定タイミングを生成する電圧測定開始タイマ5と、
電池電圧を測定するA/Dコンバータ6と、マルチタス
クOS(図示せず),電池残量監視タスク21(図にお
いてはCPU2上で動作している)等が格納された主記
憶7とから、その主要部が構成されている。FIG. 1 is a main part circuit block diagram showing a configuration of a battery remaining amount monitoring system of a portable information terminal according to a first embodiment of the present invention. The battery level monitoring method for a portable information terminal according to the present embodiment includes a lithium ion battery 1 as an operating power supply, a CPU 2 as a central processing unit, and a peripheral circuit 3 for inputting and outputting communication, key input, display, and the like. A bus hold control circuit 4 for issuing a bus hold request, a voltage measurement start timer 5 for generating a battery voltage measurement timing,
An A / D converter 6 for measuring the battery voltage and a main memory 7 in which a multitask OS (not shown), a battery remaining amount monitoring task 21 (operating on the CPU 2 in the figure) and the like are stored. Its main part is configured.
【0015】リチウムイオン電池1は、コークス系のリ
チウムイオン電池であり、図3に例示するように、放電
時間に従って放電電圧が漸次低下する放電特性を有する
ものである。リチウムイオン電池1は、携帯情報端末の
動作電源であり、自身以外の携帯情報端末を構成する各
ブロックに電力供給線11を通じて電力を供給する。The lithium-ion battery 1 is a coke-based lithium-ion battery, and has a discharge characteristic in which a discharge voltage gradually decreases according to a discharge time, as illustrated in FIG. The lithium-ion battery 1 is an operation power supply of the portable information terminal, and supplies power to each block constituting the portable information terminal other than itself through the power supply line 11.
【0016】CPU2は、バス10を通じて周辺回路3
と接続され、マルチタスクOS上で携帯情報端末として
の処理をマルチタスクで行う。CPU2には、マルチタ
スク処理の中で数分に1回ぐらいの間隔で電池残量を測
定する処理を起動するプログラム(電池残量監視タスク
21)が搭載されている。The CPU 2 controls the peripheral circuit 3 via the bus 10.
To perform processing as a portable information terminal on a multitask OS by multitasking. The CPU 2 is loaded with a program (a battery remaining amount monitoring task 21) for starting a process of measuring the remaining battery amount at intervals of about once every few minutes in the multitasking process.
【0017】バスホールド制御回路4は、CPU2から
バス10を通じて電圧測定要求17を受信すると、バス
ホールド要求線15およびバスホールド要求了解線16
を介してバスホールド要求およびバスホールド要求了解
を授受してCPU2とハンドシェークを行い、CPU2
にバス10をホールドさせる。また、バスホールド制御
回路4は、電圧測定開始タイマ5から測定終了線18を
介して電圧測定の終了を通知されると、バスホールド要
求線15およびバスホールド要求了解線16を介してバ
スホールド要求解除およびバスホールド要求了解解除を
授受して、CPU2にバス10のホールドを解除させ
る。When the bus hold control circuit 4 receives the voltage measurement request 17 from the CPU 2 via the bus 10, the bus hold request line 15 and the bus hold request
A bus hold request and a bus hold request acknowledgment are transmitted and received through the
To hold the bus 10. Further, when notified of the end of the voltage measurement from the voltage measurement start timer 5 via the measurement end line 18, the bus hold control circuit 4 sends the bus hold request line 15 and the bus hold request The CPU 2 receives the release and the bus hold request acknowledgment release, and causes the CPU 2 to release the hold of the bus 10.
【0018】電圧測定開始タイマ5は、バスホールド要
求線15およびバスホールド要求了解線16を通じてバ
スホールド要求およびバスホールド要求了解を受ける
と、バス10がホールドされたために、CPU2の動作
が停止しCPU2の消費電流が一定化するまで以上の所
定時間を測り、その所定時間の後に電圧測定トリガ線1
4を介してA/Dコンバータ6に電圧測定のトリガを掛
ける。さらに、A/Dコンバータ6における電圧測定が
終了するまで以上の一定時間後、電圧測定開始タイマ5
は、測定終了線18を介してバスホールド制御回路4に
測定終了を伝える。When the voltage measurement start timer 5 receives the bus hold request and the bus hold request acknowledgment via the bus hold request line 15 and the bus hold request acknowledgment line 16, the bus 10 is held, and the operation of the CPU 2 is stopped. Is measured for a predetermined time or more until the current consumption becomes constant, and after the predetermined time, the voltage measurement trigger line 1 is measured.
A trigger of voltage measurement is applied to the A / D converter 6 via the terminal 4. Further, after a fixed time equal to or longer than the time until the voltage measurement in the A / D converter 6 ends, the voltage measurement start timer 5
Informs the bus hold control circuit 4 of the end of measurement via the measurement end line 18.
【0019】A/Dコンバータ6は、電力供給線11か
ら分岐した電圧測定線12を通じてリチウムイオン電池
1の電圧を入力してA/D変換し、電圧測定トリガ線1
4からの電圧測定のトリガに応じてその値を保持し、そ
の測定結果を測定結果線13上に出力する。The A / D converter 6 inputs a voltage of the lithium ion battery 1 through a voltage measurement line 12 branched from a power supply line 11 to perform A / D conversion.
The value is held in response to the trigger of the voltage measurement from No. 4 and the measurement result is output on the measurement result line 13.
【0020】次に、このように構成された第1の実施の
形態に係る携帯情報端末の電池残量監視方式の動作につ
いて説明する。Next, the operation of the battery level monitoring system of the portable information terminal according to the first embodiment configured as described above will be described.
【0021】通常、CPU2は、バス10を通じて周辺
回路3と携帯情報端末としてのマルチタスク処理を行
う。また、CPU2は、マルチタスクOSが数分間隔で
電池残量を測定するための電池残量監視タスク21を起
動して、バスホールド制御回路4に対して電圧測定要求
17を発生する。Normally, the CPU 2 performs multitask processing as a portable information terminal with the peripheral circuit 3 through the bus 10. Further, the CPU 2 activates the battery remaining amount monitoring task 21 for the multitask OS to measure the battery remaining amount at intervals of several minutes, and issues a voltage measurement request 17 to the bus hold control circuit 4.
【0022】バスホールド制御回路4は、バス10を介
して電圧測定要求17を受けると、バスホールド要求線
15を介してCPU2および電圧測定開始タイマ5にバ
スホールド要求を発行する。When receiving the voltage measurement request 17 via the bus 10, the bus hold control circuit 4 issues a bus hold request to the CPU 2 and the voltage measurement start timer 5 via the bus hold request line 15.
【0023】CPU2は、バスホールド要求を受ける
と、バス10をホールドし、バスホールド要求了解をバ
スホールド要求了解線16を介してバスホールド制御回
路4および電圧測定開始タイマ5に返す。When receiving the bus hold request, the CPU 2 holds the bus 10 and returns a bus hold request acknowledgment to the bus hold control circuit 4 and the voltage measurement start timer 5 via the bus hold request acknowledgment line 16.
【0024】CPU2は、バス10をある程度の時間ホ
ールドさせると、CPU2内に大容量のキャッシュメモ
リが無ければ、処理コードをフェッチできなくなり、電
池残量監視タスク21を含む、動作していたすべてのタ
スクが動作を停止する。このため、CPU2の消費電流
を一定化でき、CPU2の消費電流が一定化すると、携
帯情報端末全体の消費電流も一定化するため、動作電源
であるリチウムイオン電池1への負荷が一定値となる。When the CPU 2 holds the bus 10 for a certain period of time, if there is no large-capacity cache memory in the CPU 2, the processing code cannot be fetched. Task stops working. For this reason, the current consumption of the CPU 2 can be made constant, and when the current consumption of the CPU 2 is made constant, the current consumption of the entire portable information terminal also becomes constant, so that the load on the lithium ion battery 1 serving as the operation power source becomes a constant value. .
【0025】電圧測定開始タイマ5は、バスホールド制
御回路4からのバスホールド要求およびCPU2からの
バスホールド要求了解を受信すると、バス10がホール
ドされた後にCPU2の動作が停止するまで以上の所定
時間(例えば、数10クロック)を測り、電圧測定トリ
ガ線14を通じてA/Dコンバータ6にCPU2が停止
してリチウムイオン電池1に一定の負荷がかかるタイミ
ングを与える。さらに、A/Dコンバータ6における電
圧測定が終了するまで以上の一定時間後、電圧測定開始
タイマ5は、バスホールド回路4に測定終了線18を介
してバスl0のホールドを解放するための測定終了を通
知する。When the voltage measurement start timer 5 receives the bus hold request from the bus hold control circuit 4 and the acknowledgment of the bus hold request from the CPU 2, the voltage measurement start timer 5 waits for a predetermined time longer than the time when the operation of the CPU 2 is stopped after the bus 10 is held. (For example, several tens of clocks), and the CPU 2 stops the A / D converter 6 through the voltage measurement trigger line 14 to give a timing at which a certain load is applied to the lithium ion battery 1. Further, after a certain period of time equal to or longer than the end of the voltage measurement in the A / D converter 6, the voltage measurement start timer 5 causes the bus hold circuit 4 to end the measurement for releasing the hold of the bus 10 via the measurement end line 18. Notify.
【0026】A/Dコンバータ6は、電圧測定トリガ線
14を通じて電圧測定のトリガを掛けられると、電力供
給線11から分岐された電圧測定線12を通じてリチウ
ムイオン電池1の電圧をA/Dコンバートした電圧値を
測定結果として保持して、測定結果線13に出力する。When the A / D converter 6 is triggered by the voltage measurement via the voltage measurement trigger line 14, the A / D converter 6 A / D converts the voltage of the lithium ion battery 1 via the voltage measurement line 12 branched from the power supply line 11. The voltage value is held as a measurement result and output to the measurement result line 13.
【0027】バスホールド制御回路4は、測定終了線1
8を通じて測定終了を通知されると、バスホールド要求
線15を介してCPU2および電圧測定開始タイマ5に
バスホールド要求解除を発行する。The bus hold control circuit 4 controls the measurement end line 1
When the end of the measurement is notified through 8, a bus hold request release is issued to the CPU 2 and the voltage measurement start timer 5 via the bus hold request line 15.
【0028】CPU2は、バスホールド要求解除を受け
ると、バス10のホールドを解除し、バスホールド要求
了解解除をバスホールド要求了解線16を介してバスホ
ールド制御回路4および電圧測定開始タイマ5に返す。When receiving the bus hold request release, the CPU 2 releases the hold of the bus 10 and returns the bus hold request release to the bus hold control circuit 4 and the voltage measurement start timer 5 via the bus hold request confirmation line 16. .
【0029】CPU2は、バス10のホールドを解除す
ると、処理コードを主記憶7からフェッチできるように
なり、電池電圧監視タスク21を含む、停止していたす
べてのタスクが動作を再開する。When the CPU 2 releases the hold of the bus 10, the processing code can be fetched from the main memory 7, and all the stopped tasks including the battery voltage monitoring task 21 resume the operation.
【0030】動作を再開した電池電圧監視タスク21
は、測定結果線13を通じてA/Dコンバータ6の測定
結果を入力し、この測定結果を予め測定しておいたサン
プルデータと比較することによりリチウムイオン電池1
の電池残量を推測する。例えば、図3に例示すように、
動作電源として最低放電電流(270mA)で5時間使
用可能なコークス系のリチウムイオン電池1を使用した
場合、測定結果がaであれば放電時間が2時間であるの
で、電池残量は(5−2)÷5×100=60%である
と推測する。また、測定結果がbであれば放電時間が3
時間であるので、電池残量は(5−3)÷5×100=
40%であると推測する。さらに、測定結果がcであれ
ば放電時間が5時間であるので、電池残量は(5−5)
÷5×100=0%であると推測する。Battery voltage monitoring task 21 resumed operation
Inputs the measurement result of the A / D converter 6 through the measurement result line 13 and compares the measurement result with sample data which has been measured in advance to obtain the lithium ion battery 1.
Estimate the remaining battery power. For example, as shown in FIG.
When a coke-based lithium-ion battery 1 that can be used for 5 hours at a minimum discharge current (270 mA) is used as an operating power source, if the measurement result is a, the discharge time is 2 hours, so the remaining battery charge is (5- 2) Estimate that ÷ 5 × 100 = 60%. If the measurement result is b, the discharge time is 3
Time, the remaining battery power is (5-3) ÷ 5 × 100 =
Estimate to be 40%. Furthermore, if the measurement result is c, the discharge time is 5 hours, so the remaining battery charge is (5-5)
It is estimated that ÷ 5 × 100 = 0%.
【0031】このように、第1の実施の形態に係る携帯
情報端末の電池残量監視方式においては、CPU2にお
いてマルチタスクOS上で複数のタスクが動作していて
も、それに関係なくリチウムイオン電池1の負荷を一定
にできるため、リチウムイオン電池1の残量の監視が容
易に行えることになる。As described above, in the battery remaining amount monitoring method of the portable information terminal according to the first embodiment, even if a plurality of tasks are running on the multitask OS in the CPU 2, the lithium ion battery Since the load of the battery 1 can be kept constant, the remaining amount of the lithium ion battery 1 can be easily monitored.
【0032】図2は、本発明の第2の実施の形態に係る
携帯情報端末の電池残量監視方式の構成を示す要部回路
ブロック図である。本実施の形態では、携帯情報端末自
身が、一定時間間隔でCPU2のバス10をホールドし
てしまうような定期的にDMA(Direct Mem
ory Access)を行う回路、例えばビデオ回路
8を持つ場合の例を示している。この場合、図1におけ
るバスホールド制御回路4をビデオ回路8に置き換えて
使用するとともに、バスホールド要求線15およびバス
ホールド要求了解線16をそれぞれDMA要求線19お
よびDMA要求了解線20に置き換えればよい。なお、
その他の回路等は、図1に示した第1の実施の形態に係
る携帯情報端末の電池残量監視方式における対応する回
路等と同様に構成されているので、それらの詳しい説明
を省略する。FIG. 2 is a main circuit block diagram showing a configuration of a battery remaining amount monitoring method of a portable information terminal according to a second embodiment of the present invention. In the present embodiment, the portable information terminal itself periodically holds a DMA (Direct Mem) such that it holds the bus 10 of the CPU 2 at fixed time intervals.
3 shows an example in which a circuit for performing an access operation, for example, a video circuit 8 is provided. In this case, the bus hold control circuit 4 in FIG. 1 may be used in place of the video circuit 8, and the bus hold request line 15 and the bus hold request acknowledge line 16 may be replaced with the DMA request line 19 and the DMA request acknowledge line 20, respectively. . In addition,
The other circuits and the like are configured in the same manner as the corresponding circuits and the like in the battery level monitoring method of the portable information terminal according to the first embodiment shown in FIG. 1, and thus detailed description thereof will be omitted.
【0033】このように構成された第2の実施の形態に
係る携帯情報端末の電池残量監視方式によれば、ビデオ
回路8が定期的にDMAを行うため、CPU2において
数分おきに電圧測定要求17を発行しなくても、A/D
コンバータ6における測定結果がビデオ回路8によりD
MAが行われるたびに更新されるため、電池残量監視タ
スク21は数分おきに測定結果線13を通じて測定結果
を入力するだけで一定負荷下でのリチウムイオン電池1
の電圧を知ることができ、これにより電池残量の推測が
可能となる。したがって、第1の実施の形態に比べて、
より簡単なハードウェアおよびソフトウェアで電池残量
の監視が可能となるという利点がある。なお、定期的に
DMAを行う回路がビデオ回路8に限られないことはい
うまでもない。According to the battery level monitoring method for the portable information terminal according to the second embodiment, the video circuit 8 periodically performs DMA, so that the CPU 2 measures the voltage every few minutes. A / D without issuing request 17
The result of the measurement in the converter 6 is
Since it is updated every time the MA is performed, the battery remaining amount monitoring task 21 only needs to input the measurement result through the measurement result line 13 every few minutes, and the
, It is possible to estimate the remaining battery level. Therefore, compared to the first embodiment,
There is an advantage that the remaining battery level can be monitored with simpler hardware and software. It is needless to say that the circuit that periodically performs the DMA is not limited to the video circuit 8.
【0034】ところで、上記各実施の形態では、動作電
源として使用する電池をコークス系のリチウムイオン電
池1としたが、これに限られるものではなく、要は図3
に例示したような、放電時間に対して放電電圧が漸次低
減していくような特性を有する電池であれば、どのよう
な電池であっても本発明を同様に適用することができ
る。In each of the above embodiments, the battery used as the operating power source is the coke-based lithium-ion battery 1. However, the battery is not limited to this.
The present invention can be similarly applied to any battery as long as the battery has a characteristic such that the discharge voltage gradually decreases with respect to the discharge time as exemplified in (1).
【0035】また、上記各実施の形態では、CPU2上
に搭載されるOSをマルチタスクOSとして説明した
が、本発明はシングルタスクOSを使用する携帯情報端
末にも全く同様に適用することができる。In each of the above embodiments, the OS mounted on the CPU 2 is described as a multitask OS, but the present invention can be applied to a portable information terminal using a single task OS in the same manner. .
【0036】[0036]
【発明の効果】以上説明したように、本発明によれば、
電池残量測定時にCPUに対してバスホールド要求を発
行するバスホールド要求発行手段と、バスホールド要求
発行手段によるバスホールド要求からCPUの消費電力
が一定化するまで以上の所定時間が経過した後に電圧測
定トリガを出力する電圧測定トリガ手段と、電圧測定ト
リガ手段からの電圧測定トリガを受けて電池の電圧を測
定する電圧測定手段と、電圧測定手段による測定結果か
ら電池の残量を推測する電池残量推測手段とを設けたこ
とにより、携帯情報端末に載せるマルチタスクOSに電
池残量測定のためにだけに必要な特殊なモードをつけず
に、簡単にマルチタスクOSを携帯情報端末に搭載する
ことができるという効果がある。これにより、OSのイ
ンプリメントが簡単になるため、携帯情報端末により多
くの種類のOSを載せることが可能になる。As described above, according to the present invention,
A bus hold request issuing unit for issuing a bus hold request to the CPU at the time of measuring the remaining battery level, and a voltage after a predetermined period of time has elapsed after the bus hold request issued by the bus hold request issuing unit until the power consumption of the CPU becomes constant. Voltage measurement trigger means for outputting a measurement trigger, voltage measurement means for receiving a voltage measurement trigger from the voltage measurement trigger means to measure the voltage of the battery, and battery remaining for estimating the remaining battery level from the measurement result by the voltage measurement means. By providing the amount estimating means, the multitask OS mounted on the portable information terminal can be easily mounted on the portable information terminal without adding a special mode necessary only for measuring the remaining battery level. There is an effect that can be. As a result, the implementation of the OS is simplified, so that more types of OS can be loaded on the portable information terminal.
【図1】本発明の第1の実施の形態に係る携帯情報端末
の電池残量監視方式の構成を示す要部回路ブロック図で
ある。FIG. 1 is a main part circuit block diagram showing a configuration of a battery remaining amount monitoring method of a portable information terminal according to a first embodiment of the present invention.
【図2】本発明の第2の実施の形態に係る携帯情報端末
の電池残量監視方式の構成を示す要部回路ブロック図で
ある。FIG. 2 is a main part circuit block diagram showing a configuration of a battery remaining amount monitoring method of a portable information terminal according to a second embodiment of the present invention.
【図3】コークス系のリチウムイオン電池の放電特性を
示すグラフである。FIG. 3 is a graph showing discharge characteristics of a coke-based lithium ion battery.
【図4】従来の携帯情報端末の電池残量監視方式の一例
を示す要部回路ブロック図である。FIG. 4 is a main part circuit block diagram showing an example of a conventional battery level monitoring method for a portable information terminal.
1 リチウムイオン電池 2 CPU 3 周辺回路 4 バスホールド制御回路 5 電圧測定開始タイマ 6 A/Dコンバータ 7 主記憶 8 ビデオ回路 10 バス 11 電力供給線 12 電圧測定線 13 測定結果線 14 電圧測定トリガ線 15 バスホールド要求線 16 バスホールド要求了解線 17 電圧測定要求 18 測定終了線 19 DMA要求線 20 DMA要求了解線 21 電池残量監視タスク DESCRIPTION OF SYMBOLS 1 Lithium ion battery 2 CPU 3 Peripheral circuit 4 Bus hold control circuit 5 Voltage measurement start timer 6 A / D converter 7 Main memory 8 Video circuit 10 Bus 11 Power supply line 12 Voltage measurement line 13 Measurement result line 14 Voltage measurement trigger line 15 Bus hold request line 16 Bus hold request acknowledgment line 17 Voltage measurement request 18 Measurement end line 19 DMA request line 20 DMA request acknowledgment line 21 Battery level monitoring task
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 1/26 - 1/32 H01M 10/00 - 10/34 H02J 7/00 - 7/12 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G06F 1/26-1/32 H01M 10/00-10/34 H02J 7/ 00-7/12
Claims (4)
CPUを使用する携帯情報端末において、 電池残量測定時にCPUに対してバスホールド要求を発
行するバスホールド要求発行手段と、 このバスホールド要求発行手段によるバスホールド要求
から前記CPUの消費電力が一定化するまで以上の所定
時間が経過した後に電圧測定トリガを出力する電圧測定
トリガ手段と、 この電圧測定トリガ手段からの電圧測定トリガを受けて
前記電池の電圧を測定する電圧測定手段と、 この電圧測定手段による測定結果から電池の残量を推測
する電池残量推測手段とを有することを特徴とする携帯
情報端末の電池残量監視方式。A portable information terminal using a battery as a power supply and a CPU capable of holding a bus, a bus hold request issuing means for issuing a bus hold request to the CPU when measuring the remaining battery charge, Voltage measurement trigger means for outputting a voltage measurement trigger after a predetermined period of time elapses from the bus hold request by the issuing means until the power consumption of the CPU becomes constant, and receiving a voltage measurement trigger from the voltage measurement trigger means A battery level monitoring method for a portable information terminal, comprising: voltage measuring means for measuring the voltage of the battery; and battery level estimating means for estimating the remaining level of the battery from the measurement result by the voltage measuring means.
CPUを使用する携帯情報端末において、 一定時間毎に起動されて電圧測定要求を発行し、測定結
果を入力して電池残量を推測する電池残量監視タスク
と、 この電池残量監視タスクからの電圧測定要求に基づいて
バスホールド要求を前記CPUに発行し、前記CPUか
らバスホールド要求了解を受信するバスホールド制御回
路と、 前記CPUからのバスホールド要求了解を受信してから
前記CPUの消費電力が一定化するまで以上の所定時間
が経過した後に電圧測定トリガを出力する電圧測定開始
タイマと、 この電圧測定開始タイマからの電圧測定トリガを受けて
前記電池の電圧を測定し、測定結果を出力するA/Dコ
ンバータとを有することを特徴とする携帯情報端末の電
池残量監視方式。2. A portable information terminal using a battery as a power supply and using a CPU capable of holding a bus is activated at regular time intervals, issues a voltage measurement request, inputs a measurement result, and estimates the remaining battery level. A battery level monitoring task, a bus hold control circuit that issues a bus hold request to the CPU based on a voltage measurement request from the battery level monitoring task, and receives a bus hold request acknowledgment from the CPU; A voltage measurement start timer that outputs a voltage measurement trigger after a predetermined period of time elapses from the reception of the bus hold request acknowledgment until the power consumption of the CPU becomes constant, and a voltage measurement trigger from the voltage measurement start timer. And an A / D converter for measuring the voltage of the battery in response to the signal and outputting the measurement result. Method.
バスをホールド可能なCPUを使用する携帯情報端末に
おいて、 前記CPUに対してDMA要求を定期的に発行し、前記
CPUからDMA要求了解を受信するDMA回路と、 前記CPUからのDMA要求了解を受信してから前記C
PUの消費電力が一定化するまで以上の所定時間が経過
した後に電圧測定トリガを出力する電圧測定開始タイマ
と、 この電圧測定開始タイマからの電圧測定トリガを受けて
前記電池の電圧を測定し、測定結果を出力するA/Dコ
ンバータと、 一定時間毎に起動され、前記測定結果を入力して電池残
量を推測する電池残量監視タスクとを有することを特徴
とする携帯情報端末の電池残量監視方式。3. A portable information terminal that uses a battery as a power supply and uses a CPU capable of holding a bus based on a DMA request. The mobile information terminal periodically issues a DMA request to the CPU, and acknowledges the DMA request from the CPU. A DMA circuit for receiving, and C after receiving a DMA request acknowledge from the CPU.
A voltage measurement start timer that outputs a voltage measurement trigger after a predetermined period of time or more elapses until the power consumption of the PU becomes constant, and receives a voltage measurement trigger from the voltage measurement start timer to measure the voltage of the battery, A portable information terminal comprising: an A / D converter that outputs a measurement result; and a battery remaining amount monitoring task that is started at regular time intervals and inputs the measurement result to estimate a remaining battery amount. Quantity monitoring method.
うビデオ回路でなる請求項3記載の携帯情報端末の電池
残量監視方式。4. The method according to claim 3, wherein the DMA circuit is a video circuit that periodically performs DMA.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8305667A JP3070833B2 (en) | 1996-10-31 | 1996-10-31 | Battery level monitoring method for portable information terminals |
US08/962,004 US5959435A (en) | 1996-10-31 | 1997-10-31 | Method and system for monitoring battery |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8305667A JP3070833B2 (en) | 1996-10-31 | 1996-10-31 | Battery level monitoring method for portable information terminals |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH10134846A JPH10134846A (en) | 1998-05-22 |
JP3070833B2 true JP3070833B2 (en) | 2000-07-31 |
Family
ID=17947908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8305667A Expired - Fee Related JP3070833B2 (en) | 1996-10-31 | 1996-10-31 | Battery level monitoring method for portable information terminals |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3070833B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015230151A (en) * | 2014-06-06 | 2015-12-21 | リンナイ株式会社 | Water heater |
-
1996
- 1996-10-31 JP JP8305667A patent/JP3070833B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015230151A (en) * | 2014-06-06 | 2015-12-21 | リンナイ株式会社 | Water heater |
Also Published As
Publication number | Publication date |
---|---|
JPH10134846A (en) | 1998-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5714870A (en) | Method for measuring suspend-time power consumption in a battery-powered electronic device | |
US7412354B2 (en) | Method for measuring quantity of usage of CPU | |
EP1416381A1 (en) | System and method for preserving state data of a personal computer in a standby state in the event of an ac power failure | |
US8806256B2 (en) | Power consumption monitor and method therefor | |
US9995791B2 (en) | Power consumption monitoring device for a power source | |
US20030046503A1 (en) | Methods for saving data on the basis of the remaining capacity of a battery in a suspend mode and resuming operations using the saved data | |
CN113703560B (en) | Equipment power supply method and device, terminal equipment and storage medium | |
US6691049B1 (en) | Method and apparatus to detect that the battery gauge is out of calibration | |
WO2024087061A1 (en) | Control method for electronic device, and electronic device and storage medium | |
JP3070833B2 (en) | Battery level monitoring method for portable information terminals | |
JP3285807B2 (en) | Apparatus and method for isolating power supply and hardware failure | |
CN112542623B (en) | A battery preheating method, system and device | |
CN114257474A (en) | Power utilization control method and device for intelligent gateway, computer equipment and storage medium | |
CN113900718A (en) | Method, system and device for decoupling asset information of BMC (baseboard management controller) and BIOS (basic input/output system) | |
US5959435A (en) | Method and system for monitoring battery | |
CN115856705A (en) | Electronic equipment, current detection method and device | |
CN114460472A (en) | Electric meter chip, control method thereof, electronic device and online simulation system | |
JP3437397B2 (en) | Information processing apparatus, battery pack, and method of calculating remaining battery charge of battery pack | |
JP2020173644A (en) | Electronic controller | |
US11340683B2 (en) | Power management circuitry for controlling a power state transition based on a predetermined time limit | |
US20240272700A1 (en) | Microcontroller and method for controlling the same | |
CN116938017A (en) | Method and system for preventing repeated restarting caused by abnormal battery | |
JPS6234082A (en) | Storage battery remaining capacity detection circuit | |
CN119159995A (en) | Vehicle SOC correction method, device, equipment and storage medium | |
WO2024212902A1 (en) | Power level display method and apparatus, electronic device, storage medium, and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |