Power detection circuit and its operation method

CN122553725APending Publication Date: 2026-08-11CHICONY POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-17
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

因此,传统的电源供应器若是因应功率计算的需求,构必须要在初级侧额外配置侦测电路与光耦合器,使得电源供应器的成本增加,且还需要额外的配置空间

Benefits of technology

[0007] The main objective and effect of this invention is that the power supply of this invention can use a power detection circuit to detect the parameters obtained on the secondary side, and obtain the input power of the power supply through estimation by the secondary side controller. Therefore, the power supply of this invention can use fewer components to detect the parameters on the secondary side to realize the function of estimating the input power, thus achieving the effect of reducing circuit cost and circuit design complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122553725A_ABST
    Figure CN122553725A_ABST
Patent Text Reader

Abstract

This invention provides a power detection circuit configured in a power supply having a primary side and a secondary side. The power detection circuit includes a secondary-side controller, a first voltage detection circuit, a second voltage detection circuit, and a current detection circuit. The secondary-side controller calculates the output power based on the output voltage and output current of the power supply, and obtains a first efficiency value based on the output power and an efficiency conversion table inside the secondary-side controller, so as to calculate the input power of the power supply based on the first efficiency value and the output power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a power detection circuit and its operating method, and more particularly to a power detection circuit and its operating method that can estimate input power. Background Technology

[0002] With the issues of carbon tax and carbon footprint becoming clearer, how to calculate the specific carbon emissions of products will be a key topic in the future. Specifically, carbon tax and carbon footprint are primarily based on assigning a price to carbon dioxide (i.e., carbon pricing), treating carbon dioxide as a tradable, transferable, and taxable commodity. The reason for setting a price for "carbon dioxide" is that it accounts for the largest share of all greenhouse gas emissions, making it a priority target for various organizations to control. Under the global banner of energy conservation and environmental protection, various countries and regions have introduced relevant carbon taxes and energy-saving standards. To meet environmental requirements, high power density and high efficiency are inevitable trends.

[0003] Generally, carbon emissions from product manufacturing are used as the standard. However, for power supply products such as power units (PSUs), the carbon emissions during operation are not to be underestimated due to their long operating times. Therefore, it is still necessary to understand the carbon emissions generated by these products during operation to meet environmental protection requirements. Furthermore, the carbon emissions of a power supply during operation are generally calculated by converting the input power into energy consumption per hour. However, in power supplies with primary and secondary sides, traditional input power detection requires reading the voltage and current on the primary side and then transmitting them to the secondary side via an optocoupler for calculation. Therefore, to meet power calculation requirements, traditional power supplies must have additional detection circuitry and optocouplers on the primary side, increasing the cost and requiring additional space.

[0004] Therefore, it is essential to design a power detection circuit and its operation method to estimate the input power of the power supply by obtaining the secondary side parameters of the power supply. Summary of the Invention

[0005] To address the aforementioned problems, this invention provides a power detection circuit configured in a power supply having a primary side and a secondary side. The power detection circuit includes a secondary-side controller, a first voltage detection circuit, a second voltage detection circuit, and a current detection circuit, with the secondary-side controller configured on the secondary side. The first voltage detection circuit is coupled to the secondary-side controller and provides a detection voltage based on the winding voltage of the secondary side. The second voltage detection circuit is coupled to the secondary-side controller and the output terminal of the power supply, and detects the output voltage at the output terminal. The current detection circuit is coupled to the secondary-side controller and the output terminal, and detects the output current at the output terminal. The secondary-side controller calculates the input voltage of the power supply based on the detected voltage and obtains an efficiency conversion table for different output current conditions based on the input voltage. The secondary-side controller calculates the output power based on the output voltage and output current, and obtains a first efficiency value of the power supply under the output current condition by comparing the output power with the efficiency conversion table, and then calculates the input power of the power supply based on the first efficiency value and the output power.

[0006] To address the aforementioned problems, the present invention provides an operation method for a power detection circuit. The power detection circuit is configured in a power supply having a primary side and a secondary side, and the operation method includes the following steps: (a) detecting the output voltage and output current at the output terminal of the power supply. (b) providing a detection voltage based on the winding voltage on the secondary side. (c) calculating the input voltage of the power supply based on the detection voltage, and obtaining an efficiency conversion table under different output current conditions based on the input voltage. (d) calculating the output power based on the output voltage and output current, and obtaining a first efficiency value of the power supply under the output current condition by comparing the output power with the efficiency conversion table. (e) calculating the input power of the power supply based on the first efficiency value and the output power.

[0007] The main objective and effect of this invention is that the power supply of this invention can use a power detection circuit to detect the parameters obtained on the secondary side, and obtain the input power of the power supply through estimation by the secondary side controller. Therefore, the power supply of this invention can use fewer components to detect the parameters on the secondary side to realize the function of estimating the input power, thus achieving the effect of reducing circuit cost and circuit design complexity.

[0008] To gain a deeper understanding of the techniques, means, and effects employed by this invention to achieve its intended purpose, please refer to the following detailed description and accompanying drawings. It is believed that the purpose, features, and characteristics of this invention can be understood in a thorough and specific manner from these drawings. However, the accompanying drawings are provided for reference and illustration only and are not intended to limit the scope of this invention. Attached Figure Description

