A kind of current detection circuit
Technical field
The present invention relates to power technique fields, particularly relate to a kind of current detection circuit.
Background technology
Current detection circuit is commonly used to detect output end current, compare with reference current again after detecting, import high (low) level afterwards, and it is fed back to control end, current/voltage or the like with the control input circuit, in Switching Power Supply, feed back to certain chip usually, again by this chip controls switching tube.
Summary of the invention
The current detection circuit that the objective of the invention is to avoid weak point of the prior art and a kind of simple and stable is provided.
Purpose of the present invention realizes by following technical measures:
A kind of current detection circuit, comprise resistance R 1, R2, integrated circuit U1, U2 capacitor C 1-C3, CAP1, the two ends of R1 are connected to Vin+ and the Vin-of U1, the GND of U1 and Ref2 are connected in the end of C3, the positive pole of U2, the end of C2, the negative pole of CAP1, an end and the ground connection of C1, the Ref1 of another termination U1 of C3, the adjustable side of U2, the V+ of U1 is connected in the negative pole of D5V, U2, the other end of C2 and the positive pole of CAP1, the Vout of U1 is connected in the end of R2, and the other end of R2 is connected in the other end of CPU_ISEN and C1.
U1 is AD8205.
U2 is REF3033.
The present invention has realized direct current detection, and can realize the design (high terminal voltage can reach 65V) of the high-end compatibility of low side, output dc voltage 0~3.3V, can directly deliver to the MCU system of 3.3V power supply, read current detection accuracy height of the present invention by what the AD conversion realized electric current, wide ranges, component number is few, and the non-isolation of high-low pressure is compatible good, detects range of current adjustable (regulate maximum by adjusting sampling resistor R1 resistance and can check range of current).
Description of drawings
The present invention will be further described to utilize accompanying drawing, but the content in the accompanying drawing does not constitute any limitation of the invention.
Fig. 1 is the circuit diagram of an embodiment of current detection circuit of the present invention.
Embodiment
The invention will be further described with the following Examples.
An embodiment of current detection circuit of the present invention as shown in Figure 1, comprise resistance R 1, R2, integrated circuit U1, U2 capacitor C 1-C3, CAP1, the two ends of R1 are connected to Vin+ and the Vin-of U1, the GND of U1 and Ref2 are connected in the end of C3, the positive pole of U2, the end of C2, the negative pole of CAP1, an end and the ground connection of C1, the Ref1 of another termination U1 of C3, the adjustable side of U2, the V+ of U1 is connected in the negative pole of D5V, U2, the other end of C2 and the positive pole of CAP1, the Vout of U1 is connected in the end of R2, and the other end of R2 is connected in the other end of CPU_ISEN and C1.U1 is AD8205.U2 is REF3033.
This circuit has been realized direct current detection, and can realize the design (high terminal voltage can reach 65V) of the high-end compatibility of low side, and output dc voltage 0~3.3V can directly deliver to the MCU system that 3.3V powers, and realizes reading of electric current by the AD conversion.This blocks current accuracy of detection height, wide ranges, component number is few, and the non-isolation of high-low pressure is compatible good, and maximum current that scalable detects.
When current flowing resistance R1, can produce a pressure reduction at the R1 two ends, this differential signal is delivered to the input end of AD8205, directly export the voltage signal of 0~3.3V, can realize the detection of electric current through the AD mouth of delivering to MCU after the simple RC wave filter.If MCU is the 5V system, then only need No. 7 pins are connected to the output that D5V can realize exporting 5V.The enlargement factor of AD8205 is 50 times of fixed values, when needs are adjusted maximum detection current value, only needs to revise the R1 value and can adjust the current detecting scope.
Should be noted that at last; above embodiment only is used to illustrate technical scheme of the present invention but not limiting the scope of the invention; although the present invention has been done detailed description with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the essence and the scope of technical solution of the present invention.