A multifunctional detection circuit

By designing a multi-functional detection circuit, using the sampling and control modules to make the voltage terminals the same, and combining the voltage difference between the control terminal and the current output terminal of the switch tube, accurate detection of current or voltage is achieved, which solves the problem of single function and accuracy of existing detection circuits. reduces problems and improves detection flexibility and safety.

CN118501532BActive Publication Date: 2024-10-25BATELAB CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970681.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-25
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The existing detection circuit has a single function and cannot accurately detect current or voltage values ​​with extremely small current or voltage values.

Method used

A multifunctional detection circuit is designed, including a sampling module, a control module and an output module. The circuit is controlled through the voltage difference between the control end of the switch tube and the current output end to achieve current detection or power tracking voltage detection, and a special structure is adopted. The isolation module ensures the normal operation of the switching tube.

Benefits of technology

It achieves accurate detection of extremely small currents or voltages, improves the flexibility and application scope of the detection circuit, and enhances safety and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118501532B_ABST
    Figure CN118501532B_ABST
Patent Text Reader

Abstract

The present application includes a multifunctional detection circuit, which specifically relates to the field of circuit detection technology. The multifunctional detection circuit includes a sampling module, a control module and an output module; the first voltage terminal and the second voltage terminal of the multifunctional detection circuit are respectively connected to the two control terminals of the sampling module, so that the sampling module samples the first voltage terminal and the second voltage terminal; the first voltage terminal is also connected to the voltage output terminal through the output module; the control module is used to control the current flowing through the output module through the voltage sampled by the sampling module so that the voltage of the first voltage terminal and the second voltage terminal are the same. The multifunctional detection circuit can realize current detection or power tracking voltage detection, thereby greatly improving the flexibility of the detection circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit detection, and in particular to a multifunctional detection circuit. Background Art

[0002] During actual operation, the circuit structure composed of various components may be affected by various uncontrollable factors, causing the electrical variables (such as current and voltage) in the circuit structure to exceed the normal range. Therefore, a detection circuit can be set in the circuit structure to detect the current or voltage to determine whether the circuit structure is in a normal working state.

[0003] In the prior art, a detection circuit composed of a grounding resistor and the like is usually used for current detection or voltage detection. However, the detection circuit has a single function and can only realize the current detection function or the voltage detection function. At the same time, when the value of the current or voltage to be detected is extremely small, the detection circuit in the prior art cannot detect the accurate current value or voltage value. Summary of the invention

[0004] The embodiments of the present application provide a multifunctional detection circuit that can implement current detection or power tracking voltage detection.

[0005] On the one hand, a multifunctional detection circuit is provided, wherein the multifunctional detection circuit includes a sampling module, a control module and an output module;

[0006] The first voltage terminal and the second voltage terminal of the multifunctional detection circuit are respectively connected to the two control terminals of the sampling module, so that the sampling module samples the first voltage terminal and the second voltage terminal; the first voltage terminal is also connected to the voltage output terminal through the output module; the control module is used to control the current flowing through the output module according to the voltage sampled by the sampling module so that the voltage of the first voltage terminal and the second voltage terminal are the same;

[0007] When the multifunctional detection circuit is used for current detection, the first voltage terminal is connected to a first node in the current circuit to be measured through an eleventh resistor, the second voltage terminal is connected to a second node in the current circuit to be measured, and the second node is connected to the first node through a tenth resistor;

[0008] When the multifunctional detection circuit is used for voltage detection, the power supply voltage terminal is connected to the voltage to be measured; the first voltage terminal is connected to the voltage division value of the voltage to be measured; and the second voltage terminal is connected to the specified voltage.

[0009] In a possible implementation, when the multifunctional detection circuit is used for voltage detection, the power supply voltage terminal is further connected to the first voltage terminal through a thirteenth resistor; and the first voltage terminal is grounded through a twelfth resistor.

[0010] In a possible implementation, the multifunctional detection circuit further includes a startup module and an isolation module;

[0011] The power supply voltage end in the multifunctional detection circuit is connected to the isolation module through the sampling module and the control module respectively, so as to be connected to the starting module through the isolation module; the starting module flows through a current value of a specified size in a working state; the isolation module is used to control the connectivity between the starting module and the control module and the sampling module respectively.

[0012] In a possible implementation, the first voltage terminal in the multifunctional detection circuit is also connected to the voltage output terminal through the output module and the isolation module in sequence.

[0013] In a possible implementation, the output module includes a nineteenth switch tube and a ninth resistor;

[0014] The first voltage terminal in the multifunctional detection circuit is connected to the isolation module through the nineteenth switch tube, and is connected to the voltage output terminal through the isolation module; the voltage output terminal is also grounded through the ninth resistor.

[0015] In a possible implementation, the isolation module includes a twelfth switch tube; the control end of the twelfth switch tube is connected to the target voltage end;

[0016] The first voltage terminal in the multifunctional detection circuit is connected to the voltage output terminal through the nineteenth switch tube and the twelfth switch tube in sequence.

[0017] In a possible implementation, the sampling module includes a first resistor, a second resistor, a first switch tube, and a second switch tube;

[0018] The power supply voltage terminal is connected to the isolation module through the first switch tube, so as to be connected to the start-up module through the isolation module;

[0019] The power supply voltage terminal is connected to the isolation module through the second switch tube, so as to be connected to the start-up module through the isolation module;

[0020] The first voltage end of the multifunctional detection circuit is connected to the control end of the second switch tube through the second resistor; the second voltage end of the multifunctional detection circuit is connected to the control end of the first switch tube through the first resistor.

[0021] In a possible implementation, the isolation module includes a fifth switch tube and a seventh switch tube; the startup module includes a first controllable current source and a third controllable current source;

[0022] The power supply voltage terminal is grounded through the first switch tube, the fifth switch tube and the first controllable current source in sequence;

[0023] The power supply voltage terminal is grounded via the second switch tube, the seventh switch tube and the third controllable current source in sequence;

[0024] The control end of the first controllable current source and the control end of the third controllable current source are connected to the start voltage end; the control end of the fifth switch tube and the control end of the seventh switch tube are connected to the target voltage end.

[0025] In a possible implementation, the power supply voltage terminal is connected to the control module through the first switch tube; the power supply voltage terminal is also connected to the control module through the second switch tube.

[0026] In a possible implementation manner, the first resistor and the second resistor have the same resistance value.

[0027] In a possible implementation, the control module includes a third resistor, a fourth resistor, a third switch tube, a fourth switch tube, a thirteenth switch tube, a fourteenth switch tube, a fifteenth switch tube, a sixteenth switch tube, a seventeenth switch tube, a sixth resistor, a seventh resistor, a seventh controllable current source, an eighth controllable current source, and a ninth controllable current source;

[0028] The power supply voltage terminal is connected to a third node through the third resistor and the third switch tube in sequence; the power supply voltage terminal is connected to the third node through the fourth switch tube in sequence; the third node is connected to the isolation module to be connected to the startup module through the isolation module;

[0029] The power supply voltage terminal is also connected to the isolation module through the thirteenth switch tube, so as to be connected to the startup module through the isolation module; the power supply voltage terminal is also connected to the isolation module through the sixth resistor, so as to be connected to the startup module through the isolation module;

[0030] The power supply voltage terminal is also connected to the fourth node through the eighth controllable current source and the sixteenth switch tube in sequence; the power supply voltage terminal is also connected to the fourth node through the ninth controllable current source and the seventeenth switch tube in sequence; the fourth node is connected to the isolation module; the control ends of the eighth controllable current source and the ninth controllable current source are connected to the voltage on the sixth resistor;

[0031] The power supply voltage end is also connected to the isolation module through the eighth controllable current source and the fifteenth switch tube in sequence, so as to be grounded through the isolation module and the seventh controllable current source in sequence; the power supply voltage end is also connected to the isolation module through the ninth controllable current source and the fourteenth switch tube in sequence, so as to be grounded through the isolation module and the seventh resistor in sequence; the control end of the seventh controllable current source is connected to the voltage on the seventh resistor;

