A kind of portable power source and its loop control chip
Technical field
The invention belongs to portable power source design field, more particularly to a kind of portable power source and its loop control chip.
Background technology
With the popularization of smart mobile phone, the rechargeable standard of mobile phone is more and more, but based on different application demands, with not
With rechargeable standard mobile phone by Long Coexistence in market, this proposes new requirement to portable power source, that is, requires portable power source
Distinct interface can support different rechargeable standards.For example, it is desirable to which the USB Type-A interfaces of standard support common 5V charging moulds
Formula supports fast mold filling formula, it is desirable to which USB Type-C interfaces support Type-C standard chargings pattern or fast mold filling formula, it is desirable to USB-
Mini B interface supports common 5v charge modes or fast mold filling formula.
Demand above, embodies onto the implementation of portable power source, it is desirable to different types of interface(USB Type-A
Interface, USB-mini B interface, USB Type-C interfaces etc.)Powered using independent power supply control loop, in response to client
The requirement of product, adjusts the function combination of each interface.
If Fig. 1 is the system architecture diagram of the typical portable power source with a charging inlet.Wherein, charging and mistake
Fill/over-discharge protection circuit is used in the electric process that charged to battery, prevent from damaging because overcharging or crossing to be rivals in a contest caused by power-supply battery;For
Fulgurite reason circuit is used to be managed cell voltage, and is powered to master controller;Battery power detection circuit is used for master control
Device processed provides cell voltage;Electric quantity of power supply display circuit is used to show battery electric quantity;Exporting booster circuit is used for cell voltage
Boost to voltage needed for interface;Output voltage detecting circuit is used to detect interface power voltage, when detection does not have voltage, master control
Device processed causes breaking protection circuit to remain turned-off, and portable power source does not have voltage output, when detection has voltage(Charging i.e. in need
Equipment)When, master controller causes breaking protection circuit to open, so, and portable power source can just complete what equipment was charged
Purpose.
For the portable power source with two different types of charging inlets, by the civil power in Fig. 1 to 5V reduction voltage circuits, fill
Electricity and overcharge/over-discharge protection circuit, power supply management circuit, battery power detection circuit, electric quantity of power supply display circuit, output boosting
Circuit, breaking protection circuit, output voltage detecting circuit as master controller peripheral hardware, it is certainly, different according to the actual requirements, outside
If can also increase new functional circuit or deletion which part circuit, accordingly, Fig. 2 shows the movement with two charging inlets
The system architecture sketch of power supply.It can be seen that, for interface A, it is necessary to by master controller A add the control loop chip A that peripheral hardware A is constituted Lai
Power supply, for interface B, it is necessary to be powered by master controller B adds the control loop chip B that peripheral hardware B is constituted, i other words, inhomogeneity
The interface of type is powered using independent control loop chip, will certainly so increase the manufacturing cost of product, and component
Quantity is more, and area occupied is larger, is unfavorable for the miniaturization of product;Meanwhile, control loop chip A and control loop chip B phases
It is mutually independent, real-time job information is not transmitted, in extreme circumstances, such as interface A and interface B need larger electricity simultaneously
When stream and battery can not respond this simultaneously and require, then easily there is safety problem.
The content of the invention
The purpose of the embodiment of the present invention is the loop control chip for providing a kind of portable power source, it is intended to solve existing shifting
The loop control chip of dynamic power supply can only power to a type of interface, be needed for different types of charging inlet single
Loop control chip so that the problem of manufacturing cost increase, component many and poor safety performance.
The embodiment of the present invention is achieved in that a kind of loop control chip of portable power source, the loop control chip
Including:
Connect the battery of portable power source and the first peripheral hardware of first interface;
Connect the battery of portable power source and the second peripheral hardware of second interface;
The master controller of the first interface, the second interface, first peripheral hardware and second peripheral hardware is connected, for knowing
The rechargeable standard of not described first interface and/or the rechargeable standard of the second interface, and optimal fill is determined according to recognition result
Electric scheme, afterwards according to the charging scheme of determination, controls the voltage conversion that first peripheral hardware exports the battery into corresponding
The backward first interface of charging voltage power, and/or according to the charging scheme of determination, control second peripheral hardware described
The voltage conversion of battery output is powered into the backward second interface of corresponding charging voltage, the first interface and described second
Interface is USB interface, and the interface type of the first interface is different from the second interface.
Wherein, the master controller can be additionally used in the charging process of the first interface and/or the second interface,
The total load of present battery is monitored by first peripheral hardware and/or second peripheral hardware, and when the total load of battery exceedes in advance
During definite value, the first interface and/or the output mode of the second interface are adjusted.
Wherein, the loop control chip may include to connect the power pins of the battery of portable power source, connection described first
First power supply output pin of the plant-grid connection pin of interface, the second power supply of the plant-grid connection pin of the connection second interface
Output pin, the first of the data minus pin of the connection first interface recognize pin, are connecting the data of the first interface just
Second identification pin of pin, the 3rd identification pin of the data minus pin of the connection second interface, connection described second connect
4th identification pin of the positive pin of data of mouth;
First peripheral hardware connects the power pins and the first power supply output pin, and second peripheral hardware connects the electricity
Source pin and the second power supply output pin, master controller connection the first identification pin, the second identification pin, the
Three identification pins, the 4th identification pin, the first peripheral hardware and the second peripheral hardware;
The master controller recognizes that described first connects by the signal of the described first identification pin and the second identification pin
The rechargeable standard of mouth, and/or recognize described second by the signal of the described 3rd identification pin and the 4th identification pin
The rechargeable standard of interface, and optimal charging scheme is determined according to recognition result, afterwards according to the charging scheme of determination, control is described
First peripheral hardware by the voltage conversion of the power pins into after corresponding charging voltage, by the described first power supply output pin to
The first interface is powered, and/or according to the charging scheme of determination, controls second peripheral hardware by the voltage of the power pins
It is converted into after corresponding charging voltage, is powered by the described second power supply output pin to the second interface.
Further, the master controller may include:
The first interface identification circuit of the first identification pin and the second identification pin is connected, for recognizing described first
The rechargeable standard of interface;
The second interface identification circuit of the 3rd identification pin and the 4th identification pin is connected, for recognizing described second
The rechargeable standard of interface;
Connect the first loop control circuit of first peripheral hardware;
Connect the second loop control circuit of second peripheral hardware;
Connect the simulation common circuit of first loop control circuit and second loop control circuit;
Connect first peripheral hardware, the second peripheral hardware, first interface identification circuit, second interface identification circuit, the control of the first loop
The microcontroller of circuit and the second loop control circuit, for being connect according to the first interface identification circuit and/or described second
The recognition result of mouth identification circuit, determines optimal charging scheme, afterwards according to the charging scheme of determination, passes through first loop
Control circuit to control first peripheral hardware by the voltage conversion of the power pins into after corresponding charging voltage, pass through described the
One power supply output pin is powered to the first interface, and/or according to the charging scheme of determination, is controlled by second loop
Circuit controls second peripheral hardware into after corresponding charging voltage, to supply the voltage conversion of the power pins by described second
Electricity output pin is powered to the second interface.
Further, the microcontroller can be additionally used in the charging in the first interface and/or the second interface
During, the total load of present battery is monitored by first peripheral hardware and/or second peripheral hardware, and when the total load of battery
During more than predetermined value, the corresponding interface is adjusted by first loop control circuit and/or second loop control circuit
Output mode.
Or, the loop control chip may also include the 5th identification pin and the 6th identification pin, the 5th identification
The data minus pin of 3rd interface of pin connection portable power source, the 6th identification pin connects the data of the 3rd interface
Positive pin, the second power supply output pin is also connected with the plant-grid connection pin of the 3rd interface, and the 3rd interface is USB
Interface, and the interface type of the first interface, second interface and the 3rd interface is different;
The master controller is also connected with the 5th identification pin and the 6th identification pin, for being drawn by described five identifications
Pin and the described 6th recognizes the signal of pin to recognize the rechargeable standard of the 3rd interface, and controls second peripheral hardware by institute
The voltage conversions of power pins is stated into after corresponding charging voltage, by the described second power supply output pin to the 3rd interface
Power supply.
Now, further, the master controller may also include:
3rd interface identification circuit, the 3rd interface identification circuit connection the 5th identification pin D, the 6th identification pin and
Microcontroller, the rechargeable standard for recognizing the 3rd interface;
The microcontroller is additionally operable to the recognition result according to the 3rd interface identification circuit, is controlled by second loop
Circuit controls second peripheral hardware into after corresponding charging voltage, to supply the voltage conversion of the power pins by described second
Electricity output pin is powered to the 3rd interface.
The another object of the embodiment of the present invention is to provide a kind of portable power source, including battery, first interface, second connects
Mouthful, the portable power source also includes the loop control chip of portable power source as described above.
The another object of the embodiment of the present invention is to provide a kind of portable power source, including battery, first interface, second connects
Mouth, the 3rd interface, the portable power source also include shifting as described above when recognizing pin including the 5th identification pin and the 6th
The loop control chip of dynamic power supply.
In portable power source and its loop control chip provided in an embodiment of the present invention, loop control chip is using a master control
Device processed controls the first peripheral hardware and the second peripheral hardware simultaneously, and the first peripheral hardware and the second peripheral hardware are supplied to different types of USB interface respectively
Electricity, the first peripheral hardware and first interface constitute a loop, and the second peripheral hardware and second interface constitute another loop, pass through master controller
Control, two loops can independent output voltages.Due to can be achieved with the control of two power supply loops using single control loop chip
System, while product cost is saved, also saves product size, is conducive to product to minimize, and the reduction of component is carried
The high security performance of product.
Brief description of the drawings
Fig. 1 is the system architecture diagram of the typical portable power source with a charging inlet;
Fig. 2 is the system architecture sketch of the portable power source with two charging inlets;
Fig. 3 is the loop control chip for the portable power source that first embodiment of the invention is provided and its electricity being connected with battery and interface
Lu Tu;
Fig. 4 is the structure chart of the master controller of first embodiment of the invention;
Fig. 5 is the loop control chip for the portable power source that second embodiment of the invention is provided and its electricity being connected with battery and interface
Lu Tu.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The problem of existing for prior art, the present invention proposes a kind of loop control chip of portable power source, the loop
Control chip controls two peripheral hardwares simultaneously using a master controller, and two peripheral hardwares are powered to different types of USB interface respectively.
Described in detail below with reference to embodiment:
Embodiment one
The embodiment of the present invention one proposes a kind of loop control chip of portable power source, as shown in figure 3, including:The mobile electricity of connection
The battery in source and first interface J1 the first peripheral hardware 2;Connect the battery of portable power source and second interface J2 the second peripheral hardware 3;Even
The master controller 1 of first interface J1, second interface J2, the first peripheral hardware 2 and the second peripheral hardware 3 is connect, for recognizing first interface J1's
The rechargeable standard of rechargeable standard and/or second interface J2, and optimal charging scheme is determined according to recognition result, afterwards according to determination
Charging scheme, the first peripheral hardware 2 of control voltage conversion for exporting battery to first interface J1 into supplying after corresponding charging voltage
Electricity, and/or according to the charging scheme of determination, the voltage conversion that the second peripheral hardware 3 exports battery is controlled into corresponding charging voltage
Backward second interface J2 powers.Wherein, first interface J1 and second interface J2 are USB interface, and first interface J1 interface
Type is different from second interface J2.Wherein, what charging scheme referred to be connected with first interface J1 or second interface J2 to be charged sets
Standby supported charging modes, such as 12V/24W chargings, 9V/18W chargings.
Specifically, loop control chip includes the power pins IN of the battery of connection portable power source, connection portable power source
First interface J1 in plant-grid connection pin USB_VBus the first power supply output pin OUT1, connect the second of portable power source and connect
Plant-grid connection pin USB_VBus the second power supply output pin OUT2, connection first interface J1 data minus pin in mouth J2
USB_DM the first identification pin DECT11, the connection first interface J1 positive pin USB_DP of data the second identification pin
DECT12, the 3rd of connection second interface J2 data minus pin USB_DM the recognize pin DECT21, connect second interface J2's
The positive pin USB_DP of data the 4th identification pin DECT22.
First peripheral hardware 2 connects the power supply output pins of power pins IN and first OUT1;Second peripheral hardware 3 connection power pins IN
With the second power supply output pin OUT2;The connection of master controller 1 first recognizes pin DECT11, the second identification pin DECT12, the
Three identification pin DECT21, the 4th identification pin DECT22, the first peripheral hardware 2 and the second peripheral hardware 3.
Master controller 1 recognizes that first connects by the first identification pin DECT11 and the second identification pin DECT12 signal
Mouthful J1 rechargeable standard, and/or recognize by the 3rd identification pin DECT21 and the 4th identification pin DECT22 signal the
Two interface J2 rechargeable standard, and optimal charging scheme is determined according to recognition result, afterwards according to the charging scheme of determination, control
First peripheral hardware 2 by power pins IN voltage conversion into after corresponding charging voltage, by the first power supply output pin OUT1 to
First interface J1 powers, and/or according to the charging scheme of determination, the second peripheral hardware 3 of control by power pins IN voltage conversion into
After corresponding charging voltage, powered by the second power supply output pin OUT2 to second interface J2.
In addition, master controller 1 is additionally operable in first interface J1 and/or second interface J2 charging process, pass through first
The peripheral hardware 3 of peripheral hardware 2 and/or second monitors the total load of present battery, and when the total load of battery exceedes predetermined value, adjustment first
Interface J1 and/or second interface J2 output mode, to ensure the security of system.Wherein, first interface J1 and/or second connects
Mouth J2 output mode refers to the charging that connected charging equipment is controlled by first interface J1 and/or second interface J2
State, if total power consumptions of the first interface J1 and second interface J2 in charging is excessive, if being charged using 24W, is moved
Dynamic power supply overload, then master controller 1 by first interface J1 and/or second interface J2 to charging equipment transmitting order to lower levels,
So that charging equipment reduce power taking electric current, for example all drop to 10W or 5W carry out power taking.
In embodiment one, the recognizable rechargeable standard of master controller 1 includes high pass Quick Charge 2.0/3.0
(I.e.:QC2.0/3.0)Agreement, Lian Fa sections Pump Express are filled soon(MTK PE)Agreement, Samsung charge protocol, Apple are filled soon
Agreement is filled soon by charge protocol, Huawei(Fast Charger Protocol, FCP), BC1.2 charge protocols, USB power transmissions
Agreement(USB Power Delivery, USB PD), the main flow such as Type-C charge protocols agreement.
Fig. 4 shows the structure of the master controller 1 of first embodiment of the invention.
Specifically, master controller 1 may include:Connection first recognizes the of the identifications of pin DECT11 and second pin DECT12
One interface identification circuit 11, the rechargeable standard for recognizing first interface J1;Connect the 3rd identification pin DECT21 and the 4th knowledge
Other pin DECT22 second interface identification circuit 12, the rechargeable standard for recognizing second interface J2;Connect the first peripheral hardware 2
First loop control circuit 13;Connect the second loop control circuit 14 of the second peripheral hardware 3;Connect the He of the first loop control circuit 13
The simulation common circuit 15 of second loop control circuit 14;Connect the first peripheral hardware 2, the second peripheral hardware 3, first interface identification circuit
11st, the microcontroller 16 of second interface identification circuit 12, the first loop control circuit 13 and the second loop control circuit 14, is used for
According to first interface identification circuit 11 and/or the recognition result of second interface identification circuit 12, optimal charging scheme is determined, afterwards
According to the charging scheme of determination, the first peripheral hardware 2 is controlled by power pins IN voltage conversion by the first loop control circuit 13
Into after corresponding charging voltage, powered by the first power supply output pin OUT1 to first interface J1, and/or filling according to determination
Electric scheme, controls the second peripheral hardware 3 that power pins IN voltage conversion charges into corresponding by the second loop control circuit 14
After voltage, powered by the second power supply output pin OUT2 to second interface J2.
Microcontroller 16 comes real-time by the data of the first loop control circuit 13 of reading and the second loop control circuit 14
The situation of double loop is monitored, the target of two loops of optimization is reached.Meanwhile, microcontroller 16 passes through first interface identification circuit 11
Communicated with second interface identification circuit 12 with first interface J1 and second interface J2, reach more preferable compatibility.Wherein, mould
Intend common circuit 15 and refer to the basic analog module in portable power source, such as reference voltage circuit, comparator circuit, mould/
Number change-over circuit etc., microcontroller 16 can call one or more of simulation common circuit 15 Subcircuits module, to be multiplexed
To among different interfaces, for the information for distinct interface of sampling.
In addition, microcontroller 16 is additionally operable in first interface J1 and/or second interface J2 charging process, pass through first
The peripheral hardware 3 of peripheral hardware 2 and/or second monitors the total load of present battery, and when the total load of battery exceedes predetermined value, passes through first
The loop control circuit 14 of loop control circuit 13 and/or second adjusts the output mode of the corresponding interface, to ensure the safety of system
Property.
The loop control chip for the portable power source that the embodiment of the present invention one is provided is controlled simultaneously using a master controller 1
First peripheral hardware 2 and the second peripheral hardware 3, the first peripheral hardware 2 and the second peripheral hardware 3 are powered to different types of USB interface respectively, the first peripheral hardware
2 and first interface J1 constitutes a loop, and the second peripheral hardware 3 and second interface constitute another loop, by the control of master controller 1,
Two loops can independent output voltages.For example, first interface J1 only supports common 5V to export, and second interface J2 can be supported
The fast mold filling formula such as QC3.0, MTK PE;Or first interface J1 and second interface J2 can support fast mold filling formula, so, just can
The most charging quickly mode that can be supported according to insertion first interface J1 and second interface J2 charging equipment, and combine current electricity
Pond electricity, judges the optimal charging scheme that charging equipment can be used, such as first interface J1 output 9V, second interface J2 outputs
12V etc., and then first interface J1 and second interface J2 is configured, give charging equipment charging.Due to using single control loop
Chip can be achieved with the control of two power supply loops, while product cost is saved, also saves product size, is conducive to production
Product are minimized, and the reduction of component improves the security performance of product.Further, two loops pass through microcontroller
16 and simulation common circuit 15 realize and be effectively in communication with each other, according to actual conditions, voluntarily configure input and output so that product is more
Plus intelligent, product safety and reliability, and each loop has corresponding interface identification circuit, more conducively client is to oneself product
Differentiation design.
Embodiment two
The embodiment of the present invention two proposes a kind of loop control chip of portable power source, as shown in Figure 5.It is different from embodiment one
It is that in embodiment two, portable power source also there is the 3rd interface J3, the 3rd interface J3 and second interface J2 to be multiplexed the second peripheral hardware 3.The
Three interface J3 are USB interface, and first interface J1, second interface J2 and the 3rd interface J3 interface type are different.
Specifically, now, the loop control chip of portable power source also includes the 5th identification pin DECT31 and the 6th identification
Pin DECT32, the interface J3 of the 5th identification pin DECT31 connections the 3rd data minus pin USB_DM, the 6th identification pin
The interface J3 of DECT32 connections the 3rd data positive pin USB_DP, the second power supply output pin OUT2 is also connected with the 3rd interface J3's
Plant-grid connection pin USB_VBus.
Master controller 1 is also connected with the 5th identification pin DECT31 and the 6th identification pin DECT32, for passing through five identifications
Pin DECT31 and the 6th recognizes pin DECT32 signal to recognize the 3rd interface J3 rechargeable standard, and controls the second peripheral hardware
3 by power pins IN voltage conversion into after corresponding charging voltage, by the second power supply output pin OUT2 to the 3rd interface
J3 powers.
Now, master controller 1 is on the basis of Fig. 4, in addition to:3rd interface identification circuit, the 3rd interface identification circuit
The 5th identification pin DECT31, the 6th identification pin DECT32 and microcontroller 16 are connected, for recognizing filling for the 3rd interface J3
Electric standard.Microcontroller 16 is additionally operable to the recognition result according to the 3rd interface identification circuit, passes through the second loop control circuit 14
Control the second peripheral hardware 3 by power pins IN voltage conversion into after corresponding charging voltage, passing through the second power supply output pin
OUT2 powers to the 3rd interface J3.
Compared with embodiment one, in embodiment two, the 3rd interface J3 and second interface J2 are multiplexed the second peripheral hardware 3, may be such that
Portable power source has three USB interfaces of different interface type, for example, can support the USB-A interfaces of current main flow, and USB-B connects
Mouthful, USB Type-C interfaces can be further that first interface J1 uses USB-A interfaces as output, second interface J2 is used
USB-B interfaces are as input, and the 3rd interface J3 is using USB Type-C interfaces are as input and export.
Embodiment three
The embodiment of the present invention three proposes a kind of portable power source, including battery, first interface J1, second interface J2, in addition to such as
The loop control chip of portable power source described in embodiment one, is not repeated.
Example IV
The embodiment of the present invention four proposes a kind of portable power source, including battery, first interface J1, second interface J2, the 3rd interface
J3, includes the loop control chip of the portable power source as described in embodiment two, does not repeat.
In summary, in the present invention is provided portable power source and its loop control chip, loop control chip uses one
Master controller 1 controls the first peripheral hardware 2 and the second peripheral hardware 3 simultaneously, and the first peripheral hardware 2 and the second peripheral hardware 3 are respectively to different types of
USB interface is powered, and the first peripheral hardware 2 and first interface J1 constitute a loop, and the second peripheral hardware 3 and second interface constitute another loop,
By the control of master controller 1, two loops can independent output voltages.Due to can be achieved with two using single control loop chip
The control of individual power supply loop, while product cost is saved, also saves product size, is conducive to product to minimize, and
The reduction of component improves the security performance of product.Further, two loops are shared by microcontroller 16 and simulation
Circuit 15, which is realized, to be effectively in communication with each other, and according to actual conditions, voluntarily configures input and output so that product is more intelligent, production
Product safety and reliability, and each loop has corresponding interface identification circuit, more conducively client sets to oneself differentiation of product
Meter.Further, portable power source may also include the 3rd interface J3, the 3rd interface J3 and second interface J2 and be multiplexed the second peripheral hardware 3, can
So that portable power source has three USB interfaces of different interface type,
One of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method can be by
Program come control correlation hardware complete, described program can be described in a computer read/write memory medium is stored in
Storage medium, such as ROM/RAM, disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.