[go: up one dir, main page]

JP5162188B2 - Mobile communication terminal, startup method, and boot program - Google Patents

Mobile communication terminal, startup method, and boot program Download PDF

Info

Publication number
JP5162188B2
JP5162188B2 JP2007225832A JP2007225832A JP5162188B2 JP 5162188 B2 JP5162188 B2 JP 5162188B2 JP 2007225832 A JP2007225832 A JP 2007225832A JP 2007225832 A JP2007225832 A JP 2007225832A JP 5162188 B2 JP5162188 B2 JP 5162188B2
Authority
JP
Japan
Prior art keywords
voltage
program
current
secondary battery
control means
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
JP2007225832A
Other languages
Japanese (ja)
Other versions
JP2009060717A (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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2007225832A priority Critical patent/JP5162188B2/en
Publication of JP2009060717A publication Critical patent/JP2009060717A/en
Application granted granted Critical
Publication of JP5162188B2 publication Critical patent/JP5162188B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Description

この発明は、携帯機器、起動方法およびブートプログラムに関し、特に二次電池を電力源とする携帯機器に関する。   The present invention relates to a mobile device, a startup method, and a boot program, and more particularly to a mobile device using a secondary battery as a power source.

携帯電話機で代表される携帯機器は、電力源にリチウムイオン電池やニッケル水素電池等の二次電池が用いられる。このため、外部から電力の供給を受けて、二次電池を充電する必要がある。近年、携帯機器はUSB(Universal Serial Bus)コネクタを備えたものが普及しており、USBケーブルで接続された外部の機器から電力の供給を受けることが可能である。USBケーブルで接続された外部の機器から電力を受ける場合、規格により最初は100mAの電流の電力しか供給を受けることができない。外部の機器から供給される電力の電流値を増加させるためには、外部の機器が充電器であることを確認するか、または、外部の機器と通信してネゴシエーションした後でなければ、外部の機器から供給される電力の電流値を増加させることができない。USBケーブルで接続された外部の機器から受ける電力で、二次電池を充電する技術または携帯機器を駆動する技術は、例えば、特許文献1〜3に記載されている。   A mobile device represented by a mobile phone uses a secondary battery such as a lithium ion battery or a nickel metal hydride battery as a power source. For this reason, it is necessary to charge the secondary battery by receiving power from the outside. In recent years, portable devices equipped with a USB (Universal Serial Bus) connector have become widespread, and can be supplied with power from an external device connected by a USB cable. When receiving power from an external device connected by a USB cable, only a current of 100 mA can be supplied at first according to the standard. In order to increase the current value of the power supplied from the external device, make sure that the external device is a charger, or after communicating with the external device and negotiating The current value of the power supplied from the device cannot be increased. For example, Patent Documents 1 to 3 describe a technique for charging a secondary battery or a technique for driving a portable device with power received from an external device connected by a USB cable.

しかしながら、従来の技術は、二次電池が携帯機器を駆動させるのに十分な電力を蓄積している場合の技術に関する。二次電池が携帯機器を駆動させるのに必要最低限の電圧を出力することができない過放電状態の場合、端末装置の中央演算装置(CPU)が駆動することができず、外部の機器が充電器であることの確認、または、外部の機器との通信のいずれもすることができない。このため次の問題がある。   However, the conventional technique relates to a technique in the case where the secondary battery stores sufficient power to drive the portable device. If the secondary battery is in an overdischarged state that cannot output the minimum voltage required to drive the portable device, the central processing unit (CPU) of the terminal device cannot be driven and the external device is charged. Neither confirmation of the device nor communication with an external device can be performed. For this reason, there are the following problems.

外部の機器から供給される100mAの電流の電力が供給されれば、二次電池の電圧が上昇し、CPUを駆動させることができる。しかし、CPUは、起動した後、外部の機器が充電器であることを確認する前、または、外部の機器と通信する前に、ブートプログラムを実行しなければならず、その間のCPUの消費電力が外部の機器から供給される100mAの電流の電力よりも大きいので、外部の機器が充電器であることを確認する前、または、外部の機器と通信する前にCPUがリセットされてしまう。このため、いつまでたってもCPUを起動することができないといった問題がある。
特開2003−28771号公報 特開2003−219561号公報 特開2005−339184号公報
If power with a current of 100 mA supplied from an external device is supplied, the voltage of the secondary battery rises and the CPU can be driven. However, after starting up, the CPU must execute a boot program before confirming that the external device is a charger or before communicating with the external device, and the power consumption of the CPU during that time Is larger than the 100 mA current power supplied from the external device, the CPU is reset before confirming that the external device is a charger or before communicating with the external device. For this reason, there is a problem that the CPU cannot be activated indefinitely.
JP 2003-28771 A JP 2003-219561 A JP 2005-339184 A

この発明は上述した問題点を解決するためになされたもので、この発明の目的の一つは、二次電池が過放電状態であっても起動することが可能な携帯機器を提供することである。   The present invention has been made to solve the above-described problems, and one of the objects of the present invention is to provide a portable device that can be activated even when the secondary battery is in an overdischarged state. is there.

この発明のさらに他の目的は、二次電池が過放電状態であっても起動することが可能な起動方法を提供することである。   Still another object of the present invention is to provide a starting method capable of starting even when the secondary battery is in an overdischarged state.

この発明のさらに他の目的は、二次電池が過放電状態であっても起動することが可能なブートプログラムを提供することである。   Still another object of the present invention is to provide a boot program that can be activated even when the secondary battery is in an overdischarged state.

上述した目的を達成するためにこの発明のある局面によれば、携帯機器は、外部機器を接続可能な入力端子と、入力端子に接続された外部機器から電流の供給を受ける二次電池と、入力端子から二次電池に流れる電流を制御する電流制御手段と、電流制御手段を制御する処理を実行するための制御プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後にブートプログラムを実行する制御手段と、二次電池の出力電圧が動作電圧より高い起動電圧以上である場合に制御手段を起動させる起動手段と、を備え、制御手段は、起動手段により起動された後、記憶手段に記憶されたブートプログラムのうちの制御プログラムを実行し、起動電圧は、制御手段が起動してからブートプログラムのうち制御プログラムの実行を終了するまでに制御手段により消費される電力と、動作電圧とから定まり、制御プログラムは、入力端子に特定の外部機器が接続されたことを検出するステップと、検出ステップにより特定の外部機器が接続されたことが検出されない場合、二次電池の出力電圧が単純起動電圧になるまで待機するステップと、検出ステップにより特定の外部機器が接続されたことが検出されることに応じて、電流制御手段に入力端子から二次電池に流れる電流を第1電流から該第1電流より大きな第2電流に切換えさせるステップと、を制御手段に実行させ、単純起動電圧は、制御手段がブートプログラムの実行を終了するまでに制御手段により消費される電力と、動作電圧とから定まる。
According to an aspect of the present invention to achieve the above-described object, the portable device includes an input terminal to which an external device can be connected, a secondary battery that receives a supply of current from the external device connected to the input terminal, Current control means for controlling current flowing from the input terminal to the secondary battery, boot program storage means for storing a boot program including a control program for executing processing for controlling the current control means, and operating voltage from the secondary battery Control means that operates when the above voltage is supplied, and executes a boot program after activation, and activation means that activates the control means when the output voltage of the secondary battery is higher than the activation voltage higher than the operation voltage; And the control means executes the control program of the boot programs stored in the storage means after being activated by the activation means, and the activation voltage is the control means It is determined from the power consumed by the control means and the operating voltage from the start to the end of execution of the control program, and the control program detects that a specific external device is connected to the input terminal And when the detection step does not detect that a specific external device is connected , a step of waiting until the output voltage of the secondary battery reaches a simple start voltage, and a specific external device is connected by the detection step it in response to being detected, to execute the current flowing from the input terminal to the current control unit to the secondary battery from the first current a step to switch to a larger second current than the first current, to the control means, simple activation voltage, the electric power control means is consumed by the control unit before terminating the execution of the boot program, Ru Sadama from the operating voltage.

この局面に従えば、二次電池の出力電圧が動作電圧より高い起動電圧以上であることを条件に、制御手段が起動され、制御手段により、ブートプログラムのうちの制御プログラムが実行される。制御プログラムを実行する制御手段により、入力端子に特定の外部機器が接続されたことが検出されることに応じて、入力端子から二次電池に流れる電流が第1電流から第2電流に切換えられる。起動電圧は、制御手段が起動してからブートプログラムのうち制御プログラムの実行を終了するまでに制御手段により消費される電力と、動作電圧とから定まるので、制御手段が制御プログラムの実行を終了するまでに二次電池の出力電圧が動作電圧より低くなることがない。また、特定の外部機器が接続されたことが検出されない場合、二次電池の出力電圧が、ブートプログラムの実行が終了するまでに消費される電力と動作電圧とから定まる単純起動電圧になるまで待機するので、ブートプログラムを実行することができる。このため、特定の外部機器が接続されない場合であってもブートプログラムを最後まで実行することができ、携帯機器を起動することができる。また、入力端子から二次電池に流れる電流が第1電流から第2電流に切換えられた後は、制御手段が消費する電力を超える電力が入力端子から二次電池に供給されるので、制御手段が制御プログラムの実行を終了した後に二次電池の出力電圧が動作電圧より低くなることがない。その結果、二次電池が過放電状態であっても起動することが可能な携帯機器を提供することができる。
According to this aspect, the control means is activated on the condition that the output voltage of the secondary battery is equal to or higher than the activation voltage higher than the operating voltage, and the control program of the boot program is executed by the control means. The current flowing from the input terminal to the secondary battery is switched from the first current to the second current in response to detecting that the specific external device is connected to the input terminal by the control means that executes the control program. . Since the start-up voltage is determined from the power consumed by the control unit and the operating voltage from the start of the control unit to the end of the execution of the control program in the boot program, the control unit ends the execution of the control program. The output voltage of the secondary battery does not become lower than the operating voltage. Also, if it is not detected that a specific external device is connected, it will wait until the output voltage of the secondary battery reaches a simple startup voltage determined from the power consumed by the boot program and the operating voltage. Therefore, the boot program can be executed. For this reason, even when a specific external device is not connected, the boot program can be executed to the end, and the portable device can be activated. In addition, after the current flowing from the input terminal to the secondary battery is switched from the first current to the second current, power exceeding the power consumed by the control means is supplied from the input terminal to the secondary battery. After finishing the execution of the control program, the output voltage of the secondary battery does not become lower than the operating voltage. As a result, a portable device that can be activated even when the secondary battery is in an overdischarged state can be provided.

好ましくは、記憶手段は、不揮発性メモリであり、記憶手段とは別に、制御手段の作業領域として用いられる揮発性の作業用記憶手段をさらに備え、ブートプログラムは、記憶手段に記憶されているアプリケーションプログラムを作業用記憶手段に転送する処理を制御手段に実行させるための転送プログラムをさらに含み、制御手段は、制御プログラムを実行した後、転送プログラムを実行する。   Preferably, the storage means is a non-volatile memory, and further includes a volatile work storage means used as a work area of the control means separately from the storage means, and the boot program is stored in the storage means. It further includes a transfer program for causing the control means to execute processing for transferring the program to the working storage means, and the control means executes the transfer program after executing the control program.

この局面に従えば、制御手段により制御プログラムが実行された後に、転送プログラムが実行される。制御プログラムが実行されることにより、入力端子から二次電池に流れる電流が第1電流から第2電流に切換えられるので、転送プログラムを確実に実行させることができる。   According to this aspect, after the control program is executed by the control means, the transfer program is executed. By executing the control program, the current flowing from the input terminal to the secondary battery is switched from the first current to the second current, so that the transfer program can be reliably executed.

好ましくは、制御手段は、記憶手段に記憶されているアプリケーションプログラムを実行する。   Preferably, the control means executes an application program stored in the storage means.

この局面に従えば、アプリケーションプログラムを確実に実行させることができる。   According to this aspect, the application program can be surely executed.

ましくは、起動電圧は、制御手段が起動してから制御プログラムの実行を終了した後に、二次電池の電圧が動作電圧以上となる電圧である。
好ましくは、単純起動電圧は、制御手段がブートプログラムの実行を終了した後に、二次電池の電圧が動作電圧以上となる電圧である。
好ましくは、電流切換手段は、入力端子に電圧が印加されることに応じて、入力端子から二次電池に第1電流を流し、制御手段により制御されて入力端子から二次電池に第2電流を流す。
Good Mashiku the starting voltage is, after the control unit has finished the execution of the control program from the start, a voltage the voltage of the secondary battery is in an operating voltage or more.
Preferably, the simple startup voltage is a voltage at which the voltage of the secondary battery becomes equal to or higher than the operating voltage after the control means finishes executing the boot program.
Preferably, the current switching means causes the first current to flow from the input terminal to the secondary battery in response to the voltage being applied to the input terminal, and is controlled by the control means to cause the second current from the input terminal to the secondary battery. Shed.

この発明の他の局面に従えば、起動方法は、携帯機器で実行される起動方法であって、携帯機器は、外部機器を接続可能な入力端子と、入力端子に接続された外部機器から電流の供給を受ける二次電池と、入力端子から二次電池に流れる電流を制御する電流制御手段と、アプリケーションプログラムを記憶する記憶手段と、電流制御手段を制御する処理を実行するための制御プログラムおよび転送プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後にブートプログラムを実行する制御手段と、二次電池の出力電圧が動作電圧より高い起動電圧以上である場合に制御手段を起動させる起動手段と、制御手段の作業領域として用いられる作業用記憶手段と、を備え、起動電圧は、制御手段が起動してからブートプログラムのうち制御プログラムの実行を終了するまでに制御手段により消費される電力と、動作電圧とから定まり、制御プログラムは、電流制御手段と通信するための設定を行うステップと、入力端子に特定の外部機器が接続されたか否かを検出するステップと、検出ステップにより特定の外部機器が接続されたことが検出されない場合、二次電池の出力電圧が単純起動電圧になるまで待機するステップと、検出ステップにより特定の外部機器が接続されたことが検出されることに応じて、電流制御手段に入力端子から二次電池に流れる電流を第1電流から該第1電流より電流値の大きな第2電流に切換えさせるステップと、を制御手段に実行させ、転送プログラムは、制御プログラムが実行された後に、アプリケーションプログラムを作業用記憶手段に転送するステップと、を制御手段に実行させ、単純起動電圧は、制御手段が転送するステップを実行する間に制御手段により消費される電力と、動作電圧とから定まる。
According to another aspect of the present invention, the activation method is an activation method executed in a portable device, and the portable device has an input terminal to which an external device can be connected and an electric current from the external device connected to the input terminal. A secondary battery that receives the supply of current, a current control means for controlling the current flowing from the input terminal to the secondary battery, a storage means for storing an application program, a control program for executing a process for controlling the current control means, and Boot program storage means for storing a boot program including a transfer program, control means for operating when a voltage higher than the operating voltage is supplied from the secondary battery, and executing the boot program after startup , and output voltage of the secondary battery There the activation means for activating the control means in the case where high starting voltage higher than the operating voltage, working memory hand used as a work area for the control unit When, with a starting voltage includes a power control unit is consumed by the control unit before terminating the execution of the control program of the boot program from the start, Sadamari from the operating voltage, the control program, the current control A step of performing settings for communicating with the means, a step of detecting whether or not a specific external device is connected to the input terminal, and a case where the detection step does not detect that a specific external device is connected. A current that flows from the input terminal to the secondary battery in the current control means in response to the detection of the step of waiting until the output voltage of the battery reaches the simple startup voltage and the detection step connecting the specific external device. and a step for shifting the larger second current having a current value than the first current from the first current, to execute the control means, the transfer program, the control pro After the ram has been executed, to execute a step of transferring the application program in the working memory means, to the control unit, simply starting voltage, the power control means is consumed by the control unit while performing the step of transferring If, Ru Sadama from the operating voltage.

この局面に従えば、二次電池が過放電状態であっても携帯機器を起動することが可能な起動方法を提供することができる。   If this situation is followed, the starting method which can start a portable apparatus even if a secondary battery is an overdischarge state can be provided.

この発明のさらに他の局面に従えば、ブートプログラムは、携帯機器で実行されるブートプログラムであって、携帯機器は、外部機器を接続可能な入力端子と、入力端子に接続された外部機器から電流の供給を受ける二次電池と、入力端子から二次電池に流れる電流を制御する電流制御手段と、アプリケーションプログラムを記憶する記憶手段と、電流制御手段を制御する処理を実行するための制御プログラムおよび転送プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後にブートプログラムを実行する制御手段と、二次電池の出力電圧が動作電圧より高い起動電圧以上である場合に制御手段を起動させる起動手段と、
制御手段の作業領域として用いられる作業用記憶手段と、を備え、起動電圧は、制御手段が起動してからブートプログラムのうち制御プログラムの実行を終了するまでに制御手段により消費される電力と、動作電圧とから定まり、制御プログラムは、電流制御手段と通信するための設定を行うステップと、検出ステップにより入力端子に特定の外部機器が接続されたか否かを検出するステップと、検出ステップにより特定の外部機器が接続されたことが検出されない場合、二次電池の出力電圧が単純起動電圧になるまで待機するステップと、検出ステップにより特定の外部機器が接続されたことが検出されることに応じて、電流制御手段に入力端子から二次電池に流れる電流を第1電流から該第1電流より電流値の大きな第2電流に切換えさせるステップと、を制御手段に実行させ、転送プログラムは、制御プログラムが実行された後に、アプリケーションプログラムを作業用記憶手段に転送するステップと、を制御手段に実行させ、単純起動電圧は、制御手段が転送するステップを実行する間に制御手段により消費される電力と、動作電圧とから定まる。
According to still another aspect of the present invention, the boot program is a boot program executed by a portable device, and the portable device includes an input terminal to which an external device can be connected and an external device connected to the input terminal. A secondary battery that receives a current supply, a current control unit that controls a current flowing from the input terminal to the secondary battery, a storage unit that stores an application program, and a control program for executing a process that controls the current control unit Boot program storage means for storing a boot program including a transfer program, a control means that operates when a voltage higher than the operating voltage is supplied from the secondary battery, and executes the boot program after startup, and the output of the secondary battery Starting means for starting the control means when the voltage is higher than the starting voltage higher than the operating voltage;
Working memory means used as a work area of the control means, and the startup voltage is the power consumed by the control means from the start of the control means to the end of execution of the control program in the boot program, The control program is determined based on the operating voltage, the control program is configured to perform settings for communicating with the current control means, the detection step detects whether a specific external device is connected to the input terminal, and the detection step specifies If it is not detected that the external device is connected, the step of waiting until the output voltage of the secondary battery reaches the simple startup voltage and the detection step detects that the specific external device is connected. The current control means switches the current flowing from the input terminal to the secondary battery from the first current to the second current having a current value larger than the first current. That a step is performed to the control unit, the transfer program, after the control program is executed, to execute a step of transferring the application program in the working memory means, to the control unit, simply starting voltage, the control means There the power consumed by the control unit while performing the step of transferring, Ru Sadama from the operating voltage.

この局面に従えば、二次電池が過放電状態であっても携帯機器を起動することが可能なブートプログラムを提供することができる。   According to this aspect, it is possible to provide a boot program capable of starting the portable device even when the secondary battery is in an overdischarged state.

以下、本発明の実施の形態について図面を参照して説明する。以下の説明では同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

以下、携帯機器の一例として携帯電話機を例に説明する。図1は、本発明の実施の形態の一つにおける携帯電話機の外観を示す斜視図である。図1を参照して、携帯電話機1は、操作側部3と、表示側部2とを含む。操作側部3の内側面には、テンキーおよび通話キー等の操作キー14と、マイクロフォン13とが配置され、側面にUSBコネクタ51が配置される。表示側部2の内側面には、液晶表示装置(LCD)16と、レシーバとしての第1スピーカ11とが配置され、内側面に反対の外側面にはカメラ24(図2参照)が配置される。また、表示側部2の側面には、第2スピーカ12が配置される。なお、ここでは携帯電話機1がLCD16を備える例を示すが、LCD16に代えて、有機EL(ElectroLuminescence)ディスプレイを用いてもよい。操作側部3と表示側部2とは、ヒンジ機構で回転可能に連結され、操作側部3と表示側部2とは開閉自在である。   Hereinafter, a mobile phone will be described as an example of the mobile device. FIG. 1 is a perspective view showing an appearance of a mobile phone according to one embodiment of the present invention. Referring to FIG. 1, mobile phone 1 includes an operation side portion 3 and a display side portion 2. An operation key 14 such as a numeric keypad and a call key and the microphone 13 are disposed on the inner side surface of the operation side portion 3, and a USB connector 51 is disposed on the side surface. A liquid crystal display device (LCD) 16 and a first speaker 11 as a receiver are arranged on the inner side surface of the display side portion 2, and a camera 24 (see FIG. 2) is arranged on the outer side surface opposite to the inner side surface. The A second speaker 12 is disposed on the side surface of the display side portion 2. Although an example in which the mobile phone 1 includes the LCD 16 is shown here, an organic EL (ElectroLuminescence) display may be used instead of the LCD 16. The operation side unit 3 and the display side unit 2 are rotatably connected by a hinge mechanism, and the operation side unit 3 and the display side unit 2 can be opened and closed.

図2は、本実施の形態における携帯電話機の機能の一例を示す機能ブロック図である。図2を参照して、携帯電話機1は、携帯電話機1の全体を制御するためのCPU21と、アンテナ22Aと接続された無線回路22と、音声データを処理するためのコーデック部28と、それぞれがコーデック部28に接続されたマイクロフォン13、第1スピーカ11および第2スピーカ12と、カメラ24と、ユーザの操作の入力を受付ける操作部25と、振動部26と、カードインターフェース(I/F)27と、LCD16の表示を制御するための表示制御部30と、CPU21で実行するプログラム等を記憶するための不揮発性メモリ31と、CPU21の作業領域として使用される揮発性メモリ32と、外部機器が接続される接続端子であるUSBコネクタ51と、USBドライバ回路53と、電源制御部35と、二次電池71と、を含む。   FIG. 2 is a functional block diagram illustrating an example of functions of the mobile phone according to the present embodiment. Referring to FIG. 2, mobile phone 1 includes a CPU 21 for controlling the entire mobile phone 1, a radio circuit 22 connected to an antenna 22A, and a codec unit 28 for processing audio data. Microphone 13, first speaker 11 and second speaker 12 connected to codec unit 28, camera 24, operation unit 25 that accepts user operation input, vibration unit 26, and card interface (I / F) 27 A display control unit 30 for controlling the display of the LCD 16, a non-volatile memory 31 for storing a program executed by the CPU 21, a volatile memory 32 used as a work area of the CPU 21, and an external device. A USB connector 51 which is a connection terminal to be connected, a USB driver circuit 53, a power supply control unit 35, and a secondary battery 71. , Including the.

無線回路22は、CPU21により制御され、無線基地局と通信する。具体的には、アンテナ22Aにより受信された無線信号が入力され、無線信号を復調した音声信号をコーデック部28に出力する。また、無線回路22は、コーデック部28から音声信号が入力され、音声信号を変調した無線信号をアンテナ22Aに出力する。コーデック部28は、無線回路22から入力される音声信号を復号し、復号したデジタルの音声信号をアナログに変換し、増幅し、そして第1スピーカ11または第2スピーカ12に出力する。また、コーデック部28は、マイクロフォン13からアナログの音声信号が入力され、音声信号をデジタルに変換し、符号化し、そして符号化した音声信号を無線回路22に出力する。   The radio circuit 22 is controlled by the CPU 21 and communicates with the radio base station. Specifically, a radio signal received by the antenna 22 </ b> A is input, and an audio signal obtained by demodulating the radio signal is output to the codec unit 28. The radio circuit 22 receives the audio signal from the codec unit 28 and outputs a radio signal obtained by modulating the audio signal to the antenna 22A. The codec unit 28 decodes the audio signal input from the radio circuit 22, converts the decoded digital audio signal into analog, amplifies it, and outputs it to the first speaker 11 or the second speaker 12. The codec unit 28 receives an analog audio signal from the microphone 13, converts the audio signal to digital, encodes it, and outputs the encoded audio signal to the radio circuit 22.

不揮発性メモリ31は、NAND型のフラッシュメモリであり、CPU21で実行するプログラム、および、プログラムを実行するための変数等を記憶する。具体的には、ブートプログラムと、アプリケーションプログラムとを記憶する。   The non-volatile memory 31 is a NAND flash memory, and stores a program executed by the CPU 21 and variables for executing the program. Specifically, a boot program and an application program are stored.

揮発性メモリは、Synchronous DRAM(Dynamic Random Access Memory)であり、CPU21の作業領域として用いられる。   The volatile memory is a synchronous DRAM (Dynamic Random Access Memory) and is used as a work area of the CPU 21.

CPU21は、後述する起動部61よりリセット信号が入力されると、起動する。この際、CPU21は、起動後、不揮発性メモリ31に記憶されているブートプログラムを実行する。ブートプログラムは、通信設定プログラムと制御プログラムと初期設定プログラムとを含む。通信設定プログラムは、入出力ポートの設定処理である。制御プログラムは、電源制御部55を制御する処理である。初期設定プログラムは、転送プログラムを含む。通信設定処理で実行される設定の他の設定処理をCPU21に実行させるための設定プログラムと、不揮発性メモリ31に記憶されているアプリケーションプログラムを揮発性メモリ32に転送する処理をCPU21に実行させるための転送プログラムとを含む。アプリケーションプログラムを不揮発性メモリ31から揮発性メモリ32に転送するのは、揮発性メモリ32の方が、不揮発性メモリ32よりもアクセス速度が速いためである。CPU21は、起動後、ブートプログラムのうちの制御プログラムを実行し、その後、転送プログラムを実行する。起動後ブートプログラムの実行が完了するまでの時間を起動時間Tという。CPU21は、ブートプログラムの実行が完了すると、揮発性メモリ32に記憶されたアプリケーションプログラムを実行可能となる。   The CPU 21 is activated when a reset signal is input from the activation unit 61 described later. At this time, the CPU 21 executes the boot program stored in the non-volatile memory 31 after startup. The boot program includes a communication setting program, a control program, and an initial setting program. The communication setting program is an input / output port setting process. The control program is a process for controlling the power supply control unit 55. The initial setting program includes a transfer program. In order to cause the CPU 21 to execute a setting program for causing the CPU 21 to execute another setting process for the setting executed in the communication setting process and a process for transferring the application program stored in the nonvolatile memory 31 to the volatile memory 32 Transfer program. The application program is transferred from the nonvolatile memory 31 to the volatile memory 32 because the volatile memory 32 has a higher access speed than the nonvolatile memory 32. After starting, the CPU 21 executes a control program in the boot program, and then executes a transfer program. The time until the boot program execution is completed after startup is referred to as startup time T. When the execution of the boot program is completed, the CPU 21 can execute the application program stored in the volatile memory 32.

表示制御部30は、CPU21により制御され、CPU21から入力される指示に従ってLCD16を制御して、LCD16に画像を表示させる。LCD16に表示させる画像は、動画像と静止画像とを含む。   The display control unit 30 is controlled by the CPU 21 and controls the LCD 16 in accordance with an instruction input from the CPU 21 to display an image on the LCD 16. The image displayed on the LCD 16 includes a moving image and a still image.

カードI/F27には、着脱可能なフラッシュメモリ27Aが装着される。CPU21は、カードI/F27を介して、フラッシュメモリ27Aにアクセスが可能である。なお、ここではCPU21で実行するためのプログラムを不揮発性メモリ31に記憶しておく例を説明するが、プログラムをフラッシュメモリ27Aに記憶しておき、フラッシュメモリ27Aからプログラムを読み出して、CPU21で実行するようにしてもよい。プログラムを記憶する記録媒体としては、フラッシュメモリ27Aに限らず、フレキシブルディスク、カセットテープ、光ディスク(CD−ROM(Compact Disc
−ROM)/MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc))、ICカード、光カード、マスクROM(Read Only Memory)、EPROM(Erasable Programmable ROM)、EEPROM(Electronically Erasable and Programmable ROM))などの半導体メモリ等でもよい。
A removable flash memory 27A is attached to the card I / F 27. The CPU 21 can access the flash memory 27A via the card I / F 27. Here, an example in which a program to be executed by the CPU 21 is stored in the nonvolatile memory 31 will be described. However, the program is stored in the flash memory 27A, and the program is read from the flash memory 27A and executed by the CPU 21. You may make it do. The recording medium for storing the program is not limited to the flash memory 27A, but a flexible disk, cassette tape, optical disk (CD-ROM (Compact Disc)
-ROM) / MO (Magnetic Optical Disc) / MD (Mini Disc) / DVD (Digital Versatile Disc)), IC card, optical card, mask ROM (Read Only Memory ROM), EPROM (Erasable Programmable ROM), EPROM (Erasable Programmable ROM) and Programmable ROM)).