[0009] Figure 1 This is a circuit block diagram of the power supply of the present invention;

[0010] Figure 2 This is a temperature efficiency curve of the power supply of the present invention;

[0011] Figure 3 A circuit block diagram of the power supply test circuit of the present invention;

[0012] Figure 4 This is a circuit diagram of the current detection circuit and temperature detection circuit of the present invention;

[0013] Figure 5A This is a circuit diagram of a first embodiment of the first voltage detection circuit of the present invention;

[0014] Figure 5B This is a circuit diagram of a second embodiment of the first voltage detection circuit of the present invention;

[0015] Figure 5C This is a circuit diagram of a third embodiment of the first voltage detection circuit of the present invention;

[0016] Figure 6 This is a flowchart of the operation method of the power detection circuit of the present invention;

[0017] Figure 7A This is a flowchart of the power supply calculation method of the present invention; and

[0018] Figure 7B This is a waveform diagram illustrating the power consumption calculation method of the power supply device of the present invention.

[0019] In the attached figures, the following labels are used:

[0020] 100: Power Supply

[0021] 100A: Output terminal

[0022] 100B: Input terminal

[0023] 100+: Positive terminal of the bus

[0024] 100-: Negative terminal of the bus

[0025] GND: Ground terminal

[0026] 1: Primary side circuit

[0027] 10: Primary-side rectifier circuit

[0028] 12: Primary-side filter circuit

[0029] Q: Primary side switch

[0030] 2: Transformer

[0031] 20: Primary winding

[0032] 22: Secondary winding

[0033] 24: Auxiliary winding

[0034] 3: Secondary side circuit

[0035] 30: Secondary rectifier circuit

[0036] SR: Secondary side switch

[0037] 32: Secondary side filter circuit

[0038] 34: Secondary rectifier controller

[0039] 4: Primary side controller

[0040] 5: Secondary side controller

[0041] 6: Disconnecting switch

[0042] 7: Power Detection Circuit

[0043] 70: First voltage detection circuit

[0044] CD: Voltage divider circuit

[0045] CC: Clamping circuit

[0046] R1: First resistor

[0047] R2: Second resistor

[0048] R3: Third resistor

[0049] R4: Fourth resistor

[0050] D: Diode

[0051] C: Capacitor

[0052] P1, P2: Nodes

[0053] 72: Second voltage detection circuit

[0054] 74: Current Detection Circuit

[0055] Ri: Current sensing resistor

[0056] 76: Temperature Detection Circuit

[0057] Rn: Temperature control resistor

[0058] 8: Transmission circuit

[0059] 9: Test Circuit

[0060] 90: Energy measuring instrument

[0061] 92: Optical Coupler

[0062] 94: Conversion Circuit

[0063] 200: Load

[0064] Pin: Input power

[0065] Po: Output power

[0066] Vin: Input voltage

[0067] Vo: Output voltage

[0068] Vdc: DC voltage

[0069] Vw: Winding voltage

[0070] Vs: Detection voltage

[0071] V: Voltage

[0072] Vcc: Operating voltage

[0073] Vt: Temperature control voltage

[0074] Vi: Current Detection Voltage

[0075] Iin: Input current

[0076] Io: Output current

[0077] I: Current

[0078] Sf: Feedback signal

[0079] PWM: Pulse Width Modulation Signal

[0080] Sv: Voltage signal

[0081] Si: Current signal

[0082] St: Temperature signal

[0083] Ss: Transmitted signal

[0084] Et: Efficiency Conversion Table

[0085] (S100)~(S680): Steps

[0086] TD: Specific time period

[0087] Ts: Sampling time. Detailed Implementation

[0088] The technical content and detailed description of this invention are explained below with reference to the accompanying drawings:

[0089] Please see Figure 1This is a circuit block diagram of the power supply of the present invention. The power supply 100 receives an input voltage Vin and converts the input voltage Vin into an output voltage Vo, so that the output voltage Vo is provided by the output terminal 100A to supply power to the load 200. The main conversion circuit architecture of the power supply 100 can be a switching converter with an isolation transformer, and it can be, for example, but not limited to, flyback or forward conversion circuits, etc., without limitation. Taking a flyback conversion circuit as an example, the power supply 100 includes a primary side circuit 1, a transformer 2, a secondary side circuit 3, a primary side controller 4, and a secondary side controller 5, and the primary side winding 20 and the secondary side winding 22 of the transformer 2 divide the power supply 100 into a primary side and a secondary side.

[0090] Specifically, the primary-side circuit 1 and the primary-side controller 4 are configured on the primary side of the power supply 100, and the secondary-side circuit 3 and the secondary-side controller 5 are configured on the secondary side of the power supply 100. The primary-side circuit 1 may include, for example but not limited to, a primary-side rectifier circuit 10, a primary-side filter circuit 12, and a primary-side switch Q. The primary-side rectifier circuit 10 is coupled to the primary-side filter circuit 12, and the primary-side filter circuit 12 and the primary-side switch Q are coupled to the primary-side winding 20. The secondary-side circuit 3 may include, for example but not limited to, a secondary-side rectifier circuit 30 and a secondary-side filter circuit 32. The secondary-side rectifier circuit 30 is coupled to the secondary-side winding 22, and the secondary-side filter circuit 32 is coupled to the secondary-side rectifier circuit 30 and the output terminal 100A.

