High-side current sampling circuit, switching power supply, chip and electronic equipment
By introducing a compensation circuit and a control circuit into the high-side current sampling circuit, and using the compensation current to compensate the leakage current of the power tube, the problem of reduced sampling accuracy is solved and the sampling accuracy is significantly improved.
Patent Information
- Application Number
- CN202410632088.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
When the high-side current sampling circuit is sampling, the sampling accuracy is reduced due to the leakage current of the power tube, especially under high temperature conditions.
A high-side current sampling circuit is designed. By introducing a compensation circuit into the sampling circuit, the control circuit is used to control the compensation circuit to transmit the compensation current to the sampling circuit when it is turned on to compensate for the leakage current when the power tube is turned off and ensure the accuracy of the sampling voltage. .
By introducing the compensation current, the sampling accuracy error caused by the leakage current when the power tube is turned off can be effectively eliminated, and the sampling accuracy of the high-side current sampling circuit can be improved. Especially under high temperature conditions, the sampling accuracy is significantly improved.
Smart Images

Figure CN118539720A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a high-side current sampling circuit, a switching power supply, a chip and an electronic device. Background Art
[0002] The high-side current sampling circuit can sample the high-side current and output it in the form of voltage or current. The high-side current sampling circuit converts the high-side current into a detection voltage, and uses the virtual short characteristics of the operational amplifier in the high-side current sampling circuit to amplify the detection voltage at a certain ratio and output it.
[0003] However, in the related art, when the high-side current sampling circuit samples, the sampling accuracy of the high-side current sampling circuit is reduced due to leakage current of the power tube in the cut-off state in the high-side current sampling circuit. Summary of the invention
[0004] The present application provides a high-side current sampling circuit, a switching power supply, a chip and an electronic device, which can improve the acquisition accuracy of the high-side current sampling circuit.
[0005] In a first aspect, the present application provides a high-side current sampling circuit, which includes: a sampling circuit, an operational amplifier, a first power tube, a second power tube, an output circuit and a compensation circuit, and the common-mode voltage of the first input terminal of the operational amplifier is equal to the common-mode voltage of the second input terminal.
[0006] The input end of the sampling circuit is used to access the high-side current to be measured, the first output end of the sampling circuit is electrically connected to the first input end of the operational amplifier, the second output end of the sampling circuit is electrically connected to the second input end of the operational amplifier, the output end of the operational amplifier is electrically connected to the control end of the output circuit, the first end of the first power tube is electrically connected between the first output end of the sampling circuit and the first input end of the operational amplifier, the first end of the second power tube is electrically connected between the second output end of the sampling circuit and the second input end of the operational amplifier, the substrate layer of the first power tube is electrically connected to the second end of the first power tube, the second end of the first power tube is also electrically connected to the first end of the compensation circuit, the substrate layer of the second power tube is electrically connected to the second end of the second power tube, the second end of the second power tube is also electrically connected to the second end of the compensation circuit, the third end of the compensation circuit is electrically connected to the input end of the output circuit, the output end of the output circuit is used to output a sampling voltage corresponding to the high-side current to be measured, the control end of the first power tube, the control end of the second power tube and the fourth end of the compensation circuit are all electrically connected to the control circuit, and the ground end of the compensation circuit and the ground end of the output circuit are both grounded.
[0007] The sampling circuit is used to transmit feedback current to the output circuit when one of the first power tube and the second power tube is turned off and the other power tube is turned on.
[0008] The compensation circuit is used to transmit a compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for a first leakage current when one of the power tubes is turned off.
[0009] The sampling circuit is also used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured. The first current includes a first leakage current when one of the power tubes is turned off and a second leakage current when one of the power tubes is turned off, and the second current includes a feedback current, a second leakage current when another power tube is turned on, and a compensation current, and the second leakage current when one of the power tubes is turned off is equal to the second leakage current when the other power tube is turned on.
[0010] The operational amplifier is used to control the conduction of the output circuit according to the first current and the second current.
[0011] The output circuit is used to output a sampling voltage according to a feedback current when the output circuit is turned on.
[0012] Through the high-side current sampling circuit provided by the first aspect, when one of the first power tube and the second power tube is turned off and the other power tube is turned on, the feedback current can be transmitted to the output circuit through the sampling circuit, so that the output circuit can obtain the feedback current. In this way, when the control circuit controls the compensation circuit to be turned on, the compensation circuit can transmit the compensation current to the sampling circuit to compensate for the first leakage current when one of the power tubes is turned off. In this way, the sampling circuit can transmit the first current and the second current to the operational amplifier according to the high-side current to be measured, so that the operational amplifier can control the output circuit to be turned on. Furthermore, when the output circuit is turned on, it can output a sampling voltage according to the feedback current to realize the collection of the high-side current to be measured. Since the sampling accuracy error introduced by the first leakage current when one of the power tubes is turned off can be eliminated by the compensation current, the sampling voltage is more accurate. Thereby, the sampling accuracy of the high-side current sampling circuit is improved.
[0013] In one possible design, the sampling circuit is used to transmit a feedback current to the output circuit when the first power tube is turned on and the second power tube is turned off.
[0014] The compensation circuit is used to transmit a compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for the first leakage current when the second power tube is turned off.
[0015] The sampling circuit is also used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured, wherein the second current includes a feedback current, a second leakage current when the first power tube is turned on, and a compensation current, and the first current includes a first leakage current when the second power tube is turned off and a second leakage current when the second power tube is turned off, and the second leakage current when the first power tube is turned on is equal to the second leakage current when the second power tube is turned off.
[0016] The operational amplifier is used to control the conduction of the output circuit according to the first current and the second current.
[0017] The output circuit is used to output a sampling voltage according to a feedback current when the output circuit is turned on.
[0018] In a possible design, the sampling circuit is used to transmit a feedback current to the output circuit when the first power tube is turned off and the second power tube is turned on.
[0019] The compensation circuit is used to transmit a compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for the first leakage current when the first power tube is turned off.
[0020] The sampling circuit is also used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured, wherein the first current includes a first leakage current when the first power tube is turned off and a second leakage current when the first power tube is turned off, and the second current includes a feedback current, a second leakage current when the second power tube is turned on, and a compensation current, and the second leakage current when the first power tube is turned off and the second leakage current when the second power tube is turned on are equal.
[0021] The operational amplifier is used to control the conduction of the output circuit according to the first current and the second current.
[0022] The output circuit is used to output a sampling voltage according to a feedback current when the output circuit is turned on.
[0023] In one possible design, the compensation circuit includes: a first compensation current output circuit, a first transistor, a second compensation current output circuit, and a second transistor.
[0024] The second end of the second power tube is electrically connected to the first end of the first transistor, the second end of the first transistor is electrically connected to the second end of the second transistor, the first end of the second transistor is electrically connected to the second end of the first power tube, and the input end of the output circuit is electrically connected between the second end of the first transistor and the second end of the second transistor.
[0025] The input end of the first compensation current output circuit and the output end of the second compensation current output circuit are both electrically connected between the first end of the first transistor and the second end of the second power tube, the output end of the first compensation current output circuit and the input end of the second compensation current output circuit are both electrically connected between the first end of the second transistor and the second end of the first power tube, the control end of the first compensation current output circuit, the control end of the second compensation current output circuit, the control end of the first transistor and the control end of the second transistor are all electrically connected to the control circuit, and the ground end of the first compensation current output circuit and the ground end of the second compensation current output circuit are both grounded.
[0026] The first compensation current output circuit is used to obtain the first leakage current when the second power tube is turned off, and to mirror the first leakage current when the second power tube is turned off to obtain the first compensation current when the control circuit controls the first compensation current output circuit and the second transistor to be turned on, and the second compensation current output circuit and the second transistor to be turned off.
[0027] The second compensation current output circuit is used to obtain the first leakage current when the first power tube is turned off, and to mirror the first leakage current when the first power tube is turned off to obtain the second compensation current when the control circuit controls the second compensation current output circuit and the first transistor to be turned on, and the first compensation current output circuit and the second transistor to be turned off.
[0028] In one possible design, the first compensation current output circuit or the second compensation current output circuit includes: a third transistor and a first field effect transistor component.
[0029] The control end of the third transistor is electrically connected to the control circuit, the first end of the third transistor is electrically connected between the first end of the first transistor and the second end of the second power tube, or between the first end of the second transistor and the second end of the first power tube, the second end of the third transistor is electrically connected to the first end of the first field effect tube component, the second end of the first field effect tube component is electrically connected between the second end of the third transistor and the first end of the first field effect tube component, the third end of the first field effect tube component is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube, and the fourth end of the first field effect tube component is grounded.
[0030] The first field effect tube component is used to mirror the first leakage current when the second power tube is turned off or the first leakage current when the first power tube is turned off.
[0031] In a possible design, the first compensation current output circuit or the second compensation current output circuit further includes: a second field effect transistor component.
[0032] The first end and the second end of the second field effect tube component are both electrically connected to the second end of the third transistor, the third end of the second field effect tube component is electrically connected to the first end of the first field effect tube component, the fourth end of the second field effect tube component is electrically connected to the third end of the first field effect tube component, and the fifth end of the second field effect tube component is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube.
[0033] The second field effect tube assembly is used to make the voltage of the first end of the first field effect tube assembly equal to the voltage of the third end of the first field effect tube assembly, so as to improve the mirror accuracy of the first field effect tube assembly.
[0034] In a possible design, the second field effect transistor component includes: a fourth transistor and a fifth transistor.
[0035] The first end of the fourth transistor is electrically connected to the second end of the third transistor, the second end of the fourth transistor is electrically connected to the first end of the first field effect tube component, the control end of the fourth transistor and the control end of the fifth transistor are both electrically connected between the first end of the fourth transistor and the second end of the third transistor, the second end of the fifth transistor is electrically connected to the third end of the first field effect tube component, and the first end of the fifth transistor is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube.
[0036] In a possible design, the sampling circuit includes: a detection resistor, a first resistor and a second resistor, and the resistance value of the first resistor is equal to the resistance value of the second resistor.
[0037] The detection resistor is used to connect the high-side current to be measured, the first end of the detection resistor is electrically connected to the first end of the first resistor, the second end of the first resistor is electrically connected to the first input end of the operational amplifier, the second end of the detection resistor is electrically connected to the first end of the second resistor, and the second end of the second resistor is electrically connected to the second input end of the operational amplifier.
[0038] In one possible design, the output circuit includes: a third power tube and a third resistor.
[0039] The first end of the third power tube is electrically connected to the third end of the compensation circuit, the control end of the third power tube is electrically connected to the output end of the operational amplifier, the second end of the third power tube is electrically connected to the first end of the third resistor, and the second end of the third resistor is grounded.
[0040] In a second aspect, the present application provides a switching power supply, comprising: a high-side power transistor, a low-side power transistor, a freewheeling inductor, a control circuit, and a high-side current sampling circuit in the first aspect and each possible design of the above-mentioned first aspect.
[0041] The control circuit is electrically connected to the gate of the high-side power transistor and the control end of the high-side circuit sampling circuit respectively, the drain of the high-side power transistor is used to access the power supply voltage, the source of the high-side power transistor is electrically connected to the drain of the low-side power transistor, the source of the low-side power transistor is grounded, the input end of the high-side current sampling circuit and the first end of the freewheeling inductor are both electrically connected between the source of the high-side power transistor and the drain of the low-side power transistor, and the second end of the freewheeling inductor is electrically connected to the load.
[0042] The control circuit is used to control the conduction of the high-side power transistor.
[0043] The high-side current sampling circuit is used to collect the high-side current to be measured when the high-side power transistor is turned on.
[0044] The control circuit is also used to control the first power tube to be turned on and the second power tube to be turned off when the high-side current to be measured is a current in the first direction. Alternatively, when the high-side current to be measured is a current in the second direction, the first power tube is controlled to be turned off and the second power tube is turned on, so that the high-side current sampling circuit samples the high-side current to be measured.
[0045] The beneficial effects of the switching power supply provided in the above-mentioned second aspect and each possible design of the above-mentioned second aspect can be referred to the beneficial effects brought about by the above-mentioned first aspect and each possible implementation method of the first aspect, and will not be repeated here.
[0046] In a third aspect, the present application provides a chip, comprising: the high-side current sampling circuit in the above-mentioned first aspect and each possible design of the above-mentioned first aspect, or the switching power supply in the above-mentioned second aspect.
[0047] In a fourth aspect, the present application provides an electronic device, comprising: the chip in the third aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A structural schematic diagram of a high-side current sampling circuit provided for related technology;
[0049] Figure 2 A simplified cross-sectional schematic diagram of a power tube in a high-side current sampling circuit provided for related technologies;
[0050] Figure 3 A structural schematic diagram of another high-side current sampling circuit provided for related technology;
[0051] Figure 4 A schematic diagram of the detection results of the high-side current sampling circuit provided for the related technology;
[0052] Figure 5 A schematic diagram of the structure of a switching power supply provided in one embodiment of the present application;
[0053] Figure 6 A schematic diagram of the structure of a high-side current sampling circuit provided in one embodiment of the present application;
[0054] Figure 7 A schematic diagram of the structure of another high-side current sampling circuit provided in an embodiment of the present application;
[0055] Figure 8 A schematic diagram of detection results of a high-side current sampling circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0057] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.
[0058] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0059] According to the relative position of the sampling resistor and the load in the current sampling circuit, the current sampling circuit can be divided into a high-side current sampling circuit and a low-side current sampling circuit.
[0060] Reference Figure 1 , Figure 1 A schematic diagram of a high-side current sampling circuit provided for related technologies. Figure 1 As shown, the high-side current i flows through the resistor r1sense and is converted into the detection voltage V1sense. The detection voltage V1sense is amplified at a certain ratio and then output by utilizing the virtual short characteristic of the operational amplifier A1.
[0061] When the high-side current i flows from left to right, the gate of the power tube m1 is connected to a high potential, so that the power tube m1 is in a conducting state, and the gate of the power tube m2 is connected to a low potential, so that the power tube m2 is in a cut-off state.
[0062] When the high-side current i flows from right to left, the gate of the power tube m1 is connected to a low potential, so that the power tube m1 is in a cut-off state, and the gate of the power tube m2 is connected to a high potential, so that the power tube m2 is in a conduction state.
[0063] Therefore, the high-side current sampling circuit can collect the high-side current i flowing from left to right, and can also collect the high-side current i flowing from right to left.
[0064] For the sake of convenience, the following description is based on the case where the high-side current i flows from left to right, assuming that the operational amplifier A1 is an ideal operational amplifier, that is, the common-mode current i1 of the operational amplifier A1 is equal to the common-mode current i2 of the operational amplifier A1. In addition, the power tube m2 in the cut-off state has no leakage, that is, the power tube m2 in the cut-off state does not have leakage current. Among them, VOUT1 = i3r2, and the resistance value of the resistor r1 is equal to the resistance value of the resistor r3.
[0065] Thus, according to the virtual short characteristic V'1=V'2 of the operational amplifier A1, we can obtain:
[0066]
[0067] Among them, V1sense is the detection voltage corresponding to the high-side current i, i1 and i2 are the common-mode currents of the operational amplifier A1, r'1 is the resistance value of the resistor r1, r'2 is the resistance value of the resistor r2, r'3 is the resistance value of the resistor r3, i4 is the current flowing through the resistor r1, i3 is the feedback current of the power tube m3, and VOUT1 is the output voltage of the high-side current sampling circuit in the related technology.
[0068] One condition for the above formula (1) to be true is that the cut-off power tube m2 has no leakage current. However, due to the characteristics of the high-side current sampling circuit, a relatively high common-mode voltage will exist at the two input terminals of the operational amplifier A1. In this way, the cut-off power tube m2 will have leakage current, which will affect the sampling accuracy of the high-side current sampling circuit. At the same time, under high temperature conditions, the cut-off power tube m2 will have a relatively large leakage current. In turn, the sampling accuracy of the high-side current sampling circuit is greatly affected. As a result, the sampling accuracy of the high-side current sampling circuit is greatly reduced.
[0069] Next, combine Figure 2 and Figure 3 This paper describes in detail how the sampling accuracy of the high-side current sampling circuit is affected when there is leakage current in the power tube.
[0070] Reference Figure 2 , Figure 2 Shows Figure 1 A simplified cross-sectional diagram of a medium power tube. Figure 2 As shown, a higher common mode voltage is applied to the drain terminal Drain / N-type buried layer terminal NBL of the power tube m1 / m2. In this way, the leakage current flowing out from the N-type buried layer terminal NBL of the power tube m1 / m2 mainly includes: the leakage current Ileak_Sub flowing from the N-type buried layer terminal NBL of the power tube m1 / m2 to the substrate P-sub of the power tube m1 / m2 and the leakage current Ileak_Body flowing from the N-type buried layer terminal NBL of the power tube to the substrate P-Body of the power tube.
[0071] Figure 3 Shows Figure 1 Structural diagram of the mid- and high-side current sampling circuit when leakage current exists in the power tube. Figure 3 Where i7 is the current flowing through resistor r1, and i8 is the current flowing through resistor r3. Figure 3 As shown, the substrate P-Body of the power tube m1 is electrically connected to the source end of the power tube m1, and the substrate P-Body of the power tube m2 is electrically connected to the source end of the power tube m2.
[0072] Assume that the operational amplifier A1 is an ideal operational amplifier, that is, the common mode current i1 of the operational amplifier A1 is equal to the common mode current i2 of the operational amplifier A1. Among them, the resistance value of the resistor r1 is equal to the resistance value of the resistor r3. In addition, since the process of the power tube m1 is the same as that of the power tube m2, therefore, the Ileak_Sub of the power tube m1 is equal to the Ileak_Sub of the power tube m2.
[0073] Thus, according to the virtual short characteristic V'1=V'2 of the operational amplifier A1, we can obtain:
[0074]
[0075] Among them, V1sense is the detection voltage corresponding to the high-side current i, i1 and i2 are both common-mode currents of the operational amplifier A1, i3 is the feedback current of the power tube m3, i'4 is the Ileak_Body of the power tube m2, i5 is the Ileak_Sub of the power tube m1, i6 is the Ileak_Sub of the power tube m2, r'1 is the resistance value of the resistor r1, r'2 is the resistance value of the resistor r2, r'3 is the resistance value of the resistor r3, and VOUT1 is the output voltage of the high-side current sampling circuit in the related technology.
[0076] In addition, since the Ileak_Body of the power tube m1 is included in the feedback current i3 of the power tube m3, the Ileak_Body of the turned-on power tube m1 will not affect the sampling accuracy of the high-side current sampling circuit.
[0077] By comparing formula (1) and formula (2), it can be found that the sampling accuracy error introduced by Ileak_Sub of the cut-off power tube m2 is 2r'1i'4.
[0078] Reference Figure 4 , Figure 4 Shows Figure 3 Schematic diagram of the detection results of the mid- and high-side current sampling circuit. Figure 4 The test conditions are: r2 / r1=20, typical (tt) process angle, V'1=V'2=80V, temperature 160°C. Figure 4 As shown, under the condition of the same high-side current i, the voltage difference between the detection voltage V1sense and the output voltage VOUT1 is about 0.9 mV. That is, the sampling accuracy error introduced by Ileak_Sub of the cut-off power tube m2 is about 0.9 mV.
[0079] Moreover, as the temperature rises and in extreme process conditions, the sampling accuracy error will further increase, which poses a challenge to high-precision high-side current sampling circuits.
[0080] Although in the related art, the substrate P-Body of the power tube m1 and the substrate P-Body of the power tube m2 are both grounded, so that the Ileak_Body of the power tube m1 and the Ileak_Body of the power tube m2 flow directly from the corresponding N-type buried layer end NBL to the ground, however, due to the doping concentration, the threshold voltage of the power tube m1 and the power tube m2 responsible for resisting high voltage is higher.
[0081] At the same time, considering the influence of the body effect, the substrate P-Body of the power tube m1 and the substrate P-Body of the power tube m2 are both grounded, which will reduce the drain voltage V'3 of the power tube m3. In this way, the risk of the power tube m3 entering the linear region is increased, and the lower limit of the high potential is increased. As a result, the maximum voltage value of the output voltage VOUT1 of the high-side current sampling circuit is reduced.
[0082] To this end, the present application provides a high-side current sampling circuit, a switching power supply, a chip and an electronic device.
[0083] Among them, the high-side current sampling circuit and the switching power supply can be chips or circuit modules.
[0084] In this application, electronic devices may include but are not limited to: televisions, tablet computers, adapters, and audio devices.
[0085] Reference Figure 5 , Figure 5 This is a schematic diagram of the structure of a switching power supply provided by an embodiment of the present application. Figure 5 As shown, the switching power supply 1000 may include: a high-side power transistor HS, a low-side power transistor LS, a freewheeling inductor L, a control circuit 200 and a high-side current sampling circuit 100 .
[0086] The control circuit 200 is electrically connected to the gate of the high-side power transistor HS and the control end of the high-side circuit sampling circuit 100 respectively, the drain of the high-side power transistor HS is used to access the power supply voltage VIN, the source of the high-side power transistor HS is electrically connected to the drain of the low-side power transistor LS, the source of the low-side power transistor LS is grounded, the input end of the high-side current sampling circuit 100 and the first end of the freewheeling inductor L are both electrically connected between the source of the high-side power transistor HS and the drain of the low-side power transistor LS, and the second end of the freewheeling inductor L is electrically connected to the load.
[0087] The control circuit 200 can control the high-side power transistor HS to be turned on. Thus, the high-side current sampling circuit 100 can collect the high-side current I to be measured when the high-side power transistor HS is turned on.
[0088] When the high-side current I to be measured is a current in the first direction, that is, when the current direction of the high-side current I to be measured is from left to right, the control circuit 200 can control the first power tube Q1 to be turned on, and the second power tube Q2 to be turned off. Alternatively, when the high-side current I to be measured is a current in the second direction, that is, when the current direction of the high-side current I to be measured is from right to left, the control circuit 200 can control the first power tube Q1 to be turned off, and the second power tube Q2 to be turned on. Thus, the high-side current sampling circuit 100 can output the sampling voltage VOUT2 according to the high-side current I to be measured.
[0089] Reference Figure 6 , Figure 6 Shows Figure 5 The schematic diagram of the structure of the mid- and high-side current sampling circuit. Figure 6 As shown, the high-side current sampling circuit 100 may include: a sampling circuit 110 , an operational amplifier A2 , a first power tube Q1 , a second power tube Q2 , an output circuit 130 and a compensation circuit 120 .
[0090] Since the common mode voltage V1 of the first input terminal of the operational amplifier A2 is equal to the common mode voltage V2 of the second input terminal, the operational amplifier A2 is an ideal operational amplifier, so that the common mode current I1 of the operational amplifier A2 is equal to the common mode current I2. In this way, the common mode current I1 and the common mode current I2 will not affect the accuracy of the sampling voltage VOUT2.
[0091] The input end of the sampling circuit 110 is used to connect the high-side current I to be measured, the first output end of the sampling circuit 110 is electrically connected to the first input end of the operational amplifier A2, the second output end of the sampling circuit 110 is electrically connected to the second input end of the operational amplifier A2, the output end of the operational amplifier A2 is electrically connected to the control end of the output circuit 130, the first end of the first power tube Q1 is electrically connected between the first output end of the sampling circuit 110 and the first input end of the operational amplifier A2, the first end of the second power tube Q2 is electrically connected between the second output end of the sampling circuit 110 and the second input end of the operational amplifier A2, the substrate layer P-Body of the first power tube Q1 is electrically connected to the second end of the first power tube Q1 The first power tube Q1 and the second power tube Q2 are electrically connected to each other, the second end of the first power tube Q1 is also electrically connected to the first end of the compensation circuit 120, the substrate layer P-Body of the second power tube Q2 is electrically connected to the second end of the second power tube Q2, the second end of the second power tube Q2 is also electrically connected to the second end of the compensation circuit 120, the third end of the compensation circuit 120 is electrically connected to the input end of the output circuit 130, the output end of the output circuit 130 is used to output a sampling voltage VOUT2 corresponding to the high-side current I to be measured, the control end of the first power tube Q1, the control end of the second power tube Q2 and the fourth end of the compensation circuit 120 are electrically connected to the control circuit 200, and the ground end of the compensation circuit 120 and the ground end of the output circuit 130 are both grounded.
[0092] The sampling circuit 110 , the operational amplifier A2 , the first power tube Q1 , the second power tube Q2 , the output circuit 130 and the compensation circuit 120 may be arranged separately or integrated.
[0093] When the first power tube Q1 is turned on and the second power tube Q2 is turned off, that is, when the flow direction of the high-side current I to be measured is from left to right, the sampling circuit 110 can transmit the feedback current I3 to the output circuit 130. In this way, when the control circuit 200 controls the compensation circuit 120 to be turned on, the compensation circuit 120 can transmit the compensation current Ic to the sampling circuit 110, so that the compensation current Ic can compensate for the first leakage current I4 when the second power tube Q2 is turned off.
[0094] The first leakage current I4 when the second power tube Q2 is turned off is Ileak_Body when the second power tube Q2 is turned off.
[0095] In this way, the sampling circuit 110 can transmit the first current I8 and the second current I7 to the operational amplifier A2 according to the high-side current I to be measured, so that the operational amplifier A2 can control the output circuit 130 to be turned on according to the first current I7 and the second current I8. Furthermore, when the output circuit 130 is turned on, the output circuit 130 can output the sampling voltage VOUT2 under the action of the feedback current I3.
[0096] The second current I7 may include the feedback current I3, the second leakage current I5 when the first power tube Q1 is turned on, and the compensation current Ic. The first current I8 may include the first leakage current I4 when the second power tube Q2 is turned off, and the second leakage current I6 when the second power tube Q2 is turned off.
[0097] Since the second leakage current I5 when the first power tube Q1 is turned on is equal to the second leakage current I6 when the second power tube Q2 is turned off. Therefore, the second leakage current I5 when the first power tube Q1 is turned on and the second leakage current I6 when the second power tube Q2 is turned off will not affect the accuracy of the sampling voltage VOUT2. Based on this, the first leakage current I4 when the second power tube Q2 is turned off can be compensated only by the compensation current Ic, which can eliminate the sampling accuracy error introduced by the first leakage current I4 when the second power tube Q2 is turned off, so that the sampling voltage VOUT2 is closer to the voltage V2sense corresponding to the high-side current I to be measured. Thereby, the sampling accuracy of the high-side current sampling circuit 100 is improved.
[0098] In addition, the second leakage current I5 when the first power tube Q1 is turned on is Ileak_Sub when the first power tube Q1 is turned on, and the second leakage current I6 when the second power tube Q2 is turned off is Ileak_Sub when the second power tube Q2 is turned off.
[0099] Similarly, when the first power tube Q1 is turned off and the second power tube Q2 is turned on, that is, when the flow direction of the high-side current I to be measured is from right to left, the sampling circuit 110 can transmit the feedback current I'3 to the output circuit 130. In this way, when the control circuit 200 controls the compensation circuit 120 to be turned on, the compensation circuit 120 can transmit the compensation current I'3 to the sampling circuit 110, so that the compensation current I'3 can compensate for the first leakage current I'4 when the first power tube Q1 is turned off.
[0100] The first leakage current I′4 when the first power tube Q1 is turned off is Ileak_Body when the first power tube Q1 is turned off.
[0101] In this way, the sampling circuit 110 can transmit the first current I7 and the second current I8 to the operational amplifier A2 according to the high-side current I to be measured, so that the operational amplifier A2 can control the output circuit 130 to be turned on according to the first current I7 and the second current I8. Furthermore, when the output circuit 130 is turned on, the output circuit 130 can output the sampling voltage VOUT2 under the action of the feedback current I'3.
[0102] The first current I7 may include a first leakage current I'4 when the first power tube Q1 is turned off and a second leakage current I'5 when the first power tube Q1 is turned off. The second current I8 may include a feedback current I'3, a second leakage current I'6 when the second power tube Q2 is turned on, and a compensation current I'c.
[0103] Since the second leakage current I'5 when the first power tube Q1 is turned off is equal to the second leakage current I'6 when the second power tube Q2 is turned on. Therefore, the second leakage current I'5 when the first power tube Q1 is turned off and the second leakage current I'6 when the second power tube Q2 is turned on will not affect the accuracy of the sampling voltage VOUT2. Based on this, the first leakage current I'4 when the first power tube Q1 is turned off can be compensated only by the compensation current I'c, which can eliminate the sampling accuracy error introduced by the first leakage current I'4 when the first power tube Q1 is turned off, so that the sampling voltage VOUT2 is closer to the voltage V2sense corresponding to the high-side current I to be measured. Thereby, the sampling accuracy of the high-side current sampling circuit 100 is improved.
[0104] In addition, the second leakage current I′5 when the first power tube Q1 is turned off is Ileak_Sub when the first power tube Q1 is turned off, and the second leakage current I6 when the second power tube Q2 is turned on is Ileak_Sub when the second power tube Q2 is turned on.
[0105] The present application provides a high-side current sampling circuit, a switching power supply, a chip and an electronic device. When one of the first power tube and the second power tube is turned off and the other power tube is turned on, the feedback current can be transmitted to the output circuit through the sampling circuit, so that the output circuit can obtain the feedback current. In this way, when the control circuit controls the compensation circuit to be turned on, the compensation circuit can transmit the compensation current to the sampling circuit to compensate for the first leakage current when one of the power tubes is turned off. In this way, the sampling circuit can transmit the first current and the second current to the operational amplifier according to the high-side current to be measured, so that the operational amplifier can control the output circuit to be turned on. Furthermore, when the output circuit is turned on, it can output a sampling voltage according to the feedback current to realize the collection of the high-side current to be measured. Since the sampling accuracy error introduced by the first leakage current when one of the power tubes is turned off can be eliminated by the compensation current, the sampling voltage is more accurate. Thereby, the sampling accuracy of the high-side current sampling circuit is improved.
[0106] Based on the description of the above embodiment, a possible implementation of the compensation circuit 120 is exemplified. Figure 7 , Figure 7 Shows Figure 5 and Figure 6 The schematic diagram of the structure of the mid- and high-side current sampling circuit. Figure 7 As shown, the compensation circuit 120 may include: a first compensation current output circuit 121, a first transistor M1, a second compensation current output circuit 122 and a second transistor M2.
[0107] The second end of the second power tube Q2 is electrically connected to the first end of the first transistor M1, the second end of the first transistor M1 is electrically connected to the second end of the second transistor M2, the first end of the second transistor M2 is electrically connected to the second end of the first power tube Q1, and the input end of the output circuit 130 is electrically connected between the second end of the first transistor M1 and the second end of the second transistor M2.
[0108] The input end of the first compensation current output circuit 121 and the output end of the second compensation current output circuit 122 are both electrically connected between the first end of the first transistor M1 and the second end of the second power tube Q2, the output end of the first compensation current output circuit 121 and the input end of the second compensation current output circuit 122 are both electrically connected between the first end of the second transistor M2 and the second end of the first power tube Q1, the control end of the first compensation current output circuit 121, the control end of the second compensation current output circuit 122, the control end of the first transistor M1 and the control end of the second transistor M2 are all electrically connected to the control circuit 200, and the ground end of the first compensation current output circuit 121 and the ground end of the second compensation current output circuit 122 are both grounded.
[0109] The first compensation current output circuit 121 and the second compensation current output circuit 122 are both compensation current output circuits.
[0110] In addition, for ease of understanding, Figure 6 and Figure 7 Only the current when the direction of the high-side current I to be measured flows from left to right is illustrated.
[0111] When the control circuit 200 controls the first compensation current output circuit 121 and the second transistor M2 to be turned on, and the second compensation current output circuit 122 and the second transistor M2 to be turned off, the first compensation current output circuit 121 can obtain the first leakage current I4 when the second power tube Q2 is turned off. In addition, the first compensation current output circuit 121 can mirror the first leakage current I4 when the second power tube Q2 is turned off, so that the first compensation current output circuit 121 can obtain the compensation current Ic. Furthermore, the compensation circuit 120 can obtain the compensation current Ic.
[0112] When the control circuit 200 controls the second compensation current output circuit 122 and the first transistor M1 to be turned on, and the first compensation current output circuit 121 and the second transistor M2 to be turned off, the second compensation current output circuit 122 can obtain the first leakage current I'4 when the first power tube Q1 is turned off. In addition, the second compensation current output circuit 122 can mirror the first leakage current I'4 when the first power tube Q1 is turned off to obtain the compensation current I'c. Furthermore, the compensation circuit 120 can obtain the compensation current I'c.
[0113] Thus, the compensation circuit 120 can transmit the compensation current Ic / I′c to the sampling circuit 110 .
[0114] In addition, based on the above description, it can be known that when the first power tube Q1 is turned on and the second power tube Q2 is turned off, only the first compensation current output circuit 121 and the second transistor M2 are in the on state. Similarly, when the first power tube Q1 is turned off and the second power tube Q2 is turned on, only the second compensation current output circuit 122 and the first transistor M1 are in the on state.
[0115] In summary, the first leakage current when the second power tube is turned off can be mirrored by the first compensation current output circuit to obtain the compensation current, and the first leakage current when the first power tube is turned off can be mirrored by the second compensation current output circuit to obtain the compensation current. Thus, the compensation circuit can obtain the compensation current.
[0116] Based on the description of the above embodiment, illustratively, a possible implementation of the first compensation current output circuit 121 or the second compensation current output circuit 122 is as follows. Figure 7As shown, the first compensation current output circuit 121 or the second compensation current output circuit 122 may include: a third transistor M3 and a first field effect transistor component 121 - 1 .
[0117] The control end of the third transistor M3 is electrically connected to the control circuit 200, the first end of the third transistor M3 is electrically connected between the first end of the first transistor M1 and the second end of the second power transistor Q2, or between the first end of the second transistor M2 and the second end of the first power transistor Q1, the second end of the third transistor M3 is electrically connected to the first end of the first field effect transistor assembly 121-1, the second end of the first field effect transistor assembly 121-1 is electrically connected between the second end of the third transistor M3 and the first end of the first field effect transistor assembly 121-1, the third end of the first field effect transistor assembly 121-1 is electrically connected between the first end of the second transistor M2 and the second end of the first power transistor Q1, or between the first end of the first transistor M1 and the second end of the second power transistor Q2, and the fourth end of the first field effect transistor assembly 121-1 is grounded.
[0118] In the case of the first compensation current output circuit 121, the third end of the first field effect transistor component 121-1 is electrically connected between the first end of the second transistor M2 and the second end of the first power transistor Q1. In this way, when the third transistor M3 is turned on, the first field effect transistor component 121-1 can mirror the first leakage current I4 when the second power transistor Q2 is turned off, so that the first leakage current I4 when the second power transistor Q2 is turned off can be mirrored to the second current I7 branch. In this way, the first compensation current output circuit 121 can obtain the compensation current Ic.
[0119] In the case of the second compensation current output circuit 122, the third end of the first field effect transistor component 121-1 is electrically connected between the first end of the first transistor M1 and the second end of the second power transistor Q2. In this way, when the third transistor M3 is turned on, the first field effect transistor component 121-1 can mirror the first leakage current I'4 when the first power transistor Q1 is turned off, so that the first leakage current I'4 when the first power transistor Q1 is turned off can be mirrored to the second current I8 branch. In this way, the second compensation current output circuit 122 can obtain the compensation current I'c.
[0120] In summary, when the third transistor is turned on, the first leakage current when the second power transistor is turned off or the first leakage current when the first power transistor is turned off can be mirrored through the first field effect transistor component. Thus, the first compensation current output circuit or the second compensation current output circuit can obtain compensation current.
[0121] Based on the description of the above embodiments, illustratively, another possible implementation of the first compensation current output circuit 121 or the second compensation current output circuit 122 is as follows. Figure 7As shown, the first compensation current output circuit 121 or the second compensation current output circuit 122 may further include: a second field effect transistor component 121 - 2 .
[0122] The first end and the second end of the second field effect tube component 121-2 are both electrically connected to the second end of the third transistor M3, the third end of the second field effect tube component 121-2 is electrically connected to the first end of the first field effect tube component 121-1, the fourth end of the second field effect tube component 121-2 is electrically connected to the third end of the first field effect tube component 121-1, and the fifth end of the second field effect tube component 121-2 is electrically connected between the first end of the second transistor M2 and the second end of the first power tube Q1, or between the first end of the first transistor M1 and the second end of the second power tube Q2.
[0123] The second field effect transistor assembly 121-2 can make the voltage of the first end of the first field effect transistor assembly 121-1 equal to the voltage of the third end of the first field effect transistor assembly 121-1, so that the mirror accuracy of the first field effect transistor assembly 121-1 can be improved. Thus, the magnitude of the compensation current Ic is closer to the magnitude of the first leakage current I4 when the second power tube Q2 is turned off, or the magnitude of the compensation current I'c is closer to the first leakage current I'4 when the first power tube Q1 is turned off.
[0124] In summary, the voltage at the first end of the first field effect tube assembly can be made equal to the voltage at the third end of the first field effect tube assembly through the second field effect tube assembly, so that the mirror image accuracy of the first field effect tube assembly is higher.
[0125] Based on the description of the above embodiment, a possible implementation of the second field effect transistor assembly 121-2 is exemplified. Figure 7 As shown, the second field effect transistor assembly 121 - 2 may include: a fourth transistor M4 and a fifth transistor M5 .
[0126] The first end of the fourth transistor M4 is electrically connected to the second end of the third transistor M3, the second end of the fourth transistor M4 is electrically connected to the first end of the first field effect transistor assembly 121-1, the control end of the fourth transistor M4 and the control end of the fifth transistor M5 are both electrically connected between the first end of the fourth transistor M4 and the second end of the third transistor M3, the second end of the fifth transistor M4 is electrically connected to the third end of the first field effect transistor assembly 121-1, and the first end of the fifth transistor M4 is electrically connected between the first end of the second transistor M2 and the second end of the first power transistor Q1, or between the first end of the first transistor M1 and the second end of the second power transistor Q2.
[0127] Exemplarily, the first field effect transistor assembly 121 - 1 may include: a sixth transistor M6 and a seventh transistor M7 .
[0128] A first end of the sixth transistor M6 is electrically connected to the second end of the fourth transistor M4, a second end of the sixth transistor M6 and a second end of the seventh transistor M7 are both grounded, a first end of the seventh transistor M7 is electrically connected to the second end of the fifth transistor M5, and a control end of the sixth transistor M6 and a control end of the seventh transistor M7 are both electrically connected between the first end of the sixth transistor M6 and the second end of the fourth transistor M4.
[0129] Based on the description of the above embodiment, a possible implementation of the sampling circuit 110 is exemplified. Figure 7 As shown, the sampling circuit 110 may include: a detection resistor Rsense, a first resistor R1 and a second resistor R2.
[0130] The resistance value of the first resistor R1 is equal to the resistance value of the second resistor R2.
[0131] The detection resistor Rsense is used to connect the high-side current I to be measured, the first end of the detection resistor Rsense is electrically connected to the first end of the first resistor R1, the second end of the first resistor R1 is electrically connected to the first input end of the operational amplifier A2, the second end of the detection resistor Rsense is electrically connected to the first end of the second resistor R2, and the second end of the second resistor R2 is electrically connected to the second input end of the operational amplifier A2.
[0132] The high-side current I to be measured flows through the detection resistor Rsense and is converted into a detection voltage V2sense. Thus, the detection voltage V2sense can be converted into a first current and a second current through the first resistor R1 and the second resistor R2. Thus, the sampling circuit 110 can obtain the first current and the second current.
[0133] In summary, the high-side current to be measured is converted into a detection voltage through the detection resistor, so that the first resistor and the second resistor can convert the detection voltage into the first current and the second current. Thus, the sampling circuit can obtain the first current and the second current.
[0134] Based on the description of the above embodiment, a possible implementation of the output circuit 130 is exemplified. Figure 7 As shown, the output circuit 130 may include: a third power tube Q3 and a third resistor R3.
[0135] A first end of the third power tube Q3 is electrically connected to a third end of the compensation circuit 120, a control end of the third power tube Q3 is electrically connected to an output end of the operational amplifier A2, a second end of the third power tube Q3 is electrically connected to a first end of a third resistor R3, and a second end of the third resistor R3 is grounded.
[0136] When the operational amplifier A2 controls the third power tube Q3 to be turned on, the feedback current I3 / I'3 flows through the third resistor R3 to obtain the sampling voltage VOUT2. Thus, the output circuit 130 can obtain the sampling voltage VOUT2.
[0137] Based on the above description, it can be known that the common mode current I1 of the operational amplifier A2 is equal to the common mode current I2, the resistance of the first resistor R1 is equal to the resistance of the second resistor R2, and the second leakage current I5 when the first power tube is turned on is equal to the second leakage current I6 when the second power tube is turned off.
[0138] Thus, according to the virtual short characteristic V1=V2 of the operational amplifier A2, we can obtain:
[0139]
[0140] Among them, V2sense is the detection voltage corresponding to the high-side current I to be measured, I1 and I2 are both common-mode currents of the operational amplifier A2, I3 is the feedback current, I4 is the first leakage current when the second power tube Q2 is turned off, I5 is the second leakage current when the first power tube Q1 is turned on, I6 is the second leakage current when the second power tube Q2 is turned off, R'1 is the resistance value of the first resistor R1, R'2 is the resistance value of the second resistor R2, R'3 is the resistance value of the third resistor R3, and VOUT2 is the sampling voltage.
[0141] By comparing formula (2) and formula (3), it can be found that the first leakage current I4 when the second power tube Q2 is turned off is compensated by the compensation current Ic, so that the sampling accuracy error caused by the first leakage current I4 when the second power tube Q2 is turned off can be eliminated.
[0142] In addition, when the high-side current sampling circuit 100 is operating normally, the source voltage V3 of the first power tube Q1 and the source voltage V4 of the second power tube Q2 are not equal. However, since the source of the first power tube Q1 and the source of the second power tube Q2 are in the low voltage domain, the Ileak_Body and Ileak_Sub of the third power tube Q3, the first transistor M1, the second transistor M2, the first field effect tube assembly 121-1 and the second field effect tube assembly 121-2 are much smaller than the first power tube Q1 and the second power tube Q tube, and can be ignored.
[0143] Reference Figure 8 , Figure 8 Shows Figure 5-Figure 7 Schematic diagram of the detection results of the mid- and high-side current sampling circuit. Figure 8 The test conditions are: R3 / R1=20, tt process angle, V1=V2=80V, temperature 160℃. Figure 8As shown in FIG. 1 , under the condition of the same high-side current I to be measured, the sampling voltage VOUT2 is closer to the detection voltage V2sense. Figure 4 , the sampling accuracy of the high-side current sampling current 100 is significantly improved.
[0144] In summary, through the third power tube and the third resistor, the feedback current flows through the third resistor and is converted into a sampling voltage. Thus, the output circuit can obtain the sampling voltage.
[0145] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A high-side current sampling circuit, characterized in that: include: A sampling circuit, an operational amplifier, a first power tube, a second power tube, an output circuit and a compensation circuit, wherein the common mode voltage of the first input terminal of the operational amplifier is equal to the common mode voltage of the second input terminal; The input end of the sampling circuit is used to connect the high-side current to be measured, the first output end of the sampling circuit is electrically connected to the first input end of the operational amplifier, the second output end of the sampling circuit is electrically connected to the second input end of the operational amplifier, the output end of the operational amplifier is electrically connected to the control end of the output circuit, the first end of the first power tube is electrically connected between the first output end of the sampling circuit and the first input end of the operational amplifier, the first end of the second power tube is electrically connected between the second output end of the sampling circuit and the second input end of the operational amplifier, the substrate layer of the first power tube is electrically connected to the second end of the first power tube, the second end of the first power tube is also electrically connected to the first end of the compensation circuit, the substrate layer of the second power tube is electrically connected to the second end of the second power tube, the second end of the second power tube is also electrically connected to the second end of the compensation circuit, the third end of the compensation circuit is electrically connected to the input end of the output circuit, the output end of the output circuit is used to output the sampling voltage corresponding to the high-side current to be measured, the control end of the first power tube, the control end of the second power tube and the fourth end of the compensation circuit are all electrically connected to the control circuit, and the ground end of the compensation circuit and the ground end of the output circuit are both grounded; The sampling circuit is used to transmit a feedback current to the output circuit when one of the first power tube and the second power tube is turned off and the other power tube is turned on; The compensation circuit is used to transmit a compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for a first leakage current when one of the power tubes is turned off; The sampling circuit is further used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured; wherein the first current includes a first leakage current when one of the power tubes is turned off and a second leakage current when one of the power tubes is turned off, and the second current includes the feedback current, the second leakage current when the other power tube is turned on, and the compensation current, and the second leakage current when one of the power tubes is turned off and the second leakage current when the other power tube is turned on are equal; The operational amplifier is used to control the output circuit to be turned on according to the first current and the second current; The output circuit is used to output the sampled voltage according to the feedback current when it is turned on.
2. The circuit according to claim 1, characterized in that The sampling circuit is used to transmit the feedback current to the output circuit when the first power tube is turned on and the second power tube is turned off; The compensation circuit is used to transmit the compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for the first leakage current when the second power tube is turned off; The sampling circuit is further used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured; wherein the second current includes the feedback current, the second leakage current when the first power tube is turned on, and the compensation current, the first current includes the first leakage current when the second power tube is turned off and the second leakage current when the second power tube is turned off, and the second leakage current when the first power tube is turned on is equal to the second leakage current when the second power tube is turned off; The operational amplifier is used to control the output circuit to be turned on according to the first current and the second current; The output circuit is used to output the sampled voltage according to the feedback current when it is turned on.
3. The circuit according to claim 1, characterized in that The sampling circuit is used to transmit the feedback current to the output circuit when the first power tube is turned off and the second power tube is turned on; The compensation circuit is used to transmit the compensation current to the sampling circuit when the control circuit controls the compensation circuit to be turned on, and the compensation current is used to compensate for the first leakage current when the first power tube is turned off; The sampling circuit is further used to transmit a first current and a second current to the operational amplifier according to the high-side current to be measured; wherein the first current includes a first leakage current when the first power tube is turned off and a second leakage current when the first power tube is turned off, and the second current includes the feedback current, the second leakage current when the second power tube is turned on, and the compensation current, and the second leakage current when the first power tube is turned off and the second leakage current when the second power tube is turned on are equal; The operational amplifier is used to control the output circuit to be turned on according to the first current and the second current; The output circuit is used to output the sampled voltage according to the feedback current when it is turned on.
4. The circuit according to any one of claims 1 to 3, characterized in that: The compensation circuit comprises: a first compensation current output circuit, a first transistor, a second compensation current output circuit and a second transistor; The second end of the second power tube is electrically connected to the first end of the first transistor, the second end of the first transistor is electrically connected to the second end of the second transistor, the first end of the second transistor is electrically connected to the second end of the first power tube, and the input end of the output circuit is electrically connected between the second end of the first transistor and the second end of the second transistor; The input end of the first compensation current output circuit and the output end of the second compensation current output circuit are both electrically connected between the first end of the first transistor and the second end of the second power tube, the output end of the first compensation current output circuit and the input end of the second compensation current output circuit are both electrically connected between the first end of the second transistor and the second end of the first power tube, the control end of the first compensation current output circuit, the control end of the second compensation current output circuit, the control end of the first transistor and the control end of the second transistor are all electrically connected to the control circuit, and the ground end of the first compensation current output circuit and the ground end of the second compensation current output circuit are both grounded; The first compensation current output circuit is used for obtaining the first leakage current when the second power tube is turned off, and mirroring the first leakage current when the second power tube is turned off to obtain the compensation current when the control circuit controls the first compensation current output circuit and the second transistor to be turned on and the second compensation current output circuit and the second transistor to be turned off; The second compensation current output circuit is used to obtain the first leakage current when the first power tube is turned off, and to mirror the first leakage current when the first power tube is turned off to obtain the compensation current when the control circuit controls the second compensation current output circuit and the first transistor to be turned on, and the first compensation current output circuit and the second transistor to be turned off.
5. The circuit according to claim 4, characterized in that The first compensation current output circuit or the second compensation current output circuit comprises: a third transistor and a first field effect transistor component; The control end of the third transistor is electrically connected to the control circuit, the first end of the third transistor is electrically connected between the first end of the first transistor and the second end of the second power tube, or between the first end of the second transistor and the second end of the first power tube, the second end of the third transistor is electrically connected to the first end of the first field effect tube component, the second end of the first field effect tube component is electrically connected between the second end of the third transistor and the first end of the first field effect tube component, the third end of the first field effect tube component is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube, and the fourth end of the first field effect tube component is grounded; The first field effect tube component is used to mirror the first leakage current when the second power tube is turned off or the first leakage current when the first power tube is turned off.
6. The circuit according to claim 5, characterized in that The first compensation current output circuit or the second compensation current output circuit further includes: a second field effect transistor component; The first end and the second end of the second field effect tube component are both electrically connected to the second end of the third transistor, the third end of the second field effect tube component is electrically connected to the first end of the first field effect tube component, the fourth end of the second field effect tube component is electrically connected to the third end of the first field effect tube component, and the fifth end of the second field effect tube component is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube; The second field effect transistor assembly is used to make the voltage of the first end of the first field effect transistor assembly equal to the voltage of the third end of the first field effect transistor assembly, so as to improve the mirror accuracy of the first field effect transistor assembly.
7. The circuit according to claim 6, characterized in that The second field effect transistor assembly includes: a fourth transistor and a fifth transistor; The first end of the fourth transistor is electrically connected to the second end of the third transistor, the second end of the fourth transistor is electrically connected to the first end of the first field effect tube component, the control end of the fourth transistor and the control end of the fifth transistor are both electrically connected between the first end of the fourth transistor and the second end of the third transistor, the second end of the fifth transistor is electrically connected to the third end of the first field effect tube component, and the first end of the fifth transistor is electrically connected between the first end of the second transistor and the second end of the first power tube, or between the first end of the first transistor and the second end of the second power tube.
8. The circuit according to any one of claims 1 to 3, characterized in that: The sampling circuit comprises: a detection resistor, a first resistor and a second resistor; the resistance value of the first resistor is equal to the resistance value of the second resistor; The detection resistor is used to connect the high-side current to be measured, the first end of the detection resistor is electrically connected to the first end of the first resistor, the second end of the first resistor is electrically connected to the first input end of the operational amplifier, the second end of the detection resistor is electrically connected to the first end of the second resistor, and the second end of the second resistor is electrically connected to the second input end of the operational amplifier.
9. The circuit according to any one of claims 1 to 3, characterized in that: The output circuit comprises: a third power tube and a third resistor; The first end of the third power tube is electrically connected to the third end of the compensation circuit, the control end of the third power tube is electrically connected to the output end of the operational amplifier, the second end of the third power tube is electrically connected to the first end of the third resistor, and the second end of the third resistor is grounded.
10. A switching power supply, characterized in that: include: A high-side power transistor, a low-side power transistor, a freewheeling inductor, a control circuit, and a high-side current sampling circuit as described in any one of claims 1 to 9; The control circuit is electrically connected to the gate of the high-side power transistor and the control end of the high-side circuit sampling circuit respectively, the drain of the high-side power transistor is used to access the power supply voltage, the source of the high-side power transistor is electrically connected to the drain of the low-side power transistor, the source of the low-side power transistor is grounded, the input end of the high-side current sampling circuit and the first end of the freewheeling inductor are both electrically connected between the source of the high-side power transistor and the drain of the low-side power transistor, and the second end of the freewheeling inductor is electrically connected to the load; The control circuit is used to control the high-side power transistor to be turned on; The high-side current sampling circuit is used to collect the high-side current to be measured when the high-side power transistor is turned on; The control circuit is also used to control the first power tube to be turned on and the second power tube to be turned off when the high-side current to be measured is a current in a first direction; or, when the high-side current to be measured is a current in a second direction, control the first power tube to be turned off and the second power tube to be turned on.
11. A chip, characterized in that: include: A high-side current sampling circuit as claimed in any one of claims 1 to 9, or a switching power supply as claimed in claim 10.
12. An electronic device, characterized in that: include: The chip as claimed in claim 11.
Citation Information
Cited By
Current-limiting detection circuit and switching power supply control chip
CN119070597A
Current sampling circuit for high-side switch driving circuit, chip and electronic equipment
CN119510855A
