The content of the invention
The purpose of the embodiment of the present invention be a kind of charger is provided fill protocol identification chip soon, it is intended to solve existing
Charger cannot simultaneously support that various differences fill soon the identification and parsing of agreement, cause user's inconvenient problem with use.
What the embodiment of the present invention was achieved in that a kind of charger fills soon protocol identification chip, described to fill agreement soon
Identification chip includes:
The USB charging inlets of connection charger, after the USB charging inlets receive connection trigger, to the USB
The protocol recognition circuit that the signal intensity of each pin is sampled in charging inlet;
Connect the protocol recognition circuit, according to the sampled result of the protocol recognition circuit, identify and fill agreement soon accordingly,
The recognition processor that agreement is charged is filled soon with basis accordingly.
The another object of the embodiment of the present invention is to provide a kind of charger, including USB charging inlets, and the charging sets
It is standby also to fill protocol identification chip soon including charger as above.
The another object of the embodiment of the present invention be a kind of charger as above is provided fill protocol identification core soon
The recognition methodss of piece, the method comprising the steps of:
After the USB charging inlets of charger receive connection trigger, recognition processor control protocol identification circuit pair
The electric current of USB_VBus pins output is sampled;
The size of the electric current that recognition processor is sampled according to protocol recognition circuit and the cycle of electric current, if the electric current of sampling is big
Little and electric current cycle meets the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if not meeting MTK
PE fills soon the regulation of agreement, then to identify be not that MTK PE fill soon agreement;
After the USB charging inlets of charger receive connection trigger, recognition processor control protocol identification circuit drives
Dynamic USB_VBus pins export+5V charging voltages, drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively, and right
The voltage of USB_DM pins and USB_DP pins is sampled;
Recognition processor judge in the given time, protocol recognition circuit sampling USB_DM pins and USB_DP pins voltage
Whether decline, be, identify that be connected with USB charging inlets is not Fructus Mali pumilae equipment, otherwise identify and USB charging inlets connect
What is connect is Fructus Mali pumilae equipment;
When recognition processor identify be connected with USB charging inlets be not Fructus Mali pumilae equipment when, control protocol identification circuit drive
USB_DM pins and USB_DP pins stop output 2.7V voltages, and the voltage of USB_DM pins and USB_DP pins is carried out afterwards
Sampling;
The sequential of the USB_DM pins of protocol recognition circuit sampling and the voltage of USB_DP pins meets the rule that QC2.0 fills soon agreement
Regularly, it is that QC2.0 fills soon agreement that recognition processor is identified, and when the USB_DM pins and USB_DP of protocol recognition circuit sampling
The sequential of the voltage of pin meets QC3.0 when filling the regulation of agreement soon, and it is that QC3.0 fills soon agreement that recognition processor is identified.
The another object of the embodiment of the present invention be a kind of charger as above is provided fill protocol identification core soon
The recognition methodss of piece, the method comprising the steps of:
After the USB charging inlets of charger receive connection trigger, recognition processor control protocol identification circuit pair
The electric current of USB_VBus pins output is sampled;
The size of the electric current that recognition processor is sampled according to protocol recognition circuit and the cycle of electric current, if the electric current of sampling is big
Little and electric current cycle meets the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if not meeting MTK
PE fills soon the regulation of agreement, then to identify be not that MTK PE fill soon agreement;
After the USB charging inlets of charger receive connection trigger, recognition processor control protocol identification circuit drives
Dynamic USB_VBus pins export+5V charging voltages, drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively, and right
The voltage of USB_DM pins and USB_DP pins is sampled;
Recognition processor judge in the given time, protocol recognition circuit sampling USB_DM pins and USB_DP pins voltage
Whether decline, be, identify that be connected with USB charging inlets is not Fructus Mali pumilae equipment, otherwise identify and USB charging inlets connect
What is connect is Fructus Mali pumilae equipment;
When recognition processor identify be connected with USB charging inlets be not Fructus Mali pumilae equipment when, control protocol identification circuit will
USB_DM pins and USB_DP pin short circuits, sample afterwards to the voltage of USB_DM pins and USB_DP pins;
Recognition processor judges whether the USB_DM pins of protocol recognition circuit sampling or the voltage of USB_DP pins are more than
0.325V and persistent period are more than 1.25 seconds, are to identify fill soon agreement, and otherwise identifying with USB charging inlets are connected is
Samsung equipment;
When recognition processor is identified fills agreement soon, control protocol identification circuit release USB_DM pins and USB_DP pins
Short circuit state, and the voltage to USB_DM pins and USB_DP pins samples;
When the sequential of the voltage of the USB_DM pins and USB_DP pins of sampling meets QC2.0 fills the regulation of agreement soon, identification
It is that QC2.0 fills soon agreement that processor is identified, and when the USB_DM pins and the electricity of USB_DP pins of protocol recognition circuit sampling
The sequential of pressure meets QC3.0 when filling the regulation of agreement soon, and it is that QC3.0 fills soon agreement that recognition processor is identified.
Charger provided in an embodiment of the present invention and its fill soon in protocol identification chip, protocol recognition circuit fills to USB
The signal intensity of each pin is sampled in electrical interface, and recognition processor fills soon agreement accordingly according to sampled result identification.It is logical
Cross in configuration recognition processor and fill the content of agreement soon, be capable of achieving the identification that existing various differences are filled soon with agreement, and with can
Autgmentability, i.e., by change recognition processor in fill protocol contents soon, after compatible day occur new standard, so as to reduce use
The number of the charger that family needs, environmental protection is convenient.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
For the problem that existing charger is present, charger provided in an embodiment of the present invention fills soon protocol identification core
In piece, protocol recognition circuit is sampled to the signal intensity of each pin in charging inlet, and recognition processor is according to sampled result
Identification fills soon agreement accordingly, fills agreement soon accordingly with basis and is charged.
Fig. 1 shows the circuit module for filling protocol identification chip soon of charger provided in an embodiment of the present invention.
The protocol identification chip that fills soon of charger provided in an embodiment of the present invention includes:The USB of connection charger fills
Electrical interface, after USB charging inlets receive connection trigger, is carried out to the signal intensity of each pin in USB charging inlets
The protocol recognition circuit 2 of sampling;Connection protocol identification circuit 2, according to the sampled result of protocol recognition circuit 2, identifies corresponding
Fill agreement soon, with according to filling the recognition processor 1 that agreement is charged soon accordingly.
In the embodiment of the present invention, USB charging inlets refer to the USB charging inlets for meeting usb protocol, the USB charging inlets
Both can be traditional USB Type-A interfaces, USB Type-B interfaces, or USB Type-C interfaces etc..
In the embodiment of the present invention, after charging equipment is connected with the charging inlet of charger, to charging inlet company is sent
Contact is signaled.Wherein, to refer to that smart mobile phone, panel computer etc. need that external power source is charged portable for charging equipment
Electronic equipment;Charger refers to and fill agreement soon according to certain, sets the electronics that civil power changes backward charging equipment charging
It is standby, such as charger, portable power source.
In the embodiment of the present invention, the pin of the USB charging inlets being related to is defined as:USB_VBus pins, i.e.,:VCC draws
Foot, is plant-grid connection pin, charging equipment after being connected with charger, the USB_ of the USB charging inlets of charger
VBus pins just start to provide+5V voltages to charging equipment, fill soon after agreement until detecting, switching+9V or+12V etc. its
Its high voltage carries out quick charge;USB_DM pins, i.e.,:D- pins, are data minus pin;USB_DP pins, i.e.,:D+ draws
Foot, is the positive pin of data.For USB Type-C interfaces, the pin of the USB charging inlets being related to is still further comprised:CC1
Signal pins and CC2 signal pins.
Used as one embodiment of the present invention, what recognition processor 1 may recognize that fill soon agreement fills soon association including MTK PE
Discuss, QC2.0 fills agreement soon and QC3.0 fills soon agreement, and may recognize that Fructus Mali pumilae equipment.
Now, protocol recognition circuit 2 is particularly used for after USB charging inlets receive connection trigger, to USB_
The electric current of VBus pins output is sampled, and recognition processor 1 is particularly used for the electric current according to the sampling of protocol recognition circuit 2
In the cycle of size and electric current, identify whether to be that MTK PE fill soon agreement.If the size of the electric current of sampling and the cycle of electric current
Meet the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement;If not meeting the rule that MTK PE fill soon agreement
It is fixed, then identify it is not that MTK PE fill soon agreement.
Now, protocol recognition circuit 2 is additionally operable to after USB charging inlets receive connection trigger, drives USB_
VBus pins export+5V charging voltages, drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively.And to USB_DM
The voltage of pin and USB_DP pins is sampled;Recognition processor 1 is additionally operable to judgement in the given time, protocol recognition circuit
Whether the USB_DM pins and the voltage of USB_DP pins of 2 samplings decline, and are to identify with USB charging inlets are connected not to be
Fructus Mali pumilae equipment, otherwise identifies that be connected with USB charging inlets is Fructus Mali pumilae equipment.
Further, protocol recognition circuit 2 is additionally operable to be connected not with USB charging inlets when recognition processor 1 is identified
When being Fructus Mali pumilae equipment, drive USB_DM pins and USB_DP pins to stop output 2.7V voltages, afterwards to USB_DM pins and
The voltage of USB_DP pins is sampled;Recognition processor 1 be additionally operable to when protocol recognition circuit 2 sampling USB_DM pins and
The sequential of the voltage of USB_DP pins meets QC2.0 when filling the regulation of agreement soon, identifies it is that QC2.0 fills soon agreement, and when association
When the sequential of the USB_DM pins of the view sampling of identification circuit 2 and the voltage of USB_DP pins meets QC3.0 and fills the regulation of agreement soon,
Identify it is that QC3.0 fills soon agreement.
Used as another preferred embodiment of the invention, what recognition processor 1 may recognize that fill soon agreement fills soon including MTK PE
Agreement, QC2.0 fill soon agreement and QC3.0 fills soon agreement.And may recognize that Fructus Mali pumilae equipment and Samsung equipment.
Now, protocol recognition circuit 2 is particularly used for after USB charging inlets receive connection trigger, to USB_
The electric current of VBus pins output is sampled, and recognition processor 1 is particularly used for the electric current according to the sampling of protocol recognition circuit 2
In the cycle of size and electric current, whether identification charging equipment is that MTK PE fill soon agreement.If sampling electric current size and
The cycle of electric current meets the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement;If it is fast not meet MTK PE
The regulation of agreement is filled, then to identify be not that MTK PE fill soon agreement.
Now, protocol recognition circuit 2 is additionally operable to after USB charging inlets receive connection trigger, drives USB_
VBus pins export+5V charging voltages, drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively.And to USB_DM
The voltage of pin and USB_DP pins is sampled;Recognition processor 1 is additionally operable to judgement in the given time, protocol recognition circuit
Whether the USB_DM pins and the voltage of USB_DP pins of 2 samplings decline, and are to identify with USB charging inlets are connected not to be
Fructus Mali pumilae equipment, otherwise identifies that be connected with USB charging inlets is Fructus Mali pumilae equipment.
Further, protocol recognition circuit 2 is additionally operable to be connected not with USB charging inlets when recognition processor 1 is identified
When being Fructus Mali pumilae equipment, by USB_DM pins and USB_DP pin short circuits, afterwards to USB_DM pins or the voltage of USB_DP pins
Sampled;Recognition processor 1 is additionally operable to judge the USB_DM pins of the sampling of protocol recognition circuit 2 or the voltage of USB_DP pins
Whether it is more than 0.325V and the persistent period is more than 1.25 seconds, be to identify fill soon agreement, otherwise identifies and USB charging inlets
Connection is Samsung equipment.Protocol recognition circuit 2 is additionally operable to after recognition processor 1 identifies Samsung equipment, drives USB_DM
Pin and USB_DP pins export respectively 1.2V voltages.
Further, protocol recognition circuit 2 be additionally operable to when recognition processor 1 identify be connected with charging inlet be not
During Samsung equipment, the short circuit state of USB_DM pins and USB_DP pins is discharged, afterwards to USB_DM pins and USB_DP pins
Voltage sampled;Recognition processor 1 is additionally operable to USB_DM pins and USB_DP pins when the sampling of protocol recognition circuit 2
The sequential of voltage meets QC2.0 when filling the regulation of agreement soon, identifies that QC2.0 fills soon agreement, and when protocol recognition circuit 2 is sampled
USB_DM pins and the sequential of voltage of USB_DP pins when meeting QC3.0 and filling the regulation of agreement soon, identify that QC3.0 fills soon
Agreement.
Fig. 2 shows the circuit for filling protocol identification chip soon of charger provided in an embodiment of the present invention.
In the embodiment of the present invention, protocol recognition circuit 2 may include:Circuit for generating temperature compensated driving voltage 21, driving voltage generates electricity
The input connection recognition processor 1 on road 21, the first outfan of circuit for generating temperature compensated driving voltage 21 is used as filling soon protocol identification core
The USB_VBus pins of the first output pin OUT1 connection USB charging inlet J1 of piece, the second of circuit for generating temperature compensated driving voltage 21
Outfan connects the USB_DM pins of USB charging inlets as the second output pin OUT2 for filling protocol identification chip soon, drives
3rd outfan of voltage generation circuit 21 connects USB chargings as the 3rd output pin OUT3 for filling protocol identification chip soon
The USB_DP pins of mouth, circuit for generating temperature compensated driving voltage 21 is accordingly generated in USB charging inlets according to the instruction of recognition processor 1
The voltage of each pin;Reference voltage generating circuit 22, the input connection recognition processor 1 of reference voltage generating circuit 22, ginseng
Instruction of the voltage generation circuit 22 according to recognition processor 1 is examined, the reference voltage needed for protocol detection is generated;Sampling switching switch
Array 23, the first data input pin of sampling switching switch arrays 23 is used as the first input pin for filling protocol identification chip soon
IN1 connects the USB_VBus pins of USB charging inlets, and the second data input pin of sampling switching switch arrays 23 is used as filling soon association
Second input pin IN2 of view identification chip connects the USB_DP pins of USB charging inlets, and the of sampling switching switch arrays 23
Three data input pins connect the USB_DM pins of USB charging inlets as the 3rd input pin IN3 for filling protocol identification chip soon,
The command input connection recognition processor 1 of sampling switching switch arrays 23, sampling switching switch arrays 23 are according to identifying processing
The instruction of device 1, the signal of switching collection USB_VBus pins, USB_DP pins or USB_DM pins;Comparator array 24, compares
The first input end of device array 24 connects the outfan of reference voltage generating circuit 22, and the connection of the input of comparator array 24 second is adopted
Sample switches the outfan of switch arrays 23, signal and reference voltage that comparator array 24 gathers switching switch arrays 23 of sampling
The reference voltage that generative circuit 22 is generated is compared, and comparative result is exported to recognition processor 1.
For different charge protocols, the required reference voltage for comparing is different, therefore, using reference voltage generating circuit 22
To cover different comparison voltage demands, the multiple reference voltages for protocol detection are produced, in the detection moment of different agreement,
Produce corresponding reference voltage.Meanwhile, the control sampling switching action of switch arrays 23 of recognition processor 1, by charging inlet
The signals collecting of respective pins is come in.Afterwards, comparator array 24 enters the signal come in is gathered with the corresponding reference for generating
Row is compared, and comparative result is exported to recognition processor 1.Afterwards, recognition processor 1 is identified according to comparative result
Corresponding charge protocol.
Used as one embodiment of the present invention, what recognition processor 1 may recognize that fill soon agreement fills soon association including MTK PE
Discuss, QC2.0 fills agreement soon and QC3.0 fills soon agreement, and may recognize that Fructus Mali pumilae equipment.
Now, recognition processor 1 is particularly used for after charging inlet receives connection trigger, is opened to sampling switching
Close array 23 and send instruction to sample to the electric current that USB_VBus pins are exported, while to reference voltage generating circuit 22
Go out instruction to generate the reference voltage that detection MTK PE are filled soon needed for agreement.Afterwards, comparator array 24 will sample and switch switch
The reference voltage that the signal of the collection of array 23 is generated with reference voltage generating circuit 22 is compared, and comparative result is returned to
Recognition processor 1.Recognition processor 1 according to comparative result, if sampling switching switch arrays 23 collection electric current size and
The cycle of electric current meets the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if it is fast not meet MTK PE
The regulation of agreement is filled, then to identify be not that MTK PE fill soon agreement.
Now, recognition processor 1 is additionally operable to after charging inlet receives connection trigger, and control driving voltage is generated
Circuit 21 generates+5V charging voltages and drives USB_VBus pins to export+5V charging voltages, and controls circuit for generating temperature compensated driving voltage
21 generation 2.7V voltages simultaneously drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively.Afterwards, recognition processor 1 to
Sampling switching switch arrays 23 are sent instruction and are sampled with the voltage to USB_DM pins and USB_DP pins, meanwhile, identification
Processor 1 also sends the reference voltage instructed needed for generate detection Fructus Mali pumilae equipment to reference voltage generating circuit 22.Afterwards, than
The reference voltage that the signal that switching switch arrays 23 of sampling are gathered is generated with reference voltage generating circuit 22 is entered compared with device array 24
Row compares, and comparative result is returned to into recognition processor 1.Recognition processor 1 according to comparative result, if in the given time,
The USB_DM pins of the sampling switching sampling of switch arrays 23 and the voltage of USB_DP pins decline, then identify and connect with charging inlet
What is connect is not Fructus Mali pumilae equipment, otherwise identifies that be connected with charging inlet is Fructus Mali pumilae equipment.
Further, recognition processor 1 identify be connected with charging inlet be not Fructus Mali pumilae equipment when, control drive electricity
Pressure generative circuit 21 stops driving USB_DM pins and USB_DP pins output 2.7V voltages.Afterwards recognition processor 1 is to sampling
Switching switch arrays 23 are sent instruction and are sampled with the voltage to USB_DM pins and USB_DP pins, meanwhile, identifying processing
Device 1 also sends instruction to reference voltage generating circuit 22, and to generate, detection QC2.0 fills soon agreement and QC3.0 is filled soon needed for agreement
Reference voltage.Afterwards, comparator array 24 gathers switching switch arrays 23 of sampling signal and reference voltage generating circuit 22
The reference voltage of generation is compared, and comparative result is returned to into recognition processor 1.Recognition processor 1 according to comparative result,
If the sequential of the voltage of the USB_DM pins of the sampling switching sampling of switch arrays 23 and USB_DP pins meets QC2.0 and fills agreement soon
Regulation when, identify it is that QC2.0 fills soon agreement, if sampling switching switch arrays 23 sampling USB_DM pins and USB_DP draw
The sequential of the voltage of foot meets QC3.0 when filling the regulation of agreement soon, identifies it is that QC3.0 fills soon agreement.
Used as another preferred embodiment of the invention, what recognition processor 1 may recognize that fill soon agreement fills soon including MTK PE
Agreement, QC2.0 fill soon agreement and QC3.0 fills soon agreement.And may recognize that Fructus Mali pumilae equipment and Samsung equipment.
Now, recognition processor 1 is particularly used for after charging inlet receives connection trigger, is opened to sampling switching
Close array 23 and send instruction to sample to the electric current that USB_VBus pins are exported, while to reference voltage generating circuit 22
Go out instruction to generate the reference voltage that detection MTK PE are filled soon needed for agreement.Afterwards, comparator array 24 will sample and switch switch
The reference voltage that the signal of the collection of array 23 is generated with reference voltage generating circuit 22 is compared, and comparative result is returned to
Recognition processor 1.Recognition processor 1 according to comparative result, if sampling switching switch arrays 23 collection electric current size and
The cycle of electric current meets the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if it is fast not meet MTK PE
The regulation of agreement is filled, then to identify be not that MTK PE fill soon agreement.
Now, recognition processor 1 is additionally operable to after charging inlet receives connection trigger, and control driving voltage is generated
Circuit 21 generates+5V charging voltages and drives USB_VBus pins to export+5V charging voltages, and controls circuit for generating temperature compensated driving voltage
21 generation 2.7V voltages simultaneously drive USB_DM pins and USB_DP pins to export 2.7V voltages respectively.Afterwards, recognition processor 1 to
Sampling switching switch arrays 23 are sent instruction and are sampled with the voltage to USB_DM pins and USB_DP pins, meanwhile, identification
Processor 1 also sends the reference voltage instructed needed for generate detection Fructus Mali pumilae equipment to reference voltage generating circuit 22.Afterwards, than
The reference voltage that the signal that switching switch arrays 23 of sampling are gathered is generated with reference voltage generating circuit 22 is entered compared with device array 24
Row compares, and comparative result is returned to into recognition processor 1.Recognition processor 1 according to comparative result, if in the given time,
The USB_DM pins of the sampling switching sampling of switch arrays 23 and the voltage of USB_DP pins decline, then identify and connect with charging inlet
What is connect is not Fructus Mali pumilae equipment, otherwise identifies that be connected with charging inlet is Fructus Mali pumilae equipment.
Further, recognition processor 1 be additionally operable to when identify be connected with charging inlet be not Fructus Mali pumilae equipment when, control
Circuit for generating temperature compensated driving voltage 21 is by USB_DM pins and USB_DP pin short circuits.Afterwards, recognition processor 1 is to sampling switching switch
Array 23 is sent instruction and is sampled with the voltage to USB_DM pins and USB_DP pins, meanwhile, recognition processor 1 is also to ginseng
Examine voltage generation circuit 22 and send the reference voltage instructed needed for generate detection Samsung equipment.Afterwards, comparator array 24 will
The reference voltage that the signal of the sampling switching collection of switch arrays 23 is generated with reference voltage generating circuit 22 is compared, and will compare
Relatively result returns to recognition processor 1.Recognition processor 1 is according to comparative result, if sampling switches the sampling of switch arrays 23
The voltage of USB_DM pins or USB_DP pins is more than 0.325V and the persistent period is more than 1.25 seconds, then identify it is to fill association soon
View, otherwise identifies that be connected with charging inlet is Samsung equipment.Recognition processor 1 after Samsung equipment is identified, drive by control
Dynamic voltage generation circuit 21 generates 1.2V voltages and drives USB_DM pins and USB_DP pins to export 1.2V voltages respectively.
Further, when recognition processor 1 identify be connected with charging inlet be not Samsung equipment when, control drive
Voltage generation circuit 21 discharges the short circuit state of USB_DM pins and USB_DP pins.Afterwards recognition processor 1 is to sampling switching
Switch arrays 23 are sent instruction and are sampled with the voltage to USB_DM pins and USB_DP pins, meanwhile, recognition processor 1 is also
Instruction is sent to reference voltage generating circuit 22 fill the reference that agreement and QC3.0 are filled soon needed for agreement soon to generate detection QC2.0
Voltage.Afterwards, comparator array 24 generates the signal that switching switch arrays 23 of sampling are gathered with reference voltage generating circuit 22
Reference voltage be compared, and comparative result is returned to into recognition processor 1.Recognition processor 1 is according to comparative result, if adopting
The sequential of the USB_DM pins of the sample switching sampling of switch arrays 23 and the voltage of USB_DP pins meets the rule that QC2.0 fills soon agreement
Regularly, identify it is that QC2.0 fills soon agreement, if the USB_DM pins and USB_DP pins of the sampling switching sampling of switch arrays 23
The sequential of voltage meets QC3.0 when filling the regulation of agreement soon, identifies it is that QC3.0 fills soon agreement.
Additionally, above-mentioned based on reference voltage generating circuit 22, sampling switching switch arrays 23, comparator array 24 and identification
The combination of processor 1, can be arranged by program, flexibly change the factors such as sequential, the reference voltage of protocol identification, to tackle not
Same new agreement.The recognition method of agreement, is not limited to above-mentioned situation, using the resource filled soon in protocol identification chip, uses
Family can customize recognition method, reach the fast charging mobile phone compatibility feature of maximum.
The embodiment of the present invention additionally provides a kind of charger, including USB charging inlets, also fills as above including one
Electric equipment fills soon protocol identification chip, does not repeat.The charger is preferably charger or portable power source.
The embodiment of the present invention additionally provides a kind of identification side for filling protocol identification chip soon of charger as above
Method, comprises the following steps:
S11:After the USB charging inlets of charger receive connection trigger, the control protocol of recognition processor 1 identification electricity
Road 2 is sampled by the electric current that USB_VBus pins are exported;
S12:The size of the electric current that recognition processor 1 is sampled according to protocol recognition circuit 2 and the cycle of electric current, if the electricity of sampling
The size of stream and the cycle of electric current meet the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if not
Meet the regulation that MTK PE fill soon agreement, then identify it is not that MTK PE fill soon agreement.
S13:After the USB charging inlets of charger receive connection trigger, the control protocol of recognition processor 1 is known
Other circuit 2 drives USB_VBus pins output+5V charging voltages, drives USB_DM pins and USB_DP pins to export 2.7V respectively
Voltage, and the voltage to USB_DM pins and USB_DP pins samples.
S14:Recognition processor 1 judges in the given time, the USB_DM pins and USB_DP of the sampling of protocol recognition circuit 2
Whether the voltage of pin declines, and is, identifies that be connected with USB charging inlets is not Fructus Mali pumilae equipment, otherwise identifies and USB
Charging inlet connection is Fructus Mali pumilae equipment.
S15:When recognition processor 1 identify be connected with USB charging inlets be not Fructus Mali pumilae equipment when, control protocol identification
Circuit 2 drives USB_DM pins and USB_DP pins to stop output 2.7V voltages, afterwards to USB_DM pins and USB_DP pins
Voltage sampled.
S16:It is fast that the sequential of the USB_DM pins of the sampling of protocol recognition circuit 2 and the voltage of USB_DP pins meets QC2.0
When filling the regulation of agreement, it is that QC2.0 fills soon agreement that recognition processor 1 is identified, and as the USB_DM of the sampling of protocol recognition circuit 2
The sequential of the voltage of pin and USB_DP pins meets QC3.0 when filling the regulation of agreement soon, and recognition processor 1 identifies and is
QC3.0 fills soon agreement.
The embodiment of the present invention additionally provides a kind of identification side for filling protocol identification chip soon of charger as above
Method, comprises the following steps:
S21:After the USB charging inlets of charger receive connection trigger, the control protocol of recognition processor 1 identification electricity
Road 2 is sampled by the electric current that USB_VBus pins are exported;
S22:The size of the electric current that recognition processor 1 is sampled according to protocol recognition circuit 2 and the cycle of electric current, if the electricity of sampling
The size of stream and the cycle of electric current meet the regulation that MTK PE fill soon agreement, then identify it is that MTK PE fill soon agreement, if not
Meet the regulation that MTK PE fill soon agreement, then identify it is not that MTK PE fill soon agreement.
S23:After the USB charging inlets of charger receive connection trigger, the control protocol of recognition processor 1 is known
Other circuit 2 drives USB_VBus pins output+5V charging voltages, drives USB_DM pins and USB_DP pins to export 2.7V respectively
Voltage, and the voltage to USB_DM pins and USB_DP pins samples.
S24:Recognition processor 1 judges in the given time, the USB_DM pins and USB_DP of the sampling of protocol recognition circuit 2
Whether the voltage of pin declines, and is, identifies that be connected with USB charging inlets is not Fructus Mali pumilae equipment, otherwise identifies and USB
Charging inlet connection is Fructus Mali pumilae equipment.
S25:When recognition processor 1 identify be connected with USB charging inlets be not Fructus Mali pumilae equipment when, control protocol identification
Circuit 2 samples USB_DM pins and USB_DP pin short circuits to the voltage of USB_DM pins and USB_DP pins afterwards.
S26:Recognition processor 1 judges that the USB_DM pins of the sampling of protocol recognition circuit 2 or the voltage of USB_DP pins are
It is no more than 0.325V and the persistent period be more than 1.25 seconds, be to identify fill soon agreement, otherwise identify and USB charging inlets connect
What is connect is Samsung equipment.
S27:When recognition processor 1 is identified fills agreement soon, control protocol identification circuit 2 release USB_DM pins and
The short circuit state of USB_DP pins, and the voltage to USB_DM pins and USB_DP pins samples.
S28:When the sequential of the voltage of the USB_DM pins and USB_DP pins of sampling meets the regulation that QC2.0 fills soon agreement
When, it is that QC2.0 fills soon agreement that recognition processor 1 is identified, and when the USB_DM pins and USB_DP of the sampling of protocol recognition circuit 2
The sequential of the voltage of pin meets QC3.0 when filling the regulation of agreement soon, and it is that QC3.0 fills soon agreement that recognition processor 1 is identified.
Charger provided in an embodiment of the present invention and its fill soon in protocol identification chip, protocol recognition circuit fills to USB
The signal intensity of each pin is sampled in electrical interface, and recognition processor fills soon agreement accordingly according to sampled result identification.It is logical
Cross in configuration recognition processor and fill the content of agreement soon, be capable of achieving the identification that existing various differences are filled soon with agreement, and with can
Autgmentability, i.e., by change recognition processor in fill protocol contents soon, after compatible day occur new standard, so as to reduce use
The number of the charger that family needs, environmental protection is convenient.Additionally, above-mentioned based on reference voltage generating circuit 22, sampling switching switch
The combination of array 23, comparator array 24 and recognition processor 1, can be arranged by program, flexibly change protocol identification when
The factors such as sequence, reference voltage, to tackle different new agreements.The recognition method of agreement, is not limited to above-mentioned situation, using fast
The resource filled in protocol identification chip, user can customize recognition method, reach the fast charging mobile phone compatibility feature of maximum.
One of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method can be
The hardware that correlation is controlled by program is completed, described program can in a computer read/write memory medium is stored in,
Described storage medium, such as ROM/RAM, disk, CD.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.