[0032] The control end of the thirteenth switch tube, the control end of the fourteenth switch tube and the control end of the fifteenth switch tube are connected to each other, and are connected to the start-up module through the isolation module.

[0033] In a possible implementation, the power supply voltage terminal is connected to the control terminal of the third switch tube through the first switch tube; the power supply voltage terminal is also connected to the control terminal of the fourth switch tube through the second switch tube.

[0034] In a possible implementation manner, the power supply voltage terminal is further connected to the control terminal of the sixteenth switch tube through the third resistor;

[0035] The power supply voltage terminal is also connected to the control terminal of the seventeenth switch tube through the fourth resistor.

[0036] In a possible implementation manner, the third resistor and the fourth resistor have the same resistance value.

[0037] In a possible implementation, the isolation module further includes a sixth switch tube, a ninth switch tube, a tenth switch tube, and an eleventh switch tube; control ends of the sixth switch tube, the ninth switch tube, the tenth switch tube, and the eleventh switch tube are connected to the target voltage end; the startup module further includes a second controllable current source, a fourth controllable current source, a fifth controllable current source, and a sixth controllable current source;

[0038] The third node is grounded via the sixth switch tube and the second controllable current source in sequence;

[0039] The power supply voltage terminal is grounded via the sixth resistor, the ninth switch tube and the fifth controllable current source in sequence;

[0040] The fourth node is grounded via the tenth switch tube and the sixth controllable current source in sequence;

[0041] The power supply voltage terminal is grounded through the eighth controllable current source, the fifteenth switch tube, the eleventh switch tube and the seventh controllable current source in sequence.

[0042] In a possible implementation, the isolation module further includes an eighth switch tube, an eighteenth switch tube and an eighth resistor;

[0043] The power supply voltage terminal is grounded through the thirteenth switch tube, the eighth resistor, the eighth switch tube and the fourth controllable current source in sequence;

[0044] The power supply voltage terminal is grounded through the ninth controllable current source, the fourteenth switch tube, the eighteenth switch tube and the seventh resistor in sequence;

[0045] The power supply voltage terminal is also connected to the control terminal of the eighteenth switch tube through the thirteenth switch tube and the eighth resistor in sequence; the control terminal of the eighth switch tube is connected to the target voltage terminal.

[0046] In a possible implementation manner, the eighth switch tube is an NMOS tube, and the eighteenth switch tube is a PMOS tube;

[0047] Alternatively, the eighth switch tube is an NPN transistor, and the eighteenth switch tube is a PNP transistor.

[0048] In a possible implementation, the power supply voltage terminal is further connected to the control terminal of the nineteenth switch tube via an eighth controllable current source and the fifteenth switch tube in sequence.

[0049] In a possible implementation, the startup module also includes a fifth resistor; the positive control end of each controllable current source in the startup module is connected to the startup voltage end; the negative control end of each controllable current source in the startup module is grounded; and the startup voltage end is grounded through the fifth resistor.

[0050] In another aspect, an integrated circuit control chip is provided, wherein the integrated circuit control chip includes a sampling module, a control module, an output module, a startup module and an isolation module in the multifunctional detection circuit described above; the integrated circuit control chip includes a first voltage pin and a second voltage pin; the first voltage pin is connected to a first voltage terminal inside the integrated circuit control chip; the second voltage pin is connected to a second voltage terminal inside the integrated circuit control chip;

[0051] And when the multifunctional detection circuit is used for current detection, the first voltage pin is connected to a first node in the current circuit to be measured outside the integrated circuit control chip through an eleventh resistor outside the integrated circuit control chip, the second voltage pin of the integrated circuit control chip is connected to a second node in the current circuit to be measured outside the integrated circuit control chip, and the second node is connected to the first node through a tenth resistor outside the integrated circuit control chip.

[0052] In a possible implementation, the integrated circuit control chip further has a power supply voltage pin; the power supply voltage pin is connected to a power supply voltage terminal inside the integrated circuit control chip;

[0053] When the multifunctional detection circuit is used for voltage detection, the power supply voltage pin is also connected to the first voltage pin through a thirteenth resistor outside the integrated circuit control chip; the first voltage pin is grounded through a twelfth resistor outside the integrated circuit control chip.

[0054] The technical solution provided by this application may have the following beneficial effects:

[0055] A multifunctional detection circuit disclosed in the present application includes a sampling module, a control module and an output module; a first voltage terminal and a second voltage terminal of the multifunctional detection circuit are respectively connected to two control terminals of the sampling module, so that the sampling module samples the first voltage terminal and the second voltage terminal; the first voltage terminal of the multifunctional detection circuit is also connected to a voltage output terminal through an output module; the control module is used to control the magnitude of a current flowing through the output module through the voltage sampled by the sampling module so that the voltages of the first voltage terminal and the second voltage terminal are the same, and the multifunctional detection circuit can realize current detection or power tracking voltage detection, thereby greatly improving the flexibility of the detection circuit;

[0056] A multifunctional detection circuit disclosed in the present application directly controls the circuit through the voltage difference between the control end and the current output end of the switch tube. Since the voltage difference between the control end and the current output end of the switch tube is a precise voltage, the multifunctional detection circuit can detect a current or voltage with a very small value, and can detect and obtain a precise current value or voltage value, thereby greatly improving the application range of the multifunctional detection circuit.

[0057] Furthermore, a multifunctional detection circuit disclosed in the present application adopts an isolation module with a special structure to ensure that each switch tube in the detection circuit is in a normal working state, thereby improving the safety and reliability of the detection circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0059] Figure 1 A circuit structure schematic diagram of a multifunctional detection circuit involved in an embodiment of the present application is shown.

[0060] Figure 2 The circuit structure of the multifunctional detection circuit when used for current detection is shown.

[0061] Figure 3 A circuit structure diagram including an integrated circuit control chip involved in an embodiment of the present application is shown.

[0062] Figure 4 The multifunctional detection circuit is used in the circuit structure of power tracking voltage detection.

[0063] Figure 5 A circuit structure diagram including an integrated circuit control chip involved in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0064] The technical solution of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0065] Please refer to Figure 1 , which shows a circuit structure diagram of a multifunctional detection circuit involved in an embodiment of the present application. The multifunctional detection circuit involved in an embodiment of the present application includes a sampling module, a control module and an output module;

[0066] The first voltage terminal SH and the second voltage terminal SL of the multifunctional detection circuit are respectively connected to the two control terminals of the sampling module, so that the sampling module samples the first voltage terminal SH and the second voltage terminal SL; the first voltage terminal SH is also connected to the voltage output terminal OUT through the output module; the control module is used to control the current flowing through the output module through the voltage sampled by the sampling module so that the voltage of the first voltage terminal SH and the second voltage terminal SL are the same;

[0067] When the multifunctional detection circuit is used for current detection, the first voltage terminal SH is connected to a first node in the current circuit to be measured through an eleventh resistor R11, the second voltage terminal SL is connected to a second node in the current circuit to be measured, and the second node is connected to the first node through a tenth resistor R10;

[0068] When the multifunctional detection circuit is used for voltage detection, the power supply voltage terminal is connected to the voltage to be measured; the first voltage terminal SH is connected to the voltage division value of the voltage to be measured; and the second voltage terminal SL is connected to the specified voltage VR. For example, at this time, the power supply voltage terminal is also connected to the first voltage terminal through the thirteenth resistor R13; the first voltage terminal is grounded through the twelfth resistor R12, so that the first voltage terminal SH is connected to the voltage division value of the voltage to be measured.

