Current detection circuit and electronic device
By introducing adjustable sampling resistor circuits and capacitor circuits into the current detection system, the problem of difficulty in compatible with micro and large current measurements is solved, and the current detection effect with high accuracy and low power consumption is achieved.
Patent Information
- Application Number
- CN202411825956.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-04
AI Technical Summary
The existing current detection system is difficult to be compatible with the input and output of large currents while ensuring the accuracy of micro current measurement.
A current detection system is designed, including an input terminal, an output terminal, a control module, a current sampling circuit and a capacitor circuit. The control module adjusts the resistance value of the sampling resistor circuit and the capacitance value of the capacitor circuit according to the detected current to meet the measurement requirements of different current levels.
It realizes maintaining high accuracy when measuring small currents, while reducing power consumption and voltage ripple when measuring large currents, improving system stability and adaptability.
Smart Images

Figure CN119757826A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of electronic circuits, and more specifically, to a current detection system and an electronic device. Background Art
[0002] At present, there are two common methods for detecting small currents. One is direct access using sampling resistor circuits, shunts and other sampling elements in series with the circuit, and calculating the current flowing through based on the voltage across the sampling element and the impedance of the sampling element. The other is to use non-contact current sensors, Hall elements and other sensing circuits to sense the current flowing through the circuit.
[0003] However, it is difficult to reduce the accuracy of non-contact current sampling. It is difficult to maintain accuracy after it drops to the microampere level. In addition, the volume of general Hall-type current sensors is larger than that of sampling resistor circuits, which affects the overall structural layout.
[0004] The access measurement method can achieve the lowest precision and maintain a certain accuracy at the microampere or even nanoampere level. However, the existing current detection system is difficult to be compatible with the input and output and measurement of large currents while ensuring the accuracy of tiny current measurements. Summary of the invention
[0005] An object of the embodiments of the present disclosure is to provide a current detection system and an electronic device.
[0006] According to a first aspect of an embodiment of the present disclosure, a current detection system is provided, including an input end, an output end, a control module, a current sampling circuit and a capacitor circuit.
[0007] The current sampling circuit is used to detect the current between the input end and the output end;
[0008] The capacitive circuit is connected between the output terminal and the ground terminal of the current detection system;
[0009] The control module is used to adjust the resistance of the sampling resistor circuit in the current sampling circuit according to the current detected by the current sampling circuit, and / or adjust the capacitance of the capacitor circuit according to the current detected by the current sampling circuit, and the sampling resistor circuit is connected between the input end and the output end.
[0010] Optionally, the control module is used to adjust the resistance of the sampling resistor circuit so that a first resistance is greater than a second resistance, the first resistance being the resistance of the sampling resistor circuit when the current detected by the current sampling circuit is less than a first threshold, and the second resistance being the resistance of the sampling resistor circuit when the current detected by the current sampling circuit is greater than the first threshold.
[0011] Optionally, the sampling resistor circuit includes a first resistor, a second resistor and a first switch, the resistance of the first resistor is smaller than the resistance of the second resistor, the first resistor and the second resistor are connected in series between the input end and the output end, and the first switch and the second resistor are connected in parallel;
[0012] The control module is used to control the first switch to be turned on when the current detected by the current sampling circuit is greater than the first threshold; and to control the first switch to be turned off when the current detected by the current sampling circuit is less than the first threshold.
[0013] Optionally, the sampling resistor circuit further includes a diode, the diode is connected in parallel with the second resistor, an anode of the diode is connected to the input end, and a cathode of the diode is connected to the output end.
[0014] Optionally, the sampling resistor circuit includes a third resistor, a fourth resistor, a second switch and a third switch, the resistance of the third resistor is smaller than the resistance of the fourth resistor, the third resistor and the second switch are connected in series between the input end and the output end, and the fourth resistor and the third switch are connected in series between the input end and the output end;
[0015] The control module is used to control the second switch to be turned on and the third switch to be turned off when the current detected by the current sampling circuit is greater than the first threshold; and to control the second switch to be turned off and the third switch to be turned on when the current detected by the current sampling circuit is less than the first threshold.
[0016] Optionally, the control module is used to adjust the capacitance of the capacitor circuit so that the first capacitance is smaller than the second capacitance, the first capacitance being the capacitance of the capacitor circuit when the current detected by the current sampling circuit is smaller than the first threshold, and the second capacitance being the capacitance of the capacitor circuit when the current detected by the current sampling circuit is greater than the first threshold.
[0017] Optionally, the capacitor circuit includes a first capacitor, a second capacitor and a fourth switch, the capacitance of the first capacitor is smaller than the capacitance of the second capacitor, the first capacitor is connected between the output terminal and the ground terminal, and the second capacitor and the fourth switch are connected in series between the output terminal and the ground terminal;
[0018] The control module is used to control the fourth switch to be disconnected when the current detected by the current sampling circuit is less than the first threshold; and to control the fourth switch to be turned on when the current detected by the current sampling circuit is greater than the first threshold.
[0019] Optionally, the capacitor circuit also includes a fifth switch and a fifth resistor, and the fifth resistor and the fifth switch are connected in series and then connected in parallel with the second capacitor. The control module is used to control the fifth switch to be turned on when the current detected by the current sampling circuit is less than a first threshold, so that the second capacitor discharges through the fifth resistor.
[0020] According to a second aspect of the present disclosure, an electronic device is provided, comprising the current detection system as described in the first aspect of the present disclosure.
[0021] Optionally, the electronic device is a power source or a battery simulator.
[0022] By adjusting the resistance of the sampling resistor circuit through the current detection system of this embodiment, when the current detected by the current sampling circuit is greater than the first threshold, the resistance of the sampling resistor circuit can be made smaller to reduce the power consumption of the current sampling circuit; when the current detected by the current sampling circuit is less than the first threshold, the resistance of the sampling resistor circuit can be made larger to improve the accuracy of the current detection result.
[0023] By adjusting the capacitance of the capacitor circuit through the current detection system of this embodiment, when the current detected by the current sampling circuit is greater than the first threshold value, the capacitance of the capacitor circuit can be larger, which can reduce the voltage ripple at the output end and improve the stability of the output end; when the current detected by the current sampling circuit is less than the first threshold value, the capacitance of the capacitor circuit is smaller, and the current between the input end and the output end can be detected quickly and stably, thereby improving the accuracy of the current detection result.
[0024] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0026] Figure 1 is a block diagram of a current detection system according to an embodiment of the present disclosure;
[0027] Figure 2 is a schematic diagram of a current sampling circuit according to an embodiment of the present disclosure;
[0028] Figure 3 is a schematic diagram of a current sampling circuit according to another embodiment of the present disclosure;
[0029] Figure 4 is a schematic diagram of a capacitor circuit according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0031] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0032] Technologies, methods and equipment known to persons of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods and equipment should be considered part of the specification.
[0033] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0034] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0035] <Current Detection System Embodiment>
[0036] The present disclosure provides a current detection system, such as Figure 1 As shown, the current detection system 1000 includes an input terminal VIN, an output terminal VOUT, a control module 1100 , a current sampling module 1200 and a capacitor circuit 1300 .
[0037] The current sampling circuit 1200 is used to detect the current between the input terminal VIN and the output terminal VOUT.
[0038] The capacitor circuit 1300 is connected between the output terminal VOUT and the ground terminal GND of the current detection system 1000 .
[0039] The control module 1100 is used to adjust the resistance value of the sampling resistor circuit in the current sampling circuit 1200 and / or the capacitance value of the capacitor circuit 1300 according to the current detected by the current sampling circuit 1200 .
[0040] In one embodiment of the present disclosure, the current sampling circuit 1200 may include a current sensor or a Hall element, which may be arranged at a position close to the line between the input terminal VIN and the output terminal VOUT to sense the current between the input terminal VIN and the output terminal VOUT.
[0041] Based on this embodiment, the control module 1100 can adjust the capacitance of the capacitor circuit 1300 according to the current detected by the current sampling circuit 1200 .
[0042] In another embodiment of the present disclosure, the current sampling circuit 1200 may include a sampling resistor circuit, an operational amplifier, and a processing unit. The sampling resistor circuit may be connected between an input terminal VIN and an output terminal VOUT. Specifically, a first end of the sampling resistor circuit is connected to the input terminal VIN, a second end of the sampling resistor circuit is connected to the output terminal VOUT, two input terminals of the operational amplifier are respectively connected to two ends of the sampling resistor circuit, and the processing unit is connected to the output terminal of the operational amplifier. The processing unit may obtain the current between the input terminal VIN and the output terminal VOUT according to the output result of the operational amplifier and the resistance value of the sampling resistor circuit.
[0043] Based on this embodiment, the control module 1100 can adjust the resistance value of the sampling resistor circuit in the current sampling circuit 1200 and / or the capacitance value of the capacitor circuit 1300 according to the current detected by the current sampling circuit 1200 .
[0044] In one embodiment of the present disclosure, the control module 1100 is used to adjust the resistance of the sampling resistor circuit so that the first resistance is greater than the second resistance, and / or the control module 1100 is used to adjust the capacitance of the capacitor circuit 1300 so that the first capacitance is less than the second capacitance. The first resistance is the resistance of the sampling resistor circuit when the current is less than the first threshold, the second resistance is the resistance of the sampling resistor circuit when the current is greater than the first threshold, the first capacitance is the capacitance of the capacitor circuit when the current is less than the first threshold, and the second capacitance is the capacitance of the capacitor circuit when the current is greater than the first threshold.
[0045] By adjusting the resistance of the sampling resistor circuit through the current detection system of this embodiment, when the current between the input end and the output end is greater than the first threshold, the resistance of the sampling resistor circuit can be smaller, thereby reducing the power consumption of the current sampling circuit; when the current between the input end and the output end is less than the first threshold, the resistance of the sampling resistor circuit can be larger, thereby improving the accuracy of the current detection result.
[0046] By adjusting the capacitance of the capacitor circuit through the current detection system of this embodiment, when the current between the input end and the output end is greater than the first threshold value, the capacitance of the capacitor circuit can be larger, the voltage ripple at the output end can be reduced, and the stability of the output end can be improved; when the current between the input end and the output end is less than the first threshold value, the capacitance of the capacitor circuit is smaller, the current between the input end and the output end can be detected quickly and stably, and the accuracy of the current detection result is improved.
[0047] In one embodiment of the present disclosure, Figure 2As shown, the sampling resistor circuit includes a first resistor R1, a second resistor R2 and a first switch S1. The resistance of the first resistor R1 is smaller than the resistance of the second resistor R2. The first resistor R1 and the second resistor R2 are connected in series between the input terminal VIN and the output terminal VOUT. The first switch S1 and the second resistor R2 are connected in parallel.
[0048] The control module 1100 is used to control the first switch S1 to be turned on when the current detected by the current sampling circuit 1200 is greater than the first threshold; and to control the first switch S1 to be turned off when the current detected by the current sampling circuit 1200 is less than the first threshold.
[0049] In this embodiment, when the current detected by the current sampling circuit 1200 is greater than the first threshold value, the first switch S1 is controlled to be turned on, the second resistor R2 is cut out of the current sampling circuit 1200, and the resistance of the sampling resistor circuit is reduced to reduce the power consumption of the current sampling circuit. When the current detected by the current sampling circuit 1200 is less than the first threshold value, the first switch S1 is controlled to be turned off, the second resistor R2 is cut into the current sampling circuit 1200, and the resistance of the sampling resistor circuit is increased to improve the accuracy of the current detection result.
[0050] In one embodiment of the present disclosure, Figure 2 As shown, the sampling resistor circuit further includes a diode D1, which is connected in parallel with the second resistor R2, an anode of the diode D1 is connected to the input terminal VIN, and a cathode of the diode D1 is connected to the output terminal VOUT.
[0051] In this embodiment, when the current detected by the current sampling circuit 1200 is less than the first threshold value and greater than the second threshold value, since the resistance value of the second resistor R2 is relatively large, in order to prevent the second resistor R2 from being overloaded and burned, the diode D1 is turned on and the second resistor R2 is cut out of the current sampling circuit 1200; when the current detected by the current sampling circuit 1200 is greater than the first threshold value, the first switch S1 is controlled to be turned on, and then the diode D1 is cut out of the current sampling circuit 1200.
[0052] The first switch of this embodiment cooperates with the diode to short-circuit the second resistor, so that the large current does not pass through the second resistor.
[0053] In one embodiment of the present disclosure, Figure 3 As shown, the sampling resistor circuit includes a third resistor R3, a fourth resistor R4, a second switch S2 and a third switch S3, the resistance of the third resistor R3 is less than the resistance of the fourth resistor R4, the third resistor R3 and the second switch S2 are connected in series between the input terminal VIN and the output terminal VOUT, and the fourth resistor R4 and the third switch S3 are connected in series between the input terminal VIN and the output terminal VOUT.
[0054] The control module 1100 is used to control the second switch S2 to be turned on and the third switch S3 to be turned off when the current detected by the current sampling circuit 1200 is less than the first threshold; and to control the second switch S2 to be turned off and the third switch S3 to be turned on when the current detected by the current sampling circuit 1200 is greater than the first threshold.
[0055] In this embodiment, when the current detected by the current sampling circuit 1200 is greater than the first threshold value, the power consumption of the current sampling circuit can be reduced by controlling the second switch S2 to be turned on and the third switch S3 to be turned off, and using the third resistor R3 with a smaller resistance as the sampling resistor circuit. When the current detected by the current sampling circuit 1200 is less than the first threshold value, the accuracy of the current detection result can be improved by controlling the second switch S2 to be turned off and the third switch S3 to be turned on, and using the fourth resistor R4 with a larger resistance as the sampling resistor circuit.
[0056] In one embodiment of the present disclosure, Figure 4 As shown, the capacitor circuit 1300 includes a first capacitor C1, a second capacitor C2 and a fourth switch S4, the capacitance of the first capacitor C1 is smaller than the capacitance of the second capacitor C2, the first capacitor C1 is connected between the output terminal VOUT and the ground terminal GND, and the second capacitor C2 and the fourth switch S4 are connected in series between the output terminal VOUT and the ground terminal GND.
[0057] The control module 1100 is used to control the fourth switch S4 to be disconnected when the current detected by the current sampling circuit 1200 is less than the first threshold value; and to control the fourth switch S4 to be turned on when the current detected by the current sampling circuit 1200 is greater than the first threshold value.
[0058] In this embodiment, the first capacitor C1 may be a ceramic capacitor with a relatively small capacity, and the second capacitor C2 may be an electrolytic capacitor with a relatively large capacity.
[0059] In this embodiment, when the current detected by the current sampling circuit 1200 is greater than the first threshold value, the fourth switch S4 is controlled to be turned on, the second capacitor C2 is cut into the capacitor circuit 1300, and the capacitance of the capacitor circuit 1300 is increased to reduce the voltage ripple of the output terminal VOUT and improve the stability of the output terminal. When the current detected by the current sampling circuit 1200 is less than the first threshold value, the fourth switch S4 is controlled to be turned off, the second capacitor C2 is cut out of the capacitor circuit 1300, and the capacitance of the capacitor circuit 1300 is reduced, so that the current between the input terminal and the output terminal can be detected quickly and stably, and the accuracy of the current detection result can be improved.
[0060] If the current detected by the current sampling circuit 1200 changes from being greater than the first threshold to being less than the first threshold, in order to quickly and stably measure the current detected by the current sampling circuit 1200, the fourth switch S4 needs to be controlled to be disconnected, but both ends of the second capacitor C2 are charged.
[0061] On this basis, in one embodiment of the present disclosure, Figure 4 As shown, the capacitor circuit 1300 also includes a fifth switch S5 and a fifth resistor R5. The fifth resistor R5 and the fifth switch S5 are connected in series and then connected in parallel with the second capacitor C2. The control module 1100 is used to control the fifth switch S5 to be turned on when the current detected by the current sampling circuit 1200 is less than the first threshold value, so that the second capacitor C2 discharges through the fifth resistor R5.
[0062] In this embodiment, the fifth resistor R5 and the fifth switch S5 are connected in series between the first end of the second capacitor C2 and the second end of the second capacitor C2. When the fifth switch S5 is turned on, the fifth resistor R5, the fifth switch S5 and the second capacitor C2 form a loop, so the second capacitor C2 can be discharged through the fifth resistor R5.
[0063] Through this embodiment, the safety of the current detection system can be improved.
[0064] In one embodiment of the present disclosure, the first switch S1 , the second switch S2 , the third switch S3 , the fourth switch S4 , and the fifth switch S5 may be provided by relays, analog switch chips, or transistors, respectively.
[0065] In one embodiment of the present disclosure, the fourth switch S4 and the fifth switch S5 may be provided by a relay. Specifically, the first fixed end of the relay may be connected to the output terminal VOUT, the second fixed end of the relay may be connected to the first end of the fifth resistor R5, the second end of the fifth resistor R5 may be connected to the ground terminal GND, the moving end of the relay may be connected to the first end of the second capacitor C2, and the second end of the second capacitor C2 may be connected to the ground terminal GND.
[0066] In this embodiment, when the current detected by the current sampling circuit 1200 is greater than the first threshold value, the moving end of the control relay may be connected to the first fixed end and disconnected from the second fixed end, so as to realize that the fourth switch S4 is turned on and the fifth switch S5 is turned off. When the current detected by the current sampling circuit 1200 is less than the first threshold value, the moving end of the control relay may be disconnected from the first fixed end and connected to the second fixed end, so as to realize that the fourth switch S4 is turned off and the fifth switch S5 is turned on.
[0067] <Electronic Device Embodiment>
[0068] This embodiment provides an electronic device, including the current detection system described in any embodiment of this embodiment.
[0069] In one example, the electronic device may be a power source or a battery simulator, or may be other chips.
[0070] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0071] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0072] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0073] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0074] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0075] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0076] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0077] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0078] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A current detection system, characterized in that: It includes input end, output end, control module, current sampling circuit and capacitor circuit. The current sampling circuit is used to detect the current between the input end and the output end; The capacitive circuit is connected between the output terminal and the ground terminal of the current detection system; The control module is used to adjust the resistance of the sampling resistor circuit in the current sampling circuit according to the current detected by the current sampling circuit, and / or adjust the capacitance of the capacitor circuit according to the current detected by the current sampling circuit, and the sampling resistor circuit is connected between the input end and the output end.
2. The current detection system according to claim 1, characterized in that: The control module is used to adjust the resistance of the sampling resistor circuit so that a first resistance is greater than a second resistance, the first resistance being the resistance of the sampling resistor circuit when the current detected by the current sampling circuit is less than a first threshold, and the second resistance being the resistance of the sampling resistor circuit when the current detected by the current sampling circuit is greater than the first threshold.
3. The current detection system according to claim 2, characterized in that: The sampling resistor circuit includes a first resistor, a second resistor and a first switch, the resistance of the first resistor is smaller than the resistance of the second resistor, the first resistor and the second resistor are connected in series between the input end and the output end, and the first switch and the second resistor are connected in parallel; The control module is used for controlling the first switch to be turned on when the current detected by the current sampling circuit is greater than the first threshold; When the current detected by the current sampling circuit is less than the first threshold, the first switch is controlled to be disconnected.
4. The current detection system according to claim 3, characterized in that: The sampling resistor circuit further includes a diode, which is connected in parallel with the second resistor, an anode of the diode is connected to the input end, and a cathode of the diode is connected to the output end.
5. The current detection system according to claim 2, characterized in that: The sampling resistor circuit includes a third resistor, a fourth resistor, a second switch and a third switch, the resistance of the third resistor is smaller than the resistance of the fourth resistor, the third resistor and the second switch are connected in series between the input end and the output end, and the fourth resistor and the third switch are connected in series between the input end and the output end; The control module is used for controlling the second switch to be turned on and the third switch to be turned off when the current detected by the current sampling circuit is greater than the first threshold; When the current detected by the current sampling circuit is less than the first threshold, the second switch is controlled to be turned off and the third switch is controlled to be turned on.
6. The current detection system according to claim 2, characterized in that: The control module is used to adjust the capacitance of the capacitor circuit so that a first capacitance is smaller than a second capacitance. The first capacitance is the capacitance of the capacitor circuit when the current detected by the current sampling circuit is smaller than the first threshold value, and the second capacitance is the capacitance of the capacitor circuit when the current detected by the current sampling circuit is larger than the first threshold value.
7. The current detection system according to claim 6, characterized in that: The capacitor circuit includes a first capacitor, a second capacitor and a fourth switch, the capacitance of the first capacitor is smaller than the capacitance of the second capacitor, the first capacitor is connected between the output terminal and the ground terminal, and the second capacitor and the fourth switch are connected in series between the output terminal and the ground terminal; The control module is used to control the fourth switch to be disconnected when the current detected by the current sampling circuit is less than the first threshold; and to control the fourth switch to be turned on when the current detected by the current sampling circuit is greater than the first threshold.
8. The current detection system according to claim 7, characterized in that: The capacitor circuit also includes a fifth switch and a fifth resistor. The fifth resistor and the fifth switch are connected in series and then connected in parallel with the second capacitor. The control module is used to control the fifth switch to be turned on when the current detected by the current sampling circuit is less than a first threshold value, so that the second capacitor discharges through the fifth resistor.
9. An electronic device, characterized in that: The invention comprises a current detection system as claimed in any one of claims 1 to 8.
10. The electronic device according to claim 9, characterized in that: The electronic device is a power source or a battery simulator.