Current detection circuit, current detection method, chip and electronic equipment
By designing the current detection circuit of the voltage average module, voltage compensation module and current detection module, the problem of high cost, large loss and low accuracy when detecting the output current of the digital product power supply in the prior art is solved, and high accuracy and low cost output current detection is achieved.
Patent Information
- Application Number
- CN202510180248.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-02-18
AI Technical Summary
The prior art has high cost, high loss to load voltage and low accuracy when detecting the output current of the digital product power supply, making it difficult to find a balance between cost and accuracy.
A current detection circuit is designed, including a voltage averaging module, a voltage compensation module and a current detection module. By averaging the output voltages of multiple output terminals of the power supply, combining the load voltage and the impedance of the power supply distribution network, the output current is calculated.
It realizes the accuracy of output current detection while reducing cost and load voltage losses, and is suitable for scenarios where real-time monitoring of digital product power consumption is required.
Smart Images

Figure CN119986091A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of chip technology, and in particular to a current detection circuit, a current detection method, a chip, and an electronic device. Background Art
[0002] Most digital products are equipped with a power supply to provide energy. If the power consumption of a digital product is too high, it will reduce the stability of the digital product and shorten the service life of the digital product. Therefore, it is necessary to monitor the power consumption of digital products.
[0003] The common idea of detecting the power consumption of digital products is to first detect the output current of the power supply, and then determine the actual power consumption of the digital product based on the output current. The existing technical solutions have the disadvantages of large loss of load voltage, high cost and low accuracy in detecting the output current. How to accurately detect the output current of the power supply and determine the actual power consumption of the digital product under the premise of low cost of calculating the output current and low loss of load voltage has become a technical problem that needs to be solved in this field. Summary of the invention
[0004] In view of this, the present disclosure proposes a current detection circuit, a current detection method, a chip, and an electronic device. The cost of calculating the output current and the loss of the load voltage by using the current detection circuit of the present disclosure are both small, and the accuracy is also high.
[0005] According to one aspect of the present disclosure, a current detection circuit is provided, the circuit comprising a voltage averaging module, a voltage compensation module, and a current detection module, the voltage averaging module being used to average the output voltages of M output terminals of a power supply to obtain an average voltage, and output the average voltage to the voltage compensation module; the residual voltage when the output voltage is transmitted to a load via a power distribution network is used as a load voltage, the voltage compensation module being used to obtain a compensation voltage based on the average voltage and the load voltage, and output the compensation voltage to the current detection module, the compensation voltage being less than the average voltage, and the difference between the average voltage and the compensation voltage increasing with an increase in the impedance of the power distribution network; the current detection module being used to determine the output current of the power supply based on the compensation voltage, the load voltage, and a preset impedance of the power distribution network.
[0006] In a possible implementation, the voltage compensation module includes a first voltage divider unit and a second voltage divider unit, the first end of the first voltage divider unit serves as the first end of the voltage compensation module, and receives the average voltage; the second end of the first voltage divider unit is connected to the first end of the second voltage divider unit, and serves as the second end of the voltage compensation module, and outputs the compensation voltage; the second end of the second voltage divider unit serves as the third end of the voltage compensation module, and receives the load voltage; the actual impedance of the power distribution network increases with increasing temperature, the actual impedance of the second voltage divider unit decreases with increasing temperature, and the impedance of the first voltage divider unit and the voltage averaging module remains unchanged when the temperature changes.
[0007] In a possible implementation, the second voltage divider unit includes a first resistor, a second resistor, and a third resistor, the first resistor is a temperature-sensitive resistor, one end of the first resistor is connected to the first end of the third resistor and serves as the first end of the second voltage divider unit; the second end of the first resistor is connected to the first end of the second resistor; the second end of the second resistor is connected to the second end of the third resistor and serves as the second end of the second voltage divider unit.
[0008] In a possible implementation, the voltage averaging module includes M resistors, and the M resistors correspond one-to-one to the M output terminals of the power supply; the first end of each resistor is connected to a corresponding output terminal, and the second end is connected to the first end of the voltage compensation module.
[0009] In a possible implementation, the power supply includes an energy storage module and M switch circuits.
[0010] The output end of the energy storage module is connected to the first end of each switching circuit, and the second end of each switching circuit serves as one of the M output ends of the power supply; each switching circuit includes a field effect transistor switch and an inductor, and in any switching circuit, the first end of the field effect transistor switch serves as the first end of the switching circuit, the second end of the field effect transistor switch is connected to the first end of the inductor, and the second end of the inductor serves as the second end of the switching circuit.
[0011] In a possible implementation, the power supply includes an energy storage module, M field effect transistor switches and M inductors, each field effect transistor switch is connected to a corresponding inductor, the output end of the energy storage module is connected to the first end of each field effect transistor switch; the second end of each field effect transistor switch is connected to the first end of the corresponding inductor, and the second end of the inductor serves as one of the M output ends of the power supply.
[0012] According to another aspect of the present disclosure, a current detection method is provided, the method uses a current detection circuit to detect the output current of a power supply, the circuit includes a voltage averaging module, a voltage compensation module, and a current detection module, the method includes: using the voltage averaging module to average the output voltages of M output terminals of the power supply to obtain an average voltage, and outputting the average voltage to the voltage compensation module; using the remaining voltage when the output voltage is transmitted to the load via a power distribution network as a load voltage, using the voltage compensation module to obtain a compensation voltage based on the average voltage and the load voltage, and outputting the compensation voltage to the current detection module, the compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network; using the current detection module to determine the output current of the power supply based on the compensation voltage, the load voltage and the preset impedance of the power distribution network.
[0013] According to another aspect of the present disclosure, a chip is provided, comprising the above-mentioned current detection circuit.
[0014] According to another aspect of the present disclosure, an electronic device is provided, comprising the chip described above.
[0015] In a possible implementation, the electronic device further includes a power supply, a power distribution network, and a load.
[0016] According to the current detection circuit of the embodiment of the present disclosure, the output voltages of the M output terminals of the power supply are averaged by the voltage averaging module, and the average voltage can be obtained and output to the voltage compensation module. The residual voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage. The voltage compensation module can obtain the compensation voltage according to the average voltage and the load voltage, and output the compensation voltage to the current detection module; the current detection module determines the output current of the power supply according to the compensation voltage, the load voltage and the impedance of the power distribution network. Since the compensation voltage is less than the average voltage, the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network. Therefore, the error of the difference between the average voltage and the load voltage caused by the influence of the impedance change of the power distribution network on the load voltage can be offset in the difference between the compensation voltage and the load voltage, so that the difference between the compensation voltage and the load voltage is close to the voltage difference between the output terminal of the power supply and the input terminal of the load under the ideal environment where the impedance of the power distribution network remains unchanged; therefore, according to the compensation voltage, the load voltage and the preset impedance of the power distribution network, the output current of the power supply can be obtained, and the calculation accuracy of the output current is guaranteed. The circuit does not need to use an integrated power supply, so the circuit cost can be reduced, and the values of the compensation voltage and load voltage used to calculate the output current are relatively large, so the current detection circuit has a stronger anti-interference ability and the output current has a higher accuracy; there is no need to use precision resistors, which can reduce the load voltage loss and reduce the layout and wiring complexity, further reducing the circuit cost. In summary, the current detection circuit disclosed in the present invention has a low cost for calculating the output current and a low loss on the load voltage, and has a high accuracy.
[0017] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0019] Figure 1 An exemplary application scenario of the current detection circuit according to an embodiment of the present disclosure is shown.
[0020] Figure 2 A schematic diagram showing the structure of a current detection circuit according to an embodiment of the present disclosure.
[0021] Figure 3 A schematic diagram showing the structure of a power supply according to an embodiment of the present disclosure.
[0022] Figure 4 A schematic diagram showing the structures of a voltage averaging module and a voltage compensation module according to an embodiment of the present disclosure.
[0023] Figure 5 A schematic diagram showing the structure of a second voltage dividing unit according to an embodiment of the present disclosure.
[0024] Figure 6 A schematic diagram showing the flow of a current detection method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0026] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0027] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0028] The power supply in digital products is usually a switching power supply, which consists of an energy storage module, a field effect transistor switch and an inductor. In the absence of current detection requirements, the output end of the energy storage module is connected to the first end of each field effect transistor switch, the second end of each field effect transistor switch is connected to the first end of the corresponding inductor, and the second end of each inductor is used as the output end of the power supply, connected to the power distribution network, so as to output current to the load connected to the power distribution network. The following introduces the output current detection scheme of the power supply in the prior art.
[0029] Solution 1 is to add a precision resistor between the output end of the energy storage module and the first end of the connected field effect transistor switch, and detect the input current and input voltage through the precision resistor. The output current of the power supply can be calculated by combining the input current, input voltage and the working efficiency of the power supply. However, due to the delay of the field effect transistor switch, the calculated output current is not real-time, so this solution is not suitable for scenarios where the output current needs to be calculated in real time.
[0030] The second solution is to use an integrated FET switch chip in the switching power supply, such as a smart power stage (SPS) chip, which can detect the current value flowing through each FET switch in real time. The current value flowing through all FET switches can be calculated to obtain the real-time power supply output current. However, the cost of integrated FET switch chips is still very high, about 2-3 times that of independent FET switches, which increases the circuit cost.
[0031] Solution three is to realize current detection through the working principle of inductance. All inductors have direct current resistance (DCR) when they are manufactured. When a certain current I flows through the inductor, a proportional DC voltage difference V will be generated at both ends of the inductor, V = I × DCR. Therefore, by detecting the DC voltage difference V, the current I, that is, the output current, can be calculated. However, with the development of switching power supplies, the switching frequency is getting higher and higher, the inductance value is getting smaller and smaller, and the DCR is also getting smaller and smaller. When the inductance value reaches 80nH, the DCR is only about 0.18mohm, which is equivalent to a 30A current. The current can only form a DC voltage difference of about 5.4mV at both ends of the inductor. Because the value of the DC voltage difference is too small, even a small interference of a few mV will affect the detection accuracy of the DC voltage difference, and it is difficult to guarantee the accuracy of the detected output current.
[0032] Solution 4 is to add precision resistors between the inductor and the power distribution network to detect the output current through precision resistors. However, this will cause additional voltage loss, and for multi-phase power supplies, each phase needs to add precision resistors, which is not conducive to the layout and wiring of the substrate, and will increase the cost of current detection.
[0033] In view of this, the present disclosure proposes a current detection circuit, a current detection method, a chip, and an electronic device. The cost of calculating the output current and the loss of the load voltage by using the current detection circuit of the present disclosure are both small, and the accuracy is also high.
[0034] Figure 1 An exemplary application scenario of the current detection circuit according to an embodiment of the present disclosure is shown.
[0035] like Figure 1 As shown, the current detection circuit can be set in an electronic device (not shown). The module that needs to be powered on the electronic device can be used as a load, such as a central processing unit, a graphics processing unit, etc. When the electronic device is working, the power supply provides an output current to the load to power the load, and the current detection module detects the current output by the power supply according to the output voltage of the power supply and the load voltage of the load.
[0036] According to the detection results of the current detection module, the actual power consumption of the electronic device can be determined, and it can be judged whether the performance of the electronic device needs to be limited according to the actual power consumption. Furthermore, the output voltage of the power supply can be set according to the detection results, that is, it is used to set the load line. The load line is a mechanism in which the output voltage decreases proportionally as the load impedance becomes lower. If VOUT represents the output voltage when there is a load, V_0 represents the output voltage when there is no load, IOUT represents the output current when there is a load, and R_Loadline represents the load impedance, then VOUT=V_0–IOUT×R_Loadline. The benefit of setting the load line is that it can set a lower output voltage while allowing the electronic device to work normally, so that the voltage fluctuation is smaller.
[0037] Figure 2 A schematic diagram showing the structure of a current detection circuit according to an embodiment of the present disclosure.
[0038] like Figure 2 As shown, in a possible implementation, the present disclosure proposes a current detection circuit, the circuit comprising a voltage averaging module, a voltage compensation module, and a current detection module.
[0039] The voltage averaging module is used to average the output voltages of the M output terminals of the power supply to obtain an average voltage, and output the average voltage to the voltage compensation module;
[0040] The remaining voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage. The voltage compensation module is used to obtain the compensation voltage according to the average voltage and the load voltage, and output the compensation voltage to the current detection module. The compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network.
[0041] The current detection module is used to determine the output current of the power supply according to the compensation voltage, the load voltage and the preset impedance of the power distribution network.
[0042] For example, the output end of the power supply can be connected to the input end of the load through the power distribution network PDN. The load is powered. The power supply may include M output ends, where M may be an integer greater than 1, that is, the power supply may be a multi-phase power supply. An exemplary structure of the power supply can be found in Figure 3 and related descriptions.
[0043] The current detection circuit may include a voltage averaging module, a voltage compensation module and a current detection module. The voltage averaging module is connected to M output terminals of the power supply, and is used to average the voltages output by the M output terminals to obtain an average voltage, and output the average voltage to the voltage compensation module. The voltage averaging module may include M lines, each of which is connected to an output terminal of the power supply and the voltage compensation module. The average voltage V_average is the total output voltage of the power supply. When the voltage output by each output terminal of the power supply remains unchanged, the average voltage remains unchanged regardless of whether the temperature rises or falls.
[0044] The power distribution network itself has a certain impedance, so part of the voltage will be lost when the power distribution network is used to transmit voltage. The remaining voltage when the output voltage is transmitted to the load through the power distribution network is the load voltage. The impedance of the power distribution network will change with temperature. When the temperature rises, the impedance of the power distribution network increases, the output current decreases, and the voltage transmission loss increases; when the temperature decreases, the impedance of the power distribution network decreases, the output current increases, and the voltage transmission loss decreases. Therefore, when the output voltage of each output terminal of the power supply remains unchanged, the load voltage will also change with temperature. When the temperature rises, the load voltage will decrease; when the temperature decreases, the load voltage will increase.
[0045] If it is assumed that the impedance of the power distribution network remains unchanged during the voltage transmission process and is equal to the preset impedance of the power distribution network (the impedance when no voltage is transmitted), then the ratio of the voltage difference between the average voltage and the load voltage to the preset impedance of the power distribution network is the output current of the power distribution network. However, the power distribution network will heat up due to the voltage transmission, causing the impedance of the power distribution network to gradually increase, the output current to gradually decrease, the voltage transmission loss to gradually increase, the load voltage to gradually decrease, and the voltage difference between the average voltage and the load voltage to gradually increase. If the output current is still calculated using the voltage difference between the average voltage and the load voltage and the preset impedance of the power distribution network, the calculated output current is not accurate enough.
[0046] In this regard, the embodiment of the present disclosure proposes to use a voltage compensation module to connect the voltage averaging module to receive the average voltage, and connect the input end of the load to receive the load voltage. The voltage compensation module can obtain a compensation voltage based on the average voltage and the load voltage, and make the compensation voltage less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network. In this case, the difference between the compensation voltage and the load voltage will be closer to the difference between the average voltage and the load voltage in the ideal case where the impedance of the power distribution network remains unchanged.
[0047] For example, assuming that the average voltage is V_average, when the power distribution network starts to transmit voltage, the load voltage V_chip is maximum and has a value of V_chip_max, which is similar to the load voltage when the impedance of the power distribution network remains unchanged at the preset impedance. The impedance of the power distribution network increases, causing the load voltage to decrease by △V. The compensation voltage V_partial can be made to be V_average-△V, at which time the compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage is equal to the change in the load voltage (V_average-V_partial=△V), which increases as the impedance of the power distribution network increases.
[0048] In this case, the difference between the compensation voltage and the load voltage V_drop=(V_average-ΔV)-(V_chip_max-ΔV)=V_average-V_chip_max, which is approximately the difference between the average voltage and the load voltage when the impedance of the power distribution network remains unchanged at the preset impedance.
[0049] The present disclosure does not limit the structure of the voltage averaging module and the voltage compensation module. The exemplary structure of the voltage averaging module and the voltage compensation module can be found in Figure 4 .
[0050] The voltage compensation module is also connected to the current detection module, and outputs the compensation voltage V_partial to the current detection module. The preset impedance of the power distribution network can be pre-stored in the current detection module, and the embodiment of the present disclosure does not limit the specific value of the preset impedance of the power distribution network. The voltage compensation module can determine the output current of the power supply based on the compensation voltage, the load voltage and the preset impedance of the power distribution network. In one example, the difference between the compensation voltage and the load voltage can be calculated, and the ratio of the difference to the preset impedance of the power distribution network is used as the output current of the power supply.
[0051] The current detection module can be implemented based on existing technology. As long as the current detection module can determine the output current of the power supply according to the compensation voltage, load voltage and preset impedance of the power distribution network, the present disclosure does not limit the specific implementation method of the current detection module.
[0052] According to the current detection circuit of the embodiment of the present disclosure, the output voltages of the M output terminals of the power supply are averaged by the voltage averaging module, and the average voltage can be obtained and output to the voltage compensation module. The residual voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage. The voltage compensation module can obtain the compensation voltage according to the average voltage and the load voltage, and output the compensation voltage to the current detection module; the current detection module determines the output current of the power supply according to the compensation voltage, the load voltage and the impedance of the power distribution network. Since the compensation voltage is less than the average voltage, the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network. Therefore, the error of the difference between the average voltage and the load voltage caused by the influence of the impedance change of the power distribution network on the load voltage can be offset in the difference between the compensation voltage and the load voltage, so that the difference between the compensation voltage and the load voltage is close to the voltage difference between the output terminal of the power supply and the input terminal of the load under the ideal environment where the impedance of the power distribution network remains unchanged; therefore, according to the compensation voltage, the load voltage and the preset impedance of the power distribution network, the output current of the power supply can be obtained, and the calculation accuracy of the output current is guaranteed. The circuit does not need to use an integrated power supply, so the circuit cost can be reduced, and the values of the compensation voltage and load voltage used to calculate the output current are relatively large, so the current detection circuit has a stronger anti-interference ability and the output current has a higher accuracy; there is no need to use precision resistors, which can reduce the load voltage loss and reduce the layout and wiring complexity, further reducing the circuit cost. In summary, the current detection circuit disclosed in the present invention has a low cost for calculating the output current and a low loss on the load voltage, and has a high accuracy.
[0053] An exemplary structure of a power supply is described below.
[0054] In a possible implementation, the power supply includes an energy storage module, M field effect transistor switches, and M inductors, each field effect transistor switch is connected to an inductor.
[0055] The output end of the energy storage module is connected to the first end of each field effect transistor switch;
[0056] The second end of each field effect transistor switch is connected to the first end of the corresponding inductor, and the second end of the inductor serves as one of the M output ends of the power supply.
[0057] Figure 3 A schematic diagram showing the structure of a power supply according to an embodiment of the present disclosure.
[0058] For example, the field effect transistor switches of the same phase in the power supply can be set independently. Figure 3As shown, assuming that M=3, the power supply may include three output terminals Vps1-Vps3, an energy storage module, three field effect transistor switches MOS1-MOS3, and three inductors L1-L3. The output terminal of the energy storage module is connected to the first terminal of the field effect transistor switches MOS1-MOS3; the second terminal of the field effect transistor switch MOS1 can be connected to the first terminal of the inductor L1, and the second terminal of the inductor L1 can be used as the output terminal Vps1; the second terminal of the field effect transistor switch MOS2 can be connected to the first terminal of the inductor L2, and the second terminal of the inductor L2 can be used as the output terminal Vps2; the second terminal of the field effect transistor switch MOS3 can be connected to the first terminal of the inductor L3, and the second terminal of the inductor L3 can be used as the output terminal Vps3.
[0059] In a possible implementation, the power supply includes an energy storage module and M switch circuits, the output end of the energy storage module is connected to the first end of each switch circuit, and the second end of each switch circuit serves as one of the M output ends of the power supply;
[0060] Each switching circuit includes a field effect transistor switch and an inductor. In any switching circuit, the first end of the field effect transistor switch serves as the first end of the switching circuit, the second end of the field effect transistor switch is connected to the first end of the inductor, and the second end of the inductor serves as the second end of the switching circuit.
[0061] For example, the field effect transistor switch and the inductor of the same phase in the power supply can be integrated into a switch circuit. In this case, the power supply includes an energy storage module and M switch circuits. The output end of the energy storage module is connected to the first end of each switch circuit, and the second end of each switch circuit serves as one of the M output ends. In each switch circuit, the first end of the field effect transistor switch serves as the first end of the switch circuit, the second end of the field effect transistor switch is connected to the first end of the inductor, and the second end of the inductor serves as the second end of the switch circuit. The embodiments of the present disclosure do not limit the specific structure of the power supply.
[0062] The exemplary structures of the voltage averaging module and the voltage compensation module are introduced below.
[0063] In a possible implementation, the voltage averaging module includes M resistors, and the M resistors correspond one-to-one to the M output terminals of the power supply;
[0064] The first end of each resistor is connected to a corresponding output end, and the second end is connected to the first end of the voltage compensation module.
[0065] In a possible implementation, the voltage compensation module includes a first voltage dividing unit and a second voltage dividing unit.
[0066] The first end of the first voltage dividing unit serves as the first end of the voltage compensation module and receives the average voltage;
[0067] The second end of the first voltage dividing unit is connected to the first end of the second voltage dividing unit and serves as the second end of the voltage compensation module to output a compensation voltage;
[0068] The second end of the second voltage dividing unit serves as the third end of the voltage compensation module to receive the load voltage;
[0069] The actual impedance of the power distribution network increases with the increase of temperature, the actual impedance of the second voltage divider unit decreases with the increase of temperature, and the impedance of the first voltage divider unit and the voltage averaging module remains unchanged when the temperature changes.
[0070] Figure 4 A schematic diagram showing the structures of a voltage averaging module and a voltage compensation module according to an embodiment of the present disclosure.
[0071] like Figure 4 As shown, assuming that M=3, that is, the power supply includes three output terminals Vps1-Vps3, and the voltage averaging module includes three resistors R1-R3. Among them, the output terminal Vps1 can be connected to the first end of the resistor R1, the output terminal Vps2 can be connected to the first end of the resistor R2, the output terminal Vps3 can be connected to the first end of the resistor R3, and the second ends of the resistors R1-R3 can be connected to the first end of the voltage compensation module.
[0072] A line is set between each output terminal of the power supply and the input terminal of the voltage compensation module. Figure 4 In the example, each line includes a resistor. It is understandable that a line may also include multiple resistors connected in series, and the present disclosure does not limit how many resistors a line includes, as long as the voltage output by the line to the input end of the voltage compensation module after resistor averaging is equal to the average voltage.
[0073] Since the voltage averaging module is used to realize the voltage averaging function, different lines are connected to different output terminals. In order to make the voltage output from each line to the input terminal of the voltage compensation module equal to the average voltage after averaging, the resistor included in the voltage averaging module can be set to an adjustable resistor, and before starting the current detection, the resistance value of the resistor on the line is adjusted according to the output capacity of the output terminal connected to different lines. In this case, the resistance values of the resistors included in different lines can be the same or different. The adjustment of the resistance value can be achieved based on the existing technology and will not be repeated here.
[0074] The impedance of the voltage averaging module remains unchanged when the temperature changes. In this case, the average voltage output by the voltage averaging module also remains unchanged when the temperature changes.
[0075] Those skilled in the art should understand that when the power supply is a multi-phase power supply, the voltage averaging module can also have more implementation methods, as long as the voltage averaging module can achieve the above functions, the present disclosure does not limit the specific implementation method of the voltage averaging module. When the power supply is a single-phase power supply, the voltage averaging module may not be provided, and the only output terminal of the single-phase power supply can be directly connected to the first terminal of the voltage compensation module.
[0076] like Figure 4 As shown, the voltage compensation module may include a first voltage dividing unit and a second voltage dividing unit. The first end of the first voltage dividing unit serves as the first end of the voltage compensation module and receives the average voltage V_average; the second end of the first voltage dividing unit is connected to the first end of the second voltage dividing unit and serves as the second end of the voltage compensation module to output the compensation voltage V_partial; the second end of the second voltage dividing unit serves as the third end of the voltage compensation module and receives the load voltage V_chip.
[0077] As mentioned above, when the impedance of the power distribution network increases, the load voltage will decrease. In order to keep the difference between the compensation voltage and the load voltage unchanged, the compensation voltage should decrease as the impedance of the power distribution network increases. Since the average voltage remains unchanged, the difference between the average voltage and the compensation voltage increases as the impedance of the power distribution network increases.
[0078] Therefore, the impedance of the first voltage divider unit can remain unchanged when the temperature changes, and the actual impedance of the second voltage divider unit decreases as the temperature increases. In this case, when the temperature increases, the impedance of the power distribution network increases, the load voltage decreases, and the voltage difference between the first end and the third end of the voltage compensation module (the voltage difference between the average voltage and the load voltage) increases. The impedance of the second voltage divider unit decreases, and the impedance of the first voltage divider unit remains unchanged, so the current flowing through the first voltage divider unit increases, and the voltage (compensation voltage) at the second end of the first voltage divider unit decreases.
[0079] Furthermore, by presetting the degree to which the actual impedance of the second voltage divider unit decreases as the temperature increases, the difference between the average voltage and the compensation voltage can be controlled when the temperature changes so that it is the same as the change in the load voltage. The specific control of the impedance change degree can be implemented based on the existing technology and will not be repeated here. In this case, when the temperature increases or decreases, the difference between the compensation voltage and the load voltage will be close to the difference between the average voltage and the load voltage in the ideal case where the impedance of the power distribution network remains unchanged, thereby improving the accuracy of the output current of the power supply calculated using the difference between the compensation voltage and the load voltage.
[0080] In one example, in the first voltage divider unit, a resistor may be used to connect the first end and the second end of the first voltage divider unit, and the structure of the first voltage divider unit will not be described in detail here, as long as the first voltage divider unit can achieve the voltage division function. The following introduces an exemplary structure of the second voltage divider unit.
[0081] Figure 5 A schematic diagram showing the structure of a second voltage dividing unit according to an embodiment of the present disclosure.
[0082] like Figure 5 As shown, in a possible implementation, the second voltage dividing unit includes a first resistor, a second resistor, and a third resistor, the first resistor is a temperature sensitive resistor,
[0083] One end of the first resistor is connected to the first end of the third resistor and serves as the first end of the second voltage dividing unit;
[0084] The second end of the first resistor is connected to the first end of the second resistor;
[0085] The second end of the second resistor is connected to the second end of the third resistor and serves as the second end of the second voltage dividing unit.
[0086] For example, the power distribution network is usually made of materials such as copper, so its impedance is greatly affected by temperature. A temperature-sensitive resistor can be set in the second voltage divider unit to achieve the effect that the actual impedance of the second voltage divider unit decreases with increasing temperature.
[0087] For example, the second voltage divider unit may include a first resistor, a second resistor, and a third resistor, one end of the first resistor is connected to the first end of the third resistor and serves as the first end of the second voltage divider unit and is connected to the first voltage divider unit. The second end of the first resistor is connected to the first end of the second resistor; the second end of the second resistor is connected to the second end of the third resistor and serves as the second end of the second voltage divider unit and is connected to the load.
[0088] Figure 5 In the example of , the first resistor may be a temperature-sensitive resistor. The present disclosure does not limit the number of temperature-sensitive resistors provided in the voltage compensation module. Figure 5 In the structure shown, the voltage difference between the first end and the second end of the second voltage divider unit changes linearly with temperature, so that the output current of the power supply finally calculated is more accurate.
[0089] Those skilled in the art should understand that the second voltage divider unit may also be implemented in other ways, as long as the compensation voltage is smaller than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network. The embodiments of the present disclosure do not limit the specific implementation method of the second voltage divider unit.
[0090] The impedance of the power distribution network is related to the project. The impedance of each project is different. The corresponding preset value can be calibrated for each project. The calibration of the impedance of the power distribution network can be implemented based on the existing technology and will not be repeated here.
[0091] The present disclosure also proposes a current detection method. Figure 6A schematic diagram showing the flow of a current detection method according to an embodiment of the present disclosure.
[0092] like Figure 6 As shown, in a possible implementation, the method uses a current detection circuit to detect the output current of the power supply, the circuit includes a voltage averaging module, a voltage compensation module, and a current detection module, and the method includes:
[0093] Step S61, using a voltage averaging module to average the output voltages of the M output terminals of the power supply to obtain an average voltage, and outputting the average voltage to a voltage compensation module;
[0094] Step S62, the remaining voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage, and a voltage compensation module is used to obtain a compensation voltage according to the average voltage and the load voltage, and the compensation voltage is output to the current detection module, the compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network;
[0095] Step S63: using a current detection module to determine the output current of the power supply according to the compensation voltage, the load voltage and the preset impedance of the power distribution network.
[0096] The present disclosure also provides a chip, comprising the current detection circuit described above.
[0097] The present disclosure also provides an electronic device, comprising the chip described above.
[0098] In a possible implementation, the electronic device further includes a power supply, a power distribution network and a load. The power supply, the power distribution network and the load may be arranged on the chip where the current detection circuit is located, or may be arranged outside the chip, which is not limited in the present disclosure.
[0099] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0100] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A current detection circuit, characterized in that: The circuit includes a voltage averaging module, a voltage compensation module, and a current detection module. The voltage averaging module is used to average the output voltages of the M output terminals of the power supply to obtain an average voltage, and output the average voltage to the voltage compensation module; The residual voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage, the voltage compensation module is used to obtain a compensation voltage according to the average voltage and the load voltage, and output the compensation voltage to the current detection module, the compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network; The current detection module is used to determine the output current of the power supply according to the compensation voltage, the load voltage and the preset impedance of the power distribution network.
2. The circuit according to claim 1, characterized in that The voltage compensation module includes a first voltage dividing unit and a second voltage dividing unit. The first end of the first voltage dividing unit serves as the first end of the voltage compensation module to receive the average voltage; The second end of the first voltage dividing unit is connected to the first end of the second voltage dividing unit and serves as the second end of the voltage compensation module to output the compensation voltage; The second end of the second voltage dividing unit serves as the third end of the voltage compensation module to receive the load voltage; The actual impedance of the power distribution network increases with increasing temperature, the actual impedance of the second voltage divider unit decreases with increasing temperature, and the impedance of the first voltage divider unit and the voltage averaging module remain unchanged when the temperature changes.
3. The circuit according to claim 2, characterized in that The second voltage dividing unit includes a first resistor, a second resistor, and a third resistor, wherein the first resistor is a temperature sensitive resistor. One end of the first resistor is connected to the first end of the third resistor and serves as the first end of the second voltage dividing unit; The second end of the first resistor is connected to the first end of the second resistor; The second end of the second resistor is connected to the second end of the third resistor and serves as the second end of the second voltage dividing unit.
4. The circuit according to claim 1 or 2, characterized in that: The voltage averaging module includes M resistors, and the M resistors correspond one-to-one to the M output terminals of the power supply; The first end of each resistor is connected to a corresponding output end, and the second end is connected to the first end of the voltage compensation module.
5. The circuit according to claim 1, characterized in that The power supply includes an energy storage module and M switch circuits, The output end of the energy storage module is connected to the first end of each switch circuit, and the second end of each switch circuit serves as one of the M output ends of the power supply; Each switching circuit includes a field effect transistor switch and an inductor. In any switching circuit, the first end of the field effect transistor switch serves as the first end of the switching circuit, the second end of the field effect transistor switch is connected to the first end of the inductor, and the second end of the inductor serves as the second end of the switching circuit.
6. The circuit according to claim 1, characterized in that The power supply includes an energy storage module, M field effect transistor switches and M inductors, each field effect transistor switch is connected to a corresponding inductor. The output end of the energy storage module is connected to the first end of each field effect tube switch; The second end of each field effect transistor switch is connected to the first end of the corresponding inductor, and the second end of the inductor serves as one of the M output ends of the power supply.
7. A current detection method, characterized in that: The method uses a current detection circuit to detect the output current of the power supply, the circuit includes a voltage averaging module, a voltage compensation module, and a current detection module, and the method includes: Using the voltage averaging module to average the output voltages of the M output terminals of the power supply to obtain an average voltage, and outputting the average voltage to the voltage compensation module; The remaining voltage when the output voltage is transmitted to the load through the power distribution network is used as the load voltage, the voltage compensation module is used to obtain a compensation voltage according to the average voltage and the load voltage, and the compensation voltage is output to the current detection module, the compensation voltage is less than the average voltage, and the difference between the average voltage and the compensation voltage increases with the increase of the impedance of the power distribution network; The current detection module is used to determine the output current of the power supply according to the compensation voltage, the load voltage and the preset impedance of the power distribution network.
8. A chip, characterized in that: The invention comprises the current detection circuit according to any one of claims 1 to 6.
9. An electronic device, characterized in that: Comprising the chip as claimed in claim 8.
10. The electronic device according to claim 9, characterized in that: The electronic device further comprises a power source, a power distribution network and a load.
Citation Information
Patent Citations
Compensation type current correction device
CN112148061A
Load structure of DAC current source output impedance code and compensation method thereof
CN117792398A
Switching power supply and switching power supply controller for realizing constant output current
CN203301373U
Voltage compensation circuit, voltage compensation device and voltage compensation automation equipment
CN214751575U
Self-commutated reactive power compensator
JP6879652B1