[0069] At this time, when the multifunctional detection circuit is used for current detection, the sampling module samples the voltages of the second voltage terminal SL and the first voltage terminal SH respectively, the control module processes the voltage difference between the two voltage terminals sampled by the sampling module, and controls the conduction state of the path where the first voltage terminal SH is located, so that the voltages of the second voltage terminal SL and the first voltage terminal SH are the same. At this time, the output voltage VOUT on the voltage output terminal OUT is in a specified relationship with the current to be measured, and the current value of the current to be measured can be obtained through the output voltage VOUT.

[0070] When the multifunctional detection circuit is used for voltage detection, a fixed voltage value is input to the second voltage terminal SL, and a voltage division value of the voltage to be measured is input to the first voltage terminal SH; at this time, the sampling module samples the voltages of the second voltage terminal SL and the first voltage terminal SH respectively, and the control module processes the voltage difference between the two voltage terminals sampled by the sampling module, and controls the conduction state of the path where the first voltage terminal SH is located, so that the voltages of the second voltage terminal SL and the first voltage terminal SH are the same. At this time, the output voltage VOUT is in a specified relationship with the voltage to be measured, and the voltage to be measured can be obtained through the output voltage VOUT.

[0071] Furthermore, the multifunctional detection circuit also includes a start-up module and an isolation module;

[0072] The power supply voltage end in the multifunctional detection circuit is connected to the isolation module through the sampling module and the control module respectively, so as to be connected to the starting module through the isolation module; the starting module flows through a current value of a specified size in the working state; the isolation module is used to control the connectivity between the starting module and the control module and the sampling module respectively.

[0073] Furthermore, the first voltage terminal SH in the multifunctional detection circuit is also connected to the voltage output terminal OUT via the output module and the isolation module in sequence.

[0074] like Figure 1 As shown, the output module includes a nineteenth switch tube M19; the first voltage terminal SH in the multifunctional detection circuit is connected to the isolation module through the nineteenth switch tube M19, so as to be connected to the voltage output terminal OUT through the isolation module.

[0075] Optionally, the nineteenth switch tube M19 is a PMOS tube; or the nineteenth switch tube is a PNP transistor.

[0076] Furthermore, the isolation module includes a twelfth switch tube M12; the control end of the twelfth switch tube M12 is connected to the target voltage end; at this time, the first voltage end SH in the multi-functional detection circuit is connected to the voltage output end OUT through the nineteenth switch tube M19 and the twelfth switch tube M12 in sequence.

[0077] Optionally, the twelfth switch tube M12 is an NMOS tube; or the nineteenth switch tube M19 is an NPN transistor.

[0078] Furthermore, the output module also includes a ninth resistor R9; the voltage output terminal OUT is also grounded through the ninth resistor R9.

[0079] Further, such as Figure 1 The sampling module in the multifunctional detection circuit shown includes a first resistor R1, a second resistor R2, a first switch tube M1 and a second switch tube M2; the power supply voltage end is connected to the isolation module through the first switch tube M1, so as to be connected to the startup module through the isolation module; the power supply voltage end is connected to the isolation module through the second switch tube M2, so as to be connected to the startup module through the isolation module; the first voltage end SH of the multifunctional detection circuit is connected to the control end of the second switch tube M2 through the second resistor R2; the second voltage end of the multifunctional detection circuit is connected to the control end of the first switch tube M1 through the first resistor R1.

[0080] Optionally, the first switch tube M1 and the second switch tube M2 are NMOS tubes; or, the first switch tube M1 and the second switch tube M2 are NPN transistors.

[0081] Furthermore, the isolation module further includes a fifth switch tube M5 and a seventh switch tube M7; the startup module includes a first controllable current source G1 and a third controllable current source G3;

[0082] The power supply voltage terminal is grounded through the first switch tube M1, the fifth switch tube M5 and the first controllable current source G1 in sequence;

[0083] The power supply voltage terminal is grounded through the second switch tube M2, the seventh switch tube M7 and the third controllable current source G3 in sequence;

[0084] The control end of the first controllable current source G1 and the control end of the third controllable current source G3 are connected to the start voltage end, and the start voltage end is connected to the first voltage VREF; the control end of the fifth switch tube M5 and the control end of the seventh switch tube M7 are connected to the target voltage end; the target voltage end is connected to the second voltage VZ.

[0085] Further, the fifth switch tube M5 and the seventh switch tube M7 are NMOS tubes; or, the fifth switch tube M5 and the seventh switch tube M7 are NPN transistors.

[0086] Furthermore, the power supply voltage terminal is connected to the control module through the first switch tube M1; the power supply voltage terminal is connected to the control module through the second switch tube M2.

[0087] Furthermore, the resistance of the first resistor R1 is the same as that of the second resistor R2.

[0088] Further, the control module includes a third resistor R3, a fourth resistor R4, a third switch tube M3, a fourth switch tube M4, a thirteenth switch tube M13, a fourteenth switch tube M14, a fifteenth switch tube M15, a sixteenth switch tube M16, a seventeenth switch tube M17, a sixth resistor R6, a seventh resistor R7, a seventh controllable current source G7, an eighth controllable current source G8 and a ninth controllable current source G9;

[0089] The power supply voltage terminal is connected to the third node through the third resistor R3 and the third switch tube M3 in sequence; the power supply voltage terminal is connected to the third node through the fourth switch tube M4 in sequence; the third node is connected to the isolation module to be connected to the start-up module through the isolation module;

[0090] The power supply voltage end is also connected to the isolation module through the thirteenth switch tube M13, so as to be connected to the start-up module through the isolation module; the power supply voltage end is also connected to the isolation module through the sixth resistor R6, so as to be connected to the start-up module through the isolation module;

[0091] The power supply voltage terminal is also connected to the fourth node through the eighth controllable current source G8 and the sixteenth switch tube M16 in sequence; the power supply voltage terminal is also connected to the fourth node through the ninth controllable current source G9 and the seventeenth switch tube M17 in sequence; the fourth node is connected to the isolation module; the control ends of the eighth controllable current source and the ninth controllable current source are connected to the voltage on the sixth resistor R6;

[0092] The power supply voltage end is also connected to the isolation module through the eighth controllable current source G8 and the fifteenth switch tube M15 in sequence, so as to be grounded through the isolation module and the seventh controllable current source G7 in sequence; the power supply voltage end is also connected to the isolation module through the ninth controllable current source G9 and the fourteenth switch tube M14 in sequence, so as to be grounded through the isolation module and the seventh resistor R7 in sequence; the control end of the seventh controllable current source G7 is connected to the voltage on the seventh resistor R7;

[0093] The control end of the thirteenth switch tube M13 , the control end of the fourteenth switch tube M14 , and the control end of the fifteenth switch tube M15 are connected to each other, and are connected to the start-up module through the isolation module.

[0094] Furthermore, the power supply voltage terminal is connected to the control terminal of the third switch tube M3 through the first switch tube M1; the power supply voltage terminal is also connected to the control terminal of the fourth switch tube M4 through the second switch tube M2.

[0095] Furthermore, the power supply voltage terminal is also connected to the control terminal of the sixteenth switch tube M16 through the third resistor R3; the power supply voltage terminal is also connected to the control terminal of the seventeenth switch tube M17 through the fourth resistor R4.

[0096] Furthermore, the third resistor R3 and the fourth resistor R4 have the same resistance value.

[0097] Optionally, the third switch tube M3, the fourth switch tube M4, the sixteenth switch tube M16, and the seventeenth switch tube M17 are NMOS tubes, and the thirteenth switch tube M13, the fourteenth switch tube M14, and the fifteenth switch tube M15 are PMOS tubes;

[0098] Alternatively, the third switch tube M3, the fourth switch tube M4, the sixteenth switch tube M16, and the seventeenth switch tube M17 are NPN transistors, and the thirteenth switch tube M13, the fourteenth switch tube M14, and the fifteenth switch tube M15 are PNP transistors.