[0091] Furthermore, the secondary-side controller 5 provides a feedback signal Sf to the primary-side controller 4 based on the output voltage Vo provided by the power supply 100 and the output current Io required by the load 200, so that the primary-side controller 4 adjusts the pulse width modulation signal (PWM) according to the feedback signal Sf. The primary-side rectifier circuit 10 converts the input voltage Vin into a DC voltage Vdc, and the primary-side controller 4 controls the switching (on / off) of the primary-side switch Q by providing the PWM signal, causing the primary-side filter circuit 12 to store / release energy according to the DC voltage Vdc. This allows the transformer 2 to couple energy from the primary-side winding 20 to the secondary-side winding 22 according to the energy storage / release of the primary-side filter circuit 12. After rectification by the secondary-side rectifier circuit 30 and filtering by the secondary-side filter circuit 32, the output voltage Vo is provided to the output terminal 100A. On the other hand, the transformer 2 may also include an auxiliary winding 24, which mainly supplies power to the peripheral devices of the power supply 100 (such as, but not limited to, the secondary controller 5, the fan, etc.) by coupling the primary winding 20.

[0092] The secondary-side rectifier circuit 30 can be configured as follows: Figure 1The secondary-side rectifier controller 34 shown controls the switching synchronously with the primary-side switch Q, but it can also be passively rectified by passive components (such as, but not limited to, diodes). Furthermore, the secondary-side controller 5 may or may not have a power delivery protocol (USB-PD). When the secondary-side controller 5 has a power delivery protocol, the secondary side of the power supply 100 may also include an isolating switch 6 (shown as dashed lines). After the secondary-side controller 5 completes handshake communication with the load 200, the secondary-side controller 5 can turn on the isolating switch 6 to provide an output voltage Vo that meets the requirements of the load 200 to the output terminal 100A through the isolating switch 6. This avoids the risk of the power supply 100 incorrectly providing an output voltage Vo that does not meet the requirements of the load 200 to the load 200, causing the load 200 to fail or even be damaged.

[0093] See also Figure 1 The power supply 100 further includes a power detection circuit 7, which comprises a secondary-side controller 5, a first voltage detection circuit 70, a second voltage detection circuit 72, and a current detection circuit 74. The first voltage detection circuit 70 is coupled to the secondary-side controller 5 and provides a detection voltage Vs based on the secondary-side winding voltage Vw. The second voltage detection circuit 72 is coupled to the secondary-side controller 5 and the output terminal 100A, and provides a voltage signal Sv to the secondary-side controller 5 by detecting the output voltage Vo of the output terminal 100A. The current detection circuit 74 is coupled to the secondary-side controller 5 and the output terminal 100A, and provides a current signal Si to the secondary-side controller 5 by detecting the output current Io drawn by the load 200.

[0094] In one embodiment, the primary function of the secondary-side controller 5 is generally to provide a feedback signal Sf to the primary-side controller 4 based on the output voltage Vo provided by the power supply 100 and the output current Io required by the load 200. The secondary-side controller 5 is typically a microprocessor (MCU) or a digital signal processor (DSP). Generally, such processors can be programmed with custom code to implement custom functions. In addition to the original function of controlling the power supply 100, the secondary-side controller 5 of this invention also includes the function of estimating the input power Pin using only the parameters detected by the secondary side (e.g., but not limited to, the detected voltage Vs, output voltage Vo, output current Io, etc.).

[0095] Specifically, since the winding voltage Vw responds to the input voltage Vin, the secondary-side controller 5 can calculate the input voltage Vin of the power supply 100 based on the detected voltage Vs. The first voltage detection circuit 70 has multiple methods to provide the detected voltage Vs via the winding voltage Vw, enabling the secondary-side controller 5 to estimate the input voltage Vin; these are indicated by dashed lines and will be further explained later. Furthermore, the secondary-side controller 5 can obtain an efficiency conversion table Et under different output current Io conditions based on the input voltage Vin. The efficiency conversion table Et can be pre-written into the secondary-side controller 5, or its creation can be performed by a test circuit, as will be further explained later.

[0096] Then, the secondary-side controller 5 determines the magnitudes of the output voltage Vo and output current Io based on the voltage signal Sv and the current signal Si, and calculates the output power Po based on the output voltage Vo and output current Io. Furthermore, the secondary-side controller 5 can obtain the first efficiency value of the power supply 100 under the current output current Io by comparing the output power Po with the efficiency conversion table Et. Finally, the secondary-side controller 5 calculates the input power Pin of the power supply 100 based on the first efficiency value and the output power Po. For example, assuming the output power Po is 36W, and the first efficiency value obtained from the efficiency conversion table Et is 0.9, the secondary-side controller 5 can estimate the input power Pin to be 40W, and so on. Therefore, through the above estimation method, the function of estimating the input power Pin can be achieved by detecting secondary-side parameters with fewer components (i.e., the original secondary-side controller 5 combined with the detection circuit), thus achieving the effect of reducing circuit cost and circuit design complexity.

