A drain-source voltage detection circuit and a switch circuit for a power tube

By introducing a compensation circuit into the power tube drain-source voltage detection circuit, the problem of reduced detection accuracy in the existing technology is solved, high-precision detection within the full voltage range is achieved, and system performance is improved.

CN114460428BActive Publication Date: 2024-10-15SG MICRO CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011247177.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-10
Publication Date
2024-10-15
Estimated Expiration
2040-11-10

AI Technical Summary

Technical Problem

The existing power tube drain-source voltage detection circuit cannot work properly when the output voltage is lower than a certain value, resulting in reduced detection accuracy and affecting system performance.

Method used

A drain-source voltage detection circuit including a detection circuit and a compensation circuit is designed. The detection circuit collects the drain and source voltages and converts them into detection currents. The compensation circuit generates a compensation current when the source voltage is lower than the preset voltage. The detection current is compensated to ensure high-precision detection within the full voltage range.

Benefits of technology

It achieves high-precision detection of the power tube within the full voltage range, improves the overall performance index of the system, and does not affect the detection results when the source voltage is higher than the preset voltage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114460428B_ABST
    Figure CN114460428B_ABST
Patent Text Reader

Abstract

The present application discloses a drain-source voltage detection circuit and a switch circuit for a power tube. The drain-source voltage detection circuit includes a detection circuit and a compensation circuit. The detection circuit collects the drain-end voltage and source-end voltage of the power tube and converts the voltage difference between the two into a detection current. The compensation circuit is used to work when the source-end voltage of the power tube is less than / equal to a preset voltage. By obtaining a compensation current related to the source-end voltage of the power tube and compensating the detection current with the compensation current, the compensated detection current can accurately characterize the drain-source voltage of the power tube, and can achieve high-precision detection of the power tube in the full voltage range, which is conducive to improving the overall performance index of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and more specifically, to a drain-source voltage detection circuit and a switch circuit of a power tube. Background Art

[0002] In the power supply system, the conversion of electric energy and the stabilization of the output voltage are achieved by controlling the on and off of switching power tubes, such as IGBT (Insulated Gate Bipolar Transistor) or MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor).

[0003] In many applications, it is usually necessary to detect the drain-source voltage of a power tube and convert it into a current that is linearly related to the drain-source voltage difference, so that the power tube can operate safely and / or be used for other functions.

[0004] Figure 1 FIG. 1 shows a schematic circuit diagram of a drain-source voltage detection circuit of a power tube according to the prior art. Figure 1 As shown, the drain and source of the power tube P1 to be tested are connected to the input voltage Vin and the output voltage Vout respectively, and the drain-source voltage detection circuit 100 includes resistors R1 and R2, transistors MP1 to MP3, and transistors MN1 and MN2. The resistor R1, the transistor MP1, and the transistor MN1 are connected between the drain and the ground of the power tube P1 to be tested in sequence, and the resistor R2, the transistor MP2, and the transistor MN2 are connected between the source and the ground of the power tube P1 to be tested in sequence. Among them, the size ratio of the transistor MP1 and the transistor MP2 is 1:1, the transistor MP1 and the transistor MP2 are connected in common gate, the transistor MN1 and the transistor MN2 are connected in common gate-common source, and the gate terminals of both are connected to the bias voltage Vbias. The gate terminal of the transistor MP3 is connected to the node B between the transistor MP2 and the transistor MN2, and the source terminal is connected to the node A between the resistor R1 and the transistor MP1.

[0005] When the drain-source voltage detection circuit 100 works normally, the transistor MP1 and the transistor MP2 are used to detect the input voltage Vin and the output voltage Vout respectively, and convert the voltage difference between the two into a current, thereby obtaining the detection current Isen. Among them, the current flowing through the transistor MP1 and the transistor MP2 is equal, and the current flowing through the transistor MP1 and the transistor MP2 is equal to the mirror current Ia provided by the transistor MN1 and the transistor MN2, that is:

[0006] I MP1 =I MP2=Ia Formula 1

[0007] Through the negative feedback connection of transistor MP3, the source voltages of transistor MP1 and transistor MP2 are equal, that is, the source voltage of transistor MP2 is equal to:

[0008] V1=Vout-Ia×R2=VA Formula 2

[0009] Wherein, V1 represents the source voltage of the transistor MP2, Ia represents the mirror current provided by the transistors MN1 and MN2, and VA represents the voltage of the node A.

[0010] And because the current flowing through resistor R1 is:

