Background technology
Consult shown in Figure 1ly, be the electric power system square of portable electronic devices in the prior art 1.Portable electronic devices 1 mainly comprises supply of electric power circuit and circuit system 2, and the supply of electric power circuit comprises external power source and internal power source 3.The external power source is that an interchange turns direct current transducer, sees through an electric connector 4 and is electrically coupled to the supply of electric power circuit, supplies a direct current electric power to circuit system 2.Internal power source 3 is battery module, to circuit system 2, and can be used as the UPS in external power source in order to supply electric power in the time can't obtaining external power, avoids the electric power in external power source to interrupt suddenly.
The supply of electric power time in external power source can be considered infinitely great, and internal power source 3 only has fixing capacitance, and its supply of electric power time is along with power output changes.Therefore, portable electronic devices 1 can possess at least two kinds of power modes usually: external power pattern and internal power pattern.When using the external power source that electric power is provided, the circuit system 2 of portable electronic devices 1 can switch to the external power pattern, operates with maximum power, and portable electronic devices 1 is operated with best efficiency.Simultaneously, the electric power of external power input is capable of bypass to a charging device 5, and seeing through charging device 5 provides suitable voltage and electric current that inner electric power source 3 is charged.
When the output power in external power source interrupts, provide electrical power to circuit system 2 by internal power source 3, circuit system 2 can switch to the internal power pattern, operates with relatively low usefulness, reduce power consumption, to prolong the internal power 3 supply of electric power times of source.
About the switching of external power pattern and internal power pattern, circuit system 2 is that whether input electric power switches according to the external power source.Circuit system 2 for example with charging device, judges whether electric connector 4 has the electric power input usually with a detecting loop.If the unregulated power input then represents without external power, and internal power source 3 need namely can not continue output power through switching.If electric connector 4 has the electric power input, then representative has the external power input, and internal power source 3 can stop output power because of bias relation.
In order to prolong the time of using out of doors, usually can additionally provide electric power with an external power bag (External Power Pack), the deficiency in the time of can't using interchange to turn direct current transducer as the external power source to replenish.The form of external power bag comprises power brick (BatteryPack), fuel cell or solar cell, wherein the capacitance of power brick (Battery Pack) and fuel cell turns direct current transducer still for limited with respect to interchange, and solar cell is not enough to the power consumption of independent system circuit 2, only assisting as the internal power source.Yet, the external power bag still by electric connector 4 input electric powers to circuit system 2, circuit system 2 is judged as it with exchanging turns the identical external power source of direct current transducer, and continue to operate with maximum efficiency.The user is the power mode of switched system circuit 2 voluntarily, just can make external power bag performance ceiling effect.If the user forgets switching, circuit system 2 will operate with the power mode of maximum efficiency, and consumes rapidly the electric power of external power bag, and has shortened significantly the service time of external power bag.
Embodiment
See also Fig. 2 and shown in Figure 3, be the disclosed a kind of electronic installation 1000 of detecting external power source Switching power pattern of the embodiment of the invention, this electronic installation 1000 comprises a supply of electric power and circuit for detecting 100 and a circuit system 200.Supply of electric power and circuit for detecting 100 be in order to receiving the outside direct current power in an external power source, and transmit electric power to circuit system 200.Supply of electric power and circuit for detecting 100 are detected the electric power source form of external power simultaneously, transmit a detecting result to circuit system 200.Circuit system 200 receives the detecting result, can automatically switch power mode, uses to prolong the service time that circuit system 200 uses the external power source.
Consult Fig. 2 and shown in Figure 3, circuit system 200 is in order to provide the major function of electronic installation 1000, circuit system 200 comprises central processing unit a 210 (CentralProcessor Unit at least, CPU), a system chipset 220, an Installed System Memory 230, a basic input output system 240 (BasicInput/Output System, BIOS), a keyboard controller 250, a stationary storage medium 260 (FixedStorage Media), a display interface 270, a display 280, an input unit 290.Electronic installation 1000 loads an operating system (Operation System, OS), is stored in stationary storage medium 260.Aforementioned system chipset 220 comprises South Bridge chip and north bridge chips, in order to provide bus make Installed System Memory 230, BIOS 240, keyboard controller 250, stationary storage medium 260, and display interface 270 see through system chipset 220 and be electrically coupled to central processing unit 210, to carry out transfer of data.Input unit 290 is electrically coupled to keyboard controller 250.In compact electronic device 1000, for example in PDA or PND, Installed System Memory 230 and stationary storage medium 260 can be incorporated into single flash memory module, see through the setting of Memory Controller Hub or OS, flash memory module is divided into Installed System Memory 230 in order to the load and execution program, and stored the stationary storage medium 260 of OS and application program.
Circuit system 200 has an internal power pattern and a plurality of external power pattern at least, is stored in stationary storage medium 260 or BIOS 240, uses for central processing unit 210 and is loaded on Installed System Memory 230.Central processing unit 210 is according to the detecting result of supply of electric power and circuit for detecting 100, switch internal power pattern and a plurality of external power pattern wherein one, change the operational effectiveness of circuit system 200.
Consult shown in Figure 3ly, supply of electric power and circuit for detecting 100 comprise an electric connector 110, a battery module 120, a charging device 130, a current potential detector 140, an embedded controller 150.
Consult shown in Figure 3ly, electric connector 110 is Direct current power source socket (DC Jack), and the one end is used for a plug and inserted, so that an external power source is electrically coupled to electric connector 110, receives direct current and also is sent to supply of electric power and circuit for detecting 100.The other end of electric connector 110 is electrically coupled to circuit system 200, in order to transmit direct current to DC-DC voltage conversion circuit 310.DC-DC voltage conversion circuit 310 distribution electric power are input as a plurality of direct currents outputs, and further each galvanic voltage of exporting of conversion is appropriate voltage, and are sent to each electronic building brick in the circuit system 200.
Consult shown in Figure 3ly, battery module 120 comprises one or a plurality of battery, and each battery can be Ni-MH battery, lithium ion battery or lithium polymer battery.Battery module 120 has a battery output 121 and a battery earth terminal 122, battery output 121 is electrically coupled to circuit system 200, in order to provide a direct current electric power to circuit system 200, wherein the direct current power of battery output 121 outputs of battery module 120 possesses a battery module current potential.
Consult shown in Figure 3ly, electronic installation 1000 more comprises the DC circuit that always circulates (DC-DC Circuit) 310, in order to receive electric power from electric connector 110 or battery module 120.DC-DC circuit 310 comprises a plurality of DC-DC electric pressure converter (not shown), one end of each DC-DC electric pressure converter is parallel to electric connector 110, the other end is electrically coupled to respectively central processing unit 210, system chipset 220, Installed System Memory 230, basic input output system 240, keyboard controller 250, stationary storage medium 260, display interface 270, display 280, and input unit 290, with changing voltage and distribute through the direct current of changing voltage each electronic building brick to circuit system 200.
Consult shown in Figure 3, charging device 130 have a charging input end 131 and one the charging output 132.Charging input end 131 is electrically coupled to electric connector 110, and charging output 132 is electrically coupled to the battery output 121 of battery module 120.Charging device 130 receives electric power with charging input end 131 from electric connector 110, after voltage transitions and Current Control, by the charging current of the standby charging voltage of charging output 132 output devices.Charging voltage is greater than the battery module output potential of battery module 120, so that charging device 130 can to battery module 120 chargings, be controlled the electric current to battery module 120 chargings, to charge safely simultaneously.
Consult shown in Figure 3, current potential detector 140 have one the detecting input 141 and one the detecting output 142.Detecting input 141 is electrically coupled to electric connector 110, in order to capture the current potential of electric connector 110, and detecting output 142 is electrically coupled to embedded controller 150, and the current potential of this electric connector 110 that is captured with output potential detector 140 is to embedded controller 150.On implementation, because current potential size be analog signal, so current potential detector 140 is an analog-to-digital converter, exports in order to current potential is converted to digital signal, and is embedded into 150 receptions of formula controller and processes.
Consult shown in Figure 3ly, the current potential that embedded controller 150 captures in order to receive current potential detector 140, and produce a detecting result with specific communications protocol coding is sent to circuit system 200.Generally speaking, embedded controller 150 is to be electrically coupled to System on Chip/SoC, to meet the communications protocol of South Bridge chip group bus standard or north bridge chipset bus standard, the current potential of the electric connector 110 of transmission current potential detector 140 outputs is to north bridge chips or the South Bridge chip of system chipset 220, be sent to central processing unit 210 by system chipset 220 again, carry out corresponding action for central processing unit 210.
Provide the electric power source of outside direct current power to comprise that interchange turns dc rectifier, power brick (Battery Back), fuel cell, solar cell.The normal output potential of each electric power source all possesses a potential region.The normal output of electric power source can through preseting, make the neither overlapping of potential region of different electric power source.Turn dc rectifier as example take interchange, the current potential of its output about 16 to 19Volt; The output potential interval of solar cell about 14 to 16Volt; The output potential of fuel cell is approximately 12 to 14Volt; The output potential interval of power brick is roughly identical with battery module, about 8 to 12Volt.
Consult Fig. 4 and shown in Figure 5, the minimum enforcement important document of the embodiment of the invention is selectively to adopt one first electric power source 410 and the outside direct current power of one second electric power source, 420 supplies, or do not adopt outside direct current power, and directly supply electric power with the battery module 120 of inside.Aforementioned the first electric power source 410 and the second electric power source 420 can be to exchange and turn dc rectifier, power brick (BatteryBack), fuel cell or solar cell, and the current potential of the first electric power source 410 outputs drops on one first potential region, the current potential of the second electric power source 420 output drops on one second potential region, and the first potential region and the second potential region be not for overlapping.
In addition, establish one first diode 123 between the battery output 121 of battery module 120 and the circuit system 200, the forward bias voltage drop direction of this first diode 123 is towards circuit system 200 by battery output 121.Establish one second diode 111 between electric connector 110 and the circuit system 200, the forward bias voltage drop direction of this second diode 123 is towards circuit system 200 by electric connector 110.The first diode 123 and the second diode 111 usefulness are avoided a higher output feedback electric power lower to voltage of voltage simultaneously so that a relatively high meeting of output voltage is only arranged to circuit system 200 output powers in battery module 120 and the external power source.
Aforesaid the first potential region and the second potential region system write first in this embedded controller 150, and the first electric power source 410 or the second electric power source 420 are selectively to be electrically coupled to electric connector 110.
When the first electric power source 410 or the second electric power source 420 are electrically coupled to electric connector 110, current potential detector 140 can be by the current potential of detecting input 141 acquisition electric connectors 110, after simulation and digital translation, to this embedded controller 150, embedded controller 150 is this current potential and the first potential region and the second potential region can be compared by the current potential of current potential output 142 output institute acquisition electric connectors 110.
When the current potential of this electric connector 110 drops on the first potential region, represent the first electric power source 410 and be electrically coupled to electric connector 110, the detecting result that the current potential of embedded controller 150 output electric connectors 110 drops on the first potential region is to circuit system 200, makes circuit system 200 switch to the first external power pattern for central processing unit 210 according to the characteristic of the first electric power source 410.
When the current potential of this electric connector 110 drops on the second potential region, represent the second electric power source 420 and be electrically coupled to electric connector 110, the detecting result that the current potential of embedded controller 150 output electric connectors 110 drops on the second potential region is to circuit system 200, makes circuit system 200 switch to the second external power pattern for central processing unit 210 according to the characteristic of the second electric power source 420.
When the current potential of electric connector 110 is lower than the first potential region and the second potential region, represent the power shortage of the first electric power source 410 or the second electric power source 420 with the supply electricity needs.This moment, system supplied electric power by battery module 120, and then circuit system 200 central processing units 210 make circuit system 200 switch to the internal power pattern.
When the current potential of electric connector 110 is zero, represent the first electric power source 410 or the second electric power source 420 does not have electric property coupling electric connector 110.This moment, system supplied electric power by battery module 120, and then central processing unit 210 makes circuit system 200 switch to the internal power pattern.
Charging device 130 is electrically coupled to embedded controller 150, when the first electric power source 410 or the second electric power source 420 external power sources turn direct current transducer for exchanging, and be electrically coupled to electric connector 110, embedded controller 150 can start 130 pairs of battery modules 120 of charging device and charge.
Consult Figure 6 and Figure 7, the keyboard controller 250 of circuit system 200 itself also is an embedded controller, therefore embedded controller 150 is to be removed, make the detecting output 142 of current potential detector 140 directly be electrically coupled to keyboard controller 250, compare output potentials, the first potential region, reach the detecting result of the second potential region to circuit system 200 by keyboard controller 250 again.
In the present invention, embedded controller 150 or keyboard controller 250 must not need to compare output potential, the first potential region, reach the second potential region.The first potential region and the second potential region can be recorded in the stationary storage medium 260 of circuit system 200, when system boot by in the central processing unit 210 loading system internal memories 230.Need to being encoded and be sent to the central processing unit 210 of circuit system 200 current potential of current potential detector output of embedded controller 150 or keyboard controller 250.Central processing unit 210 is compared output potentials, the first potential region, is reached the second potential region, uses to determine that output potential is positioned at the first potential region or the second potential region.Central processing unit 210 judges that by the first potential region, the second potential region outside direct current power from the first electric power source 410 or the second electric power source 420, uses the power mode of Adjustment System circuit 200.
Above explanation with the first electric power source, the second electric power source, the first potential region, and the second potential region describe, in fact selectable electric power source can be more than two, for example with interchange turn dc rectifier, power brick, fuel cell, and solar cell as the first electric power source, the second electric power source, the 3rd electric power source, and the 4th electric power source, and possess respectively nonoverlapping the first potential region, the second potential region, the 3rd potential region, and the 4th potential region.