A current sampling circuit and a switching power supply system using the same
By designing a current sampling circuit, the target current is allocated into multiple detection signals, the problem of insufficient current detection accuracy in the prior art is solved, high-precision current detection and accurate monitoring of abnormal conditions within a wide range, and the system is improved control accuracy and fault detection capability.
Patent Information
- Application Number
- CN202410864769.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The existing current sampling method is insufficient when detecting current, and cannot obtain the target current size of the system under normal operation with high accuracy within a wide range. It is impossible to accurately detect overcurrent or undercurrent under abnormal conditions, which can easily cause the system to Fault.
Design a current sampling circuit, obtain the sampling current of the target current through the first sampling module, and distribute it into multiple current detection signals through the allocation module, respectively used to characterize the magnitude of the target current in different states, including normal and over The current and undercurrent states ensure that each current detection signal is within the range that the MCU can receive, achieving high-precision detection and control.
It realizes high-precision current detection over a wide range, can accurately reflect the target current, and timely monitor overcurrent or undercurrent conditions, improving the control accuracy and fault detection capabilities of the system.
Smart Images

Figure CN118425602B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics, and in particular to a current sampling circuit and a switching power supply system using the same. Background Art
[0002] In a switching power supply system, in order to obtain more system information, the current or voltage in the system is usually sampled to achieve overcurrent or overvoltage protection. In order to obtain the current information in the system or the load information of the system, the current information is usually converted into voltage information through an external resistor. In applications, MCU (microcontroller) is usually selected to collect voltage information that characterizes the current, so that the current within the rated range can be detected and a large current limit value can be set for current limiting protection. Considering that the input voltage range of MCU is usually 0-3.3V, the acquisition accuracy of MCU can usually only be maintained at a high level within a certain voltage range. For example, the voltage collected by MCU is in the range of 0.3-3V, and the acquisition accuracy is high.
[0003] Take a 12V automotive battery application as an example, the maximum rated load current is 20A, and the current limit value is 40A. In the existing technical solution: let the current limit value of 40A correspond to the sampling voltage of 3V input by the MCU, then the sampling voltage of 0-20A load current corresponding to the MCU input is 0-1.5V. The 0-1.5V range is too small and the accuracy is not high enough, and it cannot reflect the size of the load current with high accuracy. We expect that the sampling current of 0-20A can correspond to the sampling voltage in a larger range, such as 0-3V, so that the sampling voltage can characterize the size of the load current more accurately; similarly, if the sampling voltage of 0-20A load current corresponding to the MCU input is 0-2V, the current limit value can only be set to within 30A. In fact, the current limit value is usually set larger, such as 40A, but the sampling voltage corresponding to 40A is 4V, and the MCU cannot input a sampling voltage of 4V. Once the current in the application exceeds 40A, the sampling voltage input by the MCU cannot reflect whether the actual current is overcurrent, so this sampling method will sacrifice the maximum current limit value that can be set.
[0004] According to the above analysis, in the existing current sampling method, if one wants to accurately detect whether the target current is overcurrent, undercurrent or other abnormal conditions, it is impossible to obtain the target current size under normal operation of the system with high precision within a wide range, which may easily cause inaccurate system control; if one wants to obtain the target current size under normal operation of the system with high precision within a wide range, then in the event of system abnormalities, it is impossible to accurately detect / monitor whether the target current is overcurrent, undercurrent or other conditions, which may easily cause system failure. Summary of the invention
[0005] The purpose of the present invention is to provide a high-precision current sampling circuit and a switching power supply system using the same, so as to monitor and control the target current with high precision by sampling multiple information of the target current in the system with high precision.
[0006] The present invention also provides a current sampling circuit for sampling a target current, comprising:
[0007] A first sampling module, used to obtain a sampling current representing the target current;
[0008] a distribution module, receiving the sampled current, and obtaining a plurality of current detection signals according to the sampled current, wherein the plurality of current detection signals at least include a first current detection signal and a second current detection signal, wherein the first current detection signal is used to characterize the magnitude of the target current when it is in a first current state, and the second current detection signal is used to characterize the magnitude of the target current when it is in a second current state;
[0009] When the target current is in a first current state, the first current detection signal is greater than a first threshold and less than a second threshold; when the target current is in a second current state, the second current detection signal is greater than the first threshold and less than the second threshold.
[0010] Optionally, a clamping circuit is further included, which is connected between the first sampling module and the distribution module and is used to clamp the voltage of the common connection terminal of the first sampling module and the distribution module within a certain range.
[0011] Optionally, the first current state represents that the target current is in a normal current state, and the second current state represents that the target current is in an overcurrent state.
[0012] Optionally, when the second current detection signal is greater than a third threshold, it indicates that the target current is overcurrent, and the third threshold is greater than the first threshold and less than the second threshold.
[0013] Optionally, the first current detection signal is greater than the second current detection signal.
[0014] Optionally, the first current detection signal is proportional to the second current detection signal, and a proportionality coefficient is a set value.
[0015] Optionally, the distribution module further generates a third current detection signal for indicating the current magnitude when the target current is in a third current state, wherein the third current state indicates that the target current is in an undercurrent state;
[0016] The third current detection signal is greater than the first current detection signal, and the first current detection signal is greater than the second current detection signal;
[0017] When the target current is in a third current state, the third current detection signal is greater than the first threshold and less than the second threshold.
[0018] Optionally, the first sampling module includes a first sampling resistor, a second sampling resistor, a first operational amplifier and a first sampling tube, the first sampling resistor is connected to the loop where the target current is located, the first end of the second sampling resistor is connected to the first end of the first sampling resistor, the second end of the second sampling resistor is connected to the first end of the first sampling tube, the second end of the first sampling tube is connected to the distribution module, the first input end of the first operational amplifier is connected to the common connection end of the second sampling resistor and the first sampling tube, the second input end of the first operational amplifier is connected to the second end of the first sampling resistor, and the output end of the first operational amplifier is connected to the control end of the first sampling tube; the current flowing through the second sampling resistor is the sampling current.
[0019] Optionally, the distribution module includes at least two current distribution circuits, a first current distribution circuit and a second current distribution circuit of the two current distribution circuits are respectively connected to the sampling module, the first current distribution circuit outputs the first current detection signal, and the second current distribution circuit outputs the second current detection signal.
[0020] Optionally, the first current distribution circuit includes a first adjustment tube and a first detection resistor connected in series, and the second current distribution circuit includes a second adjustment tube and a second detection resistor connected in series; the first adjustment tube and the second adjustment tube share a common gate and a common source, and the gate of the first adjustment tube is connected to its drain; the width-to-length ratio of the first adjustment tube is proportional to the width-to-length ratio of the second adjustment tube, and the proportional coefficient is a set value.
[0021] Optionally, when the voltage at the connection terminal between the first sampling resistor and the second sampling resistor is less than a low voltage threshold, the first sampling tube reuses the first adjustment tube or the second adjustment tube.
[0022] Optionally, the clamping circuit includes a voltage-stabilizing diode, a cathode of which is connected to a connection end between the first sampling module and the distribution module, and an anode of which is grounded.
[0023] Optionally, the clamping circuit includes a first switch tube, a second switch tube and a first resistor connected in series, the control end of the first switch tube receives a reference voltage, the control end of the second switch tube is connected to a common connection end of the sampling module and the distribution module, and the voltage on the first resistor is used to drive the distribution module.
[0024] The present invention further provides a switching power supply system, comprising any one of the above-mentioned current sampling circuits, for sampling a target current on a certain loop in the switching power supply or an output current of the switching power supply.
[0025] Optionally, an MCU is also included, and the MCU receives multiple current detection signals output by the current sampling circuit and is used to monitor and control the working state of the switching power supply system.
[0026] Compared with the prior art, the present invention has the following advantages: the present invention distributes the sampling current representing the target current obtained in a conventional manner into multiple detection currents according to a set ratio, and obtains corresponding multiple current detection signals based on the multiple detection currents. Each current detection signal can meet the high-precision detection range under the corresponding state, and each current detection signal can reflect the information of the target current under the corresponding state with high precision. The present invention can not only obtain accurate target current information, but also timely and accurately reflect whether the target current is overcurrent, undercurrent, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a schematic diagram of Embodiment 1 of the current sampling circuit of the present invention;
[0028] Figure 2 This is a schematic diagram of Embodiment 2 of the current sampling circuit of the present invention;
[0029] Figure 3 For the present invention Figure 2 Schematic diagram of Example 1 of the middle clamp circuit;
[0030] Figure 4 For the present invention Figure 2 Schematic diagram of Example 2 of the middle clamp circuit;
[0031] Figure 5 for Figure 1 , 2 Schematic diagram of the current distribution circuit in the figure;
[0032] Figure 6 is a schematic diagram of a current sampling circuit embodiment 3 of the present invention;
[0033] Figure 7 for Figure 6 Schematic diagram of the current distribution circuit in the figure;
[0034] Figure 8 The figure is a block diagram of a switching power supply system using the current sampling circuit of the present invention. DETAILED DESCRIPTION
[0035] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, but the present invention is not limited to these embodiments. The present invention covers any substitution, modification, equivalent method and scheme made on the spirit and range of the present invention.
[0036] In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, but those skilled in the art can fully understand the present invention without the description of these details.
[0037] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. It should be noted that the accompanying drawings are all simplified and not in exact proportions, in order to facilitate and clearly assist in explaining the purpose of the embodiments of the present invention.
[0038] like Figure 1 As shown, a schematic diagram of an embodiment 1 of the current sampling circuit of the present invention is illustrated, including a first sampling module 00 and a distribution module 01. The first sampling module 00 samples the target current Iout to obtain a sampling current IS representing the target current Iout; the distribution module 01 is used to distribute the sampling current IS to obtain a plurality of detection currents, the plurality of detection currents at least including a first detection current IS1 and a second detection current IS2, and a third detection current, a fourth detection current, etc. can also be obtained as needed. Preferably, the plurality of detection currents are proportional to each other according to a set proportionality coefficient, and the plurality of detection currents are used to represent a variety of information of the target current Iout; a plurality of corresponding current detection signals VS1, VS2, ... are obtained according to the plurality of detection currents, such as setting the first current detection signal VS1 to represent the target current Iout in a normal state. out, the second current detection signal VS2 is used to characterize whether the target current Iout is overcurrent, and the third current detection signal VS3 is used to characterize whether the target current Iout is undercurrent, so that under normal working conditions, the first current detection signal VS1 is within the target range, that is, greater than the first threshold and less than the second threshold. Under overcurrent conditions, the second current detection signal VS2 is also within the target range, and under undercurrent conditions, the third current detection signal VS3 is also within the target range. More current detection signals can be obtained as needed to characterize various information of the target current Iout; wherein, the target range is the input range that the processor such as the MCU input port can accept. We hope that the multiple detection signals obtained can be within the processor input range, and each detection signal has a wider range to obtain more accurate target current information. Specifically, Figure 1As shown, the first sampling module 00 includes a first sampling resistor RS, a second sampling resistor R0, a first operational amplifier 001, and a sampling tube M0. The first sampling resistor RS is connected to the loop where the target current Iout is located. The second sampling resistor R0 is connected in series with the sampling tube M0. The second sampling resistor R0 is connected to the first end of the first sampling resistor RS. The first input end of the first operational amplifier 001 is connected to the common connection end of the second sampling resistor R0 and the sampling tube M0. The second input end of the first operational amplifier 001 is connected to the second end of the first sampling resistor RS. The output end of the first operational amplifier 001 is connected to the control end of the adjustment tube M0. According to the operational amplifier characteristics, the voltage of the first input end of the first operational amplifier 001 is equal to the voltage of its second input end, that is, the voltage across the second sampling resistor R0 is equal to the voltage across the first sampling resistor RS, that is, the sampling current IS flowing through the second sampling resistor R0 is proportional to the target current flowing through the first sampling resistor RS, and IS=RS / R0×Iout. The distribution module 01 is used to distribute the sampling current IS to obtain multiple detection currents IS1, IS2, ..., the sum of the multiple detection currents is equal to the sampling current IS, and the multiple detection currents are detected to obtain multiple current detection signals respectively. Specifically, it includes at least a first current distribution circuit 101 and a second current distribution circuit 102, which are respectively used to obtain at least a first current detection signal VS1 and a second current detection signal VS2. In the schematic diagram, the voltage VH at one end of the first sampling resistor RS can be high voltage or low voltage, but when the voltage VH at one end of the first sampling resistor RS is a high voltage greater than a certain threshold, the sampling tube M0 needs to be a high voltage device, which is a high voltage PMOS tube in the figure. Due to the poor matching of high voltage devices, the distribution accuracy is poor when used for current distribution, so a low voltage tube is also needed to be used for current distribution. The schematic diagram of the embodiment of the distribution module 01 using a low voltage tube for current distribution is as follows Figure 4 shown.
[0039] like Figure 2 As shown, the schematic diagram of the embodiment 2 of the current sampling circuit of the present invention is shown. Figure 1 The same parts will not be repeated. Figure 1 The difference is that this embodiment also includes a clamping circuit 02, which is connected between the first sampling module 00 and the distribution module 01, and is used to clamp the voltage VS0 at the connection end of the first sampling module 00 and the distribution module 01 within a certain range. If the voltage VS0 is not clamped, it is easy to cause overvoltage of the voltage VS0, which in turn easily causes the multiple current detection signals obtained by the distribution module 01 to be too large, exceeding the expected range, making the detection of the target current inaccurate.
[0040] like Figure 3 Shown, indicated Figure 2The schematic diagram of the embodiment 1 of the clamping circuit in the figure shows that the clamping circuit 02 includes a voltage-stabilizing diode Z0, whose cathode is connected to the common connection terminal of the first sampling module 00 and the distribution module 01, and whose anode is grounded. When the voltage VS0 at the common connection terminal of the first sampling module 00 and the distribution module 01 reaches the voltage-stabilizing value of the voltage-stabilizing diode Z0, the voltage VS0 is clamped at the voltage-stabilizing value and cannot be increased. In this embodiment, when the target current I0 / sampling current IS is too large, in order to clamp the voltage VS0 within the desired range, the size of the voltage-stabilizing diode Z0 required will be relatively large, and the occupied area will be relatively large.
[0041] like Figure 4 Shown, indicated Figure 2 Schematic diagram of Example 2 of the clamping circuit, the clamping circuit 02 includes a first switch tube Q1, a second switch tube Q2 and a first resistor R1 connected in series, the first end of the first switch tube Q1 receives the power supply voltage VDD, and the second end thereof is connected to the first end of the second switch tube Q2, the control end of the first switch tube Q1 receives a given reference voltage Vbisa, the second end of the second switch tube Q2 is connected to the first end of the first resistor R1, and the control end thereof is connected to the common connection end of the first sampling module 00 and the distribution module 01, the voltage of the common connection end is VS0, the second end of the first resistor R1 is grounded, and the voltage VG on the first resistor R1 is used as the driving voltage of the distribution module 01. The voltage at the connection end of the first switch tube Q1 and the second switch tube Q2 is VB, and VB=Vbisa-VGS_Q1, VS0=VB-VGS_Q2=Vbisa-VGS_Q1-VGS_Q2. When the sampling current IS increases, VS0 increases, and the gate-source voltage VGS_Q1 of the low-voltage switch tube Q2 decreases, so that the current flowing through the first resistor R1 decreases, which in turn causes the voltage VG to drop, and in turn causes the voltage VS0 to decrease, thereby preventing the voltage VS0 from being too large. According to the above analysis, the clamping circuit 01 is a closed-loop feedback circuit, which prevents the voltage VS0 from being too large through closed-loop regulation, and fully utilizes the current capacity of the switch tubes Q1 and Q2. The entire clamping circuit has a small area and flexible voltage regulation capability.
[0042] like Figure 5 Shown, indicated Figure 1 , 2The schematic diagram of the distribution module 01 includes multiple current distribution circuits, each of which includes a low-voltage adjustment tube / MOS tube. The figure shows two current distribution circuits, namely a first current distribution circuit 101 and a second current distribution circuit 102. The first current distribution circuit 101 includes a first adjustment tube M1 and a first detection resistor RS1 connected in series. The drain of the first adjustment tube M1 is connected to the source of the sampling tube M0, and the gate and source of the first adjustment tube M1 are connected; the second current distribution circuit 102 , including a second adjustment tube M2 and a second detection resistor RS2 connected in series, the drain of the second adjustment tube M2 is connected to the source of the sampling tube M0, the gate of the second adjustment tube M2 is connected to the source, the gate of the second adjustment tube M1 is connected to the gate of the first adjustment tube M1, and since the first adjustment tube M1 and the second adjustment tube M2 share a common gate and a common drain, the current IS1 flowing through the first adjustment tube M1 is proportional to the current IS2 flowing through the second adjustment tube M2, and the width-to-length ratio of the first adjustment tube M1 is set to N1, and the width-to-length ratio of the second adjustment tube M2 is set to N2, then IS1 / IS2=N1 / N2, the voltage on the first detection resistor RS1 is detected to obtain the first current detection signal VS1, and the voltage on the second resistor RS2 is detected to obtain the second current detection signal VS2, the first current detection signal VS1 and the second current detection signal VS2 are input into the processor, and the processor detects the state of the target current Iout according to the received current detection signal. In particular, in Figure 4 In the schematic circuit diagram, the gates of the first adjustment tube M1 and the second adjustment tube M2 also need to receive a voltage VG for driving the first adjustment tube M1 and the second adjustment tube M2 to be turned on, so as to form a closed-loop feedback path for limiting the voltage VS0 from being too large.
[0043] For example, the first current detection signal VS1 is set to represent the size of the target current Iout in a normal state, and the second current detection signal VS2 is used to represent / monitor whether the target current Iout is overcurrent. The second current detection signal VS1 is set to 2×VS2. Assuming that the normal working range of the target current Iout is 0-20A, when the target current Iout is greater than the current limit value of 30A, it indicates that the target current Iout is overcurrent. Assuming that the input voltage range that the processor chip can receive is 0-3.3V, through the current detection method of the present invention, the normal working range of the target current Iout is set to 0-20A, and the corresponding first current detection signal VS1 is 1-3V. Then the voltage range is between 0-3.3V, and the range is wider (for example, the range corresponding to 1-3V is wider than the range corresponding to 2-2.5V), the detection accuracy is higher, and it is within the input range that the processor can receive. The current limiting value of 30A corresponds to a first current detection signal VS1 of 4V (greater than the voltage that the processor can receive, so the first current detection signal VS1 cannot reflect whether the target current is overcurrent), and corresponds to a second detection signal VS2 of 2V. 2V is within the input range that the processor can receive, so whether the target current Iout is overcurrent and the current state when overcurrent is reflected by monitoring the second detection signal VS2; therefore, under normal conditions, the processor detects the size of the target current Iout by detecting the size of the first current detection signal VS1, and monitors whether the target current Iout enters the overcurrent state and the current state when overcurrent is detected by detecting the second current detection signal VS2. Regardless of whether the target current Iout is in a normal state or an overcurrent state, the processor can accurately and timely monitor the state of the target current Iout so that the system can make further state control or protection.
[0044] According to the above analysis, the sampling current IS representing the target current Iout can be proportionally distributed into multiple detection currents, and different detection currents are used to detect different states of the target current Iout, such as normal state, overcurrent state or undercurrent state. The present invention is not limited to dividing the sampling current IS into several detection currents, that is, it is not limited to which states of the target current are monitored. Even if the target current Iout is always in a normal state, the sampling current IS can be further proportionally distributed into multiple detection currents, thereby obtaining multiple current detection signals, corresponding to the target current Iout in a large current state, a medium current state, a small current state, etc. Regardless of how the sampling method is set, it is necessary to ensure that the corresponding current detection signals in the corresponding state are all within the input range that the processor chip can receive, for example, the size of VS1 in the normal state is within the range that the chip can receive, and the size of VS2 in the overcurrent state is also within the ideal range that the chip can receive.
[0045] like Figure 6 As shown, the schematic diagram of the third embodiment of the current sampling circuit of the present invention is shown. Figure 1The principle of the current sampling circuit is similar, and it also includes a first sampling module 00 and a distribution module 01. The first sampling module 00 also includes a first sampling resistor RS, a second sampling resistor R0, a first operational amplifier 001 and a sampling tube. The first end of the first sampling resistor RS is connected to the first end of the second sampling resistor R0. The two input ends of the first operational amplifier 001 are respectively connected to the second end of the first sampling resistor RS and the second end of the second sampling resistor R0, and the output end is connected to the control end of the sampling tube. Figure 1 The difference between the schematic diagram and the schematic diagram is that the voltage VL of the common connection terminal of the first sampling resistor RS and the second sampling resistor R0 is low voltage, so the sampling tube can be a low voltage MOS tube; further, since the sampling tube is a low voltage device, the sampling tube can also be used as an adjustment tube for current distribution in the distribution module 01. The distribution module 01 includes at least two current distribution circuits, each of which has an adjustment tube. The figure takes two current distribution circuits as an example, namely the first current distribution circuit 101 and the second current distribution circuit 102. For the distribution principle of the current distribution module 01, refer to Figure 1 , 2 For an introduction to the allocation module.
[0046] like Figure 7 Shown, indicated Figure 6 The schematic diagram of the distribution module 01 in FIG. 1 includes a plurality of current distribution circuits. The figure takes two current distribution circuits as an example, namely, a first current distribution circuit 101 and a second current distribution circuit 102. The structure of the current distribution circuit refers to the structure of the current distribution circuit 101. Figure 2 The description of the present invention will not be further elaborated here. It should be pointed out that the adjustment tube in any current distribution circuit can be used as the sampling tube in the sampling module 00. Taking the adjustment tube M1 in the first current distribution circuit 101 as an example, the output end of the first operational amplifier 001 in the sampling module 00 is connected to the control end of the adjustment tube M1, and each adjustment tube in each current distribution circuit has a common gate, and the source of each adjustment tube is connected to the second end of the second sampling resistor R0 in the sampling module 00. The working principle of the distribution module 01 refers to the Figure 2 The description will not be further elaborated here.
[0047] like Figure 8As shown, a block diagram of a switching power supply system using the current sampling circuit of the present invention is illustrated, including a switching power supply, a current sampling circuit of the present invention and an MCU. Taking the output current of the switching power supply as an example, the current sampling circuit is connected to the output loop, and outputs multiple current detection signals VS1, VS2, VS3, ... ... to characterize various information of the output current of the switching power supply. The MCU receives the multiple current detection signals, each current detection signal corresponds to a state of the output current, that is, corresponds to the magnitude of the output current within a target range. Under the corresponding current state, each current detection signal is within the range that the MCU input can receive. The MCU monitors the magnitude of the output current in each state by monitoring the magnitude of each current detection signal. For example, the MCU can accurately monitor the overcurrent situation of the output current, the undercurrent situation and the magnitude of the output current during normal output. The current sampling circuit of the present invention is not limited to sampling the output current, but can also sample the current on other paths in the switching power supply system.
[0048] Although the embodiments are described and illustrated separately above, some common technologies are involved. It is the opinion of ordinary technicians in this field that the embodiments can be replaced and integrated. If the content is not clearly recorded in one of the embodiments, reference can be made to another recorded embodiment.
[0049] The above-described implementation methods do not constitute a limitation on the protection scope of the technical solution. Any modification, equivalent replacement and improvement made within the spirit and principle of the above-described implementation methods shall be included in the protection scope of the technical solution.
Claims
1. A switching power supply system, comprising a switching power supply, a current sampling circuit and an MCU, wherein the MCU receives a plurality of current detection signals and is used to monitor and control the working state of the switching power supply system, characterized in that: The current sampling circuit is used to sample the target current, including: A first sampling module, used to obtain a sampling current representing the target current; a distribution module, receiving the sampled current, and obtaining the multiple current detection signals according to the sampled current, wherein the multiple current detection signals include at least a first current detection signal and a second current detection signal, wherein the first current detection signal is used to characterize the magnitude of the target current when it is in a first current state, and the second current detection signal is used to characterize the magnitude of the target current when it is in a second current state; Wherein, when the target current is in a first current state, the first current detection signal is greater than a first threshold value and less than a second threshold value; when the target current is in a second current state, the second current detection signal is greater than the first threshold value and less than the second threshold value; The first current state indicates that the target current is in a normal current state, and the second current state indicates that the target current is in an overcurrent state; When the second current detection signal is greater than a third threshold, it indicates that the target current is overcurrent, and the third threshold is greater than the first threshold and less than the second threshold; The first current detection signal is greater than the second current detection signal; The first current detection signal is proportional to the second current detection signal, and the proportionality coefficient is a set value; The target current represents the output current of the switching power supply or the current in a certain loop of the switching power supply; Each current detection signal corresponds to a state of the target current. Under the corresponding current state, each current detection signal is within the range that the MCU input can receive. The MCU monitors the current state of the target current by monitoring the size of each current detection signal. The MCU can accurately monitor the overcurrent condition of the target current and the size of the target current during normal output.
2. The switching power supply system according to claim 1, characterized in that: A clamping circuit is also included. The clamping circuit is connected between the first sampling module and the distribution module and is used to clamp the voltage of the common connection terminal of the first sampling module and the distribution module within a certain range.
3. The switching power supply system according to claim 2, characterized in that: The multiple current detection signals further include a third current detection signal, which is used to characterize the current magnitude when the target current is in a third current state, wherein the third current state characterizes that the target current is in an undercurrent state; The third current detection signal is greater than the first current detection signal, and the first current detection signal is greater than the second current detection signal; When the target current is in a third current state, the third current detection signal is greater than the first threshold and less than the second threshold; The multiple detection current signals are proportional to each other according to a set proportionality coefficient; the MCU can accurately monitor the overcurrent condition, undercurrent condition of the target current and the size of the target current during normal output.
4. The switching power supply system according to claim 1, characterized in that: The first sampling module includes a first sampling resistor, a second sampling resistor, a first operational amplifier and a first sampling tube, the first sampling resistor is connected to the loop where the target current is located, the first end of the second sampling resistor is connected to the first end of the first sampling resistor, the second end of the second sampling resistor is connected to the first end of the first sampling tube, the second end of the first sampling tube is connected to the distribution module, the first input end of the first operational amplifier is connected to the common connection end of the second sampling resistor and the first sampling tube, the second input end of the first operational amplifier is connected to the second end of the first sampling resistor, and the output end of the first operational amplifier is connected to the control end of the first sampling tube; The current flowing through the second sampling resistor is the sampling current.
5. The switching power supply system according to claim 4, characterized in that: The distribution module includes at least two current distribution circuits, a first current distribution circuit and a second current distribution circuit of the two current distribution circuits are respectively connected to the sampling module, the first current distribution circuit outputs the first current detection signal, and the second current distribution circuit outputs the second current detection signal.
6. The switching power supply system according to claim 5, characterized in that: The first current distribution circuit includes a first adjustment tube and a first detection resistor connected in series, and the second current distribution circuit includes a second adjustment tube and a second detection resistor connected in series; the first adjustment tube and the second adjustment tube share a common gate and a common source, and the gate of the first adjustment tube is connected to its drain; The width-to-length ratio of the first adjustment tube is proportional to the width-to-length ratio of the second adjustment tube, and the proportionality coefficient is a set value.
7. The switching power supply system according to claim 6, characterized in that: When the voltage at the connection end of the first sampling resistor and the second sampling resistor is less than a low voltage threshold, the first sampling tube reuses the first adjustment tube or the second adjustment tube.
8. The switching power supply system according to claim 2, characterized in that: The clamping circuit comprises a voltage stabilizing diode, a cathode of which is connected to the connection end of the first sampling module and the distribution module, and an anode of which is grounded.
9. The switching power supply system according to claim 2, characterized in that: The clamping circuit includes a first switch tube, a second switch tube and a first resistor connected in series, the control end of the first switch tube receives a reference voltage, the control end of the second switch tube is connected to a common connection end of the first sampling module and the distribution module, and the voltage on the first resistor is used to drive the distribution module.