[0011] I R1 =(Vin-VA) / R1 Formula 3

[0012] Assuming that the resistance values ​​of resistors R1 and R2 are equal (i.e., R1 = R2 = R), the current flowing through R1 can be obtained by combining formula 2 and formula 3 as follows:

[0013] I R1 =(Vin-Vout+Ia×R2) / R1=(Vin-Vout) / R+Ia Formula 4

[0014] And because the current flowing through transistor MP3 is equal to:

[0015] I MP3 =I R1 -I MP1 Formula 5

[0016] Combining Formula 1 and Formula 4, it can be obtained that the current flowing through the transistor MP3, that is, the detection current Isen, is:

[0017] Isen=(Vin-Vout) / R Formula 6

[0018] However, in order for the drain-source power supply detection circuit 100 to work properly, all transistors in the circuit need to work in the saturation region. When the output voltage Vout is lower than the sum of the drain-source saturation voltages of the transistor MP2 and the transistor MN1, the transistor MN2 will work in the linear region. As the output voltage Vout continues to decrease, the drain voltage of the transistor MN2 decreases to 0, and the transistor MP2 is turned off. At this time, the detection current Isen is equal to:

[0019] Isen=(Vin-VGS) / R Formula 7

[0020] Wherein, VGS represents the gate-source voltage of transistor MP3. As can be seen from the above, the drain-source voltage detection circuit 100 in the prior art is limited by the common mode operating range. When the output voltage Vout is low, the circuit may not work properly, reducing the accuracy of drain-source voltage detection, thereby affecting the overall performance index of the system. Summary of the invention

[0021] In view of the above problems, the purpose of the present invention is to provide a drain-source voltage detection circuit and a switch circuit for a power tube, which can achieve high-precision detection of the power tube within the full voltage range and improve the overall performance indicators of the system.

[0022] According to one aspect of the present invention, a drain-source voltage detection circuit of a power tube is provided, comprising: a detection circuit, which respectively collects the drain voltage and the source voltage of the power tube, and converts the voltage difference between the drain voltage and the source voltage into a detection current; and a compensation circuit, which is used to collect the source voltage of the power tube when the source voltage of the power tube is less than / equal to a preset voltage, convert it into a sampling current, and obtain a compensation current related to the source voltage according to the sampling current and a reference current to compensate the detection current.

[0023] Optionally, the detection circuit includes: a first resistor, a first transistor, and a second transistor connected in sequence between the drain end of the power tube and ground; a second resistor, a third transistor, and a fourth transistor connected in sequence between the source end of the power tube and ground, the second transistor and the fourth transistor forming a current mirror, the first transistor and the third transistor being connected in common gate, the fourth transistor and the gate end of the second transistor receiving a first bias voltage; and a fifth transistor, the source end of which is connected to a first node between the first resistor and the first transistor, the gate end is connected to a second node between the third transistor and the fourth transistor, and the drain end outputs the detection current.

[0024] Optionally, the compensation circuit is used to generate the compensation current when the source terminal voltage of the power tube is less than / equal to the gate-source voltage of the fifth transistor.

[0025] Optionally, the compensation circuit includes: a third resistor, a sixth transistor, a seventh transistor and a fourth resistor connected in sequence between a power supply voltage and ground; an eighth transistor, whose source terminal is connected to the power supply voltage, whose gate terminal is connected to the common terminal of the third resistor and the sixth transistor, and whose drain terminal is connected to the gate terminal of the sixth transistor; an operational amplifier, whose non-phase input terminal is connected to the source terminal of the power tube, whose inverting input terminal is connected to the common terminal of the seventh transistor and the fourth resistor, and whose output terminal is connected to the gate terminal of the seventh transistor; and a ninth transistor, whose source terminal is connected to a third node between the sixth transistor and the seventh transistor, whose gate terminal receives a second bias voltage, and whose drain terminal is used to output the compensation current, wherein the sixth transistor is used to provide the reference current to the third node, the seventh transistor is used to provide the sampling current to the third node, and the ninth transistor is turned on when the reference current is greater than the sampling current, and obtains the compensation current according to the current difference between the reference current and the sampling current.

[0026] Optionally, the gate-source voltage of the fifth transistor is equal to the gate-source voltage of the eighth transistor, and the reference current is equal to the ratio of the gate-source voltage of the eighth transistor to the third resistor.

[0027] Optionally, the sampling current is equal to the ratio of the source voltage of the power tube to the fourth resistor, and the resistance values ​​of the first resistor, the second resistor, the third resistor and the fourth resistor are equal.

