JP2003169426A - Data processing device and program thereof - Google Patents

Data processing device and program thereof

Info

Publication number
JP2003169426A
JP2003169426A JP2001364556A JP2001364556A JP2003169426A JP 2003169426 A JP2003169426 A JP 2003169426A JP 2001364556 A JP2001364556 A JP 2001364556A JP 2001364556 A JP2001364556 A JP 2001364556A JP 2003169426 A JP2003169426 A JP 2003169426A
Authority
JP
Japan
Prior art keywords
time
power supply
power failure
function
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001364556A
Other languages
Japanese (ja)
Inventor
Katsuhiko Motoike
克彦 本池
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2001364556A priority Critical patent/JP2003169426A/en
Publication of JP2003169426A publication Critical patent/JP2003169426A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To set an operation quaranteeing time from the time of the occurrence of a momentary power failure to a power failure process in accordance with a consumed current at the time of the occurrence of the momentary power failure and with a power supplying state to each functional block, in a data processing device that has an auxiliary power supply that supplies electric power when the momentary power interruption of a main power supply occurs. <P>SOLUTION: When the power supply from the main power supply 8 is interrupted, a CPU 1 obtains the present consumed current value detected by a current detecting part 11, and obtains a timer value corresponding to the so- obtained consumed current value from a current value table 51 stored in a storage device 5 to set the value to a timer 10. Unless the power supply from the main power supply 8 is restored even after the counting by the timer 10 is finished, the CPU 1 shifts to a power failure process. <P>COPYRIGHT: (C)2003,JPO

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、主電源の瞬時停電
時に電源を供給する補助電源を有するデータ処理装置、
及びそのプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having an auxiliary power supply for supplying power when the main power supply is momentarily interrupted,
And its programs.

【0002】[0002]

【従来の技術】携帯電話やPDA等の携帯端末において
は、落下等の衝撃があった場合、装置内に装着された電
池(主電源)と電池バネが離れ、瞬時停電が発生するこ
とがある。このとき、装置全体の動作が停止しないよう
に、装置内に備えるコンデンサ(補助電源)により電位
を保持することにより、動作電圧が一定時間保証されて
おり、この動作保証時間が経過すると、停電状態に移行
する。
2. Description of the Related Art In a mobile terminal such as a mobile phone or a PDA, when a shock such as a drop occurs, a battery (main power supply) installed in the device and a battery spring may separate from each other to cause an instantaneous power failure. . At this time, the operating voltage is guaranteed for a certain period of time by holding the potential with a capacitor (auxiliary power supply) provided in the device so that the operation of the entire device does not stop. Move to.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
携帯端末においては、瞬時停電時から停電状態までの動
作保証時間は、システムで想定される最大電流値に基づ
いて算出されていたため、瞬時停電時に最大電流で動作
していない場合には、未だ動作可能であるにも関わら
ず、停電状態に移行してしまい、動作時間が短くなると
いう問題があった。
However, in the conventional portable terminal, the operation guarantee time from the momentary power failure to the power failure state is calculated based on the maximum current value assumed in the system. When not operating at the maximum current, there was a problem that the operation time was shortened due to a transition to a power failure state although the operation was still possible.

【0004】本発明の課題は、主電源の瞬時停電時に電
源を供給する補助電源を有するデータ処理装置におい
て、瞬間停電発生時から停電処理までの動作保証時間
を、瞬間停電発生時の消費電流や、各機能ブロックへの
電源供給状態に応じて設定することである。
An object of the present invention is, in a data processing device having an auxiliary power supply for supplying power during an instantaneous power failure of a main power supply, the operation guarantee time from the occurrence of the instantaneous power failure to the power failure processing, the consumption current at the time of the instantaneous power failure, and the , According to the state of power supply to each functional block.

【0005】[0005]

【課題を解決するための手段】請求項1記載の発明は、
主電源の瞬時停電が発生した場合に電源を供給する補助
電源を有するデータ処理装置であって、前記瞬時停電の
際の消費電流値を測定する電流測定手段と、前記電流測
定手段により測定された消費電流値に応じて、前記補助
電源からの電源供給による動作電圧を保証する時間を設
定する設定手段と、前記設定手段により設定された動作
保証時間を計時する計時手段と、前記計時手段による計
時が終了するまでの間に前記瞬時停電が回復しない場合
は、停電処理を行う停電処理手段と、を備えることを特
徴としている。
The invention according to claim 1 is
A data processing device having an auxiliary power supply for supplying power when an instantaneous power failure of the main power source occurs, the current measuring means for measuring the current consumption value at the time of the instantaneous power failure, and the current measuring means. Setting means for setting a time for guaranteeing the operating voltage by the power supply from the auxiliary power source according to the current consumption value, time measuring means for measuring the operation guaranteed time set by the setting means, and time counting by the time measuring means If the momentary power failure does not recover by the end of, the power failure processing means for performing power failure processing is provided.

【0006】請求項1記載の発明によれば、瞬間停電の
際の消費電流値に応じて、補助電源からの電源供給によ
る動作電圧を保証する時間を設定することにより、消費
電流値が少ない場合は動作保証時間を長く設定すること
ができ、瞬時停電が発生しても停電処理を行う度合いが
少なくなるようにして、従来のように無用な停電処理が
行われることを防止することができる。
According to the first aspect of the invention, when the current consumption value is small, the time for guaranteeing the operating voltage by the power supply from the auxiliary power supply is set in accordance with the current consumption value at the momentary power failure. The operation guarantee time can be set to be long, and even if an instantaneous power failure occurs, the degree of power failure processing is reduced, and unnecessary power failure processing as in the conventional case can be prevented.