また、携帯電話機1をインターネットに無線回路22を介して接続し、インターネットに接続されたコンピュータからプログラムをダウンロードして、CPU21で実行するようにしてもよい。ここでいうプログラムは、CPU21により直接実行可能なプログラムだけでなく、ソースプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   Alternatively, the mobile phone 1 may be connected to the Internet via the wireless circuit 22 and a program may be downloaded from a computer connected to the Internet and executed by the CPU 21. The program here includes not only a program directly executable by the CPU 21 but also a source program, a compressed program, an encrypted program, and the like.

カメラ24は、レンズおよびCMOS(Complementary Metal Oxide Semiconductor)センサ等の光電変換素子を備え、レンズで集光した光をCMOSセンサに結像し、CMOSセンサは受光した光を光電変換して画像データをCPU21に出力する。カメラ24は、CPU21により制御され、CPU21からの指示により撮像を開始して、得られる静止画データまたは動画データをCPU21に出力する。カメラ24は、光電変換した画像データの画質を向上させるための画像処理を実行する画像処理回路、画像データをアナログからデジタルに変換するA/D変換回路を備えている。CPU21は、カメラ24が出力する静止画データまたは動画データを表示制御部30に出力し、LCD16に表示させる、または、圧縮符号化方式で静止画データまたは動画データを符号化して、EEPROM34またはカードI/F27に装着されたフラッシュメモリ27Aに記憶する。   The camera 24 includes a lens and a photoelectric conversion element such as a CMOS (Complementary Metal Oxide Semiconductor) sensor, and focuses light collected by the lens on a CMOS sensor. The CMOS sensor photoelectrically converts the received light to convert image data. It outputs to CPU21. The camera 24 is controlled by the CPU 21, starts imaging in response to an instruction from the CPU 21, and outputs the obtained still image data or moving image data to the CPU 21. The camera 24 includes an image processing circuit that executes image processing for improving the image quality of photoelectrically converted image data, and an A / D conversion circuit that converts image data from analog to digital. The CPU 21 outputs the still image data or moving image data output from the camera 24 to the display control unit 30 and displays it on the LCD 16 or encodes the still image data or moving image data by the compression encoding method, and the EEPROM 34 or card I / F is stored in the flash memory 27A attached to the F27.

