Current detection system
Through a current detection system based on shunt resistors, the problem of high current detection cost and complexity in the prior art is solved, and low-cost and low-power current detection suitable for DC and AC is achieved.
Patent Information
- Application Number
- CN202411210399.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-06
AI Technical Summary
Among the existing current sensing technologies, inductive current sensors are suitable for DC power, and are costly and complex in implementation. Electromagnetic current sensors are expensive and complex in implementation, making it difficult to meet the widely applicable needs.
Using a shunt resistor-based current detection system, including shunt resistors, analog-to-digital converters, digital filters and result registers, the current value is calculated by converting the current of the circuit to be detected into a sampling voltage, and using an analog-to-digital converter and digital filter , suitable for DC and AC.
It realizes low-cost, simple implementation of current detection, suitable for DC and AC, avoids high common mode problems, and reduces design difficulty and power consumption.
Smart Images

Figure CN119087026A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a current detection system. Background Art
[0002] With the development of society, electronic products are becoming more and more popular. Current detection technology is needed in many fields, such as power system monitoring, motor control, power management, automotive electronics, industrial automation, etc.
[0003] Current detection circuits can be used to detect changes in current in a circuit and convert the current changes in the circuit into voltage signals for easy measurement and processing. For example, when the circuit is charging or discharging, the current changes in the circuit can be detected to avoid large charging and discharging currents. When a short circuit occurs in the circuit, it can detect that the current in the circuit is too large, thereby triggering a protection mechanism and improving circuit safety.
[0004] Among the existing current detection technologies, inductive current sensors are more suitable for direct current, while electromagnetic current sensors are not only expensive and costly, but also relatively complex to implement. Summary of the invention
[0005] The purpose of this application is to provide a current detection system to address the deficiencies in the above-mentioned prior art, so as to reduce the cost of current detection and have universal applicability.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a current detection system, the current detection system comprising: a shunt resistor, an analog-to-digital converter, a digital filter, and a result register;
[0008] The shunt resistor is connected between the load of the circuit to be detected and the ground terminal, and is used to convert the current of the circuit to be detected into a sampling voltage;
[0009] The positive and negative input terminals of the analog-to-digital converter are respectively connected to the sampling positive terminal and the sampling negative terminal of the shunt resistor, and are used to convert the sampled voltage and output a digital code stream;
[0010] The input end of the digital filter is connected to the output end of the analog-to-digital converter, and is used to convert the digital code stream into a digital signal with a preset number of bits. The output end of the digital filter is connected to the result register to calculate the current of the circuit to be detected based on the digital signal with the preset number of bits.
[0011] Optionally, the analog-to-digital converter comprises: a first integration circuit, a second integration circuit, a summing circuit, a comparison circuit and a digital-to-analog conversion circuit;
[0012] The sampling positive input terminal and the sampling negative input terminal of the first integration circuit are connected as the positive input terminal of the analog-to-digital converter, and the integration positive input terminal and the integration negative input terminal of the first integration circuit are connected as the negative input terminal of the analog-to-digital converter;
[0013] The positive output terminal of the first integration circuit is connected to the integration positive input terminal and the sampling negative input terminal of the second integration circuit, and the negative output terminal of the first integration circuit is connected to the sampling positive input terminal and the integration negative input terminal of the second integration circuit;
[0014] The negative output terminal of the first integration circuit and the positive output terminal of the second integration circuit are connected to a group of summing input terminals of the summing circuit, the positive output terminal of the first integration circuit and the negative output terminal of the second integration circuit are connected to another group of summing input terminals of the summing circuit, the two summing output terminals of the summing circuit are connected to the two input terminals of the comparison circuit, and the output terminal of the comparison circuit serves as the output terminal of the analog-to-digital converter;
[0015] The output end of the comparison circuit is also connected to the control end of the digital-to-analog conversion circuit, and the feedback output end of the digital-to-analog conversion circuit is connected to the sampling output end of the first integration circuit.
[0016] Optionally, the analog-to-digital converter further comprises: a reset switch group and a reset comparator;
[0017] The reset switches of the reset switch group are connected to the two ends of the integration capacitor of each integration circuit, the positive input end of the reset comparator is connected to a preset voltage, the two negative input ends of the reset comparator are respectively connected to the positive output end and the negative output end of the first integration circuit, and the output end of the reset comparator is connected to the control ends of the reset switches of the reset switch group.
[0018] Optionally, the analog-to-digital converter further comprises: a global chopping circuit;
[0019] The sampling positive terminal and the sampling negative terminal of the shunt resistor are respectively connected to the first positive input terminal and the first negative input terminal of the global chopping circuit, the first output terminal of the global chopping circuit is connected to the sampling positive input terminal and the sampling negative input terminal of the first integration circuit, the sampling positive terminal and the sampling negative terminal of the shunt resistor are also respectively connected to the second positive input terminal and the second negative input terminal of the global chopping circuit, and the second output terminal of the global full-wave circuit is connected to the integration positive input terminal and the integration negative input terminal of the first integration circuit;
[0020] The third input end of the global chopping circuit is connected to the output end of the comparison circuit, the third output end of the global chopping circuit serves as the output end of the analog-to-digital converter, and the third output end of the global chopping circuit is also connected to the control end of the digital-to-analog conversion circuit.
[0021] Optionally, the global chopping circuit includes: a first selector, a second selector, a third selector and an inverter;
[0022] The first input end of the first selector is the first positive input end of the global chopping circuit, the second input end of the first selector is the first negative input end of the global chopping circuit, and the output end of the first selector is the first output end of the global chopping circuit;
[0023] The first input end of the second selector is the second negative input end of the global chopping circuit, the second input end of the second selector is the second positive input end of the global chopping circuit, and the output end of the second selector is the second output end of the global chopping circuit;
[0024] The first input end of the third selector is connected to the input end of the inverter as the third positive input end of the global chopping circuit, the output end of the inverter is connected to the second input end of the third selector, and the output end of the third selector serves as the third output end of the global chopping circuit.
[0025] Optionally, each integration circuit includes: a plurality of sampling switches and integration switches, two sampling capacitors, two integration capacitors and an operational amplifier;
[0026] One end of the two sampling capacitors is connected to a sampling switch as the sampling positive input terminal and the sampling negative input terminal, respectively, and one end of the two sampling capacitors is also connected to an integration switch as the integration positive input terminal and the integration negative input terminal, respectively;
[0027] The other ends of the two sampling capacitors are connected to one end of an integrating capacitor through an integrating switch, one integrating capacitor is connected to the negative input terminal and the positive output terminal of the operational amplifier, and the other integrating capacitor is connected to the positive input terminal and the negative output terminal of the operational amplifier;
[0028] The positive output terminal and the negative output terminal of the operational amplifier serve as the positive output terminal and the negative output terminal of the integration circuit respectively;
[0029] The other ends of the two sampling capacitors are also connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0030] Optionally, the summing circuit comprises: two summing units and two sampling switches, each summing unit comprises: two summing capacitors, a plurality of sampling switches and an integration switch;
[0031] One end of the two summing capacitors is respectively connected to an integrating switch as a group of summing input ends of each summing unit, two sampling switches are connected between one end of the two summing capacitors, a connection point of the two sampling switches is connected to a preset voltage, and the other end of the two summing capacitors is connected as an output end of each summing unit;
[0032] The output ends of the two summing units are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0033] Optionally, the digital-to-analog conversion circuit includes: two feedback capacitors, multiple groups of feedback switches, multiple sampling switches and integration switches;
[0034] One end of each feedback capacitor is respectively connected to a sampling switch and an integration switch, the sampling switch connected to each feedback capacitor is respectively connected to a preset reference voltage terminal and a preset ground terminal through a group of feedback switches, and the integration switch connected to each feedback capacitor is respectively connected to the preset reference voltage terminal and the preset ground terminal through a group of feedback switches;
[0035] The other ends of the two feedback capacitors serve as feedback output ends of the digital-to-analog conversion circuit. The other ends of the two feedback capacitors are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0036] Optionally, the analog-to-digital converter further comprises: two integrator chopper circuits;
[0037] The integral positive input terminal and the integral negative output terminal of each integral circuit are connected to the sampling positive output terminal and the sampling negative output terminal of each integral circuit respectively through a first switch group and a second switch group of an integrator chopper circuit;
[0038] A third switch group of an integrator chopper circuit connects the positive output terminal of the first integrator circuit and the sampling positive input terminal, sampling negative output terminal, integration positive input terminal and integration negative input terminal of the second integrator circuit; a fourth switch group of the integrator chopper circuit connects the negative output terminal of the first integrator circuit and the sampling positive input terminal, sampling negative output terminal, integration positive input terminal and integration negative input terminal of the second integrator circuit;
[0039] The positive input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integrating circuit through the third switch group of another integrator chopper circuit, and the negative input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integrating circuit through the fourth switch group of another integrator chopper circuit.
[0040] Optionally, the analog-to-digital converter further includes: a common-mode feedback circuit;
[0041] The input end of the common-mode feedback circuit is connected to the positive output end and the negative output end of each integration circuit, and the output end of the common-mode feedback circuit is connected to the feedback control end of each integration circuit.
[0042] The beneficial effects of this application are:
[0043] The current detection system provided in the present application performs low-side current detection based on shunt resistors. Compared with inductive current detection and electromagnetic current detection, shunt resistor current detection is not only applicable to direct current but also to alternating current, and has low implementation cost and simple implementation method. Compared with high-side current detection, low-side current detection avoids the high common mode problem and reduces the design difficulty and power consumption of the current detection system. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of the structure of a current detection system provided in an embodiment of the present application;
[0046] Figure 2 The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 1 ;
[0047] Figure 3 A circuit schematic diagram of a single-bit quantizer provided in an embodiment of the present application;
[0048] Figure 4 The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 2 ;
[0049] Figure 5 A circuit schematic diagram of a reset comparator provided in an embodiment of the present application;
[0050] Figure 6 The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 3 ;
[0051] Figure 7 A schematic diagram of a global chopper circuit provided in an embodiment of the present application;
[0052] Figure 8 Circuit principle of the analog-to-digital converter provided in the embodiment of the present application Figure 1 ;
[0053] Fig. 9A timing waveform diagram provided for an embodiment of the present application;
[0054] Fig.10 The circuit principle of the digital-to-analog converter provided in the embodiment of the present application Figure 2 ;
[0055] Fig.11 A circuit schematic diagram of an operational amplifier provided in an embodiment of the present application;
[0056] Fig.12 A circuit schematic diagram of a common-mode feedback circuit provided in an embodiment of the present application;
[0057] Fig.13 Circuit principle of the analog-to-digital converter provided in the embodiment of the present application Figure 3 . DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0059] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0060] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does 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 cannot be understood as a limitation on the present application.
[0061] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0062] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0063] Figure 1 A schematic diagram of the structure of the current detection system provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the current detection system may include: a shunt resistor Rs, an analog-to-digital converter 10 , a digital filter 20 and a result register 30 .
[0064] The shunt resistor Rs is connected between the load Load of the circuit to be detected and the ground terminal GND, and is used to convert the current Isense of the circuit to be detected into a sampling voltage Vsense.
[0065] The positive and negative input terminals of the analog-to-digital converter 10 are respectively connected to the sampling positive terminal SRP and the sampling negative terminal SRN of the shunt resistor Rs, so as to convert the sampling voltage Vsense and output a digital code stream; the input terminal of the digital filter 20 is connected to the output terminal of the analog-to-digital converter 10, so as to convert the digital code stream into a digital signal of a preset number of bits, and the output terminal of the digital filter 20 is connected to the result register 30, so as to calculate the current of the circuit to be detected according to the digital signal of the preset number of bits.
[0066] In this embodiment, the current detection system is a low-side current detection system based on a shunt resistor Rs. The shunt resistor Rs is connected between the load Load and the ground terminal GND. The resistance of the shunt resistor Rs is very small. It is used to collect the current in the circuit to be detected and convert the detected current into a sampling voltage Vsense as the input of the analog-to-digital converter 10.
[0067] The analog-to-digital converter (ADC) 10 is an incremental sigma-delta ADC. The analog-to-digital converter 10 works alternately under the sampling timing and the integration timing according to the control of the two-phase non-overlapping clock signal. The analog-to-digital converter 10 samples the sampling voltage Vsense under the sampling timing. The analog-to-digital converter 10 integrates and amplifies the sampled voltage under the integration timing, and sums and compares the integrated voltage, and outputs a digital code stream according to the comparison result.
[0068] The digital filter 20 performs mathematical operations on the digital code stream output by the analog-to-digital converter 10 to obtain the current value of the circuit to be detected, and outputs the current value of the circuit to be detected as a digital signal with a preset number of bits. By converting the digital signal with a preset number of bits, the current value of the circuit to be detected can be obtained.
[0069] The current detection system has a preset current detection time, for example, 3 milliseconds, and the digital signal of the preset number of bits obtained in each detection can be stored in the result register 30. The current value of the circuit to be detected can be obtained by obtaining the digital signal of the preset number of bits from the result register 30 and converting it. In this way, after each conversion, the analog-to-digital converter 10 and the digital filter 20 can be reset, and the previous current detection information can be cleared to perform the next current detection.
[0070] The current detection system provided in the above embodiment performs low-side current detection based on shunt resistors. Compared with inductive current detection and electromagnetic current detection, shunt resistor current detection is not only applicable to direct current but also to alternating current, and has low implementation cost and simple implementation method. Compared with high-side current detection, low-side current detection avoids the high common mode problem and reduces the design difficulty and power consumption of the current detection system.
[0071] In one possible implementation, Figure 2 The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 1 ,like Figure 2 As shown, the analog-to-digital converter 10 may include: a first integration circuit 11 , a second integration circuit 12 , a summing circuit 13 , a comparison circuit 14 and a digital-to-analog conversion circuit 15 .
[0072] The sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11 are connected as the positive input terminal of the analog-to-digital converter 10 , and the integration positive input terminal and the integration negative input terminal of the first integration circuit are connected as the negative input terminal of the analog-to-digital converter 10 .
[0073] The positive output terminal of the first integration circuit 11 is connected to the integration positive input terminal and the sampling negative input terminal of the second integration circuit 12 , and the negative output terminal of the first integration circuit 11 is connected to the sampling positive input terminal and the integration negative input terminal of the second integration circuit 12 .
[0074] The negative output terminal of the first integrating circuit 11 and the positive output terminal of the second integrating circuit 12 are connected to a group of summing input terminals of the summing circuit 13, the positive output terminal of the first integrating circuit 11 and the negative output terminal of the second integrating circuit 12 are connected to another group of summing input terminals of the summing circuit 13, the two summing output terminals of the summing circuit 13 are connected to two input terminals of the comparison circuit 14, and the output terminal of the comparison circuit 14 serves as the output terminal of the analog-to-digital converter 10.
[0075] The output end of the comparison circuit 14 is also connected to the control end of the digital-to-analog conversion circuit 15 , and the feedback output end of the digital-to-analog conversion circuit 15 is connected to the sampling output end of the first integration circuit 11 .
[0076] In this embodiment, if Figure 2 As shown, the sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11 are connected to the sampling positive terminal SRP of the shunt resistor, and the integration positive input terminal and the integration negative input terminal of the first integration circuit 11 are connected to the sampling negative terminal SRN of the shunt resistor, which are used to obtain the sampling voltage Vsense at both ends of the shunt circuit Rs.
[0077] The integration positive input terminal and the sampling negative input terminal of the second integration circuit 12 are connected to the positive output terminal of the first integration circuit 11, and the sampling positive input terminal and the integration negative input terminal of the second integration circuit 12 are connected to the negative output terminal of the first integration circuit 12. The first integration circuit 11 and the second integration circuit 12 sample the sampling voltage Vsense at the sampling timing, and integrate and amplify the sampled voltage at the integration timing.
[0078] The summing circuit 13 has two groups of summing input terminals, wherein one group of summing input terminals is connected to the positive output terminal of the second integration circuit 12 and the negative output terminal of the first integration circuit 11, and is used to sum the positive integration voltage of the second integration circuit 12 and the negative integration voltage of the first integration circuit 11 to obtain the summed voltage VIP; the other group of summing input terminals is connected to the negative output terminal of the second integration circuit 12 and the positive output terminal of the first integration circuit 11, and is used to sum the negative integration voltage of the second integration circuit 12 and the positive integration voltage of the first integration circuit 11 to obtain the summed voltage VIN; wherein the absolute values of the two groups of summed voltages are equal and the signs are opposite.
[0079] The two output terminals of the summing circuit 13 are connected to the two input terminals of the comparison circuit 14. The comparison circuit 14 compares the two groups of summing voltages. If the summing voltage input to the positive input terminal of the comparison circuit 14 is positive and the summing voltage input to the negative input terminal is negative, the comparison result output by the comparison circuit 14 is a high-level signal 1. If the summing voltage input to the positive input terminal of the comparison circuit 14 is negative and the summing voltage input to the negative input terminal is positive, the comparison result output by the comparison circuit 14 is a low-level signal 0. For example, if the summing voltage VIP is positive and the summing voltage VIN is negative, the comparison result is 1. If the summing voltage VIP is negative and the summing voltage VIN is positive, the comparison result is 0. The comparison result output by the comparison circuit 14 constitutes a digital code stream.
[0080] The comparison circuit 14 is also connected to the control end of the digital-to-analog conversion circuit 15. The digital-to-analog conversion circuit 15 provides an error voltage for the first integration circuit 11 according to the comparison result of the comparison circuit 14. Specifically, the first reference input end of the digital-to-analog conversion circuit 15 is connected to the sampling positive output end of the first integration circuit 11 through a switch unit, and the first reference input end is used to connect a preset reference voltage Vref. The second reference input end of the digital-to-analog conversion circuit 15 is connected to the sampling negative output end of the first integration circuit 11 through a switch unit, and the second reference input end is used to connect a preset ground point VSS.
[0081] When the comparison result output by the comparison circuit 14 is 1, the switch unit in the digital-to-analog conversion circuit 15 is closed, and the digital-to-analog conversion circuit 15 provides a positive error voltage to the sampling positive output terminal and the sampling negative output terminal of the first integration circuit 11 according to the preset reference voltage Vref. The first integration circuit 11 takes the difference between its sampling voltage and the positive error voltage and then integrates it in the integration sequence.
[0082] When the comparison result output by the comparison circuit 14 is 0, the switch unit in the digital-to-analog conversion circuit 15 is disconnected, and the digital-to-analog conversion circuit 15 provides a negative error voltage for the sampling positive output terminal and the sampling negative output terminal of the first integration circuit according to the preset reference voltage Vref. The first integration circuit 11 takes the difference between its sampling voltage and the negative error voltage and then integrates it in the integration sequence.
[0083] In some embodiments, the comparison circuit 14 may be implemented using a single-bit quantizer. Figure 3 The circuit schematic diagram of the single-bit quantizer provided in the embodiment of the present application is as follows: Figure 3 As shown, the MOS tubes of the single-bit quantizer are all in the switching state when working, and there is no static power consumption in theory, which can effectively reduce the power consumption of the analog-to-digital converter. Among them, the comparison time controlled by the comparison control signal Eval of the single-bit quantizer is the non-overlapping time of the sampling timing and the integration timing of the analog-to-digital converter.
[0084] In one possible implementation, Figure 4The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 2 ,like Figure 4 As shown, the analog-to-digital converter 10 may further include: a reset switch group 16 and a reset comparator 17 .
[0085] The reset switches of the reset switch group 16 are connected to the two ends of the integration capacitor of each integration circuit, the positive input end of the reset comparator 17 is connected to the preset voltage, the two negative input ends of the reset comparator 17 are respectively connected to the positive output end and the negative output end of the first integration circuit 11, and the output end of the reset comparator 17 is connected to the control end of each reset switch of the reset switch group 16.
[0086] In this embodiment, the reset comparator 17 is an overcurrent reset comparator, for example, Figure 5 A circuit schematic diagram of a reset comparator provided in an embodiment of the present application, such as Figure 5 As shown, the reset comparator 17 adopts a folded common-source common-gate amplifier. When the current of the circuit to be detected is too large, the voltages Vin1- and Vin2- connected to the positive output terminal and the negative output terminal of the first integration circuit 11 will be saturated, and one of them is lower than the threshold voltage VCM. At this time, the output Reset of the reset comparator 17 changes from 0 to 1, and the reset switches of the reset switch group 16 are controlled to be closed, so that the analog-to-digital converter 10 is reset. The reset will not be released until the current of the circuit to be detected returns to normal, thereby protecting the entire analog-to-digital converter 10.
[0087] The current detection system provided in the above embodiment sets a reset switch group and a reset comparator in the analog-to-digital converter, which can reset the analog-to-digital converter when an overcurrent occurs in the circuit to be detected, thereby protecting and warning the analog-to-digital converter 10 and protecting the circuit safety.
[0088] In one possible implementation, Figure 6 The structure of the analog-to-digital converter provided in the embodiment of the present application is shown in FIG. Figure 3 ,like Figure 6 As shown, the analog-to-digital converter 10 may further include a global chopping circuit 18 .
[0089] The sampling positive terminal SRP and the sampling negative terminal SRN of the shunt resistor are respectively connected to the first positive input terminal and the first negative input terminal of the global chopping circuit 18, the first output terminal of the global chopping circuit 18 is connected to the sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11, the sampling positive terminal SRP and the sampling negative terminal SRN of the shunt resistor are also respectively connected to the second positive input terminal and the second negative input terminal of the global chopping circuit 18, the second output terminal of the global chopping circuit 18 is connected to the integration positive input terminal and the integration negative input terminal of the first integration circuit 11; the third input terminal of the global chopping circuit 18 is connected to the output terminal of the comparison circuit 14, the third output terminal of the global chopping circuit 18 serves as the output terminal of the analog-to-digital converter 10, and the third output terminal of the global chopping circuit 18 is also connected to the control terminal of the digital-to-analog conversion circuit 15.
[0090] In this embodiment, the global chopping circuit 18 is divided into two parts, one part is arranged at the input end of the analog-to-digital converter 10, and the other part is arranged at the output end of the analog-to-digital converter 10, wherein the first positive input end and the second positive input end of the global chopping circuit 18 arranged at the input end of the analog-to-digital converter 10 are connected to the sampling positive end SRP of the shunt resistor Rs, serving as the positive input end of the analog-to-digital converter 10, the first negative input end and the second negative input end of the global chopping circuit 18 are connected to the sampling negative end SRN of the shunt resistor Rs, serving as the negative input end of the analog-to-digital converter 10, the global chopping circuit 18 controls the sampling positive input end and the sampling negative input end of the first integration circuit 11 to be alternately connected to the sampling positive end SRP and the sampling negative end SRN of the shunt resistor Rs, and controls the integration positive input end and the integration negative input end of the first integration circuit 11 to be alternately connected to the sampling positive end SRP and the sampling negative end SRN of the shunt resistor Rs.
[0091] The third input terminal of the global chopping circuit 18 arranged at the output terminal of the analog-to-digital converter 10 is connected to the output terminal of the comparison circuit 14. The global chopping circuit 18 alternately controls to directly output the comparison result of the comparison circuit 14, or outputs the inverted comparison result of the comparison circuit 14, and outputs the digital code stream through the third output terminal of the global chopping circuit 18.
[0092] Specifically, when the global chopping circuit 18 controls the sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11 to be connected to the sampling positive terminal SRP of the shunt resistor Rs, and controls the integration positive input terminal and the integration negative input terminal of the first integration circuit 11 to be connected to the sampling negative terminal SRN of the shunt resistor Rs, the global chopping circuit 18 arranged at the output end of the analog-to-digital converter 10 directly outputs the comparison result of the comparison circuit 14; when the global chopping circuit 18 controls the sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11 to be connected to the sampling negative terminal SRN of the shunt resistor Rs, and controls the integration positive input terminal and the integration negative input terminal of the first integration circuit 11 to be connected to the sampling positive terminal SRP of the shunt resistor Rs, the global chopping circuit 18 arranged at the output end of the analog-to-digital converter 10 inverts the comparison result of the comparison circuit 14 and outputs it.
[0093] Since the current detection system of the present application adopts low-side current detection technology, the shunt resistor Rs is directly connected to the ground GND, resulting in low-frequency ground noise and offset in the circuit. By adding a global chopping circuit 18 to the input and output ends of the analog-to-digital converter 10, the influence of ground noise and offset on circuit detection can be eliminated.
[0094] The clock phase frequency of the alternating control signal of the global chopping circuit 18 is obtained by allocating the sampling integration frequency of the analog-to-digital converter.
[0095] In some embodiments, Figure 7 The schematic diagram of the global chopper circuit provided in the embodiment of the present application is as follows: Figure 7 As shown, the global chopping circuit 18 may include: a first selector 181 , a second selector 182 , a third selector 183 and an inverter 184 .
[0096] The first input end of the first selector 181 is the first positive input end of the global chopping circuit 18, the second input end of the first selector 181 is the first negative input end of the global chopping circuit 18, and the output end of the first selector 181 is the first output end of the global chopping circuit 18; the first input end of the second selector 182 is the second negative input end of the global chopping circuit 18, the second input end of the second selector 182 is the second positive input end of the global chopping circuit 18, and the output end of the second selector 182 is the second output end of the global chopping circuit 18; the first input end of the third selector 183 is connected to the input end of the inverter 184 as the third positive input end of the global chopping circuit 18, the output end of the inverter 184 is connected to the second input end of the third selector 183, and the output end of the third selector 183 serves as the third output end of the global chopping circuit.
[0097] In this embodiment, the first input terminal 0 of the first selector 181 and the second input terminal 1 of the second selector 182 are connected to the sampling positive terminal SRP of the shunt resistor Rs, the second input terminal 1 of the first selector 181 and the first input terminal 0 of the second selector 182 are connected to the sampling negative terminal SRN of the shunt resistor Rs, the first selector 181 and the second selector 182 are controlled by two-phase non-overlapping clock signals 0 and 1, when the clock signal is 0, 0 of the first selector 181 and the second selector 182 are turned on, 1 is turned off, at this time, the first integration circuit 11 The sampling positive input terminal and the sampling negative input terminal are connected to the sampling positive terminal SRP of the shunt resistor Rs, and the integration positive input terminal and the integration negative input terminal of the first integration circuit 11 are connected to the sampling negative terminal SRN of the shunt resistor Rs; when the clock signal is 1, 0 of the first selector 181 and the second selector 182 are closed and 1 is turned on. At this time, the sampling positive input terminal and the sampling negative input terminal of the first integration circuit 11 are connected to the sampling negative terminal SRN of the shunt resistor Rs, and the integration positive input terminal and the integration negative input terminal of the first integration circuit 11 are connected to the sampling positive terminal SRP of the shunt resistor Rs.
[0098] The output end of the comparison circuit 14 is directly connected to the first input end 0 of the third selector 183 on the one hand, and is connected to the second input end 1 of the third selector 183 through the inverter 184 on the other hand. When the clock signal is 0, 0 of the third selector 183 is turned on and 1 is turned off, and the output end of the third selector 183 directly outputs the comparison result of the comparison circuit 14; when the clock signal is 1, 0 of the third selector 183 is turned off and 1 is turned on, and the output end of the third selector 183 outputs the comparison result after being inverted by the inverter 184.
[0099] The global chopper circuit continuously modulates and demodulates the input and output signals to remove the influence of ground noise and offset on the circuit.
[0100] In a possible implementation, each integration circuit includes: a plurality of sampling switches and integration switches, two sampling capacitors, two integration capacitors, and an operational amplifier.
[0101] One end of the two sampling capacitors is respectively connected to a sampling switch as a sampling positive input end and a sampling negative input end, and one end of the two sampling capacitors is also respectively connected to an integration switch as an integration positive input end and an integration negative input end; the other ends of the two sampling capacitors are respectively connected to one end of an integration capacitor through an integration switch, one integration capacitor is connected to the negative input end and the positive output end of the operational amplifier, and the other integration capacitor is connected to the positive input end and the negative output end of the operational amplifier; the positive output end and the negative output end of the operational amplifier are respectively used as the positive output end and the negative output end of the integration circuit; the other ends of the two sampling capacitors are also connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0102] In this embodiment, Figure 8 Circuit principle of the analog-to-digital converter provided in the embodiment of the present application Figure 1 ,like Figure 8 As shown, the sampling capacitor, the integrating capacitor and the operational amplifier in each integrating circuit constitute an integrator, and the sampling switch and the integrating switch are respectively turned on in the sampling timing and the integrating timing to control the integrating circuit to be in the sampling state or the integrating state.
[0103] Specifically, Figure 8 As shown, one end of the sampling capacitor Cs1 of the first integration circuit 11 is connected to the sampling positive terminal SRP of the shunt resistor through the sampling switch Sm1_d, and is connected to the sampling negative terminal SRN through the integration switch Sn1_d. One end of the sampling capacitor Cs2 of the first integration circuit 11 is connected to the sampling positive terminal SRP through the sampling switch Sm2_d, and is connected to the sampling negative terminal SRN through the integration switch Sn2_d. The other end of the sampling capacitor Cs1 is connected to one end of the integration capacitor Ci1 and the negative input terminal of the operational amplifier opa1 through the integration switch Sn3. The other end of the sampling capacitor Cs2 is connected to one end of the integration capacitor Ci2 and the positive input terminal of the operational amplifier opa1 through the integration switch Sn4. The other end of the integration capacitor Ci1 is connected to the positive output terminal of the operational amplifier opa1 as the positive output terminal of the first integration circuit 11, and the other end of the integration capacitor Ci2 is connected to the negative output terminal of the operational amplifier opa1 as the negative output terminal of the first integration circuit 11.
[0104] The other end of the sampling capacitor Cs1 and the other end of the sampling capacitor Cs2 are also connected through the sampling switches Sm3 and Sm4 , and the connection point between the sampling switches Sm3 and Sm4 is connected to the preset voltage VCM.
[0105] The difference between the second integration circuit 12 and the first integration circuit 11 is that the two sampling capacitors of the first integration circuit 11 are connected to the sampling positive terminal SRP of the shunt resistor through the sampling switch, and are connected to the sampling negative terminal SRN of the shunt resistor through the integration switch, one sampling capacitor of the second integration circuit 12 is connected to the positive output terminal of the first integration circuit 11 through the integration switch, and is connected to the negative output terminal of the first integration circuit 11 through the sampling switch, and the other sampling capacitor is connected to the positive output terminal of the first integration circuit 11 through the sampling switch, and is connected to the negative output terminal of the first integration circuit 11 through the integration switch.
[0106] For example, Figure 8As shown, the sampling capacitor Cs3 of the second integration circuit 12 is connected to the positive output terminal of the first integration circuit 11 through the integration switch Sn5_d, and is connected to the negative output terminal of the first integration circuit 11 through the sampling switch Sm5_d. The sampling capacitor Cs4 of the second integration circuit 12 is connected to the negative output terminal of the first integration circuit 11 through the integration switch Sn6_d, and is connected to the positive output terminal of the first integration circuit 11 through the sampling switch Sm6_d. The remaining connections are the same as those of the first integration circuit 11 and are not repeated here.
[0107] In a possible implementation, the summing circuit includes: two summing units and two sampling switches, each summing unit includes: two summing capacitors, a plurality of sampling switches and an integration switch;
[0108] One end of the two summing capacitors is respectively connected to an integrating switch as a group of summing input terminals of each summing unit, two sampling switches are connected between one end of the two summing capacitors, a connection point of the two sampling switches is connected to a preset voltage, and the other ends of the two summing capacitors are connected as the output terminal of each summing unit;
[0109] The output ends of the two summing units are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0110] In this embodiment, if Figure 8 As shown, in a summing unit, one end of the integrating switch Sn9_d serves as an input end of the summing unit, connected to the positive output end of the second integrating circuit 12, the other end of the integrating switch Sn9_d is connected to one end of the summing capacitor C1, one end of the integrating switch Sn10_d serves as another input end of the summing unit, connected to the negative output end of the first integrating circuit 11, the other end of the integrating switch Sn10_d is connected to one end of the summing capacitor C2, the other ends of the summing capacitor C1 and the summing capacitor C2 are connected as the output end of the summing unit, one end of the summing capacitor C1 and the summing capacitor C2 are also connected through the sampling switches Sm9_d and Sm10_d, and the connection point of the sampling switches Sm9_d and Sm10_d is connected to the preset voltage VCM.
[0111] In another summing unit, the integration switch Sn11_d is connected to the positive output terminal of the first integration circuit 11, and the integration switch Sn12_d is connected to the negative output terminal of the second integration circuit 12. The remaining connection relationships are the same and will not be repeated here.
[0112] The output ends of the two summing units are connected through two sampling switches Sm13_d and Sm14_d, and the connection point of the sampling switches Sm13_d and Sm14_d is connected to the preset voltage VCM.
[0113] In a possible implementation, the digital-to-analog conversion circuit includes: the digital-to-analog conversion circuit includes: two feedback capacitors, multiple groups of feedback switches, multiple sampling switches and integration switches; one end of each feedback capacitor is respectively connected to a sampling switch and an integration switch, the sampling switch connected to each feedback capacitor is respectively connected to a preset reference voltage terminal and a preset ground terminal through a group of feedback switches, and the integration switch connected to each feedback capacitor is respectively connected to a preset reference voltage terminal and a preset ground terminal through a group of feedback switches; the other ends of the two feedback capacitors serve as feedback output ends of the digital-to-analog conversion circuit, the other ends of the two feedback capacitors are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
[0114] In this embodiment, the sampling switch is connected to a preset reference voltage terminal through a first feedback switch in a set of feedback switches, and is connected to a preset ground terminal through a second feedback switch, and the integration switch is connected to a preset reference voltage terminal through a second feedback switch in a set of feedback switches, and is connected to a preset ground terminal through the first feedback switch.
[0115] Specifically, Figure 8 As shown, the feedback capacitor Cf1 is respectively connected to the sampling switch Sm15_d and the integration switch Sn13_d, the feedback capacitor Cf2 is respectively connected to the sampling switch Sm16_d and the integration switch Sn14_d, the sampling switch Sm15_d is connected to the preset reference voltage Vref through the feedback switch A1, and is connected to the preset ground point VSS through the feedback switch B1, and the integration switch Sn13_d is connected to the preset reference voltage Vref through the feedback switch B2, and is connected to the preset ground point VSS through the feedback switch A2.
[0116] The sampling switch Sm16_d is connected to the preset reference voltage Vref through the feedback switch A3 and to the preset ground point VSS through the feedback switch B3. The integration switch Sn14_d is connected to the preset reference voltage Vref through the feedback switch B4 and to the preset ground point VSS through the feedback switch A4.
[0117] The other end of the integrating capacitor Cf1 is connected to the other end of the sampling capacitor Cs1 , and the other end of the integrating capacitor Cf2 is connected to the other end of the sampling capacitor Cs2 .
[0118] A digital-to-analog conversion circuit is added to the analog-to-digital converter, so that the analog-to-digital converter constitutes a sigma-delta ADC with a multi-order semi-feedforward single-loop structure. The analog-to-digital converter does not need to set a feedforward path from input to output, and can amplify the input signal to the full dynamic range of the analog-to-digital converter by adjusting the ratio of sampling capacitors Cs1, Cs2 and feedback capacitors Cf1, Cf2, so that there is no need to add a current detection front-end amplifier circuit in the analog-to-digital converter.
[0119] For example, Fig. 9The timing waveform diagram provided in the embodiment of the present application is as follows: Figure 8 and Fig. 9 As shown, the working principle of the analog-to-digital converter is as follows: under the sampling timing, the signals Pmx and Pmx_d respectively control the corresponding sampling switches Smx and Smx_d to be closed, the signals Pnx and Pnx_d respectively control the corresponding integration switches Snx and Snx_d to be disconnected, and the sampling capacitor Csx is charged; under the integration timing, the signals Pm and Pm_d respectively control the corresponding sampling switches Smx and Smx_d to be disconnected, the signals Pn and Pn_d respectively control the corresponding integration switches Snx and Snx_d to be closed, the sampling capacitor Csx discharges to the integration capacitor Cix, the summing circuit 13 sums the negative output voltage of the first integration circuit 11 and the positive output voltage of the second integration circuit 12, and sums the positive output voltage of the first integration circuit 11 and the negative output voltage of the second integration circuit 12, and inputs the two summed voltages into the comparison circuit 14, and the comparison circuit 14 outputs the comparison result according to the positive and negative of the two summed voltages. The comparison control signal Eval of the comparison circuit 14 only controls the comparison circuit 14 to perform comparison within the non-overlapping time of the signals Pm and Pn, thereby shortening the comparison time of the analog-to-digital converter and reducing power consumption.
[0120] like Fig. 9 As shown, during the time when the comparison control signal Eval is valid, only the signal Pn_d is at a high level, that is, Figure 8 In the digital-to-analog conversion circuit shown, only the integration switches Sn13_d and Sn14_d are in a closed state. Thus, when the comparison result output by the comparison circuit 14 is 1, the feedback switch Ax is controlled to be closed and Bx is disconnected, and the feedback capacitors Cf1 and Cf2 are discharged. Then, the sampling voltage of the sampling capacitors Cs1 and Cs2 is subtracted from the error voltage of the feedback capacitors Cf1 and Cf2. When the comparison result output by the comparison circuit is 0, the feedback switch Ax is controlled to be disconnected and Bx is closed, and the feedback capacitors Cf1 and Cf2 are charged, and no error voltage is provided to the sampling capacitors Cs1 and Cs2.
[0121] Above Figure 8 The analog-to-digital converter shown adopts a fully differential structure, which can provide a higher output swing and better linearity performance, thereby optimizing parameters such as the signal-to-noise ratio of the circuit output and suppressing even-order harmonics.
[0122] In one possible implementation, Fig.10 The circuit principle of the digital-to-analog converter provided in the embodiment of the present application Figure 2 ,like Fig.10As shown, the first selector includes a switch unit Q1 and a switch unit P1, and the second selector includes a switch unit Q2 and a switch unit P2, wherein the sampling positive terminal SRP of the shunt resistor is connected to the sampling switch Sm1_d and the sampling switch Sm2_d through the switch unit Q1, the sampling negative terminal SRN of the shunt resistor is connected to the sampling switch Sm1_d and the sampling switch Sm2_d through the switch unit P1, the sampling positive terminal SRP of the shunt resistor is connected to the integral switch Sn1_d and the integral switch Sn2_d through the switch unit P2, and the sampling negative terminal SRN of the shunt resistor is connected to the integral switch Sn1_d and the integral switch Sn2_d through the switch unit Q2.
[0123] In a possible implementation manner, the analog-to-digital converter further includes: at least two integrator chopper circuits.
[0124] The integral positive input terminal and the integral negative output terminal of each integral circuit are connected to the sampling positive output terminal and the sampling negative output terminal of each integral circuit through the first switch group and the second switch group of an integrator chopper circuit respectively; the third switch group of an integrator chopper circuit connects the positive output terminal of the first integral circuit with the sampling positive input terminal, the sampling negative output terminal, the integral positive input terminal and the integral negative input terminal of the second integral circuit; the fourth switch group of an integrator chopper circuit connects the negative output terminal of the first integral circuit with the sampling positive input terminal, the sampling negative output terminal, the integral positive input terminal and the integral negative input terminal of the second integral circuit; the positive input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integral circuit through the third switch group of another integrator chopper circuit, and the negative input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integral circuit through the fourth switch group of another integrator chopper circuit.
[0125] In this embodiment, if Fig.10As shown, in the first integration circuit 11, the first switch group of the integrator chopper circuit includes switches P3 and Q3, one end of the integration capacitor Ci1 serves as the integration positive input end of the first integration circuit 1, the integration capacitor Ci1 is connected to the sampling positive output end, i.e., the sampling capacitor Cs1, through the switch P3 and the integration switch Sn3, and the integration capacitor Ci1 is connected to the sampling negative output end, i.e., the sampling capacitor Cs2, through the switch Q3 and the integration switch Sn4; similarly, the second switch group of the integrator chopper circuit includes switches P4 and Q4, one end of the integration capacitor Ci2 serves as the first integration circuit 1 The integral negative input terminal, the integral capacitor Ci2 is connected to the sampling positive output terminal, that is, the sampling capacitor Cs1, through the switch Q4 and the integral switch Sn3, and the integral capacitor Ci2 is connected to the sampling negative output terminal, that is, the sampling capacitor Cs2, through the switch P4 and the integral switch Sn4. In this way, when the control switch Px is closed and Qx is disconnected, the integral capacitor Ci1 is connected to the sampling capacitor Cs1, and the integral capacitor Ci2 is connected to the sampling capacitor Cs2; when the control switch Px is disconnected and Qx is closed, the integral capacitor Ci1 is connected to the sampling capacitor Cs2, and the integral capacitor Ci2 is connected to the sampling capacitor Cs1.
[0126] The third switch group of the integrator chopper circuit includes switches P5 and Q5. The positive output terminal of the first integrator circuit 11 is connected to the integration switch Sn5_d, i.e., the integration positive input terminal of the second integrator circuit 12, and the sampling switch Sm6_d, i.e., the sampling negative input terminal of the second integrator circuit 12, through the switch P5. The positive output terminal of the first integrator circuit 11 is also connected to the sampling switch Sm5_d, i.e., the sampling positive input terminal of the second integrator circuit 12, and the integration switch Sn6_d, i.e., the integration negative input terminal of the second integrator circuit 12, through the switch Q5. The fourth switch group of the integrator chopper circuit includes switches P6 and Q6. The negative output end of the first integration circuit 11 is connected to the integration switch Sn6_d, i.e., the integration negative input end of the second integration circuit 12, and the sampling switch Sm5_d, i.e., the sampling positive input end of the second integration circuit 12, through the switch P6. The negative output end of the first integration circuit 11 is also connected to the sampling switch Sm6_d, i.e., the sampling negative input end of the second integration circuit 12, and the integration switch Sn5_d, i.e., the integration positive input end of the second integration circuit 12, through the switch Q6.
[0127] The switches Px and Qx in each switch group of the integrator chopper circuit have the same working principle as each selector in the global chopper circuit, wherein switch Q corresponds to selection 0 and switch P corresponds to selection 1. Switches P and Q are controlled by two-phase non-overlapping clock signals 0 and 1. When the clock signal is 0, switch Qx is closed and Px is open. When the clock signal is 1, switch Qx is open and Px is closed.
[0128] An integrator chopper circuit is arranged at the input and output ends of the integrator composed of a sampling capacitor, an integrating capacitor and an operational amplifier, which can effectively reduce the problem of excessive offset voltage caused by mismatch of the sampling capacitor. The chopping frequency of the integrator chopper circuit is obtained by allocating the sampling integration frequency.
[0129] Furthermore, the current detection system of this embodiment can reduce the offset voltage and low-frequency noise of the analog-to-digital converter by setting a global chopping circuit at the input and output ends of the analog-to-digital converter and setting an integrator chopping circuit at the input and output ends of the integrator of each stage of the operational amplifier circuit, thereby making the digital code stream of the analog-to-digital converter more accurate.
[0130] In one possible implementation, Fig.11 The circuit schematic diagram of the operational amplifier provided in the embodiment of the present application is as follows: Fig.11 As shown, the operational amplifiers in each stage of the operational amplifier circuit of the analog-to-digital converter of the embodiment of the present application all adopt two-stage operational amplifiers, wherein the first stage adopts a five-tube unit structure and the second stage adopts a common-source stage structure.
[0131] Furthermore, in order to suppress low-frequency noise and offset voltage, a chopping modulation circuit is also added to the operational amplifier of the first-stage operational amplifier circuit to modulate the low-frequency noise and offset voltage to a high frequency so that they can be filtered out by a digital filter. The chopping frequency of the chopping modulation circuit is obtained by allocating the sampling and integration phase frequencies. The noise and offset voltage of the second-stage operational amplifier circuit can be shaped to a high frequency without adding a chopping modulation circuit.
[0132] like Fig.10 As shown, the switch groups P11 and Q11, P12 and Q12 at the input end of the operational amplifier opa1 are the part of the chopper modulation circuit at the input end, and the part at the output end is not shown in the figure, and the part of the chopper modulation circuit not shown is represented by "X".
[0133] Furthermore, in a possible implementation, the analog-to-digital converter also includes: a common-mode feedback circuit, wherein the input end of the common-mode feedback circuit is connected to the positive output end and the negative output end of each stage of the operational amplifier circuit, and the output end of the common-mode feedback circuit is connected to the feedback control end of each stage of the operational amplifier circuit.
[0134] In this embodiment, Fig.12 The circuit schematic diagram of the common-mode feedback circuit provided in the embodiment of the present application is as follows: Fig.12 As shown, the input end of the common-mode feedback circuit is connected to the positive output end Vop and the negative output end Von of each integration circuit, and the output end of the common-mode feedback circuit is connected to the feedback control end Vcmfb of each integration circuit.
[0135] When in sampling timing, the sampling switch Smx_d is closed and the integration switch Snx_d is opened. At this time, the accumulated charges Q1 and Q2 on the capacitors C1 and C2 are respectively:
[0136] Q1=(Von-VCMF)C1+(Vop-VCMF)C1
[0137] Q2=0
[0138] When in the integration timing, the sampling switch Smx_d is disconnected and the integration switch Snx_d is closed. At this time, the accumulated charges Q3 and Q4 on the capacitors C1 and C2 are respectively:
[0139] Q3=(Von-VCMF')C1+(Vop-VCMF')C1
[0140] Q4=(Von-VCMF')C2+(Vop-VCMF')C2
[0141] According to the charge conservation principle, the charge generated during sampling is equal to the charge generated during integration, so Q1+Q2=Q3+Q4, that is:
[0142] (Von-VCMF)C1+(Vop-VCMF)C1+0=(Von-VCMF')C1+(Vop-VCMF')C1+(OUTN-VCMF')C2+(OUTP-VCMF')C2
[0143] After simplification, we can get:
[0144]
[0145] As n increases slowly, the value of the detection voltage VCMF is approximately equal to The detected value is compared and amplified by the operational amplifier with the ideal common-mode voltage, and the output common-mode feedback current source is biased to achieve adjustment of the input common mode.
[0146] Based on the above embodiments, Fig.13 Circuit principle of the analog-to-digital converter provided in the embodiment of the present application Figure 3 ,like Fig.13 As shown, each chopper circuit is encapsulated. The current detection system provided in the embodiment of the present application adopts a low-side current detection technology based on a shunt resistor. There is no high common-mode input voltage, which greatly reduces the design difficulty and avoids the loss problem of the input signal caused by the high-voltage switch. The capacitor amplifies the signal and avoids the design of the front-end amplifier circuit, which greatly saves area and power consumption. In addition, the use of three types of chopping greatly eliminates the noise and offset voltage generated by grounding.
[0147] Furthermore, the analog-to-digital converter of the present application can also be applied to high-side current detection, and it is only necessary to design the high-voltage switch to ensure its stability.
[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A current detection system, characterized in that: The current detection system comprises: a shunt resistor, an analog-to-digital converter, a digital filter and a result register; The shunt resistor is connected between the load of the circuit to be detected and the ground terminal, and is used to convert the current of the circuit to be detected into a sampling voltage; The positive and negative input terminals of the analog-to-digital converter are respectively connected to the sampling positive terminal and the sampling negative terminal of the shunt resistor, and are used to convert the sampled voltage and output a digital code stream; The input end of the digital filter is connected to the output end of the analog-to-digital converter, and is used to convert the digital code stream into a digital signal with a preset number of bits. The output end of the digital filter is connected to the result register to calculate the current of the circuit to be detected based on the digital signal with the preset number of bits.
2. The current detection system according to claim 1, characterized in that: The analog-to-digital converter comprises: a first integration circuit, a second integration circuit, a summing circuit, a comparison circuit and a digital-to-analog conversion circuit; The sampling positive input terminal and the sampling negative input terminal of the first integration circuit are connected as the positive input terminal of the analog-to-digital converter, and the integration positive input terminal and the integration negative input terminal of the first integration circuit are connected as the negative input terminal of the analog-to-digital converter; The positive output terminal of the first integration circuit is connected to the integration positive input terminal and the sampling negative input terminal of the second integration circuit, and the negative output terminal of the first integration circuit is connected to the sampling positive input terminal and the integration negative input terminal of the second integration circuit; The negative output terminal of the first integration circuit and the positive output terminal of the second integration circuit are connected to a group of summing input terminals of the summing circuit, the positive output terminal of the first integration circuit and the negative output terminal of the second integration circuit are connected to another group of summing input terminals of the summing circuit, the two summing output terminals of the summing circuit are connected to the two input terminals of the comparison circuit, and the output terminal of the comparison circuit serves as the output terminal of the analog-to-digital converter; The output end of the comparison circuit is also connected to the control end of the digital-to-analog conversion circuit, and the feedback output end of the digital-to-analog conversion circuit is connected to the sampling output end of the first integration circuit.
3. The current detection system according to claim 2, characterized in that: The analog-to-digital converter further includes: a reset switch group and a reset comparator; The reset switches of the reset switch group are connected to the two ends of the integration capacitor of each integration circuit, the positive input end of the reset comparator is connected to a preset voltage, the two negative input ends of the reset comparator are respectively connected to the positive output end and the negative output end of the first integration circuit, and the output end of the reset comparator is connected to the control ends of the reset switches of the reset switch group.
4. The current detection system according to claim 2, characterized in that: The analog-to-digital converter further includes: a global chopping circuit; The sampling positive terminal and the sampling negative terminal of the shunt resistor are respectively connected to the first positive input terminal and the first negative input terminal of the global chopping circuit, the first output terminal of the global chopping circuit is connected to the sampling positive input terminal and the sampling negative input terminal of the first integration circuit, the sampling positive terminal and the sampling negative terminal of the shunt resistor are also respectively connected to the second positive input terminal and the second negative input terminal of the global chopping circuit, and the second output terminal of the global full-wave circuit is connected to the integration positive input terminal and the integration negative input terminal of the first integration circuit; The third input end of the global chopping circuit is connected to the output end of the comparison circuit, the third output end of the global chopping circuit serves as the output end of the analog-to-digital converter, and the third output end of the global chopping circuit is also connected to the control end of the digital-to-analog conversion circuit.
5. The current detection system according to claim 4, characterized in that: The global chopping circuit includes: a first selector, a second selector, a third selector and an inverter; The first input end of the first selector is the first positive input end of the global chopping circuit, the second input end of the first selector is the first negative input end of the global chopping circuit, and the output end of the first selector is the first output end of the global chopping circuit; The first input end of the second selector is the second negative input end of the global chopping circuit, the second input end of the second selector is the second positive input end of the global chopping circuit, and the output end of the second selector is the second output end of the global chopping circuit; The first input end of the third selector is connected to the input end of the inverter as the third positive input end of the global chopping circuit, the output end of the inverter is connected to the second input end of the third selector, and the output end of the third selector serves as the third output end of the global chopping circuit.
6. The current detection system according to claim 2, characterized in that: Each integration circuit includes: a plurality of sampling switches and integration switches, two sampling capacitors, two integration capacitors and an operational amplifier; One end of the two sampling capacitors is connected to a sampling switch as the sampling positive input terminal and the sampling negative input terminal, respectively, and one end of the two sampling capacitors is also connected to an integration switch as the integration positive input terminal and the integration negative input terminal, respectively; The other ends of the two sampling capacitors are connected to one end of an integrating capacitor through an integrating switch, one integrating capacitor is connected to the negative input terminal and the positive output terminal of the operational amplifier, and the other integrating capacitor is connected to the positive input terminal and the negative output terminal of the operational amplifier; The positive output terminal and the negative output terminal of the operational amplifier serve as the positive output terminal and the negative output terminal of the integration circuit respectively; The other ends of the two sampling capacitors are also connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
7. The current detection system according to claim 2, characterized in that: The summing circuit comprises: two summing units and two sampling switches, each summing unit comprises: two summing capacitors, a plurality of sampling switches and an integration switch; One end of the two summing capacitors is respectively connected to an integrating switch as a group of summing input ends of each summing unit, two sampling switches are connected between one end of the two summing capacitors, a connection point of the two sampling switches is connected to a preset voltage, and the other end of the two summing capacitors is connected as an output end of each summing unit; The output ends of the two summing units are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
8. The current detection system according to claim 2, characterized in that: The digital-to-analog conversion circuit includes: two feedback capacitors, multiple groups of feedback switches, multiple sampling switches and integration switches; One end of each feedback capacitor is respectively connected to a sampling switch and an integration switch, the sampling switch connected to each feedback capacitor is respectively connected to a preset reference voltage terminal and a preset ground terminal through a group of feedback switches, and the integration switch connected to each feedback capacitor is respectively connected to the preset reference voltage terminal and the preset ground terminal through a group of feedback switches; The other ends of the two feedback capacitors serve as feedback output ends of the digital-to-analog conversion circuit. The other ends of the two feedback capacitors are connected through two sampling switches, and the connection point of the two sampling switches is connected to a preset voltage.
9. The current detection system according to claim 2, characterized in that: The analog-to-digital converter also includes: two integrator chopper circuits; The integral positive input terminal and the integral negative output terminal of each integral circuit are connected to the sampling positive output terminal and the sampling negative output terminal of each integral circuit respectively through a first switch group and a second switch group of an integrator chopper circuit; A third switch group of an integrator chopper circuit connects the positive output terminal of the first integrator circuit and the sampling positive input terminal, sampling negative output terminal, integration positive input terminal and integration negative input terminal of the second integrator circuit; a fourth switch group of the integrator chopper circuit connects the negative output terminal of the first integrator circuit and the sampling positive input terminal, sampling negative output terminal, integration positive input terminal and integration negative input terminal of the second integrator circuit; The positive input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integrating circuit through the third switch group of another integrator chopper circuit, and the negative input terminal of the summing circuit is connected to the positive output terminal and the negative output terminal of the second integrating circuit through the fourth switch group of another integrator chopper circuit.
10. The current detection system according to claim 2, characterized in that: The analog-to-digital converter further includes: a common-mode feedback circuit; The input end of the common-mode feedback circuit is connected to the positive output end and the negative output end of each integration circuit, and the output end of the common-mode feedback circuit is connected to the feedback control end of each integration circuit.
Citation Information
Cited By
High-precision low-power-consumption alternating-current impedance measuring circuit and method
CN120064776A
Aviation electromagnetic emission current measuring system
CN120315048A
Battery monitoring circuit, battery management system and electronic equipment
CN122546056A
