Overcurrent protection circuit, chip and electronic equipment

By connecting the threshold auxiliary tube and the threshold auxiliary resistor in the overcurrent protection circuit, it ensures that it is the same as the sampling tube, solving the problem of overcurrent protection threshold fluctuation, improving chip safety, and reducing the risk of chip burning.

CN118889320APending Publication Date: 2024-11-01SHANGHAI AWINIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410997689.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Transistors and components in existing overcurrent protection circuits are susceptible to process angles, voltages and temperatures, which lead to numerical fluctuations in the overcurrent protection threshold, affecting effective protection of the chip and possibly causing the chip to burn.

Method used

An overcurrent protection circuit is designed to reduce the fluctuation of the overcurrent protection threshold value by connecting the threshold auxiliary tube and the threshold auxiliary resistor in the threshold unit, and ensure that the threshold auxiliary tube and the sampling tube are the same, and the threshold auxiliary resistor and the sampling resistor are the same.

Benefits of technology

It effectively improves the chip security of electronic devices such as Class D audio power amplifiers, reduces the impact of overcurrent protection threshold on PVT changes, and reduces the risk of chip burning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889320A_ABST
    Figure CN118889320A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of circuits, and discloses an overcurrent protection circuit, a chip and electronic equipment. The overcurrent protection circuit comprises a first power tube, a first sampling tube and a first sampling resistor; the first sampling tube and the first sampling resistor are connected in series to the first end of the first comparison unit; the first sampling tube is used for outputting sampling current to the first end of the first comparison unit; the first threshold value unit comprises a first threshold value auxiliary tube and a first threshold value auxiliary resistor; the first end of the first threshold auxiliary resistor is connected with the first end of the first threshold auxiliary tube and the grounding end. The second end of the first threshold auxiliary resistor is connected with the second end of the first comparison unit and the second end of the first threshold auxiliary tube. The first comparison unit is used for outputting an overcurrent protection signal when the voltage of the first end of the first comparison unit is greater than or equal to the voltage of the second end of the first comparison unit. Based on the scheme, the chip security can be effectively protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit technology, and in particular to an overcurrent protection circuit, chip and electronic device. Background Art

[0002] In order to ensure the safety of electronic devices such as Class D audio power amplifiers, general electronic devices are equipped with overcurrent protection circuits. The principles of some overcurrent protection schemes are as follows: the current flowing through the chip power tube is approximately considered to be the load current, and the current passing through the sampling tube is the sampling current. Through the current detection module in the OC module, the sampling current is converted into a sampling voltage in the form of a current mirror, etc., which can effectively characterize the current size on the output power tube. Therefore, if the sampling voltage is greater than or equal to the overcurrent protection threshold, it means that the current flowing through the power tube is too large, and there may be a chip short circuit, which will cause the chip to burn. In order to prevent the chip from burning due to overcurrent, the overcurrent protection circuit immediately turns off the chip output power tube when an overcurrent is detected, so that the current flowing through the chip is reduced, thereby achieving overcurrent protection for the chip.

[0003] However, in the above-mentioned overcurrent protection scheme, the transistors and components in the overcurrent protection circuit are susceptible to the influence of process corner, voltage and temperature, which are referred to as PVT in the following text. It should be noted that external factors such as PVT will cause changes in the structural parameters of components such as transistors set in the overcurrent protection circuit. For example, the on-resistance of the transistor and the resistance value of the resistor in the overcurrent protection circuit will all be affected by PVT and produce numerical fluctuations. In particular, the on-resistance of the transistor will produce a numerical fluctuation of more than 50% due to PVT.

[0004] Since the overcurrent protection threshold is determined based on the structural parameters of the transistors and components set in the overcurrent protection circuit, PVT will cause the overcurrent protection threshold to have large numerical fluctuations, affecting the effective overcurrent protection of the chip. For example, if the overcurrent protection threshold is too small, it will be difficult for the overcurrent protection circuit to protect the chip under the high-power working state of the power tube; if the overcurrent protection trigger threshold is too large, it is easy to miss the overcurrent of the power tube, resulting in failure of the overcurrent protection and easy burning of the chip. Summary of the invention

[0005] In order to solve the above problems, the present application provides an overcurrent protection circuit, a chip and an electronic device.

[0006] In a first aspect, the present application provides an overcurrent protection circuit, which is applied to electronic equipment. The overcurrent protection circuit includes a first power tube, a first sampling tube and a first overcurrent protection module. The first overcurrent protection module includes a first threshold unit, a first comparison unit and a first current detection unit. The first current detection unit includes a first sampling resistor; the first sampling tube is connected in series to the first end of the first comparison unit through the first sampling resistor, and the first sampling tube is used to output the sampling current to the first end of the first comparison unit; the threshold unit includes a first threshold auxiliary tube and a first threshold auxiliary resistor; the first end of the first threshold auxiliary resistor is respectively connected to the first end of the first threshold auxiliary tube and the ground end, and the second end of the first threshold auxiliary resistor is respectively connected to the second end of the first comparison unit and the second end of the first threshold auxiliary tube; the first comparison unit is used to output an overcurrent protection signal when the voltage at the first end of the first comparison unit is greater than or equal to the voltage at the second end of the first comparison unit.

[0007] The overcurrent protection circuit provided in the present application sets the threshold resistor that provides a reference level to a combination of a threshold auxiliary tube and a threshold auxiliary resistor in parallel, and ensures that the threshold auxiliary tube and the sampling tube are the same, and the threshold auxiliary resistor and the sampling resistor are the same, which can reduce the fluctuation of the overcurrent protection threshold with PVT changes and effectively improve the chip safety of electronic devices such as Class D audio power amplifiers.

[0008] In a possible implementation of the first aspect above, the overcurrent protection circuit also includes a second power tube, a second sampling tube and a second overcurrent protection module, the second overcurrent protection module includes a second threshold unit, a second comparison unit and a second current detection unit, the second current detection unit includes a second sampling resistor; the second sampling tube is connected in series to the first end of the second comparison unit through the second sampling resistor, and the second sampling tube is used to output the sampling current to the first end of the second comparison unit; the second threshold unit includes a second threshold auxiliary tube and a second threshold auxiliary resistor; the first end of the second threshold auxiliary resistor is respectively connected to the first end of the second threshold auxiliary tube and the ground end; the second end of the second threshold auxiliary resistor is respectively connected to the second end of the second comparison unit and the second end of the second threshold auxiliary tube; the second comparison unit is used to output an overcurrent protection signal when the voltage at the first end of the second comparison unit is greater than or equal to the voltage at the second end of the second comparison unit.

