A kind of power-supply management system and methodTechnical field
The present invention relates to field of power management, be meant power source charges management system and method especially.
Background technology
Portable electron device adopts rechargeable battery powered usually; Yet existing portable electron device (like mobile phone) function is more and more, and corresponding power consumption is also increasing, and the power-on time of battery is just short more like this; Therefore need frequent charging, so increased the charging times of battery.And present normally used lithium battery has useful life, is in particular in the discharging and recharging on the number of times of battery, and promptly every battery all has certain number of times that discharges and recharges, after surpassing then the accumulate performance of battery will seriously descend, at this moment just need to have changed rechargeable battery.Therefore, to the use of mobile phone, how to prolong the useful life of rechargeable battery, the mode that discharges and recharges number of times that reduces battery effectively becomes more and more important.
Chinese patent CN101917032A discloses the method for a kind of portable terminal and battery charge thereof; Said method comprises: when having detected the external power supply access; Measure earlier the electric weight of battery, the size of more said afterwards electric weight and the charging decision gate limit value that is provided with in advance.When said electric weight during less than charging decision gate limit value; Triggering charge control module connects external power supply and battery; Begin the charging of said battery; Realized whether charging thus according to the state of charge decision of battery self; Effectively avoid battery is carried out the unhelpful charging operations of poor efficiency, reduced the loss of battery self, improved the charging cycle life-span of battery; Reduced the wasting of resources of electric energy, promoted energy utilization rate with the heat energy form.But still there is following deficiency in the method: (1) need use complicated algorithm battery electric quantity is calculated when judging whether battery charged, and has increased difficulty and the operand realized; (2) when the control charging is effective or invalid; Just simply open or close charge control module; Like this when external external power source or USB; The battery that remains for system's power supply; Particularly when using USB to carry out transfer of data; In fact simultaneously still battery is charged, therefore be actually the charging times that has reduced battery, and increased the frequency of utilization of battery.
Summary of the invention
The object of the invention is to have offered a kind of power-supply management system and method; In order to solve the available technology adopting battery electric quantity is that the deterministic process that causes of basis for estimation is comparatively complicated, and when having external power source to insert according to battery-powered and cause the problem that cell charging times reduces and the battery frequency of utilization increases.
For realizing above-mentioned purpose, a kind of power-supply management system of embodiment of the present invention comprises:
External power interface is in order to be connected with external power supply;
Power management module is in order to manage power supply;
Current control device is connected with external power interface and power management module, is used to control the charging current size;
Current sense resistor is connected with the output of current control device, and the two ends of this current sense resistor are connected with power management module, and power management module detects the size of charging current through this current sense resistor;
Switching device is connected with an end of current sense resistor, and is connected with the system of power management module power supply input port, and the control that is subjected to power management module is to break off or closure;
Battery module is connected with an end of switching device, and is connected with power management module;
Signal processing module is connected with power management module, is supplied power by power management module;
Wherein, When power management module has detected the external power source access; Whether the voltage of measuring battery module is lower than preset charge initiation thresholding; If battery module voltage is higher than the charge initiation thresholding; Then power management module is through the control switch device; The charge closing electric current flows to the path of battery module, stops charging battery module, and uses external power source that system is supplied power.
According to above-mentioned principal character; This power-supply controller of electric spare is a triode; Its emitter is connected with the output of external power source interface; Collector electrode is connected with current sense resistor; And base stage is connected with power management module; Power management module is through the voltage of control base stage, thereby the size of current that emitter flows to collector electrode is controlled.
According to above-mentioned principal character, this switching device is MOSFET, and its grid is connected with power management module, and power management module is controlled the switch of MOSFET through the high-low level of control grid.
According to above-mentioned principal character,, then battery module is charged, and system is supplied power by external power source through external power supply if the voltage of battery module is lower than preset charge initiation threshold voltage.
According to above-mentioned principal character, when the external power supply electricity shortage, battery module is supplied power to system through switching device as accessory power supply.
For realizing above-mentioned purpose, the present invention provides a kind of method for managing power supply, is applied to have the electronic installation of rechargeable battery, and this method comprises the steps:
Whether lasting detection has external power source to insert;
If any, system detects charged battery voltage, judges whether charged battery voltage is lower than predefined charge initiation threshold voltage;
Voltage like rechargeable battery is higher than the charge initiation thresholding, and then the charge closing electric current flows to the path of rechargeable battery, stops the rechargeable battery charging, and uses external power source that system is supplied power.
According to above-mentioned principal character,, then rechargeable battery is charged, and system is supplied power by external power source through external power supply if the voltage of rechargeable battery is lower than preset charge initiation threshold voltage.
According to above-mentioned principal character, when the external power supply electricity shortage, rechargeable battery is supplied power to system as accessory power supply.
Compared with prior art; The voltage of the present invention through adopting rechargeable battery is as the foundation that judges whether rechargeable battery is charged; Determination methods is comparatively simple; Simultaneously when having external power source to insert; Use external power source as much as possible; Thereby avoid reducing the charging times of rechargeable battery, thereby prolonged the useful life of rechargeable battery, also can reduce the frequency of utilization of rechargeable battery simultaneously.
Description of drawings
Fig. 1 is that the circuit of the power-supply management system of embodiment of the present invention connects sketch map.
Fig. 2 is the flow chart of the method for managing power supply of embodiment of the present invention.
Fig. 3 is the flow chart that the user is provided with the charge initiation threshold voltage in implementation procedure of the present invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the invention is elaborated.
See also shown in Figure 1, for the power-supply management system of embodiment of the present invention comprises:
External power interface 10; In order to be connected with external power supply; In the specific implementation; This externalpower source interface 10 can be connected with charger; Also can be connected with USB plug (not shown); Wherein thisexternal power interface 10 comprisespower line 100 anddata wire 101, and whereinpower line 100 is connected with the power supply signal line of USB plug with charger, anddata wire 101 is to be connected with the data signal line of USB plug;
Power management module 11 is in order to manage power supply;
Current control device 12; Be connected withexternal power interface 10 andpower management module 11; Be used to control the charging current size; In the specific implementation; Thiscurrent control device 12 is a triode; The emitter of this triode is connected with thepower line 100 of externalpower source interface 10; Collector electrode is connected withcurrent sense resistor 13; And base stage is connected with the port one 10 ofpower management module 11; According to the characteristic of triode, the voltage swing of size of current and base stage that flows through emitter is proportional, sopower management module 11 is through the voltage of port one 10 control triode base stages; Thereby the size of current that emitter is flow to collector electrode is controlled, and promptly controls the size of charging current;
Current sense resistor 13; Be connected with the output (being the collector electrode of triode) ofcurrent control device 12; And the two ends of thiscurrent sense resistor 13 are connected with 112 with the port one 11 ofpower management module 11, and sopower management module 11 is through the size of thesecurrent sense resistor 13 detection charging currents;
Switching device 14 is connected with an end ofcurrent sense resistor 13, and is connected with the system ofpower management module 11 powersupply input port 113, and the control that is subjected topower management module 11 is to break off or closure; In the specific implementation; Thisswitching device 14 is a MOSFET; Its grid is connected with the port one 14 ofpower management module 11;Power management module 11 is controlled the switch of MOSFET through the high-low level of control grid; And the source electrode of this MOSFET is connected with an end ofcurrent sense resistor 13 and with system's powersupply input port 113 ofpower management module 11; Drain electrode then is connected (holding the back details) withbattery management module 15; For ease of explanation; Fig. 1 also will drain and source electrode between equivalent diode Q illustrate, its effect is held the back and is detailed;
Battery module 15 is connected with an end (i.e. drain electrode) ofswitching device 14, and is connected with the port one 15 ofpower management module 11, and sopower management module 11 is through the voltage of these port one 15detection battery modules 15;
Signal processing module 16 is connected with the port one 16 ofpower management module 11, and in the specific implementation, as when being applied on the mobile phone, thissignal processing module 16 is the baseband chip of mobile phone;
Wherein, Whenpower management module 11 has detected the external power source access; Whether the voltage of measuringbattery module 15 is lower than preset charge initiation thresholding; Ifbattery module 15 voltages are higher than the charge initiation thresholding; Thenpower management module 11 is throughcontrol switch device 14; The charge closing electric current flows to the path ofbattery module 15, stopsbattery module 15 chargings, and uses external power source that system is supplied power.
In addition; If the voltage ofbattery module 15 is lower than preset charge initiation threshold voltage, thenpower management module 11 is opened the path that charging current flows tobattery module 15 throughcontrol switch device 14; Through external powersupply battery module 15 is charged, by external power source system is supplied power simultaneously.And when the external power supply electricity shortage;Battery module 15 is supplied power to system throughswitching device 14 as accessory power supply; Be system's powersupply input port 113 that drain electrode and equivalent diode Q source electrode between of electric current through MOSFET ofbattery module 15 flows topower management module 11, thereby supply power for system.
See also shown in Figure 2ly, be the flow chart of the method for managing power supply of embodiment of the present invention, this method comprises the steps:
S200: whether lasting detection has external power source to insert;
S201: if any, system detects charged battery voltage;
S202: judge whether charged battery voltage is lower than predefined charge initiation threshold voltage;
S203: the voltage like rechargeable battery is higher than the charge initiation thresholding, and then the charge closing electric current flows to the path of rechargeable battery, stops the rechargeable battery charging, and uses external power source that system is supplied power;
S204:, then rechargeable battery is charged, and system is supplied power by external power source through external power supply if the voltage of rechargeable battery is lower than preset charge initiation threshold voltage.
In addition, when the external power supply electricity shortage, rechargeable battery is supplied power to system as accessory power supply.
The flow process that is provided with for the charge initiation thresholding; Can consult shown in Figure 3; Specifically by in the setup menu of the electronic installation (like mobile phone or digital camera etc.) that uses rechargeable battery, adding rechargeable battery charge initiation thresholding submenu is set by the user; The threshold voltage that begins to charge is set by the user; Characteristic according to rechargeable battery (like lithium battery); The scope that the is provided with design of charge initiation threshold voltage is at 3.7V-4.2V; If the magnitude of voltage (temporarily being kept among the variable TEMP) of user's input exceeds this scope; Then point out user's input error; If the magnitude of voltage of user's input is in this scope; Then point out the user to click acknowledgement key, and this input value is kept among the variable THRD.
Be understandable that, concerning those of ordinary skills, can be equal to replacement or change according to technical scheme of the present invention and inventive concept thereof, and all these changes or replacement all should belong to the protection range of the appended claim of the present invention.