【0007】請求項3記載の発明は、複数の機能ブロッ
クを有し、主電源の瞬時停電が発生した場合に電源を供
給する補助電源を有するデータ処理装置であって、前記
瞬時停電の際に、前記各ブロックに対する電源供給状態
を検出する検出手段と、前記検出手段により検出された
各ブロックに対する電源供給状態に応じて、前記補助電
源からの電源供給による動作電圧を保証する時間を設定
する設定手段と、前記設定手段により設定された動作保
証時間を計時する計時手段と、前記計時手段による計時
が終了するまでの間に前記瞬時停電が回復しない場合
は、停電処理を行う停電処理手段と、を備えることを特
徴としている。
According to a third aspect of the present invention, there is provided a data processing device having a plurality of functional blocks and an auxiliary power supply for supplying power when an instantaneous power failure of the main power source occurs. Setting means for detecting a power supply state for each block, and setting a time period for guaranteeing an operating voltage by the power supply from the auxiliary power source according to the power supply state for each block detected by the detection means Means, a clocking means for clocking the operation guarantee time set by the setting means, and a power failure processing means for performing a power failure process if the instantaneous power failure is not recovered by the time the time counting by the time measuring means ends, It is characterized by having.

【0008】請求項3記載の発明によれば、瞬間停電の
際の各機能ブロックに対する電源供給状態に応じて、補
助電源からの電源供給による動作電圧を保証する時間を
設定することにより、電源が供給されている機能ブロッ
クの数が少ない場合は動作保証時間を長く設定すること
ができ、瞬時停電が発生しても停電処理を行う度合いが
少なくなるようにして、従来のように無用な停電処理が
行われることを防止することができる。
According to the third aspect of the present invention, the power supply is set by setting the time for guaranteeing the operating voltage by the power supply from the auxiliary power supply according to the power supply state to each functional block at the moment of a momentary power failure. If the number of supplied functional blocks is small, the guaranteed operation time can be set longer, and even if a momentary power failure occurs, the degree of power failure processing will be reduced to eliminate unnecessary power failure processing as in the past. Can be prevented.

【0009】[0009]

【発明の実施の形態】以下、図を参照して本発明の実施
の形態を詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0010】[第1の実施の形態]図1〜図3は、本発
明の第1の実施の形態を説明するための図である。ま
ず、構成を説明する。
[First Embodiment] FIGS. 1 to 3 are views for explaining a first embodiment of the present invention. First, the configuration will be described.

【0011】図1は、本発明の第1の実施の形態を適用
した携帯端末100の内部構成を示す図である。図1に
示すように、携帯端末100は、CPU1、表示部2、
入力部3、RAM4、記憶装置5、電圧検出部6、電源
制御部7、主電源8、補助電源9、タイマ10、電流検
出部11を備えて構成され、各部はバス12により接続
されている。
FIG. 1 is a diagram showing an internal configuration of a mobile terminal 100 to which the first embodiment of the present invention is applied. As shown in FIG. 1, the mobile terminal 100 includes a CPU 1, a display unit 2,
The input unit 3, the RAM 4, the storage device 5, the voltage detection unit 6, the power supply control unit 7, the main power supply 8, the auxiliary power supply 9, the timer 10, and the current detection unit 11 are configured, and each unit is connected by the bus 12. .

【0012】CPU(Central Processing Unit)1
は、記憶装置5に格納されている各種アプリケーション
プログラムを読み出してRAM4内の図示しないプログ
ラム格納エリアに展開し、これら各プログラムに基づく
各種処理を実行し、処理結果をRAM4内のワークエリ
ア(図示略)に一時的に格納するとともに表示部2に表
示する。CPU1は、更に、入力部3から入力された指
示信号に基づいて、前記処理結果を記憶装置5内の指示
された保存先に保存する。
CPU (Central Processing Unit) 1
Reads out various application programs stored in the storage device 5, develops them in a program storage area (not shown) in the RAM 4, executes various processes based on these programs, and outputs the processing results to a work area (not shown) in the RAM 4. ) And temporarily display it on the display unit 2. The CPU 1 further stores the processing result in the designated storage destination in the storage device 5 based on the instruction signal input from the input unit 3.

【0013】具体的には、CPU1は、瞬時停電検出時
の消費電流に応じて、停電処理までの動作保証時間をタ
イマ10に設定する瞬時停電検出処理(図3参照)を実
行する。
Specifically, the CPU 1 executes an instantaneous power failure detection process (see FIG. 3) in which the timer 10 sets the operation guarantee time until the power failure process in accordance with the current consumption at the time of the instantaneous power failure detection.

【0014】表示部2は、LCD(Liquid Crystal Dis
play)等により構成され、CPU1から入力される表示
信号に従って、表示処理を行う。
The display unit 2 is an LCD (Liquid Crystal Display).
play) etc., and performs display processing according to a display signal input from the CPU 1.

【0015】入力部3は、テンキーや各種ファンクショ
ンキーを有し、そのキー操作による押下信号をCPU1
に出力する。
The input unit 3 has a ten-key pad and various function keys.
Output to.

【0016】RAM(Random Access Memory)4は、C
PU1により実行される上記処理プログラムや各種アプ
リケーションプログラムを、RAM4内の図示しないプ
ログラム格納領域に展開するとともに、入力指示、入力
データ、及び上記処理プログラムが実行される際に生じ
る処理結果等を、図示しないワークエリアに一時的に格
納する。
A RAM (Random Access Memory) 4 is a C
The processing program and various application programs executed by the PU 1 are expanded in a program storage area (not shown) in the RAM 4, and input instructions, input data, processing results generated when the processing program is executed, etc. are illustrated. Not stored temporarily in the work area.

【0017】記憶装置5は、プログラム、データ等が予
め記憶されており、磁気的、光学的記録媒体、若しくは
半導体メモリなど、CPU1で読み取り可能な記録媒体
を含んだ構成である。この記録媒体は、CD−ROM、
メモリカード等の可搬型の媒体やハードディスク等の固
定的な媒体を含む。また、この記録媒体に格納するプロ
グラム、データ等は、その一部若しくは全部をサーバや
クライアントからWAN(Wide Area Network)、LA
N(Local Area Network)などのネットワークを介して
図示しない伝送制御部から受信する構成にしてもよく、
更に、記録媒体は、ネットワーク上に構築されたサーバ
やクライアントの記録媒体であってもよい。
The storage device 5 is pre-stored with programs, data and the like, and has a structure including a recording medium readable by the CPU 1, such as a magnetic or optical recording medium or a semiconductor memory. This recording medium is a CD-ROM,
Includes portable media such as memory cards and fixed media such as hard disks. In addition, some or all of programs, data, and the like stored in this recording medium are transferred from a server or client to a WAN (Wide Area Network) or LA.
It may be configured to receive from a transmission control unit (not shown) via a network such as N (Local Area Network),
Further, the recording medium may be a recording medium of a server or a client constructed on the network.