[0097] See also Figure 1 The power detection circuit 7 may optionally include a temperature detection circuit 76. The temperature detection circuit 76 is coupled to the secondary-side controller 5 and detects a first ambient temperature inside the power supply 100 housing (not shown) to provide a temperature signal St to the secondary-side controller 5. See also... Figure 2 This is a temperature efficiency curve of the power supply 100 of the present invention. The ambient temperature of the power supply 100 is related to the efficiency of the power supply 100. Specifically, at the same output power Po, the higher the temperature, the higher the efficiency of the power supply 100, and vice versa. Figure 2For example, when the ambient temperature of the power supply 100 is 25 degrees Celsius and the output power Po is 40W, the efficiency is approximately 90%. However, when the temperature is 85 degrees Celsius, the output power is approximately 92%. Therefore, in order to more accurately estimate the input power Pin, when obtaining the first efficiency value, the value of the first efficiency value can be shifted according to the first ambient temperature, so as to obtain a more accurate input power Pin by adjusting the first efficiency value.

[0098] The power supply 100 can obtain the displacement of the first efficiency value under the influence of ambient temperature in various ways. For example, but not limited to, the power supply 100 can measure the efficiency curve at each ambient temperature through pre-testing. Alternatively, the power supply 100 can also obtain the displacement of the first efficiency value using the inner difference method. Specifically, the secondary-side controller 5 can preset multiple second ambient temperatures (using...) Figure 2 (Taking ambient temperatures of 25 degrees and 85 degrees as examples). Furthermore, the secondary-side controller 5 can obtain two efficiency curves under different output currents Io (corresponding to output power Po) based on these two second ambient temperatures, thereby obtaining two second conversion efficiency values ​​at a specific output power Po (i.e., when the output power Po is 40W, the second conversion efficiency values ​​are 90% and 92%, respectively). Thus, when the secondary-side controller 5 obtains the current output power Po and the current first ambient temperature, the secondary-side controller 5 calculates the first efficiency value corresponding to the first ambient temperature by using the parameter difference between the first ambient temperature and the two adjacent second ambient temperatures (i.e., ambient temperatures of 25 degrees and 85 degrees) through interpolation.

[0099] For example, when the output power Po is 65W and the second ambient temperature is 25 degrees Celsius, the second efficiency value is 88%, and when the second ambient temperature is 85 degrees Celsius, the second efficiency value is 90%. Therefore, the efficiency value of a single output power (i.e., 1W) can be considered as (90%-88%) / (85 degrees-25 degrees) = 2% / 60 degrees = 0.0333% / 1 degree. Therefore, when the output power Po is 65W, the efficiency of the power supply 100 will increase or decrease by 0.0333% for every 1 degree Celsius increase or decrease in the ambient temperature. Therefore, if the power supply 100 measures the current output power Po as 67W, its corresponding first efficiency value can be estimated as (67-25)*0.0333%+88% = 89.398%. Thus, the power supply 100 can estimate the first efficiency value of a specific output power Po through interpolation calculation without having to obtain a large number of parameters and their corresponding multiple efficiency curves through pre-testing, thereby reducing the significant time cost of pre-testing. Furthermore, since the displacement of the calculated first efficiency value will be more accurate when the parameter difference is closer (for example, but not limited to, the curve of 67W and the actual test 65W differs by only 2W), the secondary side controller 5 can add more second ambient temperatures and their corresponding efficiency curves to improve the accuracy of the first efficiency value estimated by the power supply 100.

[0100] On the other hand, the power supply 100 of the present invention may further include a transmission circuit 8, which is coupled to a secondary-side controller 5. The secondary-side controller 5 can primarily communicate with an external device (not shown) via the transmission circuit 8 (through transmission signal Ss), enabling the transmission circuit 8 to transmit parameters stored within the secondary-side controller 5 (e.g., but not limited to, the parameters mentioned above, or parameters such as electricity consumption calculated based on the input power Pin and the operating time of the power supply 100) to the external device (e.g., but not limited to, uploading to a system, cloud, host computer, or other physical or virtual device) via wired or wireless means. Alternatively, the external device can transmit parameters or control commands (e.g., but not limited to, efficiency conversion table Et, commands requesting parameter transmission, etc.) to control the secondary-side controller 5. In this way, the power supply 100 can possess edge computing and telemetry capabilities.

[0101] Please see Figure 3 This is a circuit block diagram of the power supply and test circuit of the present invention, which can be further referenced. Figures 1-2 . Figure 3 and Figure 1 The difference is that, Figure 3The power supply 100 includes an external test circuit 9, which comprises an energy meter 90 (E-Meter) and an optocoupler 92. Specifically, the power supply 100 of this invention can not only pre-write the efficiency conversion table Et into the secondary-side controller 5, but also, during operation of the power supply 100, perform measurements via the external test circuit 9 and send the data back to the secondary-side controller 5 to establish the efficiency conversion table Et. Furthermore, the energy meter 90 is coupled to the input terminal 100B of the power supply 100, and the optocoupler 92 is coupled to the energy meter 90 and the secondary-side controller 5. In one embodiment, the energy meter 90 may be, for example but not limited to, a 78M6610, but is not limited thereto.

[0102] The energy meter 90 primarily reads the input voltage Vin, input current Iin, and power factor via the coupled input terminal 100B, and transmits this information to the secondary-side controller 5 through the optocoupler 92. The secondary-side controller 5 then establishes the efficiency conversion table Et. After the efficiency conversion table Et is established, the energy meter 90 can be removed, allowing the secondary-side controller 5 to independently estimate the input power Pin of the power supply 100 based on the secondary-side parameters. Furthermore, since the energy meter 90 is an external device and can be removed during actual operation of the power supply 100, the equipment cost of the power supply 100 can be significantly reduced, and its size can be significantly minimized. Therefore, the power supply 100 is particularly suitable for use in devices requiring a slim and compact design, such as adapters.

[0103] On the other hand, the test circuit 9 may optionally include a conversion circuit 94, which is coupled to the energy meter 90. The conversion circuit 94 mainly converts the external voltage V into the operating voltage Vcc to power the energy meter 90. Furthermore, the external voltage V can be provided by an external device or taken from any node of the power supply 100 (e.g., but not limited to, DC voltage Vdc), and is not limited thereto.

[0104] Please see Figure 4 The circuit diagrams for the current detection circuit and temperature detection circuit of this invention are shown below. Figures 1-3The temperature detection circuit 76 may include a temperature-controlled resistor Rn, which is coupled to a secondary-side controller 5. The temperature-controlled resistor Rn generates a temperature-controlled resistance value based on a first ambient temperature, and the secondary-side controller 5 provides a current I through a current source (not shown) to cause the temperature-controlled resistor Rn to generate a temperature-controlled voltage Vt (i.e., a temperature signal St) based on the current I and the temperature-controlled resistance value. Furthermore, the secondary-side controller 5 can determine the first ambient temperature based on the temperature-controlled voltage Vt and adjust a first efficiency value accordingly. In one embodiment, the temperature-controlled resistor Rn may be a negative temperature coefficient (NTC) resistor, but this is not a limitation; any component whose resistance value can change according to ambient temperature should be included within the scope of this embodiment. In addition, in one embodiment, the temperature detection circuit 76, besides... Figure 4 Besides the embodiment shown, the power supply 100 has various circuit architectures that can implement the temperature detection circuit 76. Therefore, any embodiment of the temperature detection circuit 76 that can determine the first ambient temperature based on the temperature control voltage Vt should be included within the scope of this embodiment.

[0105] The current sensing circuit 74 includes a current sensing resistor Ri, which is coupled to the output terminal 100A and the secondary-side controller 5. When the output current Io flows through the current sensing resistor Ri, a current sensing voltage Vi (i.e., a current signal Si) is generated in the current sensing resistor Ri. Therefore, the secondary-side controller 5 can determine the magnitude of the output current Io based on the current sensing voltage Vi. In one embodiment, the current sensing circuit 74, in addition to Figure 4 Besides the embodiment shown, the power supply 100 has various circuit architectures that can implement the current detection circuit 74. Therefore, any implementation of the current detection circuit 74 that can determine the output current Io from the current detection voltage Vi should be included within the scope of this embodiment. Furthermore, in one embodiment, the current detection circuit 74 is not limited to being coupled only to the output terminal 100A to directly detect the output current Io; it can also be coupled to other locations of the power supply 100 (e.g., but not limited to, the secondary winding 22) to indirectly detect the output current Io.

[0106] Please see Figure 5A This is a circuit diagram of a first embodiment of the first voltage detection circuit of the present invention, which can be further referenced. Figures 1-4 .exist Figure 5AIn the secondary-side rectifier circuit 30, a secondary-side switch SR is configured at the positive terminal 100+ of the secondary-side bus. A first voltage detection circuit 70 is coupled between the negative terminal 100- of the secondary-side bus and the ground terminal GND, and the first voltage detection circuit 70 includes a voltage divider circuit CD. The voltage divider circuit CD is coupled between the negative terminal 100- of the secondary-side bus and the ground terminal GND, and the voltage divider circuit CD may include a first resistor R1 and a second resistor R2 connected in series. Taking a flyback switching circuit as an example, when the primary-side switch Q is turned on, the secondary-side switch SR is not turned on. At this time, the primary-side current (indicated by the arrow) flows from the primary-side winding 20 to the primary-side switch Q, and the energy is coupled through the primary-side winding 20 to the secondary-side winding 22, generating a winding voltage Vw in the secondary-side winding 22. Because the primary winding 20 and the secondary winding 22 have opposite polarities (i.e., their terminals are opposite), and the secondary switch SR is not conducting, the voltage divider circuit CD divides the winding voltage Vw (current is indicated by arrows), generating a detection voltage Vs at node P1 between the first resistor R1 and the second resistor R2. Furthermore, when the primary switch Q is conducting and the secondary switch SR is not conducting, the magnitude of the winding voltage Vw responds to the magnitude of the DC voltage Vdc (which is, for example, but not limited to, -Vdc * turns ratio), and the magnitude of the DC voltage Vdc corresponds to the magnitude of the input voltage Vin. Therefore, the detection voltage Vs reflects the input voltage Vin, allowing the secondary controller 5 to calculate the magnitude of the input voltage Vin based on the magnitude of the detection voltage Vs.

[0107] On the other hand, the first voltage detection circuit 70 may optionally include a diode D and a capacitor C. The diode D is connected in series between the secondary winding 22 and node P1, and the capacitor C is connected in parallel with a second resistor R2. The diode D is mainly used to prevent current from flowing back to the secondary side from the first voltage detection circuit 70 when the secondary-side switch SR switches, and the capacitor C is mainly used to stabilize the voltage level of the detected voltage Vs when the secondary-side switch SR switches, so that the secondary-side controller 5 can more accurately determine the magnitude of the input voltage Vin.

[0108] Please see Figure 5B This is a circuit diagram of a second embodiment of the first voltage detection circuit of the present invention, which can be further referenced. Figures 1-5A . Figure 5B The first voltage detection circuit 70 and Figure 5AThe difference lies in that the secondary-side switch SR is configured at the negative terminal 100- of the bus, and the first voltage detection circuit 70 is coupled between the positive terminal 100+ of the bus and the ground terminal GND. The first voltage detection circuit 70 includes a clamping circuit CC, which is also coupled between the positive terminal 100+ of the bus and the ground terminal GND. The clamping circuit CC includes a capacitor C connected in series with a first resistor R1, and a second resistor R2 connected in parallel with the capacitor C and the first resistor R1. Similarly, when the secondary-side winding 22 generates a winding voltage Vw, the clamping circuit CC clamps the winding voltage Vw (current is indicated by arrows) to generate a detection voltage Vs at node P1 between the capacitor C and the first resistor R1, and the capacitor C can also be used to stabilize the voltage level of the detection voltage Vs.

[0109] On the other hand, the first voltage detection circuit 70 may optionally include a diode D and a voltage divider circuit CD. The diode D is also used to prevent current from flowing back to the secondary side from the first voltage detection circuit 70 when the secondary-side switch SR switches. The voltage divider circuit CD includes a third resistor R3 and a fourth resistor R4 connected in series between node P1 and ground GND. The secondary-side controller 5 is coupled to node P2 between the third resistor R3 and the fourth resistor R4. The voltage divider circuit CD is mainly used to divide the detected voltage Vs into a voltage level suitable for the secondary-side controller 5 to read.

[0110] Please see Figure 5C This is a circuit diagram of a third embodiment of the first voltage detection circuit of the present invention, which can be further referenced. Figures 1-5B . Figure 5C The first voltage detection circuit 70 and Figure 5A The difference lies in that the first voltage detection circuit 70 includes an auxiliary winding 24. The auxiliary winding 24 is used to couple the primary winding 20, and the polarity of the dotted terminals of the auxiliary winding 24 is the same as that of the secondary winding 22 (i.e., the dotted terminals are the same). When the primary-side current (indicated by the arrow) flows from the primary winding 20 to the primary-side switch Q, energy is coupled through the primary winding 20 to the secondary winding 22 and the auxiliary winding 24, causing the auxiliary winding 24 to generate a winding voltage Vw. The first voltage detection circuit 70 provides a detection voltage Vs based on the winding voltage Vw of the auxiliary winding 24, allowing the secondary-side controller 5 to calculate the magnitude of the input voltage Vin based on the magnitude of the detection voltage Vs.

[0111] On the other hand, the winding voltage Vw of the auxiliary winding 24 can also be selectively used to power the secondary-side controller 5, allowing the secondary-side controller 5 to receive the required detection voltage Vs and control the secondary side. Specifically, the first voltage detection circuit 70 may further include a diode D and a capacitor C. The capacitor C is connected in parallel with the auxiliary winding 24, and the diode D is coupled between the auxiliary winding 24 and the capacitor C. Specifically, the diode D is used to rectify the winding voltage Vw, and the capacitor C is used to store and stabilize the voltage level of the detection voltage Vs. The power supply pin of the secondary-side controller 5 is coupled to the capacitor C to receive the detection voltage Vs and enable it, and to control the secondary side. In one embodiment, the first voltage detection circuit 70, in addition to Figures 5A-5C Besides the embodiment shown, the power supply 100 has various circuit architectures that can implement the first voltage detection circuit 70. Therefore, any embodiment of the first voltage detection circuit 70 that allows the input voltage Vin to be determined from the secondary winding voltage Vw should be included within the scope of this embodiment. It is worth mentioning that in one embodiment, since... Figure 5C The detection method is to directly obtain the winding voltage Vw to determine the input voltage Vin. Therefore, in Figure 5C In the circuit architecture, it is not restricted that the secondary-side switch SR must be configured at the positive terminal 100+ or ​​the negative terminal 100- of the bus, so that... Figure 5C The circuit architecture can improve the applicability of the power detection circuit 7 and also simplify the circuit design of the first voltage detection circuit 70.

