Detection circuit, error correction method and electronic device

By introducing compensation circuits and main control circuits into the detection circuits to generate and adjust compensation signals, the sampling error problem caused by resistance impedance error in traditional voltage detection circuits is solved, and a higher detection accuracy is achieved.

CN117890649BActive Publication Date: 2025-01-17SHENZHEN TIANXINGRUI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311862885.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-01-17
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

Traditional voltage detection circuits lead to the existence of sampling error due to the error between the actual impedance of the resistor and the design standard impedance.

Method used

A detection circuit is designed, including a voltage divider circuit, a compensation circuit, an isolation circuit and a main control circuit. By generating and adjusting the compensation signal, the detection voltage output by the voltage divider circuit is adjusted to eliminate errors caused by individual factors of the components.

Benefits of technology

The error compensation for the detection voltage is performed through the compensation circuit, which eliminates the detection error and improves the detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117890649B_ABST
    Figure CN117890649B_ABST
Patent Text Reader

Abstract

The present application relates to a detection circuit, an error correction method and an electronic device. A detection circuit includes: a voltage divider circuit, which is used to be set between a high voltage end and a low voltage end, and is configured to generate a detection voltage according to the voltage difference between the high voltage end and the low voltage end; a compensation circuit, which is configured to adjust the impedance according to the compensation signal to perform error compensation on the detection voltage output by the voltage divider circuit; an isolation circuit, which is used to output the detection voltage and isolate the compensation signal; a main control circuit, which is configured to obtain a voltage difference according to the detection voltage output by the isolation circuit, and is also configured to output a preset compensation signal. The present application can compensate the detected detection voltage according to the compensation signal through the compensation circuit, so that different compensation signals can be set to correspond to different detection circuits, so as to eliminate the problem of detection error caused by individual factors of each component in the detection circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of detection circuits, and in particular, relates to a detection circuit, an error correction method, and an electronic device. Background Art

[0002] At present, the traditional voltage detection circuit usually uses the resistor voltage divider to collect the voltage between two nodes. This method is simple and effective. However, due to factors such as the manufacturing process, manufacturer, and actual ambient temperature of the resistor, there is a certain error between the actual impedance of the resistor used and the standard impedance during circuit design. The impedance error of the resistor will cause a certain sampling error between the final detected voltage and the actual voltage. Summary of the invention

[0003] The purpose of the present application is to provide a detection circuit, an error correction method and an electronic device, aiming to solve the problem of sampling error caused by the difference between the actual impedance of the resistor used and the designed standard impedance in the traditional voltage detection circuit.

[0004] A first aspect of an embodiment of the present application provides a detection circuit, comprising: a voltage divider circuit, which is used to be arranged between a high-voltage end and a low-voltage end, and is configured to generate a detection voltage according to a voltage difference between the high-voltage end and the low-voltage end; a compensation circuit, which is connected to the voltage divider circuit, and is configured to adjust impedance according to a compensation signal to perform error compensation on the detection voltage output by the voltage divider circuit; an isolation circuit, which is connected to the voltage divider circuit, and is used to output the detection voltage and isolate the compensation signal; a main control circuit, which is connected to the isolation circuit, and is configured to obtain the voltage difference according to the detection voltage output by the isolation circuit, and is also configured to output the preset compensation signal to the compensation circuit.

[0005] In one embodiment, the voltage divider circuit includes a detection unit, a first voltage divider unit and a second voltage divider unit; the first end of the detection unit is connected to the high voltage end, and the second end of the detection unit is connected to the low voltage end; the first end of the first voltage divider unit is connected to the first end of the detection unit, the second end of the first voltage divider unit is connected to the ground end, and the output end of the first voltage divider unit is connected to the isolation circuit, and the first voltage divider unit is used to output a positive voltage to the isolation circuit based on the voltage of the first end of the detection unit, and the detection voltage includes the positive voltage; the first end of the second voltage divider unit is connected to the second end of the detection unit, the second end of the second voltage divider unit is connected to the ground end, and the output end of the second voltage divider unit is connected to the isolation circuit, and the second voltage divider unit is used to output a negative voltage to the isolation circuit based on the voltage of the second end of the detection unit, and the detection voltage includes the negative voltage.