[0099] Further, the isolation module further includes a sixth switch tube M6, an eighth switch tube M8, a ninth switch tube M9, a tenth switch tube M10, an eleventh switch tube M11, an eighteenth switch tube M18 and an eighth resistor R8; the startup module further includes a second controllable current source G2, a fourth controllable current source G4, a fifth controllable current source G5 and a sixth controllable current source G6;

[0100] The third node is grounded via the sixth switch tube M6 and the second controllable current source G2 in sequence;

[0101] The power supply voltage terminal is grounded through the thirteenth switch tube M13, the eighth resistor R8, the eighth switch tube M8 and the fourth controllable current source G4 in sequence;

[0102] The power supply voltage terminal is grounded via the sixth resistor R6, the ninth switch tube M9 and the fifth controllable current source G5 in sequence;

[0103] The fourth node is grounded via the tenth switch tube M10 and the sixth controllable current source G6 in sequence;

[0104] The power supply voltage terminal is grounded in sequence through the eighth controllable current source G8, the fifteenth switch tube M15, the eleventh switch tube M11 and the seventh controllable current source G7;

[0105] The power supply voltage terminal is grounded through the ninth controllable current source G9, the fourteenth switch tube M14, the eighteenth switch tube M18 and the seventh resistor R7 in sequence.

[0106] Furthermore, the power supply voltage terminal is also connected to the control terminal of the eighteenth switch tube M18 through the thirteenth switch tube M13 and the eighth resistor R8 in sequence; the control terminal of the eighth switch tube M8 is connected to the target voltage terminal.

[0107] Further, the control end of the sixth switch tube M6 , the control end of the ninth switch tube M9 , the control end of the tenth switch tube M10 , and the control end of the eleventh switch tube M11 are all connected to the target voltage end.

[0108] Optionally, the sixth switch tube M6, the eighth switch tube M8, the ninth switch tube M9, the tenth switch tube M10, and the eleventh switch tube M11 are NMOS tubes, and the eighteenth switch tube M18 is a PMOS tube;

[0109] Alternatively, the sixth switch tube M6 , the eighth switch tube M8 , the ninth switch tube M9 , the tenth switch tube M10 , and the eleventh switch tube M11 are NPN transistors, and the eighteenth switch tube M18 is a PNP transistor.

[0110] In the isolation module of the present application, most of them use NMOS tubes or NPN transistors for direct isolation, but the eighteenth switch tube M18 uses a combination structure of the eighth resistor R8 and the PMOS tube or the eighth resistor R8 and the PNP transistor for the following reasons:

[0111] Since the voltage difference at the control end of the seventh controllable current source G7 is small, that is, the voltage difference across the seventh resistor R7 is small at this time, if an NMOS tube is also used as the eighteenth switch tube M18 (the NMOS tube is used as an example here), the seventh resistor R7 and the fourteenth switch tube M14 are isolated, the source voltage of the eighteenth switch tube M18 will be low, and since the gate voltage of the eighteenth switch tube M18 is the fixed second voltage VZ, the gate-source voltage difference of the eighteenth switch tube M18 is large, which can easily damage the eighteenth switch tube M18, thereby greatly reducing the safety and reliability of the detection circuit;

[0112] At this time, if the combination structure of the eighth resistor R8 and the PMOS tube is adopted (the PMOS tube is used as an example here), the drain of the eighteenth switch tube M18 is connected to the seventh resistor R7, which will not cause a large gate-source voltage difference of the eighteenth switch tube M18. At the same time, when the eighteenth switch tube M18 is designed as a PMOS tube, if the eighth resistor R8 is not provided at this time, the gate of the fourteenth switch tube M14 will be connected to the gate of the eighteenth switch tube M18, thereby causing the drain-source voltage difference of the fourteenth switch tube M14 to be almost 0, which can easily cause the fourteenth switch tube M14 to be damaged. Therefore, at this time, the eighth resistor R8 must be provided to protect the fourteenth switch tube M14 to ensure that the drain-source voltage difference of the fourteenth switch tube M14 is within the normal working range;

[0113] It can be seen from this that the safety and reliability of the detection circuit is improved by adopting the combined structure of the eighth resistor R8 and the PMOS transistor or the eighth resistor R8 and the PNP transistor.

[0114] Furthermore, the power supply voltage terminal is also connected to the control terminal of the nineteenth switch tube M19 through the eighth controllable current source G8 and the fifteenth switch tube M15 in sequence.

[0115] Furthermore, the startup module also includes a fifth resistor R5; the positive control end of each controllable current source in the startup module is connected to the startup voltage end; the negative control end of each controllable current source in the startup module is grounded; and the startup voltage end is grounded through the fifth resistor.

[0116] First, when the multifunctional detection circuit is used for current detection, the resistance module located outside the integrated circuit control chip U1 is designed to include the tenth resistor R10 and the eleventh resistor R11, and the resistance module is not connected to the power supply voltage terminal. Figure 2 The circuit structure of the multifunctional detection circuit when used for current detection is shown.

[0117] For further information, please refer to Figure 3 , which shows a circuit structure diagram including an integrated circuit control chip U1 involved in an embodiment of the present application. Figure 2 The multifunctional detection circuit shown may include a startup module, a sampling module, a control module, an isolation module and an output module located inside the integrated circuit control chip, and the resistance module (i.e., the tenth resistor R10 and the eleventh resistor R11) is located outside the integrated circuit control chip. The integrated circuit control chip has various pins, including a power supply voltage pin (corresponding to the power supply voltage terminal, used to access the power supply voltage VIN), a first voltage pin (corresponding to the first voltage terminal SH) and a second voltage pin (corresponding to the second voltage terminal SL), a first ground pin SGND and a second ground pin PGND, an external connection pin LL and a third voltage pin VC.

[0118] The external connection pin LL and the third voltage pin VC are used to connect an external circuit. Optionally, the external circuit may be a power circuit.

[0119] Figure 2 The working principle of the multi-function detection circuit shown is as follows:

[0120] After the circuit is powered on, the startup module receives the first voltage VREF at the startup voltage end. At this time, current is generated in the fifth resistor R5. Therefore, a voltage drop is generated across the fifth resistor R5. The voltage drop is input to the control ends of the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6, so that the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6 all generate the same pull-down current; at the same time, since the target voltage end is connected to the second voltage VZ, and the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 in the isolation module The control ends of the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 are connected to the target voltage end. Therefore, at this time, the control ends of the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 input the second voltage VZ, and the current output ends of the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 are pulled down by the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6 respectively. Therefore, the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 are turned on;

[0121] At the same time, the measured current IO flows from the first node A to the second node connected to the second voltage terminal SL through the tenth resistor R10, and because the nineteenth switch tube M19 is not turned on when the circuit is just powered on, the voltage at the first node A is equal to the voltage of the first voltage terminal SH, that is, at this time, both the first voltage terminal SH and the second voltage terminal SL generate high-level voltages, that is, at this time, the control end of the first switch tube M1 and the control end of the second switch tube M2 are input with high-level voltages, and at the same time, because the current output terminal voltage of the first switch tube M1 and the current output terminal voltage of the second switch tube M2 are respectively controlled by the fifth switch tube M5 and the first controllable current source G1 and the seventh switch tube M7 and the third controllable current source G3 are pulled down, so the first switch tube M1 and the second switch tube M2 are both turned on, thereby raising the control terminal voltages of the third switch tube M3 and the fourth switch tube M4, the third switch tube M3 and the fourth switch tube M4; at the same time, the third resistor R3 and the fourth resistor R4 respectively raise the control terminal voltages of the sixteenth switch tube M16 and the seventeenth switch tube M17, the sixteenth switch tube M16 and the seventeenth switch tube M17 are turned on, in addition, the control terminal voltage of the eighteenth switch tube M18 is pulled down through the eighth switch tube M8 and the fourth controllable current source G4, the eighteenth switch tube M18 is turned on, the thirteenth switch tube M13 and the fourteenth switch tube M14 are turned on, The control terminal voltage of the 15th switch tube M15 is pulled down through the 8th resistor R8, the 8th switch tube M8 and the 4th controllable current source G4, the 13th switch tube M13, the 14th switch tube M14 and the 15th switch tube M15 are turned on, and the 6th resistor R6 is grounded through the 9th switch tube M9 and the 5th controllable current source G5. Therefore, a current is generated in the branch formed by the 6th resistor R6, the 9th switch tube M9 and the 5th controllable current source G5. Therefore, a voltage drop is generated across the 6th resistor R6. The voltage drop is input to the control terminals of the 8th controllable current source G8 and the 9th controllable current source G9, so that the 8th controllable current source G8 and the 9th controllable current source G9 are both generated. The current generated in the ninth controllable current source G9 flows into the seventh resistor R7 through the fourteenth switch tube M14 and the eighteenth switch tube M18, and a voltage drop is generated at both ends of the seventh resistor R7. The voltage drop is input to the control end of the seventh controllable current source G7, so that a current is generated in the seventh controllable current source G7, and the current pulls down the voltage of the current output end of the eleventh switch tube M11. Since the control end of the eleventh switch tube M11 inputs the second voltage VZ, the eleventh switch tube M11 is turned on. At the same time, since the second voltage VZ is at a high level relative to the voltage output end OUT after the circuit is just powered on, the twelfth switch tube M12 is also turned on.