[0009] In a possible implementation of the first aspect above, the first overcurrent protection module includes a plurality of first threshold units, and the plurality of first threshold units are connected in series.

[0010] In a possible implementation of the first aspect above, the first comparison unit includes a first comparator, the first end of the first comparison unit is the positive electrode of the first comparator, and the second end of the first comparison unit is the negative electrode of the first comparator; the first current detection unit also includes a first MOS tube, a second MOS tube, a second resistor, a third resistor, a fourth resistor, a first current source, a second current source and a third current source; the first end of the first sampling resistor is connected to the power supply, and the second end of the first sampling resistor is connected to the first end of the second resistor; the second end of the second resistor is connected to the first end of the first MOS tube, the second end of the first MOS tube is connected to the first end of the first current source, the control end of the first MOS tube is connected to the control end of the second MOS tube, and the second end of the first current source is grounded; the first end of the second MOS tube is connected to the first end of the third resistor, the second end of the first MOS tube is connected to the first end of the second current source and the positive electrode of the first comparator, the second end of the third resistor is connected to the power supply, and the second end of the second current source is grounded; the first end of the fourth resistor is respectively connected to the positive electrode of the first comparator, the second end of the first MOS tube and the first end of the second current source, and the second end of the fourth resistor is grounded; the third current source is connected to the second end of the first threshold auxiliary resistor.

[0011] In a possible implementation of the first aspect above, the first end of the first sampling tube is connected to the output end of the overcurrent protection circuit, the second end of the first sampling tube is respectively connected to the first sampling resistor and the second resistor, and the control end of the first sampling tube is connected to the control end of the first power tube; the control end of the first power tube is used to receive a previous stage driving signal, the first end of the first power tube is connected to the output end of the overcurrent protection circuit, and the second end of the first power tube is connected to the power supply.

[0012] In a possible implementation of the first aspect above, the second overcurrent protection module includes a plurality of second threshold units, and the plurality of second threshold units are connected in series.

[0013] In a possible implementation of the first aspect above, the second comparing unit includes a second comparator, a first end of the second comparing unit is a positive electrode of the second comparator, and a second end of the second comparing unit is a negative electrode of the second comparator; the second current detecting unit also includes a third MOS tube, a fourth MOS tube, a fifth MOS tube, a sixth MOS tube, a fifth resistor, a sixth resistor, a seventh resistor and a fourth current source; the first end of the second sampling resistor is grounded, and the second end of the second sampling resistor is connected to the first end of the fifth resistor; the second end of the fifth resistor is connected to the first end of the third MOS tube, the second end of the third MOS tube is respectively connected to the fourth current source and the control end of the fourth MOS tube, and the control end of the fourth MOS tube is connected to the control end of the third MOS tube; the first end of the fourth MOS tube is connected to the first end of the sixth resistor, the second end of the sixth resistor is grounded, the second end of the fourth MOS tube is connected to the second end of the fifth MOS tube and the control end of the sixth MOS tube, the control end of the fifth MOS tube is connected to the control end of the sixth MOS tube, the second end of the sixth MOS tube is respectively connected to the first end of the seventh resistor and the positive electrode of the second comparator, and the second end of the seventh resistor is grounded.

[0014] In a possible implementation of the first aspect above, the first end of the second sampling tube is connected to the output end of the overcurrent protection circuit, the second end of the second sampling tube is respectively connected to the second sampling resistor and the fifth resistor, and the control end of the first sampling tube is connected to the control end of the second power tube; the control end of the second power tube is used to receive a previous stage driving signal, the first end of the second power tube is grounded, and the second end of the second power tube is connected to the output end of the overcurrent protection circuit.

[0015] In a second aspect, the present application provides a chip, comprising the overcurrent protection circuit mentioned in the first aspect.

[0016] In a third aspect, the present application provides an electronic device, comprising the chip mentioned in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1a According to some embodiments of the present application, a structural schematic diagram of an overcurrent protection circuit is shown;

[0018] Figure 1b According to some embodiments of the present application, a structural schematic diagram of an overcurrent protection circuit is shown;

[0019] Figure 2a According to some embodiments of the present application, a schematic diagram of the structure of an upper-end tube in an output stage of a class-D audio power amplifier is shown;

[0020] Figure 2b According to some embodiments of the present application, a schematic diagram of an overcurrent protection structure of an upper-end tube in an output stage of a class-D audio power amplifier is shown;

[0021] Figure 3 According to some embodiments of the present application, a schematic diagram of an overcurrent protection circuit in an upper tube of a class D audio power amplifier is shown;

[0022] Figure 4 According to some embodiments of the present application, a schematic diagram of an overcurrent protection circuit in a lower-end tube of a class-D audio power amplifier is shown;

[0023] Figure 5 According to some embodiments of the present application, a schematic diagram of an overcurrent protection circuit in a comparative embodiment of a class-D audio power amplifier is shown. DETAILED DESCRIPTION

[0024] The illustrative embodiments of the present application include but are not limited to an overcurrent protection circuit, a chip and an electronic device. The following first introduces the terms involved in the present application.

[0025] (1) Metal-oxide-semiconductor field-effect transistor (MOSFET)

[0026] Abbreviated as MOS tube. MOSFET is a four-terminal device with source, gate, drain and body terminals. Usually, the body of MOSFET is connected to the source terminal to form a three-terminal device such as field effect transistor. When MOS tube is used as a switch, the gate is the control terminal, which can control whether the source and drain can be turned on.

[0027] (2) Field effect transistor (FET)

[0028] Field effect transistor, also known as field effect transistor, is a semiconductor device that uses the electric field effect of the control input loop to control the output loop current. Since it conducts electricity only by the majority carriers in the semiconductor, it is also called a unipolar transistor. It is a voltage-controlled semiconductor device. It has the advantages of high input resistance, low noise, low power consumption, large dynamic range, easy integration, no secondary breakdown phenomenon, and a wide safe working area.

[0029] (3) Positive channel metal oxide semiconductor transistor (PMOS)