[0112] Please see Figure 6 This is a flowchart of the operation method of the power detection circuit of the present invention, which can be referred to in conjunction with the above. Figures 1-5C The power supply 100 of the present invention can achieve the function of estimating the input power Pin using fewer components (i.e., the original secondary-side controller 5 combined with the detection circuit) by detecting and estimating the power pin using only the power detection circuit 7 configured on the secondary side, thereby reducing circuit cost and circuit design complexity. Specifically, the operation method of the power detection circuit 7 includes detecting the output voltage and output current of the power supply's output terminal (S100). In a preferred embodiment, the output voltage Vo and output current Io of the power supply 100 are detected by coupling the second voltage detection circuit 72 and the current detection circuit 74 to the output terminal 100A of the power supply 100, respectively. Then, a detection voltage is provided based on the winding voltage on the secondary side (S200). In a preferred embodiment, the first voltage detection circuit 70 detects the winding voltage Vw in response to the input voltage Vin, and provides a detection voltage Vs based on the winding voltage Vw.

[0113] Then, the input voltage of the power supply is calculated based on the detected voltage, and an efficiency conversion table for different output current conditions is obtained accordingly (S300). Since the winding voltage Vw can respond to the magnitude of the input voltage Vin, a preferred embodiment is to use the power detection circuit 7 to calculate the input voltage Vin of the power supply 100 based on the detected voltage Vs, and obtain an efficiency conversion table Et for different output current Io conditions accordingly. The efficiency conversion table Et can be pre-written into the secondary-side controller 5, or the operation of establishing the efficiency conversion table Et can be performed by testing with the test circuit. Then, the output power is calculated based on the output voltage and output current, and a first efficiency value of the power supply under the output current condition is obtained by comparing the output power with the efficiency conversion table (S400). A preferred embodiment is to use the power detection circuit 7 to calculate the output power Po based on the output voltage Vo and output current Io, and obtain a first efficiency value of the power supply 100 under the current output current Io condition by comparing the output power Po with the efficiency conversion table Et.

[0114] Finally, the input power of the power supply is calculated based on the first efficiency value and the output power (S500). In a preferred embodiment, the power detection circuit 7 calculates the input power Pin of the power supply 100 based on the first efficiency value and the output power Po. In this way, the function of estimating the input power Pin can be achieved using only a few components to detect secondary-side parameters. In one embodiment, detailed operation of the present invention can be referred to in conjunction with... Figures 1-5C Further details will not be elaborated here. In addition, in one embodiment, the circuits and components mentioned in the above steps are only devices more suitable for implementing the above steps, but are not limited thereto. All circuits and components that can achieve the operation mode in the above steps S100 to S500 should be included in the scope of this embodiment.

[0115] Please see Figure 7A This is a flowchart of the power supply calculation method of the present invention. Figure 7B This is a waveform diagram illustrating the power consumption calculation method of the power supply device of the present invention, for further reference. Figures 1-6 . Figure 7A , 7B One application of the main power detection circuit 7 is for measuring the electrical charge of the power supply 100 to calculate the carbon emissions of the power supply 100 during operation. Specifically, such as... Figure 7A , 7BAs shown, the secondary-side controller 5 can set a specific time period TD (e.g., but not limited to, 1 hour), and the secondary-side controller 5 can control the first voltage detection circuit 70 to sample the output voltage Vo of the power supply 100 at multiple sampling times Ts within the specific time period TD, and simultaneously control the current detection circuit 74 to sample the output current Io of the power supply 100 at the sampling times Ts (step S600). In one embodiment, Figure 7B The sampling time Ts is a periodic sampling time (e.g., but not limited to 1 second), but it is not limited to this and can also be a non-periodic sampling time Ts. For example, but not limited to, multiple samples are taken when the output current Io changes, and no samples are taken when the output current Io does not change, and so on (e.g., but not limited to changes in ambient temperature), which will not be elaborated here.

[0116] Then, the obtained output voltage Vo and output current Io are passed through... Figure 6 The operation method calculates the input power Pin (step S620). After step S620, the number of samples is accumulated (step S640), and it is determined whether the specific time period TD has ended (step S660, for example, but not limited to, whether 3600 samples have been taken after 1 hour). If the specific time period TD has not ended, the process returns to step S600 to continuously sample the output voltage Vo and output current Io. Conversely, if the specific time period TD has ended, the electricity consumption of the power supply 100 during the specific time period TD is obtained based on the accumulated input power Pin parameters (step S680, the electricity consumption calculation method can be kilowatt-hours). In this way, the carbon emissions of the power supply 100 during operation can be calculated, facilitating the collection and publication of carbon emission data.