[0122] At this time, since the first switch tube M1, the fifth switch tube M5 and the first controllable current source G1 are connected in series, and the second switch tube M2, the seventh switch tube M7 and the third controllable current source G3 are connected in series, the current flowing through the first switch tube M1 and the current flowing through the second switch tube M2 are the same. Therefore, at this time, the voltage difference between the control end and the current output end of the first switch tube M1 is equal to the voltage difference between the control end and the current output end of the second switch tube M2. Since the voltage of the first voltage terminal SH is greater than the voltage of the second voltage terminal SL, at this time, the voltage of the control end of the first switch tube M1 is less than the voltage of the control end of the second switch tube M2. Therefore, it can be obtained that the voltage of the current output end of the first switch tube M1 is less than the voltage of the second switch tube M2. The voltage at the current output end of the third switch tube M3 is smaller than the voltage at the control end of the fourth switch tube M4. Since the current output end of the third switch tube M3 is connected to the current output end of the fourth switch tube M4, the voltage difference between the control end and the current output end of the third switch tube M3 is smaller than the voltage difference between the control end and the current output end of the fourth switch tube M4. The current flowing through the third switch tube M3 is smaller than the current flowing through the fourth switch tube M4. At this time, since the resistance value of the third resistor R3 is equal to the resistance value of the fourth resistor R4, the voltage difference between the two ends of the third resistor R3 is smaller than the voltage difference between the two ends of the fourth resistor R4. Therefore, it can be obtained that the control terminal voltage of the sixteenth switch tube M16 is greater than the tenth switch tube M17. The control terminal voltage of the seventeenth switch tube M17 is equal to the control terminal voltage of the sixteenth switch tube M16. Since the current output terminal of the sixteenth switch tube M16 is connected to the current output terminal of the seventeenth switch tube M17, the voltage difference between the control terminal and the current output terminal of the sixteenth switch tube M16 is greater than the voltage difference between the control terminal and the current output terminal of the seventeenth switch tube M17. Therefore, at this time, it can be obtained that the current flowing from the eighth controllable current source G8 into the sixteenth switch tube M16 is greater than the current flowing from the ninth controllable current source G9 into the seventeenth switch tube M17. From the above analysis, it can be seen that the current flowing out of the sixteenth switch tube M16 is equal to the current flowing out of the seventeenth switch tube M17. Therefore, the current flowing from the eighth controllable current source G8 into the fifteenth switch tube M15 is less than Regarding the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14, at this time, since the fourteenth switch tube M14, the eighteenth switch tube M18 and the seventh resistor R7 are connected in series, the seventh controllable current source G7 and the eleventh switch tube M11 are connected in series, and the current coefficient of the seventh controllable current source G7 is 1, therefore, the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14 is equal to the current flowing from point B into the eleventh switch tube M11, so at this time, it can be obtained that the current flowing from the fifteenth switch tube M15 into point B is less than the current flowing from point B into the eleventh switch tube M11, the voltage at point B (the voltage at the control terminal of the nineteenth switch tube M19) is pulled down, and the nineteenth switch tube M19 is turned on;

[0123] Therefore, a current IOUT is generated from the first node A and flows to the voltage output terminal OUT through the eleventh resistor R11, the nineteenth switch tube M19 and the twelfth switch tube M12. Therefore, at this time, the voltage of the first voltage terminal SH is lower than the voltage of the first node A, that is, at this time, the voltage difference between the control terminal of the first switch tube M1 and the control terminal of the second switch tube M2 is reduced. Since the difference between the voltage of the second voltage terminal SL and the voltage of the first node A is fixed to IO×R10, the difference between the voltage of the first voltage terminal SH and the voltage of the first node A is IOUT×R11. Therefore, as IOUT increases, the difference between the voltage of the first voltage terminal SH and the voltage of the first node A increases. When IOUT×R11 increases to be greater than IO×R10, the first voltage terminal SH is The SH voltage is less than the voltage of the second voltage terminal SL, that is, the control terminal voltage of the first switch tube M1 is greater than the control terminal voltage of the second switch tube M2, so that the voltage of the current output terminal of the first switch tube M1 is greater than the voltage of the current output terminal of the second switch tube M2, that is, at this time, the control terminal voltage of the third switch tube M3 is greater than the control terminal voltage of the fourth switch tube M4, and because the current output terminal of the third switch tube M3 is connected to the current output terminal of the fourth switch tube M4, the voltage difference between the control terminal and the current output terminal of the third switch tube M3 is greater than the voltage difference between the control terminal and the current output terminal of the fourth switch tube M4, and the current flowing through the third switch tube M3 is greater than the current flowing through the fourth switch tube M4. At this time, since the resistance value of the third resistor R3 is equal to the resistance value of the fourth resistor R4, Therefore, the voltage difference across the third resistor R3 is smaller than the voltage difference across the fourth resistor R4, so that the voltage at the control end of the sixteenth switch tube M16 is smaller than the voltage at the control end of the seventeenth switch tube M17. Since the current output end of the sixteenth switch tube M16 is connected to the current output end of the seventeenth switch tube M17, the voltage difference between the control end and the current output end of the sixteenth switch tube M16 is smaller than the voltage difference between the control end and the current output end of the seventeenth switch tube M17. Therefore, at this time, it can be obtained that the current flowing from the eighth controllable current source G8 into the sixteenth switch tube M16 is smaller than the current flowing from the ninth controllable current source G9 into the seventeenth switch tube M17. From the above analysis, it can be seen that the current flowing out of the sixteenth switch tube M16 is equal to the current flowing out of the seventeenth switch tube M17. The current flowing out of the eighth controllable current source G8 is greater than the current flowing into the fifteenth switch tube M15 from the ninth controllable current source G9. At this time, since the fourteenth switch tube M14, the eighteenth switch tube M18 and the seventh resistor R7 are connected in series, the seventh controllable current source G7 and the eleventh switch tube M11 are connected in series, and the current coefficient of the seventh controllable current source G7 is 1, the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14 is equal to the current flowing from point B into the eleventh switch tube M11. Therefore, at this time, the current flowing from the fifteenth switch tube M15 into point B is greater than the current flowing from point B into the eleventh switch tube M11, the voltage at point B is pulled up, and the nineteenth switch tube M19 is turned off;

[0124] From the above analysis, it can be seen that when the detection circuit is in a stable state, the voltage of the first voltage terminal SH is equal to the voltage of the second voltage terminal SL, that is, at this time, , thus it can be obtained that when the multifunctional detection circuit is used for current detection, the output current of the multifunctional detection circuit is , output voltage , thereby realizing the current detection of the current to be measured IO.