[0028] Optionally, the compensation circuit further includes: a bias module, configured to provide a bias current to the sixth transistor and the eighth transistor.

[0029] Optionally, the bias module includes: a tenth transistor and an eleventh transistor connected between the first node and ground, the tenth transistor and the fifth transistor forming a current mirror to obtain the detection current in a mirroring manner; and a twelfth transistor, which forms a current mirror with the eleventh transistor to provide a bias current to the sixth transistor and the eighth transistor according to the detection current.

[0030] Optionally, the first transistor, the third transistor, the fifth transistor, the sixth transistor, the eighth transistor and the ninth transistor are respectively selected from P-type metal oxide semiconductor field effect transistors, and the second transistor, the fourth transistor and the seventh transistor are respectively selected from N-type metal oxide semiconductor field effect transistors.

[0031] Optionally, the tenth transistor is selected from a P-type metal oxide semiconductor field effect transistor, and the eleventh transistor and the twelfth transistor are respectively selected from an N-type metal oxide semiconductor field effect transistor.

[0032] According to another aspect of the present invention, a switch circuit is provided, comprising the above-mentioned drain-source voltage detection circuit of the power tube.

[0033] The drain-source voltage detection circuit and the switch circuit of the power tube according to the embodiment of the present invention have the following beneficial effects.

[0034] The drain-source voltage detection circuit includes a detection circuit and a compensation circuit. The detection circuit collects the drain-end voltage and source-end voltage of the power tube and converts the voltage difference between the two into a detection current. The compensation circuit is used to work when the source-end voltage of the power tube is less than / equal to a preset voltage. By obtaining a compensation current related to the source-end voltage of the power tube and compensating the detection current with the compensation current, the compensated detection current can accurately characterize the drain-source voltage of the power tube, and can achieve high-precision detection of the power tube in the full voltage range, which is conducive to improving the overall performance index of the system. Furthermore, when the source-end voltage of the power tube is greater than the preset voltage, the compensation circuit does not work, so as not to affect the output result of the detection circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0036] Figure 1 A schematic circuit diagram of a drain-source voltage detection circuit of a power tube according to the prior art is shown;

[0037] Figure 2 A schematic circuit diagram of a drain-source voltage detection circuit of a power tube according to an embodiment of the present invention is shown;

[0038] Figure 3 A schematic circuit diagram of a bias module in a drain-source voltage detection circuit of a power tube according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0039] Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In each of the accompanying drawings, the same elements are represented by the same or similar reference numerals. For the sake of clarity, the various parts in the accompanying drawings are not drawn to scale.

[0040] It should be understood that in the following description, a "circuit" may include a single or multiple combined hardware circuit, a programmable circuit, a state machine circuit and / or an element that can store instructions executed by a programmable circuit. When an element or circuit is said to be "connected to" another element or an element / circuit is said to be "connected between" two nodes, it can be directly coupled or connected to another element or there can be an intermediate element, and the connection between the elements can be physical, logical, or a combination thereof. On the contrary, when an element is said to be "directly coupled to" or "directly connected to" another element, it means that there is no intermediate element between the two.

[0041] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0042] Figure 2 FIG. 1 is a schematic circuit diagram of a drain-source voltage detection circuit of a power tube according to an embodiment of the present invention. Figure 2 In the embodiment, the power tube P1 is the main output tube of the chip, connected between the input terminal and the output terminal. The power tube P1 is selected from, for example, an N-type MOSFET, whose drain terminal is connected to the input terminal of the chip to receive the input voltage Vin, and whose source terminal is connected to the output terminal of the chip to provide the output voltage Vout to the subsequent circuit. The gate drive signal Vgate is used to control the conduction and shutdown of the power tube P1 to control the power transmission between the chip input terminal and the chip output terminal.

[0043] The drain-source voltage detection circuit 200 includes a detection circuit 210 and a compensation circuit 220. The detection circuit 210 is connected to the drain terminal and the source terminal of the power tube P1, and is used to respectively collect the drain terminal voltage and the source terminal voltage of the power tube, and convert the voltage difference between the drain terminal voltage and the source terminal voltage into a detection current Isen. The compensation circuit 220 is used to collect the source terminal voltage of the power tube when the source terminal voltage of the power tube P1 is less than / equal to a preset voltage, convert it into a sampling current, and obtain a compensation current related to the source terminal voltage according to the sampling current and a reference current to compensate for the detection current Isen.