[0006] In one embodiment, the detection unit includes a detection resistor, a first end of the detection resistor is connected to a first end of the detection unit, and a second end of the detection resistor is connected to a second end of the detection unit.

[0007] In one embodiment, the first voltage-dividing unit includes a first voltage-dividing resistor and a second voltage-dividing resistor, and the second voltage-dividing unit includes a third voltage-dividing resistor and a fourth voltage-dividing resistor; the first end of the first voltage-dividing resistor is connected to the first end of the first voltage-dividing unit, the second end of the first voltage-dividing resistor is connected to the output end of the first voltage-dividing unit and to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is connected to the second end of the first voltage-dividing unit; the first end of the third voltage-dividing resistor is connected to the first end of the second voltage-dividing unit, the second end of the third voltage-dividing resistor is connected to the output end of the second voltage-dividing unit and to the first end of the fourth voltage-dividing resistor, and the second end of the fourth voltage-dividing resistor is connected to the second end of the second voltage-dividing unit.

[0008] In one embodiment, the compensation circuit includes a first compensation unit and a second compensation unit, and the first compensation unit and the second compensation unit are both filtering units; the first end of the first compensation unit is connected to the output end of the first voltage divider unit and to the main control circuit to receive a first high-frequency signal, and the second end of the first compensation unit is connected to the ground end; the compensation signal includes the first high-frequency signal, and the first compensation unit is configured to adjust the impedance according to the first high-frequency signal; the first end of the second compensation unit is connected to the output end of the second voltage divider unit and to the main control circuit to receive the second high-frequency signal, and the second end of the first compensation unit is connected to the ground end; the compensation signal includes the second high-frequency signal, and the second compensation unit is configured to adjust the impedance according to the second high-frequency signal.

[0009] In one embodiment, the first compensation unit includes a first filter resistor and a first filter capacitor, the first end of the first filter resistor is connected to the first end of the first compensation unit, the second end of the first filter resistor is connected to the second end of the first compensation unit, and the first filter capacitor is connected in parallel with the first filter resistor; the second compensation unit includes a second filter resistor and a second filter capacitor, the first end of the second filter resistor is connected to the first end of the second compensation unit, the second end of the second filter resistor is connected to the second end of the second compensation unit, and the second filter capacitor is connected in parallel with the second filter resistor.

[0010] In one embodiment, the isolation circuit includes a first photocoupler and a second photocoupler; the first end of the first photocoupler is connected to the output end of the first voltage divider unit, and the second end of the first photocoupler is connected to the main control circuit; the first end of the second photocoupler is connected to the output end of the second voltage divider unit, and the second end of the second photocoupler is connected to the main control circuit.

[0011] In one embodiment, the main control circuit includes a controller, which is respectively connected to the compensation circuit and the isolation circuit. The controller is configured to obtain the voltage difference based on the detection voltage output by the isolation circuit, and is also configured to obtain and output the corresponding compensation signal through error correction.

[0012] A second aspect of an embodiment of the present application provides an error correction method, which is applied to a detection circuit such as the above, and the error correction method includes: on the premise that a target voltage is applied to the voltage divider circuit, obtaining a detection voltage output by the voltage divider circuit through the isolation circuit; generating and outputting a correction signal based on the detection voltage and the target voltage, the correction signal being used to adjust the impedance of the compensation circuit, thereby adjusting the detection voltage output by the voltage divider circuit; adjusting parameters of the correction signal until the detection voltage matches the target voltage, so as to determine that the correction signal is a target compensation signal, and the compensation signal is used to be applied to the compensation circuit of the detection circuit to perform error compensation on the detection voltage.

[0013] A third aspect of an embodiment of the present application provides an electronic device, comprising the detection circuit as described above.

[0014] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the above-mentioned detection circuit can compensate the detected detection voltage according to the compensation signal through the compensation circuit, so that the problem of detection error caused by individual factors of each component in the detection circuit can be eliminated by setting the corresponding compensation signal in different detection circuits. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of the structure of a detection circuit provided in the first embodiment of the present application;

[0016] Figure 2 An exemplary circuit schematic diagram of a detection circuit provided in the first embodiment of the present application;

[0017] Figure 3 A specific flow chart of the error correction method provided in the second embodiment of the present application.