[0125] Furthermore, when the multifunctional detection circuit is used for power tracking voltage detection, the resistance module located outside the integrated circuit control chip is designed to include a twelfth resistor R12 and a thirteenth resistor R13, the power supply voltage terminal is grounded through the thirteenth resistor R13 and the twelfth resistor R12 in sequence, and the power supply voltage terminal is connected to the first voltage terminal SH through the thirteenth resistor R13, so that the first voltage terminal SH is connected to the divided voltage value of the voltage to be measured on the power supply voltage terminal, and the resistance module is not connected to the second voltage terminal SL, and the second voltage terminal SL is connected to the specified voltage VR. Figure 4 The circuit structure of the multifunctional detection circuit used for power tracking voltage detection is shown.

[0126] For further information, please refer to Figure 5 , which shows a circuit structure diagram including an integrated circuit control chip U1 involved in an embodiment of the present application. Figure 4 The multifunctional detection circuit shown may include a startup module, a sampling module, a control module, an isolation module and an output module located inside the integrated circuit control chip, and a resistance module (ie, the twelfth resistor R12 and the thirteenth resistor R13) located outside the integrated circuit control chip. Figure 5 The integrated circuit control chip U1 in the circuit structure diagram shown in FIG. Figure 3 The integrated circuit control chip U1 is the same as that in the embodiment and will not be described in detail here.

[0127] Figure 4 The working principle of the multi-function detection circuit shown is as follows:

[0128] After the circuit is powered on, the first voltage VREF is input to the startup voltage terminal of the startup module. At this time, current is generated in the fifth resistor R5. Therefore, a voltage drop is generated at both ends of the fifth resistor R5. The voltage drop is input to the control ends of the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6, so that the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6 all generate the same pull-down current; at the same time, since the target voltage terminal is connected to the second voltage VZ, the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and The control end of the tenth switch tube M10 is connected to the target voltage end. Therefore, at this time, the control ends of the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 in the isolation module input the second voltage VZ, and the current output ends of the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 are pulled down by the first controllable current source G1, the second controllable current source G2, the third controllable current source G3, the fourth controllable current source G4, the fifth controllable current source G5 and the sixth controllable current source G6 respectively. Therefore, the fifth switch tube M5, the sixth switch tube M6, the seventh switch tube M7, the eighth switch tube M8, the ninth switch tube M9 and the tenth switch tube M10 are turned on;

[0129] At the same time, the second voltage terminal SL inputs the specified voltage VR, and the voltage VIN (i.e., the voltage to be measured) inputted from the power supply voltage terminal is divided by the twelfth resistor R12 and the thirteenth resistor R13 to obtain the divided voltage at point C, and the divided voltage is inputted to the first voltage terminal SH, that is, at this time, the control terminal of the first switch tube M1 and the control terminal of the second switch tube M2 are both inputted with a high-level voltage. At the same time, since the current output terminal voltage of the first switch tube M1 and the current output terminal voltage of the second switch tube M2 are respectively pulled down by the fifth switch tube M5 and the first controllable current source G1 and the seventh switch tube M7 and the third controllable current source G3, the first switch tube M The third switch tube M1 and the second switch tube M2 are both turned on, thereby pulling up the control terminal voltages of the third switch tube M3 and the fourth switch tube M4, and the third switch tube M3 and the fourth switch tube M4; at the same time, the third resistor R3 and the fourth resistor R4 respectively pull up the control terminal voltages of the sixteenth switch tube M16 and the seventeenth switch tube M17, and the sixteenth switch tube M16 and the seventeenth switch tube M17 are turned on. In addition, the control terminal voltage of the eighteenth switch tube M18 is pulled down through the eighth switch tube M8 and the fourth controllable current source G4, and the eighteenth switch tube M18 is turned on. The control terminal voltages of the thirteenth switch tube M13, the fourteenth switch tube M14 and the fifteenth switch tube M15 The eighth resistor R8, the eighth switch tube M8 and the fourth controllable current source G4 are pulled low, the thirteenth switch tube M13, the fourteenth switch tube M14 and the fifteenth switch tube M15 are turned on, and the sixth resistor R6 is grounded through the ninth switch tube M9 and the fifth controllable current source G5. Therefore, a current is generated in the branch formed by the sixth resistor R6, the ninth switch tube M9 and the fifth controllable current source G5. Therefore, a voltage drop is generated across the sixth resistor R6, and the voltage drop is input to the control ends of the eighth controllable current source G8 and the ninth controllable current source G9, so that currents of the same magnitude are generated in the eighth controllable current source G8 and the ninth controllable current source G9. The current generated in the ninth controllable current source G9 flows into the seventh resistor R7 through the fourteenth switch tube M14 and the eighteenth switch tube M18, and a voltage drop is generated across the seventh resistor R7. The voltage drop is input to the control end of the seventh controllable current source G7, so that a current is generated in the seventh controllable current source G7. The current pulls down the voltage at the current output end of the eleventh switch tube M11, and since the control end of the eleventh switch tube M11 inputs the second voltage VZ, the eleventh switch tube M11 is turned on. At the same time, since the circuit is just powered on, the second voltage VZ is at a high level relative to the voltage output end OUT, and therefore the twelfth switch tube M12 is also turned on;

[0130] At this time, since the first switch tube M1, the fifth switch tube M5 and the first controllable current source G1 are connected in series, and the second switch tube M2, the seventh switch tube M7 and the third controllable current source G3 are connected in series, the current flowing through the first switch tube M1 and the current flowing through the second switch tube M2 are the same. Therefore, at this time, the voltage difference between the control end and the current output end of the first switch tube M1 is equal to the voltage difference between the control end and the current output end of the second switch tube M2. At the same time, when the circuit is just powered on, the voltage VIN input to the power supply voltage end gradually increases. When the voltage VIN input to the power supply voltage end increases to make the voltage of the first voltage end SH greater than the voltage of the second voltage end SL, the voltage of the control end of the first switch tube M1 is less than the voltage of the control end of the second switch tube M2. voltage, so that the voltage at the current output end of the first switch tube M1 is smaller than the voltage at the current output end of the second switch tube M2, that is, at this time, the voltage at the control end of the third switch tube M3 is smaller than the voltage at the control end of the fourth switch tube M4, and because the current output end of the third switch tube M3 is connected to the current output end of the fourth switch tube M4, the voltage difference between the control end and the current output end of the third switch tube M3 is smaller than the voltage difference between the control end and the current output end of the fourth switch tube M4, and the current flowing through the third switch tube M3 is smaller than the current flowing through the fourth switch tube M4. At this time, because the resistance value of the third resistor R3 is equal to the resistance value of the fourth resistor R4, the voltage difference between the two ends of the third resistor R3 is smaller than the voltage difference between the two ends of the fourth resistor R4, so that It can be seen that the voltage at the control end of the sixteenth switch tube M16 is greater than the voltage at the control end of the seventeenth switch tube M17. Since the current output end of the sixteenth switch tube M16 is connected to the current output end of the seventeenth switch tube M17, the voltage difference between the control end and the current output end of the sixteenth switch tube M16 is greater than the voltage difference between the control end and the current output end of the seventeenth switch tube M17. Therefore, it can be seen that the current flowing from the eighth controllable current source G8 into the sixteenth switch tube M16 is greater than the current flowing from the ninth controllable current source G9 into the seventeenth switch tube M17. From the above analysis, it can be seen that the current flowing out of the sixteenth switch tube M16 is equal to the current flowing out of the seventeenth switch tube M17. Therefore, the current flowing from the eighth controllable current source G8 into the fifteenth switch tube M17 is greater than the current flowing from the ninth controllable current source G9 into the fifteenth switch tube M17. The current of the switch tube M15 is less than the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14. At this time, since the fourteenth switch tube M14, the eighteenth switch tube M18 and the seventh resistor R7 are connected in series, the seventh controllable current source G7 and the eleventh switch tube M11 are connected in series, and the current coefficient of the seventh controllable current source G7 is 1, the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14 is equal to the current flowing from the point D into the eleventh switch tube M11. Therefore, at this time, it can be obtained that the current flowing from the fifteenth switch tube M15 into the point D is less than the current flowing from the point D into the eleventh switch tube M11, and the voltage at the point D (the voltage at the control terminal of the nineteenth switch tube M19) is pulled down, and the nineteenth switch tube M19 is turned on;