【0018】この記憶装置5は、携帯端末100に対応
する各種アプリケーションプログラム、瞬時停電検出処
理プログラム、及び各処理プログラムで処理されたデー
タ等を記憶する。
The storage device 5 stores various application programs corresponding to the mobile terminal 100, an instantaneous power failure detection processing program, and data processed by each processing program.

【0019】また、記憶装置5は、瞬時停電時の消費電
流値毎に、瞬時停電が発生してから停電処理を行うまで
の動作保証時間を格納した電流値テーブル51を有して
いる。電流値テーブル51は、図2に示すように、「電
流値」と「タイマ値」の両項目を対応付けて記憶してお
り、「電流値」としては、瞬時停電発生時の消費電流値
を記憶し、「タイマ値」としては、瞬時停電時にタイマ
10に設定される動作保証時間として、消費電流値毎
に、補助電源9によるバックアップが可能な最長時間を
記憶している。図2の電流値テーブル51では、瞬時停
電発生時の消費電流が小さければ小さいほど、タイマ値
(動作保証時間)が長くなるように設定値が記憶されてい
る。即ち、消費電流値が小さくなるに従って長い動作保
証時間がタイマ10に設定されるように構成されてい
る。
Further, the storage device 5 has a current value table 51 which stores, for each current consumption value at the time of momentary power failure, a guaranteed operation time from the occurrence of the momentary power failure to the power failure processing. As shown in FIG. 2, the current value table 51 stores both “current value” and “timer value” items in association with each other. As the “current value”, the current consumption value at the moment of a momentary power failure occurs The “timer value” is stored as the operation guarantee time set in the timer 10 at the moment of a power failure, and the longest time that can be backed up by the auxiliary power supply 9 for each current consumption value. In the current value table 51 of FIG. 2, the smaller the current consumption at the time of the momentary power failure, the smaller the timer value.
The set value is stored so that (Operation guaranteed time) becomes longer. That is, the longer operation guarantee time is set in the timer 10 as the current consumption value decreases.

【0020】電圧検出部6は、主電源8からの出力電圧
が所定の値以下に低下した場合に、主電源8の遮断を示
す検出信号をCPU1に出力する。
When the output voltage from the main power source 8 drops below a predetermined value, the voltage detecting section 6 outputs a detection signal indicating the interruption of the main power source 8 to the CPU 1.

【0021】電源制御部7は、主電源8から供給される
電圧を所定の電圧に変換し、携帯端末100の各部へ供
給する制御を行う。また、電源制御部7は、瞬時停電時
には、補助電源9から放電される電圧を、瞬時停電時の
消費電流値に見合った電圧に変換し、タイマ10に設定
された時間、各部へ供給する制御を行う。
The power supply control unit 7 controls the voltage supplied from the main power supply 8 to a predetermined voltage and supplies it to each unit of the mobile terminal 100. In addition, the power supply control unit 7 converts the voltage discharged from the auxiliary power supply 9 into a voltage commensurate with the current consumption value at the time of the momentary power failure at the time of the momentary power failure, and supplies the voltage to each unit for the time set in the timer 10. I do.

【0022】主電源8は、乾電池や2次電池などの電池
からなり、携帯端末100の各部に電源を供給するため
の電源である。主電源8は、乾電池や2次電池などの電
池に電極端子(電池バネ)を機械的に接触させて電池の電
源電圧を取り込んでいるので、携帯端末100に振動や
衝撃が加わると電池と電極端子との電気的接続が瞬間的
に遮断して瞬時停電が発生する。
The main power source 8 is composed of a battery such as a dry battery or a secondary battery, and is a power source for supplying power to each part of the mobile terminal 100. The main power supply 8 takes in the power supply voltage of the battery by mechanically bringing the electrode terminals (battery springs) into mechanical contact with a battery such as a dry battery or a secondary battery. The electrical connection with the terminal is momentarily cut off, resulting in a momentary power failure.

【0023】補助電源9は、大容量コンデンサ等からな
り、瞬時停電時のバックアップ用の電源であり、主電源
8に電池が装着されると、電源制御部7の制御によって
充電し、瞬時停電時には放電を行う。
The auxiliary power supply 9 is composed of a large-capacity capacitor or the like and is a backup power supply at the time of momentary power failure. When the main power supply 8 is equipped with a battery, it is charged by the control of the power supply control unit 7 and at the time of momentary power failure. Discharge.

【0024】タイマ10は、CPU1により指定された
タイマ値をセットし、タイマ値がセットされた時点から
の経過時間を計時し、経過時間が当該タイマ値に達する
と、計時終了信号をCPU1に出力する。即ち、タイマ
10は、瞬時停電が発生してから停電処理を行うまでの
動作電圧を補助電源9からの電源供給によって保証でき
る動作保証時間を計時するものである。
The timer 10 sets a timer value designated by the CPU 1, measures the elapsed time from the time when the timer value is set, and when the elapsed time reaches the timer value, outputs a timing end signal to the CPU 1. To do. That is, the timer 10 counts an operation guarantee time in which the operating voltage from the occurrence of the instantaneous power failure to the power failure processing can be guaranteed by the power supply from the auxiliary power supply 9.

【0025】電流検出部11は、携帯端末100全体の
消費電流を検出し、CPU1に出力する。即ち、電流検
出部11は、瞬時停電が発生した際の携帯端末100全
体の消費電流値を測定するものである。
The current detector 11 detects the current consumption of the entire mobile terminal 100 and outputs it to the CPU 1. That is, the current detector 11 measures the current consumption value of the entire mobile terminal 100 when an instantaneous power failure occurs.