[0018] Description of the above drawings: 10, voltage divider circuit; 11, detection unit; 12, first voltage divider unit; 13, second voltage divider unit; 20, compensation circuit; 21, first compensation unit; 22, second compensation unit; 30, isolation circuit; 40, main control circuit. DETAILED DESCRIPTION

[0019] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0020] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0021] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0022] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0023] Figure 1The structure diagram of the detection circuit provided in the first embodiment of the present application is shown. For the convenience of explanation, only the part related to the present embodiment is shown, which is described in detail as follows:

[0024] A detection circuit includes: a voltage divider circuit 10, a compensation circuit 20, an isolation circuit 30 and a main control circuit 40, wherein the voltage divider circuit 10 is used to be arranged between a high voltage terminal V+ and a low voltage terminal V-, and the voltage divider circuit 10 is configured to generate a detection voltage according to the voltage difference between the high voltage terminal V+ and the low voltage terminal V-. Specifically, the high voltage terminal V+ can be connected to the positive electrode of a power supply, and the low voltage terminal V- can be connected to the negative electrode of a power supply, and the voltage difference is the voltage difference between the positive electrode of the power supply and the negative electrode of the power supply. The compensation circuit 20 is connected to the voltage divider circuit 10, and the compensation circuit 20 is configured to adjust its own impedance according to the compensation signal to perform error compensation on the detection voltage output by the voltage divider circuit 10. The isolation circuit 30 is connected to the voltage divider circuit 10, and the isolation circuit 30 is used to output the detection voltage and isolate the compensation signal. The main control circuit 40 is connected to the isolation circuit 30, and the main control circuit 40 is configured to obtain a voltage difference according to the detection voltage output by the isolation circuit 30, and is also configured to output a preset compensation signal.

[0025] In another embodiment, the low voltage terminal V- may also be a ground terminal, so that the voltage of the high voltage terminal V+ can be detected.

[0026] The main control circuit 40 can output a calibrated compensation signal to make the compensation circuit 20 change its own impedance, that is, by changing the impedance between the output end and the ground end of the voltage divider circuit 10, the detection voltage output by the voltage divider circuit 10 is adjusted, thereby achieving error compensation and avoiding detection errors caused by performance differences of components actually used.

[0027] like Figure 1 , Figure 2 As shown, in this embodiment, the voltage divider circuit 10 includes a detection unit 11, a first voltage divider unit 12, and a second voltage divider unit 13. The first end of the detection unit 11 is connected to the high voltage end V+, and the second end of the detection unit 11 is connected to the low voltage end V-. The first end of the first voltage divider unit 12 is connected to the first end of the detection unit 11, the second end of the first voltage divider unit 12 is connected to the ground end, and the output end of the first voltage divider unit 12 is connected to the isolation circuit 30. The first voltage divider unit 12 is used to output a positive voltage to the isolation circuit 30 based on the voltage of the first end of the detection unit 11, and the detection voltage includes the positive voltage. The first end of the second voltage divider unit 13 is connected to the second end of the detection unit 11, the second end of the second voltage divider unit 13 is connected to the ground end, and the output end of the second voltage divider unit 13 is connected to the isolation circuit 30. The second voltage divider unit 13 is used to output a negative voltage to the isolation circuit 30 based on the voltage of the second end of the detection unit 11, and the detection voltage includes the negative voltage.

[0028] The positive voltage and the negative circuit are obtained by the first voltage dividing unit 12 and the second voltage dividing unit 13 respectively, and the voltage difference between the high voltage terminal V+ and the low voltage terminal V- can be obtained according to the positive voltage and the negative circuit.

[0029] like Figure 1 , Figure 2 As shown, in this embodiment, the detection unit 11 includes a detection resistor R1 , a first end of the detection resistor R1 is connected to a first end of the detection unit 11 , and a second end of the detection resistor R1 is connected to a second end of the detection unit 11 .

[0030] like Figure 1 , Figure 2 As shown, in this embodiment, the first voltage-dividing unit 12 includes a first voltage-dividing resistor R2 and a second voltage-dividing resistor R3, and the second voltage-dividing unit 13 includes a third voltage-dividing resistor R4 and a fourth voltage-dividing resistor R5; the first end of the first voltage-dividing resistor R2 is connected to the first end of the first voltage-dividing unit 12, the second end of the first voltage-dividing resistor R2 is connected to the output end of the first voltage-dividing unit 12 and to the first end of the second voltage-dividing resistor R3, and the second end of the second voltage-dividing resistor R3 is connected to the second end of the first voltage-dividing unit 12; the first end of the third voltage-dividing resistor R4 is connected to the first end of the second voltage-dividing unit 13, the second end of the third voltage-dividing resistor R4 is connected to the output end of the second voltage-dividing unit 13 and to the first end of the fourth voltage-dividing resistor R5, and the second end of the fourth voltage-dividing resistor R5 is connected to the second end of the second voltage-dividing unit 13.

[0031] The voltage is divided by a certain ratio through the first voltage-dividing resistor R2 , the second voltage-dividing resistor R3 , the third voltage-dividing resistor R4 and the fourth voltage-dividing resistor R5 , thereby increasing the detection range of the detection circuit.

[0032] For example, if the ratio of the resistance of the first voltage-dividing resistor R2 to the resistance of the second voltage-dividing resistor R3 is 1:9, without considering the compensation circuit 20, the value of the positive voltage is one tenth of the value of the voltage of the first end of the detection resistor R1. If the detection range of the main control circuit 40 is 0 to 3V, the detection range of the entire detection circuit can reach 0 to 30V.

[0033] like Figure 1 , Figure 2As shown, in this embodiment, the compensation circuit 20 includes a first compensation unit 21 and a second compensation unit 22. Specifically, the first compensation unit 21 and the second compensation unit 22 can both be filtering units. The first end of the first compensation unit 21 is connected to the output end of the first voltage divider unit 12 and to the main control circuit 40 to receive the first high-frequency signal. The second end of the first compensation unit 21 is connected to the ground end. The compensation signal includes the first high-frequency signal. The first compensation unit 21 is configured to adjust the impedance according to the first high-frequency signal. The first end of the second compensation unit 22 is connected to the output end of the second voltage divider unit 13 and to the main control circuit 40 to receive the second high-frequency signal. The second end of the first compensation unit 21 is connected to the ground end. The compensation signal includes the second high-frequency signal. The second compensation unit 22 is configured to adjust the impedance according to the second high-frequency signal. The first high-frequency signal and the second high-frequency signal are used to adjust the impedance of the first compensation unit 21 and the second compensation unit 22, respectively.

[0034] It should be noted that the impedance of the filter unit will change with the frequency of the input signal, and the first compensation unit 21 and the second compensation unit 22 can be made to have different impedances by setting compensation signals of different frequencies. The first compensation unit 21 and the second compensation unit 22 in this embodiment are equivalent to being connected in parallel with the second voltage-dividing resistor R3 and the fourth voltage-dividing resistor R5, respectively. The first compensation unit 21 and the second compensation unit 22 can thus adjust the resistance to ground of the output end of the first voltage-dividing unit 12 and the output end of the second voltage-dividing unit 13, respectively, to achieve the effect of changing the positive voltage output by the first voltage-dividing unit 12 and the negative voltage output by the second voltage-dividing unit 13 through the compensation signal. Therefore, as long as the compensation signal corresponding to the actual detection circuit is determined, the detection voltage can be error compensated to improve the detection accuracy.

[0035] like Figure 1 , Figure 2 As shown, in this embodiment, the first compensation unit 21 includes a first filter resistor R6 and a first filter capacitor C1, the first end of the first filter resistor R6 is connected to the first end of the first compensation unit 21, the second end of the first filter resistor R6 is connected to the second end of the first compensation unit 21, and the first filter capacitor C1 is connected in parallel with the first filter resistor R6. The second compensation unit 22 includes a second filter resistor R7 and a second filter capacitor C2, the first end of the second filter resistor R7 is connected to the first end of the second compensation unit 22, the second end of the second filter resistor R7 is connected to the second end of the second compensation unit 22, and the second filter capacitor C2 is connected in parallel with the second filter resistor R7.

[0036] It should be noted that, taking the first compensation unit 21 as an example, the resistance formula of the first compensation unit 21 of this embodiment is: R=1 / 2πFC, where R is the resistance of the first compensation unit 21, F is the frequency of the first high-frequency signal, and C is the capacitance of the first filter capacitor C1. The resistance R of the first compensation unit 21 will change with the change of the frequency F of the first high-frequency signal, thereby changing its own impedance.