[0131] Therefore, a current IOUT is generated from point C and flows to the voltage output terminal OUT through the nineteenth switch tube M19 and the twelfth switch tube M12, and the voltage of the first voltage terminal SH is pulled down. When the voltage of the first voltage terminal SH is reduced to be lower than the voltage of the second voltage terminal SL, the voltage of the control terminal of the first switch tube M1 is higher than the voltage of the control terminal of the second switch tube M2, so that the voltage of the current output terminal of the first switch tube M1 is higher than the voltage of the current output terminal of the second switch tube M2. That is, at this time, the voltage of the control terminal of the third switch tube M3 is higher than the voltage of the control terminal of the fourth switch tube M4, and because the current output terminal of the third switch tube M3 is The third switch tube M3 is connected to the current output terminal of the fourth switch tube M4. Therefore, the voltage difference between the control terminal and the current output terminal of the third switch tube M3 is greater than the voltage difference between the control terminal and the current output terminal of the fourth switch tube M4. The current flowing through the third switch tube M3 is greater than the current flowing through the fourth switch tube M4. At this time, since the resistance value of the third resistor R3 is equal to the resistance value of the fourth resistor R4, the voltage difference between the two ends of the third resistor R3 is less than the voltage difference between the two ends of the fourth resistor R4. Therefore, the control terminal voltage of the sixteenth switch tube M16 is less than the control terminal voltage of the seventeenth switch tube M17. Since the current output terminal of the sixteenth switch tube M16 is The control terminal of the sixteenth switch tube M16 is connected to the current output terminal of the seventeenth switch tube M17. Therefore, the voltage difference between the control terminal and the current output terminal of the sixteenth switch tube M16 is smaller than the voltage difference between the control terminal and the current output terminal of the seventeenth switch tube M17. Therefore, at this time, it can be obtained that the current flowing from the eighth controllable current source G8 into the sixteenth switch tube M16 is smaller than the current flowing from the ninth controllable current source G9 into the seventeenth switch tube M17. From the above analysis, it can be seen that the current flowing out of the sixteenth switch tube M16 is equal to the current flowing out of the seventeenth switch tube M17. Therefore, the current flowing from the eighth controllable current source G8 into the fifteenth switch tube M15 is greater than the current flowing from the ninth controllable current source G8 into the fifteenth switch tube M15. The current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14, at this time, since the fourteenth switch tube M14, the eighteenth switch tube M18 and the seventh resistor R7 are connected in series, the seventh controllable current source G7 and the eleventh switch tube M11 are connected in series, and the current coefficient of the seventh controllable current source G7 is 1, therefore, the current flowing from the ninth controllable current source G9 into the fourteenth switch tube M14 is equal to the current flowing from the point D into the eleventh switch tube M11, so at this time, it can be obtained that the current flowing from the fifteenth switch tube M15 into the point D is greater than the current flowing from the point D into the eleventh switch tube M11, the voltage at the point D is pulled up, and the nineteenth switch tube M19 is turned off;

[0132] From the above analysis, it can be seen that when the detection circuit is in a stable state, the voltage of the first voltage terminal SH is equal to the voltage of the second voltage terminal SL. At the same time, since the current flowing through the thirteenth resistor R13 is , so at this time, the voltage of the first voltage terminal SH is , and by the attached Figure 4 From the structure, it can be seen that when the detection circuit is in a stable state, , thus we can get Therefore, when the multifunctional detection circuit is used for power tracking voltage detection, the voltage at the voltage output terminal OUT of the multifunctional detection circuit is ,in, and They are all fixed values, thereby realizing the detection of the voltage VIN (i.e., the voltage to be measured) input to the power supply voltage end. The power point of the power supply voltage end can be known according to the output voltage VOUT of the multifunctional detection circuit, that is, power tracking voltage detection is realized.

[0133] Moreover, in the multifunctional detection circuit described in the embodiment of the present application, each switch tube can control the circuit through the voltage difference between its control end and the current output end. Since the voltage difference between the control end and the current output end of each switch tube is a precise voltage, at this time, it is possible to detect currents or voltages with extremely small values, and to obtain precise current values ​​or voltage values.

[0134] In summary, a multifunctional detection circuit disclosed in the present application includes a sampling module, a control module and an output module; the first voltage terminal and the second voltage terminal of the multifunctional detection circuit are respectively connected to the two control terminals of the sampling module, so that the sampling module samples the first voltage terminal and the second voltage terminal; the first voltage terminal of the multifunctional detection circuit is also connected to the voltage output terminal through the output module; the control module is used to control the magnitude of the current flowing through the output module through the voltage sampled by the sampling module so that the voltage of the first voltage terminal and the second voltage terminal are the same, and the multifunctional detection circuit can realize current detection or power tracking voltage detection, thereby greatly improving the flexibility of the detection circuit;

[0135] A multifunctional detection circuit disclosed in the present application directly controls the circuit through the voltage difference between the control end and the current output end of the switch tube. Since the voltage difference between the control end and the current output end of the switch tube is a precise voltage, the multifunctional detection circuit can detect a current or voltage with a very small value, and can detect and obtain a precise current value or voltage value, thereby greatly improving the application range of the multifunctional detection circuit.

[0136] Furthermore, a multifunctional detection circuit disclosed in the present application adopts an isolation module with a special structure to ensure that each switch tube in the detection circuit is in a normal working state, thereby improving the safety and reliability of the detection circuit.

[0137] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0138] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A multifunctional detection circuit, characterized in that: The multifunctional detection circuit includes a sampling module, a control module and an output module; The first voltage terminal and the second voltage terminal of the multifunctional detection circuit are respectively connected to the two control terminals of the sampling module, so that the sampling module samples the first voltage terminal and the second voltage terminal; the first voltage terminal is also connected to the voltage output terminal through the output module; the control module is used to control the current flowing through the output module according to the voltage sampled by the sampling module so that the voltage of the first voltage terminal and the second voltage terminal are the same; When the multifunctional detection circuit is used for current detection, the first voltage terminal is connected to a first node in the current circuit to be measured through an eleventh resistor, the second voltage terminal is connected to a second node in the current circuit to be measured, and the second node is connected to the first node through a tenth resistor; When the multifunctional detection circuit is used for voltage detection, the power supply voltage terminal is connected to the voltage to be measured; the first voltage terminal is connected to the voltage division value of the voltage to be measured; the second voltage terminal is connected to the specified voltage; when the multifunctional detection circuit is used for voltage detection, the power supply voltage terminal is also connected to the first voltage terminal through a thirteenth resistor; the first voltage terminal is grounded through a twelfth resistor; The multifunctional detection circuit also includes a start-up module and an isolation module; The power supply voltage terminal in the multifunctional detection circuit is connected to the isolation module through the sampling module and the control module respectively, so as to be connected to the start-up module through the isolation module; the start-up module flows through a current value of a specified size in a working state; the isolation module is used to control the connection state between the start-up module and the control module and the sampling module respectively; the first voltage terminal in the multifunctional detection circuit is also connected to the voltage output terminal through the output module and the isolation module in sequence; The output module includes a nineteenth switch tube and a ninth resistor; The first voltage terminal in the multifunctional detection circuit is connected to the isolation module through the nineteenth switch tube, and is connected to the voltage output terminal through the isolation module; the voltage output terminal is also grounded through the ninth resistor.