[0030] PMOS tube for short refers to a MOS tube with an N-type silicon substrate and a P-type conductive channel, which transports current by the flow of holes. Because PMOS is an N-type silicon substrate, its majority carriers are electrons, minority carriers are holes, and the doping type of the source and drain regions is P-type. Therefore, the working condition of PMOS is to apply a negative voltage to the gate relative to the source, and what is induced in the substrate are movable positive charge holes and a depletion layer with fixed positive charge. Without considering the influence of the charge in silicon dioxide, the number of positive charges induced in the substrate is equal to the number of negative charges on the PMOS gate.

[0031] (4) N-metal-oxide-semiconductor (NMOS)

[0032] NMOS tube, referred to as NMOS tube, refers to a MOS tube composed of a P-type silicon substrate and two high-concentration n diffusion regions. When the NMOS tube is turned on, an N-type conductive channel is formed between the two high-concentration n diffusion regions. It includes N-channel enhancement MOS tubes and N-channel depletion MOS tubes. Among them, the N-channel enhancement MOS tube must apply a forward bias to the gate, and the conductive channel is generated only when the gate-source voltage is greater than the threshold voltage. The N-channel depletion MOS tube refers to an N-channel MOS tube that has a conductive channel when the gate-source voltage is zero.

[0033] (5) Process corner

[0034] It can be understood as process deviation. The process angle is the performance limit standard of transistors. There are many reasons for process deviation, such as doping concentration, temperature control during manufacturing, etching degree, etc. Therefore, the process performance of different areas on the same wafer can be different, and the process performance of different wafers can be different. On the production line, the process angle can be used to determine the yield of transistors on the production line, and transistors that meet the process angle can be considered qualified.

[0035] (6) Power tube

[0036] Also known as a power amplifier tube, it is a MOS tube that serves as the final output in the amplifier circuit.

[0037] The electronic device in the embodiment of the present application includes a class D audio power amplifier, and may also include any other electronic device with overcurrent protection requirements, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality / virtual reality device, a laptop computer, a computer, a netbook, a personal digital assistant, and other electronic devices. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device. For ease of description, the technical solution of the present application is introduced below by taking the electronic device as a class D audio power amplifier as an example.

[0038] In order to solve the above problems, the present application embodiment proposes an overcurrent protection circuit, which is applied to electronic equipment, such as Figure 1a As shown, the overcurrent protection circuit includes a first power tube P1, a first sampling tube P2 and a first overcurrent protection module 100. The first overcurrent protection module 100 includes a first threshold unit 101, a first comparison unit 102 and a first current detection unit 103. The first current detection unit 103 includes a first sampling resistor R1; the first sampling tube P2 is connected in series to the first end of the first comparison unit 102 through the first sampling resistor R1, and the first sampling tube P2 is used to output the sampling current to the first end of the first comparison unit 102; the first threshold unit 101 includes a first threshold auxiliary tube P20 and a first threshold auxiliary resistor R5; the first end of the first threshold auxiliary resistor R5 is respectively connected to the first end of the first threshold auxiliary tube P20 and the ground end, and the second end of the first threshold auxiliary resistor R5 is respectively connected to the second end of the first comparison unit 102 and the second end of the first threshold auxiliary tube P20; the first comparison unit 102 is used to output an overcurrent protection signal when the voltage at the first end of the first comparison unit 102 is greater than or equal to the voltage at the second end of the first comparison unit 102.

[0039] The overcurrent protection circuit provided in the present application sets the threshold resistor that provides a reference level to a combination of a threshold auxiliary tube and a threshold auxiliary resistor in parallel, and ensures that the threshold auxiliary tube and the sampling tube are the same, and the threshold auxiliary resistor and the sampling resistor are the same, which can reduce the fluctuation of the overcurrent protection threshold with PVT changes and effectively improve the chip safety of electronic devices such as Class D audio power amplifiers.

[0040] Understandably, Figure 1a The circuit shown can be used for the overcurrent protection circuit corresponding to the upper tube of the class D audio power amplifier. The structure of the overcurrent protection circuit of the lower tube of the class D audio power amplifier is similar to that of the overcurrent protection circuit corresponding to the upper tube.

[0041] like Figure 1b As shown, the overcurrent protection circuit corresponding to the lower tube of the class D audio power amplifier includes a second power tube P11, a second sampling tube P21 and a second overcurrent protection module 200. The second overcurrent protection module 200 includes a second threshold unit 201, a second comparison unit 202, and a second current detection unit 203. The second current detection unit 203 includes a second sampling resistor Ra.

[0042] The second sampling tube P21 is connected in series to the first end of the second comparing unit through the second sampling resistor Ra, and the second sampling tube P21 is used to output the sampling current to the first end of the second comparing unit 202; the second threshold unit 201 includes a second threshold auxiliary tube P201 and a second threshold auxiliary resistor R51; the first end of the second threshold auxiliary resistor R51 is respectively connected to the first end of the second threshold auxiliary tube P201 and the ground end; the second end of the second threshold auxiliary resistor R51 is respectively connected to the second end of the second comparing unit 202 and the second end of the second threshold auxiliary tube P201; the second comparing unit 202 is used to output an overcurrent protection signal when the voltage at the first end of the second comparing unit 202 is greater than or equal to the voltage at the second end of the second comparing unit 202.

[0043] First combine Figure 2a , briefly introduces the structure of the output stage circuit in the Class D audio power amplifier. Figure 2a The structure of the top tube in the output stage of a Class D audio power amplifier is shown. Figure 2a As shown, in the structure of the upper tube of the output stage of the class D audio power amplifier, a circuit related to the upper tube and a first power tube P1 are included. The circuit related to the upper tube can be a pre-stage control circuit for controlling the state of the power tube, and the type of the first power tube P1 can be an N-channel MOS tube or a P-channel MOS tube. The specific type of the first power tube P1 can be set as needed and is not limited here. Figure 2a The first power tube P1 is a PMOS tube as an example for introduction. Figure 2a As shown, the gate of the first power tube P1 is connected to the circuit related to the upper tube, the drain is connected to the power supply (Power VDD, PVDD), and the source is connected to the output end OUT of the overcurrent protection circuit. The lower tube in the output stage of the Class D audio power amplifier has the same principle, which will not be repeated here.

[0044] It can be understood that in a Class D audio power amplifier, considering the efficiency and load capacity of the chip, the size of the first power tube P1 of the output stage is generally very large, so overcurrent protection needs to be considered to prevent the output short circuit from generating a large current and burning the chip.