[0037] In another embodiment, the first compensation unit 21 and the second compensation unit 22 are both LC filters.

[0038] like Figure 1 , Figure 2 As shown, in this embodiment, the isolation circuit 30 includes a first photocoupler U1 and a second photocoupler U2. The first end of the first photocoupler U1 is connected to the output end of the first voltage divider unit 12, and the second end of the first photocoupler U1 is connected to the main control circuit 40. The first end of the second photocoupler U2 is connected to the output end of the second voltage divider unit 13, and the second end of the second photocoupler U2 is connected to the main control circuit 40. The isolation circuit 30 can protect the main control circuit 40 and isolate the high-frequency compensation signal at the same time, so as to prevent the compensation signal from mixing with the detection voltage and entering the main control circuit 40, thereby affecting the detection accuracy.

[0039] like Figure 1 , Figure 2 As shown, in this embodiment, the main control circuit 40 includes a controller U3, which can be a microcontroller unit (MCU). The controller U3 is connected to the compensation circuit 20 and the isolation circuit 30 respectively. The controller U3 is configured to obtain a voltage difference according to the detection voltage output by the isolation circuit 30, and is also configured to obtain and output a corresponding compensation signal through error correction.

[0040] Figure 3 A flow chart of an error correction method provided in the second embodiment of the present application is shown. For the sake of convenience, only the part related to the present embodiment is shown, which is described in detail as follows:

[0041] An error correction method, which can be applied to the detection circuit of the above embodiment, comprises steps S100 to S300:

[0042] S100 , on the premise that the target voltage is applied to the voltage divider circuit 10 , a detection voltage output by the voltage divider circuit 10 is obtained through the isolation circuit 30 .

[0043] S200 , generating and outputting a correction signal based on the detection voltage and the target voltage.

[0044] S300, adjusting the parameters of the correction signal until the detection voltage matches the target voltage, so as to determine that the correction signal is the target compensation signal. It can be understood that the correction signal is the high-frequency signal mentioned above, and during the correction process, the frequency or amplitude of the high-frequency signal will be adjusted.

[0045] When the target voltage is applied to the voltage divider circuit 10, the main control circuit 40 can determine whether the received detection voltage matches the target voltage. When the received detection voltage does not match the target voltage, the frequency of the correction signal output by the main control circuit 40 can be continuously adjusted until a compensation signal suitable for the detection circuit is found so that the detection voltage matches the target voltage.

[0046] This embodiment can realize automatic error correction of the detection circuit without manual debugging. Even if the performance of components of different detection circuits is different, the method can ultimately find an appropriate compensation signal to improve sampling accuracy.

[0047] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0048] A third embodiment of the present application provides an electronic device, comprising a detection circuit as described in any of the above embodiments.

[0049] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0050] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0051] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A detection circuit, characterized in that: include: A voltage divider circuit, the voltage divider circuit is used to be arranged between the high voltage end and the low voltage end, and is configured to generate a detection voltage according to a voltage difference between the high voltage end and the low voltage end; a compensation circuit, the compensation circuit being connected to the voltage divider circuit, the compensation circuit being configured to adjust impedance according to a compensation signal to perform error compensation on the detection voltage output by the voltage divider circuit; an isolation circuit, the isolation circuit being connected to the voltage divider circuit and configured to output the detection voltage and isolate the compensation signal; a main control circuit, the main control circuit being connected to the isolation circuit and configured to obtain the voltage difference according to the detection voltage output by the isolation circuit, and further configured to output the preset compensation signal to the compensation circuit; The voltage dividing circuit comprises a detection unit, a first voltage dividing unit and a second voltage dividing unit; The first end of the detection unit is connected to the high-voltage end, and the second end of the detection unit is connected to the low-voltage end; The first end of the first voltage dividing unit is connected to the first end of the detection unit, the second end of the first voltage dividing unit is connected to the ground end, the output end of the first voltage dividing unit is connected to the isolation circuit, the first voltage dividing unit is used to output a positive voltage to the isolation circuit based on the voltage of the first end of the detection unit, and the detection voltage includes the positive voltage; The first end of the second voltage dividing unit is connected to the second end of the detection unit, the second end of the second voltage dividing unit is connected to the ground end, the output end of the second voltage dividing unit is connected to the isolation circuit, and the second voltage dividing unit is used to output a negative voltage to the isolation circuit based on the voltage of the second end of the detection unit, and the detection voltage includes the negative voltage; The compensation circuit comprises a first compensation unit and a second compensation unit, wherein the first compensation unit and the second compensation unit are both filtering units; The first end of the first compensation unit is connected to the output end of the first voltage divider unit and to the main control circuit to receive a first high-frequency signal, and the second end of the first compensation unit is connected to the ground end; the compensation signal includes the first high-frequency signal, and the first compensation unit is configured to adjust the impedance according to the first high-frequency signal; The first end of the second compensation unit is connected to the output end of the second voltage divider unit and to the main control circuit to receive a second high-frequency signal, and the second end of the first compensation unit is connected to the ground end; the compensation signal includes the second high-frequency signal, and the second compensation unit is configured to adjust the impedance according to the second high-frequency signal.

2. The detection circuit according to claim 1, characterized in that: The detection unit includes a detection resistor, a first end of the detection resistor is connected to a first end of the detection unit, and a second end of the detection resistor is connected to a second end of the detection unit.

3. The detection circuit according to claim 1, characterized in that: The first voltage-dividing unit includes a first voltage-dividing resistor and a second voltage-dividing resistor, and the second voltage-dividing unit includes a third voltage-dividing resistor and a fourth voltage-dividing resistor; The first end of the first voltage-dividing resistor is connected to the first end of the first voltage-dividing unit, the second end of the first voltage-dividing resistor is connected to the output end of the first voltage-dividing unit and to the first end of the second voltage-dividing resistor, and the second end of the second voltage-dividing resistor is connected to the second end of the first voltage-dividing unit; The first end of the third voltage-dividing resistor is connected to the first end of the second voltage-dividing unit, the second end of the third voltage-dividing resistor is connected to the output end of the second voltage-dividing unit and to the first end of the fourth voltage-dividing resistor, and the second end of the fourth voltage-dividing resistor is connected to the second end of the second voltage-dividing unit.

4. The detection circuit according to claim 1, characterized in that: The first compensation unit includes a first filter resistor and a first filter capacitor, the first end of the first filter resistor is connected to the first end of the first compensation unit, the second end of the first filter resistor is connected to the second end of the first compensation unit, and the first filter capacitor is connected in parallel with the first filter resistor; The second compensation unit includes a second filter resistor and a second filter capacitor, the first end of the second filter resistor is connected to the first end of the second compensation unit, the second end of the second filter resistor is connected to the second end of the second compensation unit, and the second filter capacitor is connected in parallel with the second filter resistor.

5. The detection circuit according to claim 1, characterized in that: The isolation circuit includes a first photoelectric coupler and a second photoelectric coupler; the first end of the first photoelectric coupler is connected to the output end of the first voltage divider unit, and the second end of the first photoelectric coupler is connected to the main control circuit; the first end of the second photoelectric coupler is connected to the output end of the second voltage divider unit, and the second end of the second photoelectric coupler is connected to the main control circuit.

6. The detection circuit according to claim 1, characterized in that: The main control circuit includes a controller, which is respectively connected to the compensation circuit and the isolation circuit. The controller is configured to obtain the voltage difference according to the detection voltage output by the isolation circuit, and is also configured to obtain and output the corresponding compensation signal through error correction.

7. An error correction method, applied to the detection circuit according to any one of claims 1 to 6, characterized in that: The error correction method comprises: Under the premise that the target voltage is applied to the voltage divider circuit, obtaining the detection voltage output by the voltage divider circuit through the isolation circuit; generating and outputting a correction signal based on the detection voltage and the target voltage, wherein the correction signal is used to adjust the impedance of the compensation circuit, thereby adjusting the detection voltage output by the voltage divider circuit; The parameters of the correction signal are adjusted until the detection voltage matches the target voltage to determine that the correction signal is a target compensation signal, and the compensation signal is used to be applied to the compensation circuit of the detection circuit to perform error compensation on the detection voltage.

8. An electronic device, characterized in that: The method comprises a detection circuit as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Switching power supply and output voltage compensation circuit thereof

    CN113098236A