Sampling circuit and circuit control method
By combining a differential amplifier circuit and a voltage regulator circuit, and utilizing clamping diodes and voltage divider resistors to reverse conduct when there is an overcurrent, the problem of operational amplifier output voltage compression is solved, achieving high precision in current sampling and accurate overcurrent protection, thus improving circuit safety.
Patent Information
- Application Number
- CN202211579992.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-12-09
AI Technical Summary
In the prior art, the output voltage of the operational amplifier at the maximum overcurrent point is compressed, resulting in low current sampling accuracy, inability to accurately perform overcurrent protection, and low circuit safety.
A differential amplifier circuit and a voltage regulator circuit are used. The voltage regulator circuit includes a clamping diode and a voltage divider resistor. It conducts in reverse when there is an overcurrent and detects the voltage through the voltage divider resistor to activate the overcurrent protection.
It improves the accuracy of current sampling and overcurrent protection, thereby enhancing circuit safety.
Smart Images

Figure CN116231606B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit detection, and in particular to a sampling circuit and a circuit control method. BACKGROUND
[0002] When sampling the current in the circuit, the voltage in the sampling circuit can be sampled through the analog-to-digital converter (ADC) in the MCU, and then the current in the circuit can be determined through the voltage. After sampling the current, the power reporting or power overcurrent protection can be performed through the sampled current.
[0003] Currently, after the operational amplifier amplifies the voltage in the circuit, the MCU can obtain the voltage in the circuit at the output end of the operational amplifier, and then obtain the current in the circuit. Since the circuit has an overcurrent phenomenon, at the maximum overcurrent point, the output voltage of the operational amplifier needs to be less than or equal to the maximum voltage of the input end of the MCU.
[0004] However, in the above detection method, the normal output voltage range of the operational amplifier at the rated load point is also compressed. For example, if the maximum overcurrent point is 1.5 times the rated load point, the voltage at the maximum overcurrent point is the same as the input voltage of the MCU, and the output voltage range of the operational amplifier at the rated load point is compressed by about 30%. The digital quantity of the MCU is also small, which makes the sampling accuracy of the current low, and the electronic device cannot accurately perform overcurrent protection on the circuit, thereby reducing the safety of the circuit. How to improve the safety of the circuit has become a problem to be solved. SUMMARY
[0005] The present application provides a sampling circuit and a circuit control method to solve the technical problem of low safety of the circuit in the prior art.
[0006] In a first aspect, the present application provides a sampling circuit, which comprises a differential amplification circuit and a voltage stabilizing circuit, wherein:
[0007] The output end of the differential amplification circuit is connected with the voltage stabilizing circuit.
[0008] When the input current of the sampling circuit is the rated load current, the voltage stabilizing circuit is cut off; when the input current of the sampling circuit is overcurrent, the voltage stabilizing circuit is reversely conducted. The voltage stabilizing circuit further comprises a clamping diode and a voltage dividing resistor. One end of the clamping diode is connected with the output end of the differential amplification circuit, the other end of the clamping diode is connected with one end of the voltage dividing resistor, and the other end of the voltage dividing resistor is grounded.
[0009] The voltage stabilizing circuit can be reversely conducted when the input current of the sampling circuit is overcurrent, and thus the computing device can determine that the sampling circuit is overcurrent when the voltage stabilizing circuit is detected, and further start overcurrent protection, so that the computing device can accurately and timely determine the overcurrent state of the sampling circuit, and improve the safety of the sampling circuit and the computing device. When the circuit is not overcurrent, the clamping diode is not conducted, and the voltage detection device can accurately detect the voltage in the circuit. When the circuit is overcurrent, the clamping diode is conducted, and the voltage dividing resistor can divide the output voltage of the operational amplifier. When the voltage detection device detects the voltage on the voltage dividing resistor, the voltage detection device can start overcurrent protection, so that the voltage detection device can accurately determine whether the circuit is overcurrent, and improve the safety of the circuit.
[0010] In a possible implementation, the sampling circuit further includes a voltage detection device, a first voltage output end and a second voltage output end, the first voltage output end is an output end of the differential amplification circuit, the second voltage output end is one end of the voltage dividing resistor, the first voltage output end is connected with a first detection port of the voltage detection device, and the second voltage output end is connected with a second detection port of the voltage detection device.
[0011] The sampling circuit provided in the application can have the following beneficial effects: the voltage detection device can accurately detect the voltage of the output end of the differential amplification circuit based on the first detection port, and further obtain the current in the sampling circuit, and the second detection port can accurately determine whether the sampling circuit is overcurrent, and improve the safety of the circuit.
[0012] In a possible implementation, the differential amplification circuit further includes an operational amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor and a fifth resistor, and the operational amplifier further includes a first input end, a second input end and an output end.
[0013] One end of the first resistor and one end of the second resistor are connected with the first input end of the operational amplifier, one end of the third resistor and one end of the fourth resistor are connected with the second input end of the operational amplifier, the other end of the second resistor is connected with the output end of the operational amplifier, the other end of the fourth resistor is grounded, and one end of the fifth resistor is connected with the output end of the operational amplifier.
[0014] The sampling circuit provided in the application can have the following beneficial effects: the differential amplification circuit can amplify the small input voltage signal, and further improve the accuracy of voltage detection and the precision of current detection.
[0015] In a possible implementation, the sampling circuit further includes a sampling resistor; the other end of the first resistor is connected to one end of the sampling resistor, and the other end of the third resistor is connected to the other end of the sampling resistor.
[0016] The sampling circuit provided in the application can have the following beneficial effects: the sampling resistor can sample the current in the input sampling circuit, the overcurrent protection mechanism is started when the sampling current overflows, and the safety of the circuit is improved.
[0017] In a possible implementation, the differential amplification circuit further includes a filtering capacitor, and the other end of the fifth resistor is connected to one end of the filtering capacitor, and the other end of the filtering capacitor is grounded.
[0018] The sampling circuit provided in the application can have the following beneficial effects: the filtering capacitor can filter the output voltage of the operational amplifier, the interference of the output voltage is reduced, and the accuracy of voltage detection is improved.
[0019] In a possible implementation, the rated load voltage output by the operational amplifier is less than or equal to the reverse breakdown voltage of the clamping diode, the reverse breakdown voltage is less than or equal to the overcurrent voltage when the current overflows, the overcurrent voltage is less than or equal to the maximum input voltage of the voltage detection device, and the overcurrent voltage is also less than the power supply voltage of the operational amplifier.
[0020] The sampling circuit provided in the application can have the following beneficial effects: because the rated load voltage is less than or equal to the reverse breakdown voltage, when the circuit does not overflow, the voltage detection device can accurately detect the output voltage of the differential amplification circuit, when the current overflows, the voltage detection device can determine that the sampling circuit overflows based on the voltage of the voltage dividing resistor, and the overcurrent protection mechanism is started, and the safety of the circuit is improved.
[0021] In a second aspect, the application provides a circuit control method, which includes the following steps.
[0022] The first voltage detected by the first detection port of the voltage detection device in the sampling circuit is obtained, and the sampling circuit is the sampling circuit in any one of the first aspect.
[0023] The current of the sampling circuit is determined according to the first voltage.
[0024] The circuit control method provided in the application can have the following beneficial effects: because the rated load voltage output by the operational amplifier can be equal to the maximum input voltage of the voltage detection device, the output voltage at the rated load point does not need to be compressed, and the accuracy of current detection is improved.
[0025] In a possible implementation, the method further includes:
[0026] obtaining a second voltage detected by a second detection port of the voltage detection device;
[0027] when the second voltage is greater than zero or a first threshold value, determining that a circuit state of the sampling circuit is an overcurrent state.
[0028] The circuit control method provided in the application can have the following beneficial effects: the voltage detection device can accurately determine whether the circuit is in an overcurrent state according to the second voltage, and thus can accurately and timely perform overcurrent protection on the circuit, thereby improving the use safety of the circuit.
[0029] In a third aspect, the application provides a circuit control apparatus, which includes an obtaining module and a determining module, and wherein:
[0030] The obtaining module is configured to obtain a first voltage detected by a first detection port of a voltage detection device in a sampling circuit, the sampling circuit being any one of the sampling circuits in the above embodiments.
[0031] The determining module is configured to determine a current of the sampling circuit according to the first voltage.
[0032] In a possible implementation, the obtaining module is further configured to:
[0033] obtain a second voltage detected by a second detection port of the voltage detection device;
[0034] when the second voltage is greater than zero or a first threshold value, determine that a circuit state of the sampling circuit is an overcurrent state.
[0035] In a fourth aspect, the application provides a computing device, which includes a processor and a memory.
[0036] The memory is configured to store a computer program.
[0037] The processor is configured to execute the computer program stored in the memory, so that the computing device performs the method of the first aspect.
[0038] In a fifth aspect, the application provides a computer-readable storage medium, which stores computer execution instructions. When a processor executes the computer execution instructions, the method of the first aspect and various possible methods related to the first aspect are implemented.
[0039] In a sixth aspect, the application provides a computer program product, which includes a computer program. When a processor executes the computer program, the method of the first aspect and various possible methods related to the first aspect are implemented.
[0040] The application provides a sampling circuit and a circuit control method. The sampling circuit comprises a differential amplification circuit and a voltage stabilizing circuit. An output end of the differential amplification circuit is connected with the voltage stabilizing circuit. When an input current of the sampling circuit is a rated load current, the voltage stabilizing circuit is cut off. When the input current of the sampling circuit is overcurrent, the voltage stabilizing circuit is reversely conducted. According to the sampling circuit, when the input current of the sampling circuit is overcurrent, the voltage stabilizing circuit can be reversely conducted. Therefore, when a voltage is detected on the voltage stabilizing circuit, the computing device can determine that the sampling circuit is overcurrent, and then start overcurrent protection. In this way, the computing device can accurately and timely determine the overcurrent state of the sampling circuit, improve the safety of the sampling circuit, and improve the safety of the computing device. BRIEF DESCRIPTION OF DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0042] Figure 1 A structure schematic diagram of a sampling circuit provided for the embodiments of the present application is shown in the figure.
[0043] Figure 2 A structure schematic diagram of another sampling circuit provided for the embodiments of the present application is shown in the figure.
[0044] Figure 3A A use process schematic diagram of a sampling circuit provided for the embodiments of the present application is shown in the figure.
[0045] Figure 3B A use process schematic diagram of another sampling circuit provided for the embodiments of the present application is shown in the figure.
[0046] Figure 4 A flow schematic diagram of a circuit control method provided for the embodiments of the present application is shown in the figure.
[0047] Figure 5 A flow schematic diagram of a method for determining a circuit state provided for the embodiments of the present application is shown in the figure.
[0048] Figure 6 A structure schematic diagram of a circuit control device provided for the embodiments of the present application is shown in the figure.
[0049] Figure 7 A structure schematic diagram of a computing device provided for the embodiments of the present application is shown in the figure. DETAILED DESCRIPTION
[0050] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements, unless the context clearly dictates otherwise. The following description of exemplary embodiments is not intended to represent all embodiments in accordance with the present application. Rather, they are merely examples in accordance with some aspects of the present application as detailed in the appended claims.
[0051] It should be noted that, in this document, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0052] The current sampling is used for reporting the circuit power and the power overcurrent protection. For example, the MCU can detect the voltage in the circuit, and then obtain the current in the circuit through the voltage. In actual application, after the current passes through the sampling resistor, the sampling signal can be amplified by the operational amplifier, the MCU obtains the voltage value after amplification output by the operational amplifier, and converts the voltage value into a recognizable digital signal, and then obtains the current in the circuit.
[0053] At present, the MCU can obtain the voltage in the circuit at the output end of the operational amplifier. Since the circuit has an overcurrent condition, when the current is the maximum overcurrent value, the output voltage after amplification of the operational amplifier needs to be less than or equal to the maximum voltage of the input end of the MUC. However, in this circuit structure, the output voltage of the operational amplifier at the rated load point is also compressed. For example, if the maximum input voltage of the MCU is U, the rated current is I, and the maximum overcurrent is 1.5I, when the current in the circuit is 1.5I, the output voltage of the operational amplifier cannot exceed the maximum input voltage of the MCU, so it is U. Therefore, when the current in the circuit is the rated current A, the output voltage of the operational amplifier is about 2 / 3 of U. The output voltage of the operational amplifier is compressed, and when the MCU converts the analog signal into a digital signal, the digital quantity is also small, and the precision of the digital signal output by the MCU is also reduced, so that the precision of the current sampling is low, and the accuracy of the overcurrent protection of the circuit is low when the overcurrent protection is performed, thereby reducing the safety of the circuit.
[0054] To solve the above technical problems, an embodiment of the present application provides a sampling circuit, the sampling circuit including a differential amplifier circuit and a voltage regulator circuit, the voltage regulator circuit including a clamping diode and a voltage divider resistor, one end of the clamping diode connected to the output end of the differential amplifier circuit, the other end of the clamping diode connected to one end of the voltage divider resistor, and the other end of the voltage divider resistor grounded. When the input current of the sampling circuit is the rated load current, the voltage regulator circuit is cut off. When the input current of the sampling circuit is overcurrent, the voltage regulator circuit is reversely conductive. According to the above sampling circuit, when the input current of the sampling circuit is less than or equal to the rated load current, the clamping diode is non-conductive and no current exists on the voltage divider resistor. When the input current of the sampling circuit is overcurrent, the clamping diode reversely breaks down and operates in the reverse breakdown region. Therefore, a voltage exists on the voltage divider resistor. The computing device determines that the circuit has overcurrent based on the voltage of the voltage divider resistor, and then activates the overcurrent protection mechanism to shut down the circuit, thereby improving the safety of the sampling circuit and the safety of the computing device.
[0055] Next, combine Figure 1 , the sampling circuit of the embodiment of the present application is described. Through the sampling circuit, it is possible to accurately determine whether the circuit is overcurrent, thereby improving the safety of the circuit.
[0056] Figure 1 A schematic diagram of a sampling circuit provided for an embodiment of the application. Figure 1 The sampling circuit may include a differential amplifier circuit and a voltage stabilizing circuit. The output end of the differential amplifier circuit is connected to the voltage stabilizing circuit. When the input current of the sampling circuit is the rated load current, the voltage stabilizing circuit is cut off. When the input current of the sampling circuit is overcurrent, the voltage stabilizing circuit is reversed. Optionally, the differential amplifier circuit can amplify the voltage in the sampling circuit, and the voltage stabilizing circuit can divide the voltage at the output end of the differential amplifier circuit. For example, when the input current of the sampling circuit is less than or equal to the rated load current, the voltage stabilizing circuit is cut off, and there is no current in the voltage stabilizing circuit. When the input current of the sampling circuit is overcurrent, the voltage stabilizing circuit is reversed, and current flows through the voltage stabilizing circuit, that is, current flows through the voltage divider resistor R6, thereby dividing the voltage at the output end of the differential amplifier circuit.
[0057] Specifically, the voltage stabilization circuit includes a clamping diode Z1 and a voltage divider resistor R6. One end of the clamping diode Z1 is connected to the output of the differential amplifier circuit, and the other end of the clamping diode is connected to one end of the voltage divider resistor R6. The other end of the voltage divider resistor R6 is grounded. The clamping diode in the voltage stabilization circuit stabilizes the voltage by utilizing the characteristic that after a diode undergoes reverse breakdown, the reverse voltage does not vary with the reverse current within a certain reverse current range. The clamping diode has the unidirectional conductivity of a conventional diode and can operate in a reverse breakdown state.
[0058] Optionally, when the reverse voltage of the clamping diode is low, the clamping diode is off, when the reverse voltage of the clamping diode reaches a certain value, the reverse current suddenly increases, the clamping diode enters the breakdown region, and the reverse voltage across the clamping diode can remain essentially unchanged even if the reverse current changes in a large range, but if the reverse current increases to a large value, the clamping diode will be completely broken and damaged.
[0059] Optionally, the clamping diode can limit the voltage in the sampling circuit. For example, the clamping diode can limit the voltage in the circuit through the reverse breakdown voltage. For example, when the output voltage of the differential amplification circuit in the sampling circuit is less than or equal to the reverse breakdown voltage of the clamping diode, the clamping diode is not conductive, and when the output voltage of the differential amplification circuit in the sampling circuit is greater than the reverse breakdown voltage of the clamping diode, the clamping diode is reverse breakdown and works in the reverse breakdown region.
[0060] Optionally, the voltage dividing resistor is used to divide the voltage in the voltage stabilizing circuit. For example, since the clamping diode is connected in series with the voltage dividing resistor, the voltage dividing resistor can divide the voltage in the voltage stabilizing circuit. For example, when the clamping diode is reverse breakdown, if the circuit voltage is 5V and the clamping voltage of the clamping diode is 4V, the voltage of the voltage dividing resistor is 1V.
[0061] Optionally, the voltage stabilizing circuit can divide the voltage output by the operational amplifier. For example, the reverse breakdown voltage of the clamping diode is U1, and the output voltage of the operational amplifier is U2. If U2 is less than or equal to U1, the clamping diode is not conductive, the voltage stabilizing circuit is open, and the voltage stabilizing circuit will not divide the voltage. If U2 is greater than U1, the clamping diode is reverse breakdown, the voltage stabilizing circuit is reverse conductive, and the voltage stabilizing circuit can divide U2.
[0062] The differential amplification circuit further comprises an operational amplifier, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, and a fifth resistor R5. The operational amplifier further comprises a first input terminal, a second input terminal, and an output terminal. The first resistor R1 and the second resistor R2 can be connected to the first input terminal of the operational amplifier, and the second resistor R2 is further connected to the output terminal of the operational amplifier. For example, one end of the first resistor and one end of the second resistor are connected to the first input terminal of the operational amplifier, and the other end of the second resistor is connected to the output terminal of the operational amplifier.
[0063] Optionally, the third resistor R3 and the fourth resistor R4 can be connected to the second input terminal of the operational amplifier, and the fourth resistor R4 can be grounded. For example, one end of the third resistor and one end of the fourth resistor are connected to the second input terminal of the operational amplifier, and the other end of the fourth resistor is grounded. Optionally, the fifth resistor R5 can be connected to the output terminal of the operational amplifier. For example, the output terminal of the operational amplifier can be connected to one end of the fifth resistor.
[0064] Optionally, the resistance of the first resistor is the same as the resistance of the third resistor. For example, if the resistance of the first resistor is R, the resistance of the third resistor is also R, and if the resistance of the first resistor is 10R, the resistance of the third resistor is also 10R. Optionally, the resistance of the second resistor is the same as the resistance of the fourth resistor. For example, if the resistance of the second resistor is R, the resistance of the fourth resistor is also R, and if the resistance of the second resistor is 10R, the resistance of the fourth resistor is also 10R.
[0065] It should be noted that the resistance of the first resistor and the third resistor can be the same as the resistance of the second resistor and the fourth resistor, and the resistance of the first resistor and the third resistor can also be different from the resistance of the second resistor and the fourth resistor, and the embodiments of the present application do not limit this, and in actual application, due to the tolerance design in the sampling circuit and the error in the resistance production, the actual resistance of the first resistor and the third resistor can have a small difference, and the resistance between the second resistor and the fourth resistor can also have a small difference.
[0066] Optionally, the operational amplifier can amplify the voltage. For example, in actual application, the current in the circuit can be obtained by detecting the voltage in the circuit, but after the current is processed by the sampling resistor, if the voltage signal is small, the voltage in the circuit cannot be accurately detected, therefore, the voltage in the circuit can be amplified by the operational amplifier, and the current sampling accuracy in the circuit can be improved. Optionally, the amplification factor of the operational amplifier is associated with the feedback resistor, and the amplification process of the operational amplifier will not be described herein.
[0067] Optionally, the differential amplification circuit further comprises a filter capacitor C1, wherein the fifth resistor in the differential amplification circuit can be connected with the filter capacitor C1, and the filter capacitor C1 can also be grounded. For example, one end of the fifth resistor in the differential amplification circuit can be connected with the output end of the operational amplifier, the other end of the fifth resistor can be connected with one end of the filter capacitor, and the other end of the filter capacitor can be grounded. In this way, after the voltage is amplified by the operational amplifier, the output voltage has interference signals, and the interference signals in the output voltage of the operational amplifier can be filtered by the fifth resistor and the filter capacitor, and then a smooth voltage sampling signal is obtained, and the voltage sampling accuracy is improved.
[0068] Optionally, the sampling circuit further comprises a sampling resistor R7. The sampling resistor R7 can sample the current in the circuit. Optionally, the first resistor and the third resistor can be connected to the sampling resistor. For example, in the differential amplifier circuit, one end of the first resistor is connected to the first input terminal of the operational amplifier, one end of the third resistor is connected to the second input terminal of the operational amplifier, the other end of the first resistor is connected to one end of the sampling resistor, the other end of the third resistor is connected to the other end of the sampling resistor, and one end of the sampling resistor is further connected to the negative electrode of the power supply, and the other end of the sampling resistor can be further connected to the positive electrode of the power supply. In this way, when the current flows from the other end of the sampling resistor to one end of the sampling resistor, the sampling resistor can sample the current in the circuit, and the voltage signal of the sampling resistor R7 can be amplified based on the differential amplifier circuit, thereby improving the accuracy of voltage sampling.
[0069] The embodiment of the present application provides a sampling circuit, which comprises a differential amplifier circuit, a voltage stabilizing circuit and a sampling resistor. The differential amplifier circuit comprises an operational amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor and a filter capacitor. The operational amplifier further comprises a first input terminal, a second input terminal and an output terminal. One end of the first resistor and one end of the second resistor are connected to the first input terminal of the operational amplifier. One end of the third resistor and one end of the fourth resistor are connected to the second input terminal of the operational amplifier. The other end of the first resistor is connected to one end of the sampling resistor. The other end of the third resistor is connected to the other end of the sampling resistor. The other end of the sampling resistor is further connected to the positive electrode of the power supply. One end of the sampling resistor is further connected to the negative electrode of the power supply. The other end of the second resistor is connected to the output terminal of the operational amplifier. The other end of the fourth resistor is grounded. One end of the fifth resistor is connected to the output terminal of the operational amplifier. The other end of the fifth resistor is connected to one end of the filter capacitor. The other end of the filter capacitor is grounded. The voltage stabilizing circuit further comprises a clamping diode and a voltage dividing resistor. One end of the clamping diode is connected to the output terminal (the other end of the fifth resistor) of the differential amplifier circuit. The other end of the clamping diode is connected to one end of the voltage dividing resistor. The other end of the voltage dividing resistor is grounded. According to the structure of the above sampling circuit, when the input current of the sampling circuit is the rated load current, the clamping diode in the voltage stabilizing circuit is not conductive, and the voltage stabilizing circuit is cut off. When the input current of the sampling circuit is overcurrent, the overcurrent voltage is greater than or equal to the reverse breakdown voltage of the clamping diode, the clamping diode is reversely broken down, and the clamping diode can work in the reverse breakdown region. There is a voltage across the voltage dividing resistor. Therefore, as long as the voltage across the voltage dividing resistor can be detected, the computing device can determine that the current in the sampling circuit is overcurrent, and then start the overcurrent protection mechanism to shut down the circuit, thereby improving the accuracy of overcurrent protection and the safety of the computing device.
[0070] In Figure 1 On the basis of the embodiment shown in the foregoing, the structure of the above sampling circuit will be further described in combination with Figure 2 .
[0071] Figure 2 Another structure schematic diagram of a sampling circuit provided by an embodiment of the present disclosure is provided. Please refer to Figure 2 The sampling circuit can include a differential amplification circuit, a voltage stabilizing circuit, a sampling resistor R7, a voltage detection device MCU, a first voltage output end and a second voltage output end. The differential amplification circuit can include an operational amplifier, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a filter capacitor C1. The voltage stabilizing circuit can include a clamping diode Z1 and a voltage dividing resistor R6. The output end of the differential amplification circuit is connected with the voltage stabilizing circuit.
[0072] Specifically, one end of the first resistor and one end of the second resistor are connected with the first input end of the operational amplifier. One end of the third resistor and one end of the fourth resistor are connected with the second input end of the operational amplifier. The other end of the first resistor is connected with one end of the sampling resistor. The other end of the third resistor is connected with the other end of the sampling resistor. The other end of the sampling resistor is also connected with the positive electrode of the power supply. One end of the sampling resistor is also connected with the negative electrode of the power supply. The other end of the second resistor is connected with the output end of the operational amplifier. The other end of the fourth resistor is grounded. One end of the fifth resistor is connected with the output end of the operational amplifier. One end of the filter capacitor is connected with the other end of the fifth resistor. The other end of the filter capacitor is grounded. One end of the clamping diode is connected with the output end of the differential amplification circuit. The other end of the clamping diode is connected with one end of the voltage dividing resistor. The other end of the voltage dividing resistor is grounded.
[0073] Optionally, the first voltage output end can be the output end of the differential amplification circuit. The second voltage output end can be one end of the voltage dividing resistor. Optionally, the voltage detection device MCU is configured to detect the output voltage of the operational amplifier and the voltage of the voltage dividing resistor. Optionally, the voltage detection device includes a first detection port and a second detection port. The first voltage output end can be connected with the first detection port of the voltage detection device. The second voltage output end can be connected with the second detection port of the voltage detection device. For example, the first voltage output end can be the other end of the fifth resistor. The second voltage output end can be one end of the voltage dividing resistor. The first detection port of the voltage detection device can be connected with the other end of the fifth resistor. The second detection port of the voltage detection device can be connected with one end of the voltage dividing resistor.
[0074] Optionally, the first detection port of the voltage detection device is configured to detect the output voltage of the differential amplification circuit when the voltage stabilizing circuit is not conducting, and the second detection port is configured to detect the voltage divided by the voltage dividing resistor when the voltage stabilizing circuit is conducting. For example, when the clamping diode is not conducting, the voltage stabilizing circuit is off, and the voltage detection device can detect the output voltage of the operational amplifier through the first detection port. When the clamping diode is conducting, the voltage stabilizing circuit is on, and the voltage detection device can detect the voltage of the voltage dividing resistor through the second detection port.
[0075] In the embodiment, each voltage needs to satisfy the following conditions: the rated load voltage of the output of the operational amplifier is less than or equal to the reverse breakdown voltage of the clamping diode, the reverse breakdown voltage is less than or equal to the overcurrent voltage when the current is overcurrent, the overcurrent voltage is less than or equal to the maximum input voltage of the voltage detection device, and the overcurrent voltage is also less than the supply voltage of the operational amplifier. When the current in the sampling circuit is the rated load current, the output voltage of the operational amplifier can be the rated load voltage. For example, in the actual application process, the smaller the difference between the rated load voltage output by the operational amplifier and the maximum input voltage of the voltage detection device, the lower the voltage compression degree, and the higher the current detection accuracy. The overcurrent voltage is less than the supply voltage of the operational amplifier, which avoids damage to the operational amplifier when the circuit is overcurrent, and improves the safety of the sampling circuit.
[0076] Optionally, the rated load voltage is less than or equal to the reverse breakdown voltage. Optionally, the reverse breakdown voltage is less than or equal to the overcurrent voltage. For example, in actual application, if there is no voltage stabilizing circuit, in order to improve the current sampling accuracy, the output voltage of the operational amplifier is not compressed, even if the output voltage of the operational amplifier corresponding to the rated load point is equal to the maximum input voltage of the voltage detection device, in this case, if the current in the circuit is overcurrent, the voltage detected by the voltage detection device is also the maximum input voltage, and the voltage detection device cannot determine whether the circuit is overcurrent; and when the voltage stabilizing circuit is set, in order to improve the current sampling accuracy, the output voltage V1 of the operational amplifier corresponding to the rated load point in the embodiment can be greater than the output voltage V2 of the operational amplifier corresponding to the rated load point in the prior art, and even can be close to the maximum input voltage of the voltage detection device, that is, the difference between the rated load voltage output by the operational amplifier and the maximum input voltage of the voltage detection device is smaller than that in the prior art, the voltage compression degree is reduced, and the current sampling accuracy is improved. At this time, since the output voltage of the operational amplifier corresponding to the rated load point is less than the reverse breakdown voltage of the clamping diode, in the case of the rated load, the clamping diode is not turned on, and the voltage detection device can sample the current in the voltage source more accurately; and if the current in the circuit is overcurrent, since the overcurrent voltage is greater than the reverse breakdown voltage of the clamping diode, the clamping diode is reverse breakdown, and works in the reverse breakdown region, and then the voltage of the voltage dividing resistor determines that the circuit is overcurrent, and the voltage detection device can start the overcurrent protection mechanism to shut down the circuit.
[0077] Next, the use process of the sampling circuit shown in Figures 3A-3B will be described. Figure 2
[0078] Figure 3A A use process diagram of a sampling circuit provided by the embodiment of the present application is shown in Figure 3A In the embodiment shown in Figure 3A , the input current of the power supply is not overcurrent, please refer to Figure 3A , the sampling circuit includes a differential amplification circuit, a voltage stabilizing circuit, a sampling resistor R7, a voltage detection device MCU, a first voltage output end A and a second voltage output end B. It should be noted that
[0079] Please refer to Figure 3A After the input voltage is amplified by the operational amplifier, the output voltage of the operational amplifier is V1, and since V1 is less than the reverse breakdown voltage of the clamping diode Z1, the clamping diode Z1 is not conductive, the voltage stabilizing circuit is disconnected, and the voltage detection device MCU can obtain the output voltage V1 of the operational amplifier through the first detection port connected with the first voltage output end A (since the MCU can be equivalent to an infinite resistance, the current on R5 can be approximately 0, and thus the voltages on the left and right sides of R5 are equal), and convert V1 into a digital signal through the ADC module, and then determine the current in the circuit. In this way, since the difference between the rated load voltage and the maximum input voltage is small, the output voltage compression ratio of the operational amplifier is small (or when V1 is equal to the maximum input voltage of the MCU, V1 does not need to be compressed), and thus the voltage detection accuracy of the voltage detection device MCU is improved.
[0080] Figure 3B Another use process diagram of the sampling circuit provided by the embodiment of the present application is provided. In the embodiment shown in Figure 3B , the input current of the power supply has overcurrent, please refer to Figure 3B , the sampling circuit includes a differential amplification circuit, a voltage stabilizing circuit, a sampling resistor R7, a voltage detection device MCU, a first voltage output end A and a second voltage output end B. It should be noted that Figure 3B the circuit elements included in the sampling circuit shown in and the connection relationship between the circuit elements have been described in the above embodiment, and the embodiment of the present application will not be described here.
[0081] Please refer to Figure 3B , after the input voltage is amplified by the operational amplifier, the output voltage of the operational amplifier is V2, and since the current in the circuit has overcurrent, V2 is greater than the reverse breakdown voltage of the clamping diode Z1, and thus the clamping diode Z1 is conductive, the voltage stabilizing circuit is conductive, the output voltage V2 of the operational amplifier can flow to the voltage stabilizing circuit, and the voltage detection device MCU obtains the voltage V3 between the two sides of the voltage dividing resistor through the second detection port connected with the second voltage output end B, and converts the voltage V3 into a digital signal through the ADC module.
[0082] In some embodiments, the output voltage V1 of the operational amplifier corresponding to the rated load point is equal to the maximum input voltage of the voltage detection device, in this case, the clamping diode can also be turned on at the rated load, assuming that the current passing through the voltage stabilizing circuit at the rated load is I1, at this time, the voltage V3 detected by the second detection port of the voltage detection device MCU is I1xR6, when overcurrent, the clamping diode is turned on, at this time, the current passing through the voltage stabilizing circuit is I2, then the voltage V3 detected by the second detection port of the voltage detection device MCU is I2xR6, this voltage is input to the ADC module of the MCU, and the voltage V3 is converted into a digital signal, whether it belongs to an overcurrent state can be determined by the digital signal corresponding to the voltage V3 detected by the second detection port of the MCU, and since V1 is equal to the maximum input voltage of the voltage detection device, i.e., the voltage is not compressed, i.e., the current sampling accuracy is further improved.
[0083] In this way, although the voltage obtained by the voltage detection device MCU through the first detection port cannot determine whether the circuit is overcurrent, the voltage obtained through the second detection port can determine that the sampling circuit has overcurrent (as long as the voltage is detected by the second detection port, it can be determined that the circuit has overcurrent or V3 is greater than the first threshold), and further start the overcurrent protection mechanism, in this way, not only the sampling accuracy of the current can be improved, the accuracy of the sampled current can be improved, but also the overcurrent protection of the circuit can be accurately started, and further the safety of the circuit can be improved.
[0084] The embodiment of the present application provides a sampling circuit, wherein the sampling circuit comprises a differential amplification circuit, a voltage stabilizing circuit, a sampling resistor, a voltage detection device, a first voltage output end and a second voltage output end, the differential amplification circuit comprises an operational amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor and a filter capacitor, the operational amplifier further comprises a first input end, a second input end and an output end, wherein one end of the first resistor and one end of the second resistor are connected with the first input end of the operational amplifier, one end of the third resistor and one end of the fourth resistor are connected with the second input end of the operational amplifier, the other end of the first resistor is connected with one end of the sampling resistor, the other end of the third resistor is connected with the other end of the sampling resistor, the other end of the sampling resistor is further connected with a positive electrode of a power supply, one end of the sampling resistor is further connected with a negative electrode of the power supply, the other end of the second resistor is connected with the output end of the operational amplifier, the other end of the fourth resistor is grounded, one end of the fifth resistor is connected with the output end of the operational amplifier, the other end of the fifth resistor is connected with one end of the filter capacitor, the other end of the filter capacitor is grounded, the first voltage output end is connected with a first detection port of the voltage detection device, and the second voltage output end is connected with a second detection port of the voltage detection device. According to the structure of the above sampling circuit, when the input current of the sampling circuit is the rated load current, the clamping diode in the voltage stabilizing circuit is not turned on, the voltage stabilizing circuit is cut off, and the voltage detection device can determine the voltage based on the first detection port. Since the voltage compression ratio is small, the current accuracy measured by the voltage detection device is high, the accuracy of current sampling is improved, when the input current of the sampling circuit is overcurrent, since the overcurrent voltage is greater than or equal to the reverse breakdown voltage, the clamping diode is reversely broken down, the clamping diode can work in the reverse breakdown region, and there is voltage between the two ends of the voltage dividing resistor. Therefore, as long as the voltage between the two ends of the voltage dividing resistor can be detected, the computing device can determine that the current in the sampling circuit is overcurrent, and then an overcurrent protection mechanism is started to shut down the circuit, the accuracy of overcurrent protection is improved, and the safety of the computing device is improved.
[0085] On the basis of any one of the above embodiments, the embodiment of the present application further comprises a circuit control method, and the following will be described in combination with Figure 4 The circuit control method of the embodiment of the present application is described.
[0086] Figure 4 A flowchart of the circuit control method provided by the embodiment of the present application is shown in FIG. 4. Figure 4 The method flowchart comprises the following steps.
[0087] S401, acquiring a first voltage detected by a first detection port of a voltage detection device in a sampling circuit.
[0088] Optionally, the sampling circuit can comprise a differential amplification circuit, a voltage stabilizing circuit and a voltage detection device, the differential amplification circuit comprises an operational amplifier, the voltage stabilizing circuit comprises a clamping diode and a voltage dividing resistor, and the voltage detection device comprises a first detection port and a second detection port.
[0089] It should be noted that the structure, components and connection relationship of the sampling circuit in the embodiments of the present application can refer to the sampling circuit in the embodiments shown in Figure 2 The embodiments of the present application will not be described here.
[0090] Optionally, the voltage detection device can be an MCU device, and the first detection port in the voltage detection device is used to detect the output voltage of the operational amplifier in the sampling circuit. Optionally, the first voltage can be the output voltage of the operational amplifier, wherein the first voltage can be less than or equal to the rated load voltage of the operational amplifier. For example, when the output voltage of the operational amplifier is equal to the rated load voltage, the voltage stabilizing circuit is not conductive, and therefore the voltage detection device can detect the first voltage output by the operational amplifier.
[0091] Optionally, when the difference between the rated load voltage and the maximum input voltage of the voltage detection device is small, the compression ratio of the operational amplifier to the output first voltage is small, and therefore the accuracy of the voltage detection device can be improved, and the accuracy of the current sampling can be improved.
[0092] Optionally, when the rated load voltage is equal to the maximum input voltage of the voltage detection device, the operational amplifier does not need to compress the output first voltage, and therefore the accuracy of the voltage detection device can be further improved, and the accuracy of the current sampling can be improved.
[0093] S402, determining the current of the sampling circuit according to the first voltage.
[0094] Optionally, the voltage detection device can determine the current in the sampling circuit through the first voltage. For example, after the voltage detection device MCU obtains the first voltage, the first voltage can be converted into a digital signal through an ADC module, and then the current of the sampling circuit can be determined through the first voltage.
[0095] The embodiments of the present application provide a circuit control method, obtaining the first voltage detected by the first detection port of the voltage detection device in the sampling circuit, and determining the current of the sampling circuit according to the first voltage. Since the rated load voltage can be equal to the maximum input voltage of the voltage detection device, and the first voltage is less than or equal to the rated load voltage output by the operational amplifier, the compression ratio of the operational amplifier to the first voltage is small or the operational amplifier does not need to compress the first voltage, and therefore the accuracy of the first voltage is improved, and the accuracy of the sampling current is improved.
[0096] InFigure 4 The above circuit control method further includes a method for determining the circuit state, which will be described below in combination with the embodiment shown in the drawings. Figure 5 The method for determining the circuit state will be described.
[0097] Figure 5 A flowchart of a method for determining the circuit state provided by the embodiment is shown in FIG. 5. Please refer to FIG. 5. Figure 5 The method flowchart can include the following steps.
[0098] S501, obtaining a second voltage detected by a second detection port of a voltage detection device.
[0099] Optionally, the second detection port of the voltage detection device is configured to detect the voltage of the voltage dividing resistor in the sampling circuit. Optionally, the second voltage can be the voltage of the voltage dividing resistor in the sampling circuit. For example, when the output voltage of the operational amplifier is less than the reverse breakdown voltage of the clamping diode, the voltage stabilizing circuit is cut off, and the voltage across the voltage dividing resistor is 0. When the input current of the sampling circuit is overcurrent, the output voltage of the operational amplifier is greater than the reverse breakdown voltage of the clamping diode, the voltage stabilizing circuit is reverse conducting, and the voltage across the voltage dividing resistor is the second voltage.
[0100] Optionally, the second voltage can be determined based on the output voltage of the operational amplifier and the reverse breakdown voltage. For example, when the output voltage of the operational amplifier is greater than the reverse breakdown voltage, if the output voltage of the operational amplifier is U1 and the reverse breakdown voltage is U2, the second voltage across the voltage dividing resistor is U1-U2.
[0101] S502, determining the circuit state of the sampling circuit according to the second voltage.
[0102] Optionally, the circuit state can be an overcurrent state or a non-overcurrent state. For example, if the current in the sampling circuit is greater than the rated load current, it is determined that the circuit state of the sampling circuit is an overcurrent state; if the current in the sampling circuit is less than or equal to the rated load current, it is determined that the circuit state of the sampling circuit is a non-overcurrent state.
[0103] Optionally, the voltage detection device determines the circuit state of the sampling circuit according to the second voltage, specifically: when the second voltage is zero, it is determined that the circuit state of the sampling circuit is a non-overcurrent state; when the second voltage is greater than zero or a first threshold value, it is determined that the circuit state of the sampling circuit is an overcurrent state. For example, if the voltage value of the second voltage obtained by the voltage detection device through the second detection port is 0, it indicates that the clamping diode is not conducting, and the voltage in the sampling circuit does not exceed the rated load voltage, therefore, the current in the sampling circuit also does not exceed the rated load current, and the circuit state of the sampling circuit is a non-overcurrent state.
[0104] When the rated load voltage of the operational amplifier output is less than the maximum input voltage of the MCU, if the voltage value of the second voltage obtained by the voltage detection device through the second detection port is greater than 0, it indicates that the clamping diode is turned on, and the voltage in the sampling circuit has exceeded the clamping voltage (the clamping voltage is greater than the rated load voltage), therefore, the current in the sampling circuit has also exceeded the rated load current, and the circuit state of the sampling circuit is an overcurrent state.
[0105] When the rated load voltage of the operational amplifier output is equal to the maximum input voltage of the MCU, if the second voltage is greater than the first threshold value, it is determined that the circuit state of the sampling circuit is an overcurrent state. For example, if the voltage value of the second voltage obtained by the voltage detection device through the second detection port is greater than the voltage value of the second voltage obtained by the second detection port when the rated load, it indicates that the current flowing through the voltage dividing resistor exceeds the current flowing through the voltage dividing resistor when the rated load, therefore, the current in the sampling circuit has also exceeded the rated load current, and the circuit state of the sampling circuit is an overcurrent state.
[0106] It should be noted that in actual application, when the voltage detection device detects the second voltage, no matter what the value of the second voltage is, the voltage detection device can determine that the sampling circuit is overcurrent and start the overcurrent protection mechanism, so that the circuit state can be accurately determined, the circuit can be overcurrent protected in time, and the use safety of the circuit is improved.
[0107] The embodiment of the application provides a circuit state determination method, the second voltage detected by the second detection port of the voltage detection device is obtained, if the second voltage is equal to 0, it is determined that the circuit state of the sampling circuit is an undercurrent state, and if the second voltage is greater than 0 or a first threshold value, it is determined that the circuit state of the sampling circuit is an overcurrent state. In this way, the voltage detection device can accurately determine whether the circuit is overcurrent according to the second voltage, and then can accurately and timely overcurrent protect the circuit, and thus improve the use safety of the circuit.
[0108] Figure 6 A structural schematic diagram of a circuit control device provided by the embodiment of the application is provided. Please refer to Figure 6 The circuit control device 600 comprises an acquisition module 601 and a determination module 602, wherein:
[0109] The acquisition module 601 is configured to acquire a first voltage detected by a first detection port of a voltage detection device in a sampling circuit, and the sampling circuit is the sampling circuit in any one of the above-mentioned embodiments.
[0110] The determination module 602 is configured to determine a current of the sampling circuit according to the first voltage.
[0111] In a possible implementation, the acquisition module 601 is further configured to:
[0112] obtaining a second voltage detected by a second detection port of the voltage detection device;
[0113] determining that a circuit state of the sampling circuit is an overcurrent state when the second voltage is greater than zero or a first threshold value.
[0114] The circuit control device provided by the embodiments of the present application can execute the technical solutions shown in the method embodiments, and the implementation principles and beneficial effects are similar, which will not be repeated here.
[0115] Figure 7 A structural schematic diagram of a computing device is provided for the embodiments of the present application. Please refer to Figure 7 which shows a structural schematic diagram of a computing device 700 suitable for implementing the embodiments of the present disclosure. The computing device 700 can include a processing device (such as a central processor, a graphics processor, etc.) 701, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 702 or loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the computing device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0116] Generally, the following devices can be connected to the I / O interface 705: input devices 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 708 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 709. The communication devices 709 can allow the computing device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The computing device 700 is shown with various devices, but it should be understood that all the shown devices are not required to be implemented or possessed. More or fewer devices can be alternatively implemented or possessed.
[0117] In particular, in accordance with embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
[0118] It should be noted that the computer readable medium described above in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer readable signal medium can include a data signal carried in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such a propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wire, cable, RF, etc., or any suitable combination of the above.
[0119] The computer readable medium described above can be contained in the computing device described above; or can exist separately and not be assembled into the computing device.
[0120] The computer readable medium described above carries one or more programs, which, when executed by the computing device, cause the computing device to execute the methods illustrated by the embodiments described above.
[0121] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0122] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may
[0123] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself. For example, the first obtaining unit can also be described as a unit for obtaining at least two Internet protocol addresses.
[0124] The functions described in this specification can be performed at least in part by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0125] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] It has to be noted that, as used herein, the terms "one", "multiple", "a", "an" are intended to be interpreted as "one or more", unless explicitly stated otherwise.
[0127] The above description is only preferred embodiments of the present disclosure and a description of the principles of the technology used. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) having similar functions.
[0128] In addition, although each operation is described in a particular order, this should not be understood as requiring the operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments.
[0129] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A sampling circuit, characterized by comprising: The sampling circuit comprises a differential amplification circuit and a voltage stabilizing circuit, wherein: an output terminal of the differential amplification circuit is connected with the voltage stabilizing circuit; when an input current of the sampling circuit is a rated load current, the voltage stabilizing circuit is cut off; when the input current of the sampling circuit is an overcurrent, the voltage stabilizing circuit is reversely conducted; the voltage stabilizing circuit comprises a clamping diode and a voltage dividing resistor, one end of the clamping diode is connected with the output terminal of the differential amplification circuit, the other end of the clamping diode is connected with one end of the voltage dividing resistor, and the other end of the voltage dividing resistor is grounded; the sampling circuit further comprises a voltage detection device, a first voltage output terminal and a second voltage output terminal, the first voltage output terminal is the output terminal of the differential amplification circuit, the second voltage output terminal is a connection terminal of the voltage dividing resistor and the clamping diode, the first voltage output terminal is connected with a first detection port of the voltage detection device, and the second voltage output terminal is connected with a second detection port of the voltage detection device.
2. The sampling circuit of claim 1, wherein, The differential amplification circuit further comprises an operational amplifier, a first resistor, a second resistor, a third resistor, a fourth resistor and a fifth resistor, the operational amplifier further comprises a first input terminal, a second input terminal and an output terminal; one end of the first resistor and one end of the second resistor are connected with the first input terminal of the operational amplifier, one end of the third resistor and one end of the fourth resistor are connected with the second input terminal of the operational amplifier, the other end of the second resistor is connected with the output terminal of the operational amplifier, the other end of the fourth resistor is grounded, and one end of the fifth resistor is connected with the output terminal of the operational amplifier.
3. The sampling circuit of claim 2, wherein, The sampling circuit further comprises a sampling resistor; the other end of the first resistor is connected with one end of the sampling resistor, and the other end of the third resistor is connected with the other end of the sampling resistor.
4. The sampling circuit of claim 3, wherein, The differential amplification circuit further comprises a filter capacitor, the other end of the fifth resistor is connected with one end of the filter capacitor, and the other end of the filter capacitor is grounded.
5. The sampling circuit of any of claims 2-4, wherein, The rated load voltage output by the operational amplifier is less than or equal to the reverse breakdown voltage of the clamping diode, the reverse breakdown voltage is less than or equal to an overcurrent voltage when the current is overcurrent, the overcurrent voltage is less than or equal to the maximum input voltage of the voltage detection device, and the overcurrent voltage is also less than the power supply voltage of the operational amplifier.
6. A circuit control method characterized by, The method comprises: acquiring a first voltage detected by a first detection port of a voltage detection device in a sampling circuit, the sampling circuit being any one of the sampling circuits in claims 1-5; determining a current of the sampling circuit according to the first voltage.
7. The method of claim 6, wherein, The method further comprises: acquiring a second voltage detected by a second detection port of the voltage detection device; when the second voltage is greater than zero or a first threshold value, determining that a circuit state of the sampling circuit is an overcurrent state.
8. A computing device, comprising: The computing device comprises a processor and a memory; the memory is configured to store a computer program; the processor is configured to execute the computer program stored in the memory, so that the computing device executes the method in claim 6 or 7.
Citation Information
Patent Citations
Signal compensation device of instrument for detecting body index of special operators
CN109730691A
PFC overcurrent detection and protection circuit and air conditioner
CN114696306A