Utility model content
The technical problem to be solved by the utility model is to provide a kind of simple and lower-cost QC protocol circuits.
In order to solve the above technical problems, the utility model provides a kind of QC protocol circuit, it is applied to electronic equipment, it is suitable with one
Orchestration connection to be powered by the MCU of the DC-DC module electron equipment in electronic equipment, and further includes having QC simulation electricity
Road, the QC analog circuit include the first voltage dividing resistance circuit, the second voltage dividing resistance circuit and pull-down circuit, the drop-down electricity
Road is controlled by MCU, and its output end connects adapter D- pin, described to drag down the voltage of D- pin under the control of MCU
One output end of DC-DC module connects adapter D+ pin by the first voltage dividing resistance circuit, to provide the first inspection for D+ pin
Voltage is surveyed, and the output end also passes through the second voltage dividing resistance circuit connection adapter D- pin, to provide the second inspection for D- pin
Voltage is surveyed, so that adapter is powered according to the first detection voltage and the second detection voltage to MCU.
Its further technical solution are as follows: the pull-down circuit includes a metal-oxide-semiconductor, and the drain electrode of the metal-oxide-semiconductor connects adapter
D- pin, the grid of the metal-oxide-semiconductor is connected to MCU, and its source electrode is grounded.
Its further technical solution are as follows: the pull-down circuit further includes one the 5th resistance, the 5th resistance one end connection
The grid of metal-oxide-semiconductor, other end ground connection.
Its further technical solution are as follows: the pull-down circuit includes a NPN triode, the collector of the NPN triode
Adapter D- pin is connected, the base stage of the NPN triode is connected to MCU, and its emitter is grounded.
Its further technical solution are as follows: the pull-down circuit further includes one the 6th resistance, the 6th resistance one end connection
The base stage of NPN triode, other end ground connection.
Its further technical solution are as follows: first voltage dividing resistance circuit includes first resistor and second resistance, and described
One end of one end connection second resistance of one resistance and adapter D+ pin, the other end of the first resistor connect DC-DC mould
One output end of block, the other end ground connection of the second resistance.
Its further technical solution are as follows: first resistor is 40.2K Ω in first voltage dividing resistance circuit, second resistance is
24KΩ。
Its further technical solution are as follows: second voltage dividing resistance circuit includes 3rd resistor and the 4th resistance, and described
One end of three resistance connects one end and the adapter D- pin of the 4th resistance, and the other end of the 3rd resistor connects DC-DC mould
One output end of block, the other end ground connection of the 4th resistance.
Its further technical solution are as follows: 3rd resistor is 40.2K Ω in second voltage dividing resistance circuit, the 4th resistance is
24KΩ。
Compared with prior art, when adapter disconnects its D+ pin and D- pin in the utility model QC protocol circuit
When, the MCU control pull-down circuit work in electronic equipment, by the voltage pull-down of adapter D- pin, to inform adapter electricity
Sub- equipment supports QC agreement, and when subsequent pull-down circuit does not work, the voltage of adapter D- pin can be drawn high again, adapter root
Voltage and the second detection voltage power supply to the device are detected according to the first of the D+ pin and D- pin detected, i.e., adapter is according to association
The different voltages value of view regulation input, powers after the conversion of electronic equipment internal DC-DC module to MCU, it is known that, this is practical new
Type is not required to specific protocol chip, simulates QC fast charge agreement using hardware circuit, realizes shaking hands for electronic equipment and adapter,
Achieve the purpose that fast charge, circuit structure is simple, and cost is relatively low.
Specific embodiment
To make those skilled in the art that the purpose of this utility model, technical solution and excellent be more clearly understood
Point is further elaborated the utility model below in conjunction with drawings and examples.
It is the circuit block diagram schematic diagram of 10 1 specific embodiment of the utility model QC protocol circuit referring to Fig. 2, Fig. 2.Attached
In embodiment shown in figure, the QC protocol circuit 10 is applied to electronic equipment, connect with an adapter 101, to pass through electronics
The MCU 102 of 103 electron equipment of DC-DC module in equipment powers, and it further includes having a QC analog circuit 104, described
QC analog circuit 104 includes the first voltage dividing resistance circuit 1041, the second voltage dividing resistance circuit 1042 and pull-down circuit 1043, institute
It states pull-down circuit 1043 and is controlled by MCU 102, and its output end connects adapter 101D- pin, under the control of MCU 102
The voltage of D- pin is dragged down, an output end of the DC-DC module 103 connects adapter by the first voltage dividing resistance circuit 1041
101D+ pin, to provide the first detection voltage for D+ pin, and the output end also passes through the connection of the second voltage dividing resistance circuit 1042
Adapter 101D- pin, to provide the second detection voltage for D- pin so that adapter 101 according to first detection voltage and
Second detection voltage is powered to MCU 102, i.e., the system voltage after DC-DC module 103 is converted passes through the first voltage dividing resistance circuit
1041 and second voltage dividing resistance circuit 1042 to adapter 101D+ pin and D- pin provide voltage, adapter 101 is according to agreement
The different voltages value for providing input is powered after the conversion of electronic equipment internal DC-DC module 103 to MCU.Preferably, this reality
It applies in example, the output pin VBUS of the adapter 101 is connect with DC-DC module 103, it is known that, which is electricity
Sub- equipment provides stable DC source.Based on the design, when adapter 101 disconnects its D+ pin and D- pin, electronics
MCU 102 in equipment controls pull-down circuit 1043 and works, by the voltage pull-down of adapter 101D- pin, to inform adaptation
101 electronic equipment of device supports QC agreement, and when subsequent pull-down circuit 1043 does not work, the voltage of adapter 101D- pin can be weighed
It newly draws high, adapter 101 is according to the first of the D+ pin and D- pin detected the detection voltage and the second detection voltage to equipment
Power supply, it is known that, the utility model is not required to specific protocol chip, simulates QC fast charge agreement using hardware circuit, realizes electronics
Equipment is shaken hands with adapter 101, achievees the purpose that fast charge, and circuit structure is simple, and cost is relatively low, and it is empty to can be applied to PCB layout
Between it is limited or have in the electronic equipment strictly limited to cost control;Even and if the standard upgrade of QC agreement, and can fit
, improve the cost performance of electronic equipment.
It is the electrical block diagram of 10 first embodiment of the utility model QC protocol circuit referring to Fig. 3, Fig. 3.In this reality
It applies in example, the 101 output pin VBUS of adapter is powered by DC-DC module 103 to MCU 102, the QC protocol circuit
QC analog circuit 104 in 10 includes the first voltage dividing resistance circuit 1041, the second voltage dividing resistance circuit 1042 and pull-down circuit
1043, wherein the pull-down circuit 1043 includes that the drain electrode of metal-oxide-semiconductor a Q1, the metal-oxide-semiconductor Q1 connects adapter 101D- pin,
The grid of metal-oxide-semiconductor Q1 be connected to MCU 102 a certain GPIO (General-purpose input/output, universal input/
Output) mouth, and its source electrode is grounded;First voltage dividing resistance circuit 1041 includes first resistor R1 and second resistance R2, described
Second voltage dividing resistance circuit 1042 includes 3rd resistor R3 and the 4th resistance R4, the second electricity of one end connection of the first resistor R1
One end and the adapter 101D+ pin of R2 are hindered, one end of the 3rd resistor R3 connects one end and the adapter of the 4th resistance R4
101D- pin, 3rd resistor R3 and the other end of first resistor R1 connect an output end of DC-DC module 103, and the described 4th
The other end of resistance R4 and second resistance R2 ground connection.Understandably, the system voltage after the DC-DC module 103 is converted has more
Road output, to guarantee the normal work of electronic equipment, in the present embodiment, is to power for the modules in electronic equipment
MCU 102 and QC analog circuit 104 provide the voltage of 3.3V.
Because the input voltage of electronic equipment in the present embodiment is rated for 12V, then in the present embodiment, the first resistor R1 is
40.2K Ω, second resistance R2 are 24K Ω, 3rd resistor R3 is 40.2K Ω, the 4th resistance R4 is 24K Ω, it will be appreciated that ground, at certain
In a little other embodiments, the first resistor R1, second resistance R2,3rd resistor R3 and the 4th resistance R4 can be according to electronic equipments
Nominal input voltage select the resistance of corresponding resistance value, such as when the nominal input voltage of electronic equipment is 9V, the first electricity
Resistance R1 resistance value can be 2K Ω, second resistance R2 be 100K Ω, 3rd resistor R3 is 40.2K Ω, the 4th resistance R4 is 24K Ω.
In certain embodiments, the QC protocol circuit 10 further includes the 5th resistance R5, one end of the 5th resistance R5
The grid of metal-oxide-semiconductor Q1 is connected, the other end is grounded, and in the present embodiment, and the 5th resistance is 10K Ω.Based on the design, the 5th
Resistance R5 can static electricity discharge, protect metal-oxide-semiconductor Q1.
Understandably, in the present embodiment, when adapter 101 accesses electronic equipment, actively D+ pin and D- pin are shorted,
It is at this time 1.23V with the voltage value of D+ pin, D- pin junction in electronic equipment, output pin VBUS default output 5V is protected
After holding 1.25S, 101 active of adapter disconnects D+ pin, D- pin, and the MCU 102 of electronic equipment controls metal-oxide-semiconductor Q1 and beats at this time
It opens, so that the voltage of D- pin is pulled down to 0V by metal-oxide-semiconductor Q1, and maintains 1ms or more, so that adapter 101 reads this voltage;With
MCU 102 controls metal-oxide-semiconductor Q1 shutdown afterwards, and the voltage at D- pin is drawn high by 3rd resistor R3 again, and D+ pin and D- draw at this time
Foot is discrete, and voltage value is all 1.23V;Adapter 101 reads the voltage of D+ pin and D- pin at this time, according to the detected
The different voltages that one detection voltage and the second detection voltage electron equipment power supply, i.e. adapter 101 provide input according to agreement
Value is powered after the conversion of electronic equipment internal DC-DC module 103 to MCU 102, and in the present embodiment, adapter 101 is according to inspection
12V voltage is converted to the system electricity of 3.3V by the voltage output 12V voltage of the D+ pin and D- pin that measure, DC-DC module 103
Pressure.Understandably, electronic equipment MCU 102 has been only involved in once in entire handshake procedure in the present embodiment, i.e., only control D- draws
Foot controls the voltage at D- pin by controlling the turn-on and turn-off of metal-oxide-semiconductor Q1.
It is the electrical block diagram of 10 second embodiment of the utility model QC protocol circuit referring to Fig. 4, Fig. 4.This implementation
Example from first embodiment the difference is that the specific structure of pull-down circuit 1043 of the present embodiment is different, remaining structure and function
It can be identical with the first embodiment.As shown in figure 4, the pull-down circuit 1043 includes including a NPN triode in the present embodiment
The collector of Q2 and the 6th resistance R6, the NPN triode Q2 connect adapter 101D- pin, the base stage of NPN triode Q2
A certain GPIO mouthfuls of MCU 102 are connected to, and its emitter is grounded, the 6th one end resistance R6 connection NPN triode Q2's
Base stage, other end ground connection.It is found that when MCU 102 controls NPN triode Q2 conducting, the voltage of D- pin can quilt in the present embodiment
The emitter of NPN triode Q2 is pulled down to 0V, and when NPN triode Q2 shutdown, the voltage at D- pin can be again by third
Resistance R3 is drawn high, then it is identical as metal-oxide-semiconductor Q1 role in first embodiment in 104 role of QC analog circuit,
Understandably, the course of work and circuit signal of the present embodiment QC protocol circuit 10 and first embodiment QC protocol circuit 10 flow to
Similar, details are not described herein.
In conclusion in the utility model QC protocol circuit when adapter disconnects its D+ pin and D- pin, electronics
MCU control pull-down circuit work in equipment, by the voltage pull-down of adapter D- pin, to inform adapter electronics branch
QC agreement is held, when subsequent pull-down circuit does not work, the voltage of adapter D- pin can be drawn high again, and adapter is according to detecting
D+ pin and D- pin first detection voltage and second detection voltage power supply to the device, i.e., adapter according to agreement provide it is defeated
The different voltages value entered is powered after the conversion of electronic equipment internal DC-DC module to MCU, it is known that, the utility model is not required to spy
Fixed protocol chip simulates QC fast charge agreement using hardware circuit, realizes shaking hands for electronic equipment and adapter, reach fast charge
Purpose, circuit structure is simple, and cost is relatively low.
The above is only the preferred embodiment of the present invention, rather than does limit in any form to the utility model
System.Those skilled in the art can impose various equivalent changes and improvement on the basis of the above embodiments, all to want in right
The equivalent variations or modification done in range are sought, should fall within the protection scope of this utility model.