[0045] Combine the following Figure 2b This article introduces the overcurrent protection structure (or overcurrent protection circuit) of the upper tube in the output stage of a Class D audio power amplifier. Figure 2b As shown, the overcurrent protection structure of the upper tube includes a first power tube P1, a first sampling tube P2 and a first overcurrent protection module 100. The first power tube P1 and the first sampling tube P2 are of the same type, and the specific type can be set according to the needs, and is not limited here. For example, Figure 2bTake the first power tube P1 and the first sampling tube P2 as PMOS tubes for example, wherein the first power tube P1 is of large size and the first sampling tube P2 is of small size.

[0046] like Figure 2b As shown, the gate of the first power tube P1 is connected to the circuit related to the upper tube, such as the front-stage control circuit, the drain is connected to PVDD, and the source is connected to the output end OUT of the overcurrent protection circuit. The gate of the first sampling tube P2 is connected to the gate of the first power tube P1, the drain of the first sampling tube P2 is connected to the first overcurrent protection module 100, and the source of the first sampling tube P2 is connected to the output end OUT of the output overcurrent protection circuit.

[0047] In the overcurrent protection structure of the upper tube in the output stage of the Class D audio power amplifier, a small-sized first sampling tube P2 is mirrored on the gate of the first power tube P1, so that when working, the sampling current of the first sampling tube P2 can represent the output current. Then, through the overcurrent protection module, the current of the first sampling tube P2 is converted into a voltage and compared with the bandgap reference voltage to determine whether the chip is short-circuited.

[0048] Combine the following Figure 3 , the overcurrent (OC) protection circuit in the upper tube of the Class D audio power amplifier proposed in the embodiment of the present application is described in detail. Figure 3 As shown, the overcurrent protection circuit of the embodiment of the present application includes: a first power tube P1, a first sampling tube P2 and a first overcurrent protection module 100.

[0049] The first sampling tube P2 is used to generate a sampling current, the source of the first sampling tube P2 is connected to the output end of the overcurrent protection circuit, the drain of the first sampling tube P2 is respectively connected to the first sampling resistor R1 and the second resistor R2, and the gate of the first sampling tube P2 is connected to the gate of the first power tube P1; the gate of the first power tube P1 is used to receive a previous stage driving signal, the source of the first power tube P1 is connected to the output end of the overcurrent protection circuit, and the drain of the first power tube P1 is connected to a power supply.

[0050] It can be understood that the number of the first sampling tube P2 and the first power tube P1 can be set to one or more according to actual needs, and this application does not limit this.

[0051] The first overcurrent protection module 100 is used to detect the sampling current, generate a first voltage related to the sampling current (positive voltage of the comparator), and compare the first voltage with the threshold voltage (negative voltage of the comparator). When the first voltage is greater than or equal to the threshold voltage, an overcurrent protection trigger signal is output, the class D audio power amplifier stops working and enters the overcurrent protection state; when the first voltage is less than the threshold voltage, the class D audio power amplifier works normally. The threshold voltage generally comes from the bandgap reference voltage.

[0052] The first overcurrent protection module 100 includes a first current detection unit 103, a first threshold unit 101 and a first comparison unit 102. The first current detection unit 103 includes a first MOS tube P3, a second MOS tube P4, a first sampling resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first current source A1 and a second current source A2. The first threshold unit 101 includes a first threshold auxiliary tube P20, a first threshold auxiliary resistor R5 and a third current source A3. The first comparison unit 102 includes a first comparator C1, and may also include other circuit structures with the same function as the first comparator C1.

[0053] Among them, the first end of the first sampling resistor R1 is connected to PVDD, and the second end of the first sampling resistor R1 is connected to the first end of the second resistor R2. The second end of the second resistor R2 is connected to the source of the first MOS tube P3, the drain of the first MOS tube P3 is connected to the first end of the first current source A1, and the gate of the first MOS tube P3 is connected to the gate of the second MOS tube P4. The source of the second MOS tube P4 is connected to the first end of the third resistor R3, and the drain of the second MOS tube P4 is connected to the first end of the second current source A2 and the positive electrode of the first comparator C1. The second end of the third resistor R3 is connected to PVDD, the second end of the first current source A1 is grounded, and the second end of the second current source A2 is grounded. The first end of the fourth resistor R4 is respectively connected to the positive electrode of the first comparator C1, the drain of the second MOS tube P4, and the second end of the fourth resistor R4 is grounded.

[0054] The first end of the first threshold auxiliary resistor R5 is respectively connected to the source of the first threshold auxiliary tube P20 and the ground terminal, the second end of the first threshold auxiliary resistor R5 is respectively connected to the negative electrode of the first comparator C1, the drain of the first threshold auxiliary tube P20 and the third current source A3, the first end of the first threshold auxiliary resistor R5 and the source of the first threshold auxiliary tube P20 are also respectively connected to the second end of the fourth resistor R4, the second end of the second current source A2, and the second end of the first current source A1.

[0055] The first comparator C1 is used for outputting an overcurrent protection signal when the voltage at the first end (ie, the positive electrode) is greater than or equal to the voltage at the second end (ie, the negative electrode).

[0056] In some embodiments, a first threshold auxiliary resistor R5 having the same resistance value as the first sampling resistor R1 may be used. In some embodiments, a first threshold auxiliary transistor P20 having the same type as the first sampling transistor P2 may be used. For example, the first sampling transistor P2 and the first threshold auxiliary transistor P20 are both N-type MOS transistors or both are P-type MOS transistors, so that the gate voltage of the first sampling transistor P2 is the same as the gate voltage of the first threshold auxiliary transistor P20, and the on-resistance of the first threshold auxiliary transistor P20 may be equal to the on-resistance R of the first sampling transistor P2. dson2 At the same time, since the gate voltages of the first sampling tube P2 and the first power tube P1 are equal, the gate voltages of the first threshold auxiliary tube P20 and the first power tube P1 are also equal.

[0057] In some embodiments, according to the requirements of the circuit structure, the overcurrent protection module may include one or more first threshold units 101 , and the multiple first threshold units 101 are connected in series.

[0058] In the embodiment of the present application, the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 are all P-type MOS tubes for explanation. When the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 are all N-type MOS tubes, the source of the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 is replaced by the drain of the first threshold auxiliary tube P20 and the first sampling tube P2, and the drain of the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 is replaced by the source of the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4.