操作部25は、操作キー14と、ランプ25Aとを含む。操作キー14は、ユーザによる操作の入力を受け付け、受け付けた操作をCPU21に出力する。ランプ25Aは、CPU21により制御されて発光する。   The operation unit 25 includes an operation key 14 and a lamp 25A. The operation key 14 receives an operation input by the user and outputs the received operation to the CPU 21. The lamp 25A emits light under the control of the CPU 21.

USBコネクタ51には、充電器200またはUSB機器210が接続される。USB機器210は、USBコネクタを備え、携帯電話機1とUSBケーブルで接続可能な電子機器である。また、ここでのUSB機器210は、USBケーブルを介して携帯電話機1に電力を供給可能な機器である。   A charger 200 or a USB device 210 is connected to the USB connector 51. The USB device 210 is an electronic device that includes a USB connector and can be connected to the mobile phone 1 with a USB cable. The USB device 210 here is a device that can supply power to the mobile phone 1 via a USB cable.

USBドライバ回路53は、CPU21により制御され、USBコネクタ51を介して接続されたUSB機器210と通信する。   The USB driver circuit 53 is controlled by the CPU 21 and communicates with the USB device 210 connected via the USB connector 51.

二次電池71は、リチウムイオン電池、ニッケル水素電池またはニッカド電池等であり、携帯電話機1の全体に電力を供給する。   The secondary battery 71 is a lithium ion battery, a nickel metal hydride battery, a nickel cadmium battery, or the like, and supplies power to the entire mobile phone 1.