【0026】次に、本第1の実施の形態の動作を説明す
る。図3は、本願発明に係る第1の実施の形態の動作を
説明するためのフローチャートである。このフローチャ
ートは、本願発明の携帯端末100を構成するコンピュ
ータに各機能を実現させるためのプログラムを説明する
為のものである。このプログラムはCPU1が読み取り
可能なプログラムコードの形態で記録媒体に格納されて
いる例で説明するが、全ての機能を記録媒体に格納する
必要はなく、必要に応じて、その一部若しくは全部を通
信ネットワークを介して、図示しない伝送制御部から受
信して実現するようにしてもよい。
Next, the operation of the first embodiment will be described. FIG. 3 is a flowchart for explaining the operation of the first embodiment according to the present invention. This flowchart is for explaining a program for causing a computer constituting the portable terminal 100 of the present invention to realize each function. This program is described as an example in which it is stored in the recording medium in the form of a program code that can be read by the CPU 1. However, it is not necessary to store all the functions in the recording medium, and some or all of the functions may be stored as necessary. It may be realized by receiving from a transmission control unit (not shown) via a communication network.

【0027】図3を参照して、携帯端末100において
実行される瞬時停電検出処理について説明する。
With reference to FIG. 3, the instantaneous power failure detection processing executed in the mobile terminal 100 will be described.

【0028】主電源8の出力電圧が所定値以下となり、
電圧検出部6から、主電源8の遮断を示す検出信号が入
力されると、CPU1は、瞬時停電発生と判断し(ステ
ップS1;YES)、電流検出部11により検出された
現在の消費電流値を取得する(ステップS2)。
The output voltage of the main power source 8 becomes a predetermined value or less,
When a detection signal indicating interruption of the main power supply 8 is input from the voltage detection unit 6, the CPU 1 determines that an instantaneous power failure has occurred (step S1; YES), and the current consumption value detected by the current detection unit 11 Is acquired (step S2).

【0029】次いで、CPU1は、記憶装置5に格納さ
れている電流値テーブル51から、ステップS2で取得
した消費電流値に対応するタイマ値を取得し(ステップ
S3)、このタイマ値をタイマ10に設定する(ステッ
プS4)。
Next, the CPU 1 acquires a timer value corresponding to the current consumption value acquired in step S2 from the current value table 51 stored in the storage device 5 (step S3), and stores this timer value in the timer 10. Set (step S4).

【0030】タイマ10による計時が終了しないうちに
(ステップS5;NO)、主電源8による電源供給が復
帰すると(ステップS6;YES)、CPU1は、タイ
マ10による計時を終了させ、ステップS1に戻り、再
度、電圧検出部6からの信号入力を待機する。
If the power supply by the main power source 8 is restored before the time counting by the timer 10 is finished (step S5; NO) (step S6; YES), the CPU 1 finishes the time counting by the timer 10 and returns to step S1. Again, the signal input from the voltage detection unit 6 is awaited again.

【0031】タイマ10による計時中に主電源8による
電源供給が未だ復帰していなければ(ステップS6;N
O)、CPU1は、計時を続行させ、タイマ10による
計時が終了しても主電源8による電源供給が復帰してい
なければ(ステップS5;YES)、停電処理に移行す
る。
If the power supply from the main power supply 8 is not yet restored during the time counting by the timer 10 (step S6; N).
O), the CPU 1 continues the time measurement, and if the power supply from the main power supply 8 is not restored even after the time measurement by the timer 10 is finished (step S5; YES), the CPU 1 shifts to the power outage process.

【0032】以上のように、本第1の実施の形態の携帯
端末100によれば、瞬間停電時の消費電流値に応じ
て、タイマ10に、補助電源9がバックアップ可能な最
長時間であるタイマ値を設定することにより、瞬時停電
時の消費電流が小さい場合は、停電処理までの時間が延
長(長い動作保証時間が設定)されるため、従来のように
無用な停電処理が行われることを防止することができ
る。
As described above, according to the portable terminal 100 of the first embodiment, the timer 10 is the longest time during which the auxiliary power supply 9 can be backed up to the timer 10 according to the current consumption value at the momentary power failure. By setting a value, if the current consumption during an instantaneous power failure is small, the time until power failure processing is extended (long operation guarantee time is set), so useless power failure processing as in the past is performed. Can be prevented.

【0033】[第2の実施の形態]以下、本発明の第2
の実施の形態について、図4〜図6を参照して説明す
る。まず、構成を説明する。
[Second Embodiment] The second embodiment of the present invention will be described below.
Embodiments will be described with reference to FIGS. 4 to 6. First, the configuration will be described.

【0034】図4は、本第2の実施の形態における携帯
端末200の内部構成を示すブロック図である。この図
4において、上記第1の実施の形態において図1に示し
た携帯端末100の内部構成と同一部分には同一の符号
を付し、同一機能を有する場合は、その機能説明を省略
する。
FIG. 4 is a block diagram showing the internal structure of the portable terminal 200 according to the second embodiment. In FIG. 4, the same components as those of the mobile terminal 100 shown in FIG. 1 in the first embodiment are designated by the same reference numerals, and when they have the same function, the functional description thereof will be omitted.

【0035】図4に示すように、携帯端末200は、C
PU1、表示部2、入力部3、RAM4、記憶装置5、
電圧検出部6、電源制御部7、主電源8、補助電源9、
タイマ10、電源制御状態検出部20、USB部21、
IrDA部22、無線部23を備えて構成され、各部は
バス12により接続されている。
As shown in FIG. 4, the portable terminal 200 has a C
PU1, display unit 2, input unit 3, RAM 4, storage device 5,
Voltage detection unit 6, power supply control unit 7, main power supply 8, auxiliary power supply 9,
Timer 10, power supply control state detection unit 20, USB unit 21,
The IrDA unit 22 and the wireless unit 23 are provided, and each unit is connected by the bus 12.

【0036】CPU1は、記憶装置5に格納されている
各種アプリケーションプログラムを読み出してRAM4
内の図示しないプログラム格納エリアに展開し、これら
各プログラムに基づく各種処理を実行し、処理結果をR
AM4内のワークエリア(図示略)に一時的に格納する
とともに表示部2に表示する。CPU1は、更に、入力
部3から入力された指示信号に基づいて、前記処理結果
を記憶装置5内の指示された保存先に保存する。
The CPU 1 reads various application programs stored in the storage device 5 and stores them in the RAM 4
The program is expanded in a program storage area (not shown) inside, various processings based on these programs are executed, and the processing result is R
The data is temporarily stored in a work area (not shown) in the AM 4 and displayed on the display unit 2. The CPU 1 further stores the processing result in the designated storage destination in the storage device 5 based on the instruction signal input from the input unit 3.

【0037】具体的には、CPU1は、瞬時停電時の電
源供給状態に応じて、停電処理までの動作保証時間をタ
イマ10に設定する瞬時停電検出処理(図6参照)を実
行する。なお、CPU1は、請求項3記載の設定手段、
停電処理手段としての機能を有する。
Specifically, the CPU 1 executes an instantaneous power failure detection process (see FIG. 6) for setting the operation guaranteed time until the power failure process in the timer 10 according to the power supply state at the moment of the power failure. In addition, the CPU 1 is a setting unit according to claim 3,
It has a function as a power failure processing means.

【0038】記憶装置5は、プログラム、データ等が予
め記憶されており、磁気的、光学的記録媒体、若しくは
半導体メモリなど、CPU1で読み取り可能な記録媒体
を含んだ構成である。この記録媒体は、CD−ROM、
メモリカード等の可搬型の媒体やハードディスク等の固
定的な媒体を含む。また、この記録媒体に格納するプロ
グラム、データ等は、その一部若しくは全部をサーバや
クライアントからWAN、LANなどのネットワークを
介して図示しない伝送制御部から受信する構成にしても
よく、更に、記録媒体は、ネットワーク上に構築された
サーバやクライアントの記録媒体であってもよい。
The storage device 5 is pre-stored with programs, data and the like, and has a structure including a recording medium readable by the CPU 1, such as a magnetic or optical recording medium or a semiconductor memory. This recording medium is a CD-ROM,
Includes portable media such as memory cards and fixed media such as hard disks. Further, a part or all of the programs, data, and the like stored in this recording medium may be received from a transmission control unit (not shown) from a server or client via a network such as WAN or LAN. The medium may be a recording medium of a server or a client constructed on the network.

【0039】この記憶装置5は、携帯端末200に対応
する各種アプリケーションプログラム、瞬時停電検出処
理プログラム、及び各処理プログラムで処理されたデー
タ等を記憶する。
The storage device 5 stores various application programs corresponding to the mobile terminal 200, an instantaneous power failure detection processing program, data processed by each processing program, and the like.

【0040】また、記憶装置5は、瞬時停電時の各機能
ブロック(USB部21、IrDA部22、無線部2
3)への電源供給状態毎に、瞬時停電から停電処理まで
の動作保証時間を格納した電流値テーブル52を有して
いる。なお、各機能ブロック(USB部21、IrDA
部22、無線部23)の消費電力は等しいものとする
The storage device 5 is also provided with functional blocks (USB unit 21, IrDA unit 22, wireless unit 2) at the time of momentary power failure.
It has a current value table 52 that stores the operation guarantee time from the momentary power failure to the power failure processing for each power supply state to 3). In addition, each functional block (USB unit 21, IrDA
The power consumption of the unit 22 and the wireless unit 23) is equal.

【0041】電流値テーブル52は、図5に示すよう
に、「電源供給状態」と「タイマ値」の両項目を対応付
けて記憶しており、「電源供給状態」としては、瞬時停
電時に電力消費している機能ブロック数を記憶し、「タ
イマ値」としては、瞬時停電時にタイマ10に設定され
る動作保証時間として、瞬時停電時に電力消費している
ブロック数毎に、補助電源9によるバックアップが可能
な最長時間を記憶している。図5の電流値テーブル52
では、瞬時停電発生時に電力消費している機能ブロック
数が少なければ少ないほど、タイマ値が長くなるように
設定値が記憶されている。即ち、電源が供給されている
機能ブロックの数が少なくなるに従って長い動作保証時
間がタイマ10に設定されるように構成されている。
As shown in FIG. 5, the current value table 52 stores both items of "power supply state" and "timer value" in association with each other. The number of functional blocks consumed is stored, and as the "timer value", the operation guaranteed time set in the timer 10 at the moment of a power outage is backed up by the auxiliary power supply 9 for each number of blocks consumed at the moment of a power outage. Remembers the longest possible time. Current value table 52 of FIG.
Then, the set value is stored such that the timer value becomes longer as the number of function blocks consuming power at the time of the instantaneous power failure is smaller. That is, the longer operation guarantee time is set in the timer 10 as the number of functional blocks to which power is supplied decreases.

【0042】タイマ10は、CPU1により指定された
タイマ値をセットし、タイマ値がセットされた時点から
の経過時間を計時し、経過時間が当該タイマ値に達する
と、計時終了信号をCPU1に出力する。なお、タイマ
10は、請求項3記載の計時手段としての機能を有す
る。
The timer 10 sets the timer value designated by the CPU 1, measures the elapsed time from the time when the timer value is set, and when the elapsed time reaches the timer value, outputs a timing end signal to the CPU 1. To do. The timer 10 has a function as a time measuring unit according to the third aspect.

【0043】電源制御状態検出部20は、USB部2
1、IrDA部22、無線部23の各機能ブロックの電
源供給状態(電力消費状態)を検出し、この検出信号を
CPU1に出力する。なお、電源制御状態検出部20
は、請求項3記載の検出手段としての機能を有する。
The power supply control state detecting section 20 includes the USB section 2
1, the power supply state (power consumption state) of each functional block of the IrDA unit 22 and the wireless unit 23 is detected, and this detection signal is output to the CPU 1. The power control state detection unit 20
Has a function as a detecting means.

【0044】USB部21は、周辺機器と、USB(Un
iversal Serial Bus)規格に準じた有線データ通信を行
い、IrDA部22は、外部機器と、IrDA(Infrar
ed Data Association)による赤外線通信規格に準じた
赤外線通信を行い、無線部23は、外部機器と無線電波
信号の送受信を行う。
The USB section 21 includes a peripheral device and a USB (Un
Wired data communication according to the iversal Serial Bus standard is performed, and the IrDA unit 22 is connected to an external device and IrDA (Infrar).
The wireless unit 23 transmits / receives a radio wave signal to / from an external device by performing infrared communication according to an infrared communication standard by the ed Data Association).

【0045】次に、本第2の実施の形態の動作を説明す
る。図6は、本願発明に係る第2の実施の形態の動作を
説明するためのフローチャートである。このフローチャ
ートは、本願発明の携帯端末200を構成するコンピュ
ータに各機能を実現させるためのプログラムを説明する
為のものである。このプログラムはCPU1が読み取り
可能なプログラムコードの形態で記録媒体に格納されて
いる例で説明するが、全ての機能を記録媒体に格納する
必要はなく、必要に応じて、その一部若しくは全部を通
信ネットワークを介して、図示しない伝送制御部から受
信して実現するようにしてもよい。
Next, the operation of the second embodiment will be described. FIG. 6 is a flow chart for explaining the operation of the second embodiment according to the present invention. This flowchart is for explaining a program for causing a computer constituting the mobile terminal 200 of the present invention to realize each function. This program is described as an example in which it is stored in the recording medium in the form of a program code that can be read by the CPU 1. However, it is not necessary to store all the functions in the recording medium, and some or all of the functions may be stored as necessary. It may be realized by receiving from a transmission control unit (not shown) via a communication network.

【0046】図6を参照して、携帯端末200において
実行される瞬時停電検出処理について説明する。
The instantaneous power failure detection process executed by the mobile terminal 200 will be described with reference to FIG.

【0047】主電源8の出力電圧が所定値以下となり、
電圧検出部6から、主電源8の遮断を示す検出信号が入
力されると、CPU1は、瞬時停電発生と判断し(ステ
ップS21;YES)、電源制御状態検出部20から、
USB部21、IrDA部22、無線部23の各ブロッ
クに対応する電源供給状態を検出する(ステップS2
2)。
The output voltage of the main power source 8 becomes a predetermined value or less,
When the detection signal indicating interruption of the main power supply 8 is input from the voltage detection unit 6, the CPU 1 determines that an instantaneous power failure has occurred (step S21; YES), and the power supply control state detection unit 20
The power supply state corresponding to each block of the USB unit 21, the IrDA unit 22, and the wireless unit 23 is detected (step S2).
2).

【0048】次いで、CPU1は、記憶装置5に格納さ
れている電流値テーブル52から、ステップS22で検
出した電源供給状態に対応するタイマ値を取得し(ステ
ップS23)、このタイマ値をタイマ10に設定する
(ステップS24)。
Next, the CPU 1 obtains the timer value corresponding to the power supply state detected in step S22 from the current value table 52 stored in the storage device 5 (step S23), and stores this timer value in the timer 10. It is set (step S24).

【0049】タイマ10による計時が終了しないうちに
(ステップS25;NO)、主電源8による電源供給が
復帰すると(ステップS26;YES)、CPU1は、
タイマ10による計時を終了させ、ステップS21に戻
り、再度、電圧検出部6からの信号入力を待機する。
When the power supply from the main power supply 8 is restored (step S26; YES) before the timer 10 has finished counting (step S25; NO), the CPU 1
The time measurement by the timer 10 is ended, the process returns to step S21, and the signal input from the voltage detection unit 6 is again waited.

【0050】タイマ10による計時中に主電源8による
電源供給が未だ復帰していなければ(ステップS26;
NO)、CPU1は、計時を続行させ、タイマ10によ
る計時が終了しても主電源8による電源供給が未だ復帰
していなければ(ステップS25;YES)、停電処理
に移行する。
If the power supply from the main power supply 8 is not yet restored during the time counting by the timer 10 (step S26;
If NO), the CPU 1 continues the time measurement, and if the power supply from the main power source 8 is not yet restored even after the time measurement by the timer 10 ends (step S25; YES), the CPU 1 shifts to the power outage process.

【0051】以上のように、本第2の実施の形態の携帯
端末200によれば、瞬間停電時の各機能ブロック(U
SB部21、IrDA部22、無線部23)に対する電
源供給状態に応じて、タイマ10に、補助電源9がバッ
クアップ可能な最長時間であるタイマ値を設定すること
により、電力消費しているブロック数が少ない場合は、
停電処理までの時間が延長(長い動作保証時間が設定)さ
れるため、従来のように無用な停電処理が行われること
を防止する。
As described above, according to the portable terminal 200 of the second embodiment, each functional block (U
The number of blocks consuming power by setting the timer value, which is the longest time that the auxiliary power supply 9 can back up, in the timer 10 according to the power supply state to the SB unit 21, the IrDA unit 22, the wireless unit 23) If there are few,
Since the time until the power outage process is extended (long operation guarantee time is set), unnecessary power outage process as in the past is prevented.

【0052】なお、本第2の実施の形態における記述内
容は、本発明の趣旨を逸脱しない範囲で適宜変更可能で
ある。例えば、本第2の実施の形態では、各機能ブロッ
クの消費電力が等しいものとし、瞬時停電時に電力消費
しているブロック数に応じてタイマ値を設定したが、機
能ブロック毎に消費電力が異なっている場合、瞬時停電
時にどの機能ブロックが電力消費しているかに応じて、
タイマ値を設定してもよい。
The contents of the description in the second embodiment can be changed as appropriate without departing from the spirit of the present invention. For example, in the second embodiment, the power consumption of each functional block is the same, and the timer value is set according to the number of blocks that are consuming power during an instantaneous power failure, but the power consumption differs for each functional block. , Depending on which functional block is consuming power during the momentary power failure,
A timer value may be set.