[0059] It can be understood that in the embodiment of the present application, when the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 are P-type MOS tubes, the source can be called the first end, and the drain can be called the second end. Similarly, when the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 are replaced with N-type MOS tubes, the source can be called the second end, the drain can be called the first end, and the gate of the first sampling tube P2, the first power tube P1, the first threshold auxiliary tube P20, the first MOS tube P3, and the second MOS tube P4 can be called the control end. It can also be called other names, which are not limited in the present application.

[0060] The following takes the lower tube of a Class D audio power amplifier as an example to further introduce the overcurrent protection circuit proposed in the embodiment of the present application. Figure 4 As shown, the overcurrent protection circuit corresponding to the lower tube includes: a second power tube P11, a second sampling tube P21 and a second overcurrent protection module 200.

[0061] The source of the second sampling tube P21 is connected to the output end of the overcurrent protection circuit, the drain of the second sampling tube P21 is respectively connected to the second sampling resistor Ra and the fifth resistor Rb1, and the gate of the second sampling tube P21 is connected to the gate of the second power tube P11; the gate of the second power tube P11 is used to receive the previous stage driving signal, the source of the second power tube P11 is grounded, and the drain of the second power tube P11 is connected to the output end of the overcurrent protection circuit.

[0062] The second overcurrent protection module 200 includes a second current detection unit 203, a second threshold unit 201 and a second comparison unit 202. The second comparison unit 202 includes a second comparator C2. The first end of the second comparison unit 202 is the positive electrode of the second comparator C2, and the second end of the second comparison unit 202 is the negative electrode of the second comparator C2.

[0063] The second current detection unit 203 includes a third MOS transistor P5, a fourth MOS transistor P6, a fifth MOS transistor P7, a sixth MOS transistor P8, a fifth resistor Rb1, a sixth resistor Rb2, a seventh resistor Rc, and a fourth current source A4 and a fifth current source A5;

[0064] A first end of the second sampling resistor Ra is grounded, and a second end of the second sampling resistor Ra is connected to a first end of a fifth resistor Rb1; a second end of the fifth resistor Rb1 is connected to a first end of a third MOS transistor P5, a second end of the third MOS transistor P5 is connected to a fourth current source A4, and a gate of the fourth MOS transistor P6 is connected to a gate of the third MOS transistor P5;

[0065] The source of the fourth MOS tube P6 is connected to the first end of the sixth resistor Rb2, the second end of the sixth resistor Rb2 is grounded, the drain of the fourth MOS tube P6 is connected to the drain and the gate of the fifth MOS tube P7, the gate of the fifth MOS tube P7 is connected to the gate of the sixth MOS tube P8, the drain of the sixth MOS tube P8 is respectively connected to the first end of the seventh resistor Rc and the positive electrode of the second comparator C2, and the second end of the seventh resistor Rc is grounded.

[0066] The second threshold unit 201 includes a second threshold auxiliary tube P201, a second threshold auxiliary resistor P51 and a fifth current source A5; the first end of the second threshold auxiliary resistor P51 is respectively connected to the source of the second threshold auxiliary tube P201 and the ground terminal; the second end of the second threshold auxiliary resistor P51 is respectively connected to the negative electrode of the second comparator C2, the drain of the second threshold auxiliary tube P20 and the fifth current source A5. The first end of the second threshold auxiliary resistor P51 and the source of the second threshold auxiliary tube P201 are also respectively connected to the first end of the second sampling resistor Ra, the second end of the sixth resistor Rb2, and the second end of the seventh resistor Rc.

[0067] In some embodiments, a second threshold auxiliary resistor R51 having the same resistance value as the second sampling resistor Ra may be used. In some embodiments, a second threshold auxiliary transistor P201 having the same type as the second sampling transistor P21 may be used. For example, the second sampling transistor P21 and the second threshold auxiliary transistor P201 are both N-type MOS transistors or both are P-type MOS transistors, so that the gate voltage of the second sampling transistor P21 is the same as the gate voltage of the second threshold auxiliary transistor P201, and the on-resistance of the second threshold auxiliary transistor P201 may be equal to the on-resistance R of the second sampling transistor P21. dson2 At the same time, since the gate voltages of the second sampling tube P21 and the second power tube P11 are equal, the gate voltages of the second threshold auxiliary tube P201 and the second power tube P11 are also equal.

[0068] In some embodiments, according to the requirements of the circuit structure, the overcurrent protection module includes a plurality of second threshold units, and the plurality of second threshold units are connected in series.

[0069] In the embodiment of the present application, the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are all P-type MOS tubes for illustration. When the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are all N-type MOS tubes, the source electrodes of the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are replaced by the drain electrodes of the second threshold auxiliary tube P201 and the second sampling tube P21, and the drain electrodes of the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are replaced by the source electrodes of the second threshold auxiliary tube P201 and the second sampling tube P21.

[0070] It can be understood that in the embodiment of the present application, when the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are P-type MOS tubes, the source can be called the first end, and the drain can be called the second end. Similarly, when the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 are replaced with N-type MOS tubes, the source can be called the second end, the drain can be called the first end, and the gate of the second sampling tube P21, the second power tube P11, the second threshold auxiliary tube P201, the third MOS tube P5, the fourth MOS tube P6, the fifth MOS tube P7, and the sixth MOS tube P8 can be called the control end. It can also be called other names, which are not limited in the present application.

[0071] The following introduces the principle that the overcurrent protection circuit provided in the embodiment of the present application can effectively improve the safety of the chip.

[0072] Combine the following Figure 5 First, an overcurrent protection circuit corresponding to the upper tube in a comparative embodiment of a class D audio power amplifier is introduced. The overcurrent protection circuit includes: a first power tube P1, a first sampling tube P2 and a first overcurrent protection module 100.

[0073] The first sampling tube P2 is used to generate a sampling current, the source of the first sampling tube P2 is connected to the output end of the overcurrent protection circuit, the drain of the first sampling tube P2 is respectively connected to the first sampling resistor R1 and the second resistor R2, and the gate of the first sampling tube P2 is connected to the gate of the first power tube P1; the gate of the first power tube P1 is used to receive a previous stage driving signal, the source of the first power tube P1 is connected to the output end of the overcurrent protection circuit, and the drain of the first power tube P1 is connected to a power supply.

[0074] The first overcurrent protection module 100 is used to detect the sampling current, generate a first voltage related to the sampling current (positive voltage of the comparator), and compare the first voltage with the threshold voltage (negative voltage of the comparator). When the first voltage is greater than or equal to the threshold voltage, an overcurrent protection trigger signal is output, the class D audio power amplifier stops working and enters the overcurrent protection state; when the first voltage is less than the threshold voltage, the class D audio power amplifier works normally. The threshold voltage generally comes from the bandgap reference voltage.

