Disclosure of Invention
An object of the embodiment of the invention is to provide a power circuit and an adapter, which solve the technical problems of low power consumption and narrow application range of sampling voltage in the traditional technology.
In order to solve the technical problems, the embodiment of the invention provides the following technical scheme:
In a first aspect, an embodiment of the present invention provides a power supply circuit, including a main circuit module, a current mirror module, and a control module, where an input end of the current mirror module is connected to an output end of the main circuit module and is used to sample an output current of the main circuit module, and the control module is connected to an output end of the current mirror module and is used to adjust an output power of the main circuit module according to the sampled output current.
Optionally, the main circuit module is configured with two positive voltage output paths and a ground loop path shared by the two positive voltage output paths, and the input end of the current mirror module is connected to the two positive voltage output paths.
The current mirror module comprises at least two current mirror units, wherein the input end of one current mirror unit is connected to one positive voltage output path, the output end of the other current mirror unit is connected with the control module, the input end of the other current mirror unit is connected to the other positive voltage output path, and the output end of the other current mirror unit is connected with the control module.
Optionally, the current mirror unit comprises a current conversion circuit for sampling and converting the output current flowing through the positive voltage output path, and a mirror current source circuit for mirroring the converted output current and outputting a mirror current.
Optionally, the current mirror unit further comprises a negative feedback circuit for adjusting the mirror current.
Alternatively, one positive voltage output path is used for outputting 48V voltage, and the other positive voltage output path is used for outputting 12V voltage.
Optionally, the power supply circuit further comprises a dynamic dummy load module, wherein the dynamic dummy load module comprises two input ends, one input end of the dynamic dummy load module is connected to one positive voltage output path, and the other input end of the dynamic dummy load module is connected to the other positive voltage output path and is used for automatically adding a load when the output voltage of the main circuit module is larger than a preset threshold value.
Optionally, the control module comprises a comparison circuit and a control circuit, wherein the comparison circuit is used for generating a comparison result according to the sampled output current and a preset threshold value, and the control circuit is used for adjusting the output power of the main circuit module according to the comparison result.
Optionally, the main circuit module comprises an EMC circuit, a rectifying circuit, a PFC circuit and a resonance circuit, wherein the input end of the EMC circuit is used for being externally connected with a power supply, the input end of the rectifying circuit is connected with the output end of the EMC circuit, the input end of the PFC circuit is connected with the output end of the rectifying circuit, the input end of the resonance circuit is connected with the output end of the PFC circuit, and the output end of the resonance circuit is used for outputting voltage and current.
In a second aspect, embodiments of the present invention provide an adapter comprising any of the power circuits.
In the power supply circuit provided by the embodiments of the invention, the current mirror module samples the output current of the main circuit module, and the control module adjusts the output power of the main circuit module according to the sampled output current, so that the power supply circuit can work in a limited power mode or an expected working state required by safety regulations. The current mirror module does not need to be supplied with power by an external power supply when working, and can adapt to sampling of high and low voltages, so that the power supply circuit has the characteristics of low power consumption and wide voltage sampling range.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The power supply circuit provided by the embodiment of the invention can be applied to various power supply devices, such as an adapter, an LED power supply and the like.
Referring to fig. 1, fig. 1 is a schematic block diagram of a power supply circuit according to an embodiment of the invention. As shown in fig. 1, the power supply circuit 100 includes a main circuit block 11, a current mirror block 12, and a control block 13.
The input end of the current mirror module 12 is connected with the output end of the main circuit module 11, and the control module 13 is connected with the output end of the current mirror module 12.
The main circuit module 11 is configured to convert an external power source into a desired output voltage or output current in response to an input of the external power source, which may be a single output, a dual output, or a multiple output.
The current mirror module 12 is used for sampling the output current of the main circuit module 11, and the control module 13 adjusts the output power of the main circuit module 11 according to the sampled output current. For example, when the output current of the main circuit module 11 is greater than the preset current threshold, the control module 13 decreases the output current of the main circuit module 11 according to the sampled output current, so that the output current of the main circuit module 11 is maintained within the desired current value range. Or when the output current of the main circuit module 11 is less than a preset current threshold, the control module 13 maintains the current operation state of the main circuit module 11.
In some embodiments, the control module 13 may adjust the main circuit module 11 directly according to the sampling result, or may adjust the main circuit module after comparing the sampling result in advance. For example, as shown in FIG. 2, the control module 13 includes a comparison circuit 131 and a control circuit 132.
The comparison circuit 131 is configured to generate a comparison result according to the sampled output current and a preset threshold. The user may customize the preset threshold for the comparison circuit 131 according to the product design, for example, the preset threshold is 2.5 volts. The control circuit 132 is configured to adjust the output power of the main circuit module 11 according to the comparison result.
In summary, since the current mirror module 12 does not need to be supplied with power from an external power source and can adapt to sampling of high and low voltages, the power supply circuit 100 has the characteristics of low power consumption, wide voltage sampling range, simple structure and low cost.
As shown in fig. 3, the main circuit module 11 configures two positive voltage output paths and a ground loop path shared by both, and the input terminal of the current mirror module 12 is connected to the two positive voltage output paths. Since the power circuit 100 is a two-way output, in order to preferably sample the output currents corresponding to each way, the input end of the current mirror module 12 may be connected to two positive voltage output paths to sample the output currents corresponding to each way, so that the following circuit can accurately distinguish the working states of each way.
In some embodiments, the main circuit module 11 is capable of outputting 48 volts and 12 volts through two positive voltage output paths, for example, one positive voltage output path for outputting 48 volts and the other positive voltage output path for outputting 12 volts. When the current mirror module 12 is used to sample the output current of the positive voltage output path loaded with 48 volts, the current mirror module 12 is able to complete the sampling operation under a high-side voltage of 48 volts. With conventional technology, the current commercial op-amp or chip fails to meet the sampling requirement at 48 volts, and the maximum acceptable sampling voltage is 36 volts. Therefore, the current mirror module 12 provided in the present embodiment can perform sampling operation at a high-side voltage.
In some embodiments, as shown in fig. 4, the power circuit 100 also includes a dynamic dummy load module 14. The dynamic dummy load module 14 includes two input terminals, one input terminal of the dynamic dummy load module 14 is connected to one positive voltage output path, and the other input terminal of the dynamic dummy load module 14 is connected to the other positive voltage output path.
The dynamic dummy load module 14 is configured to automatically add a load when the output voltage of the main circuit module 11 is greater than a preset threshold. For example, when the output voltage of one positive voltage output path of the main circuit module 11 is greater than 48V or 12V, the dynamic dummy load module 14 automatically adds a load to the power circuit 100 to pull down the output voltage, so as to avoid the output voltage from floating high.
In view of more efficient and accurate sampling of the output current, in some embodiments, as shown in fig. 5, the current mirror module 12 includes at least two current mirror units 121, where an input terminal of one current mirror unit 121 is connected to a positive voltage output path, and an output terminal of one current mirror unit 121 is connected to the control module 13. The input end of the other current mirror unit 121 is connected to the other positive voltage output path, and the output end of the other current mirror unit 121 is connected to the control module 13.
One current mirror unit 121 can sample the output current flowing through one positive voltage output path, and the other current mirror unit 121 can sample the output current flowing through the other positive voltage output path. The control module 13 may adjust the main circuit module 11 according to the sampling result of the current mirror unit 121 corresponding to each positive voltage output path.
However, in some embodiments, based on the safety standard, for example, in order to also meet LPS (Limited Power Source) safety standards in a single failure mode, as shown in fig. 6, the current mirror module 12 includes four current mirror units 121, each positive voltage output path is configured with two current mirror units 121. In the sampling process, when one current mirror unit 121 on a specific positive voltage output path fails, the other current mirror unit 121 on the specific positive voltage output path is substituted for the sampling operation, so that it is ensured that the power supply circuit 100 can operate reliably and stably.
In some embodiments, as shown in FIG. 7, the current mirror unit 121 includes a current conversion circuit 1211 and a mirrored current source circuit 1212. An input terminal of the current conversion circuit 1211 is connected to a corresponding positive voltage output path, an output terminal of the current conversion circuit 1211 is connected to an input terminal of the mirror current source circuit 1212, and an output terminal of the mirror current source circuit 1212 is connected to the control module 13.
The current conversion circuit 1211 is used to sample and convert the output current flowing through the positive voltage output path. In general, the output current flowing through the positive voltage output path is relatively large, and in order to facilitate detection and analysis of subsequent circuits, the current conversion circuit 1211 can convert the output current flowing through the positive voltage output path into a relatively small current, and establish a linear function relationship between the output current and the converted current.
The mirror current source circuit 1212 is configured to mirror the converted output current and output a mirror current. The control module 13 adjusts the output power of the main circuit module 11 according to the mirror current.
In some embodiments, as shown in fig. 8, the current mirror unit 121 further includes a negative feedback circuit 1213, and the negative feedback circuit 1213 is connected to the mirrored current source circuit 1212. The negative feedback circuit 1213 is used to adjust the mirror current. In general, when an external factor causes unstable operation of the image current source circuit 1212, for example, an excessive temperature causes a change in the switching transistor of the image current source circuit 1212, so that the image current rises. Then, the negative feedback circuit 1213 adjusts the image current source circuit 1212 according to the raised image current such that the image current source circuit 1212 drops the raised image current to a desired current value, thereby improving sampling accuracy.
In the above embodiments, the main circuit module 11 can be designed by a person skilled in the art according to the product requirements. For example, in some embodiments, as shown in FIG. 9, the main circuit module 11 includes an EMC circuit 111, a rectifying circuit 112, a PFC circuit 113, and a resonant circuit 114.
The input end of the EMC circuit 111 is used for an external power supply, the input end of the rectifying circuit 112 is connected with the output end of the EMC circuit 111, the input end of the PFC circuit 113 is connected with the output end of the rectifying circuit 112, the input end of the resonant circuit 114 is connected with the output end of the PFC circuit 113, and the output end of the resonant circuit 114 is used for outputting voltage and current.
The EMC circuit 111 receives an external power supply, filters out interference of some clutter signals, and outputs the EMC-processed power supply to a next stage circuit.
The rectifier circuit 112 converts the EMC-processed power supply into a direct-current power supply and transmits the direct-current power supply to the next-stage circuit.
The PFC circuit 113 performs power factor correction processing on the dc power supply, and transfers the processed dc power supply to the next stage circuit.
The resonant circuit 114 steps down the dc power supply after the power factor correction, and outputs the stepped down output voltage to the load. Wherein the resonant circuit 114 may output multiple voltages through multiple positive voltage paths.
Therefore, the main circuit module 11 provided in this embodiment has the advantages of good electromagnetic compatibility, high power factor, multiple outputs, and the like.
For the purpose of elaborating embodiments of the present invention, the working principle of the detailed power supply circuits of fig. 10 to 18 of the embodiments of the present invention is as follows:
Referring to fig. 10 and 11, the main circuit module 11 includes an EMC circuit 111, a rectifying circuit 112, a PFC circuit 113 and a resonant circuit 114.
The control module 13 may adjust the frequency or duty cycle of the resonant circuit 114 based on the sampled output current, thereby adjusting the output power of the main circuit module 11.
Referring to fig. 12 and 13 together, the control module 13 includes a comparing circuit 131 and a control circuit 132, wherein the comparing circuit 131 is configured to generate a comparison result according to the sampled output current and a predetermined threshold. The control circuit 132 is configured to adjust the output power of the main circuit module 11 according to the comparison result. The control circuit 132 includes a controller and peripheral circuits.
In order to explain the operation principle of the comparison circuit 131 in detail, the present embodiment will be described by taking the comparison circuit U9 in fig. 13 as an example. Referring to fig. 14, a preset voltage of 2.5V is preset inside u 9. When the voltage of the R end is more than 2.5V, the triode is conducted, namely the C pin and the A pin of the U9 are conducted.
Therefore, in the present embodiment, the sampled output current is converted into a voltage and is loaded at the R terminal, so as to achieve the purpose of comparison.
Referring to fig. 15, the current mirror module 12 includes four current mirror units 121, two current mirror units 121 are disposed on a positive voltage output path outputting 48 volts, and two current mirror units 121 are disposed on a positive voltage output path outputting 12 volts.
To explain the operation principle of the current mirror unit in detail, this embodiment will be described with one current mirror unit as an example in fig. 15. In order to detect the current I1 flowing through R46, it is necessary to provide a current conversion circuit 1211 to linearly convert the current I1. Referring to fig. 16, the following equations are provided:
R46*I1=R83*I2
i2=i1R 46/R83, i2≡i3.
Referring to fig. 17, according to the working principle of the mirror current source, i3=i3+2ib, ib is very small and negligible, i.e. i3≡i3≡i4≡i5, i.e. i5≡i3+i4≡i2≡2 (i1×r46/R83). V0=i5×r 50=2 (I1R 46/R83) R50. When the voltage V0 reaches 2.5V, a feedback loop is triggered, and protection is initiated. And, it can adjust the voltage V0 by adjusting the resistors R46, R83, R50 so that the control module 13 adjusts the output power of the main circuit module 11 according to the voltage V0.
Referring to fig. 15 again, the current mirror unit 121 corresponding to 48 v voltage changes the switching tube of the mirror current source circuit 1212 at an excessive temperature, so that when the mirror current rises, the error generated by the rising mirror current is relatively large due to the high-side sampling, and therefore, the negative feedback circuit 1213 formed by the resistor bridge networks R69, R71, R70 and R72 can adjust the voltage drop between the base and the emitter of the switching tube E2 in the U15 in a negative feedback manner, thereby reducing the base current, and further reducing the emitter current, that is, reducing the mirror current. Of course, the negative feedback circuit 1213 may also be applied to the current mirror unit 121 corresponding to 12 volts, and the application range of the negative feedback circuit 1213 is not limited herein.
Referring to fig. 18, the dynamic dummy load module 14 is composed of a plurality of resistors and a comparator U4. Because the power circuit 100 is a two-way output, when one output is a null load or carries a light load, the output voltage corresponding to the other positive voltage path may drift high, thereby affecting the operation stability of the power circuit 100. For example, when the output voltage corresponding to the positive voltage path of 48 v is high, so that the voltage drop across the resistor R80 is 2.5 v greater than the preset threshold voltage of the comparator U4, then the C terminal and the a terminal are turned on, and thus the dynamic dummy load module 14 is added into the power circuit 100 as a dummy load to avoid the output voltage from continuously floating high. Similarly, when the output voltage corresponding to the 12 v positive voltage path is high, the working principle of the circuit can refer to the above, and is not repeated here. Similarly, the dynamic dummy load module 14 can adapt not only to two output voltages, but also to three or more output voltages.
It should finally be noted that the above embodiments are only intended to illustrate the technical solution of the present application and not to limit it, that the technical features of the above embodiments or of the different embodiments may be combined in any order, and that many other variations in the different aspects of the present application as described above exist, which are not provided in details for the sake of brevity, and that although the application has been described in the detailed description with reference to the foregoing embodiments, it should be understood by those skilled in the art that it may still make modifications to the technical solution described in the foregoing embodiments or equivalent to some of the technical features thereof, where these modifications or substitutions do not depart from the essence of the corresponding technical solution from the scope of the technical solution of the embodiments of the present application.