A kind of current control method of mobile terminal and device thereof
Technical field
The present invention relates to technical field of mobile terminals, particularly a kind of current control method of mobile terminal and device thereof.
Background technology
Existing intelligent mobile terminal is when charging, and charging current reaches more than 1A usually.After screen goes out, charged electrical fails to be convened for lack of a quorum and drops to about 800mA.Due to charged state sub-screen bright time, the system output current of lithium battery when bright (namely maintain intelligent mobile terminal screen inactive electric current) is usually greater than 400mA and maximum is less than 1A, and therefore, the charging current of intelligent mobile terminal is limited in below 1A.
When intelligent mobile terminal does not charge, if screen is bright, the system output current of lithium battery has mA more than 200.Can find intelligent mobile terminal charge time, the charging current (800mA) after screen goes out equal screen bright time system output current (1A) deduct do not charge and screen is bright time system output current (200mA).In other words, charging current is always less than system output current, and the minimizing of system output current can make charging current reduce, and charging current is subject to the restriction of system output current.
Thus prior art need to improve.
Summary of the invention
The object of the present invention is to provide a kind of current control method and device thereof of mobile terminal, during to solve charging screen go out after the problem that declines by system output current restriction of charging current.
In order to achieve the above object, this invention takes following technical scheme:
A current control method for mobile terminal, it comprises:
When A, charging, charging current detection module detects the size of charging current, the size of current detection module detection system output current;
B, when power management module judges that system output current is less than first threshold, central processing unit exports corresponding control signal and controls current processing module system output current is amplified to predetermined current scope;
C, when charging current detection module judges that charging current is less than Second Threshold, if power management module judges that system output current is also less than Second Threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope.
In the current control method of described mobile terminal, described step B specifically comprises:
B1, when comparatively unit judges system output current is less than first threshold to the first current ratio of power management module, export the first signal to the memory cell of central processing unit;
The first corresponding command signal is sent to order register unit after B2, memory cell identification first signal;
B3, order register unit resolves first command signal, export corresponding first pulse control signal to the current amplification unit of current processing module;
System output current IBATT is amplified to preset range according to this first pulse control signal by B4, current amplification unit.
In the current control method of described mobile terminal, described step C specifically comprises:
C1, when comparatively unit judges charging current is less than Second Threshold to the second current ratio of charging current detection module, export secondary signal to memory cell; First current ratio when comparatively unit judges system output current is less than 1A, exports the 3rd signal to memory cell;
C2, memory cell identification secondary signal and the 3rd signal, send the second corresponding command signal to order register unit;
C3, order register unit resolves second command signal, export corresponding second pulse control signal to current amplification unit;
System output current is amplified to preset range according to this second pulse control signal by C4, current amplification unit.
In the current control method of described mobile terminal, after described step C, also comprise:
D, when charging current detection module judges that charging current is less than Second Threshold, if power management module judges that system output current is greater than Second Threshold and is less than first threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope.
In the current control method of described mobile terminal, described step D specifically comprises:
D1, when comparatively unit judges charging current is less than Second Threshold to the second current ratio, export secondary signal to memory cell; First current ratio when comparatively unit judges system output current is greater than Second Threshold and is less than first threshold, exports the 5th signal to memory cell;
D2, memory cell identification secondary signal and the 5th signal, send the 3rd corresponding command signal to order register unit;
D3, order register unit resolves the 3rd command signal, export corresponding 3rd pulse control signal to current amplification unit;
System output current is amplified to preset range according to the 3rd pulse control signal by D4, current amplification unit.
In the current control method of described mobile terminal, after described step D, also comprise:
E, when charging current detection module judges that charging current is greater than Second Threshold, if power management module judges that system output current is greater than Second Threshold and is less than first threshold, central processing unit exports stop signal and controls current processing module and stop amplifying.
In the current control method of described mobile terminal, described step e specifically comprises:
E1, when comparatively unit judges charging current is greater than Second Threshold to the second current ratio, export the 4th signal to memory cell; First current ratio when comparatively unit judges system output current is less than Second Threshold and is greater than Second Threshold, exports the 5th signal to memory cell;
E2, memory cell identification the 4th signal and the 5th signal, send the 4th corresponding command signal to order register unit;
E3, order register unit resolves the 4th command signal, export corresponding stop signal to current amplification unit;
E4, current amplification unit stop amplifying according to this stop signal.
A current control device for mobile terminal, it comprises charging current detection module, current detection module, power management module, central processing unit and current processing module;
Described charging current detection module detects the size of charging current, the size of current detection module detection system output current, when power management module judges that system output current is less than first threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope; And when charging current detection module judges that charging current is less than Second Threshold, if power management module judges that system output current is also less than Second Threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope.
In the current control device of described mobile terminal, described power management module comprises the first electric current comparing unit, and described central processing unit comprises memory cell and order register unit, and described current processing module comprises current amplification unit;
Described first current ratio when comparatively unit judges system output current is less than first threshold, exports the first signal to memory cell; The first corresponding command signal is sent to order register unit after memory cell identification first signal; Order register unit resolves first command signal, exports corresponding first pulse control signal to current amplification unit; System output current IBATT is amplified to preset range according to this first pulse control signal by current amplification unit.
In the current control device of described mobile terminal, described charging current detection module comprises the second electric current comparing unit,
Described second current ratio when comparatively unit judges charging current is less than Second Threshold, exports secondary signal to memory cell; When first electric current comparing unit also judges that system output current is less than 1A, export the 3rd signal to memory cell; Memory cell also identifies secondary signal and the 3rd signal, sends the second corresponding command signal to order register unit; Order register unit also resolves the second command signal, exports corresponding second pulse control signal to current amplification unit; System output current is also amplified to preset range according to this second pulse control signal by current amplification unit.
Compared to prior art, the current control method of mobile terminal provided by the invention and device thereof, detected the size of charging current, the size of current detection module detection system output current by charging current detection module during charging; When power management module judges that system output current is less than first threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope; When charging current detection module judges that charging current is less than Second Threshold, if power management module judges that system output current is also less than Second Threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope.Can avoiding like this is declined by system output current affects the problem of charging current decline, can also improve charging current, guaranteeing to charge normal when charging current declines by increasing system output current.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of the current control method of mobile terminal provided by the invention.
Fig. 2 is the structured flowchart of current control device provided by the invention.
Embodiment
The invention provides a kind of current control method and device thereof of mobile terminal, detection system output current and charging current when charging, the size of system output current is improved when system output current is less than first threshold or charging current is less than Second Threshold, thus raising charging current, the problem declined to avoid charging current limited by system output current.For making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, it is the current control method flow chart of mobile terminal provided by the invention.Current control method provided by the invention comprises:
When S100, charging, charging current detection module detects the size of charging current, the size of current detection module detection system output current.
S200, when power management module judges that system output current is less than first threshold, central processing unit exports corresponding control signal and controls current processing module system output current is amplified to predetermined current scope;
S300, when charging current detection module judges that charging current is less than Second Threshold, if power management module judges that system output current is also less than Second Threshold, central processing unit exports corresponding control signal control current processing module and system output current is amplified to predetermined current scope.
See also Fig. 2, in this step S100, detect charger export the charging current IUSB charged the battery by charging current detection module 100, the electric current being input to anode is the required charging current IUSB detected.System output current IBATT when detecting powered battery by current detection module 200.
Detected system output current IBATT during power supply is input in power management module 300, is judged the size of system output current IBATT and first threshold and Second Threshold by the first electric current comparing unit 301 by current detection module 200.Described first threshold is 2A, and described Second Threshold is 1A.
When the first electric current comparing unit 301 judges that system output current IBATT is less than first threshold 2A, export the first signal (low level signal); When judging that system output current IBATT is less than Second Threshold 1A, export the 3rd signal (low level signal); When judging that system output current IBATT is less than first threshold 2A and is greater than Second Threshold 1A, export the 5th signal (low level signal).
The second electric current comparing unit 101 in charging current detection module 100 compares the size of charging current IUSB and Second Threshold 1A.Described second electric current comparing unit 101 is comparator, the Second Threshold of the electrode input end access 1A of comparator, the negative input access charging current IUSB of comparator.When the second electric current comparing unit 101 judges that charging current IUSB is less than 1A, export secondary signal (high level signal); When judging that charging current IUSB is greater than 1A, export the 4th signal (high level signal).
In described step S200, when judging that system output current IBATT is less than first threshold 2A, first electric current comparing unit 301 exports the first signal (low level signal) to central processing unit 400, and showing needs the system output current IBATT process to during lithium battery power supply.
Central processing unit 400 processes accordingly according to this first signal, that is: memory cell 401 sends the first corresponding command signal to order register unit 402 after identifying the first signal.Order register unit 402 resolves the first command signal, exports corresponding first pulse control signal to current processing module 500.System output current IBATT is amplified to preset range according to this first pulse control signal by the current amplification unit 501 in current processing module 500, i.e. 2A and more than 2A, and can prevent system power IBATT from declining like this affects charging current decline.
It is to be appreciated that when system output current IBATT is less than first threshold 2A, charging current IUSB may influencedly decline, and also may not decline.When system output current IBATT is less than Second Threshold 1A, charging current IUSB must be influenced.Therefore, in step s 200, judging that system output current IBATT is less than 2A with regard to carrying out amplifying the prerequisite (namely implicit Rule of judgment) of process is immediately that charging current IUSB does not decline and is less than 1A.Now charging current IUSB rises or the constant judgement not affecting this step.
Based in charging process, system output current IBATT may cause declining by other factors, be namely less than 2A, and now charging current IUSB may decline or constant.For this reason, whether the present embodiment, in described step S300, is less than Second Threshold 1A for Rule of judgment with charging current IUSB.
When charging current IUSB and system output current IBATT is all less than 1A, amplification system output current IBATT must be needed: namely
When charging current IUSB is less than Second Threshold 1A, the second electric current comparing unit 101 exports secondary signal (high level signal) to central processing unit 400.Judge whether system output current IBATT changes simultaneously.The system output current IBATT of detection is transferred to the first electric current comparing unit 301 by current detection module 200, when first electric current comparing unit 301 judges that system output current IBATT is also less than 1A, the first electric current comparing unit 301 exports the 3rd signal (low level signal) to central processing unit 400.
Now, after the memory cell 401 of central processing unit 400 identifies secondary signal and the 3rd signal, send the second corresponding command signal to order register unit 402.Order register unit 402 resolves the second command signal, exports corresponding second pulse control signal to current processing module 500.System output current IBATT is amplified to 2A and more than 2A according to this second pulse control signal by the current amplification unit 501 in current processing module 500, thus prevents the problem that the decline of system output current IBATT causes charging current IUSB to decline.
When charging current IUSB is less than 1A, when system output current IBATT is greater than 1A and is less than 2A, amplification system output current IBATT must be needed: namely
When charging current IUSB is less than 1A, the second electric current comparing unit 101 exports secondary signal (high level signal) to central processing unit 400.Current detection module 200 detects system output current IBATT now and transfers to the first electric current comparing unit 301 and judges.If when the first electric current comparing unit 301 judges that system output current IBATT is greater than 1A and is less than 2A, the first electric current comparing unit 301 exports the 5th signal (low level signal) to central processing unit 400.
After the memory cell 401 of central processing unit 400 identifies secondary signal and the 5th signal, send the 3rd command signal to order register unit 402.Order register unit 402 resolves the 3rd command signal, exports corresponding 3rd pulse control signal to current processing module 500.The current amplification unit 501 of current processing module 500 inside is according to the 3rd pulse control signal amplification system output current IBATT to 2A and more than 2A.
When charging current IUSB is greater than 1A, when system output current IBATT is greater than 1A and is less than 2A, can stop amplifying: namely
When charging current IUSB is greater than 1A, the second electric current comparing unit 101 exports the 4th signal (low level signal) to central processing unit 400.Current detection module 200 detects system output current IBATT now and transfers to the first electric current comparing unit 301 and judges.If when the first electric current comparing unit 301 judges that system output current IBATT is also greater than 1A and is less than 2A, the first electric current comparing unit 301 exports the 5th signal (low level signal) to central processing unit 400.
After the memory cell 401 of central processing unit 400 identifies the 4th signal and the 5th signal, send the 4th command signal to order register unit 402.Order register unit 402 resolves the 4th signal, exports corresponding stop signal to current processing module 500.The current amplification unit 501 of current processing module 500 inside quits work according to stop signal, namely without the need to amplification system output current IBATT.
It is to be appreciated that described first pulse control signal, the second pulse control signal, the 4th pulse control signal all can amplification system output current IBATT, just amplification degree is different.Amplification degree can make charging current IUSB normal (as being greater than 1A) be as the criterion after amplifying.
Based on the current control method of above-mentioned mobile terminal, the present invention is also corresponding provides a kind of current control device (see figure 2), and it comprises: charging current detection module 100, current detection module 200, power management module 300, central processing unit 400 and current processing module 500;
Described charging current detection module 100 detects the size of charging current, the size of current detection module 200 detection system output current, when power management module 300 judges that system output current is less than first threshold, central processing unit 400 exports corresponding control signal control current processing module 500 and system output current is amplified to predetermined current scope; And, when charging current detection module 100 judges that charging current is less than Second Threshold, if power management module 300 judges that system output current is also less than Second Threshold, central processing unit 400 exports corresponding control signal control current processing module 500 and system output current is amplified to predetermined current scope.System power can be avoided like this to decline and to affect the problem of charging current decline.
In the present embodiment, described power management module 300 comprises the first electric current comparing unit 301, and described central processing unit 400 comprises memory cell 401 and order register unit 402, and described current processing module 500 comprises current amplification unit 501; Described charging current detection module 100 comprises the second electric current comparing unit 101.
When described first electric current comparing unit 301 judges that system output current is less than first threshold, export the first signal to memory cell 401; Memory cell 401 sends the first corresponding command signal to order register unit 402 after identifying the first signal; Order register unit 402 resolves the first command signal, exports corresponding first pulse control signal to current amplification unit 501; System output current IBATT is amplified to preset range according to this first pulse control signal by current amplification unit 501; Specifically refer to above-described embodiment.
In another embodiment, when described second electric current comparing unit 101 judges that charging current is less than Second Threshold, export secondary signal to memory cell; When first electric current comparing unit 301 also judges that system output current is less than 1A, export the 3rd signal to memory cell 401; Memory cell 401 also identifies secondary signal and the 3rd signal, sends the second corresponding command signal to order register unit 402; Order register unit 402 also resolves the second command signal, exports corresponding second pulse control signal to current amplification unit 501; System output current is also amplified to preset range according to this second pulse control signal by current amplification unit 501; Specifically refer to above-described embodiment.
In sum, the current control method of mobile terminal provided by the invention and device thereof; Dynamic monitoring system output current and charging current when charging, when judging that system output current is less than the size improving system output current when first threshold or charging current are less than Second Threshold, thus raising charging current, the problem of charging current decline is affected to avoid being declined by system output current, charging current can also be improved when charging current declines by increasing system output current, guaranteeing to charge normal.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and inventive concept thereof and replace or change, and all these change or replace the protection range that all should belong to the claim appended by the present invention.