電源制御部35は、CPU21を起動するための起動部61と、二次電池71への充電電流を制御するための電流制御部65と、二次電池71の出力電圧を検出するための電圧検出部63と、を含む。   The power supply control unit 35 includes an activation unit 61 for activating the CPU 21, a current control unit 65 for controlling the charging current to the secondary battery 71, and voltage detection for detecting the output voltage of the secondary battery 71. Part 63.

電圧検出部63は、二次電池71の出力電圧を計測し、二次電池71の出力電圧を、機器判別部67および起動部61に出力する。機器判別部67は、USBコネクタ51にUSBケーブルを介して接続された機器の種類を判別する。ここで、USBコネクタ51について説明する。   The voltage detection unit 63 measures the output voltage of the secondary battery 71 and outputs the output voltage of the secondary battery 71 to the device determination unit 67 and the activation unit 61. The device determination unit 67 determines the type of device connected to the USB connector 51 via a USB cable. Here, the USB connector 51 will be described.

図3は、USBコネクタ51の一例を示す図である。USBコネクタ51は、VBUS、D−、D+、NCおよびGNDの5つの端子を含む。充電器200において、D−端子とD+端子とが短絡され、VBUS端子は例えば5Vの電圧が印加され、NC端子は200kΩの抵抗を介して接地される。一方、USB機器210は、VBUS端子に所定の電圧が印加され、D+端子とD−端子とは15kΩの抵抗を介して接地され、NC端子はOPEN(開放端子)となる。USB機器210と携帯電話機1とがUSBケーブルで接続される場合、D+端子とD−端子とを用いて通信信号が送受信される。   FIG. 3 is a diagram illustrating an example of the USB connector 51. The USB connector 51 includes five terminals of VBUS, D−, D +, NC, and GND. In the charger 200, the D− terminal and the D + terminal are short-circuited, a voltage of, for example, 5V is applied to the VBUS terminal, and the NC terminal is grounded through a resistance of 200 kΩ. On the other hand, in the USB device 210, a predetermined voltage is applied to the VBUS terminal, the D + terminal and the D- terminal are grounded via a 15 kΩ resistor, and the NC terminal becomes an OPEN (open terminal). When the USB device 210 and the mobile phone 1 are connected by a USB cable, communication signals are transmitted / received using the D + terminal and the D− terminal.

図2に戻って、機器判別部67は、CPU21により制御され、USBコネクタ51に充電器200またはUSB機器210のどちらが接続されたかを検出する。機器判別部67は、USBコネクタ51のD+端子に予め決められた電圧を印加したときに、D−端子がD+端子と同じ電圧かGND電圧かを判断する。D−端子がD+端子と同じ電圧ならば充電器200が接続されたと判断し、D−端子がGND電圧ならばUSB機器210が接続されたと判断する。機器判別部67は、USBコネクタ51に充電器200が接続されたと判断すると、CPU21に充電器200が接続されたことを示す判別信号を出力する。また、機器判別部67は、USBコネクタ51にUSB機器210が接続されたと判断すると、CPU21にUSB機器210が接続されたことを示す判別信号を出力する。   Returning to FIG. 2, the device determination unit 67 is controlled by the CPU 21 and detects which of the charger 200 and the USB device 210 is connected to the USB connector 51. The device determination unit 67 determines whether the D− terminal is the same voltage as the D + terminal or the GND voltage when a predetermined voltage is applied to the D + terminal of the USB connector 51. If the D− terminal has the same voltage as the D + terminal, it is determined that the charger 200 is connected. If the D− terminal is the GND voltage, it is determined that the USB device 210 is connected. When the device determination unit 67 determines that the charger 200 is connected to the USB connector 51, the device determination unit 67 outputs a determination signal indicating that the charger 200 is connected to the CPU 21. When the device determination unit 67 determines that the USB device 210 is connected to the USB connector 51, the device determination unit 67 outputs a determination signal indicating that the USB device 210 is connected to the CPU 21.

なお、NC端子を用いて、USBコネクタ51に充電器200とUSB機器210のいずれが接続されたかを判断するようにしてもよい。充電器200のNC端子は200kΩの抵抗を介して接地されており、USB機器210のNC端子はOPEN(開放端子)とする。したがって、NC端子に電圧を印加したときの電流が所定の値となる場合は充電器200が接続されたことを検出し、NC端子に印加した電圧が検出される場合はUSB機器が接続されたことを検出する。   Note that it may be determined which of the charger 200 and the USB device 210 is connected to the USB connector 51 using the NC terminal. The NC terminal of the charger 200 is grounded through a 200 kΩ resistor, and the NC terminal of the USB device 210 is OPEN (open terminal). Therefore, when the current when the voltage is applied to the NC terminal becomes a predetermined value, it is detected that the charger 200 is connected, and when the voltage applied to the NC terminal is detected, the USB device is connected. Detect that.

電流制御部65は、USBコネクタ51を介して接続された充電器200またはUSB機器210から供給される電力の電流を制御する。電流制御部65は、CPU21により制御されるが、CPU21が動作していない状態でも駆動する。電流制御部65は、USBコネクタ51を介して接続された充電器200またはUSB機器210から電力が供給されると、換言すれば、VBUS端子に5V以上の電圧が印加されると、100mAの電流を二次電池71に出力するとともに、起動部61に接続信号を出力する。接続信号は、USBコネクタ51に充電器200またはUSB機器210のいずれかが接続されたことを示す信号である。また、電流制御部65は、CPU21から切換信号が入力されると、100mAより大きな電流、例えば、500mA以上の電流を二次電池71に出力する。   The current control unit 65 controls the current of power supplied from the charger 200 or the USB device 210 connected via the USB connector 51. The current control unit 65 is controlled by the CPU 21, but is driven even when the CPU 21 is not operating. When power is supplied from the charger 200 or the USB device 210 connected via the USB connector 51, in other words, when a voltage of 5 V or more is applied to the VBUS terminal, the current control unit 65 has a current of 100 mA. Is output to the secondary battery 71 and a connection signal is output to the starter 61. The connection signal is a signal indicating that either the charger 200 or the USB device 210 is connected to the USB connector 51. In addition, when a switching signal is input from the CPU 21, the current control unit 65 outputs a current greater than 100 mA, for example, a current of 500 mA or more to the secondary battery 71.

起動部61は、接続信号が入力されると、電圧検出部63から入力される電圧値(二次電池71の出力電圧の値)が、早期起動電圧V3以上であることを条件に、CPU21を起動する。電圧検出部63から入力される電圧値が早期起動電圧V3未満ならば、電圧検出部63から早期起動電圧V3以上の電圧値が入力されるまで待機する。起動部61は、CPU21を起動するために、CPU21にリセット信号を出力する。   When the connection signal is input, the starter 61 switches the CPU 21 on condition that the voltage value input from the voltage detector 63 (the value of the output voltage of the secondary battery 71) is equal to or higher than the early start voltage V3. to start. If the voltage value input from the voltage detector 63 is less than the early startup voltage V3, the process waits until a voltage value equal to or higher than the early startup voltage V3 is input from the voltage detector 63. The activation unit 61 outputs a reset signal to the CPU 21 in order to activate the CPU 21.

早期起動電圧V3は、CPU21がブートプログラムのうち通信設定プログラムと制御プログラムとを実行するために消費する電力と、動作電圧V1とにより定まる。換言すれば、起動電圧V3は、CPU21がブートプログラムのうち通信設定プログラムと制御プログラムとを実行した後であっても、二次電池71の出力電圧が動作電圧V1以上となる値である。   The early startup voltage V3 is determined by the power consumed by the CPU 21 to execute the communication setting program and the control program in the boot program, and the operating voltage V1. In other words, the startup voltage V3 is a value at which the output voltage of the secondary battery 71 is equal to or higher than the operating voltage V1 even after the CPU 21 executes the communication setting program and the control program in the boot program.

CPU21は、起動部61からリセット信号が入力されると、不揮発性メモリ31に記憶されているブートプログラムの通信設定プログラムと制御プログラムとを実行する。   When the reset signal is input from the activation unit 61, the CPU 21 executes the communication setting program and the control program of the boot program stored in the nonvolatile memory 31.

図4は、不揮発性メモリに記憶されるプログラムを説明するための図である。図4を参照して、不揮発性メモリ31は、ブートプログラム151と、複数のアプリケーションプログラム161,163とを記憶する。ここでは、2つのアプリケーションプログラム161,163を記憶する例を示すが、記憶するアプリケーションプログラムの数は、1以上あればよく、アプリケーションプログラムの数を限定するものではない。   FIG. 4 is a diagram for explaining a program stored in the nonvolatile memory. Referring to FIG. 4, the nonvolatile memory 31 stores a boot program 151 and a plurality of application programs 161 and 163. Here, an example is shown in which two application programs 161 and 163 are stored, but the number of application programs to be stored is one or more, and the number of application programs is not limited.

ブートプログラム151は、通信設定プログラム153と、制御プログラム155と、初期設定プログラム157とを含む。通信設定プログラム153は、CPU21が電源制御部55と通信するための設定をする処理を定義する。制御プログラム155は、電源制御部55を制御する処理を定義する。具体的には、制御プログラム155は、CPU21が機器判別部67を制御して、二次電池71の出力電圧が単純起動電圧V2より小さい場合に、USBコネクタ51に充電器200またはUSB機器210のいずれが接続されたことを検出させ、機器判別部67から判別信号を受信する処理を定義する。さらに、制御プログラムは、判別信号が充電機器210が接続されていることを示す場合、電流制御部65に切換信号を出力する処理を定義し、判別信号がUSB機器210が接続されていることを示す場合、二次電池71の出力電圧が単純起動電圧V2となるまで待機する処理と、を定義する。単純起動電圧V2は、CPU21がブートプログラム151の残りの初期設定プログラム157を実行することにより消費する電力と、動作電圧V1とにより定まる。換言すれば、単純起動電圧V2は、CPU21がブートプログラム151のうちの初期設定プログラム157を実行した後であっても、二次電池71の出力電圧が動作電圧V1以上となる値である。なお、CPU21がブートプログラムを途中から実行するのではなく、最初から実行する場合には、単純起動電圧V2は、CPU21がブートプログラム151のすべてを実行することにより消費する電力と、動作電圧V1とにより定まる。この場合、CPU21がブートプログラム151のすべてを実行した後であっても、二次電池71の出力電圧が動作電圧V1以上となるように単純起動電圧V2が定められる。   The boot program 151 includes a communication setting program 153, a control program 155, and an initial setting program 157. The communication setting program 153 defines processing for making settings for the CPU 21 to communicate with the power control unit 55. The control program 155 defines a process for controlling the power supply control unit 55. Specifically, when the CPU 21 controls the device determination unit 67 and the output voltage of the secondary battery 71 is smaller than the simple startup voltage V2, the control program 155 is connected to the USB connector 51 via the charger 200 or the USB device 210. A process of detecting which one is connected and receiving a determination signal from the device determination unit 67 is defined. Further, the control program defines a process of outputting a switching signal to the current control unit 65 when the determination signal indicates that the charging device 210 is connected, and the determination signal indicates that the USB device 210 is connected. In the case shown, a process of waiting until the output voltage of the secondary battery 71 reaches the simple startup voltage V2 is defined. The simple startup voltage V2 is determined by the power consumed by the CPU 21 executing the remaining initial setting program 157 of the boot program 151 and the operating voltage V1. In other words, the simple startup voltage V2 is a value at which the output voltage of the secondary battery 71 is equal to or higher than the operating voltage V1 even after the CPU 21 executes the initial setting program 157 of the boot program 151. When the CPU 21 executes the boot program from the beginning instead of halfway, the simple startup voltage V2 includes the power consumed by the CPU 21 executing all of the boot program 151 and the operating voltage V1. It depends on. In this case, even after the CPU 21 executes all of the boot program 151, the simple startup voltage V2 is determined so that the output voltage of the secondary battery 71 is equal to or higher than the operating voltage V1.