【0053】[0053]

【発明の効果】請求項1及び5記載の発明によれば、瞬
間停電の際の消費電流値に応じて、補助電源からの電源
供給による動作電圧を保証する時間を設定することによ
り、消費電流値が少ない場合は動作保証時間を長く設定
することができ、瞬時停電が発生しても停電処理を行う
度合いが少なくなるようにして、従来のように無用な停
電処理が行われることを防止することができる。
According to the first and fifth aspects of the present invention, the current consumption is set by setting the time for guaranteeing the operating voltage by the power supply from the auxiliary power source according to the current consumption value at the momentary power failure. If the value is small, the guaranteed operation time can be set longer, and even if an instantaneous power failure occurs, the degree of power failure processing will be reduced to prevent unnecessary power failure processing as in the past. be able to.

【0054】請求項3及び6記載の発明によれば、瞬間
停電の際の各機能ブロックに対する電源供給状態に応じ
て、補助電源からの電源供給による動作電圧を保証する
時間を設定することにより、電源が供給されている機能
ブロックの数が少ない場合は動作保証時間を長く設定す
ることができ、瞬時停電が発生しても停電処理を行う度
合いが少なくなるようにして、従来のように無用な停電
処理が行われることを防止することができる。
According to the third and sixth aspects of the present invention, by setting the time for guaranteeing the operating voltage by the power supply from the auxiliary power source in accordance with the power supply state to each functional block at the time of momentary power failure, If the number of function blocks that are supplied with power is small, the operation guarantee time can be set longer, and even if an instantaneous power failure occurs, the degree of power failure processing will be reduced, making it unnecessary as in the past. It is possible to prevent power outage processing from being performed.

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

【図1】本発明の第1の実施の形態を適用した携帯端末
100の内部構成を示すブロック図。
FIG. 1 is a block diagram showing an internal configuration of a mobile terminal 100 to which a first embodiment of the present invention has been applied.

【図2】携帯端末100内の記憶装置5に格納されてい
る電流値テーブル51のデータ構成を示す図。
FIG. 2 is a diagram showing a data configuration of a current value table 51 stored in a storage device 5 in the mobile terminal 100.

【図3】携帯端末100において実行される瞬時停電検
出処理を示すフローチャート。
FIG. 3 is a flowchart showing an instantaneous power failure detection process executed by the mobile terminal 100.

【図4】本発明の第2の実施の形態を適用した携帯端末
200の内部構成を示すブロック図。
FIG. 4 is a block diagram showing an internal configuration of a mobile terminal 200 to which the second embodiment of the present invention has been applied.

【図5】携帯端末200内の記憶装置5に格納されてい
る電流値テーブル52のデータ構成を示す図。
5 is a diagram showing a data configuration of a current value table 52 stored in a storage device 5 in the mobile terminal 200. FIG.

【図6】携帯端末200において実行される瞬時停電検
出処理を示すフローチャート。
FIG. 6 is a flowchart showing an instantaneous power failure detection process executed by the mobile terminal 200.

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