[0075] The first overcurrent protection module 100 includes a first current detection unit 103, a first threshold unit 101 and a first comparison unit 102. The first current detection unit 103 includes a first MOS tube P3, a second MOS tube P4, a first sampling resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first current source A1 and a second current source A2. The first threshold unit 101 includes a threshold resistor R50 and a third current source A3. The first comparison unit 102 includes a first comparator C1, and may also include other circuit structures having the same function as the first comparator C1.

[0076] Among them, the first end of the first sampling resistor R1 is connected to PVDD, and the second end of the first sampling resistor R1 is connected to the first end of the second resistor R2. The second end of the second resistor R2 is connected to the source of the first MOS tube P3, the drain of the first MOS tube P3 is connected to the first end of the first current source A1, and the gate of the first MOS tube P3 is connected to the gate of the second MOS tube P4. The source of the second MOS tube P4 is connected to the first end of the third resistor R3, and the drain of the second MOS tube P4 is connected to the first end of the second current source A2 and the positive electrode of the first comparator C1. The second end of the third resistor R3 is connected to PVDD, the second end of the first current source A1 is grounded, and the second end of the second current source A2 is grounded. The first end of the fourth resistor R4 is respectively connected to the positive electrode of the comparator, the drain of the second MOS tube P4 and the first end of the second current source A2, and the second end of the fourth resistor R4 is grounded. The first end of the threshold resistor R50 is respectively connected to the negative electrode of the first comparator C1 and the third current source A3, and the second end of the threshold resistor R50 is grounded.

[0077] refer to Figure 5 , when the class D audio power amplifier is in overcurrent, the source voltage of the first MOS tube P3 (i.e., the voltage at point V1) is equal to the source voltage of the second MOS tube P4 (i.e., the voltage at point V2). According to Ohm's law, the following expression (1) can be obtained:

[0078] (I S +K1I b ) *R1+R2*K1I b =R3(I4+K2I b ) (1)

[0079] Among them, I s is the sampling current, K1I b is the current of the first current source A1 (it can also be the current flowing through the second resistor R2), (I S +K1I b ) is the current flowing through the first sampling resistor R1, I4 is the current flowing through the fourth resistor R4, K2I b is the current of the second current source A2, (I4+K2I b) is the current flowing through the third resistor R3. R1 is the resistance of the first sampling resistor R1, R2 is the resistance of the second resistor R2, and R3 is the resistance of the third resistor R3.

[0080] According to expression (1), expression (2) of the current I4 flowing through the fourth resistor R4 can be obtained by rearranging:

[0081]

[0082] Among them, (I S +K1I b ) is the current flowing through the first sampling resistor R1, I4 is the current flowing through the fourth resistor R4, K1I b is the current of the first current source A1, K2I b is the current of the second current source A2.

