Utility model content
The purpose of this utility model is to provide the multi-chip package method of testing based on MCU of a kind of simple in construction, stable performance, with the problem solving to propose in above-mentioned background technology.
For achieving the above object, the following technical scheme of this utility model offer:
A kind of QC2.0 protocol circuit for portable power source electric discharge, including USB port P2, resistance R12, resistance R13, resistance R17, resistance R18 and electric capacity C7, the foot 1 of described USB port P2 connects booster circuit and charging voltage input port V2_OUT, the foot 2 of USB port P2 connects resistance R12 and resistance R13, the other end of resistance R12 connects the AD mouth D+ of MCU, the other end of resistance R13 connects the AD mouth D-of the foot 3 and MCU of USB port P2, the foot 4 of USB port P2 connects resistance R17 and resistance R18, the other end of resistance R17 connects electric capacity C7 and voltage V-1OUT1, the other end ground connection of electric capacity C7.
As preferred version of the present utility model: described USB port P2 is also connected with QC2.0 and manages equipment M.
Compared with prior art, the beneficial effects of the utility model are: this utility model utilizes single-chip microcomputer and simple peripheral circuit to realize the protocol handshake of QC2.0 cleverly, thus realize not agreement IC and can also realize carrying out QC2.0 agreement charging to smart machine, circuit structure is simple.Application flexibly, even if the standard upgrade of QC2.0, also can be suitable for, thus promote the cost performance of existing product.
Detailed description of the invention
Below in conjunction with the accompanying drawing in this practicality utility model example, the technical scheme in this practicality utility model example is clearly and completely described, it is clear that described embodiment is only a part of embodiment of this utility model rather than whole embodiments.Based on the embodiment in this utility model, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of this utility model protection.
Refer to Fig. 1, in this practicality utility model example, a kind of QC2.0 protocol circuit for portable power source electric discharge, including USB port P2, resistance R12, resistance R13, resistance R17, resistance R18 and electric capacity C7, the foot 1 of described USB port P2 connects booster circuit and charging voltage input port V2_OUT, the foot 2 of USB port P2 connects resistance R12 and resistance R13, the other end of resistance R12 connects the AD mouth D+ of MCU, the other end of resistance R13 connects the AD mouth D-of the foot 3 and MCU of USB port P2, the foot 4 of USB port P2 connects resistance R17 and resistance R18, the other end of resistance R17 connects electric capacity C7 and voltage V-1OUT1, the other end ground connection of electric capacity C7.
USB port P2 is also connected with QC2.0 and manages equipment M.
Operation principle of the present utility model is: owing to current portable power source more than 95% is useful AD type MCU, so we can be by AD type MCU, in conjunction with above circuit, it is possible to allow portable power source realize QC2.0 protocol handshake to equipment when discharging.Thus realize high-power charging.
In figure, P2 is USB discharge port, is used for machine of taking over etc. and supports the equipment of QC2.0.
V2_OUT is charging voltage input port, is external to booster circuit modular circuit simultaneously, owing to boost module and this utility model are unrelated, does not illustrates at this.
R18 is discharge current thief hatch, and R17, C7 are simple RC filtering, and this partial circuit is general known technology, does not illustrates at this.
D+, D-are the AD mouth receiving MCU, and R12, R13 combination coordinates D-, D+ to realize protocol handshake, and specific works flow process is as follows:
1, once equipment M (stating for convenience, represent equipment with M) is linked into P2, and now D+, D-are set to AD input port, and 2 feet of P2 and 3 feet are equivalent to be shorted together by R13.
2, equipment M can produce the voltage of a 0.325V automatically on 2 feet, sounds out 2 feet and whether 3 feet turn on, and this process maintains general about 1.25s, if 3 feet receive identical voltage, then it is assumed that 2 feet and 3 feet are conductings.
3, D+, D-gather 2 feet and the voltage of 3 feet, if be detected that the voltage of 0.325, and maintain 1.25S, now D-is set to output pin, exports 0.
4, now equipment M can detect that the voltage of D-declines, and M then will be considered that charger is the equipment supporting QC charging, actively can export a voltage at 2 feet and 3 feet.
5, D-, D+ are after 500ms, are set to AD mouth, start to detect 2 feet and the voltage of 3 feet, according to the voltage detected, utilize booster circuit to boost, and discharge to M equipment.