図2に戻って、機器判別部67は、CPU21から機器を判別するように制御されると、判別信号をCPU21に出力するので、CPU21は機器判別部67から入力される判別信号に基づいて、USBコネクタ51に充電器200およびUSB機器210のいずれが接続されているかを判別する。CPU21は、判別信号が充電機器210が接続されていることを示す場合、電流制御部65の切換信号を出力する。その後、ブートプログラム151の残りの初期設定プログラム157を実行する。電流制御部65は、CPU21から切換信号が入力されると、100mAより大きな500mAの電流を二次電池71に出力する。このため、二次電池71の出力電圧が動作電圧V1を下回ることがないので、携帯電話機1を起動することができる。   Returning to FIG. 2, when the device determination unit 67 is controlled to determine the device from the CPU 21, the device 21 outputs a determination signal to the CPU 21, so that the CPU 21 is based on the determination signal input from the device determination unit 67. It is determined which of the charger 200 and the USB device 210 is connected to the USB connector 51. When the determination signal indicates that the charging device 210 is connected, the CPU 21 outputs a switching signal for the current control unit 65. Thereafter, the remaining initial setting program 157 of the boot program 151 is executed. When the switching signal is input from the CPU 21, the current control unit 65 outputs a current of 500 mA larger than 100 mA to the secondary battery 71. For this reason, since the output voltage of the secondary battery 71 does not fall below the operating voltage V1, the mobile phone 1 can be activated.

一方、CPU21は、判別信号がUSB機器210が接続されていることを示す場合、電圧検出部63が出力する電圧値(二次電池71の出力電圧の値)が、単純起動電圧V2以上になるまで待機する。CPU21が待機している状態における消費電力は低く、ゼロとみなせる。このため、二次電池71に100mAの電流が流れるので、二次電池71の蓄電容量が増加するとともに、出力電圧が増加する。   On the other hand, when the determination signal indicates that the USB device 210 is connected, the CPU 21 outputs the voltage value output by the voltage detection unit 63 (the value of the output voltage of the secondary battery 71) equal to or higher than the simple startup voltage V2. Wait until. The power consumption in a state where the CPU 21 is on standby is low and can be regarded as zero. For this reason, since a current of 100 mA flows through the secondary battery 71, the storage capacity of the secondary battery 71 increases and the output voltage increases.

CPU21は、電圧検出部63が出力する電圧値(二次電池71の出力電圧の値)が、単純起動電圧V2以上になると、ブートプログラム151の残りの初期設定プログラム157を実行した後に、USBコネクタ51にUSB機器が接続されている場合、USB機器210と通信し、ネゴシエーションした後に、電流制御部65に切換信号を出力する。   When the voltage value output from the voltage detector 63 (the value of the output voltage of the secondary battery 71) is equal to or higher than the simple startup voltage V2, the CPU 21 executes the remaining initial setting program 157 of the boot program 151 and then executes the USB connector. When a USB device is connected to 51, it communicates with the USB device 210 and negotiates, and then outputs a switching signal to the current control unit 65.

図5は、CPUで実行される起動処理の流れの一例を示すフローチャートである。起動処理は、起動部61よりリセット信号が入力されることに応じて、CPU21によって実行される処理である。図5を参照して、CPU21は、リセット信号が入力されると、ブートプログラム151に含まれる通信設定プログラム153を実行する(ステップS01)。これにより、CPU21は、電力制御部51と通信することが可能になる。そして、ブートプログラム151に含まれる制御プログラム155を実行する(ステップS02)。制御プログラム155を実行することによりCPU21により実行される処理については後述する。次のステップS03においては、初期設定プログラム157を実行し、処理をステップS04に進める。初期設定ブートプログラムは、不揮発性メモリ31に記憶されているアプリケーションプログラム161,163を揮発性メモリ32に転送する処理を含む。   FIG. 5 is a flowchart illustrating an example of a flow of activation processing executed by the CPU. The activation process is a process executed by the CPU 21 in response to a reset signal input from the activation unit 61. Referring to FIG. 5, when a reset signal is input, CPU 21 executes communication setting program 153 included in boot program 151 (step S01). As a result, the CPU 21 can communicate with the power control unit 51. Then, the control program 155 included in the boot program 151 is executed (step S02). Processing executed by the CPU 21 by executing the control program 155 will be described later. In the next step S03, the initial setting program 157 is executed, and the process proceeds to step S04. The initial setting boot program includes a process of transferring the application programs 161 and 163 stored in the nonvolatile memory 31 to the volatile memory 32.

そして、ステップS04においては、USBコネクタ51に接続された接続機器が充電器200か否かを判断する(ステップS03)。USBコネクタ51に充電器200が接続されているならば処理を終了するが、そうでなくUSB機器210が接続されているならば処理をステップS05に進める。   In step S04, it is determined whether or not the connected device connected to the USB connector 51 is the charger 200 (step S03). If the charger 200 is connected to the USB connector 51, the process ends. If not, the process proceeds to step S05 if the USB device 210 is connected.

ステップS05においては、USBドライバ回路53を制御して、USB機器210と通信し、USB機器210に500mAの電流の電力を出力するようネゴシエーションする。そして、電流値を切り換える(ステップS06)。具体的には、電源制御部55と通信し、電流制御部65に切換信号を出力する。これにより、二次電池71に500mAの電流の電力が供給される。   In step S05, the USB driver circuit 53 is controlled to communicate with the USB device 210 and negotiate to output a power of 500 mA to the USB device 210. Then, the current value is switched (step S06). Specifically, it communicates with the power supply control unit 55 and outputs a switching signal to the current control unit 65. As a result, a power of 500 mA is supplied to the secondary battery 71.

図6は、制御処理の流れの一例を示すフローチャートである。制御処理は、図5のステップS02において実行される処理である。図6を参照して、CPU21は、接続機器を検出する(ステップS11)。電源制御部55と通信し、電源制御部55にUSBコネクタ51に接続されている接続機器が充電器200およびUSB機器210のいずれであるかを検出させる。そして、接続機器が充電器200か否かを判断する(ステップS12)。接続機器が充電器200ならば処理をステップS13に進め、接続機器が充電器200でなくUSB機器210ならば処理をステップS14に進める。   FIG. 6 is a flowchart illustrating an example of the flow of control processing. The control process is a process executed in step S02 of FIG. Referring to FIG. 6, CPU 21 detects a connected device (step S11). Communicating with the power supply control unit 55 and causing the power supply control unit 55 to detect whether the connected device connected to the USB connector 51 is the charger 200 or the USB device 210. Then, it is determined whether or not the connected device is the charger 200 (step S12). If the connected device is charger 200, the process proceeds to step S13, and if the connected device is not charger 200 but USB device 210, the process proceeds to step S14.

ステップS13においては、二次電池71に流れる電流値を変更し、処理を起動処理に戻す。具体的には、電流制御部65に切換信号を出力し、二次電池71に500mAの電流が流れるように制御する。   In step S13, the value of the current flowing through the secondary battery 71 is changed, and the process returns to the startup process. Specifically, a switching signal is output to the current control unit 65 so that a current of 500 mA flows through the secondary battery 71.

一方、ステップS14においては、二次電池71の出力電圧を計測する。電源制御部55と通信し、電源制御部55に二次電池71の出力電圧を計測させる。そして、二次電池71の出力電圧が単純起動電圧V2以上か否かを判断する(ステップS15)。二次電池71の出力電圧が単純起動電圧V2以上ならば処理を起動処理に戻し、二次電池71の出力電圧が単純起動電圧V2未満ならば処理をステップS14に戻す。換言すれば、二次電池の出力電圧が単純起動電圧V2以上になるまで待機する。二次電池の出力電圧が単純起動電圧V2以上であれば、ブートプログラム151の残りの初期設定プログラム157を実行しても二次電池71の出力電圧が動作電圧V1よりも低くなることがないからである。   On the other hand, in step S14, the output voltage of the secondary battery 71 is measured. It communicates with the power control unit 55 and causes the power control unit 55 to measure the output voltage of the secondary battery 71. And it is judged whether the output voltage of the secondary battery 71 is more than the simple starting voltage V2 (step S15). If the output voltage of secondary battery 71 is equal to or higher than simple startup voltage V2, the process returns to the startup process. If the output voltage of secondary battery 71 is less than simple startup voltage V2, the process returns to step S14. In other words, it waits until the output voltage of the secondary battery becomes equal to or higher than the simple startup voltage V2. If the output voltage of the secondary battery is equal to or higher than the simple startup voltage V2, the output voltage of the secondary battery 71 will not be lower than the operating voltage V1 even if the remaining initial setting program 157 of the boot program 151 is executed. It is.

図7は、二次電池の出力電圧の推移の一例を示す図である。時刻t0において二次電池71の出力電圧は、過放電状態の電圧である。充電器200またはUSB機器210から100mAの電流の電力が二次電池71に供給されるので、出力電圧が徐々に増加する(時刻0〜時刻t1)。   FIG. 7 is a diagram illustrating an example of transition of the output voltage of the secondary battery. At time t0, the output voltage of the secondary battery 71 is an overdischarged voltage. Since power of 100 mA is supplied to the secondary battery 71 from the charger 200 or the USB device 210, the output voltage gradually increases (time 0 to time t1).