[0044] Further, the detection circuit 210 includes resistors R1 and R2, transistors MP1 to MP3, and transistors MN1 and MN2. The resistor R1, transistor MP1, and transistor MN1 are connected between the drain terminal of the power tube P1 to be tested and the ground in sequence, and the resistor R2, transistor MP2, and transistor MN2 are connected between the source terminal of the power tube P1 to be tested and the ground in sequence. Among them, the size ratio of transistor MP1 and transistor MP2 is 1:1, transistor MP1 and transistor MP2 are connected in common gate, transistor MN1 and transistor MN2 are connected in common gate-common source, and the gate terminals of both are connected to the first bias voltage Vbias1. The gate terminal of transistor MP3 is connected to node B between transistor MP2 and transistor MN2, the source terminal is connected to node A between resistor R1 and transistor MP1, and the drain terminal is used to output the detection current Isen.

[0045] Assuming that the resistance values ​​of resistors R1 and R2 are equal (ie, R1 = R2 = R), it can be obtained that when the source voltage of the power tube P1 (ie, the output voltage Vout) is greater than the gate-source voltage VGS of the transistor MP3, the detection current Isen is equal to:

[0046] Isen=(Vin-Vout) / R Formula 8

[0047] However, when the source voltage of the power tube P1 (i.e., the output voltage Vout) is less than / equal to the gate-source voltage of the transistor MP3, the output voltage Vout is lower than the sum of the drain-source saturation voltages of the transistors MP2 and MN1, and the transistor MN2 will work in the linear region. As the output voltage Vout continues to decrease, the drain voltage of the transistor MN2 decreases to 0, and the transistor MP2 is cut off. At this time, the detection current Isen is equal to:

[0048] Isen=(Vin-VGS) / R Formula 9

[0049] Wherein, VGS represents the gate-source voltage of the transistor MP3.

[0050] It can be seen from Formula 9 that when the source voltage of the power tube P1 is less than / equal to the gate-source voltage of the transistor MP3, the detection circuit 210 cannot work normally. At this time, the detection current Isen cannot normally represent the voltage difference between the drain voltage and the source voltage of the power tube. At this time, the compensation circuit 220 takes effect, and obtains a compensation current related to the source voltage of the power tube P1, and compensates the detection current with the compensation current, so that the compensated detection current can accurately represent the voltage difference between the drain voltage and the source voltage of the power tube P1.

[0051] Further, the compensation circuit 220 includes an operational amplifier 201, a bias module 202, transistors MP4 to MP6, a transistor MN3, and resistors R3 and R4. Among them, the resistor R3, the transistor MP5, the transistor MN3, and the resistor R4 are sequentially connected between the power supply voltage VCC and the ground, the source end of the transistor MP4 is connected to the power supply voltage VCC, the gate end is connected to the common end of the resistor R3 and the transistor MP5, and the drain end is connected to the gate end of the transistor MP5. One end of the bias module 202 is connected to the drain end of the transistor MP4 and the gate end of the transistor MP5, and the other end is grounded, and is used to provide a bias current Ib to the transistor MP4 and the transistor MP5. The non-inverting input end of the operational amplifier 201 is connected to the source end of the power tube P1, the inverting input end is connected to the common end of the transistor MN3 and the resistor R4, and the output end is connected to the gate end of the transistor MN3. The source end of the transistor MP6 is connected to the node C between the transistors MP5 and MN3, the gate end receives the second bias voltage Vbias2, and the drain end is used to output the compensation current Icom.

[0052] Among them, the drain end of transistor MP5 is used to provide the reference current Ir to node C, the drain end of structure MN3 is used to provide the sampling current Ie to node C, and transistor MP6 is turned on when the reference current Ir is greater than the sampling current Ie, and the compensation current Icom is obtained according to the current difference between the reference current Ir and the sampling current Ie.

[0053] Assuming that the gate-source voltage of transistor MP4 is equal to the gate-source voltage of transistor MP3, through the clamping effect of transistor MP4, the reference current Ir can be obtained to be equal to:

[0054] Ir=VGS / R3 Formula 10

[0055] Here, VGS represents the gate-source voltage of the transistor MP3 and the transistor MP4.

[0056] The operational amplifier 201 adjusts the on-resistance of the transistor MN3 according to the source voltage feedback of the power tube P1, so that the sampling current Ie is:

[0057] Ie=Vout / R4 Formula 11

