CN105305558B - A kind of battery charge controller and method of adaptive adapter - Google Patents

A kind of battery charge controller and method of adaptive adapter Download PDF

Info

Publication number
CN105305558B
CN105305558B CN201510794396.6A CN201510794396A CN105305558B CN 105305558 B CN105305558 B CN 105305558B CN 201510794396 A CN201510794396 A CN 201510794396A CN 105305558 B CN105305558 B CN 105305558B
Authority
CN
China
Prior art keywords
adapter
preset
comparison result
voltage
charging
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
Application number
CN201510794396.6A
Other languages
Chinese (zh)
Other versions
CN105305558A (en
Inventor
何鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chuangwei Electronic Appliance Tech Co Ltd
Original Assignee
Shenzhen Chuangwei Electronic Appliance Tech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangwei Electronic Appliance Tech Co Ltd filed Critical Shenzhen Chuangwei Electronic Appliance Tech Co Ltd
Priority to CN201510794396.6A priority Critical patent/CN105305558B/en
Publication of CN105305558A publication Critical patent/CN105305558A/en
Application granted granted Critical
Publication of CN105305558B publication Critical patent/CN105305558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a kind of battery charge controller and method of adaptive adapter, by when adapter accesses, reading the voltage value of adapter output;Judge comparison result whether in preset threshold range compared with predeterminated voltage the voltage value of adapter output later;When comparison result is in preset threshold range, according to current charging current for charging;When comparison result is not in preset threshold range; preset charged electric current is then increasedd or decreased every time; and continue the voltage value by reading compared with predeterminated voltage; until comparison result is in preset threshold range; the maximum charging current that adapter can provide can be obtained while not triggering adapter overload and protecting; so as to the adapter of adaptive different model, perfection solves the compatibling problem between mobile terminal and different model adapter.

Description

A kind of battery charge controller and method of adaptive adapter
Technical field
The present invention relates to mobile terminal charging technique field, more particularly to a kind of battery charge controller of adaptive adapter And method.
Background technology
As the popularity rate that equipment is moved in development in science and technology at present is higher and higher, and move equipment usually makes in use With battery powered, so adapter would generally be equipped with so that the adapter in consumer's hand is also more and more, due to mobile equipment The speed of update is fast, and the frequency that consumer replaces mobile equipment also increases, this is undoubtedly also increased in consumer's hand The quantity of adapter, since adapter model excessively can not be carried all simultaneously, it is likely that cause because of adapter specification not It compatible cannot equally and with mobile equipment use, and improper use is it is possible that send the danger such as fire.
To solve this compatibling problem, the prior art is usually transformed adapter, such as overcurrent protection, short-circuit protection etc. Processing, such processing ensure that safety, but make adapter that cannot use completely in some cases simultaneously, and such as mobile equipment is set The charging current put is more than the situation of adapter output-current rating, for mobile device end, it will usually set maximum charging Electric current, this maximum current are typically according to the feature of mobile equipment, such as charging chip, battery, hardware PCB and standard configuration adapter Etc. determining, without considering how compatible non-standard configuration adapter.
Thus the prior art could be improved and improve.
Invention content
Part in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of chargings of adaptive adapter Control device and method can obtain the maximum charging current that adapter can provide while not triggering adapter overload and protecting, So as to the adapter of adaptive different model, perfection solves the compatibling problem between mobile terminal and different model adapter.
In order to achieve the above object, this invention takes following technical schemes:
A kind of charge control method of adaptive adapter, includes the following steps:
When adapter accesses, the voltage value of adapter output is read;
By the voltage value of adapter output compared with predeterminated voltage, judge comparison result whether in preset threshold range;
If comparison result is in preset threshold range, according to current charging current for charging;If comparison result is not default In threshold range, then preset charged electric current is increasedd or decreased every time, and continue the voltage value by reading compared with predeterminated voltage;
The comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
The preset threshold range is set as -1%~1%, i.e., and described preset lower limit value and preset upper limit value be respectively set to - 1% and 1%;
If the comparison result is in preset threshold range, according to current charging current for charging;If comparison result does not exist In preset threshold range, then preset charged electric current is increasedd or decreased every time, and continue the voltage value of reading and predeterminated voltage ratio Compared with the step of include:
When comparison result is more than preset upper limit value, increase the charging of preset charged electric current every time, and continue the electricity of reading Pressure value is compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce the charging of preset charged electric current every time, and continue By the voltage value of reading compared with predeterminated voltage;When comparison result is more than or equal to preset lower limit value and less than or equal to preset upper limit value When, according to current charging current for charging;
It is described when adapter accesses, read adapter output voltage value the step of include:
Interruption is generated when adapter accesses;
The voltage value exported by ADC mouthfuls of reading adapters;
It is described when adapter accesses, read adapter output voltage value the step of before, further include:
Register preset adapter access and the interrupt function extracted;
After described the step of generating interruption when adapter accesses, it is described by ADC mouthful reading adapters output Before the step of voltage value, further include:
Charge closing function;
The preset charged electric current is 50mA.
A kind of battery charge controller of adaptive adapter connects with the charge management module and adapter of mobile terminal It connects, including:
Read module, for when adapter accesses, reading the voltage value of adapter output;
Whether multilevel iudge module, the voltage value for adapter to be exported judge comparison result compared with predeterminated voltage In preset threshold range;
Control module, for when comparison result is in preset threshold range, according to current charging current for charging;When comparing When as a result not in preset threshold range, then increased or decrease preset charged electric current every time, and continue by the voltage value of reading with Predeterminated voltage compares;
The comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
The preset threshold range is set as -1%~1%, i.e., and described preset lower limit value and preset upper limit value be respectively set to - 1% and 1%;
The control module is specifically used for when comparison result is more than preset upper limit value, increases preset charged electric current every time and fills Electricity, and continue the voltage value by reading compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce every time pre- If charging current for charging, and continue the voltage value by reading compared with predeterminated voltage;When comparison result is more than or equal to pre-determined lower limit When being worth and being less than or equal to preset upper limit value, according to current charging current for charging;
The read module includes interrupt location and ADC reading units, and the control module further includes charging control unit, The interrupt location is used to generate interruption when adapter accesses;The ADC reading units are used to pass through ADC mouthfuls of reading adapters The voltage value of output;The charging control unit is used for after generating interruption when adapter accesses, and is read and is adapted to by ADC mouthfuls Charge closing function before the voltage value of device output;
The interrupt location registers with preset adapter access and the interrupt function extracted;
The preset charged electric current is 50mA.
In the battery charge controller of the adaptive adapter, including:Main control chip, power management chip, adapter Interface, battery interface, first resistor, second resistance, 3rd resistor, the 4th resistance, the 5th resistance, the first capacitance, the second capacitance, Third capacitance, the 4th capacitance and triode, the read module, multilevel iudge module and control module are integrated in the master control core In piece;Main control chip is connect by I2C buses with power management chip, the collection of the GPIO1_C0 ends connecting triode of main control chip Electrode, the USB ends of SARDC_ANI0 ends connection power management chip of main control chip and one end of the second capacitance, are also connected with first One end of resistance and the USBD ends of adaptor interface, the other end ground connection of second capacitance, the other end of the first resistor Be grounded by second resistance, also by the first capacity earth, be also connected with the base stage of triode, the emitter of the triode connects Ground, the GND ends ground connection of the adaptor interface;The I2C4_SDA ends and I2C4_SCL ends of main control chip connect power management respectively The SDA ends of chip and SCL ends, the power management chip BAT ends connection VBAT feeder ears and battery interface BAT+ ends with And the 4th capacitance one end, the other end ground connection of the 4th capacitance is also connected with one end of 3rd resistor, the 3rd resistor The other end connects the TS1 ends of power management chip, and one end of the SNSP ends connection third capacitance of the power management chip also leads to 4th resistance eutral grounding, the BAT- ends for being also connected with battery interface, the other end connection power management chip of the third capacitance SNSN ends also pass through the 5th resistance eutral grounding.
Compared to the prior art, the battery charge controller and method of adaptive adapter provided by the invention, charging control Device processed includes read module, multilevel iudge module and control module, by read module when adapter accesses, reads adapter The voltage value of output;For the voltage value for later being exported adapter by multilevel iudge module compared with predeterminated voltage, knot is compared in judgement Whether fruit is in preset threshold range;By control module when comparison result is in preset threshold range, according to current charging electricity Current charge;When comparison result is not in preset threshold range, then preset charged electric current is increasedd or decreased every time, and continue to read The voltage value taken is compared with predeterminated voltage, until comparison result is in preset threshold range, can be protected not trigger adapter overload The maximum charging current that adapter can provide is obtained while shield, so as to the adapter of adaptive different model, perfection solves Compatibling problem between mobile terminal and different model adapter.
Description of the drawings
Fig. 1 is the flow chart of the charge control method of adaptive adapter provided by the invention;
Fig. 2 is the structure diagram of the battery charge controller of adaptive adapter provided by the invention;
Fig. 3 is the circuit diagram of the battery charge controller of adaptive adapter provided by the invention.
Specific embodiment
In view of non-standard configuration adapter may be because that its output-current rating is less than movement in use in the prior art The charging current of terminal and triggering adapter overcurrent protection leads to its non-serviceable shortcoming, the purpose of the present invention is to provide one The battery charge controller and method of the adaptive adapter of kind can obtain adapter energy while adapter overload protection is not triggered The maximum charging current of offer, so as to the adapter of adaptive different model, perfection solves mobile terminal and is fitted with different model Compatibling problem between orchestration.
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is not used to only to explain the present invention Limit the present invention.
Referring to Fig. 1, the charge control method of adaptive adapter provided by the invention includes the following steps:
S100, when adapter accesses, read adapter output voltage value;
Whether S200, the voltage value for exporting adapter judge comparison result in predetermined threshold value model compared with predeterminated voltage In enclosing;
If comparison result in preset threshold range, performs step S300, according to current charging current for charging;If compare knot Fruit performs step S301, increaseds or decreases preset charged electric current every time, later return to step not in preset threshold range S200 continues the voltage value by reading compared with predeterminated voltage.
Specifically, when comparison result is more than preset upper limit value, increase the charging of preset charged electric current every time, return to step later Rapid S200 continues the voltage value by reading compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce every time pre- If charging current for charging, return to step S200, continues the voltage value by reading compared with predeterminated voltage later;Until comparison result During more than or equal to preset lower limit value and less than or equal to preset upper limit value, step S300 is performed, according to current charging current for charging.
The present invention is by when adapter accesses, reading the voltage value of adapter output, the voltage value that adapter is exported Compared with preset voltage value, increase preset charged electric current every time according to comparison result or reduction subsequent resume studies of preset charged electric current takes The voltage value of adapter output, until the voltage value of adapter output and the comparison result of predeterminated voltage are more than or equal to pre-determined lower limit Value and less than or equal to preset upper limit value, i.e., in preset threshold range when, then preserving current charging current can carry for adapter The maximum charging current of confession enters general charging procedure and charges for mobile terminal, later so as to ensure during subsequent charge Charging current do not exceed the available maximum charging current of adapter, it is ensured that the safety of charging, while realize not The adapter of adaptive different model under the premise of adapter overload is protected is triggered, improves the compatibility to adapter.
When it is implemented, the comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
Preset threshold range is set as [- 1%, 1%] as will be described, i.e., described preset lower limit value and preset upper limit value are set respectively - 1% and 1% are set to, after the voltage value for having read adapter output compared with predeterminated voltage, and compares knot by above-mentioned formula calculating Fruit a, if comparison result a>1% increases the charging of preset charged electric current, and continues the voltage value by reading compared with predeterminated voltage, If comparison result still greater than 1%, continues to increase the charging of preset charged electric current, until comparison result -1%≤a≤1%;If compare As a result a<- 1% reduces the charging of preset charged electric current, and continues the voltage value by reading compared with predeterminated voltage, if comparing knot Fruit then continues to reduce the charging of preset charged electric current, until the voltage value of reading and the comparison result -1% of predeterminated voltage still less than 1% ≤ a≤1% then preserves current charging current as the available maximum charging current of adapter, later into general charging procedure It charges for mobile terminal according to current charging current, it is achieved thereby that available maximum current detects to adapter, protects Card charging current does not exceed the output-current rating of adapter, wherein, the preset charged electric current is set as 50mA, i.e., every time Charging current is increasedd or decreased after multilevel iudge at regular intervals, the safety of electric current can be provided by improving test adapter maximum Property, certainly, the preset lower limit value, preset upper limit value and preset charged electric current can be set according to actual needs, and the present invention is to this It is not construed as limiting.
Specifically, it is described when adapter accesses, read adapter output voltage value the step of include:When adapter connects It is fashionable to generate interruption;The voltage value exported later by ADC mouthfuls of reading adapters, adapter is had registered in main control chip system Access and the interrupt function extracted, interrupt function is called when there is adapter access interrupts so as to generate, can accurate judgement fit Whether orchestration connect with mobile terminal, the voltage value that adapter exports accurately is read by the ADC of main control chip mouths later, after being Continuous voltage multilevel iudge process provides reliable voltage value.
Further, in the charge control method of adaptive adapter provided by the invention, described when adapter accesses When the step of generating interruption after, it is described exported by ADC mouthful reading adapters voltage value the step of further include before:It closes Charge function.I.e. after adapter accesses and generates interruption, the charge function of first turning-off mobile terminal reads and compares adaptation Comparison result is obtained after the voltage value of device output, if comparison result is more than preset upper limit value, increases default fill since 0 Electric current charges, until obtaining the available maximum charging current of adapter, it is ensured that during preset charged electric current is increased The exportable limit of power of adapter is not exceeded, ensure that charging safety.
Below in conjunction with Fig. 1, by taking mobile terminal is tablet computer as an example, the charging to adaptive adapter provided by the invention Control method is described in detail.
When adapter accesses tablet computer, system is interrupted in triggering master control, interrupt function is called to be interrupted so as to generate, and close The charge function of tablet computer is closed, the voltage value that adapter exports at this time is read by the ADC mouths for being connected to adapter, is fitted After the voltage of orchestration compared with predeterminated voltage, calculated with formula a=(voltage-predeterminated voltage of adapter output)/predeterminated voltage Go out comparison result, i.e. relative difference between the voltage and predeterminated voltage of adapter, when comparison result a is more than preset upper limit value such as 1%, then increase preset charged electric current since 0, as increased 50mA every time, and increase preset charged electric current every time and read again later Take the voltage of adapter, and the voltage for continuing to read again is compared with predeterminated voltage, if comparison result a still above 1%, then continue to repeat:Increase the voltage of preset charged electric current-reading adapter-with predeterminated voltage relatively obtain comparison result this One process;
When comparison result a is less than preset lower limit value such as -1%, then reduces preset charged electric current, such as reduce 50mA every time, and every The voltage of adapter is read again, and continue the voltage and predeterminated voltage that will be read again after secondary reduction preset charged electric current Compare, continue to repeat if comparison result a is still less than -1%:The voltage of reduction preset charged electric current-reading adapter-with Predeterminated voltage relatively obtains this process of comparison result;
Continuous repetitive cycling above two process, until comparison result a is more than or equal to lower limiting value -1% and less than or equal to the upper limit Current charging current is then saved as the available maximum charging current of adapter by value 1%, later by charge management module into Enter general charging procedure to charge by tablet computer of current charging current.
The present invention correspondingly provides a kind of battery charge controller of adaptive adapter, referring to Fig. 2, described adaptive suitable The battery charge controller of orchestration includes read module 10, multilevel iudge module 20 and control module 30, the read module 10, ratio It is sequentially connected compared with judgment module 20 and control module 30.The charge management module 40 of the battery charge controller and mobile terminal and Adapter 50 connects, for controlling the charging process of adapter 50 and mobile terminal.
The read module 10 is connect with adapter 50, and the control module 30 is connect with charge management module 40, wherein, The read module 10 is used for when adapter 50 accesses, and reads the voltage value that adapter 50 exports;The multilevel iudge module 20 voltage value for adapter 50 to be exported judges whether comparison result is more than or equal to preset lower limit value compared with predeterminated voltage And less than or equal to preset upper limit value;The control module 30 for comparison result in preset threshold range when, according to currently filling Electric current charges;When comparison result is not in preset threshold range, then preset charged electric current is increasedd or decreased every time, and continue By the voltage value of reading compared with predeterminated voltage.
Specifically, the control module 30 is used to, when comparison result is more than preset upper limit value, increase preset charged every time Electric current charges, and continues the voltage value by reading compared with predeterminated voltage;When comparison result is less than preset lower limit value, subtract every time Small preset charged electric current charging, and continue the voltage value by reading compared with predeterminated voltage;It is preset when comparison result is more than or equal to Lower limiting value and less than or equal to preset upper limit value when, according to current charging current for charging.Referring specifically to above-mentioned charge control method Corresponding embodiment.
The present invention reads the voltage value that adapter 50 exports by when adapter 50 accesses, by read module 10, by than Compared with preset voltage value, control module 30 increases voltage value adapter 50 exported compared with judgment module 20 according to comparison result Preset charged electric current reduces the subsequent voltage value that adapter 50 is taken to export of resuming studies of preset charged electric current, until adapter 50 exports Voltage value and the comparison result of predeterminated voltage be more than or equal to preset lower limit value and less than or equal to preset upper limit value, i.e., in default threshold When in the range of value, then current charging current is preserved as 50 available maximum charging current of adapter, notifies charging valve later It manages module 40 and enters general charging procedure using current charging current as mobile terminal charging, so as to ensure in subsequent charge process In charging current do not exceed 50 available maximum charging current of adapter, it is ensured that the safety of charging realizes simultaneously The adapter 50 of adaptive different model, improves to the simultaneous of adapter 50 under the premise of 50 overload protection of adapter is not triggered Capacitive.Referring specifically to the corresponding embodiment of above-mentioned charge control method.
When it is implemented, the comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
Specific embodiment has been described in detail in above method embodiment, is not described further herein.
The preset charged electric current is set as 50mA, i.e., increaseds or decreases charging electricity after each multilevel iudge at regular intervals Stream, the safety of electric current can be provided by improving test adapter maximum, and certainly, the preset charged electric current can be according to actual needs Setting, this is not limited by the present invention.
Please continue to refer to Fig. 2, the read module 10 includes interrupt location 101 and ADC reading units 102, the interruption Unit 101 and ADC reading units 102 are connect with adapter 50, and the interrupt location 101 is used to generate when adapter 50 accesses It interrupts, whether is connect so as to accurate judgement adapter with mobile terminal;The ADC reading units 102 are used for through ADC mouthfuls of readings The voltage value that adapter 50 is taken to export, reliable voltage value is provided for subsequent voltage multilevel iudge process.Referring specifically to upper State the corresponding embodiment of charge control method.
Further, the control module 30 further includes charging control unit 301, is connect with charge control module 40, institute After charging control unit 301 is stated for generating interruption when adapter 50 accesses, exported by ADC mouthfuls of reading adapters 50 Charge closing function before voltage value, i.e., after adapter 50 accesses and generates interruption, the charging work(of first turning-off mobile terminal Can, after reading and comparing the voltage value of the output of adapter 50 and obtain comparison result, if comparison result is more than preset upper limit value, Increase the charging of preset charged electric current since 0, until obtaining 50 available maximum charging current of adapter, it is ensured that pre- increasing If not exceeding the exportable limit of power of adapter 50 during charging current, charging safety ensure that.Please specifically it join Read the corresponding embodiment of above-mentioned charge control method.
Specifically, referring to Fig. 3, it is the circuit diagram of the battery charge controller of adaptive adapter provided by the invention, Including:Main control chip U1, power management chip U2, adaptor interface J1, battery interface J2, first resistor R1, second resistance R2, 3rd resistor R3, the 4th resistance R4, the 5th resistance R5, the first capacitance C1, the second capacitance C2, third capacitance C3, the 4th capacitance C4 With triode Q1.
Wherein, read module 10, multilevel iudge module 20 and control module 30 are integrated in the main control chip U1, master control Chip U1 is connect by I2C buses with power management chip U2, and the processing of model RK3066 can be used in the main control chip U1 Device charges the battery for calculating the algorithm of the available maximum charging current of adapter and setting power management chip U2 Charging current, the power management chip U2 use model RK818 integrated chip, be internally integrated Charge Management mould Block.
The collector of the GPIO1_C0 ends connecting triode Q1 of the main control chip U1, the SARDC_ANI0 of main control chip U1 The USB ends of end connection power management chip U2 and one end of the second capacitance C2 are also connected with one end and the adapter of first resistor R1 The USBD ends of interface J1, the other end ground connection of the second capacitance C2, the other end of the first resistor R1 pass through second resistance R2 ground connection, the base stage for being grounded, being also connected with triode Q1 also by the first capacitance C1, the emitter ground connection of the triode Q1, institute State the GND ends ground connection of adaptor interface J1.Wherein, the GPIO1_C0 ends of the main control chip U1 are middle fracture, in master control Chip U1 adapters into and out when generate interruption, the SARDC_ANI0 ends of the main control chip U1 are ADC mouthfuls, for adopting Collect the output voltage of adapter, main control chip U1 can directly read the voltage value of adapter, three pole from SARDC_ANI0 ends Pipe Q1 is NPN type triode, and the first capacitance C1 is mainly played a filtering role, and makes main control chip U1 that can obtain stable output electricity Pressure.
Please continue to refer to Fig. 3, the I2C4_SDA ends and I2C4_SCL ends of the main control chip U1 connect power management respectively The SDA ends of chip U2 and SCL ends, the BAT ends connection VBAT feeder ears of the power management chip U2 and the BAT of battery interface J2 + end and one end of the 4th capacitance C4, the other end ground connection of the 4th capacitance C4, the one end for being also connected with 3rd resistor R3, institute State the TS1 ends of the other end connection power management chip U2 of 3rd resistor R3, the SNSP ends connection of the power management chip U2 One end of third capacitance C3, the BAT- ends for also leading to the 4th resistance R4 ground connection, being also connected with battery interface J2, the third capacitance C3's The SNSN ends of other end connection power management chip U2, are also grounded by the 5th resistance R5, the electricity of the third capacitance C3 and the 4th Hold C4 mainly to play a filtering role, stable charging current is provided for battery interface J2.
When detecting that USB is inserted into, triode Q3 conductings make main control chip U1 generate interruption, by main control chip U1's After the output voltage of adaptor interface J1 is read at SARDC_ANI0 ends, power management chip U2 is controlled to be filled to battery as stated above Electricity.
In conclusion the battery charge controller and method of adaptive adapter provided by the invention include read module, ratio Compared with judgment module and control module, by read module when adapter accesses, the voltage value of adapter output is read;Later by than Voltage value adapter exported compared with judgment module judges whether comparison result is more than or equal to pre-determined lower limit compared with predeterminated voltage It is worth and less than or equal to preset upper limit value;By control module when comparison result is more than preset upper limit value, increase preset charged electric current Charging, and continue the voltage value by reading compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce default fill Electric current charges, and continues the voltage value by reading compared with predeterminated voltage;Comparison result be more than or equal to preset lower limit value and According to current charging current for charging during less than or equal to preset upper limit value, can be obtained while adapter overload protection is not triggered suitable The maximum charging current that orchestration can provide, so as to adaptive different model adapter, perfection solve mobile terminal from it is different Compatibling problem between style adapter.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills Bright 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 invention Protect range.

Claims (3)

1. a kind of charge control method of adaptive adapter, which is characterized in that include the following steps:
When adapter accesses, the voltage value of adapter output is read;
By the voltage value of adapter output compared with predeterminated voltage, judge comparison result whether in preset threshold range;
If comparison result is in preset threshold range, according to current charging current for charging;If comparison result is not in predetermined threshold value In the range of, then preset charged electric current is increasedd or decreased every time, and continues the voltage value by reading compared with predeterminated voltage;
The comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
The preset threshold range is set as -1%~1%, i.e., described preset lower limit value and preset upper limit value be respectively set to -1% and 1%;
If the comparison result is in preset threshold range, according to current charging current for charging;If comparison result is not default In threshold range, then preset charged electric current is increasedd or decreased every time, and continue the voltage value by reading compared with predeterminated voltage Step includes:
When comparison result is more than preset upper limit value, increase the charging of preset charged electric current every time, and continue the voltage value of reading Compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce the charging of preset charged electric current every time, and continue to read The voltage value taken is compared with predeterminated voltage;When comparison result is more than or equal to preset lower limit value and is less than or equal to preset upper limit value, According to current charging current for charging;
It is described when adapter accesses, read adapter output voltage value the step of include:
Interruption is generated when adapter accesses;
The voltage value exported by ADC mouthfuls of reading adapters;
It is described when adapter accesses, read adapter output voltage value the step of before, further include:
Register preset adapter access and the interrupt function extracted;
After described the step of generating interruption when adapter accesses, the voltage exported by ADC mouthfuls of reading adapters Before the step of value, further include:
Charge closing function;
The preset charged electric current is 50mA.
2. a kind of battery charge controller of adaptive adapter, connect with the charge management module and adapter of mobile terminal, It is characterised in that it includes:
Read module, for when adapter accesses, reading the voltage value of adapter output;
Whether multilevel iudge module, the voltage value for adapter to be exported judge comparison result pre- compared with predeterminated voltage If in threshold range;
Control module, for when comparison result is in preset threshold range, according to current charging current for charging;Work as comparison result When not in preset threshold range, then preset charged electric current is increasedd or decreased every time, and continue the voltage value of reading with presetting Voltage compares;
The comparison result is obtained by the following formula:
A=(voltage-predeterminated voltage of adapter output)/predeterminated voltage;
The preset threshold range is set as -1%~1%, i.e., described preset lower limit value and preset upper limit value be respectively set to -1% and 1%;
The control module is specifically used for, when comparison result is more than preset upper limit value, increasing the charging of preset charged electric current every time, And continue the voltage value by reading compared with predeterminated voltage;When comparison result is less than preset lower limit value, reduce default fill every time Electric current charges, and continues the voltage value by reading compared with predeterminated voltage;When comparison result be more than or equal to preset lower limit value and During less than or equal to preset upper limit value, according to current charging current for charging;
The read module includes interrupt location and ADC reading units, and the control module further includes charging control unit, described Interrupt location is used to generate interruption when adapter accesses;The ADC reading units are used to export by ADC mouthfuls of reading adapters Voltage value;The charging control unit is used for after generating interruption when adapter accesses, defeated by ADC mouthfuls of reading adapters Charge closing function before the voltage value gone out;
The interrupt location registers with preset adapter access and the interrupt function extracted;
The preset charged electric current is 50mA.
3. the battery charge controller of adaptive adapter according to claim 2, which is characterized in that including:Main control chip, Power management chip, adaptor interface, battery interface, first resistor, second resistance, 3rd resistor, the 4th resistance, the 5th electricity Resistance, the first capacitance, the second capacitance, third capacitance, the 4th capacitance and triode, the read module, multilevel iudge module and control Molding block is integrated in the main control chip;Main control chip is connect by I2C buses with power management chip, main control chip The collector of GPIO1_C0 ends connecting triode, main control chip SARDC_ANI0 ends connection power management chip USB ends and One end of second capacitance is also connected with one end of first resistor and the USBD ends of adaptor interface, the other end of second capacitance Ground connection, the other end of the first resistor is grounded by second resistance, also by the first capacity earth, be also connected with the base of triode Pole, the emitter ground connection of the triode, the GND ends ground connection of the adaptor interface;The I2C4_SDA ends of main control chip and I2C4_SCL ends connect the SDA ends of power management chip and SCL ends, the BAT ends connection VBAT of the power management chip respectively The one end at the BAT+ ends and the 4th capacitance of feeder ear and battery interface, the other end ground connection of the 4th capacitance are also connected with the One end of three resistance, the TS1 ends of the other end connection power management chip of the 3rd resistor, the power management chip One end of SNSP ends connection third capacitance also leads to the 4th resistance eutral grounding, the BAT- ends for being also connected with battery interface, the third capacitance The other end connection power management chip SNSN ends, also pass through the 5th resistance eutral grounding.
CN201510794396.6A 2015-11-18 2015-11-18 A kind of battery charge controller and method of adaptive adapter Active CN105305558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510794396.6A CN105305558B (en) 2015-11-18 2015-11-18 A kind of battery charge controller and method of adaptive adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510794396.6A CN105305558B (en) 2015-11-18 2015-11-18 A kind of battery charge controller and method of adaptive adapter

Publications (2)

Publication Number Publication Date
CN105305558A CN105305558A (en) 2016-02-03
CN105305558B true CN105305558B (en) 2018-06-19

Family

ID=55202473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510794396.6A Active CN105305558B (en) 2015-11-18 2015-11-18 A kind of battery charge controller and method of adaptive adapter

Country Status (1)

Country Link
CN (1) CN105305558B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106300501B (en) * 2016-07-26 2019-02-12 Oppo广东移动通信有限公司 A kind of adapter recognition methods and intelligent mobile terminal
CN106786843B (en) * 2016-11-24 2019-09-20 惠州Tcl移动通信有限公司 A kind of method of adjustment and system, electric terminal of charging current
CN108736527A (en) 2017-04-18 2018-11-02 中兴通讯股份有限公司 A kind of charge control method, power supply adaptor and mobile terminal
US11014462B2 (en) * 2017-11-02 2021-05-25 Lear Corporation Methodology of maximizing charging power transfer for electric vehicle when AC voltage sags
CN110622388A (en) * 2018-03-19 2019-12-27 深圳市大疆创新科技有限公司 Charging method and charger
CN108808783B (en) * 2018-06-22 2021-06-15 深圳市自然门科技有限公司 Dynamic charging current control method for programmable charging chip and charging system
CN110932340A (en) * 2018-09-19 2020-03-27 Oppo广东移动通信有限公司 Charging method, split terminal and computer storage medium
CN110702968B (en) * 2019-11-15 2022-07-19 新疆东方希望新能源有限公司 Grounding current grading detection method for power supply system of polycrystalline silicon reduction furnace
WO2022036514A1 (en) * 2020-08-17 2022-02-24 华为数字能源技术有限公司 Charging circuit, terminal device, adapter, and charging system and method
CN113991779A (en) * 2021-10-27 2022-01-28 北京小米移动软件有限公司 Charging method, charging device, electronic equipment and storage medium
CN114256932B (en) * 2021-12-27 2024-04-12 上海商米科技集团股份有限公司 Power distribution method and system for charging base

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6300744B1 (en) * 2000-02-10 2001-10-09 Siliconix Incorporated High-efficiency battery charger
CN102255369A (en) * 2010-05-18 2011-11-23 凹凸电子(武汉)有限公司 Electronic system and devices, and method for controlling parallel powering of electrical devices
CN103501023A (en) * 2013-08-23 2014-01-08 苏州佳世达电通有限公司 Charging circuit
CN104756356A (en) * 2013-07-18 2015-07-01 联发科技股份有限公司 Method, charger device, and adaptor capable of maximum output power point tracking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6300744B1 (en) * 2000-02-10 2001-10-09 Siliconix Incorporated High-efficiency battery charger
CN102255369A (en) * 2010-05-18 2011-11-23 凹凸电子(武汉)有限公司 Electronic system and devices, and method for controlling parallel powering of electrical devices
CN104756356A (en) * 2013-07-18 2015-07-01 联发科技股份有限公司 Method, charger device, and adaptor capable of maximum output power point tracking
CN103501023A (en) * 2013-08-23 2014-01-08 苏州佳世达电通有限公司 Charging circuit

Also Published As

Publication number Publication date
CN105305558A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
CN105305558B (en) A kind of battery charge controller and method of adaptive adapter
CN104242372B (en) The charging method and electronic cigarette packet of electronic cigarette
CN203387203U (en) Charging switching system possessing USB on-the-go (OTG) function
CN103427460B (en) A kind of power supply terminal, charge control method and device
CN102223439B (en) Electronic equipment with USB interface and USB communication starting method thereof
CN203398771U (en) Over-current and over-voltage protection circuit for electronic cigarette
CN103633709A (en) Charge recognition system and method
CN104101808B (en) Charger detection system and its detection method and mobile terminal
CN107643998A (en) OTG and the difunctional system that charges are realized based on intelligent object
CN104092262B (en) Charging control device and charging control method
CN201937301U (en) Integrated circuit for charging and discharging management on battery pack serially connected by multiple lithium batteries
CN202798035U (en) Charging mode detection circuit and mobile terminal
CN202309997U (en) Set top box capable of charging access device
CN107346912A (en) A kind of management of charging and discharging integrates IC
CN202153645U (en) Electric device based on OTG interface charging
CN102087639B (en) Method for starting USB (Universal Serial Bus) state machine as well as terminal
CN207339255U (en) A kind of USB port protects circuit
CN208656444U (en) Wireless headset charging box with mobile phone charging function
CN209642342U (en) Overvoltage crowbar and electronic equipment
CN205104922U (en) Lithium cell intelligent charging circuit with multiple protect function
CN104104058A (en) Temperature protection device of power management chip and mobile terminal
CN208369280U (en) A kind of lithium battery protection circuit
CN206595737U (en) A kind of lithium battery charging system
CN205753547U (en) A kind of garden instrument specialized lithium battery powdered device
CN208738892U (en) A kind of lithium battery charging management circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant