The content of the invention
In view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of accurate detection charged stateMobile terminal and charged state detection method, efficiently solve after mobile terminal charging terminates and detect the problem of inaccurate.
In order to achieve the above object, this invention takes following technical scheme:
A kind of mobile terminal of accurate detection charged state, including:
Charging current control module, for detecting the charging current of external charger input, when the charging current is outerDuring the electric current of portion's charger filter capacitor release, the charging current is not exported;When the charging current is non-external chargerDuring the electric current of filter capacitor release, export the charging current and charge the battery;
Charging detecting model, for detecting whether the electricity of positive pole of battery increases, when the electricity does not increase, make shiftingDynamic terminal shows that battery is not charging;In the electricity increase, mobile terminal is set to show that battery charges.
In the mobile terminal of described accurate detection charged state, the charging current control module includes:
Charging current detection unit, for detecting the charging current of external charger input, and reference current is exported to electricityFlow comparator unit;
Current comparator unit, for comparing the charging current of external charger input and the size of reference current, when outerWhen the charging current of portion's charger input is more than reference current, control triode control unit exports charging current and filled to batteryElectricity;When the charging current of external charger input is less than reference current, control triode control unit does not export charging current;
The triode control unit, for the control according to current comparator module, export charging current and filled to batteryElectricity.
In the mobile terminal of described accurate detection charged state, the charging detecting model includes:
Charging voltage detection unit, for detecting whether the electricity of positive pole of battery increases, when the electricity does not increase,The first enable signal is exported to central processing unit;In the electricity increase, the second enable signal is exported to central processing unit;
Central processing unit, for receiving the enable signal of charging voltage detection unit input, receiving the first enabled letterNumber when, output control signal make metal-oxide-semiconductor control unit turn off;When receiving the second enable signal, output control signal makes MOSPipe control unit turns on;
Metal-oxide-semiconductor control unit, for the control signal according to central processing unit, shut-off or conducting charging judging unit are withThe connection of central processor;
Charge judging unit, for detecting the break-make of metal-oxide-semiconductor control unit, when metal-oxide-semiconductor control unit turns off, makes movementTerminal shows that battery is not charging;When metal-oxide-semiconductor control unit turns on, mobile terminal is set to show that battery charges.
In the mobile terminal of described accurate detection charged state, the central processing unit includes:
Memory cell, for storing the enable signal of charging voltage detection unit input;
Command register unit, the enable signal for the storage of register storage unit;
Processor unit, it is first enabled in enable signal for the enable signal of call instruction register cell depositDuring signal, output control signal turns off metal-oxide-semiconductor control unit;When enable signal is the second enable signal, output control letterTurn on number metal-oxide-semiconductor control unit.
In the mobile terminal of described accurate detection charged state, the metal-oxide-semiconductor control unit includes PMOS.
In the charged state detection method of described mobile terminal, comprise the following steps:
A, the charging current of external charger input is detected;
B, when the charging current is the electric current of external charger filter capacitor release, the charging current is not exported;When the charging current is the electric current of non-external charger filter capacitor release, exports the charging current and charge the battery;
Whether C, detect the electricity of the positive pole of battery increases;
D, when the electricity does not increase, mobile terminal is made to show that battery is not charging;In the electricity increase, make shiftingDynamic terminal shows that battery charges.
In described charged state detection method, the step A is specifically included:The detection of charging current detection unit is outside to fillThe charging current of electrical equipment input, and reference current is exported to current comparator unit.
In described charged state detection method, the step B is specifically included:Current comparator unit compares external chargingThe charging current of device input and the size of reference current, when the charging current of external charger input is more than reference current, controlTriode control unit output charging current processed charges the battery;It is less than reference current in the charging current of external charger inputWhen, control triode control unit does not export charging current.
In described charged state detection method, the step C is specifically included:Charging voltage detection unit detection batteryWhether the electricity of positive pole increases, and when the electricity does not increase, exports the first enable signal to central processing unit;In the electricityDuring increase, the second enable signal is exported to central processing unit.
In described charged state detection method, the step D is specifically included:
D1, central processing unit receive enable signal, and when receiving the first enable signal, output control signal makes metal-oxide-semiconductorControl unit turns off;When receiving the second enable signal, output control signal turns on metal-oxide-semiconductor control unit;
D2, charging judging unit detection metal-oxide-semiconductor control unit break-make, when metal-oxide-semiconductor control unit turns off, make mobile wholeEnd shows that battery is not charging;When metal-oxide-semiconductor control unit turns on, mobile terminal is set to show that battery charges.
Compared to prior art, the mobile terminal of accurate detection charged state provided by the invention and charged state detection sideMethod, the charging current inputted by detecting external charger, the charging current that external charger filter capacitor discharges is isolated inIn charging current control module, the charging current of only non-external charger filter capacitor release can just be input to battery, to electricityPond is charged, and improves the accuracy of mobile terminal detection charged state, is also not in move even if pulling out charger after fully chargedDynamic terminal shows the situation for continuing charging.
Embodiment
The present invention provides a kind of mobile terminal and charged state detection method of accurate detection charged state, by outsideThe charging current of charger filter capacitor release is shielded, and improves the accuracy of charging detection.
To make the purpose of the present invention, technical scheme and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawingsThe present invention is further described.It should be appreciated that specific embodiment described herein is not used to only to explain the present inventionLimit the present invention.
Referring to Fig. 1, the mobile terminal of accurate detection charged state provided by the invention, including:Charging current controls mouldBlock 20, charging detecting model 30 and battery 40, external charger 10 connect battery 40 by the charging current control module 20,The charging detecting model 30 connects the positive pole of battery 40.
Wherein, the charging current control module 20, for detecting the charging current of the input of external charger 10, describedWhen charging current is the electric current of the filter capacitor of external charger 10 release, the charging current is not exported;In the charging currentFor non-external charger filter capacitor release electric current when, export the charging current and charged to battery 40.That is, described charging electricityFlow control module 20 is by the current shielding that external charger filter capacitor discharges outside battery 40, and only external charger 10 is normalThe charging current of output could charge to battery 40, not only ensured the safety that battery 40 charges, it also avoid pulling out chargerAfterwards, mobile terminal shows battery still in the situation of charging.
Charging detecting model 30, for detecting whether the electricity of positive pole of battery 40 increases, when the electricity does not increase,Mobile terminal is set to show that battery is not charging;In the electricity increase, mobile terminal is set to show that battery charges.Due to outerThe electric current of portion's charger filter capacitor release has been electrically charged current control module 20 and shielded, therefore charging detecting model 30 only needs to detectWhether the electricity of the positive pole of battery 40, which increases, can determine whether mobile terminal is charging.
Further, referring to Fig. 2, the charging current control module 20 includes:Charging current detection unit 210, electricityFlow comparator unit 220 and triode control unit 230.The external charger 10 connects the of current comparator unit 220One input 1, the external charger 10 also connect the of current comparator unit 220 by charging current detection unit 210Two inputs 2;The control signal input of the output end connecting triode control unit 230 of the current comparator unit 220;The external charger 10 also connects battery 40 by triode control unit 230.
The charging current detection unit 210, for detecting the charging current of the input of external charger 10, and export referenceElectric current is to current comparator unit 220.The reference current is used to separate normal charging current and external charger filtered electricalHold the charging current of release.The big I of the reference current is according to charging current when charging normal and the electric discharge of filter capacitorElectric current is determined.Generally, external charger from plug extract when, the electric current of its filter capacitor release generally in 100mA once, and justNormal charging current is typically larger than 100mA, therefore, it is preferable that the reference current chooses 100mA.Certainly, the reference current also may be usedTo choose other values, such as 1A, the present invention is not construed as limiting.
The current comparator unit 220, for comparing the charging current and reference current of the input of external charger 10Size, when the charging current that external charger 10 inputs is more than reference current, control triode control unit 230 exports chargingElectric current charges to battery 40, now thinks the electric current that charging current is the release of non-external charger filter capacitor;In external chargingWhen the charging current that device 10 inputs is less than reference current, control triode control unit 230 does not export charging current, now thinksCharging current is the electric current of external charger filter capacitor release.Wherein, the current comparator unit 220 compares including electric currentDevice.
The triode control unit 230, for the control according to current comparator module 220, export the charging electricityStream charges the battery.Wherein, the triode control unit 230 includes NPN triode.
Specifically, the external charger 10 connects the normal phase input end of current comparator, the charging current detection is singleThe inverting input of the output end connection current comparator of member 210, the output end connection NPN triode of the current comparatorBase stage, the colelctor electrode connection external charger 10 of the NPN triode, the emitter stage connection battery 40 of the NPN triode.
After charging current detection unit 210 detects the charging current I1 that external charger 10 inputs, reference current I2 is exportedTo the inverting input of current comparator, the normal phase input end input charging current I1 of the current comparator.Due to mobile wholeWhen charging normal, charging current I1 is more than reference current I2, therefore current comparator exports high level signal to NPN triode at endBase stage, turn on NPN triode, external charger 10 charges to battery 40.And external charger 10 from socket extraction after, outsideDuring portion charger filter capacitor release charging current I1, charging current I1 is less than reference current I2, therefore current comparator is defeatedGo out base stage of the low level signal to NPN triode, turn off NPN triode, external charger 10 can not charge to battery 40.
When the charging current control module 20 is charged normal using mobile terminal, charging current is higher, and external chargingWhen device filter capacitor discharges, the characteristics of charging current is relatively low, by comparing the size of charging current and reference current, realize fromThe function of dynamic identification charging current.
Referring to Fig. 3, the charging detecting model 30 includes:Charging voltage detection unit 310, central processing unit 320,Metal-oxide-semiconductor control unit 330 and charging judging unit 340.
The charging voltage detection unit 310, for detecting whether the electricity of positive pole of battery 40 increases, in the electricityWhen not increasing, the first enable signal is exported to central processing unit 320;In the electricity increase, export the second enable signal toCentral processing unit 320.
The central processing unit 320, for receiving the enable signal of the input of charging voltage detection unit 310, receivingDuring the first enable signal, output control signal turns off metal-oxide-semiconductor control unit 330;When receiving the second enable signal, outputControl signal turns on metal-oxide-semiconductor control unit 330.
The metal-oxide-semiconductor control unit 330, for the control signal according to central processing unit 320, shut-off or conducting charging are sentencedThe connection of disconnected unit 340 and central processing unit 330.The metal-oxide-semiconductor control unit 330 includes PMOS, the central processing unitSource electrode of 320 output voltages to PMOS, the drain electrode connection charging judging unit 340 of the PMOS, the central processing unitGrid level of 320 output control signals to PMOS, control the break-make of PMOS.
The charging judging unit 340, for detecting the break-make of metal-oxide-semiconductor control unit 330, in metal-oxide-semiconductor control unit 330During shut-off, mobile terminal is set to show that battery is not charging;When metal-oxide-semiconductor control unit 330 turns on, mobile terminal is set to show batteryCharge.
Further, the central processing unit 320 includes:Memory cell 321, command register unit 322 and processingDevice unit 323.
The memory cell 321, for storing the enable signal of the input of charging voltage detection unit 310.The storageDevice unit 321 includes memory.
The command register unit 322, the enable signal stored for register storage unit 321.The instruction is postedStorage unit 322 includes command register.
The processor unit 323, the enable signal deposited for call instruction register cell 322, in enable signalFor the first enable signal when, output control signal turns off metal-oxide-semiconductor control unit 330;It is the second enable signal in enable signalWhen, output control signal turns on metal-oxide-semiconductor control unit 330.
Referring to Fig. 4, the mobile terminal of the accurate detection charged state provided based on a upper embodiment, the present invention also providesA kind of charged state detection method of mobile terminal, include the mobile terminal of accurate detection charged state as described above, it is describedThe step of method, is as follows:
S10, the charging current of detection external charger input.Specifically, the charging current control module detection is outsideThe charging current of charger input.
S20, the charging current be external charger filter capacitor release electric current when, do not export it is described charging electricityStream;When the charging current is the electric current of non-external charger filter capacitor release, exports the charging current and filled to batteryElectricity.Specifically, the charging current control module the charging current be external charger filter capacitor release electric current when,The charging current is not exported;When the charging current is the electric current of non-external charger filter capacitor release, described in outputCharging current charges the battery.
Whether S30, the electricity for the positive pole for detecting battery increase.Specifically, the charging detecting model detection battery is justWhether the electricity of pole increases.
S40, when the electricity does not increase, make mobile terminal show battery do not charging;In the electricity increase, makeMobile terminal shows that battery charges.Specifically, the charging detecting model makes mobile terminal when the electricity does not increaseDisplay battery is not charging;In the electricity increase, mobile terminal is set to show that battery charges.
Wherein, the step S10 is specifically included:The charging of the charging current detection unit detection external charger inputElectric current, and reference current is exported to current comparator unit.
The step S20 is specifically included:The current comparator unit compare external charger input charging current andThe size of reference current, when the charging current of external charger input is more than reference current, control triode control unit is defeatedGo out charging current to charge the battery;When the charging current of external charger input is less than reference current, control triode controlUnit does not export charging current.
The step S30 is specifically included:Whether the electricity of the positive pole of the charging voltage detection unit detection battery increases,When the electricity does not increase, the first enable signal is exported to central processing unit;In the electricity increase, output second is enabledSignal is to central processing unit.
Referring to Fig. 5, the step S40 is specifically included:
S410, central processing unit receive enable signal, and when receiving the first enable signal, output control signal makes MOSPipe control unit turns off;When receiving the second enable signal, output control signal turns on metal-oxide-semiconductor control unit.
S420, the charging judging unit detection metal-oxide-semiconductor control unit break-make, when metal-oxide-semiconductor control unit turns off, makeMobile terminal shows that battery is not charging;When metal-oxide-semiconductor control unit turns on, mobile terminal is set to show that battery charges.
Because the principle and detail technical features of the charged state detection method have elaborated in a upper embodiment,It will not be repeated here.
It is understood that for those of ordinary skills, can be with technique according to the invention scheme and its hairBright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the inventionProtect scope.