[0058] When the source voltage of the power tube P1 is greater than the gate-source voltage of the transistor MP3 (ie, the output voltage Vout is greater than the gate-source voltage VGS of the transistor MP3), the sampling current Ie is greater than the reference current Ir, the potential of the node C is pulled down, and the transistor MP6 is turned off, and the compensation current Icom=0.

[0059] When the source voltage of the power tube P1 is less than / equal to the gate-source voltage of the transistor MP3 (i.e., the output voltage Vout is less than / equal to the gate-source voltage VGS of the transistor MP3), the sampling current Ie is greater than the reference current Ir, and the potential of the node C is pulled high. At this time, the transistor MP6 is turned on, and the compensation current Icom is equal to the difference between the reference current Ir and the sampling current Ie, that is:

[0060] Icom=Ir-Ie=VGS / R3-Vout / R4 Formula 12

[0061] The resistance values ​​of resistors R1 to R4 are set to be equal, that is, R1 = R2 = R3 = R4 = R, then formula 12 can be expressed as:

[0062] Icom=(VGS-Vout) / R Formula 13

[0063] Combining Formula 9 and Formula 13, the compensated detection current can be obtained as:

[0064] Isen'=Isen+Icom=(Vin-Vout) / R Formula 14

[0065] It can be seen from Formula 14 that the compensation circuit 220 of this embodiment can provide an accurate compensation current when the source voltage of the power tube P1 is less than / equal to the gate-source voltage of the transistor MP3, so that the compensated detection current accurately represents the voltage difference between the drain voltage and the source voltage of the power tube P1, thereby improving the accuracy of the drain-source voltage detection circuit.

[0066] Figure 3 FIG. 2 shows a schematic circuit diagram of a bias module in a drain-source voltage detection circuit of a power tube according to an embodiment of the present invention. Figure 3 As shown, the bias module 202 includes a transistor MP7 and transistors MN4 and MN5. The transistor MP7 and the transistor MN4 are connected between the node A and the ground in sequence. The transistor MP7 and the transistor MP3 in the detection circuit 210 form a current mirror to obtain the detection current Isen in a mirroring manner. The transistor MN5 and the transistor MN4 form a current mirror to provide a bias current Ib to the transistors MP4 and MP5 according to the detection current Isen.

[0067] In the above embodiment, the transistors MP1 to MP7 are, for example, P-type MOSFETs (P-Metal-Oxide-Semiconductor Field-Effect Transistors), and the transistors MN1 to MN5 are, for example, N-Metal-Oxide-Semiconductor Field-Effect Transistors (N-Metal-Oxide-Semiconductor Field-Effect Transistors).

[0068] In summary, in the drain-source voltage detection circuit and the switch circuit of the power tube in the embodiment of the present invention, the drain-source voltage detection circuit includes a detection circuit and a compensation circuit. The detection circuit collects the drain-end voltage and the source-end voltage of the power tube, and converts the voltage difference between the two into a detection current. The compensation circuit is used to work when the source-end voltage of the power tube is less than / equal to a preset voltage. By obtaining a compensation current related to the source-end voltage of the power tube and compensating the detection current with the compensation current, the compensated detection current can accurately characterize the drain-source voltage of the power tube, and can achieve high-precision detection of the power tube in the full voltage range, which is conducive to improving the overall performance index of the system. Further, when the source-end voltage of the power tube is greater than the preset voltage, the compensation circuit does not work, so as not to affect the output result of the detection circuit.

[0069] It should be noted that although in this article, the device is described as a certain N-channel or P-channel device, or a certain N-type or P-type doped region, it can be understood by those skilled in the art that complementary devices can also be realized according to the present invention. It can be understood by those skilled in the art that the conductivity type refers to the mechanism by which the conduction occurs, such as conduction by holes or electrons, so the conductivity type does not involve the doping concentration but the doping type, such as P-type or N-type. It can be understood by those skilled in the art that the words "during", "when" and "when..." used in this article in connection with the operation of the circuit are not strict terms indicating the action that occurs immediately when the start-up action begins, but there may be some small but reasonable one or more delays between it and the reaction action initiated by the start-up action, such as various transmission delays, etc. The words "approximately" or "substantially" used in this article mean that the element value has a parameter that is expected to be close to the declared value or position. However, as is well known in the art, there are always slight deviations that make it difficult for the value or position to be strictly the declared value. It has been well established in the art that a deviation of at least ten percent (10%) (or at least twenty percent (20%) for semiconductor doping concentrations) is a reasonable deviation from the exact ideal goal described. When used in conjunction with a signal state, the actual voltage value or logic state of the signal (e.g., "0" or "1") depends on whether positive logic or negative logic is used.