[0117] In addition, between steps S600 and S620, the first efficiency value can be selectively corrected based on the ambient temperature (step S610). Specifically, the secondary-side controller 5 can simultaneously control the temperature detection circuit 76 to sample the first ambient temperature of the power supply 100 at sampling time Ts, and adjust the first efficiency value corresponding to each output power Po according to the first ambient temperature, so as to calculate a more accurate input power by using the adjusted first efficiency value and the currently obtained output power Po. It is worth mentioning that, in one embodiment, Figures 7A-7B This is just one of many applications of the power detection circuit 7, and is not limited to its application only in calculating electricity consumption.

[0118] However, the above description is only a detailed description and illustration of preferred embodiments of the present invention. The features of the present invention are not limited thereto and are not intended to limit the present invention. The scope of the present invention should be determined by the following claims. All embodiments that conform to the spirit of the claims and similar variations thereof should be included in the scope of the present invention. Any variations or modifications that can be easily conceived by those skilled in the art within the field of the present invention can be covered by the following claims.

Claims

1. A power detection circuit, characterized in that: Configured in a power supply having a primary side and a secondary side, the power detection circuit includes: A primary-side controller is configured on this secondary side; A first voltage detection circuit is coupled to the secondary-side controller and provides a detection voltage based on a winding voltage on the secondary side; A second voltage detection circuit is coupled to an output terminal of the secondary-side controller and the power supply, and detects an output voltage at the output terminal; and A current detection circuit is coupled to the secondary-side controller and the output terminal, and detects an output current at the output terminal; The secondary controller calculates an input voltage of the power supply based on the detected voltage and obtains an efficiency conversion table under different output current conditions based on the input voltage. The secondary controller calculates an output power based on the output voltage and the output current, and obtains a first efficiency value of the power supply under the output current condition by comparing the output power with the efficiency conversion table, so as to calculate an input power of the power supply based on the first efficiency value and the output power.

2. The power detection circuit as described in claim 1, characterized in that: Including: A temperature detection circuit is coupled to the secondary-side controller and detects a first ambient temperature of the power supply. The secondary controller adjusts the first efficiency value based on the first ambient temperature.

3. The power detection circuit as described in claim 2, characterized in that: The secondary controller presets multiple second ambient temperatures and obtains multiple second conversion efficiency values ​​under different output current conditions based on these second ambient temperatures. The secondary controller calculates the first efficiency value corresponding to the first ambient temperature by using an internal difference to obtain a parameter difference between the first ambient temperature and two adjacent second ambient temperatures.

4. The power detection circuit as described in claim 2, characterized in that: The temperature detection circuit includes: A temperature-controlled resistor generates a temperature-controlled resistance value based on the first ambient temperature, and the secondary-side controller knows the first ambient temperature based on the temperature-controlled resistance value, so as to adjust the first efficiency value according to the first ambient temperature.

5. The power detection circuit as described in claim 1, characterized in that: The secondary side includes a primary-side switch configured at the positive terminal of a bus, and the first voltage detection circuit includes: A voltage divider circuit is coupled between a negative terminal of a bus on the secondary side and a ground terminal, and includes a first resistor and a second resistor connected in series. When the secondary-side switch is not turned on, the voltage divider circuit divides the winding voltage of the primary-side winding on the secondary side to generate the detection voltage at a node between the first resistor and the second resistor.

6. The power detection circuit as described in claim 1, characterized in that: The secondary side includes a primary-side switch configured at the negative terminal of a bus, and the first voltage detection circuit includes: A clamping circuit is coupled between a positive terminal of a bus on the secondary side and a ground terminal, and includes a capacitor and a first resistor connected in series, and a second resistor connected in parallel with the capacitor and the first resistor. When the secondary-side switch is not turned on, the clamping circuit clamps the winding voltage of the primary-side winding on the secondary side, so as to generate the detection voltage at a node between the capacitor and the first resistor.

7. The power detection circuit as described in claim 1, characterized in that: The first voltage detection circuit includes: An auxiliary winding is coupled to a primary-side winding on the primary side, and the first voltage detection circuit provides the detection voltage based on the winding voltage of the auxiliary winding.

8. The power detection circuit as described in claim 1, characterized in that: The first voltage detection circuit samples multiple output voltages at multiple sampling times within a specific time period, and the current detection circuit samples multiple output currents at the same sampling times. The secondary controller calculates multiple input powers based on the output voltages and output currents, and obtains a power consumption of the power supply within the specific time period based on the input powers.

9. The power detection circuit as described in claim 8, characterized in that: The secondary controller detects multiple first ambient temperatures of the power supply at the sampling time and adjusts multiple first efficiency values ​​according to the first ambient temperatures.

10. An operation method for a power detection circuit, characterized in that: The power detection circuit is configured in a power supply having a primary side and a secondary side, and the operation method of the power detection circuit includes the following steps: Detect an output voltage and an output current at one of the output terminals of the power supply; A detection voltage is provided based on the voltage of one winding on the secondary side; Calculate an input voltage of the power supply based on the detected voltage, and obtain an efficiency conversion table under different output current conditions based on the input voltage. An output power is calculated based on the output voltage and the output current, and a first efficiency value of the power supply under the output current condition is obtained by comparing the output power with the efficiency conversion table; and The input power of the power supply is calculated based on the first efficiency value and the output power.