出力電圧が早期起動電圧V3になるとき(時刻t1)において、CPU21にリセット信号が入力され、CPU21がブートプログラムのうち通信設定プログラムと制御プログラムとを実行する。充電器200またはUSB機器210から供給される100mAの電流の電力は、CPU21が動作する場合に消費される電力よりも小さいので、二次電池71が放電し、出力電圧が減少する。ただし、CPU21がブートプログラムのうち通信設定プログラムと制御プログラムとを実行した後(時刻t3)に、二次電池71の出力電圧は、動作電圧V1よりも高い。早期起動電圧V3を、CPU21がブートプログラムのうち通信設定プログラムと制御プログラムを実行した後であっても、二次電池71の出力電圧が動作電圧V1以上となる値としているからである。このため、CPU21は、ブートプログラムのうち通信設定プログラムと制御プログラムを実行している間(期間T2)に、シャットダウンすることがない。   When the output voltage reaches the early startup voltage V3 (time t1), a reset signal is input to the CPU 21, and the CPU 21 executes the communication setting program and the control program in the boot program. Since the power of 100 mA current supplied from the charger 200 or the USB device 210 is smaller than the power consumed when the CPU 21 operates, the secondary battery 71 is discharged and the output voltage decreases. However, after the CPU 21 executes the communication setting program and the control program in the boot program (time t3), the output voltage of the secondary battery 71 is higher than the operating voltage V1. This is because the early startup voltage V3 is set to a value at which the output voltage of the secondary battery 71 is equal to or higher than the operating voltage V1 even after the CPU 21 executes the communication setting program and the control program in the boot program. For this reason, the CPU 21 does not shut down during execution of the communication setting program and the control program in the boot program (period T2).

CPU21は、通信プログラムおよび制御プログラムを実行することにより、USBコネクタ51に充電器200が接続されていることを検出すると、電流制御部65に500mAの電流を流すように制御する。このため500mAの電流の電力が二次電池71に供給される。充電器200から供給される電力の一部がCPU21により電力が消費されるが、500mAの電流の電力は、CPU21が動作する場合に消費される電力よりも大きいので、二次電池71の出力電圧が増加する。この場合における二次電池17の出力電圧を図中では実線で示す。CPU21において、ブートプログラムの残りの初期設定プログラム157を実行する時間をT3とすれば、CPU21がブートプログラムのすべての実行を終了するときは時刻t4となる。   When the CPU 21 detects that the charger 200 is connected to the USB connector 51 by executing the communication program and the control program, the CPU 21 controls the current controller 65 to flow a current of 500 mA. For this reason, electric power with a current of 500 mA is supplied to the secondary battery 71. Although a part of the power supplied from the charger 200 is consumed by the CPU 21, the power of the current of 500 mA is larger than the power consumed when the CPU 21 operates, so the output voltage of the secondary battery 71 Will increase. The output voltage of the secondary battery 17 in this case is indicated by a solid line in the drawing. If the time for executing the remaining initial setting program 157 of the boot program in the CPU 21 is T3, the time t4 is reached when the CPU 21 finishes all the execution of the boot program.

一方、CPU21は、通信プログラムおよび制御プログラムを実行することにより、USBコネクタ51にUSB機器210が接続されていることを検出すると、CPU21は、待機状態となる。この場合、電流制御部65において100mAの電流の電力が二次電池71に供給される。CPU21が待機する状態における消費電力は小さいので、USB機器210から100mAの電流の電力が二次電池71に供給され、出力電圧が徐々に増加する。USBコネクタ51にUSB機器210が接続された場合における二次電池17の出力電圧を図中では点線で示す。   On the other hand, when the CPU 21 detects that the USB device 210 is connected to the USB connector 51 by executing the communication program and the control program, the CPU 21 enters a standby state. In this case, the current control unit 65 supplies power of 100 mA to the secondary battery 71. Since the power consumption in the standby state of the CPU 21 is small, 100 mA current power is supplied from the USB device 210 to the secondary battery 71, and the output voltage gradually increases. The output voltage of the secondary battery 17 when the USB device 210 is connected to the USB connector 51 is indicated by a dotted line in the drawing.

そして、出力電圧が単純起動電圧V2になるとき(時刻t3)において、CPU21がブートプログラム151のうち残りの初期設定プログラム157を実行し、不揮発性メモリ31に記憶されているアプリケーションプログラム161,163を揮発性メモリ32に転送する処理を実行する。USB機器210から供給される100mAの電流の電力は、CPU21が動作する場合に消費される電力よりも小さいので、二次電池71が放電し、出力電圧が減少する。ただし、CPU21が初期設定プログラム157を実行した後(時刻t5)に、二次電池71の出力電圧は、動作電圧V1よりも高い。単純起動電圧V2を、CPU21が初期設定プログラム157を実行した後であっても、二次電池71の出力電圧が動作電圧V1以上となる値としているからである。このため、CPU21は、初期設定プログラム157を実行し、不揮発性メモリ31に記憶されているアプリケーションプログラム161,163を揮発性メモリ32に転送する処理を実行している間(期間T3)に、シャットダウンすることがない。   When the output voltage becomes the simple startup voltage V2 (time t3), the CPU 21 executes the remaining initial setting program 157 of the boot program 151, and the application programs 161 and 163 stored in the nonvolatile memory 31 are executed. A process of transferring to the volatile memory 32 is executed. Since the power of 100 mA current supplied from the USB device 210 is smaller than the power consumed when the CPU 21 operates, the secondary battery 71 is discharged, and the output voltage decreases. However, after the CPU 21 executes the initial setting program 157 (time t5), the output voltage of the secondary battery 71 is higher than the operating voltage V1. This is because the simple startup voltage V2 is set to a value at which the output voltage of the secondary battery 71 becomes equal to or higher than the operating voltage V1 even after the CPU 21 executes the initial setting program 157. For this reason, the CPU 21 executes the initial setting program 157 and shuts down while executing the process of transferring the application programs 161 and 163 stored in the nonvolatile memory 31 to the volatile memory 32 (period T3). There is nothing to do.

CPU21が初期設定プログラム157の実行を終了すると(時刻t5)、CPU21は、USB機器210と通信が可能となるので、USB機器210とネゴシエーションした後に、電流制御部65において500mAの電流の電力を二次電池71に供給するように制御する。USB機器210から供給される電力の一部がCPU21により電力が消費されるが、500mAの電流の電力は、CPU21が動作する場合に消費される電力よりも大きいので、二次電池71の出力電圧が増加する。   When the CPU 21 finishes executing the initial setting program 157 (time t5), the CPU 21 can communicate with the USB device 210. Therefore, after negotiating with the USB device 210, the current control unit 65 supplies a current of 500 mA. Control is performed so that the secondary battery 71 is supplied. Although a part of the power supplied from the USB device 210 is consumed by the CPU 21, the power of the current of 500 mA is larger than the power consumed when the CPU 21 operates, so the output voltage of the secondary battery 71 Will increase.

USBコネクタ51に充電器200が接続された場合に、CPU21がアプリケーションプログラムを実行可能となる時刻t4は、USBコネクタ51にUSB機器210が接続された場合に、CPU21がアプリケーションプログラムを実行可能となる時刻t5よりも早い。このため、充電器200を接続した方が、USB機器210を接続するよりも早く、携帯電話機1を使用可能な状態にすることができる。   When the charger 200 is connected to the USB connector 51, the CPU 21 can execute the application program at time t4 when the CPU 21 can execute the application program when the USB device 210 is connected to the USB connector 51. It is earlier than time t5. For this reason, it is possible to make the mobile phone 1 usable by connecting the charger 200 earlier than connecting the USB device 210.

以上説明したように本実施の形態における携帯電話機1は、二次電池71の出力電圧が動作電圧V1より高い早期起動電圧V3以上であることを条件に、CPU21が起動され、CPU21により、ブートプログラム151のうちの通信設定プログラム153と制御プログラム157とが実行される。制御プログラムを実行するCPU21により、USBコネクタ51に充電器200が接続されたことが検出されることに応じて、USBコネクタ51から二次電池71に流れる電流が100mA(第1電流)から500mA(第2電流)に切換えられる。早期起動電圧V3は、CPU21が起動してからブートプログラム151のうち通信設定プログラム153と制御プログラム155との実行を終了するまでにCPU21により消費される電力と、動作電圧V1とから定まるので、CPU21が制御プログラム155の実行を終了するまでに二次電池71の出力電圧が動作電圧V1より低くなることがない。また、USBコネクタ51から二次電池71に流れる電流が100mA(第1の電流)から500mA(第2電流)に切換えられた後は、CPU21が消費する電力を超える電力がUSBコネクタ51から二次電池71に供給されるので、CPU21が制御プログラム155の実行を終了した後に二次電池71の出力電圧が動作電圧V3より低くなることがない。従って、二次電池71が過放電状態であっても携帯電話機1を起動することができる。   As described above, in the mobile phone 1 according to the present embodiment, the CPU 21 is activated on the condition that the output voltage of the secondary battery 71 is equal to or higher than the early activation voltage V3 higher than the operating voltage V1, and the CPU 21 starts the boot program. Of 151, the communication setting program 153 and the control program 157 are executed. When the CPU 21 that executes the control program detects that the charger 200 is connected to the USB connector 51, the current flowing from the USB connector 51 to the secondary battery 71 changes from 100 mA (first current) to 500 mA (first current). 2nd current). Since the early startup voltage V3 is determined from the power consumed by the CPU 21 and the operating voltage V1 until the execution of the communication setting program 153 and the control program 155 in the boot program 151 after the CPU 21 is activated, the CPU 21 Until the execution of the control program 155 ends, the output voltage of the secondary battery 71 does not become lower than the operating voltage V1. Further, after the current flowing from the USB connector 51 to the secondary battery 71 is switched from 100 mA (first current) to 500 mA (second current), the power exceeding the power consumed by the CPU 21 is secondary from the USB connector 51. Since the power is supplied to the battery 71, the output voltage of the secondary battery 71 does not become lower than the operating voltage V3 after the CPU 21 finishes executing the control program 155. Therefore, the mobile phone 1 can be activated even when the secondary battery 71 is in an overdischarged state.

また、CPU21は、制御プログラム155を実行した後に、転送プログラムを含む初期設定プログラム157を実行するので、USBコネクタ51から二次電池71に流れる電流を100mA(第1電流)から500mA(第2電流)に切換えた後に、初期設定プログラム157を実行する。このため、二次電池71が過放電状態であっても充電器200をUSBコネクタ51に接続すれば、CPU21は、初期設定プログラム157を確実に実行することができる。   Further, since the CPU 21 executes the initial setting program 157 including the transfer program after executing the control program 155, the current flowing from the USB connector 51 to the secondary battery 71 is changed from 100 mA (first current) to 500 mA (second current). ), The initial setting program 157 is executed. For this reason, even if the secondary battery 71 is in an overdischarged state, if the charger 200 is connected to the USB connector 51, the CPU 21 can reliably execute the initial setting program 157.