[0070] In addition, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0071] According to the embodiments of the present invention, as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to specific embodiments. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. The scope of protection of the present invention shall be based on the scope defined by the claims of the present invention.

Claims

1. A drain-source voltage detection circuit for a power tube, comprising: A detection circuit, which collects the drain voltage and the source voltage of the power tube respectively, and converts the voltage difference between the drain voltage and the source voltage into a detection current; as well as a compensation circuit, for collecting the source terminal voltage of the power tube when the source terminal voltage of the power tube is less than / equal to a preset voltage, converting the voltage into a sampling current, and obtaining a compensation current related to the source terminal voltage according to the sampling current and a reference current, so as to compensate the detection current; Wherein, the detection circuit comprises: A first resistor, a first transistor and a second transistor connected in sequence between the drain terminal of the power tube and the ground; a second resistor, a third transistor and a fourth transistor connected in sequence between the source terminal of the power tube and the ground, the second transistor and the fourth transistor forming a current mirror, the first transistor and the third transistor being connected in common gate, and the gate terminals of the fourth transistor and the second transistor receiving a first bias voltage; and A fifth transistor has a source terminal connected to a first node between the first resistor and the first transistor, a gate terminal connected to a second node between the third transistor and the fourth transistor, and a drain terminal outputting the detection current.

2. The drain-source voltage detection circuit according to claim 1, wherein: The compensation circuit is used to generate the compensation current when the source terminal voltage of the power tube is less than / equal to the gate-source voltage of the fifth transistor.

3. The drain-source voltage detection circuit according to claim 2, wherein: The compensation circuit comprises: A third resistor, a sixth transistor, a seventh transistor and a fourth resistor connected in sequence between a power supply voltage and ground; an eighth transistor, having a source terminal connected to the power supply voltage, a gate terminal connected to a common terminal of the third resistor and the sixth transistor, and a drain terminal connected to the gate terminal of the sixth transistor; an operational amplifier, wherein a non-inverting input terminal is connected to the source terminal of the power tube, an inverting input terminal is connected to the common terminal of the seventh transistor and the fourth resistor, and an output terminal is connected to the gate terminal of the seventh transistor; and a ninth transistor, having a source terminal connected to a third node between the sixth transistor and the seventh transistor, a gate terminal receiving a second bias voltage, and a drain terminal for outputting the compensation current, Among them, the sixth transistor is used to provide the reference current to the third node, the seventh transistor is used to provide the sampling current to the third node, and the ninth transistor is turned on when the reference current is greater than the sampling current, and the compensation current is obtained according to the current difference between the reference current and the sampling current.

4. The drain-source voltage detection circuit according to claim 3, wherein: The gate-source voltage of the fifth transistor is equal to the gate-source voltage of the eighth transistor, and the reference current is equal to the ratio of the gate-source voltage of the eighth transistor to the third resistor.

5. The drain-source voltage detection circuit according to claim 3, wherein: The sampling current is equal to the ratio of the source voltage of the power tube to the fourth resistor, and the resistance values ​​of the first resistor, the second resistor, the third resistor and the fourth resistor are equal.

6. The drain-source voltage detection circuit according to claim 3, wherein: The compensation circuit further includes: A bias module is used to provide a bias current to the sixth transistor and the eighth transistor.

7. The drain-source voltage detection circuit according to claim 6, wherein: The bias module comprises: a tenth transistor and an eleventh transistor connected between the first node and the ground, wherein the tenth transistor and the fifth transistor form a current mirror to obtain the detection current in a mirroring manner; and The twelfth transistor forms a current mirror with the eleventh transistor to provide a bias current to the sixth transistor and the eighth transistor according to the detection current.

8. The drain-source voltage detection circuit according to claim 3, wherein: The first transistor, the third transistor, the fifth transistor, the sixth transistor, the eighth transistor and the ninth transistor are respectively selected from P-type metal oxide semiconductor field effect transistors, The second transistor, the fourth transistor and the seventh transistor are respectively selected from N-type metal oxide semiconductor field effect transistors.

9. The drain-source voltage detection circuit according to claim 7, wherein: The tenth transistor is selected from a P-type metal oxide semiconductor field effect transistor, The eleventh transistor and the twelfth transistor are respectively selected from N-type metal oxide semiconductor field effect transistors.

10. A switching circuit, wherein: A drain-source voltage detection circuit for a power tube comprising the circuit described in any one of claims 1 to 9.