Background technology
In general, mobile communication terminal uses battery for supplying with the required power supply of self action, above-mentioned battery is 2 primary cells (rechargeable battery) that can re-use repeatedly, and its exploitation is used NI-G (Ni-Cd) battery, ni-mh (Ni-MH) battery, lithium ion (Li-ion) battery, lighium polymer (Li-polymer) battery.Recently, the battery as mobile communication terminal generally uses lithium ion (Li-ion) battery with good energy density and cycle life and other performance.
Under the situation of 2 primary cells, when charging repeatedly, on the position that discharges and recharges repeatedly, will generate solid solution and can't use residual capacity with discharge operation, that is, generation is used to remember the memory effect of the spendable capacity boundary of battery.Therefore, charge again after need using the discharge range that battery allows, thereby improve the service efficiency of battery.
Recently, the main charging circuit that is built in mobile communication terminal that has as shown in Figure 1 that uses in the mobile communication terminal.
Fig. 1 is the ball bearing made using figure of charging device built-in in the mobile communication terminal of prior art; Fig. 2 is the chart of general field effect transistor element characteristic; Fig. 3 is the flow chart that utilizes the charging method of charging device built-in in the mobile communication terminal of prior art.
As shown in Figure 1, the charging device that is built in mobile communication terminal of the prior art, it includes: the driving field effect transistor of charging current (Field Effect Transistor; FET) (Q1); Be connected in the drain electrode (drain) of above-mentioned field effect transistor (Q1) and the charging current of battery 2 and detect resistance (R2); Two ends respectively are connected in the grid (gate) of above-mentioned field effect transistor (Q1) and the resistance (R1) of source electrode (source); The source electrode of above-mentioned field effect transistor (Q1) connects the negative electrode (cathode) of anti-adverse current diode (D1); Be connected in above-mentioned charging current and detect the two ends of resistance (R2), and the charging current testing circuit 3 that the charging current that flows in the resistance is detected; Apply the bias current of certain current value at the grid of above-mentioned field effect transistor (Q1), make the constant-current source 4 of conducting/shutoff (ON/OFF) state of the above-mentioned field effect transistor of control (Q1); Be used for to the above-mentioned constant-current source 4 variable current values of output and control the DAC (Digital-to-Analog Converter-digital to analog converter) 5 of above-mentioned constant-current source 4.
Wherein, above-mentioned constant-current source 4 and digital to analog converter 5 and charging current testing circuit 3 are built in the baseband chip 10 of above-mentioned mobile communication terminal.
As shown in Figure 3, in the charging device of the as above mobile communication terminal of the prior art of structure, be connected in mobile communication terminal and connect under the situation of battery at charging adapter 1, digital to analog converter 5 drives inner constant-current source 4 and exports certain initial charge current value (step S1-S3) for making.The current value of above-mentioned output will be applied to the grid and the above-mentioned field effect transistor of conducting (ON) (Q1) of field effect transistor (Q1), and meanwhile, being connected in flows in the resistance at grid and source electrode two ends has electric current and form V
GsVoltage is by the V of above-mentioned formation
GsThe charging current amount and charge (the step S4) that flow in the above-mentioned field effect transistor of voltage control (Q1).
That is, in the charging process of above-mentioned battery 2, detect resistance (R2) by field effect transistor (Q1) and charging current and handle the service voltage that applies from above-mentioned charging adapter 1, and carry out battery charge with the form of constant current (CC)/constant voltage (DV).
Wherein, in the method for control charging current amount, detect resistance (R2) by charging current and detect the charging current that applies in the battery 2, change the charging current amount and reach required current value according to the charging current difference.
But, as shown in Figure 2,, have different initial charge current amount (i according to different test portions because general field effect transistor (Q1) immediately applies identical DAC value at the threshold voltage (thresholdvoltage) of grid in circuit
Ds1, i
Ds2).More under the serious situation, above-mentioned charging current amount will exceed 1 ampere (A) and cause taking place the phenomenon of overcurrent.
And the power that the output voltage of above-mentioned charging adapter 1 will influence above-mentioned field effect transistor (Q1) disperses, because the voltage of above-mentioned charging adapter 1 is higher, makes and may take place overheated in above-mentioned field effect transistor (Q1) and damage.
Simultaneously, in the charging device of prior art, when carrying out charging operations, need suitable charging current value, but under the situation of the field effect transistor (Q1) that partly has relatively poor characteristic, when carrying out charging operations at every turn, in the excessive charging current that initially will flow of charging, thus the phenomenon that causes above-mentioned battery to be damaged.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of battery charging current self-compensating gear and compensation method thereof of mobile communication terminal, make the poor of the charging current that applies in the battery that detects mobile communication terminal and constant current, and, make overcurrent and short circuit phenomenon that prevents initial charge current voluntarily and the stability that improves charging current according to the charging current of above-mentioned detected difference between current change battery.
For achieving the above object, the battery charging current self-compensating gear of the mobile communication terminal among the present invention, be applied to by field effect transistor at the service voltage that charging adapter applies under the situation of battery and charging, for control because the charging current maintenance certain value that the characteristic deviation of field effect transistor changes, this device is characterized in that, include following several sections: the charging current control part, reception is by the detected charging current that is applied to battery by field effect transistor of charging current testing circuit that is connected between field effect transistor and the battery, and judge whether above-mentioned detected charging current belongs in the scope of target charging current value ± error amount, result according to above-mentioned judgement, when above-mentioned detected charging current belongs to the scope of target charging current value ± error amount, do not change detected charging current value, when above-mentioned detected charging current exceeds described scope, with the minimizing of detected charging current correspondence or increase to compensate;
Charging current detects and handling part, detect the charging current value of variable setting in the charging current control part and store, according to the charging current value of above-mentioned variable setting, apply bias current (bias) to the grid (gate) of above-mentioned field effect transistor simultaneously by digital to analog converter and constant-current source.
And, for achieving the above object, the battery charge self-compensating method of the mobile communication terminal among the present invention, be applied to by field effect transistor at the service voltage that charging adapter applies under the situation of battery and charging, keep certain value for controlling the charging current that changes owing to field effect transistor, it is characterized in that, include following several steps: detect step, detect the charging current that is applied to battery by above-mentioned field effect transistor; Determining step judges whether above-mentioned detected charging current belongs in the scope of target charging current value ± error amount; Compensation process according to the result who judges in the above-mentioned determining step, when above-mentioned detected charging current belongs in the scope of target charging current value ± error amount, applies bias current according to above-mentioned detected charging current in the grid of above-mentioned field effect transistor; When above-mentioned detected charging current does not belong in the scope of target charging current value ± error amount, to the minimizing of above-mentioned detected charging current correspondence or increase, in the grid of above-mentioned field effect transistor, apply bias current according to the charging current of above-mentioned compensation with after compensating; Charge step is by carrying out charging operations after the above steps.
And the present invention is characterized in that above-mentioned compensation process includes: the 1st step, judge that above-mentioned detected charging current is whether less than the scope of target charging current value-error amount; The 2nd step, according to the result who judges in above-mentioned the 1st step, when above-mentioned detected charging current during less than the scope of target charging current value-error amount, the constant value that will preset to above-mentioned detected charging current value increase, thus increase the charging current amount to compensate; The 3rd step judges that above-mentioned detected charging current is whether greater than the scope of target charging current value+error amount; The 4th step, according to the result who judges in above-mentioned the 3rd step, when above-mentioned detected charging current during, will reduce the constant value that presets to above-mentioned detected charging current value, thereby reduce the charging current amount to compensate greater than the scope of target charging current value+error amount.
Adopt battery charging current self-compensating gear of the present invention and method, can prevent the short circuit phenomenon that accessory breaks down or heating problem causes of charging circuit voluntarily, thereby make the minimization of loss of battery and improved the stability of system.And, will be in mobile communication terminal built-in set algorithm, make when the user initially carries out charging operations, will carry out the self-compensating operation in the mobile communication terminal, thereby need not to add the stabilisation that additional operations just can be realized initial charge current during fabrication.
Embodiment
With reference to the accompanying drawings the useful embodiment among the present invention is described in detail.
Fig. 4 is the system diagram of the battery charging current self-compensating gear of the mobile communication terminal among the present invention;
Fig. 5 is the flow chart of compensation method that utilizes the battery charging current self-compensating gear of the mobile communication terminal among the present invention.
With reference to accompanying drawing 4, the battery charging current self-compensating gear of the mobile communication terminal among the present invention, it includes: field effect transistor (Field Effect Transistor:FET) 110, the first, the second resistance 120,130, battery 140, diode 150, charging current testing circuit 210, constant-current source 220, digital to analog converter 230, charging current control part 240 and charging current detect and handling part 250.
Wherein, above-mentioned field effect transistor (FET:Field Effect Transistor) the 110th has the semiconductor element of source electrode (Source), drain electrode (Drain), grid (Gate) three utmost points, and it is by the voltage (V between above-mentioned grid and the source electrode
Gs) the electrostatic field control source electrode that takes place and the electric current (i between the drain electrode
Ds).The electric current of the certain value that above-mentioned field effect transistor 110 will apply by constant-current source 220 described later plays on-off action.
Above-mentioned first resistance 120 is used to apply the effect of voltage, and its two ends respectively are connected in the grid (gate) and the source electrode (source) of above-mentioned field effect transistor 110, and forms V according to the electric current from the source electrode of above-mentioned field effect transistor 110 to grid
GsVoltage.
One end of above-mentioned second resistance 130 is connected in the drain electrode of above-mentioned field effect transistor 110, and the other end is connected in an end of battery 140 simultaneously, and above-mentioned second resistance 130 is used to limit the effect of electric current, that is, it is used for controlling the charging current that above-mentioned battery 140 applies.
Above-mentioned diode 150 is connected between the source electrode of above-mentioned charging adapter 160 and field effect transistor 110, is used to prevent to produce backward current.
Above-mentioned charging current testing circuit 210 is connected in the two ends of above-mentioned second resistance 130, is used for detecting the charging current that above-mentioned second resistance 130 flows and monitors.
Above-mentioned constant-current source 220 imposes on the grid of above-mentioned field effect transistor 110 with the bias current of certain current value, thereby controls the conducting/off state of above-mentioned field effect transistor 110.
Above-mentioned digital to analog converter 230 is the devices that digital signal are converted to analog signal, it is with the above-mentioned signal of changing, that is, certain charging current value (to call ' DAC value ' in the following text) is imposed on above-mentioned constant-current source 220, make the current value that applies in the above-mentioned field effect transistor 110 is controlled.
Above-mentioned charging current control part 240 is with detected charging current in the charging current testing circuit 210 and the benchmark charging current value (fiducial value that presets, to call ' target charging current value ' in the following text) compare, result according to above-mentioned comparison, in the time of in above-mentioned charging current value belongs to corresponding scope, will utilize current DAC value to carry out charging; In the time of in above-mentioned charging current value does not belong to corresponding scope, then reduce or increase current DAC value.Wherein, above-mentioned corresponding scope refers to the corresponding scope of target charging current value ± error amount, and Dui Ying part will be described in detail in the back with it.
Above-mentioned charging current detection and handling part 250 detect by the DAC value of above-mentioned charging current control part 240 changes and store, send above-mentioned detected DAC value to above-mentioned digital to analog converter 230 simultaneously, thereby can apply bias current to the grid of above-mentioned field effect transistor 110 by above-mentioned constant-current source 220.
But above-mentioned charging current detects and handling part 250 and charging current control part 240, digital to analog converter 230, constant-current source 220, charging current testing circuit 210 each independently be built in the mobile communication terminal, as shown in the figure, but said apparatus also one be built in the baseband chip 200 of mobile communication terminal.
Thus, be connected with constant-current source 220 in the grid of above-mentioned field effect transistor 110, be connected with first resistance 120 that is connected with source electrode between the grid of above-mentioned field effect transistor 110 and constant-current source 220 terminals, the source electrode of above-mentioned field effect transistor 110 then connects the negative electrode of diode 150.In addition, be connected with second resistance 130 that is connected with battery 140 in the drain electrode of above-mentioned field effect transistor 110, simultaneously, the two ends of above-mentioned second resistance 130 are connected with charging current testing circuit 210, and connect the digital to analog converter 230 of the magnitude of current be used to change above-mentioned constant-current source 220.And, connect charging current control part 240 and charging current in the above-mentioned charging current testing circuit 210 successively and detect and handling part 250.For the charging current value that makes output in above-mentioned charging current detection and the handling part 250 imposes on digital to analog converter 230, above-mentioned charging current detects and will be connected mutually with digital to analog converter 230 with handling part 250.
In the battery charging current self-compensating gear of the mobile communication terminal in the present invention of as above structure, when being connected with charging adapter 160, the digital to analog converter 230 of mobile communication terminal inside will be exported the DAC value, thereby supply with the constant-current source (bias current) that is used to drive field effect transistor 110.Thus, will flow between the grid of above-mentioned field effect transistor 110 and the source electrode electric current that flows in first resistance 120 and between two ends, form voltage (V
Gs), the while is according to the voltage (V of above-mentioned formation
Gs) regulate the charging current amount that flows in the above-mentioned field effect transistor 110.
The control method of 5 pairs of charging current amounts describes with reference to the accompanying drawings.
At first, when being connected with charging adapter 160 and connecting battery 140, the DAC value of the identical certain constant value of output in above-mentioned digital to analog converter 230 and the prior art, thus drive mobile communication terminal inside constant-current source 220 (step S100, S110).
At this moment, when not connecting above-mentioned charging adapter 160, will turn back to the beginning step, identical with above-mentioned situation, when not connecting battery 140, whether with the connection that turns back to the beginning step and judge charging adapter 160 again.
Then, the self-compensating that judges whether to start for the first time among the present invention carries out the charging first time (step S120), according to the result of above-mentioned judgement, when being under the situation of charging for the first time, will be by the initial DAC value (step S130) of the certain constant value of above-mentioned digital to analog converter 230 outputs; According to the result of above-mentioned judgement, when not being under the situation of charging for the first time, the initial DAC value of decision charge (step S160) before then utilizing.
Under the situation of charging for the first time in previous step S120, the DAC value that above-mentioned digital to analog converter 230 is exported imposes on the grid and the source electrode of above-mentioned field effect transistor 110 by constant-current source 220, thereby forms the corresponding V of above-mentioned DAC value
GsVoltage, and according to the V of above-mentioned formation
GsThe electric current (step S140) that flows in the above-mentioned field effect transistor 110 of voltage control.
Wherein, the charging current amount can be by being connected in above-mentioned second resistance 130 the charging current testing circuit 210 at two ends detect, then, charging current control part 240 compares and analyzes (step S140) with above-mentioned detected charging current amount and target charging current value.
At this moment, judge by following mathematical expression 1 whether the charging current value of above-mentioned detection belongs to the target charging current value in the scope of allowance error (tolerance).
[mathematical expression 1]
[detected charging current]=[target charging current value] ± C (allowance error)
Result according to above-mentioned judgement, when above-mentioned detected charging current value belongs in the error range of target charging current value, will the current DAC value of storage and carry out battery charge with the DAC value of storing, charge mode wherein then carries out (step S150 ~ S170) with constant current or constant-voltage mode.
Result according to above-mentioned judgement, when above-mentioned detected charging current value does not belong in the error range of target charging current value, analyze whether above-mentioned detected charging current value deducts allowance error (C) less than above-mentioned target charging current value value, when being when deducting the value of allowance error (C) less than above-mentioned target charging current value, to in detected charging current value, increase the set value (k) that presets, after the current DAC value of increase is controlled, the calculation procedure as mathematical expression 1 (step S142, S144) of previous step will be carried out repeatedly.According to the result who carries out aforesaid operations, when satisfying condition, will carry out battery charge by the DAC value of setting.
On the contrary, when above-mentioned detected charging current value deducts the value of allowance error (C) greater than above-mentioned target charging current value, analyze whether above-mentioned detected charging current value adds allowance error (C) greater than above-mentioned target charging current value value (step S146), when above-mentioned detected charging current value adds the value of allowance error (C) greater than above-mentioned target charging current value, to in detected charging current value, deduct the set value (k) that presets, make reduce current DAC value and control after, to carry out the calculation procedure as mathematical expression 1 of previous step repeatedly, and carry out battery charge (step S148) by the DAC value of qualified final setting.
Simultaneously, when above-mentioned detected charging current value adds the value of allowance error (C) less than above-mentioned target charging current value, to turn back to judge whether to belong to the target charging current value in allowance error (tolerance) scope previous step and carry out aforesaid condition step repeatedly, thereby carry out battery charge by the DAC value of qualified final setting.
According to aforesaid the present invention, solved in the charging circuit that the field effect transistor of prior art constitutes because the problem of the excessive charging current of initial flow that the property difference of above-mentioned field effect transistor causes, make the short circuit phenomenon that accessory breaks down or heating problem causes that can prevent charging circuit voluntarily, thereby make the minimization of loss of battery and improved the stability of system.
And, in battery charging current self-compensating gear of the present invention and method, will be in mobile communication terminal built-in set algorithm, make when the user initially carries out charging operations, to carry out the self-compensating operation in the mobile communication terminal, thereby need not to add the stabilisation that additional operations just can be realized initial charge current during fabrication.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.