1 CPU 2 表示部 3 入力部 4 RAM 5 記憶装置 6 電圧検出部 7 電源制御部 8 主電源 9 補助電源 10 タイマ 11 電流検出部 12 バス 20 電源制御状態検出部 21 USB部 22 IrDA部 23 無線部 100、200 携帯端末 1 CPU 2 Display 3 input section 4 RAM 5 storage devices 6 Voltage detector 7 Power control unit 8 main power supply 9 Auxiliary power supply 10 timer 11 Current detector 12 buses 20 Power supply control state detector 21 USB section 22 IrDA section 23 Radio 100,200 mobile terminals

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】主電源の瞬時停電が発生した場合に電源を
供給する補助電源を有するデータ処理装置であって、 前記瞬時停電の際の消費電流値を測定する電流測定手段
と、 前記電流測定手段により測定された消費電流値に応じ
て、前記補助電源からの電源供給による動作電圧を保証
する時間を設定する設定手段と、 前記設定手段により設定された動作保証時間を計時する
計時手段と、 前記計時手段による計時が終了するまでの間に前記瞬時
停電が回復しない場合は、停電処理を行う停電処理手段
と、 を備えることを特徴とするデータ処理装置。
1. A data processing device having an auxiliary power supply for supplying power when an instantaneous power failure of the main power source occurs, the current measuring means for measuring a current consumption value at the time of the instantaneous power failure, and the current measurement. Depending on the current consumption value measured by the means, setting means for setting the time for guaranteeing the operating voltage by the power supply from the auxiliary power supply, and a clocking means for timing the operation guarantee time set by the setting means, A data processing device comprising: a power failure processing means that performs power failure processing when the instantaneous power failure is not recovered before the time counting by the time counting means ends.
【請求項2】前記設定手段は、複数の消費電流値に夫々
対応する複数の動作保証時間が記憶され且つ消費電流値
が小さくなるに従って長い動作保証時間が記憶された記
憶手段の記憶内容に基づいて、前記消費電流値に応じた
前記動作保証時間を設定することを特徴とする請求項1
記載のデータ処理装置。
2. The setting means stores a plurality of operation guarantee times corresponding to a plurality of consumption current values, respectively, and stores the operation guarantee time longer as the consumption current value becomes smaller, based on the stored contents of the storage means. The operation guarantee time is set according to the current consumption value.
The described data processing device.
【請求項3】複数の機能ブロックを有し、主電源の瞬時
停電が発生した場合に電源を供給する補助電源を有する
データ処理装置であって、 前記瞬時停電の際に、前記各ブロックに対する電源供給
状態を検出する検出手段と、 前記検出手段により検出された各ブロックに対する電源
供給状態に応じて、前記補助電源からの電源供給による
動作電圧を保証する時間を設定する設定手段と、 前記設定手段により設定された動作保証時間を計時する
計時手段と、 前記計時手段による計時が終了するまでの間に前記瞬時
停電が回復しない場合は、停電処理を行う停電処理手段
と、 を備えることを特徴とするデータ処理装置。
3. A data processing device having a plurality of functional blocks and an auxiliary power supply for supplying power when an instantaneous power failure of the main power source occurs, the power source for each block in the case of the instantaneous power failure. Detecting means for detecting a supply state; setting means for setting a time period for guaranteeing an operating voltage by the power supply from the auxiliary power source according to the power supply state for each block detected by the detecting means; and the setting means And a power failure processing means that performs power failure processing when the instantaneous power failure does not recover by the time the time counting by the time counting means ends. Data processing device.
【請求項4】前記設定手段は、電源を供給するブロック
の数に夫々対応する複数の動作保証時間が記憶され且つ
電源を供給するブロックの数が少なくなるに従って長い
動作保証時間が記憶された記憶手段の記憶内容に基づい
て、前記各ブロックに対する電源供給状態に応じた前記
動作保証時間を設定することを特徴とする請求項3記載
のデータ処理装置。
4. The storage means stores a plurality of guaranteed operation times corresponding to the number of blocks to which power is supplied, and a longer guaranteed operation time as the number of blocks to which power is supplied decreases. 4. The data processing device according to claim 3, wherein the operation guarantee time is set according to the power supply state to each block based on the stored contents of the means.
【請求項5】コンピュータに、 瞬時停電の際の消費電流値を測定する電流測定機能と、 前記電流測定機能により測定された消費電流値に応じ
て、補助電源からの電源供給による動作電圧を保証する
時間を設定する設定機能と、 前記設定機能により設定された動作保証時間を計時する
計時機能と、 前記計時機能による計時が終了するまでの間に前記瞬時
停電が回復しない場合は、停電処理を行う停電処理機能
と、 を実現させるためのプログラム。
5. A current measuring function for measuring a current consumption value in the event of an instantaneous power failure in a computer, and an operating voltage guaranteed by a power supply from an auxiliary power source according to the current consumption value measured by the current measurement function. Setting function for setting the time to be set, a time counting function for measuring the operation guaranteed time set by the setting function, and if the instantaneous power failure does not recover before the time counting by the time counting function ends, perform a power failure process. A power outage processing function to perform, and a program to realize the function.
【請求項6】コンピュータに、 瞬時停電の際に、複数の機能ブロックに対する電源供給
状態を検出する検出機能と、 前記検出機能により検出された各ブロックに対する電源
供給状態に応じて、補助電源からの電源供給による動作
電圧を保証する時間を設定する設定機能と、 前記設定機能により設定された動作保証時間を計時する
計時機能と、 前記計時機能による計時が終了するまでの間に前記瞬時
停電が回復しない場合は、停電処理を行う停電処理機能
と、 を実現させるためのプログラム。
6. A detection function for detecting a power supply state for a plurality of functional blocks at the time of a momentary power failure in a computer, and an auxiliary power source according to the power supply state for each block detected by the detection function. A setting function for setting the time for guaranteeing the operating voltage by the power supply, a time counting function for measuring the operation guaranteed time set by the setting function, and the instantaneous power failure is recovered before the time counting by the time counting function is completed. If not, a power outage processing function that performs power outage processing, and a program to implement the function.
JP2001364556A 2001-11-29 2001-11-29 Data processing device and program thereof Pending JP2003169426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001364556A JP2003169426A (en) 2001-11-29 2001-11-29 Data processing device and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001364556A JP2003169426A (en) 2001-11-29 2001-11-29 Data processing device and program thereof

Publications (1)

Publication Number Publication Date
JP2003169426A true JP2003169426A (en) 2003-06-13

Family

ID=19174727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001364556A Pending JP2003169426A (en) 2001-11-29 2001-11-29 Data processing device and program thereof

Country Status (1)

Country Link
JP (1) JP2003169426A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7882375B2 (en) * 2004-12-16 2011-02-01 Samsung Electronics Co., Ltd. Power off controllers and memory storage apparatus including the same and methods for operating the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7882375B2 (en) * 2004-12-16 2011-02-01 Samsung Electronics Co., Ltd. Power off controllers and memory storage apparatus including the same and methods for operating the same

Similar Documents

Publication Publication Date Title
US9979224B2 (en) Integrated circuit for wireless charging and operating method thereof
US6691248B1 (en) Method and apparatus for controlling supply of power, and storage medium
WO2017022169A1 (en) Battery control device, electronic apparatus, battery pack, and battery control method
US7523326B2 (en) Method and apparatus for maintaining a suspension state after powering down and fully powering down upon expiration of a timer or low battery level
JP2006172403A (en) Power supply controller, device with backup power supply, power supply control program, and power supply control method
JP2015118540A (en) Information processing apparatus, control method thereof, storage medium, and program
EP2693617B1 (en) Power supply apparatus, processing apparatus, information processing system, and method for controlling power supply
JP2007074866A (en) Malfunction prevention device
JP2003169426A (en) Data processing device and program thereof
JP2007135362A (en) Mobile terminal device
JP2836600B2 (en) Mobile terminal device
JP3120195B2 (en) Battery control device
JPH1027140A (en) Portable terminal equipment
JPH09205736A (en) Battery driven small-sized electronic equipment
JP5505124B2 (en) Battery remaining amount estimation device, electronic device equipped with the same, battery remaining amount estimation method, and program
US20130194441A1 (en) Electronic device and imaging apparatus
JP7375539B2 (en) Mobile device
JP5897080B2 (en) Portable terminal, portable terminal system, battery remaining amount warning method and program
JP2020092473A (en) Battery control system, battery device, computer device, battery control method and program
JP2016095771A (en) Backup circuit of device drive battery
JP2003295984A (en) Power monitoring method for portable terminal
JP6738035B1 (en) Information processing device and program
KR100802614B1 (en) Battery capacity display method for mobile communication device
JP2013078056A (en) Communication data logger device
JP2011022669A (en) Image forming apparatus and information processing system