2. The multifunctional detection circuit according to claim 1, characterized in that: The isolation module includes a twelfth switch tube; the control end of the twelfth switch tube is connected to the target voltage end; The first voltage terminal in the multifunctional detection circuit is connected to the voltage output terminal through the nineteenth switch tube and the twelfth switch tube in sequence.

3. The multifunctional detection circuit according to claim 2, characterized in that: The sampling module includes a first resistor, a second resistor, a first switch tube and a second switch tube; The power supply voltage terminal is connected to the isolation module through the first switch tube, so as to be connected to the start-up module through the isolation module; The power supply voltage terminal is connected to the isolation module through the second switch tube, so as to be connected to the start-up module through the isolation module; The first voltage end of the multifunctional detection circuit is connected to the control end of the second switch tube through the second resistor; the second voltage end of the multifunctional detection circuit is connected to the control end of the first switch tube through the first resistor.

4. The multifunctional detection circuit according to claim 3, characterized in that: The isolation module includes a fifth switch tube and a seventh switch tube; the startup module includes a first controllable current source and a third controllable current source; The power supply voltage terminal is grounded through the first switch tube, the fifth switch tube and the first controllable current source in sequence; The power supply voltage terminal is grounded via the second switch tube, the seventh switch tube and the third controllable current source in sequence; The control end of the first controllable current source and the control end of the third controllable current source are connected to the start voltage end; the control end of the fifth switch tube and the control end of the seventh switch tube are connected to the target voltage end.

5. The multifunctional detection circuit according to claim 4, characterized in that: The power supply voltage end is connected to the control module through the first switch tube; the power supply voltage end is also connected to the control module through the second switch tube.

6. The multifunctional detection circuit according to claim 4, characterized in that: The first resistor and the second resistor have the same resistance value.

7. The multifunctional detection circuit according to claim 5, characterized in that: The control module includes a third resistor, a fourth resistor, a third switch tube, a fourth switch tube, a thirteenth switch tube, a fourteenth switch tube, a fifteenth switch tube, a sixteenth switch tube, a seventeenth switch tube, a sixth resistor, a seventh resistor, a seventh controllable current source, an eighth controllable current source and a ninth controllable current source; The power supply voltage terminal is connected to a third node through the third resistor and the third switch tube in sequence; the power supply voltage terminal is connected to the third node through the fourth switch tube in sequence; the third node is connected to the isolation module to be connected to the startup module through the isolation module; The power supply voltage terminal is also connected to the isolation module through the thirteenth switch tube, so as to be connected to the startup module through the isolation module; the power supply voltage terminal is also connected to the isolation module through the sixth resistor, so as to be connected to the startup module through the isolation module; The power supply voltage terminal is also connected to the fourth node through the eighth controllable current source and the sixteenth switch tube in sequence; the power supply voltage terminal is also connected to the fourth node through the ninth controllable current source and the seventeenth switch tube in sequence; the fourth node is connected to the isolation module; the control ends of the eighth controllable current source and the ninth controllable current source are connected to the voltage on the sixth resistor; The power supply voltage end is also connected to the isolation module through the eighth controllable current source and the fifteenth switch tube in sequence, so as to be grounded through the isolation module and the seventh controllable current source in sequence; the power supply voltage end is also connected to the isolation module through the ninth controllable current source and the fourteenth switch tube in sequence, so as to be grounded through the isolation module and the seventh resistor in sequence; the control end of the seventh controllable current source is connected to the voltage on the seventh resistor; The control end of the thirteenth switch tube, the control end of the fourteenth switch tube and the control end of the fifteenth switch tube are connected to each other, and are connected to the start-up module through the isolation module.

8. The multifunctional detection circuit according to claim 7, characterized in that: The power supply voltage terminal is connected to the control terminal of the third switch tube through the first switch tube; the power supply voltage terminal is also connected to the control terminal of the fourth switch tube through the second switch tube.

9. The multifunctional detection circuit according to claim 8, characterized in that: The power supply voltage terminal is also connected to the control terminal of the sixteenth switch tube through the third resistor; The power supply voltage terminal is also connected to the control terminal of the seventeenth switch tube through the fourth resistor.

10. The multifunctional detection circuit according to claim 9, characterized in that: The third resistor and the fourth resistor have the same resistance value.

11. The multifunctional detection circuit according to claim 7, characterized in that: The isolation module further includes a sixth switch tube, a ninth switch tube, a tenth switch tube and an eleventh switch tube; control ends of the sixth switch tube, the ninth switch tube, the tenth switch tube and the eleventh switch tube are connected to the target voltage end; the startup module further includes a second controllable current source, a fourth controllable current source, a fifth controllable current source and a sixth controllable current source; The third node is grounded via the sixth switch tube and the second controllable current source in sequence; The power supply voltage terminal is grounded via the sixth resistor, the ninth switch tube and the fifth controllable current source in sequence; The fourth node is grounded via the tenth switch tube and the sixth controllable current source in sequence; The power supply voltage terminal is grounded through the eighth controllable current source, the fifteenth switch tube, the eleventh switch tube and the seventh controllable current source in sequence.

12. The multifunctional detection circuit according to claim 11, characterized in that: The isolation module further includes an eighth switch tube, an eighteenth switch tube and an eighth resistor; The power supply voltage terminal is grounded through the thirteenth switch tube, the eighth resistor, the eighth switch tube and the fourth controllable current source in sequence; The power supply voltage terminal is grounded through the ninth controllable current source, the fourteenth switch tube, the eighteenth switch tube and the seventh resistor in sequence; The power supply voltage terminal is also connected to the control terminal of the eighteenth switch tube through the thirteenth switch tube and the eighth resistor in sequence; the control terminal of the eighth switch tube is connected to the target voltage terminal.

13. The multifunctional detection circuit according to claim 12, characterized in that: The eighth switch tube is an NMOS tube, and the eighteenth switch tube is a PMOS tube; Alternatively, the eighth switch tube is an NPN transistor, and the eighteenth switch tube is a PNP transistor.

14. The multifunctional detection circuit according to claim 7, characterized in that: The power supply voltage terminal is also connected to the control terminal of the nineteenth switch tube via the eighth controllable current source and the fifteenth switch tube in sequence.

15. The multifunctional detection circuit according to any one of claims 4 to 14, characterized in that: The startup module also includes a fifth resistor; the positive control end of each controllable current source in the startup module is connected to the startup voltage end; the negative control end of each controllable current source in the startup module is grounded; and the startup voltage end is grounded through the fifth resistor.

16. An integrated circuit control chip, characterized in that: The integrated circuit control chip includes a sampling module, a control module, an output module, a startup module and an isolation module in the multifunctional detection circuit according to any one of claims 1 to 15; the integrated circuit control chip includes a first voltage pin and a second voltage pin; the first voltage pin is connected to a first voltage terminal inside the integrated circuit control chip; the second voltage pin is connected to a second voltage terminal inside the integrated circuit control chip; And when the multifunctional detection circuit is used for current detection, the first voltage pin is connected to a first node in the current circuit to be measured outside the integrated circuit control chip through an eleventh resistor outside the integrated circuit control chip, the second voltage pin of the integrated circuit control chip is connected to a second node in the current circuit to be measured outside the integrated circuit control chip, and the second node is connected to the first node through a tenth resistor outside the integrated circuit control chip.

17. The integrated circuit control chip according to claim 16, characterized in that: The integrated circuit control chip also has a power supply voltage pin; the power supply voltage pin is connected to the power supply voltage terminal inside the integrated circuit control chip; When the multifunctional detection circuit is used for voltage detection, the power supply voltage pin is also connected to the first voltage pin through a thirteenth resistor outside the integrated circuit control chip; the first voltage pin is grounded through a twelfth resistor outside the integrated circuit control chip.