A detection circuit, a detection method and a power supply circuit
By setting up a short-circuit unit and a control unit in the detection circuit, and using the interference detection signal to calibrate the detection signal, the problem of insufficient detection accuracy of operational amplifiers due to manufacturing process and temperature effects is solved, and higher current/voltage detection accuracy is achieved.
Patent Information
- Application Number
- CN202611537852.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-20
Smart Images

Figure CN123136163A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power supply technology, and in particular to a detection circuit, detection method, and power supply circuit. Background Technology
[0002] As is well known, power supply systems requiring high-safety power supply often need to collect and upload detailed electrical performance parameters (voltage, current, power) of the power supply for monitoring, regulation, and protection of the power supply and powered equipment, such as server systems. The acquisition of voltage and current signals often requires operational amplifiers, but the accuracy of these devices can be affected by factors such as manufacturing process and operating temperature. Summary of the Invention
[0003] This application provides a detection circuit, a detection method, and a power supply circuit, which can solve the problem of insufficient accuracy in current / voltage detection of existing detection circuits.
[0004] To solve the above-mentioned technical problems, one technical solution adopted in this application is: to provide a detection circuit, comprising: The detection unit includes a first detection pin, a second detection pin, and an output pin, which are used to connect to the object being detected. The short-circuit unit connects the first detection pin and the second detection pin and grounds them; The control unit connects the output pin and the shorting unit; it is used to receive the detection signal output by the detection unit and calibrate the detection signal using the interference detection signal to obtain the detection result; wherein, the control unit is also used to respond to the calibration signal to control the shorting unit to be in a first state, grounding the first detection pin and the second detection pin to obtain the interference detection signal.
[0005] In one embodiment, the shorting unit includes: The first shorting unit is connected to the control unit and the first detection pin and grounded, and is used to ground the first detection pin; The second shorting unit is connected to the control unit and the second detection pin and grounded, and is used to ground the second detection pin.
[0006] In one embodiment, the first short-circuit unit includes: The first switch has its first path terminal connected to the first detection pin, its second path terminal grounded, and its control terminal connected to the control unit. The second short-circuit unit includes The second switch has its first path terminal connected to the second detection pin, its second path terminal grounded, and its control terminal connected to the control unit.
[0007] In one embodiment, the first short-circuit unit further includes: The first resistor has its first end connected to the control unit and its second end connected to the control terminal of the first switch. The second resistor has its first end connected to the control terminal of the first switch and its second end grounded. The second shorting unit also includes; The third resistor has its first end connected to the control terminal of the second switch and its second end connected to the control unit. The fourth resistor has its first end connected to the control terminal of the second switch, and its second end grounded.
[0008] In one embodiment, the detection unit includes: a first amplification unit and a second amplification unit; The first input terminal of the first amplification unit is connected to the first detection pin, and the second input terminal of the first amplification unit is connected to the second detection pin; the second amplification unit is connected to the output terminal of the first amplification unit and the control unit.
[0009] In one embodiment, the detection unit further includes: The pre-bias unit is connected to the second input terminal of the first amplification unit and is used to provide a reference signal; The filter unit is connected to the output of the second amplifier unit; The protection unit connects the filtering unit and the control unit.
[0010] In one embodiment, the calibration signal is generated based on calibration flag data; or The calibration signal is generated based on the calibration mark data or the reference current corresponding to the reference signal.
[0011] In one embodiment, the control unit is further configured to determine whether the interference detection signal is within a preset range, and in response, to save the interference detection signal.
[0012] To solve the above-mentioned technical problems, another technical solution adopted in this application is: to provide a detection method, which is implemented based on the detection circuit of any of the above claims, and the detection method includes: In response to the calibration signal, the first detection pin and the second detection pin of the detection unit are grounded to detect the interference detection signal; The system receives the detection signal output by the detection unit and uses the interference detection signal to calibrate the detection signal, thereby obtaining the detection result.
[0013] To solve the above-mentioned technical problems, another technical solution adopted in this application is to provide a power supply circuit that includes the detection circuit of any of the above-mentioned components.
[0014] The beneficial effects of this application are as follows: Unlike existing technologies, the detection circuit provided in this application includes a short-circuit unit. During calibration, the short-circuit unit is controlled to be in a first state, grounding the first and second detection pins to obtain an interference detection signal. During the detection process, the interference detection signal is used to calibrate the detection signal, thereby obtaining the detection result. This solves the problem of insufficient current / voltage detection accuracy in existing detection circuits and improves detection accuracy. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic diagram of the structure of the first embodiment of the detection circuit provided in this application; Figure 2 A schematic diagram of the second embodiment of the detection circuit provided in this application; Figure 3 A schematic diagram of the third embodiment of the detection circuit provided in this application; Figure 4 A flowchart illustrating the first embodiment of the detection method provided in this application; Figure 5 for Figure 4 A flowchart illustrating an embodiment of step S41; Figure 6 A schematic diagram of an embodiment of the power supply circuit provided in this application. Specific Implementation The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0018] In the following description, specific details such as particular system architectures, interfaces, and technologies are presented for illustrative purposes rather than for limiting purposes, in order to provide a thorough understanding of this application.
[0019] In this article, the term "and / or" simply describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "more" in this article means two or more objects.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0021] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0022] To enable those skilled in the art to better understand the technical solutions of this application, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0023] Please see Figure 1 , Figure 1 This is a schematic diagram of a detection circuit according to an embodiment of the present application, specifically including: a detection unit 11, a shorting unit 12, and a control unit 13. The detection unit 11 includes a first detection pin P1, a second detection pin P2, and an output pin P3, used to connect to the detection object 10. The shorting unit 12 connects the first detection pin P1 and the second detection pin P2 and grounds them. The control unit 13 connects the output pin P3 and the shorting unit 12, used to receive the detection signal output by the detection unit 11, and to calibrate the detection signal using an interference detection signal, thereby obtaining the detection result.
[0024] In one embodiment, the detection object 10 can be a voltage detection object or a current detection object. Taking the current detection object as an example, the detection object 10 is a sampling resistor.
[0025] Specifically, the control unit 13 is also used to control the shorting unit 12 to be in a first state in response to the calibration signal, and ground the first detection pin P1 and the second detection pin P2 to obtain the interference detection signal.
[0026] It should be noted that when calibration is required, a calibration signal is generated. Upon receiving the calibration signal, the control unit 13 controls the shorting unit 12 to be in its first state, grounding the first detection pin P1 and the second detection pin P2. At this time, the inputs to the first detection pin P1 and the second detection pin P2 are zero. The interference detection signal acquired by the control unit 13 characterizes the interference signal inside the detection unit 11. In the actual testing process, the detection signal output by the detection unit is calibrated using the interference detection signal to obtain the detection result. It is understandable that this calibrated detection result has higher accuracy compared to the uncalibrated detection signal.
[0027] In one embodiment, combined with Figure 2The detection unit 11 includes a first amplification unit 111 and a second amplification unit 112. The first input terminal of the first amplification unit 111 is connected to the first detection pin P1, and the second input terminal of the first amplification unit 111 is connected to the second detection pin P2; the second amplification unit 112 is connected to the output terminal of the first amplification unit 111 and the control unit 13.
[0028] In this embodiment, the interference detection signal at least includes the offset error characterizing the first amplification unit 111 and the second amplification unit 112. Specifically, the first amplification unit 111 and the second amplification unit 112 are generally implemented using operational amplifiers. However, operational amplifiers can generate offset voltages due to manufacturing processes, operating temperatures, and other factors, thus affecting detection accuracy. In the detection circuit of this application, during the calibration process, the first detection pin P1 and the second detection pin P2 are grounded, forcing the inputs of the first detection pin P1 and the second detection pin P2 to zero. At this time, the detected interference detection signal is not affected by the input signal and at least includes the offset error characterizing the first amplification unit 111 and the second amplification unit 112. Thus, the control unit 13 can obtain the offset error of the first amplification unit 111 and the second amplification unit 112. In the subsequent voltage / current detection process, this interference detection signal can be used to calibrate the detection signal to obtain the final detection result, thereby improving the detection accuracy.
[0029] Specifically, it should be noted that the first amplification unit 111 is a differential amplification unit. Combined with... Figure 3 The first amplification unit 111 includes a first operational amplifier U1. The first input terminal (inverting input terminal) of the first operational amplifier U1 is connected to the first detection pin P1, and the second input terminal (non-inverting input terminal) of the first operational amplifier U1 is connected to the second detection pin P2. The output terminal of the first operational amplifier U1 is connected to the second amplification unit 112. The power supply terminal of the first operational amplifier U1 receives the VCC voltage, and the ground terminal is grounded.
[0030] Specifically, the first amplification unit 111 also includes resistors R1 and R2. The first end of resistor R1 is connected to the first detection pin P1, and the second end of resistor R1 is connected to the first input terminal of the first operational amplifier U1. The first end of resistor R2 is connected to the second detection pin P2, and the second end of resistor R2 is connected to the second input terminal of the first operational amplifier U1.
[0031] The first amplification unit 111 also includes a resistor R3 and a capacitor C2, which together form a feedback unit. Specifically, the first end of resistor R3 is connected to the first input terminal of the first operational amplifier U1, and the second end of resistor R3 is connected to the output terminal of the first operational amplifier U1. The first end of capacitor C2 is connected to the first end of resistor R3 and the first input terminal of the first operational amplifier U1, and the second end of capacitor C2 is connected to the second end of resistor R3 and the output terminal of the first operational amplifier U1.
[0032] Furthermore, the first amplification unit 111 also includes capacitors C1 and C3. The first end of capacitor C1 is connected to the second end of resistor R1 and the first input terminal of the first operational amplifier U1, and the second end of capacitor C1 is grounded. The first end of capacitor C3 is connected to the second input terminal of the first operational amplifier U1, and the second end of capacitor C3 is grounded.
[0033] The second amplification unit 112 includes a second operational amplifier U2. The first input terminal of the second operational amplifier U2, i.e., the non-inverting input terminal, is connected to the output terminal of the first operational amplifier U1. The second input terminal of the second operational amplifier U2, i.e., the inverting input terminal, is grounded. The output terminal of the second operational amplifier U2 is connected to the second input terminal of the second operational amplifier U2 and is connected to the control unit 13.
[0034] Specifically, the second amplification unit 112 also includes a resistor R7 and a capacitor C5, which together form a feedback unit. The first end of resistor R7 is connected to the output terminal of the second operational amplifier U2, and the second end of resistor R7 is connected to the second input terminal of the second operational amplifier U2. The first end of capacitor C5 is connected to the output terminal of the second operational amplifier U2 and the first end of resistor R7, and the second end of capacitor C5 is connected to the second input terminal of the second operational amplifier U2 and the second end of resistor R7.
[0035] Furthermore, the second amplification unit 112 also includes a resistor R6, the first end of which is connected to the second input terminal of the second operational amplifier U2, and the second end of the resistor R6 is grounded.
[0036] Specifically, in this embodiment, the interference detection signal includes offset errors characterizing the first operational amplifier U1 and the second operational amplifier U2.
[0037] In one embodiment, the detection unit 11 further includes a pre-bias unit 115. It should be noted that for dual-supply operational amplifiers, a pre-bias unit is generally not required; however, for single-supply operational amplifiers, a pre-bias unit is necessary. This is mainly because single-supply operational amplifiers require that the input and output voltages not be lower than ground potential GND. Without a pre-bias unit, when a negative differential voltage is sampled, the operational amplifier's input signal is below 0V, exceeding the common-mode input range of the operational amplifier. The operational amplifier enters the saturation cutoff region, and the reverse current signal is directly lost and severely distorted. Setting a pre-bias unit allows for the setting of an intermediate static level at the non-inverting input, so that the differential AC signal, which originally spans positive and negative values, is raised to a positive voltage range within 0~VCC, fully preserving the positive and negative current information, and ensuring that the operational amplifier always operates in the linear amplification region.
[0038] It should be noted that the static deviation, temperature drift, and AC ripple of the reference signal Vref provided by the pre-bias unit 115 are all directly transmitted to the output by the differential amplifier circuit, i.e., the first amplifier unit 111, and are ultimately converted into zero-point error and noise disturbance in the current sampling, which also affects the sampling accuracy. However, in the embodiment of this application, during the calibration process, the first detection pin P1 and the second detection pin P2 are grounded, forcing the inputs of the first detection pin P1 and the second detection pin P2 to zero. At this time, the detected interference detection signal is not affected by the input signal, and includes not only the offset error characterizing the first amplifier unit 111 and the second amplifier unit 112, but also the disturbance error corresponding to the reference signal. In this way, the control unit 13 can obtain the offset error of the first amplifier unit 111 and the second amplifier unit 112 and the disturbance error of the reference signal. In the subsequent voltage / current detection process, this interference detection signal can be used to calibrate the detection signal to obtain the final detection result, thereby improving the detection accuracy.
[0039] In the embodiments of this application, the pre-bias unit 115 in the detection unit 11 is connected to the second input terminal (non-inverting input terminal) of the first amplification unit 111, i.e., the first operational amplifier U1, to provide a reference signal Vref. Specifically, the pre-bias unit 115 includes resistors R4 and R5 and capacitor C4. The first end of resistor R4 is connected to the second input terminal of the first operational amplifier U1, and the second end of resistor R4 is connected to the second end of capacitor C4 and is also connected to the input terminal of the reference signal Vref. The first end of resistor R5 is connected to the second input terminal of the first operational amplifier U1, and the second end of resistor R5 is connected to the first end of capacitor C4 and grounded.
[0040] In one embodiment of this application, the detection unit 11 further includes a filtering unit 113 and a protection unit 114. The filtering unit 113 is connected to the output terminal of the second amplification unit 112; the protection unit 114 is connected to the filtering unit 113 and the control unit 13.
[0041] Specifically, the filter unit 113 is connected to the output terminal of the second operational amplifier U2 and is used to filter the output of the second operational amplifier U2. Specifically, the filter unit 113 includes a resistor R8 and a capacitor C6. The first end of the resistor R8 is connected to the output terminal of the second operational amplifier U2, the second end of the resistor R8 is connected to the protection unit 114 and the first end of the capacitor C6, and the second end of the capacitor C6 is grounded.
[0042] The protection unit 114 includes a first diode D1 and a second diode D2. The cathode of the first diode D1 is connected to the second terminal of the resistor R8 and the control unit 13, and the anode of the first diode D1 is grounded. The anode of the second diode D2 is connected to the cathode of the first diode D1, and the cathode of the second diode is connected to the first power supply terminal VCP.
[0043] Combination Figure 2 In one embodiment of this application, the shorting unit 12 includes: a first shorting unit 121 and a second shorting unit 122. The first shorting unit 121 is connected to the control unit 13 and the first detection pin P1 and grounded, and is used to ground the first detection pin P1; the second shorting unit 122 is connected to the control unit 13 and the second detection pin P2 and grounded, and is used to ground the second detection pin P2.
[0044] Specifically, this application sets up independent first shorting unit 121 and second shorting unit 122. During calibration, the first detection pin P1 and the second detection pin P2 are grounded respectively, which can shield common-mode interference and ensure that the interference detection signal detected during the calibration process is more accurate, thereby making the calibration detection result more accurate.
[0045] In one specific embodiment, the first short-circuit unit 121 includes: a first switch Q1, the first path terminal of the first switch Q1 is connected to the first detection pin P1, the second path terminal of the first switch Q1 is grounded, and the control terminal of the first switch Q1 is connected to the control unit 13.
[0046] Furthermore, the first short-circuit unit 121 also includes a first resistor Ra and a second resistor Rb. The first end of the first resistor Ra is connected to the control unit 13, and the second end of the first resistor Ra is connected to the control terminal of the first switch Q1; the first end of the second resistor Rb is connected to the control terminal of the first switch Q1, and the second end of the second resistor Rb is grounded.
[0047] The second short-circuit unit 122 includes a second switch Q2. The first path terminal of the second switch Q2 is connected to the second detection pin P2, the second path terminal of the second switch Q2 is grounded, and the control terminal of the second switch Q2 is connected to the control unit 13.
[0048] Furthermore, the second short-circuit unit 122 also includes a third resistor Rc and a fourth resistor Rd. The first end of the third resistor Rc is connected to the control terminal of the second switch Q2, and the second end of the third resistor Rc is connected to the control unit 13; the first end of the fourth resistor Rd is connected to the control terminal of the second switch Q2, and the second end of the fourth resistor Rd is grounded.
[0049] It should be noted that the calibration process is performed under no-load conditions. At this time, no current is connected to the first detection pin P1 and the second detection pin P2, and they are grounded, ensuring that the inputs to the first detection pin P1 and the second detection pin P2 are zero. The control unit 13 acquires the interference detection signal. During detection, the interference detection signal is used to calibrate the detection signal to obtain the detection result. Specifically, taking current detection as an example, the detection object is the sampling resistor, and the calculation formula for the detection result is: Iout=VAD_MCU / (R_sence AV0 AV1) - B1; Where Iout represents the current detection result, VAD_MCU represents the detection signal, R_sence represents the resistance value of the sampling resistor, AV0 represents the amplification ratio of the first operational comparator, AV1 represents the amplification ratio of the second operational comparator, and B1 represents the interference detection signal.
[0050] Specifically, the calibration signal is generated based on calibration flag data. Internally, the system sets calibration flag data CZ. When calibration is required, CZ is set to 0 (CZ=0). At this time, control unit 13 outputs a first control signal S1 and a second control signal S2, which respectively turn on the first switch Q1 and the second switch Q2, grounding the first detection pin P1 and the second detection pin P2. Control unit 13 then receives the interference detection signal output by detection unit 11. Upon completion of calibration, CZ is set to 1 (CZ=1).
[0051] Understandably, calibration can be performed at the device manufacturing stage. After obtaining the interference detection signal during calibration, the calibration flag data CZ is set to 1. Furthermore, considering the effects of product aging, offset and disturbance errors may change after a period of use. Therefore, users can manually perform the calibration process after the product leaves the factory. During calibration, the calibration flag data CZ is set to 0, and after calibration, it is set to 1.
[0052] In another embodiment, the calibration signal is generated based on the calibration flag data CZ or the reference current corresponding to the reference signal Vref. Specifically, the reference current corresponding to the reference signal Vref is the current value calculated by the control unit 13 based on Vref, which can be used to indicate whether the input is zero, i.e., whether it is in an unloaded state.
[0053] Let the reference current be denoted as Iin_set. When Iin_set-ΔIin ≤ Iin_set ≤ Iin_set + ΔIin, it means that the input is zero, that is, it is in no-load state. ΔIin represents the input current error.
[0054] Specifically, when the calibration flag data CZ is 0 and Iin_set - ΔIin ≤ Iin_set ≤ Iin_set + ΔIin, a calibration signal is generated, and the calibration process is executed. When the calibration flag data CZ is 0, but does not satisfy Iin_set - ΔIin ≤ Iin_set ≤ Iin_set + ΔIin, it indicates that the input is not zero, the current state is not unloaded, no calibration signal is generated, and the calibration process is not executed. Understandably, if the input is not zero, the detected signal cannot accurately represent offset error, interference error, etc., and cannot be used as an interference detection signal; therefore, the calibration process cannot be executed.
[0055] Furthermore, the control unit 13 is also used to determine whether the interference detection signal is within a preset range, and in response, to save the interference detection signal. Specifically, after obtaining the interference detection signal, it further determines whether the interference detection signal is within the preset range to determine whether the interference detection signal is correct.
[0056] In one embodiment, before the products leave the factory, multiple calibration tests can be performed on products of the same batch to identify multiple interference detection signals. A preset range is then determined based on these interference detection signals. Understandably, if the currently detected interference detection signal significantly deviates from the preset range, it indicates that the currently detected interference detection signal is inaccurate and other interference may exist. In this case, the interference detection signal is not saved and is discarded. If the currently detected interference detection signal is within the preset range, it is saved and used for subsequent calibration of the detection signal.
[0057] The detection circuit of this application can detect interference detection signals that characterize the offset error of the operational amplifier and the interference error of the reference signal, so as to calibrate the detection signal during signal detection, thereby obtaining accurate detection results and improving detection accuracy.
[0058] See Figure 4 The above is a flowchart illustrating an embodiment of the detection method of this application, specifically including: Step S41: In response to the calibration signal, ground the first detection pin and the second detection pin of the detection unit to detect the interference detection signal.
[0059] Combination Figure 5 Step S41 specifically includes: Step S51: Whether to perform calibration.
[0060] If so, proceed to step S52: Calibrate flag data CZ=0?.
[0061] Understandably, if calibration is required, the calibration flag data CZ should be set to 0.
[0062] Execute step S53 to determine if Iin_set - ΔIin ≤ Iin_set ≤ Iin_set + ΔIin? If so, execute step S54: set the shorting unit to the first state, that is, turn on the first switch and the second switch, and ground the first detection pin P1 and the second detection pin P2.
[0063] Step S55: Acquire interference detection signal.
[0064] Step S56: Determine whether the interference detection signal is within the preset range.
[0065] If yes, it indicates that the interference detection signal is correct. Proceed to step S58: save the interference detection signal and set the calibration flag data CZ to 1. Calibration is complete. If no, proceed to step S57: set the shorting unit to the second state, that is, disconnect the first switch and the second switch, and the first detection pin P1 and the second detection pin P2 are not grounded.
[0066] Step S42: Receive the detection signal output by the detection unit and calibrate the detection signal using the interference detection signal to obtain the detection result.
[0067] During the detection process, the detection signal output by the detection unit is received, and the detection signal is calibrated using the interference detection signal to obtain the detection result.
[0068] The detection method of this application can detect interference detection signals that characterize the offset error of the operational amplifier and the interference error of the reference signal, which are used to calibrate the detection signal during signal detection, thereby obtaining accurate detection results and improving detection accuracy.
[0069] See Figure 6 , Figure 6 This is a schematic diagram of the structure of an embodiment of the power supply circuit provided in this application. The power supply circuit 60 of this application includes a detection circuit 61, which is the detection circuit of any of the above embodiments.
[0070] The power supply circuit of this application can detect interference detection signals that characterize the offset error of the operational amplifier and the interference error of the reference signal, and use them to calibrate the detection signal during signal detection, thereby obtaining accurate detection results and improving detection accuracy.
[0071] The above are merely embodiments of this application and do not limit the scope of patent protection of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of this application.
Claims
1. A detection circuit, characterized in that, include: A detection unit, comprising a first detection pin, a second detection pin, and an output pin, is used to connect to the object being detected. The shorting unit connects the first detection pin and the second detection pin and grounds them; The control unit connects the output pin and the shorting unit; The control unit is used to receive the detection signal output by the detection unit and calibrate the detection signal using the interference detection signal to obtain the detection result; wherein, the control unit is also used to respond to the calibration signal to control the shorting unit to be in a first state, grounding the first detection pin and the second detection pin to obtain the interference detection signal.
2. The detection circuit according to claim 1, characterized in that, The short-circuit unit includes: The first shorting unit is connected to the control unit and the first detection pin and grounded, and is used to ground the first detection pin; The second shorting unit is connected to the control unit and the second detection pin and grounded, and is used to ground the second detection pin.
3. The detection circuit according to claim 2, characterized in that, The first shorting unit includes: A first switch, wherein the first path terminal of the first switch is connected to the first detection pin, the second path terminal of the first switch is grounded, and the control terminal of the first switch is connected to the control unit; The second shorting unit includes The second switch has its first path terminal connected to the second detection pin, its second path terminal grounded, and its control terminal connected to the control unit.
4. The detection circuit according to claim 3, characterized in that, The first shorting unit further includes: A first resistor, with its first end connected to the control unit and its second end connected to the control terminal of the first switch; The second resistor has its first end connected to the control terminal of the first switch and its second end grounded. The second shorting unit also includes; A third resistor, the first end of which is connected to the control terminal of the second switch, and the second end of which is connected to the control unit; The fourth resistor has its first end connected to the control terminal of the second switch and its second end grounded.
5. The detection circuit according to claim 1, characterized in that, The detection unit includes: a first amplification unit and a second amplification unit; The first input terminal of the first amplification unit is connected to the first detection pin, and the second input terminal of the first amplification unit is connected to the second detection pin; the second amplification unit is connected to the output terminal of the first amplification unit and the control unit.
6. The detection circuit according to claim 5, characterized in that, The detection unit further includes: A pre-bias unit, connected to the second input terminal of the first amplification unit, is used to provide a reference signal; The filtering unit is connected to the output terminal of the second amplification unit; The protection unit connects the filtering unit and the control unit.
7. The detection circuit according to claim 6, characterized in that, The calibration signal is generated based on calibration flag data; or The calibration signal is generated based on the calibration flag data or the reference current corresponding to the reference signal.
8. The detection circuit according to claim 1, characterized in that, The control unit is also used to determine whether the interference detection signal is within a preset range, and in response, to save the interference detection signal.
9. A detection method, characterized in that, The detection method is implemented based on the detection circuit according to any one of claims 1 to 8, and the detection method includes: In response to the calibration signal, the first detection pin and the second detection pin of the detection unit are grounded to detect the interference detection signal; The detection signal output by the detection unit is received, and the detection signal is calibrated using the interference detection signal to obtain the detection result.
10. A power supply circuit, characterized in that, Includes the detection circuit described in any one of claims 1 to 8.