[0083] When the Class D audio power amplifier is overcurrent, the negative voltage of the first comparator C1 (V X point voltage) and positive voltage (V y The voltage at the point is equal. According to Ohm's law, the following expression (3) can be obtained:

[0084] I4R4==k3I b R5 (3)

[0085] Wherein, I4 is the current flowing through the fourth resistor R4, I4R4 is the voltage across the fourth resistor R4, and may also be the positive electrode voltage of the first comparator C1, k3I b R5 is the cathode voltage of the first comparator C1 , and R4 is the resistance value of the fourth resistor R4 .

[0086] Since the size of the first sampling tube P2 is much smaller than the first power tube P1 in the sampling module, the sampling current I flowing through the first sampling tube P2 is S Much smaller than the load current I OUT Therefore, when an overcurrent occurs, the current I P1 It can be approximated as the load current I during overcurrent OC , and according to Ohm's law, we can get the following expression (4):

[0087] R dson1 I OC =R dson2 *I S +(I S +K1I b )*R1 (4)

[0088] Among them, R dson1 is the on-resistance of the first power tube P1, I OCis the load current of the class D audio power amplifier when it is overcurrent, R dson2 is the on-resistance of the first sampling tube P2, I s is the sampling current flowing through the first sampling tube P2, K1I b is the current of the first current source A1, (I S +K1I b ) is the current value flowing through the first sampling resistor R1.

[0089] According to expression (4), the sampling current I can be obtained by rearranging S The expression (5) is:

[0090]

[0091] Among them, I s is the sampling current flowing through the first sampling tube P2, R dson1 is the on-resistance of the first power tube P1, I OC is the load current of the class D audio power amplifier when it is overcurrent, R dson2 is the conduction impedance of the first sampling tube P2, K1I b is the current of the first current source A1, and R1 is the resistance of the first sampling resistor R1.

[0092] when Then: Substitute equation (5) into equation (2), and we get

[0093]

[0094] After sorting, we can get the current protection threshold I oc The expression (7) is:

[0095]

[0096] Among them, I OC is the protection threshold of the current in the class D audio power amplifier, R dson1 is the on-resistance of the first power tube P1, R dson2 is the conduction impedance of the first sampling tube P2, K1I b is the current of the first current source A1, K3I b is the current of the third current source A3, R1, R3, R4, R 50 are the resistance values ​​corresponding to the first sampling resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, and the threshold resistor R50, respectively. b is the reference current.

[0097] The reference current is generally generated by the reference module of the chip in the Class D audio power amplifier, which is generated by the bandgap reference voltage V BG Through the reference resistor Rref The conversion produces, according to Ohm's law, the reference current I b The expression of can be (8):

[0098]

[0099] Among them, I b is the reference current, V BG is the bandgap reference voltage, R ref is the reference resistance.

[0100] It can be understood that according to expression (7), the protection threshold I of the current in the class D audio power amplifier is OC Affected by various variables (such as the on-resistance R dson1 and the first threshold auxiliary resistor R50). When PVT changes, multiple variables will change with the change of PVT. The protection threshold of the current I OC In some embodiments, the protection threshold of the current may fluctuate by up to ±50%, which may affect the normal operation of the class D audio power amplifier or cause the chip in the class D audio power amplifier to burn out.

[0101] In the embodiment of this application Figure 3 In the overcurrent protection circuit shown in FIG. 1 , the first threshold auxiliary tube P20 and the first threshold auxiliary resistor R5 are connected in parallel, and the first threshold auxiliary tube P20 is the same as the first sampling tube P2, and the first threshold auxiliary resistor R5 is the same as the first sampling resistor R1. Then, the resistance value of the equivalent resistor R50 formed by the parallel connection of the first threshold auxiliary tube P20 and the first threshold auxiliary resistor R5 is R 50 for:

[0102]

[0103] Wherein, k5 is the number of first threshold auxiliary tubes P20 and first threshold auxiliary resistors R5 connected in series, R1 is the resistance value R of R5 dson2 is the on-resistance of the first threshold auxiliary tube P20.

[0104] Substituting formula (9) into formula (7), we get Figure 3 The load current I of the Class D audio power amplifier corresponding to the overcurrent protection circuit in the overcurrent OC The expression (10) can also be understood as the load current I OC The protection threshold of the current is:

[0105]

[0106] Among them, I OCis the protection threshold of the current in the class D audio power amplifier, K1 is the coefficient of the first current source A1, K3 is the coefficient of the third current source A3, K5 is the number of first threshold auxiliary tubes P20 and first threshold auxiliary resistors R5 connected in series, V BG is the bandgap reference voltage, R ref is the reference resistance, R dson2 is the conduction impedance of the first threshold auxiliary tube P20, R dson1 is the on-resistance of the first power tube P1.

[0107] Since the first power tube P1, the first sampling tube P2, and the first threshold auxiliary tube P20 are of the same type and have the same gate voltage, when the class D audio power amplifier is working normally and detecting overcurrent, the potential of the source end is at 0V, that is, the gate-source voltage VGS of the first power tube P1, the first sampling tube P2, and the first threshold auxiliary tube P20 is consistent, it can be considered that the first power tube P1, the first sampling tube P2, and the first threshold auxiliary tube P20 are affected by PVT and change in the same way. The protection threshold I of the current OC In expression (10), items, will not be affected by PVT changes. By matching, it can be considered Therefore, the only factor in formula (10) that is affected by PVT is R, which generates the reference current in the reference module. ref Because R ref The influence of PVT is about ±20%. The final OC threshold is also affected by PVT from the original ±50% to ±20%, effectively improving the chip safety in Class D audio power amplifiers.

[0108] In some embodiments, if If the parameters are designed to be unaffected by PVT changes, the final overcurrent protection threshold will not be affected by PVT.

[0109] for Figure 4 In the overcurrent protection circuit corresponding to the lower tube shown in the figure, when the class D audio power amplifier is overcurrent, the source voltage of the second MOS tube P3 (i.e., the voltage at point V1) is equal to the source voltage of the first MOS tube P4 (i.e., the voltage at point V2). According to Ohm's law, the following expression (11) can be obtained:

[0110] V1=(I s +I1)R a =V2=I2R b (11)

[0111] Wherein, Is is the sampling current flowing through the second sampling tube P21, I1 is the current of the fourth current source A4, and I2 is the current flowing through the resistor R b2 The current, R a , Rb2 is the resistance value of the second sampling resistor Ra and the resistance value of the sixth resistor Rb2.

[0112] According to the mirror relationship in the overcurrent protection module, current I3 is the mirror current of current I2, and the following expression (12) can be obtained:

[0113] I3=k m I2 (12)

[0114] Wherein, I3 is the current flowing through the fourth MOS transistor P6, I2 is the current flowing through the third MOS transistor P5, and k m is the proportionality coefficient of the mirror current.

[0115] When the class D audio power amplifier is in overcurrent, the voltages at the positive and negative ends of the second comparator C2 are equal. According to Ohm's law, the following expression (13) can be obtained:

[0116] I3R c =k3I b R d (13)

[0117] Among them, I3 is the current flowing through the fourth MOS tube P6, I3R c is the positive voltage of the second comparator C2, K3 is the coefficient of the fifth current source A5, R c is the resistance of the third sampling resistor Rc, R d is the equivalent resistance formed by the second threshold auxiliary resistor R51 and the second threshold auxiliary tube P201 connected in parallel.

[0118] Since the size of the second sampling tube P21 is much smaller than the second power tube P11 in the sampling module, the sampling current Is flowing through the second sampling tube P21 is much smaller than the load current IOUT. Therefore, when an overcurrent occurs, the current I P1 It can be approximated as the load current I during overcurrent OC , and according to Ohm's law, the following expression (14) can be obtained:

[0119] R dson1 I OC =R dson2 *I s +(I s +I1)*R a (14)

[0120] Among them, R dson1 is the on-resistance of the second power tube P11, I OC is the load current of the class D audio power amplifier when it is overcurrent, R dson2 is the conduction impedance of the second sampling tube P21, I sis the sampling current flowing through the second sampling tube P21, I1 is the current of the fourth current source A4, (I S +I1) is the current value flowing through the second sampling resistor Ra.

[0121] According to expression (14), the sampling current I can be obtained by rearranging S The expression (15) is:

[0122]

[0123] Among them, I s is the sampling current flowing through the second sampling tube P21, R dson1 is the on-resistance of the second power tube P11, I OC is the load current of the class D audio power amplifier when it is overcurrent, R dson2 is the on-resistance of the second sampling tube P21, I1 is the current of the fourth current source A4, R a is the resistance value of the second sampling resistor Ra.

[0124] Substituting expressions (11), (12), and (15) into expression (13), we can obtain the load current I of the class D audio power amplifier when it is overcurrent: OC The expression (16) is:

[0125]

[0126] Assume R b1 =0 due to:

[0127]

[0128] Then the load current I can be obtained OC The expression (18) is:

[0129]

[0130] Among them, V BG is the bandgap reference voltage, R ref is the reference resistance.

[0131] Referring to the analysis of the upper tube of the Class D audio power amplifier, in the lower tube of the Class D audio power amplifier, the degree of change of the overcurrent threshold of the lower tube with PVT will also be only affected by the reference resistor R that generates the reference current in the reference module. ref The final over-current protection threshold is also affected by PVT and is reduced from the original ±50% change to ±20%, effectively improving the chip safety in the Class D audio power amplifier.

[0132] In summary, the overcurrent protection circuit provided in the present application sets the threshold resistor that provides the reference level to a combination of a threshold auxiliary tube and a threshold auxiliary resistor in parallel, and ensures that the threshold auxiliary tube and the sampling tube are the same, and the threshold auxiliary resistor and the sampling resistor are the same, so that the influence of PVT changes on the on-impedance of the threshold auxiliary tube can be utilized to offset the influence of PVT changes on the on-impedance in the power tube, thereby effectively improving the chip safety of electronic devices such as Class D audio power amplifiers.

[0133] The present application provides a chip, including the embodiment of the present application Figure 1a-Figure 4 The overcurrent protection circuit mentioned in.

[0134] An embodiment of the present application provides an electronic device, including the chip mentioned in the embodiment of the present application.

[0135] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0136] It should be noted that the units / modules mentioned in the various device embodiments of the present invention are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present invention. In addition, in order to highlight the innovative part of the present invention, the above-mentioned device embodiments of the present invention do not introduce units / modules that are not closely related to solving the technical problems proposed by the present invention, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0137] It should be noted that in the examples and description of this patent, 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 sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0138] While the present invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention.

Claims

1. An overcurrent protection circuit, applied to electronic equipment, characterized in that: It includes a first power tube, a first sampling tube and a first overcurrent protection module, wherein the first overcurrent protection module includes a first threshold unit, a first comparison unit and a first current detection unit, and the first current detection unit includes a first sampling resistor; The first sampling tube is connected in series to the first end of the first comparing unit through the first sampling resistor, and the first sampling tube is used to output a sampling current to the first end of the first comparing unit; The first threshold unit includes a first threshold auxiliary tube and a first threshold auxiliary resistor; The first end of the first threshold auxiliary resistor is respectively connected to the first end of the first threshold auxiliary tube and the ground end, and the second end of the first threshold auxiliary resistor is respectively connected to the second end of the first comparison unit and the second end of the first threshold auxiliary tube.

2. The overcurrent protection circuit according to claim 1, characterized in that: The overcurrent protection circuit further includes a second power tube, a second sampling tube and a second overcurrent protection module, the second overcurrent protection module includes a second threshold unit, a second comparison unit and a second current detection unit, and the second current detection unit includes a second sampling resistor; The second sampling tube is connected in series to the first end of the second comparing unit through the second sampling resistor, and the second sampling tube is used to output a sampling current to the first end of the second comparing unit; The second threshold unit includes a second threshold auxiliary tube and a second threshold auxiliary resistor; The first end of the second threshold auxiliary resistor is respectively connected to the first end of the second threshold auxiliary tube and the ground end; the second end of the second threshold auxiliary resistor is respectively connected to the second end of the second comparison unit and the second end of the second threshold auxiliary tube.

3. The overcurrent protection circuit according to claim 1, characterized in that: The first overcurrent protection module includes a plurality of first threshold units, and the plurality of first threshold units are connected in series.

4. The overcurrent protection circuit according to any one of claims 1 to 3, characterized in that: The first comparison unit includes a first comparator, the first end of the first comparison unit is the positive electrode of the first comparator, and the second end of the first comparison unit is the negative electrode of the first comparator; The first current detection unit also includes a first MOS tube, a second MOS tube, a second resistor, a third resistor, a fourth resistor, a first current source, a second current source and a third current source; A first end of the first sampling resistor is connected to a power source, and a second end of the first sampling resistor is connected to a first end of the second resistor; The second end of the second resistor is connected to the first end of the first MOS transistor, the second end of the first MOS transistor is connected to the first end of the first current source, the control end of the first MOS transistor is connected to the control end of the second MOS transistor, and the second end of the first current source is grounded; The first end of the second MOS transistor is connected to the first end of the third resistor, the second end of the first MOS transistor is connected to the first end of the second current source and the positive electrode of the first comparator, the second end of the third resistor is connected to the power supply, and the second end of the second current source is grounded; The first end of the fourth resistor is respectively connected to the positive electrode of the first comparator, the second end of the first MOS transistor and the first end of the second current source, and the second end of the fourth resistor is grounded; The third current source is connected to the second end of the first threshold auxiliary resistor.

5. The overcurrent protection circuit according to claim 4, characterized in that: The first end of the first sampling tube is connected to the output end of the overcurrent protection circuit, the second end of the first sampling tube is connected to the first sampling resistor and the second resistor respectively, and the control end of the first sampling tube is connected to the control end of the first power tube; The control end of the first power tube is used to receive a previous stage driving signal, the first end of the first power tube is connected to the output end of the overcurrent protection circuit, and the second end of the first power tube is connected to a power source.

6. The overcurrent protection circuit according to claim 2, characterized in that: The second overcurrent protection module includes a plurality of second threshold units, and the plurality of second threshold units are connected in series.

7. The overcurrent protection circuit according to claim 6, characterized in that: The second comparison unit includes a second comparator, the first end of the second comparison unit is the positive electrode of the second comparator, and the second end of the second comparison unit is the negative electrode of the second comparator; The second current detection unit further includes a third MOS tube, a fourth MOS tube, a fifth MOS tube, a sixth MOS tube, a fifth resistor, a sixth resistor, a seventh resistor and a fourth current source; A first end of the second sampling resistor is grounded, and a second end of the second sampling resistor is connected to a first end of the fifth resistor; The second end of the fifth resistor is connected to the first end of the third MOS tube. The second end of the third MOS tube is respectively connected to the fourth current source and the control end of the fourth MOS tube, and the control end of the fourth MOS tube is connected to the control end of the third MOS tube; The first end of the fourth MOS tube is connected to the first end of the sixth resistor, the second end of the sixth resistor is grounded, the second end of the fourth MOS tube is connected to the second end of the fifth MOS tube and the control end of the sixth MOS tube, the control end of the fifth MOS tube is connected to the control end of the sixth MOS tube, the second end of the sixth MOS tube is respectively connected to the first end of the seventh resistor and the positive electrode of the second comparator, and the second end of the seventh resistor is grounded.

8. The overcurrent protection circuit according to claim 7, characterized in that: The first end of the second sampling tube is connected to the output end of the overcurrent protection circuit, the second end of the second sampling tube is connected to the second sampling resistor and the fifth resistor respectively, and the control end of the first sampling tube is connected to the control end of the second power tube; The control end of the second power tube is used to receive a previous stage driving signal, the first end of the second power tube is grounded, and the second end of the second power tube is connected to the output end of the overcurrent protection circuit.

9. A chip, characterized in that: The invention comprises the overcurrent protection circuit as described in any one of claims 1 to 8.

10. An electronic device, characterized in that: Comprising the chip as claimed in claim 9.