さらに、CPU21が、初期設定プログラム157を実行した後は、揮発性メモリ32にアプリケーションプログラムが記憶されるので、二次電池71が過放電状態であっても充電器200をUSBコネクタ51に接続すれば、CPU21にアプリケーションプログラムを実行させることができる。   Furthermore, since the application program is stored in the volatile memory 32 after the CPU 21 executes the initial setting program 157, the charger 200 can be connected to the USB connector 51 even when the secondary battery 71 is in an overdischarged state. In this case, the CPU 21 can execute an application program.

また、制御プログラムを実行するCPU21は、充電器200が接続されたことが検出されずUSB機器210が接続されたことを検出すると、二次電池71の出力電圧が単純起動電圧V2になるまで待機する。単純起動電圧V2は、二次電池71の出力電圧が、ブートプログラム151の残りの初期設定プログラム157の実行が終了するまでにCPU21により消費される電力と動作電圧とから定まるので、CPU21は、ブートプログラム151の残りの初期設定プログラム157を実行することができる。このため、USBコネクタ51にUSB機器210が接続される場合であってもブートプログラムを最後まで実行することができ、携帯電話機1を起動することができる。   Further, when the CPU 21 that executes the control program detects that the USB device 210 is connected without detecting that the charger 200 is connected, the CPU 21 waits until the output voltage of the secondary battery 71 reaches the simple startup voltage V2. To do. The simple startup voltage V2 is determined from the power consumed by the CPU 21 and the operating voltage until the output voltage of the secondary battery 71 finishes the execution of the remaining initial setting program 157 of the boot program 151. The remaining initial setting program 157 of the program 151 can be executed. Therefore, even when the USB device 210 is connected to the USB connector 51, the boot program can be executed to the end, and the mobile phone 1 can be activated.

なお、本実施の形態においては、電流制御部65は、VBUS端子が+5V以上になると、100mAの電流を二次電池71に出力するようにしたが、USBコネクタ51を介して接続された充電器200またはUSB機器210から電流が供給されたことを検出すると、100mAの電流を二次電池に出力するようにしてもよい。   In the present embodiment, the current control unit 65 is configured to output a current of 100 mA to the secondary battery 71 when the VBUS terminal becomes +5 V or more. However, the charger connected via the USB connector 51 When it is detected that a current is supplied from 200 or the USB device 210, a current of 100 mA may be output to the secondary battery.

また、図5および図6に示した起動処理を実行するための起動方法および起動方法をコンピュータに実行させるための起動プログラムとして発明を捉えることができるのは言うまでもない。   Needless to say, the invention can be understood as a startup method for executing the startup process shown in FIGS. 5 and 6 and a startup program for causing the computer to execute the startup method.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

<付記>
(1) 前記起動電圧は、前記制御手段が起動してから前記制御プログラムの実行を終了した後に、前記二次電池の電圧が前記動作電圧以上となる電圧である、請求項1に記載の携帯機器。
(2) 前記電流切換手段は、前記入力端子に電圧が印加されることに応じて、前記入力端子から前記二次電池に第1電流を流し、前記制御手段により制御されて前記入力端子から前記二次電池に前記第2電流を流す、請求項1に記載の携帯機器。
(3)前記単純起動電圧は、前記制御手段が前記ブートプログラムの実行を終了した後に、前記二次電池の電圧が前記動作電圧以上となる電圧である、請求項4に記載の携帯機器
<Appendix>
(1) The mobile phone according to claim 1, wherein the start-up voltage is a voltage at which the voltage of the secondary battery becomes equal to or higher than the operating voltage after the execution of the control program is finished after the control means is started up. machine.
(2) The current switching means causes a first current to flow from the input terminal to the secondary battery in response to a voltage being applied to the input terminal, and is controlled by the control means to control the input terminal from the input terminal. The portable device according to claim 1, wherein the second current is passed through the secondary battery.
(3) The portable device according to claim 4, wherein the simple startup voltage is a voltage at which a voltage of the secondary battery becomes equal to or higher than the operating voltage after the control unit finishes executing the boot program.

本発明の実施の形態の一つにおける携帯電話機の外観を示す斜視図である。It is a perspective view which shows the external appearance of the mobile telephone in one of embodiment of this invention. 本実施の形態における携帯電話機の機能の一例を示す機能ブロック図である。It is a functional block diagram which shows an example of the function of the mobile telephone in this Embodiment. USBコネクタの一例を示す図である。It is a figure which shows an example of a USB connector. 不揮発性メモリに記憶されるプログラムを説明するための図である。It is a figure for demonstrating the program memorize | stored in a non-volatile memory. CPUで実行される起動処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the starting process performed with CPU. 制御処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of control processing. 二次電池の出力電圧の推移の一例を示す図である。It is a figure which shows an example of transition of the output voltage of a secondary battery.

符号の説明Explanation of symbols

1 携帯電話機、2 表示側部、3 操作側部、11 第1スピーカ、12 第2スピーカ、13 マイクロフォン、14 操作キー、21 CPU、22 無線回路、22A アンテナ、24 カメラ、25 操作部、25A ランプ、26 振動部、27 カードI/F、27A フラッシュメモリ、28 コーデック部、30 表示制御部、31 不揮発性メモリ、32 揮発性メモリ、35 電源制御部、51 USBコネクタ、53 USBドライバ回路、55 電源制御部、61 起動部、62 しきい値変更部、63 電圧検出部、65 電流制御部、67 機器判別部、71 二次電池、200 充電器、210 USB機器。   DESCRIPTION OF SYMBOLS 1 Mobile phone, 2 Display side part, 3 Operation side part, 11 1st speaker, 12 2nd speaker, 13 Microphone, 14 Operation key, 21 CPU, 22 Wireless circuit, 22A Antenna, 24 Camera, 25 Operation part, 25A Lamp , 26 vibration unit, 27 card I / F, 27A flash memory, 28 codec unit, 30 display control unit, 31 nonvolatile memory, 32 volatile memory, 35 power supply control unit, 51 USB connector, 53 USB driver circuit, 55 power supply Control unit, 61 Start-up unit, 62 Threshold change unit, 63 Voltage detection unit, 65 Current control unit, 67 Device discrimination unit, 71 Secondary battery, 200 Charger, 210 USB device

Claims (8)

外部機器を接続可能な入力端子と、
前記入力端子に接続された外部機器から電流の供給を受ける二次電池と、
前記入力端子から前記二次電池に流れる電流を制御する電流制御手段と、
前記電流制御手段を制御する処理を実行するための制御プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、
前記二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後に前記ブートプログラムを実行する制御手段と、
前記二次電池の出力電圧が前記動作電圧より高い起動電圧以上である場合に前記制御手段を起動させる起動手段と、を備え、
前記制御手段は、前記起動手段により起動された後、前記記憶手段に記憶された前記ブートプログラムのうちの前記制御プログラムを実行し、
前記起動電圧は、前記制御手段が起動してから前記ブートプログラムのうち前記制御プログラムの実行を終了するまでに前記制御手段により消費される電力と、前記動作電圧とから定まり、
前記制御プログラムは、前記入力端子に特定の外部機器が接続されたことを検出するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されない場合、前記二次電池の出力電圧が単純起動電圧になるまで待機するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されることに応じて、前記電流制御手段に前記入力端子から前記二次電池に流れる電流を第1電流から該第1電流より大きな第2電流に切換えさせるステップと、を前記制御手段に実行させ
前記単純起動電圧は、前記制御手段が前記ブートプログラムの実行を終了するまでに前記制御手段により消費される電力と、前記動作電圧とから定まる、携帯機器。
An input terminal to which an external device can be connected;
A secondary battery that receives a supply of current from an external device connected to the input terminal;
Current control means for controlling current flowing from the input terminal to the secondary battery;
Boot program storage means for storing a boot program including a control program for executing processing for controlling the current control means;
Control means that operates when a voltage higher than the operating voltage is supplied from the secondary battery, and executes the boot program after startup,
Starting means for starting the control means when the output voltage of the secondary battery is higher than the starting voltage higher than the operating voltage,
The control means executes the control program out of the boot programs stored in the storage means after being started by the start means,
The startup voltage is determined from the power consumed by the control unit from the start of the control unit to the end of execution of the control program in the boot program, and the operating voltage.
The control program detecting that a specific external device is connected to the input terminal;
When the detection step does not detect that the specific external device is connected, waiting until the output voltage of the secondary battery becomes a simple startup voltage;
In response to detecting that the specific external device is connected by the detecting step, a current flowing from the input terminal to the secondary battery is increased from the first current to the current control means to be larger than the first current. Switching to the second current, causing the control means to execute ,
The simple starting voltage, the electric power and the control means is consumed by the control unit before terminating the execution of the boot program, that Sadama from said operating voltage, the portable device.
前記記憶手段は、不揮発性メモリであり、
前記記憶手段とは別に、前記制御手段の作業領域として用いられる揮発性の作業用記憶手段をさらに備え、
前記ブートプログラムは、前記記憶手段に記憶されているアプリケーションプログラムを前記作業用記憶手段に転送する処理を前記制御手段に実行させるための転送プログラムをさらに含み、
前記制御手段は、前記制御プログラムを実行した後、前記転送プログラムを実行する、請求項1に記載の携帯機器。
The storage means is a nonvolatile memory,
Aside from the storage means, further comprising volatile work storage means used as a work area of the control means,
The boot program further includes a transfer program for causing the control unit to execute a process of transferring the application program stored in the storage unit to the working storage unit,
The portable device according to claim 1, wherein the control unit executes the transfer program after executing the control program.
前記制御手段は、前記記憶手段に記憶されている前記アプリケーションプログラムを実行する、請求項2に記載の携帯機器。   The portable device according to claim 2, wherein the control unit executes the application program stored in the storage unit. 前記起動電圧は、前記制御手段が起動してから前記制御プログラムの実行を終了した後に、前記二次電池の電圧が前記動作電圧以上となる電圧である、請求項1〜3のいずれかに記載の携帯機器。 The activation voltage, after the control unit has completed the execution of the control program after starting, the voltage of the secondary battery is a voltage which becomes the operating voltage or more, according to any one of claims 1 to 3 Mobile devices. 前記単純起動電圧は、前記制御手段が前記ブートプログラムの実行を終了した後に、前記二次電池の電圧が前記動作電圧以上となる電圧である、請求項1〜4のいずれかに記載の携帯機器。 The portable device according to any one of claims 1 to 4, wherein the simple startup voltage is a voltage at which a voltage of the secondary battery becomes equal to or higher than the operating voltage after the control unit finishes executing the boot program. . 前記電流切換手段は、前記入力端子に電圧が印加されることに応じて、前記入力端子から前記二次電池に第1電流を流し、前記制御手段により制御されて前記入力端子から前記二次電池に前記第2電流を流す、請求項1〜のいずれかに記載の携帯機器。 The current switching means causes a first current to flow from the input terminal to the secondary battery in response to a voltage being applied to the input terminal, and is controlled by the control means to control the secondary battery from the input terminal. flowing the second current to the portable device according to any one of claims 1-5. 携帯機器で実行される起動方法であって、
前記携帯機器は、
外部機器を接続可能な入力端子と、
前記入力端子に接続された外部機器から電流の供給を受ける二次電池と、
前記入力端子から前記二次電池に流れる電流を制御する電流制御手段と、
アプリケーションプログラムを記憶する記憶手段と、
前記電流制御手段を制御する処理を実行するための制御プログラムおよび転送プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、
前記二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後に前記ブートプログラムを実行する制御手段と、
前記二次電池の出力電圧が前記動作電圧より高い起動電圧以上である場合に前記制御手段を起動させる起動手段と、
前記制御手段の作業領域として用いられる作業用記憶手段と、を備え、
前記起動電圧は、前記制御手段が起動してから前記ブートプログラムのうち前記制御プログラムの実行を終了するまでに前記制御手段により消費される電力と、前記動作電圧とから定まり、
前記制御プログラムは、前記電流制御手段と通信するための設定を行うステップと、
前記入力端子に特定の外部機器が接続されたか否かを検出するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されない場合、前記二次電池の出力電圧が単純起動電圧になるまで待機するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されることに応じて、前記電流制御手段に前記入力端子から前記二次電池に流れる電流を第1電流から該第1電流より電流値の大きな第2電流に切換えさせるステップと、を前記制御手段に実行させ、
前記転送プログラムは、前記制御プログラムが実行された後に、前記アプリケーションプログラムを前記作業用記憶手段に転送するステップを前記制御手段に実行させ、
前記単純起動電圧は、前記制御手段が前記転送するステップを実行する間に前記制御手段により消費される電力と、前記動作電圧とから定まる起動方法。
A startup method executed on a mobile device,
The portable device is
An input terminal to which an external device can be connected;
A secondary battery that receives a supply of current from an external device connected to the input terminal;
Current control means for controlling current flowing from the input terminal to the secondary battery;
Storage means for storing application programs;
Boot program storage means for storing a boot program including a control program and a transfer program for executing processing for controlling the current control means;
Control means that operates when a voltage higher than the operating voltage is supplied from the secondary battery, and executes the boot program after startup,
Starting means for starting the control means when the output voltage of the secondary battery is equal to or higher than the starting voltage higher than the operating voltage;
Working storage means used as a work area of the control means,
The startup voltage is determined from the power consumed by the control unit from the start of the control unit to the end of execution of the control program in the boot program, and the operating voltage.
The control program performs a setting for communicating with the current control means;
Detecting whether a specific external device is connected to the input terminal;
When the detection step does not detect that the specific external device is connected, waiting until the output voltage of the secondary battery becomes a simple startup voltage;
In response to detecting that the specific external device is connected by the detection step, the current flowing from the input terminal to the secondary battery from the first current to the current control means is changed from the first current to the current control means. Causing the control means to execute a step of switching to a second current having a large value,
The transfer program causes the control means to execute a step of transferring the application program to the working storage means after the control program is executed.
The simple start voltage is a start method determined from the power consumed by the control means while the control means executes the transferring step and the operating voltage.
携帯機器で実行されるブートプログラムであって、
前記携帯機器は、
外部機器を接続可能な入力端子と、
前記入力端子に接続された外部機器から電流の供給を受ける二次電池と、
前記入力端子から前記二次電池に流れる電流を制御する電流制御手段と、
アプリケーションプログラムを記憶する記憶手段と、
前記電流制御手段を制御する処理を実行するための制御プログラムおよび転送プログラムを含むブートプログラムを記憶するブートプログラム記憶手段と、
前記二次電池から動作電圧以上の電圧が供給された場合に動作し、起動後に前記ブートプログラムを実行する制御手段と、
前記二次電池の出力電圧が前記動作電圧より高い起動電圧以上である場合に前記制御手段を起動させる起動手段と、
前記制御手段の作業領域として用いられる作業用記憶手段と、を備え、
前記起動電圧は、前記制御手段が起動してから前記ブートプログラムのうち前記制御プログラムの実行を終了するまでに前記制御手段により消費される電力と、前記動作電圧とから定まり、
前記制御プログラムは前記電流制御手段と通信するための設定を行うステップと、
前記検出ステップにより前記入力端子に特定の外部機器が接続されたか否かを検出するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されない場合、前記二次電池の出力電圧が単純起動電圧になるまで待機するステップと、
前記検出ステップにより前記特定の外部機器が接続されたことが検出されることに応じて、前記電流制御手段に前記入力端子から前記二次電池に流れる電流を第1電流から該第1電流より電流値の大きな第2電流に切換えさせるステップと、を前記制御手段に実行させ、
前記転送プログラムは、前記制御プログラムが実行された後に、前記アプリケーションプログラムを前記作業用記憶手段に転送するステップを前記制御手段に実行させ、
前記単純起動電圧は、前記制御手段が前記転送するステップを実行する間に前記制御手段により消費される電力と、前記動作電圧とから定まるブートプログラム。
A boot program executed on a mobile device,
The portable device is
An input terminal to which an external device can be connected;
A secondary battery that receives a supply of current from an external device connected to the input terminal;
Current control means for controlling current flowing from the input terminal to the secondary battery;
Storage means for storing application programs;
Boot program storage means for storing a boot program including a control program and a transfer program for executing processing for controlling the current control means;
Control means that operates when a voltage higher than the operating voltage is supplied from the secondary battery, and executes the boot program after startup,
Starting means for starting the control means when the output voltage of the secondary battery is equal to or higher than the starting voltage higher than the operating voltage;
Working storage means used as a work area of the control means,
The startup voltage is determined from the power consumed by the control unit from the start of the control unit to the end of execution of the control program in the boot program, and the operating voltage.
The control program performs a setting for communicating with the current control means;
Detecting whether or not a specific external device is connected to the input terminal by the detecting step;
When the detection step does not detect that the specific external device is connected, waiting until the output voltage of the secondary battery becomes a simple startup voltage;
In response to detecting that the specific external device is connected by the detection step, the current flowing from the input terminal to the secondary battery from the first current to the current control means is changed from the first current to the current control means. Causing the control means to execute a step of switching to a second current having a large value,
The transfer program causes the control means to execute a step of transferring the application program to the working storage means after the control program is executed.
The simple startup voltage is a boot program determined from the power consumed by the control means while the control means executes the transferring step and the operating voltage.
JP2007225832A 2007-08-31 2007-08-31 Mobile communication terminal, startup method, and boot program Expired - Fee Related JP5162188B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007225832A JP5162188B2 (en) 2007-08-31 2007-08-31 Mobile communication terminal, startup method, and boot program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007225832A JP5162188B2 (en) 2007-08-31 2007-08-31 Mobile communication terminal, startup method, and boot program

Publications (2)

Publication Number Publication Date
JP2009060717A JP2009060717A (en) 2009-03-19
JP5162188B2 true JP5162188B2 (en) 2013-03-13

Family

ID=40555933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007225832A Expired - Fee Related JP5162188B2 (en) 2007-08-31 2007-08-31 Mobile communication terminal, startup method, and boot program

Country Status (1)

Country Link
JP (1) JP5162188B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630592B2 (en) 2009-04-14 2014-01-14 Qualcomm Incorporated System and method for triggering a wireless connection
JP5661041B2 (en) 2009-10-08 2015-01-28 レノボ・イノベーションズ・リミテッド(香港) Portable terminal device, power supply system, power supply method to portable terminal device, and power supply program
JP2012128769A (en) * 2010-12-17 2012-07-05 Toshiba Corp Memory system
JP5708481B2 (en) * 2011-02-07 2015-04-30 株式会社Jvcケンウッド Mobile terminal, data acquisition method and program
CN103064489B (en) * 2011-10-21 2016-03-30 华为终端有限公司 A kind of method and terminal of carrying out internal circuit selection according to USB interface state
JP5997442B2 (en) * 2011-12-22 2016-09-28 株式会社アコーズ Health management system consisting of exercise meter and personal computer
KR101844287B1 (en) * 2012-02-03 2018-04-02 삼성전자 주식회사 Method and apparatus for charging battery
JP6010995B2 (en) * 2012-04-17 2016-10-19 ソニー株式会社 Charging device, charging device control method, electric vehicle, power storage device, and power system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3427341B2 (en) * 1997-03-14 2003-07-14 株式会社ケンウッド Charge control circuit
JP4131844B2 (en) * 2003-09-10 2008-08-13 京セラ株式会社 Mobile device
JP4522738B2 (en) * 2004-03-31 2010-08-11 京セラ株式会社 Power-on reset device and electronic device
JP3963470B2 (en) * 2004-11-09 2007-08-22 株式会社東芝 Mobile terminal and control method of the terminal
JP2007068333A (en) * 2005-08-31 2007-03-15 Sony Corp Power supply dedicated device, terminal, power supply system, and power supply method

Also Published As

Publication number Publication date
JP2009060717A (en) 2009-03-19

Similar Documents

Publication Publication Date Title
JP5162188B2 (en) Mobile communication terminal, startup method, and boot program
JP5162187B2 (en) Mobile terminal and activation method
US8055311B2 (en) Mobile communication terminal driven by power received from secondary battery, charge mode switching method and charge mode switching program executed in mobile communication terminal
CN101330336A (en) Device Adaptive Connection Establishment Method and System for Mobile Terminal
EP3133520B1 (en) Communication apparatus, method for controlling the same, and program
CN104111719A (en) Method and device for controlling battery to be disconnected from main equipment
US8606201B2 (en) Mobile communication terminal, and method and program for switching transmission power
CN112119565A (en) Power polarity detection for accessory mode change
JP6117965B1 (en) Portable information terminal cover and portable information terminal program
JP2007148937A (en) Portable information terminal
JP2011034306A (en) Information processor and power supply control method
JP3869683B2 (en) Rechargeable telephone terminal power supply control device
CN109391766A (en) Electronic device and its control method and recording medium
CN107734316A (en) Portrait layout projecting method and terminal device
CN103762390A (en) Charging method and action electronic device
JP4645145B2 (en) The camera module
CN106713705A (en) Communication apparatus and control method for the communication apparatus
JP5188843B2 (en) Mobile communication terminal
US8392131B2 (en) Portable electronic device and method for controlling the same
JP2005244633A (en) Cradle
JP2005124317A (en) Bus powered device
KR200350310Y1 (en) mult-function device for USB
JP2006085248A (en) Mobile device with host function
JP5604134B2 (en) Portable electronic device and device system
JP5698063B2 (en) Mobile terminal and program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101014

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120124

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120326

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: 20121127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121217

R150 Certificate of patent or registration of utility model

Ref document number: 5162188

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20151221

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees