CN104133512B - The method and apparatus of electric supply system, control Power supply - Google Patents
The method and apparatus of electric supply system, control Power supply Download PDFInfo
- Publication number
- CN104133512B CN104133512B CN201410302890.1A CN201410302890A CN104133512B CN 104133512 B CN104133512 B CN 104133512B CN 201410302890 A CN201410302890 A CN 201410302890A CN 104133512 B CN104133512 B CN 104133512B
- Authority
- CN
- China
- Prior art keywords
- power
- arbitrary charged
- charged power
- resistance
- power supply
- 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.)
- Active
Links
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The method and apparatus that the disclosure is directed to a kind of electric supply system, control Power supply, belongs to electronic information technical field. The method is applied in the terminal with electric supply system, and electric supply system at least comprises PMU, CPU, resistance, ADC and IIC; PMU comprises the first predetermined number LDO and the second predetermined number DCDC, and LDO and DCDC be for to terminal power supply, and each LDO and each DCDC all connect one and have the resistance of definite resistance value; The resistance parallel connection that ADC connects with each LDO and each DCDC, for detection of the voltage difference of each resistance; IIC connects ADC and CPU, is sent to CPU for the voltage difference at each resistance two ends that ADC is detected. The method that the disclosure provides is obtained the current value of arbitrary charged power by CPU, and obtain the current threshold of arbitrary charged power, and then according to the current threshold of the current value of arbitrary charged power and arbitrary charged power, the power supply of arbitrary charged power is controlled, thereby provide, one is more intelligent, power supply mode flexibly.
Description
Technical field
The disclosure relates to electronic information technical field, and particularly a kind of electric supply system, control power supply supplyThe method and apparatus of electricity.
Background technology
Along with the development of electronic information technology, mobile terminal becomes requisite article in people's life gradually.Power supply is as the important component part of mobile terminal, and the power supply capacity of power supply directly affects the property of mobile terminalCan, and the performance of mobile terminal is the important references index that user considers mobile terminal in the time buying mobile terminal,Therefore, how to control Power supply, improve the performance of mobile terminal, become those skilled in the art and comparatively closeThe problem of note.
At present, electric supply system is by PMU (PowerManagementUnit, power management list mostlyUnit) and CPU (CentralProcessingUnit, central processing unit) dimerous, wherein, PMUBe connected by bus with CPU, and in PMU, comprise LDO (LowDropOut, the low pressure of somePoor) linear voltage regulator and DCDC (DirectCurrentDirectCurrent, direct current) converter, eachLDO and DCDC power to terminal as a road power supply. Represent low pressure difference linearity with LDO in this applicationVoltage-stablizer, represents direct current transducer with DCDC. Based on above-mentioned electric supply system, correlation technique is being controlledWhen Power supply, can be in the following way: first CPU sends power supply instruction to PMU, PMU is receivingAfter the power supply instruction sending to CPU, choose randomly a road power supply according to power supply instruction, and then control shouldRoad power supply is powered to terminal.
Realizing in process of the present disclosure, inventor finds that correlation technique at least exists following problem:
Correlation technique is controlling when Power supply, owing to choosing randomly a road power supply according to power supply instruction, andControl this road power supply and power to terminal, but the current value of Dang Gai road power supply is larger, to such an extent as to approach or exceedWhen the rated current of this road power supply, correlation technique will be controlled this road power supply and power to terminal, therefore, relevantThe mode of technology control Power supply is intelligence not, and flexibility is not high.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of electric supply system, controls power supplyThe method and apparatus of power supply.
According to the first aspect of disclosure embodiment, a kind of electric supply system is provided, described Power supply isSystem at least comprises PMU, CPU, resistance, ADC (AnalogtoDigitalConverter, analog-digital converter)And IIC (Inter-IntegratedCircuit, IC bus);
Wherein, described PMU comprises the first predetermined number LDO and the second predetermined number DCDC, instituteState LDO and described DCDC for to the power supply of described terminal, and each LDO and each DCDC all connectOne has the resistance of definite resistance value;
The resistance parallel connection that described ADC connects with each LDO and each DCDC, for detection of each resistanceVoltage difference;
Described IIC connects described ADC and described CPU, for each resistance that described ADC is detectedThe voltage difference at two ends is sent to described CPU.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described Power supply isSystem also comprises: management interface SPMI;
Described SPMI connects described PMU and described CPU, obtains by described SPMI for described CPUGet arbitrary LDO in described PMU and the magnitude of voltage of DCDC.
According to the second aspect of disclosure embodiment, provide a kind of method of controlling Power supply, described methodBe applied to the terminal with electric supply system, the electricity of described electric supply system as described in above-mentioned first aspectSource power supply system; Described method comprises:
Obtain the current value of arbitrary charged power;
Obtain the current threshold of described arbitrary charged power;
According to the current threshold of the current value of described arbitrary charged power and described arbitrary charged power to describedThe power supply of one charged power is controlled.
In conjunction with second aspect, in the possible implementation of the first of second aspect, described in obtain arbitrary quiltThe current value of control power supply, comprising:
By described arbitrary charged power, corresponding ADC obtains the resistance two of connecting with described arbitrary charged powerThe voltage difference of end;
According to the voltage difference at the resistance two ends of connecting with described arbitrary charged power and described arbitrary charged power stringThe resistance of connection obtains the current value of described arbitrary charged power.
In conjunction with the possible implementation of the first of second aspect, in the possible realization of the second of second aspectIn mode, described according to the current threshold of the current value of described arbitrary charged power and described arbitrary charged powerPower supply to described arbitrary charged power is controlled, and comprising:
The current threshold of the current value of described arbitrary charged power and described arbitrary charged power is compared;
According to comparative result, the power supply of described arbitrary charged power is controlled.
In conjunction with the possible implementation of the second of second aspect, in the third possible realization of second aspectIn mode, describedly according to comparative result, the power supply of described arbitrary charged power is controlled, being comprised:
If the current value of described arbitrary charged power, higher than the current threshold of described arbitrary charged power, passes throughDescribed SPMI controls described arbitrary charged power and reduces delivery.
According to the third aspect of disclosure embodiment, provide a kind of device of controlling Power supply, described deviceBe applied to the terminal with electric supply system, the electricity of described electric supply system as described in above-mentioned first aspectSource power supply system; Described device comprises:
The first acquisition module, for obtaining the current value of arbitrary charged power;
The second acquisition module, for obtaining the current threshold of described arbitrary charged power;
Control module, for according to the electricity of the current value of described arbitrary charged power and described arbitrary charged powerStream threshold value is controlled the power supply of described arbitrary charged power.
In conjunction with the third aspect, in the possible implementation of the first of the third aspect, described first obtains mouldPiece, comprising:
The first acquiring unit, for obtaining and described arbitrary quilt by ADC corresponding to described arbitrary charged powerThe voltage difference at the resistance two ends of control power supply series connection;
Second acquisition unit, for according to the voltage difference at the resistance two ends of connecting with described arbitrary charged power andThe resistance of described arbitrary charged power series connection obtains the current value of described arbitrary charged power.
In conjunction with the possible implementation of the first of the third aspect, in the possible realization of the second of the third aspectIn mode, described second acquisition unit, comprising:
Relatively subelement, for by the electricity of the current value of described arbitrary charged power and described arbitrary charged powerStream threshold value compares;
Control subelement, for the power supply of described arbitrary charged power being controlled according to comparative result.
In conjunction with the possible implementation of the second of the third aspect, the third possible realization side of the 3rdIn formula, described control subelement, for when the current value of described arbitrary charged power is higher than described arbitrary controlledWhen the current threshold of power supply, control described arbitrary charged power by described SPMI and reduce delivery.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By the resistance of the definite resistance of connecting on each LDO and each DCDC, and by with eachThe ADC of resistance parallel connection measures the voltage difference of each resistance, and then obtains the current value of arbitrary charged power, soThe confession to arbitrary charged power according to the current threshold of the current value of arbitrary charged power and arbitrary charged power afterwardsElectricity is controlled. Therefore, realized the confession to arbitrary charged power according to the current conditions of arbitrary charged powerElectricity is controlled, thereby a kind of mode of more intelligent, control Power supply that flexibility is higher is provided.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described,Can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in description and forms the part of this description, shows and meets the disclosureEmbodiment, and with description one be used from explain principle of the present disclosure.
Fig. 1 is according to the structural representation of a kind of electric supply system shown in an exemplary embodiment.
Fig. 2 is according to a kind of method flow diagram of controlling Power supply shown in an exemplary embodiment.
Fig. 3 is according to a kind of method flow diagram of controlling Power supply shown in an exemplary embodiment.
Fig. 4 is according to a kind of apparatus structure schematic diagram of controlling Power supply shown in an exemplary embodiment.
Fig. 5 is according to the structural representation of the first acquisition module shown in an exemplary embodiment.
Fig. 6 is according to the structural representation of the second acquisition module shown in an exemplary embodiment.
Fig. 7 is according to the block diagram of a kind of device of controlling Power supply shown in an exemplary embodiment.
Detailed description of the invention
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings. Retouching belowState while relating to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all enforcement sides consistent with the disclosureFormula. On the contrary, they be only with as some aspects that described in detail in appended claims, of the present disclosure mutuallyThe example of the apparatus and method that cause.
Disclosure embodiment provides a kind of electric supply system, and referring to Fig. 1, this electric supply system is applied toTerminal, this electric supply system at least comprises PMU, CPU, resistance, ADC and IIC;
Wherein, PMU comprises the first predetermined number low voltage difference line voltage-stablizer LDO and the second predetermined numberDirect current transducer DCDC, LDO and DCDC are for powering to terminal, and each LDO and each DCDCAll connect one and there is the resistance of definite resistance value; Particularly, the first predetermined number can be 5,10,20 etc., the present embodiment is not done concrete restriction to the first predetermined number. The second predetermined number can be 3,16,25 etc., the present embodiment is not done concrete restriction to the second predetermined number. The first predetermined number andTwo predetermined numbers can be identical, also can be different. In the time being each LDO and each DCDC series resistance,Can, by each LDO and the identical resistance of each DCDC series connection resistance, also can be each LDO and eachThe different resistance of DCDC series connection resistance, the present embodiment is not done concrete restriction to this. For with each LDOWith the resistance value of the resistance of each DCDC series connection can be 2 milliohms, 3 milliohms, 5 milliohms etc., this enforcement is notDo concrete restriction.
The resistance parallel connection that ADC connects with each LDO and each DCDC, for detection of the electricity of each resistancePressure reduction;
IIC connects ADC and CPU, sends for the voltage difference at each resistance two ends that ADC is detectedTo CPU. Wherein, IIC is a kind of multidirectional control bus, can multiple LDO or DCDC is connected to sameUnder individual bus structures, each LDO or DCDC can be used as the control source of real-time Data Transmission simultaneously. Due to IICBe to use holding wire minimum in various buses, and there is the merits such as the synchronous and arbitration of automatic addressing, many host clockThe bus of energy, and the computer system that uses IIC to design is convenient, flexible, volume is little, and therefore, IIC is by extensiveApplication. For example, iic bus can be applied in to electric supply system medium.
As a kind of optional embodiment, electric supply system also comprises: SPMI;
SPMI connects PMU and CPU, obtains arbitrary LDO of PMU for CPU by SPMIMagnitude of voltage with DCDC.
The electric supply system that disclosure embodiment provides, by connecting on each LDO and each DCDCThe resistance of a definite resistance, and measure the voltage difference of each resistance by the ADC in parallel with each resistance,And then obtain the current value of arbitrary charged power, then according to the current value of arbitrary charged power and arbitrary controlledThe current threshold of power supply is controlled the power supply of arbitrary charged power. Therefore, realized according to arbitrary controlledThe current conditions of power supply is controlled the power supply of arbitrary charged power, thus provide one more intelligent,The mode of the higher control Power supply of flexibility.
Fig. 2 is according to the flow chart of a kind of method of controlling Power supply shown in an exemplary embodiment, shouldMethod is applied to the terminal with electric supply system, this electric supply system power supply as shown in Figure 1 aboveElectric power system, the method that disclosure embodiment provides comprises the steps:
In step 201, obtain the current value of arbitrary charged power.
As a kind of optional embodiment, obtain the current value of arbitrary charged power, comprising:
Obtain the voltage at the resistance two ends of connecting with arbitrary charged power by ADC corresponding to arbitrary charged powerPoor;
According to the resistance of the voltage difference at the resistance two ends of connecting with arbitrary charged power and the series connection of arbitrary charged powerResistance is obtained the current value of arbitrary charged power.
In step 202, obtain the current threshold of arbitrary charged power.
In step 203, according to the current threshold pair of the current value of arbitrary charged power and arbitrary charged powerThe power supply of arbitrary charged power is controlled.
As a kind of optional embodiment, according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power, comprising:
The current threshold of the current value of arbitrary charged power and arbitrary charged power is compared;
According to comparative result, the power supply of arbitrary charged power is controlled.
As a kind of optional embodiment, according to comparative result, the power supply of arbitrary charged power is controlled,Comprise:
If the current value of arbitrary charged power, higher than the current threshold of arbitrary charged power, is controlled by SPMIArbitrary charged power reduces delivery.
The method that disclosure embodiment provides, determines for one by connecting on each LDO and each DCDCThe resistance of resistance, and measure the voltage difference of each resistance by the ADC in parallel with each resistance, and then obtainThe current value of arbitrary charged power, then according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power. Therefore, realized the electricity according to arbitrary charged powerStream situation is controlled the power supply of arbitrary charged power, thus provide that one is more intelligent, flexibilityThe mode of high control Power supply.
Fig. 3 is according to the flow chart of a kind of method of controlling Power supply shown in an exemplary embodiment, shouldMethod is applied to the terminal with electric supply system, this electric supply system power supply as shown in Figure 1 aboveElectric power system. The method of the control Power supply that as shown in Figure 3, disclosure embodiment provides comprises following stepSuddenly.
In step 301, obtain the current value of arbitrary charged power.
In the electric supply system providing due to the present embodiment, PMU comprises multiple LDO and multiple DCDC,Each LDO or DCDC all can be used as a road charged power and all can power to CPU, and each LDO andDCDC has rated current, again because each load in existing electric supply system is by parallelMode is linked in the charged power of every road, along with the application program of opening increases, and bearing on the charged power of every roadCarry and will increase, in this simultaneously, the current value of every road charged power also increases thereupon, and when arbitrary charged powerCurrent value while exceeding the load current value that this charged power allows, this charged power cannot normally be worked,Even can there is the danger of burning. Therefore,, in order better charged power to be managed, avoid controlled electricitySource is burnt because electric current is excessive, and CPU need to obtain the current value of arbitrary charged power in the present embodiment, entersAnd according to the current value of the arbitrary charged power getting, the power supply of arbitrary charged power is controlled.
About the mode of current value of obtaining arbitrary charged power, include but not limited to following steps:
The first step, obtains the resistance two of connecting with arbitrary charged power by ADC corresponding to arbitrary charged powerThe voltage difference of end;
For the first step, because the applied electric supply system Zhong Mei of the present embodiment road charged power is all with oneThe resistance series connection of individual definite resistance, an ADC all in parallel on the resistance of Qie Yumei road charged power series connection, because ofThis, by arbitrary charged power, corresponding ADC can obtain the electricity at the resistance two ends of connecting with arbitrary charged powerPressure reduction. Wherein, ADC is analog-digital converter, is the electronic component that is data signal by analog-signal transitions.Common analog-digital converter is the data signal that an input voltage signal is converted to an output. Due to numberItself does not have practical significance word signal, only represents a relative size, therefore any one analog-digital converterAll need one with reference to analog quantity as conversion standard, in the present embodiment with GND (ground, ground connection)Signal is as with reference to analog quantity. Wherein, GND signal is ground signalling, and the magnitude of voltage of this characterization is 0Volt.
Particularly, obtaining the resistance of connecting with arbitrary charged power by ADC corresponding to arbitrary charged powerWhen the voltage difference at two ends, include but not limited in the following way:
First, obtain the voltage signal at the resistance two ends of connecting with arbitrary charged power by ADC;
Secondly, by voltage signal and the GND signal at the resistance two ends of connecting with arbitrary charged power that getCompare, obtain the voltage difference at the resistance two ends of connecting with arbitrary charged power.
For example, arbitrary charged power is charged power 1, and the resistance of connecting with charged power 1 is R1, controlledThe ADC of power supply 1 correspondence is ADC1. Get the voltage signal difference at resistance R 1 two ends by ADC1For voltage signal 1 and voltage signal 2, by the voltage signal getting 1 and voltage signal 2 and GND signalCompare, the magnitude of voltage that obtains voltage signal 1 correspondence by comparison is 2 millivolts, voltage signal 2 correspondencesVoltage signal be 3 millivolts, by the magnitude of voltage subtraction at the two ends of the resistance R obtaining 1, can obtain electricityThe voltage difference at resistance R1 two ends is 1 millivolt.
Second step, according to the voltage difference at the resistance two ends of connecting with arbitrary charged power and arbitrary charged power stringThe resistance of connection obtains the current value of arbitrary charged power.
Because the resistance of connecting with arbitrary charged power has definite resistance, and logical in the above-mentioned first stepCross the voltage difference that ADC that arbitrary charged power is corresponding gets the resistance two ends of connecting with arbitrary charged power,Therefore, this step can obtain according to Ohm's law the current value of arbitrary charged power on the basis of above-mentioned steps.For example, arbitrary charged power is charged power 1, if the resistance value of the resistance of connecting with charged power 1 is 3 millisEurope, the voltage difference at the resistance two ends of connecting with charged power 1 is 6 millivolts, can obtain according to Ohm's lawThe current value of charged power 1 is 6 millivolts/3 milliohm=2 milliampere.
In step 302, obtain the current threshold of arbitrary charged power.
Wherein, the maximum allowing when the current threshold of arbitrary charged power is normally worked for arbitrary charged powerElectric current. The current threshold of arbitrary charged power can be 3 milliamperes, 6 milliamperes, 10 milliamperes etc., the present embodimentThe current threshold of arbitrary charged power is not done to concrete restriction. When the current value of arbitrary charged power is lower than appointingWhen the current threshold of one charged power, this control power supply can normally be worked; When the current value of arbitrary charged powerDuring higher than the current threshold of arbitrary charged power, not only cisco unity malfunction of this charged power, but also mayBurnt.
About definite method of the current threshold of arbitrary charged power, include but not limited to according to arbitrary controlled electricityThe determination of property parameter in source. Wherein, the performance parameter of arbitrary charged power comprises but is not limited to down arbitrary controlledThe maximum temperature and the load etc. that when the resistance of power supply, the work of arbitrary charged power, allow, the present embodiment is not to appointingThe performance parameter of one charged power is done concrete restriction.
For the ease of arbitrary charged power is managed, the current threshold of arbitrary charged power in the present embodimentValue is all stored in the storage medium of terminal, therefore, CPU in the time obtaining the current threshold of arbitrary charged power,Can from the storage medium of terminal, obtain. Wherein, the storage medium of terminal includes but not limited to flash memory, internal memoryDeng, the present embodiment is not done concrete restriction to the storage medium of terminal.
Alternatively, owing to comprising multiple LDO in PMU in applied electric supply system in the present embodimentAnd DCDC, and each LDO and DCDC all have corresponding current threshold, and therefore, for the ease of CPUGet rapidly the current threshold of arbitrary charged power, in the time of the current threshold of the each charged power of storage,The power supply mark of the current threshold of each charged power and arbitrary charged power can be stored in the lump. TherebyCan inquire about and obtain the current threshold that arbitrary charged power is corresponding according to the power supply mark of this arbitrary charged powerValue. Wherein, power supply mark can be model, the numbering of power supply etc. of power supply, and the present embodiment is not to power supply markKnow and do concrete restriction.
In step 303, the current threshold of the current value of arbitrary charged power and arbitrary charged power is carried outRelatively.
Because the threshold current of arbitrary charged power is to weigh the standard that can arbitrary charged power normally work,Therefore, all can normally work in order to ensure the arbitrary charged power in current electric supply system, pass throughAfter the current value of arbitrary charged power that above-mentioned steps gets and the current threshold of arbitrary charged power, canThe current threshold of the current value of arbitrary charged power and arbitrary charged power is compared.
In step 304, according to comparative result, the power supply of arbitrary charged power is controlled.
The current threshold of the current value of arbitrary charged power and arbitrary charged power is compared to comparative resultInclude but not limited to several as follows: the current value of arbitrary charged power lower than the current threshold of arbitrary charged power,The current value of arbitrary charged power equals the current threshold of arbitrary charged power and the current value of arbitrary charged powerHigher than current threshold of arbitrary charged power etc. For above-mentioned several comparative results, when arbitrary charged powerCurrent value is during less than or equal to the threshold current of arbitrary charged power, due to the current value of arbitrary charged power notExceed the maximum current that arbitrary charged power allows, therefore, this charged power can normally be worked, nowRegulate delivery without controlling this charged power, this charged power can be powered to terminal according to original delivery;When the current value of arbitrary charged power is during higher than the current threshold of arbitrary charged power, due to arbitrary charged powerCurrent value exceeded the maximum current that arbitrary charged power allows, therefore, this charged power can not be normalWork, now needs to control this charged power and reduces delivery.
Particularly, when the current value of arbitrary charged power is during higher than the current threshold of arbitrary charged power, CPUCan send by SPMI the power supply control instruction of the power supply mark of carrying arbitrary charged power to PMU, PMUAfter receiving the power supply control instruction of CPU transmission, according to the arbitrary charged power of power supply control instruction controlPower supply identify corresponding charged power and close the application program of some unlatching, make this charged power reduce power supplyAmount, can normally work. Wherein, SPMI is a bus in power-supply management system in the present embodiment,Connect PMU and CPU, can be used for transmitting the power supply control instruction that CPU sends to PMU.
For said process, for the ease of understanding, will at length explain with a concrete example belowExplanation.
Taking arbitrary charged power as charged power 1, it is example that the current threshold of charged power 1 is 5 milliamperes. IfThe current value that CPU gets charged power 1 is 3 milliamperes, by 3 milliamperes of the current values of charged power 1 and quilt5 milliamperes of the current thresholds of control power supply 1 compare, and are less than 5 milliamperes due to 3 milliamperes, therefore, and controlled electricityCan normally work in source 1, now regulate delivery without controlling charged power 1; If CPU gets controlledThe current value of power supply 1 is 6 milliamperes, the electric current by 6 milliamperes of the current values of charged power 1 with charged power 15 milliamperes of threshold values compare, and are greater than 5 milliamperes due to 6 milliamperes, and therefore, charged power 1 is work normallyDo, now CPU is by automatically controlled the confession that sends the power supply mark of carrying charged power 1 to PMU by SPMIInstruction processed, the power supply control instruction that PMU identifies at the power supply that carries charged power 1 that receives CPU transmissionAfterwards, close some application program according to power supply control instruction control charged power 1, make charged power 1Reduce delivery, thereby can normally work.
The method that disclosure embodiment provides, determines for one by connecting on each LDO and each DCDCThe resistance of resistance, and measure the voltage difference of each resistance by the ADC in parallel with each resistance, and then obtainThe current value of arbitrary charged power, then according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power. Therefore, realized the electricity according to arbitrary charged powerStream situation is controlled the power supply of arbitrary charged power, thus provide that one is more intelligent, flexibilityThe mode of high control Power supply.
Fig. 4 is according to a kind of device schematic diagram of controlling Power supply shown in an exemplary embodiment, forCarry out the method for the control Power supply described in arbitrary embodiment in the embodiment shown in above-mentioned Fig. 2 and Fig. 3.This application of installation is in the terminal with electric supply system, this electric supply system electricity as shown in Figure 1 aboveSource power supply system. With reference to Fig. 4, this device comprises the first acquisition module 401, the second acquisition modules 402 and controlMolding piece 403.
This first acquisition module 401 is configured to obtain the current value of arbitrary charged power;
This second acquisition module 402 is configured to obtain the current threshold of arbitrary charged power;
This control module 403 is configured to according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power.
With reference to Fig. 5, the first acquisition module 401 comprises the first acquiring unit 4011 and second acquisition unit 4012.
This first acquiring unit 4011 is configured to obtain with arbitrary by ADC corresponding to arbitrary charged powerThe voltage difference at the resistance two ends of charged power series connection;
This second acquisition unit 4012 is configured to according to the voltage at the resistance two ends of connecting with arbitrary charged powerThe resistance of poor and arbitrary charged power series connection obtains the current value of arbitrary charged power.
With reference to Fig. 6, second acquisition unit 4012 comprises comparison subelement 40121 and controls subelement 40122.
This comparison subelement 40121 is configured to the current value of arbitrary charged power and arbitrary charged powerCurrent threshold compares;
This control subelement 40122 is configured to according to comparative result, the power supply of arbitrary charged power be controlledSystem.
As a kind of optional embodiment, control subelement 40122 and be configured to the electricity when arbitrary charged powerFlow valuve during higher than the current threshold of arbitrary charged power, is controlled arbitrary charged power by SPMI and is reduced power supplyAmount.
The device that disclosure embodiment provides, determines for one by connecting on each LDO and each DCDCThe resistance of resistance, and measure the voltage difference of each resistance by the ADC in parallel with each resistance, and then obtainThe current value of arbitrary charged power, then according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power. Therefore, realized the electricity according to arbitrary charged powerStream situation is controlled the power supply of arbitrary charged power, thus provide that one is more intelligent, flexibilityThe mode of high control Power supply.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations is relevantIn the embodiment of the method, have been described in detail, will not elaborate explanation herein.
Fig. 7 is a kind of for controlling the frame of device 700 of Power supply according to shown in an exemplary embodimentFigure. With reference to Fig. 7, device 700 can comprise following one or more assembly: processing components 702, memory704, power supply module 706, multimedia groupware 708, audio-frequency assembly 710, the interface of I/O (I/O)712, sensor cluster 714, and communications component 716.
The integrated operation of processing components 702 common control device 700, such as with demonstration, data communication, noteThe operation that record operation is associated. Treatment element 702 can comprise that one or more processors 720 are carried out and refer toOrder, to complete all or part of step of above-mentioned method. In addition, processing components 702 can comprise oneOr multiple modules, be convenient to mutual between processing components 702 and other assemblies. For example, processing unit 702Can comprise multi-media module, to facilitate mutual between multimedia groupware 708 and processing components 702.
Memory 704 is configured to store various types of data to be supported in the operation of device 700. TheseThe example of data comprises for any application program of operation on device 700 or the instruction of method, data etc.Memory 704 can be realized by the volatibility of any type or non-volatile memory device or their combination,As static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), canErasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only storage(ROM), magnetic memory, flash memory, disk or CD.
Electric power assembly 706 provides electric power for installing 700 various assemblies. Electric power assembly 706 can comprise electricityManagement system, one or more power supplys, and other generate, manage and distribute electric power relevant for device 700The assembly of connection.
Multimedia groupware 708 is included in the screen that an output interface is provided between described device 700 and userCurtain. In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP). AsFruit screen comprises touch panel, and screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects and described touchOr relevant duration and the pressure of slide. In certain embodiments, multimedia groupware 708 comprises oneIndividual front-facing camera and/or post-positioned pick-up head. When device 700 is in operator scheme, as screening-mode or videoWhen pattern, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data. Each preposition taking the photographPicture head and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom energyPower.
Audio-frequency assembly 710 is configured to output and/or input audio signal. For example, audio-frequency assembly 710 comprisesA microphone (MIC), when device 700 is in operator scheme, as call model, logging mode and voiceWhen recognition mode, microphone is configured to receive external audio signal. The audio signal receiving can be enteredOne step is stored in memory 704 or sends via communications component 716. In certain embodiments, audio-frequency assembly810 also comprise a loudspeaker, for output audio signal.
I/O interface 712 is for providing interface between processing components 702 and peripheral interface module, above-mentioned peripheral interfaceModule can be keyboard, some striking wheel, button etc. These buttons can include but not limited to: home button, soundAmount button, start button and locking press button.
Sensor cluster 714 comprises one or more sensors, is used to device 700 that various aspects are providedState estimation. For example, sensor cluster 714 can detect the opening/closing state of equipment 700, assemblyRelative positioning, for example described assembly is display and the keypad of device 700, sensor cluster 714 alsoCan checkout gear 700 or the position of 700 1 assemblies of device change, user with install 700 contact depositOr not there is not the variations in temperature of device 700 orientation or acceleration/deceleration and device 700. Sensor cluster 714Can comprise proximity transducer, be configured to without any physical contact time detect near the depositing of object. Sensor cluster 714 can also comprise optical sensor, as CMOS or ccd image sensor, forIn imaging applications, use. In certain embodiments, this sensor cluster 714 can also comprise that acceleration passesSensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 716 is configured to be convenient to the logical of wired or wireless mode between device 700 and other equipmentLetter. Device 700 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or theyCombination. In one exemplary embodiment, communication component 716 receives wide from outside via broadcast channelThe broadcast singal of broadcast management system or broadcast related information. In one exemplary embodiment, described Department of Communication ForcePart 716 also comprises near-field communication (NFC) module, to promote junction service. For example, can in NFC moduleBased on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skillArt, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 700 can by one or more application specific integrated circuits (ASIC),Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD),Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realExisting, for carrying out said method.
The device that disclosure embodiment provides, determines for one by connecting on each LDO and each DCDCThe resistance of resistance, and measure the voltage difference of each resistance by the ADC in parallel with each resistance, and then obtainThe current value of arbitrary charged power, then according to the electricity of the current value of arbitrary charged power and arbitrary charged powerStream threshold value is controlled the power supply of arbitrary charged power. Therefore, realized the electricity according to arbitrary charged powerStream situation is controlled the power supply of arbitrary charged power, thus provide that one is more intelligent, flexibilityThe mode of high control Power supply.
Disclosure embodiment provides a kind of non-provisional computer-readable recording medium, when described storage mediumIn instruction while being carried out by the processor of mobile terminal, make mobile terminal can carry out a kind of power supply of controlling and supplyThe method of electricity, described method comprises:
Obtain the current value of arbitrary charged power;
Obtain the current threshold of arbitrary charged power;
According to the current threshold of the current value of arbitrary charged power and arbitrary charged power to arbitrary charged powerPower supply is controlled.
The non-provisional computer-readable recording medium that disclosure embodiment provides, by each LDO and everyThe resistance of a definite resistance of the upper series connection of individual DCDC, and measure each by the ADC in parallel with each resistanceThe voltage difference of resistance, and then obtain the current value of arbitrary charged power, then according to the electricity of arbitrary charged powerThe current threshold of flow valuve and arbitrary charged power is controlled the power supply of arbitrary charged power. Therefore, realizeAccording to the current conditions of arbitrary charged power, the power supply of arbitrary charged power is controlled, thereby provideA kind of mode of more intelligent, control Power supply that flexibility is higher.
Those skilled in the art, considering description and putting into practice after invention disclosed herein, will easily expect thisOther bright embodiment. The application is intended to contain any modification of the present invention, purposes or adaptations,These modification, purposes or adaptations are followed general principle of the present invention and are comprised that the disclosure is unexposedCommon practise in the art or conventional techniques means. Description and embodiment are only regarded as exemplary, true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to accurate knot described above and illustrated in the accompanying drawingsStructure, and can carry out various amendments and change not departing from its scope. Scope of the present invention is only by appendedClaim limits.
Claims (10)
1. an electric supply system, is characterized in that, described electric supply system is applied to terminal, described inElectric supply system at least comprises PMU PMU, central processor CPU, resistance, analog-to-digital conversionDevice ADC and IC bus IIC;
Wherein, described PMU comprises the first predetermined number low voltage difference line voltage-stablizer LDO and the second present countAn amount direct current transducer DCDC, described LDO and described DCDC are used for to described terminal power supply, and eachLDO and each DCDC all connect one and have the resistance of definite resistance value;
The resistance parallel connection that described ADC connects with each LDO and each DCDC, for detection of each resistanceVoltage difference;
Described IIC connects described ADC and described CPU, for each resistance that described ADC is detectedThe voltage difference at two ends is sent to described CPU.
2. electric supply system according to claim 1, is characterized in that, described electric supply systemAlso comprise: power supply managing interface SPMI;
Described SPMI connects described PMU and described CPU, obtains by described SPMI for described CPUGet arbitrary LDO in described PMU and the magnitude of voltage of DCDC.
3. a method of controlling Power supply, is characterized in that, described method is applied to has Power supplyThe terminal of system, described electric supply system as described in electric supply system as described in claim 1 or 2;Described method comprises:
Obtain the current value of arbitrary charged power;
Obtain the current threshold of described arbitrary charged power;
According to the current threshold of the current value of described arbitrary charged power and described arbitrary charged power to describedThe power supply of one charged power is controlled.
4. method according to claim 3, is characterized in that, described in obtain the electricity of arbitrary charged powerFlow valuve, comprising:
By described arbitrary charged power, corresponding ADC obtains the resistance two of connecting with described arbitrary charged powerThe voltage difference of end;
According to the voltage difference at the resistance two ends of connecting with described arbitrary charged power and described arbitrary charged power stringThe resistance of connection obtains the current value of described arbitrary charged power.
5. method according to claim 3, is characterized in that, described according to described arbitrary charged powerCurrent value and the current threshold of described arbitrary charged power the power supply of described arbitrary charged power is controlledSystem, comprising:
The current threshold of the current value of described arbitrary charged power and described arbitrary charged power is compared;
According to comparative result, the power supply of described arbitrary charged power is controlled.
6. method according to claim 5, is characterized in that, described according to comparative result to describedThe power supply of one charged power is controlled, and comprising:
If the current value of described arbitrary charged power, higher than the current threshold of described arbitrary charged power, passes throughPower supply managing interface SPMI controls described arbitrary charged power and reduces delivery.
7. a device of controlling Power supply, is characterized in that, described application of installation is in having Power supplyThe terminal of system, described electric supply system as described in electric supply system as described in claim 1 or 2;Described device comprises:
The first acquisition module, for obtaining the current value of arbitrary charged power;
The second acquisition module, for obtaining the current threshold of described arbitrary charged power;
Control module, for according to the electricity of the current value of described arbitrary charged power and described arbitrary charged powerStream threshold value is controlled the power supply of described arbitrary charged power.
8. device according to claim 7, is characterized in that, described the first acquisition module, comprising:
The first acquiring unit, for obtaining and described arbitrary quilt by ADC corresponding to described arbitrary charged powerThe voltage difference at the resistance two ends of control power supply series connection;
Second acquisition unit, for according to the voltage difference at the resistance two ends of connecting with described arbitrary charged power andThe resistance of described arbitrary charged power series connection obtains the current value of described arbitrary charged power.
9. device according to claim 8, is characterized in that, described second acquisition unit, comprising:
Relatively subelement, for by the electricity of the current value of described arbitrary charged power and described arbitrary charged powerStream threshold value compares;
Control subelement, for the power supply of described arbitrary charged power being controlled according to comparative result.
10. device according to claim 9, is characterized in that, described control subelement, for working asThe current value of described arbitrary charged power is during higher than the current threshold of described arbitrary charged power, by system electricitySource control interface SPMI controls described arbitrary charged power and reduces delivery.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302890.1A CN104133512B (en) | 2014-06-27 | 2014-06-27 | The method and apparatus of electric supply system, control Power supply |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410302890.1A CN104133512B (en) | 2014-06-27 | 2014-06-27 | The method and apparatus of electric supply system, control Power supply |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104133512A CN104133512A (en) | 2014-11-05 |
CN104133512B true CN104133512B (en) | 2016-05-18 |
Family
ID=51806226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410302890.1A Active CN104133512B (en) | 2014-06-27 | 2014-06-27 | The method and apparatus of electric supply system, control Power supply |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104133512B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107589774A (en) * | 2017-06-02 | 2018-01-16 | 江苏万邦微电子有限公司 | It is a kind of based on the method for managing power supply without electric capacity LDO outside piece |
CN112925577A (en) * | 2021-01-25 | 2021-06-08 | 北京达佳互联信息技术有限公司 | Application program processing method, device, equipment, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7369815B2 (en) * | 2003-09-19 | 2008-05-06 | Qualcomm Incorporated | Power collapse for a wireless terminal |
CN101329597A (en) * | 2008-07-28 | 2008-12-24 | 北京中星微电子有限公司 | Portable on-chip processing system of multimedia processing platform and power supply management method |
CN101923110A (en) * | 2009-06-09 | 2010-12-22 | 比亚迪股份有限公司 | A method and device for detecting abnormal current in a circuit |
CN103199593A (en) * | 2013-04-26 | 2013-07-10 | 无锡中星微电子有限公司 | Charging management circuit and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7080269B2 (en) * | 2003-05-15 | 2006-07-18 | International Business Machines Corporation | Method and apparatus for implementing power-saving sleep mode in design with multiple clock domains |
-
2014
- 2014-06-27 CN CN201410302890.1A patent/CN104133512B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7369815B2 (en) * | 2003-09-19 | 2008-05-06 | Qualcomm Incorporated | Power collapse for a wireless terminal |
CN101329597A (en) * | 2008-07-28 | 2008-12-24 | 北京中星微电子有限公司 | Portable on-chip processing system of multimedia processing platform and power supply management method |
CN101923110A (en) * | 2009-06-09 | 2010-12-22 | 比亚迪股份有限公司 | A method and device for detecting abnormal current in a circuit |
CN103199593A (en) * | 2013-04-26 | 2013-07-10 | 无锡中星微电子有限公司 | Charging management circuit and system |
Also Published As
Publication number | Publication date |
---|---|
CN104133512A (en) | 2014-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103885588B (en) | Automatic switching method and device | |
CN104505879A (en) | Charging method and device | |
CN104315662A (en) | Method and device for controlling work of air purifier | |
CN104615240A (en) | Terminal unlocking method and device | |
CN105516026A (en) | Hot spot networking control method and device | |
CN104635918A (en) | Control method and control device of electronic equipment and electronic equipment | |
CN104485713A (en) | Charge control method and device | |
CN106033397A (en) | Method and device for adjusting memory buffer, and terminal | |
CN105356529A (en) | Prompting method and apparatus for rapid charging state | |
CN105071473A (en) | USB charging method and device | |
CN111537907A (en) | Power on-off detection circuit, method and device and storage medium | |
CN104297542A (en) | Reminding method and device based on electricity consumption | |
CN204627281U (en) | A kind of intelligent safe and intelligent safe system | |
CN104133512B (en) | The method and apparatus of electric supply system, control Power supply | |
CN106897239A (en) | state switching method and device | |
WO2018094795A1 (en) | Method and device for controlling power supply of power strip, and power strip | |
CN103944991A (en) | Method and device for controlling data synchronization | |
CN106060281B (en) | Screen backlight brightness value adjusting method and device applied to electronic terminal | |
CN105390120A (en) | Bright screen control method and device | |
US11205906B2 (en) | Charging processing method, terminal device and storage medium | |
US9490643B2 (en) | Method for operating an electronic appliance, charging apparatus for charging a battery for an electronic appliance, and motor vehicle | |
CN106455002A (en) | Wireless search method and device, and terminal | |
CN105517280A (en) | Method and device for lighting | |
CN105653186A (en) | Terminal control method and device | |
CN106856339A (en) | Charging method, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |