Intelligent electronic switch, current detection device, chip, chip product and automobile

By introducing a control circuit into the intelligent electronic switch, collecting the output current of the power switch and comparing it with the reference current, the problem of inaccurate voltage detection by the microcontroller is solved and more accurate current detection is achieved.

CN119341534AActive Publication Date: 2025-01-21XI AN WENXIAN SEMICON TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411123822.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2025-01-21
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

In existing smart electronic switches, the voltage detected by the microcontroller may be inaccurate, especially if the sampling voltage exceeds the microcontroller's rated operating voltage.

Method used

An intelligent electronic switch is designed, which includes a power supply terminal, a power ground terminal, a load output terminal, a first sampling terminal, a second sampling terminal, a power switch and a control circuit. The control circuit collects the output current of the power switch, performs sampling and compares it with the reference current. When the sampling current is less than or equal to the reference current, it outputs the sampling current through the first sampling terminal. When the sampling current is greater than the reference current, it outputs the third sampling terminal through the second sampling terminal. Two currents ensure that the microcontroller can accurately detect the output current of the power switch.

Benefits of technology

The signals output through the first sampling terminal and the second sampling terminal are within the sampling capability range of the microcontroller, which avoids the problem of inaccurate detection caused by the sampling voltage exceeding the working voltage of the microcontroller, and improves the detection of the microcontroller. Accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341534A_ABST
    Figure CN119341534A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent electronic switch, a current detection circuit, a chip, a chip product and an automobile, the intelligent electronic switch comprises a power switch, a control circuit, a first sampling end and a second sampling end, the control circuit can collect an output current of the power switch and obtain a sampling current, and when the sampling current is less than or equal to a reference current, the first sampling end is connected with the second sampling end; when the sampling current is larger than the reference current, the sampling current is output through the first sampling end, when the sampling current is larger than the reference current, the second current is output through the second sampling end, and the second current is smaller than the sampling current and related to the sampling current, so that the microcontroller can determine the output current of the power switch according to signals collected from the first sampling end and / or the second sampling end. According to the scheme, the problems that the detection result of the microcontroller is inaccurate and the variation of the sampling end is small and cannot be detected are solved, and the detection accuracy of the microcontroller is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic circuits, and in particular to an intelligent electronic switch, a current detection circuit, a chip, a chip product and an automobile. Background Art

[0002] With the development of automobile intelligence, the functions of automobiles are becoming more and more complex, and the realization of these functions requires different loads and different actuators. Among them, the intelligent electronic switch at least includes one or more power switches and control units used as electronic switches. The control unit can control the power switch to turn on or off based on the received control signal.

[0003] In the prior art, the intelligent electronic switch may also include a current sampling unit and a sampling end. The current sampling unit is used to collect the output current of the power switch and output the sampling current corresponding to the output current to the sampling end. The sampling end is also used to connect the detection resistor and the microcontroller, so that the microcontroller can obtain the sampling voltage corresponding to the sampling current from the sampling end and reasonably control the power switch.

[0004] However, in practical applications, the maximum voltage detected by the microcontroller is its rated operating voltage. Therefore, when the voltage at the sampling end exceeds the rated operating voltage of the microcontroller, the voltage detected by the microcontroller will be inaccurate. Summary of the invention

[0005] The present application provides an intelligent electronic switch, a current detection device, a chip, a chip product and a car, which are used to solve the problem that the voltage detected by a microcontroller may be inaccurate.

[0006] In a first aspect, the present application provides an intelligent electronic switch, including a power supply terminal, a power ground terminal, a load output terminal, a first sampling terminal, a second sampling terminal, a power switch, and a control circuit;

[0007] The power supply end and the power ground end are used to be connected to a battery, the power switch is used to be connected in series with a load, a first end thereof is connected to the power supply end or the power ground end, a second end thereof is connected to the load output end, and a control end thereof is connected to the control circuit, and the control circuit is used to control the power switch to be turned on or off;

[0008] The control circuit is also connected to the first sampling terminal and the second sampling terminal, and the first sampling terminal and the second sampling terminal are also used to connect to the microcontroller. The control circuit is also used to collect the output current of the power switch and obtain a sampling current, and the sampling current is used to characterize the current flowing through the power switch. The sampling current is compared with a reference current. When the sampling current is less than or equal to the reference current, the sampling current is output through the first sampling terminal. When the sampling current is greater than the reference current, a second current is output through the second sampling terminal, and the second current is less than the sampling current and is related to the sampling current, so that the microcontroller determines the output current of the power switch according to the signal collected from the first sampling terminal and / or the second sampling terminal.

[0009] In a possible design of the first aspect, the control circuit includes a driving unit, a current sampling unit and a current processing unit;

[0010] The driving unit is used to be connected to the microcontroller and the control end of the power switch, the current sampling unit is connected to the power switch and the current processing unit, and the current processing unit is also connected to the first sampling end and the second sampling end;

[0011] The driving unit is used to control the power switch to turn on or off according to the switch control signal of the microcontroller; the current sampling unit is used to collect the output current of the power switch and output the sampled current; the current processing unit is used to compare the received sampled current with the reference current, and when the sampled current is less than or equal to the reference current, output the sampled current to the first sampling end; when the sampled current is greater than the reference current, process the sampled current to obtain a second current and output the second current to the second sampling end.

[0012] As an example, the current processing unit includes a comparison unit, a first logic unit and an operation unit;

[0013] The first input end of the comparison unit, the input end of the first logic unit and the input end of the operation unit are all connected to the output end of the current sampling unit, the second input end of the comparison unit is used to access the reference current, the output end of the comparison unit is respectively connected to the enable end of the first logic unit and the enable end of the operation unit, the output end of the first logic unit is connected to the first sampling end, and the output end of the operation unit is connected to the second sampling end;

[0014] The comparison unit is used to compare the sampling current with the reference current, output a first level signal when the sampling current is less than or equal to the reference current, and output a second level signal when the sampling current is greater than the reference current;

[0015] The first logic unit is enabled when receiving the first level signal, and outputs the received sampling current to the first sampling end in the enabled state; the operation unit is enabled when receiving the second level signal, and performs a preset operation on the received sampling current in the enabled state to obtain the second current and output it to the second sampling end;

[0016] When the sampling current is less than or equal to the reference current, the first sampling terminal outputs the sampling current, and when the sampling current is greater than the reference current, the second sampling terminal outputs the second current.

[0017] In another possible design of the first aspect, the current processing unit is also used to output the reference current through the first sampling end when the sampled current is greater than the reference current, so that the microcontroller calibrates the second current actual sampling value collected from the second sampling end according to the actual sampling value of the reference current collected from the first sampling end.

[0018] As an example, the current processing unit includes a first selection unit, a comparison unit and an operation unit;

[0019] The first input end of the first selection unit, the first input end of the comparison unit and the input end of the operation unit are all connected to the output end of the current sampling unit, the second input end of the first selection unit and the second input end of the comparison unit are both used to access the reference current, the output end of the first selection unit is connected to the first sampling end; the output end of the comparison unit is connected to the enable end of the operation unit, and the output end of the operation unit is connected to the second sampling end;

[0020] The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the comparison unit is used to compare the sampling current and the reference current, and when the sampling current is greater than the reference current, output a second level signal to enable the operation unit, and the operation unit performs a preset operation on the received sampling current and outputs a second current to the second sampling terminal when in the enabled state;

[0021] When the sampling current is less than or equal to the reference current, the first sampling end outputs the sampling current; when the sampling current is greater than the reference current, the first sampling end outputs the reference current and the second sampling end outputs the second current.

[0022] Optionally, the operation unit is a division unit, a preset value greater than 1 is stored in the division unit, and the second current is equal to the value of the sampled current divided by the preset value.

[0023] Optionally, the operation unit is a subtraction unit, and the subtraction unit is further used to access the reference current, and the second current is equal to the value of the sampling current minus the reference current.

[0024] As another example, the current processing unit includes a first selection unit, a second selection unit and a subtraction unit;

[0025] The first input end of the first selection unit and the first input end of the second selection unit are both connected to the output end of the current sampling unit, the second input end of the first selection unit, the second input end of the second selection unit and the second input end of the subtraction unit are all used to access the reference current, the output end of the first selection unit is connected to the first sampling end, the output end of the second selection unit is connected to the first input end of the subtraction unit, and the output end of the subtraction unit is connected to the second sampling end;

[0026] The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the second selection unit is used to select a larger current from the sampling current and the reference current and output it to the subtraction unit, and the subtraction unit is used to subtract the reference current from the received larger current and output the operation result to the second sampling terminal;

[0027] When the sampling current is less than or equal to the reference current, the first sampling terminal outputs the sampling current, and the current output by the second sampling terminal is equal to zero; when the sampling current is greater than the reference current, the first sampling terminal outputs the reference current, and the second sampling terminal outputs the second current, and the second current is equal to the difference between the sampling current and the reference current.

[0028] In another possible design of the first aspect, the current processing unit is further used to output the first current through the second sampling end when the sampling current is less than or equal to the reference current, so that the microcontroller calibrates the actual sampling value of the sampling current collected from the first sampling end according to the actual sampling value of the first current collected from the second sampling end, wherein the first current is less than or equal to the reference current.

[0029] Optionally, the current processing unit includes a first selection unit, a second selection unit and a division unit;

[0030] The first input end of the first selection unit and the first input end of the second selection unit are both connected to the output end of the current sampling unit, the second input end of the first selection unit and the second input end of the second selection unit are both used to access the reference current, the output end of the first selection unit is connected to the first sampling end, the output end of the second selection unit is connected to the input end of the division unit, and the output end of the division unit is connected to the second sampling end;

[0031] The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the second selection unit is used to select a larger current from the sampling current and the reference current and output it to the division unit, and the division unit is used to divide the received larger current by a preset value and output the operation result to the second sampling terminal;

[0032] Wherein, when the sampling current is less than or equal to the reference current, the first sampling end outputs the sampling current, the second sampling end outputs the first current, and the first current is equal to the ratio of the reference current to the preset value; when the sampling current is greater than the reference current, the first sampling end outputs the reference current, the second sampling end outputs the second current, and the second current is equal to the ratio of the sampling current to the reference current.

[0033] In another possible design of the first aspect, the intelligent electronic switch further includes a feedback end, and the feedback end is connected to the current processing unit;

[0034] The current processing unit is also used to feed back a first indication signal through the feedback end when the sampling current is less than or equal to the reference current, and to feed back a second indication signal through the feedback end when the sampling current is greater than the reference current, so that the microcontroller determines a calibration signal from the signals collected by the first sampling end and the second sampling end according to the received indication signal.

[0035] In each possible design of the first aspect, the reference current is related to the sampling capability of the microcontroller, and the current output by the control circuit to the first sampling terminal and / or the second sampling terminal is within the rated sampling range of the microcontroller.

[0036] In a second aspect, an embodiment of the present application provides a current detection device, including the intelligent electronic switch and the microcontroller described in the first aspect and each possible design;

[0037] The microcontroller is connected to a first sampling terminal and a second sampling terminal of the intelligent electronic switch, and is used to determine an output current of a power switch in the intelligent electronic switch according to a signal collected from the first sampling terminal and / or the second sampling terminal.

[0038] In a possible design of the second aspect, when the microcontroller recognizes that both the first sampling end and the second sampling end have signal outputs, the microcontroller obtains a first sampling signal from the first sampling end and a second sampling signal from the second sampling end, and determines a calibration sampling signal from the first sampling signal and the second sampling signal;

[0039] When the first sampling signal is a calibration sampling signal, the microcontroller determines first sampling deviation information of the intelligent electronic switch according to the first sampling signal and a first theoretical sampling signal of the first sampling end, calibrates the second sampling signal according to the first sampling deviation information, and the microcontroller determines the output current of the power switch based on the calibrated second sampling signal, and the first theoretical sampling signal is preset;

[0040] When the second sampling signal is a calibration sampling signal, the microcontroller determines second sampling deviation information of the intelligent electronic switch according to the second sampling signal and a second theoretical sampling signal of the second sampling end, calibrates the first sampling signal according to the second sampling deviation information, and determines the output current of the power switch based on the calibrated first sampling signal, and the second theoretical sampling signal is preset.

[0041] Optionally, the microcontroller is further connected to a feedback end of the intelligent electronic switch, and when the microcontroller identifies that both the first sampling end and the second sampling end have signal outputs, the microcontroller obtains an indication signal from the feedback end;

[0042] The microcontroller determines that the second sampling signal is the calibration sampling signal when the indication signal at the feedback end is the first indication signal, and determines that the first sampling signal is the calibration sampling signal when the indication signal at the feedback end is the second indication signal.

[0043] In another possible design of the second aspect, the current detection device further includes a first detection resistor and a second detection resistor;

[0044] The first end of the first detection resistor is connected to the microcontroller and the first sampling end, and the second end thereof is connected to the ground potential; the first end of the second detection resistor is connected to the microcontroller and the second sampling end, and the second end thereof is connected to the ground potential;

[0045] The first detection resistor and the second detection resistor are used to determine the sampling accuracy of the microcontroller.

[0046] In a third aspect, an embodiment of the present application further provides an integrated circuit chip, comprising an intelligent electronic switch as described in the first aspect and each possible design, wherein the power supply end is a power supply pin, the power ground end is a power ground pin, the load output end is a load output pin, the first sampling end is a first sampling pin, and the second sampling end is a second sampling pin.

[0047] In a fourth aspect, an embodiment of the present application further provides a chip product, comprising the intelligent electronic switch as described in the first aspect and each possible design, wherein the components of the intelligent electronic switch except the power switch and some components of the control circuit are located on a first integrated circuit chip, and the power switch and some components of the control circuit are located on a second integrated circuit chip;

[0048] Among them, the power supply end is a power supply pin, the power ground end is a power ground pin, the load output end is a load output pin, the first sampling end is a first sampling pin, and the second sampling end is a second sampling pin. The power supply pin, the power ground pin, the first sampling pin, and the second sampling pin are all located on a first integrated circuit chip, and the load output pin is located on a second integrated circuit chip.

[0049] In a fifth aspect, an embodiment of the present application provides an automobile, comprising the intelligent electronic switch as described in the first aspect and each possible design, or the integrated circuit chip as described in the third aspect, or the chip product as described in the fourth aspect, or the current detection device as described in the second aspect and each possible design;

[0050] It also includes a battery and a load, wherein the positive electrode of the battery is connected to the power supply end, the negative electrode of the battery is connected to the power ground end, one end of the load is connected to the load output end, and the other end of the load is connected to the power ground end or the power supply end.

[0051] The present application provides an intelligent electronic switch, a current detection circuit, a chip, a chip product and an automobile, wherein the intelligent electronic switch includes a power supply terminal, a power ground terminal, a load output terminal, a first sampling terminal, a second sampling terminal, a power switch and a control circuit, and a reference current is preset in the intelligent electronic switch, the control circuit can collect the output current of the power switch and obtain the sampling current, and compare the sampling current with the reference current, when the sampling current is less than or equal to the reference current, the sampling current is output through the first sampling terminal, when the sampling current is greater than the reference current, the second current is output through the second sampling terminal, the second current is less than the sampling current and is related to the sampling current, so that the microcontroller can determine the output current of the power switch according to the signal collected from the first sampling terminal and / or the second sampling terminal, so that the sampling signals output by the intelligent electronic switch through the first sampling terminal and the second sampling terminal are within the sampling capability of the microcontroller, and there will be no problem of failure to detect due to small changes, thereby improving the detection accuracy of the microcontroller. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] Figure 1A and Figure 1B It is a circuit module schematic diagram of the intelligent electronic switch and its peripheral components provided in the first embodiment of the present application;

[0054] Figure 2 This is a circuit module schematic diagram of an intelligent electronic switch and its peripheral components provided in the second embodiment of the present application;

[0055] Figure 3A yes Figure 2 A schematic diagram of a circuit structure of a current processing unit is shown;

[0056] Figure 3B yes Figure 2 Another circuit structure schematic diagram of the current processing unit shown;

[0057] Figure 3C yes Figure 2 Another circuit structure schematic diagram of the current processing unit shown;

[0058] Figure 3D yes Figure 2 Another circuit structure schematic diagram of the current processing unit shown;

[0059] Figure 4 This is a circuit module schematic diagram of an intelligent electronic switch and its peripheral components provided in the third embodiment of the present application;

[0060] Figure 5Aand Figure 5B Schematic diagram of two connection relationships between the feedback terminal and the current processing unit.

[0061] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0063] The terms "including" and "having" and any variations thereof appearing in the specification, claims and drawings of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0064] In addition, the terms "first", "second" and "third" are used to distinguish different objects, rather than to describe a specific order. The electrical connection of the present application includes direct electrical connection and indirect electrical connection. Indirect electrical connection means that other electronic components, pins, etc. may exist between the two electrically connected components. The XX end mentioned in the present application may be an actual terminal, or it may not be an actual terminal, for example, it is only one end of a component or one end of a wire. The "and / or" mentioned in the present application includes three situations. For example, A and / or B includes three situations: A, B, A and B.

[0065] With the acceleration of the transformation of the automotive intelligent industry, more and more electronic switches are installed in cars. In practical applications, intelligent electronic switches are used to drive and switch the loads in the car, and to protect and diagnose the loads because of their high reliability, flexibility, low power consumption, small size and light weight. Therefore, intelligent electronic switches have gradually become the trend of switch development.

[0066] The intelligent electronic switch, for example, includes a current measurement circuit to measure the load current of the power switch. The current measurement value of the current measurement circuit can be used to implement an overcurrent protection function (e.g., overcurrent shutdown, current limiting, etc.). The intelligent electronic switch can also output the current measurement value so that the microcontroller can process it. To achieve this purpose, the intelligent electronic switch can have a sampling terminal, and output a sampled current or a sampled voltage through the sampling terminal. The sampled current or the sampled voltage can represent the current measurement value or one or more parameters of the intelligent electronic switch.

[0067] In practical applications, the sampling end of the intelligent electronic switch is connected to a detection resistor and a microcontroller, so that the microcontroller can obtain the sampling voltage corresponding to the sampling current from the sampling end. Usually, the sampling voltage is equal to the product of the sampling current and the detection resistor. Therefore, when the detection resistor is fixed, the larger the sampling current, the larger the sampling voltage, and the smaller the sampling current, the smaller the sampling voltage. At present, since the intelligent electronic switch has a wide output current range, the sampling current range output to the sampling end is also wide, and correspondingly, the sampling voltage range of the sampling end is also large. Since the maximum voltage detected by the microcontroller from the sampling end is its rated operating voltage, when the sampling voltage of the sampling end exceeds the rated operating voltage of the microcontroller, the voltage detected by the microcontroller will be inaccurate.

[0068] For example, the output current Iout of the load output terminal of the intelligent electronic switch ranges from 0 to 10A, and the sampling ratio of the current measurement circuit (for example, the ratio of the output current to the sampling current) is k, so the sampling current Ics output to the sampling terminal by the intelligent electronic switch is Iout / k. Assuming k=5000, the output current Iout of the load output terminal=10A, and the detection resistor Rsen=2kΩ, the sampling current Ics output to the sampling terminal is 2mA (10A / 5000), and the sampling voltage Vcs is 4V (2mA*2kΩ). Since the rated operating voltage (i.e., the supply voltage) of the microcontroller is generally 3.6V, when the sampling voltage Vcs is greater than or equal to 3.6V, the voltage detected by the microcontroller by default is 3.6V, which will cause the problem of inaccurate detection results of the microcontroller.

[0069] In the related art, in order to solve the above problems, the resistance of the detection resistor Rsen can be reduced, for example, from 2kΩ to 1kΩ, so that when the sampling current remains unchanged, the sampling voltage at the sampling end is at most 2V, which will not exceed the rated working voltage of the microcontroller. However, this will cause a new problem. When the output current changes slightly, the sampling current changes slightly, so that the sampling voltage at the sampling end changes slightly, and the microcontroller may not be able to detect it. For example, when the sampling ratio of the current measurement circuit is k=5000 and the detection resistor Rsen=1kΩ, if the output current Iout at the output end changes by 100mA, the sampling current Ics changes by 0.02mA, and accordingly, the change in the sampling voltage Vcs is 20mV, which may exceed the detection accuracy of the microcontroller, resulting in the microcontroller being unable to detect the output current change at the output end, resulting in a large error and a low detection sensitivity. Therefore, there is an urgent need for an intelligent electronic switch that enables the microcontroller to accurately detect the change in the output current when the resistance value of the external detection resistor at the sampling end remains unchanged.

[0070] In view of the above technical problems, the inventors have conducted long-term research and improvement on intelligent electronic switches, and provided an intelligent electronic switch including a power supply terminal, a power ground terminal, a load output terminal, a first sampling terminal, a second sampling terminal, a power switch and a control circuit. In the intelligent electronic switch, after the control circuit collects the output current of the power switch and obtains the sampling current, the sampling current can be compared with the reference current. When the sampling current is less than or equal to the reference current, the sampling current is output through the first sampling terminal. When the sampling current is greater than the reference current, the second current is output through the second sampling terminal. The second current is less than the sampling current and is related to the sampling current. In this way, the signals output by the intelligent electronic switch through the first sampling terminal and the second sampling terminal are both within the sampling capability of the microcontroller. The microcontroller can determine the output current of the power switch according to the signals collected from the first sampling terminal and / or the second sampling terminal, and the problem of failure to detect due to small signal changes at the sampling terminal is avoided, thereby improving the detection accuracy of the microcontroller.

[0071] It can be understood that in practical applications, the intelligent electronic switch may also include a temperature detection circuit and / or a voltage detection circuit, wherein the temperature detection circuit is used to measure the temperature of the power switch (or the intelligent electronic switch), and the voltage detection circuit is used to detect the power supply voltage (the voltage of the power supply end) of the intelligent electronic switch. In this case, the intelligent electronic switch may also output a temperature measurement value or a power supply voltage measurement value through the first sampling end and the second sampling end according to an external indication signal. For example, the intelligent electronic switch may also include a diagnostic end (SEN) and a selector output end (SEL), and the intelligent electronic switch may determine the type of sampling signal (current signal, temperature signal or voltage signal) output through the first sampling end and the second sampling end according to the external signal received by the diagnostic end (SEN) and the selector output end (SEL).

[0072] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0073] Figure 1A and Figure 1B 1 is a schematic diagram of a circuit module of an intelligent electronic switch and its peripheral components provided in the first embodiment of the present application. Figure 1A and Figure 1B As shown, the intelligent electronic switch 20 includes a power supply terminal VCC, a power ground terminal GND, a load output terminal OUT, a first sampling terminal CS1, a second sampling terminal CS2, a power switch K1 and a control circuit 200.

[0074] The power supply terminal VCC and the power ground terminal GND are used to connect to the battery 10, the power switch K1 is used to be connected in series with the load 30, its first end is connected to the power supply terminal VCC or the power ground terminal GND, its second end is connected to the load output terminal OUT, and its control end is connected to the control circuit 200, and the control circuit 200 is used to control the power switch K1 to turn on or off. Figure 1A In the embodiment shown, the first terminal of the power switch K1 is connected to the positive electrode of the battery 10. At this time, the power switch K1 is connected as a high-side switch (high-side switch), which is a switch connected between the positive electrode of the battery 10 and the load 30. Figure 1B In the illustrated embodiment, the first end of the power switch K1 is connected to the negative electrode of the battery 10, that is, the power switch K1 is connected between the negative electrode of the battery 10 and the load 30. At this time, the power switch K1 is connected as a low-side switch (low-side switch), which will not be described in detail here.

[0075] Continue to refer to Figure 1A and Figure 1BAs shown, in this embodiment, the control circuit 200 is also connected to the first sampling terminal CS1 and the second sampling terminal CS2. The first sampling terminal CS1 and the second sampling terminal CS2 are also used to connect to the microcontroller unit (MCU) 40. The control circuit 200 is also used to collect the output current Iout of the power switch K1 and obtain the sampling current Ics. The sampling current Ics is used to characterize the current flowing through the power switch K1. The sampling current Ics is compared with the preset reference current Iref. When the sampling current Ics is less than or equal to the reference current Iref, the sampling current Ics is output through the first sampling terminal CS1. When the sampling current Ics is greater than the reference current Iref, the second current I2 is output through the second sampling terminal CS2. The second current I2 is less than the sampling current Ics and is related to the sampling current Ics, so that the microcontroller 40 determines the output current Iout of the power switch K1 according to the signal collected from the first sampling terminal CS1 and / or the second sampling terminal CS2.

[0076] In practical applications, when the power switch K1 in the intelligent electronic switch 20 is turned on, a current will flow through the branch where the load 30 and the power switch K1 are located, and this current can also be called the output current Iout of the power switch K1. In the embodiment of the present application, the intelligent electronic switch 20 is externally connected to the first detection resistor Rsen1 through the first sampling terminal CS1 and the second detection resistor Rsen2 through the second sampling terminal CS2, and a reference current Iref is preset in the control circuit 200, so that when the resistance values ​​of the first detection resistor Rsen1 and the second detection resistor Rsen2 are both fixed, the reference current Iref is related to the rated working voltage of the microcontroller 40 and the reference voltage output by the reference current Iref to the first sampling terminal CS1 or the second sampling terminal CS2 is less than or equal to the rated working voltage of the microcontroller 40. In this way, the control circuit 200 can compare the acquired sampling current Ics with the reference current Iref. If the sampling current Ics is less than or equal to the reference current Iref, it indicates that the sampling voltage Vcs corresponding to the sampling current Ics is less than or equal to the rated working voltage of the microcontroller 40. At this time, the control circuit 200 can directly output the sampling current Ics through the first sampling terminal CS1. If the sampling current Ics is greater than the reference current Iref, it indicates that the sampling voltage Vcs corresponding to the sampling current Ics is higher than the rated working voltage of the microcontroller 40, which exceeds the sampling capability of the microcontroller 40. At this time, the sampling current Ics can be processed and the obtained second current I2 can be output through the second sampling terminal CS2. It can be understood that in this embodiment, the second current I2 is a current less than the sampling current Ics and related to the sampling current Ics, and the second current I2 is less than or equal to the reference current Iref, that is, the second current I2 output through the second sampling terminal CS2 is also within the sampling capability of the microcontroller 40.

[0077] That is, in this embodiment, the reference current Iref is related to the sampling capability of the microcontroller 40. After the reference current Iref is determined, within the output current range of the power switch K1, the current output by the control circuit 200 to the first sampling terminal CS1 and / or the second sampling terminal CS2 is within the rated sampling range of the microcontroller 40.

[0078] For example, refer to Figure 1A and Figure 1BAs shown, assuming that the first detection resistor Rsen1 connected to the first sampling terminal CS1 and the second detection resistor Rsen2 connected to the second sampling terminal CS2 are both 2kΩ, the output current range of the power switch K1 is 0-10A, the sampling ratio k of the control circuit 200 is 5000, and the reference current Iref is 1mA. At this time, when the output current Iout of the power switch K1 is equal to 5A, the sampling current Ics output to the first sampling terminal CS1 is equal to 1mA (5A / 5000), and the sampling voltage Vcs obtained by the microcontroller 40 at the first sampling terminal CS1 is equal to 2V. When the power switch When the output current Iout of the power switch K1 changes to 4.9A, the sampling current Ics output to the first sampling terminal CS1 is equal to 0.98mA, and the sampling voltage Vcs obtained by the microcontroller 40 at the first sampling terminal CS1 is 1.96V, and the difference is 40mV, that is, the sampling voltage Vcs of the first sampling terminal CS1 changes by 40mV for every 100mA change in the output current Iout of the power switch K1, that is, it has an accuracy of 40mV, which is significantly higher than the accuracy of 20mV when the intelligent electronic switch 20 is connected to a 1kΩ detection resistor, and is within the rated sampling range of the microcontroller 40. The implementation principle when the sampling current Ics is greater than the reference current Iref is similar, the only difference is that the control circuit needs to first perform a preset process on the sampling current Ics to obtain the second current before outputting it to the second sampling terminal, which will not be repeated here.

[0079] It can be understood that the embodiment of the present application only defines that when the sampling current Ics is less than or equal to the reference current Iref, the sampling current Ics is output through the first sampling terminal CS1, and when the sampling current Ics is greater than the reference current Iref, the second current I2 is output through the second sampling terminal CS2. It does not define whether the second sampling terminal CS2 outputs a signal when the sampling current Ics is less than or equal to the reference current Iref, nor does it define whether the first sampling terminal CS1 outputs a signal when the sampling current Ics is greater than the reference current Iref. This can be set according to actual design needs. For example, in the following Figure 3A In the scheme shown, the intelligent electronic switch 20 only outputs the sampling current Ics through the first sampling terminal CS1 or outputs the second current I2 through the second sampling terminal CS2; Figure 3B and Figure 3C In the scheme shown, when the sampling current Ics is less than or equal to the reference current Iref, a calibration signal can be output through the second sampling terminal CS2, so that the microcontroller 40 calibrates the signal collected from the first sampling terminal CS1 according to the calibration signal; and / or, in the following Figure 3D In the illustrated solution, when the sampling current Ics is greater than the reference current Iref, a calibration signal is outputted through the first sampling terminal CS1, so that the microcontroller 40 calibrates the signal collected from the second sampling terminal CS2 according to the calibration signal.

[0080] Optionally, in this embodiment, the power switch K1 may be an N-type metal-oxide-semiconductor field-effect transistor (N Metal-Oxide-Semiconductor Field-Effect Transistor, NMOS FET, referred to as NMOS tube), a PMOS tube, a junction field effect transistor (Junction Field Effect Transistor, referred to as JFET) or an insulated gate bipolar transistor (Insulated Gate Bipolar Transistor, referred to as IGBT), etc., and the N-type MOS tube is used as an example for illustration in the figure. In another possible design of this embodiment, the power switch K1 may also be implemented as a silicon device, or may be implemented using other semiconductor materials, such as silicon carbide (SiC), gallium arsenide (GaAs) or gallium nitride (GaN), etc., and the embodiment of the present application does not limit the form of expression of the power switch K1.

[0081] Optionally, a fuse (not shown) may be connected in series between the battery 10 and the power supply terminal VCC to prevent a fault caused by excessive current in the line. Other components may also be provided between the power ground terminal GND and the negative electrode of the battery 10, for example, a reverse connection prevention diode and a current limiting resistor connected in parallel to improve the stability of the intelligent electronic switch 20. The embodiment of the present application does not limit the peripheral components of the intelligent electronic switch 20.

[0082] Optional, in Figure 1A and Figure 1B In the schematic diagram shown, the connection relationship between the control circuit 200 and the power supply unit is not shown, but in actual application, the power supply unit can be provided inside the intelligent electronic switch 20, one end of the power supply unit is connected to, and the other end is connected to the control circuit 200 and other circuits, so that the power supply unit can be used to reduce the voltage of the power supply terminal VCC and then provide it to the control circuit 200 or other circuits. In other embodiments, the power supply unit may not be provided inside the intelligent electronic switch 20. In this case, a step-down unit needs to be provided between the power supply terminal VCC and the positive electrode of the battery 10 to reduce the voltage input to the power supply terminal VCC to the rated working voltage of the control circuit 200 and other circuits, so that the voltage at the power supply terminal VCC can directly power the circuit inside the intelligent electronic switch 20, and the embodiment of the present application is not limited thereto.

[0083] In an embodiment of the present application, the intelligent electronic switch includes two sampling terminals (a first sampling terminal and a second sampling terminal) in addition to a power supply terminal, a power ground terminal, a load output terminal, a power switch and a control circuit. In this way, after the control circuit collects the output current of the power switch and obtains the sampling current, it can select a suitable method to output the sampling current according to the relationship between the sampling current and the reference current, that is, when the sampling current is less than or equal to the reference current, the sampling current is output through the first sampling terminal, and when the sampling current is greater than the reference current, the second current is output through the second sampling terminal, and the second current is less than the sampling current and is related to the sampling current. In this way, the microcontroller can determine the output current of the power switch according to the signal collected from the first sampling terminal and / or the second sampling terminal, so that the sampling signals output by the intelligent electronic switch through the first sampling terminal and the second sampling terminal are within the sampling capability of the microcontroller, and there will be no problem of failure to detect due to small changes, thereby improving the detection accuracy of the microcontroller.

[0084] The above embodiment generally introduces the intelligent electronic switch 20. The following describes the principle of the control circuit 200 in the intelligent electronic switch 20 through different embodiments. Figure 1A The explanation is given on the basis of the illustrated embodiment.

[0085] In one possible design, Figure 2 This is a circuit module diagram of an intelligent electronic switch and its peripheral components provided in the second embodiment of the present application. Figure 2 In the intelligent electronic switch 20 shown in FIG. 1 , a circuit structure of a control circuit 200 is shown. Figure 2 As shown, in the intelligent electronic switch 20 , the control circuit 200 may include a driving unit 201 , a current sampling unit 202 and a current processing unit 203 .

[0086] Reference Figure 2 As shown, in the control circuit 200, the driving unit 201 is used to connect with the microcontroller 40 and the control end of the power switch K1, the current sampling unit 202 is connected with the power switch K1 and the current processing unit 203, and the current processing unit 203 is also connected with the first sampling end CS1 and the second sampling end CS2.

[0087] Among them, the driving unit 201 is used to control the power switch K1 to turn on or off according to the switch control signal of the microcontroller 40; the current sampling unit 202 is used to collect the output current Iout of the power switch K1 and output the sampling current Ics; the current processing unit 203 is used to compare the received sampling current Ics with the reference current Iref, and when the sampling current Ics is less than or equal to the reference current Iref, the sampling current Ics is output to the first sampling terminal CS1; when the sampling current Ics is greater than the reference current Iref, the sampling current Ics is processed to obtain the second current I2 and the second current I2 is output to the second sampling terminal CS2.

[0088] In this embodiment, the driving unit 201 is connected to the microcontroller 40, and can receive the switch control signal sent by the microcontroller 40, and drive the power switch K1 to turn on or turn off based on the switch control signal. For example, when the switch control signal is an on control signal, the driving unit 201 drives the power switch K1 to turn on. After the power switch K1 is turned on, the power supply terminal VCC supplies power to the load 30 through the power switch K1, so that the branch where the power switch K1 and the load 30 are located has current flowing through, so that the current sampling unit 202 can collect the output current Iout of the power switch K1 and output the corresponding sampling current Ics when working. In a possible example, the current sampling unit 202 is a mirror current sampling unit, and the mirror ratio of the output current Iout to the sampling current Ics is k, then the sampling current Ics is equal to Iout / k.

[0089] Accordingly, the current processing unit 203 is connected to the current sampling unit 202, and can receive the sampling current Ics from the current sampling unit 202, and compare the sampling current Ics with the reference current Iref. As an example, when the sampling current Ics is less than or equal to the reference current Iref, the current processing unit 203 directly outputs the sampling current Ics to the first sampling terminal CS1, and when the sampling current Ics is greater than the reference current Iref, the current processing unit 203 first processes the sampling current Ics to obtain the second current I2 and outputs the second current I2 to the second sampling terminal CS2.

[0090] Optionally, the second current I2 can be a difference between the sampling current Ics and the reference current Iref, or a ratio of the sampling current Ics to a preset value. For example, the reference current Iref can be 1 / 3, 1 / 2, 2 / 3, etc. of the maximum sampling current (Iout(max) / k), and the preset value can be 1.5, 2, 2.5, 3, etc. The embodiment of the present application does not limit the specific values ​​of the reference current Iref and the preset value, which can be selected according to actual conditions, as long as the second current I2 satisfies the following conditions: the second current I2 is less than the sampling current Ics and the magnitude of the second current I2 is within the sampling capability range of the microcontroller 40.

[0091] In practical applications, the control circuit 200 may implement the above functions in a variety of different implementations, and accordingly, the current processing unit 203 may include different components.

[0092] In a possible design of this application, Figure 3A yes Figure 2 A circuit structure diagram of a current processing unit is shown in FIG. Figure 3A As shown, in this possible design, the current processing unit 203 includes a comparison unit CP, a first logic unit 2031 and an operation unit 2032 .

[0093] Among them, the first input end of the comparison unit CP, the input end of the first logic unit 2031 and the input end of the operation unit 2032 are all connected to the output end of the current sampling unit 202, the second input end of the comparison unit CP is used to access the reference current Iref, the output end of the comparison unit CP is respectively connected to the enable end of the first logic unit 2031 and the enable end of the operation unit 2032, the output end of the first logic unit 2031 is connected to the first sampling end CS1, and the output end of the operation unit 2032 is connected to the second sampling end CS2.

[0094] In this embodiment, the comparison unit CP is used to compare the sampling current Ics with the reference current Iref, and output a first level signal when the sampling current Ics is less than or equal to the reference current Iref, and output a second level signal when the sampling current Ics is greater than the reference current Iref. Figure 3A In the example, the first input terminal of the comparison unit CP is the in-phase terminal and the second input terminal of the comparison unit CP is the inverting terminal. At this time, the first level signal is a low level signal and the second level signal is a high level signal. It can be understood that in other embodiments of the present application, the first input terminal of the comparison unit CP can also be the inverting terminal, and the corresponding second input terminal of the comparison unit CP is the in-phase terminal. At this time, the first level signal is a high level signal and the second level signal is a low level signal.

[0095] Exemplarily, the first logic unit 2031 is enabled when receiving a first level signal, and outputs the received sampling current Ics to the first sampling terminal CS1 in the enabled state, while the operation unit 2032 is enabled when receiving a second level signal, and performs a preset operation on the received sampling current Ics in the enabled state to obtain a second current I2 and output it to the second sampling terminal CS2.

[0096] Continue to refer to Figure 3A As shown, the first logic unit 2031 is enabled when receiving a low-level signal (0), and directly outputs the received sampling current Ics to the first sampling terminal CS1, and is disabled when receiving a high-level signal, does not receive the sampling current Ics or prevents the sampling current Ics from being output to the first sampling terminal CS1. That is, the first logic unit 2031 can be interpreted as an output switch of the sampling current Ics, which is turned on when receiving a first-level signal (low-level signal), allowing the sampling current Ics to be output to the first sampling terminal CS1, and is turned off when receiving a second-level signal (high-level signal), preventing the sampling current Ics from being output to the first sampling terminal CS1. Accordingly, in Figure 3A In the illustrated embodiment, the operation unit 2032 is enabled when a high-level signal (1) is received, and in the enabled state, a preset operation is performed on the received sampling current Ics to obtain a second current I2, and the second current I2 is output to the second sampling terminal CS2. When a first-level signal (low-level signal) is received, the operation unit 2032 is disabled, the sampling current Ics is not received, or the sampling current Ics is not processed, and the sampling current Ics is prevented from being output to the second sampling terminal CS2.

[0097] In the present embodiment, when the sampling current Ics is less than or equal to the reference current Iref, the intelligent electronic switch 20 outputs the sampling current Ics through the first sampling terminal CS1, and the second sampling terminal CS2 does not output a valid signal; when the sampling current Ics is greater than the reference current Iref, the second current I2 is output through the second sampling terminal CS2, the first sampling terminal CS1 does not output a valid signal, the second current I2 is less than the sampling current Ics and is related to the sampling current Ics, and the second current I2 is within the sampling capability range of the microcontroller 40. In this way, the current output by the intelligent electronic switch 20 to the first sampling terminal CS1 and the second sampling terminal CS2, that is, the sampling voltages of the first sampling terminal CS1 and the second sampling terminal CS2 are all within the sampling capability range of the microcontroller 40, which solves the problem of inaccurate detection caused by the sampling current Ics (or sampling voltage) exceeding the rated working voltage of the microcontroller 40, and also avoids the problem that the microcontroller 40 may not be able to detect due to the small change of the sampling current Ics.

[0098] In the above Figure 2On the basis of the illustrated embodiment, the current processing unit 203 is further configured to output the reference current Iref through the first sampling terminal CS1 when the sampling current Ics is greater than the reference current Iref, so that the microcontroller 40 calibrates the second current actual sampling value collected from the second sampling terminal CS2 according to the actual sampling value of the reference current collected from the first sampling terminal CS1.

[0099] In actual applications, after the power switch K1 of the intelligent electronic switch 20 is turned on, current flows through the power switch K1, causing the intelligent electronic switch 20 to heat up. As the temperature rises, the accuracy of the signals output by the first sampling terminal CS1 and the second sampling terminal CS2 is affected to a certain extent. Therefore, when the sampling current Ics is greater than the reference current Iref, the reference current Iref output by the current processing unit 203 through the first sampling terminal CS1 may not be completely consistent with the current collected from the first sampling terminal CS1 by the microcontroller 40. Therefore, when the microcontroller 40 recognizes that both the first sampling terminal CS1 and the second sampling terminal CS2 have signal outputs, it can determine the deviation of the first sampling terminal CS1 based on the actual sampling value of the reference current collected from the first sampling terminal CS1 and the reference current Iref. Since the first sampling terminal CS1 and the second sampling terminal CS2 are two terminals of the intelligent electronic switch 20 and have the same deviation, the microcontroller 40 can determine the above-mentioned second current I2 based on the deviation and the actual sampling value of the second current collected from the second sampling terminal CS2, and then determine the actual output current of the power switch K1. The following is through Figure 3B and Figure 3C The examples shown are explained.

[0100] As an example, Figure 3B yes Figure 2 Another circuit structure schematic diagram of the current processing unit is shown in FIG. Figure 3B As shown, the current processing unit 203 includes a first selection unit 2033 , a comparison unit CP and an operation unit 2032 .

[0101] Optional, see Figure 3B As shown, the first input terminal of the first selection unit 2033, the first input terminal of the comparison unit CP and the input terminal of the operation unit 2032 are all connected to the output terminal of the current sampling unit 202, the second input terminal of the first selection unit 2033 and the second input terminal of the comparison unit CP are both used to access the reference current Iref, the output terminal of the first selection unit 2033 is connected to the first sampling terminal CS1; the output terminal of the comparison unit CP is connected to the enable terminal of the operation unit 2032, and the output terminal of the operation unit 2032 is connected to the second sampling terminal CS2.

[0102] In this example, the first selection unit 2033 is used to select a smaller current Imin from the sampling current Ics and the reference current Iref and output it to the first sampling terminal CS1. The comparison unit CP is used to compare the sampling current Ics and the reference current Iref, and output a second level signal to enable the operation unit 2032 when the sampling current Ics is greater than the reference current Iref. The operation unit 2032 performs a preset operation on the received sampling current Ics and outputs a second current I2 to the second sampling terminal CS2 when in the enabled state.

[0103] Optionally, in this embodiment, when the sampling current Ics is less than or equal to the reference current Iref, the first selection unit 2033 selects a smaller sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and at this time, the comparison unit CP outputs a first level signal, the operation unit 2032 is in a disabled state, and the second sampling terminal CS2 does not output a valid signal; when the sampling current Ics is greater than the reference current Iref, the first selection unit 2033 selects a smaller reference current Iref from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and the comparison unit CP outputs a second level signal, so that the operation unit 2032 is enabled, and thus, the operation unit 2032 can perform a preset operation on the received sampling current Ics to obtain the second current I2 and output it to the second sampling terminal CS2. Wherein, when the sampling current Ics is greater than the reference current Iref, the reference current Iref outputted through the first sampling terminal CS1 can be used to calibrate the second current I2 outputted from the second sampling terminal CS2.

[0104] It can be understood that the working principle of the comparison unit CP in this example is the same as Figure 3A The working principle is similar to that in . For specific implementation, see Figure 3A The records in the article are not repeated here.

[0105] Optional, in Figure 3A and Figure 3B In the current processing circuit shown, the operation unit 2032 may be implemented by a division unit, a subtraction unit, or other methods, which are not limited in this embodiment.

[0106] As an example, Figure 3A and Figure 3BThe operation unit 2032 in the example is a division unit, in which a preset value greater than 1 is stored. Accordingly, when the division unit is enabled, the function of the division unit is to divide the sampling current Ics by the preset value, so that the second current I2 output by the division unit is equal to the value of the sampling current Ics divided by the preset value. The selection of the preset value can be selected according to actual needs, that is, the second current I2 output by the division unit after processing the sampling current Ics needs to be smaller than the reference current Iref and needs to be within the sampling capability range of the microcontroller 40.

[0107] As another example, Figure 3A and Figure 3B The operation unit 2032 in the example is a subtraction unit. At this time, the subtraction unit is also used to access the reference current Iref. Therefore, when the subtraction unit is enabled, the function of the subtraction unit is to use the sampling current Ics to subtract the reference current Iref, that is, the second current I2 output by the subtraction unit is equal to the value of the sampling current Ics minus the reference current Iref. It can be understood that the value of the reference current Iref can be selected according to actual needs, that is, the second current I2 obtained by subtracting the reference current Iref from the sampling current Ics also needs to be within the sampling capability range of the microcontroller 40.

[0108] Optional, in order to achieve Figure 3B The current processing unit 203 may also include different structural components for the same function. As another example, Figure 3C yes Figure 2 Another circuit structure diagram of the current processing unit is shown in FIG. Figure 3C As shown, the current processing unit 203 includes a first selection unit 2033 , a second selection unit 2034 and a subtraction unit 2035 .

[0109] Reference Figure 3C As shown, the first input terminal of the first selection unit 2033 and the first input terminal of the second selection unit 2034 are both connected to the output terminal of the current sampling unit 202, the second input terminal of the first selection unit 2033, the second input terminal of the second selection unit 2034 and the second input terminal of the subtraction unit 2035 are all used to access the reference current Iref, the output terminal of the first selection unit 2033 is connected to the first sampling terminal CS1, the output terminal of the second selection unit 2034 is connected to the first input terminal of the subtraction unit 2035, and the output terminal of the subtraction unit 2035 is connected to the second sampling terminal CS2.

[0110] In this embodiment, the first selection unit 2033 is used to select a smaller current from the sampling current Ics and the reference current Iref and output it to the first sampling terminal CS1, and the second selection unit 2034 is used to select a larger current Imax from the sampling current Ics and the reference current Iref and output it to the subtraction unit 2035, and the subtraction unit 2035 is used to use the received larger current to subtract the reference current Iref and output the operation result to the second sampling terminal CS2.

[0111] Among them, when the sampling current Ics is less than or equal to the reference current Iref, the first selection unit 2033 selects the smaller sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and the second selection unit 2034 selects the larger reference current Iref from the sampling current Ics and the reference current Iref and outputs it to the subtraction unit 2035. Correspondingly, the subtraction unit 2035 uses the reference current Iref received at the first input terminal to subtract the reference current Iref received at the second input terminal, that is, the current output by the subtraction unit 2035 is 0. Therefore, when the sampling current Ics is less than or equal to the reference current Iref, the first sampling terminal CS1 outputs the sampling current Ics, and the current output by the second sampling terminal CS2 is equal to zero.

[0112] When the sampling current Ics is greater than the reference current Iref, the first selection unit 2033 selects a smaller reference current Iref from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and the second selection unit 2034 selects a larger sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the subtraction unit 2035. Accordingly, the subtraction unit 2035 obtains a second current I2 by subtracting the reference current Iref received at the second input terminal from the sampling current Ics received at the first input terminal thereof and outputs the second current I2 to the second sampling terminal CS2. Therefore, when the sampling current Ics is greater than the reference current Iref, the first sampling terminal CS1 outputs the reference current Iref, and the second sampling terminal CS2 outputs the second current I2, and the second current I2 is equal to the difference between the sampling current Ics and the reference current Iref.

[0113] In practical applications, when the output current Iout of the power switch K1 is small, the heating of the main circuit where the power switch K1 and the load 30 are located is not serious, and the temperature of the intelligent electronic switch 20 itself is not high, the sampling current Ics output through the first sampling terminal CS1 is less likely to deviate, and the error will not be large; however, when the output current Iout of the power switch K1 gradually increases, the heating of the main circuit where the power switch K1 and the load 30 are located becomes greater and greater. For example, when the sampling current Ics corresponding to the output current Iout is greater than the reference current Iref, the temperature of the intelligent electronic switch 20 will be very high, and the current signals output by the first sampling terminal CS1 and the second sampling terminal CS2 will have a certain amount of deviation, so, Figure 3B and Figure 3C The embodiment shown can output the reference current Iref through the first sampling terminal CS1 to calibrate the sampling current Ics output by the intelligent electronic switch 20 when the sampling current Ics is greater than the reference current Iref, and not calibrate the sampling current Ics output by the intelligent electronic switch 20 when the sampling current Ics is less than or equal to the reference current Iref. Therefore, in the embodiment of the present application, the microcontroller 40 and the intelligent electronic switch 20 can agree on the following sampling rules: when the sampling current Ics is less than or equal to the reference current Iref, the sampling current Ics output by the first sampling terminal CS1 is not calibrated, and when the sampling current Ics is greater than the reference current Iref, the reference current Iref is output through the first sampling terminal CS1, and the second current I2 is output through the second sampling terminal CS2, so that the microcontroller 40 can determine the deviation value of the second sampling terminal CS2 according to the sampling deviation of the first sampling terminal CS1, and then calibrate the actual sampling value of the second current collected from the second sampling terminal CS2, and obtain an accurate second current I2.

[0114] Optionally, in other possible designs of the present application, in order to further improve the current sampling accuracy of the microcontroller 40 for the intelligent electronic switch 20, the current processing unit 203 is also used to output the first current I1 through the second sampling terminal CS2 when the sampling current Ics is less than or equal to the reference current Iref, so that the microcontroller 40 calibrates the first current actual sampling value collected from the first sampling terminal CS1 according to the first current actual sampling value collected from the second sampling terminal CS2, wherein the first current I1 is less than or equal to the reference current Iref. Optionally, the first current I1 can be any preset current, which can be a fixed current value or a variable current value, which can be related to the reference current Iref and the sampling current Ics, or can be unrelated to the reference current Iref and the sampling current Ics, as long as the microcontroller 40 and the intelligent electronic switch 20 agree and the first current I1 can realize the calibration function, this embodiment does not limit it.

[0115] In this possible design, when the sampling current Ics is less than or equal to the reference current Iref, the intelligent electronic switch 20 can output the first current I1 through the second sampling terminal CS2 in addition to outputting the sampling current Ics through the first sampling terminal CS1, so that the microcontroller 40 determines the output deviation between the first sampling terminal CS1 and the second sampling terminal CS2 based on the first current I1 and the actual sampling value of the first current collected from the second sampling terminal CS2, and then calibrates the actual sampling value of the sampling current collected from the first sampling terminal CS1, which lays the foundation for the microcontroller 40 to determine the accurate output current Iout of the power switch K1 and provides the conditions for the microcontroller 40 to perform accurate control. Figure 3D The illustrated embodiment illustrates a possible implementation form of the current processing unit 203 .

[0116] As an example, Figure 3D yes Figure 2 Another circuit structure diagram of the current processing unit is shown in FIG. Figure 3D As shown, the current processing unit 203 includes a first selection unit 2033 , a second selection unit 2034 and a division unit 2036 .

[0117] Among them, the first input end of the first selection unit 2033 and the first input end of the second selection unit 2034 are both connected to the output end of the current sampling unit 202, the second input end of the first selection unit 2033 and the second input end of the second selection unit 2034 are both used to access the reference current Iref, the output end of the first selection unit 2033 is connected to the first sampling end CS1, the output end of the second selection unit 2034 is connected to the input end of the division unit 2036, and the output end of the division unit 2036 is connected to the second sampling end CS2.

[0118] In this example, the first selection unit 2033 is used to select a smaller current Imin from the sampling current Ics and the reference current Iref and output it to the first sampling terminal CS1, and the second selection unit 2034 is used to select a larger current Imax from the sampling current Ics and the reference current Iref and output it to the division unit 2036, and the division unit 2036 is used to divide the received larger current Imax by a preset value and output the operation result to the second sampling terminal CS2.

[0119] Optionally, when the sampling current Ics is less than or equal to the reference current Iref, the first selection unit 2033 selects a smaller sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and the second selection unit 2034 selects a larger reference current Iref from the sampling current Ics and the reference current Iref and outputs it to the division unit 2036. Accordingly, the division unit 2036 divides the reference current Iref received at its first input terminal by a preset value and outputs the obtained first current I1 to the second sampling terminal CS2. When the sampling current Ics is greater than the reference current Iref, the first selection unit 2033 selects a smaller reference current Iref from the sampling current Ics and the reference current Iref and outputs it to the first sampling terminal CS1, and the second selection unit 2034 selects a larger sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the division unit 2036. Accordingly, the division unit 2036 divides the sampling current Ics received at its first input terminal by a preset value and outputs the obtained second current I2 to the second sampling terminal CS2.

[0120] That is, in this embodiment, when the sampling current Ics is less than or equal to the reference current Iref, the first sampling terminal CS1 outputs the sampling current Ics, and the second sampling terminal CS2 outputs the first current I1, and the first current I1 is equal to the ratio of the reference current Iref to the preset value. At this time, the microcontroller 40 can determine the deviation between the first sampling terminal CS1 and the second sampling terminal CS2 based on the actual sampling value of the first current collected from the second sampling terminal CS2 and the preset first current I1, and then use the deviation to calibrate the actual sampling value of the sampling current collected from the first sampling terminal CS1. When the sampling current Ics is greater than the reference current Iref, the first sampling terminal CS1 outputs the reference current Iref, the second sampling terminal CS2 outputs the second current I2, and the second current I2 is equal to the ratio of the sampling current Ics to the reference current Iref. At this time, the microcontroller 40 can determine the deviation between the first sampling terminal CS1 and the second sampling terminal CS2 based on the actual sampling value of the reference current collected from the first sampling terminal CS1 and the preset reference current Iref, and then use the deviation to calibrate the actual sampling value of the second current collected from the second sampling terminal CS2 to determine the accurate output current of the power switch K1.

[0121] Optional, in the above FIG. 3B to FIG. 3DBased on the embodiment shown, when the sampling current Ics is less than or equal to the reference current Iref and when the sampling current Ics is greater than the reference current Iref, the intelligent electronic switch 20 can output signals through the first sampling terminal CS1 and the second sampling terminal CS2, wherein the signal output by one sampling terminal is used to determine the sampling current Ics, and the signal output by the other sampling terminal is used to calibrate the sampling current Ics. FIG. 3B to FIG. 3D In the scheme shown, when the microcontroller 40 recognizes that both the first sampling terminal CS1 and the second sampling terminal CS2 have signal outputs, it can only determine the calibration signal and the sampling signal according to the signal sizes collected from the two sampling terminals, which may have the risk of misidentification in practical applications. In order to solve this problem, the intelligent electronic switch 20 provided in the embodiment of the present application can also output an indication signal when outputting a signal through the first sampling terminal CS1 and the second sampling terminal CS2 to indicate the sampling terminal that outputs the calibration signal.

[0122] For example, Figure 4 Schematic diagram of a circuit module of an intelligent electronic switch and its peripheral components provided in the third embodiment of the present application. Figure 4 As shown, the intelligent electronic switch further includes a feedback terminal FB, and the feedback terminal FB is connected to the current processing unit 203 .

[0123] In this embodiment, the current processing unit 203 is also used to feed back a first indication signal through the feedback terminal FB when the sampling current Ics is less than or equal to the reference current Iref, and to feed back a second indication signal through the feedback terminal FB when the sampling current Ics is greater than the reference current Iref, so that the microcontroller 40 determines a calibration signal from the signals collected by the first sampling terminal CS1 and the second sampling terminal CS2 according to the received indication signal.

[0124] Optionally, the current processing unit 203 may include a comparison unit CP to compare the sampled current Ics with the reference current Iref and output an indication signal according to the comparison result. Figure 5A and Figure 5B It is a schematic diagram of two connection relationships between the feedback terminal and the current processing unit. It can be understood that Figure 5A The schematic diagram shown above Figure 3B Based on the structural diagram shown in Figure 5A In the embodiment, the feedback terminal FB is connected to the output terminal of the comparison unit CP. Figure 5B The schematic diagram shown above Figure 3C or Figure 3D The structural diagram shown is based on Figure 5BAs shown, the current processing unit 203 further includes a comparison unit CP, a first input terminal of the comparison unit CP is connected to the output terminal of the current sampling unit 202, a second input terminal of the comparison unit CP is used to access the reference current Iref, and an output terminal of the comparison unit CP is connected to the feedback terminal FB. Figure 5A and Figure 5B In the current processing unit 203 shown, when the sampling current Ics is less than or equal to the reference current Iref, the comparison unit CP outputs a first level signal, and thus, the first indication signal fed back by the current processing unit 203 through the feedback terminal FB is a first level signal; and when the sampling current Ics is greater than the reference current Iref, the comparison unit CP outputs a second level signal, and thus, the second indication signal fed back by the current processing unit 203 through the feedback terminal FB is a second level signal. Therefore, the microcontroller 40 can determine that the signal output by the second sampling terminal CS2 is a calibration signal when receiving the first level signal (first indication signal), and determine that the signal output by the first sampling terminal CS1 is a calibration signal when receiving the second level signal (second indication signal).

[0125] It is understandable that in practical applications, the feedback terminal FB can reuse an existing terminal of the intelligent electronic switch 20, such as the input terminal INPUT, and the feedback terminal FB can also be a newly added terminal of the intelligent electronic switch 20, which is not limited in the embodiment of the present application.

[0126] In this embodiment, when the intelligent electronic switch outputs a signal through the first sampling terminal and the second sampling terminal according to the relationship between the sampling current and the reference current, it also feeds back an indication signal through the feedback terminal, so that the microcontroller determines a calibration signal from the signals collected by the first sampling terminal and the second sampling terminal according to the received indication signal, thereby reducing the risk of possible identification errors by the microcontroller and improving the current sampling accuracy of the microcontroller.

[0127] It is understandable that other parts not detailed in the above embodiments can be found in the records of other embodiments of the present application and will not be described in detail here.

[0128] Optionally, based on the above embodiments, the present application embodiment further provides a current detection device, referring to Figures 1A to 5B As shown in the structural schematic diagram, the current detection device may include the above Figures 1A to 5B An intelligent electronic switch 20 and a microcontroller 40 are shown.

[0129] Refer to the above Figure 1A , Figure 1B , Figure 2 and Figure 4As shown, the microcontroller 40 is connected to the first sampling terminal CS1 and the second sampling terminal CS2 of the intelligent electronic switch 20. The microcontroller 40 is used to determine the output current Iout of the power switch K1 in the intelligent electronic switch 20 according to the signal collected from the first sampling terminal CS1 and / or the second sampling terminal CS2, so as to accurately monitor the real-time power consumption of the load 30, which lays a foundation for accurately controlling the intelligent electronic switch 20.

[0130] In this embodiment, the microcontroller 40 may be preset with a correspondence relationship or related parameters between the signal of the first sampling terminal CS1 and / or the second sampling terminal CS2 and the sampling current Ics, so that after the microcontroller 40 collects the signal from the first sampling terminal CS1 and / or the second sampling terminal CS2, it may determine the current of the first sampling terminal CS1 and / or the second sampling terminal CS2 according to the correspondence relationship or related parameters, and further determine the output current Iout of the power switch K1 in the intelligent electronic switch 20.

[0131] For example, continue to refer to the above Figure 1A , Figure 1B , Figure 2 and Figure 4 As shown, the current detection device also includes a first detection resistor Rsen1 and a second detection resistor Rsen2; wherein, the first end of the first detection resistor Rsen1 is connected to the microcontroller 40 and the first sampling terminal CS1, and the second end thereof is connected to the ground potential, and the first end of the second detection resistor Rsen2 is connected to the microcontroller 40 and the second sampling terminal CS2, and the second end thereof is connected to the ground potential; the first detection resistor Rsen1 and the second detection resistor Rsen2 are used to determine the sampling accuracy of the microcontroller 40.

[0132] Normally, the microcontroller 40 can detect the sampling voltage of the sampling terminal through the detection resistor connected to the sampling terminal, and then reversely determine the output current Iout of the power switch K1. Specifically, in this embodiment, the microcontroller 40 is preset with the resistance values ​​of the first detection resistor Rsen1 and the second detection resistor Rsen2, so that after the microcontroller 40 collects the voltage signal of the first sampling terminal CS1 and / or the second sampling terminal CS2, it can calculate the current signal of the first sampling terminal CS1 and / or the second sampling terminal CS2 according to Ohm's law, and finally calculate the output current Iout of the power switch K1 according to the protocol information of the intelligent electronic switch 20 and the microcontroller 40.

[0133] It is understandable that the resistance values ​​of the first detection resistor Rsen1 and the second detection resistor Rsen2 may be the same or different, and may be set according to actual needs, which is not limited in this embodiment.

[0134] Optionally, in a possible design of the present embodiment, when the microcontroller 40 recognizes that both the first sampling terminal CS1 and the second sampling terminal CS2 have signal outputs, the microcontroller 40 obtains the first sampling signal of the first sampling terminal CS1 and the second sampling signal of the second sampling terminal CS2, and determines a calibration sampling signal between the first sampling signal and the second sampling signal.

[0135] As an example, when the first sampling signal is a calibration sampling signal, the microcontroller 40 determines the first sampling deviation information of the intelligent electronic switch 20 according to the first sampling signal and the first theoretical sampling signal of the first sampling end CS1, calibrates the second sampling signal according to the first sampling deviation information, and the microcontroller 40 determines the output current Iout of the power switch K1 based on the calibrated second sampling signal, wherein the first theoretical sampling signal is preset.

[0136] As another example, when the second sampling signal is a calibration sampling signal, the microcontroller 40 determines the second sampling deviation information of the intelligent electronic switch 20 according to the second sampling signal and the second theoretical sampling signal of the second sampling terminal CS2, calibrates the first sampling signal according to the second sampling deviation information, and determines the output current Iout of the power switch K1 based on the calibrated first sampling signal, wherein the second theoretical sampling signal is preset.

[0137] Assume that the first sampling signal is a first sampling voltage signal and the second sampling signal is a second sampling voltage signal, so that the microcontroller 40 can determine the first sampling current signal according to the first sampling voltage signal and the first detection resistor Rsen1 and determine the second sampling current signal according to the second sampling voltage signal and the second detection resistor Rsen2, and then determine the calibration sampling signal in the first sampling signal and the second sampling signal according to the magnitude of the first sampling current signal and the second sampling current signal. For example, the output current range of the power switch K1 is 0-10A, the sampling ratio of the control circuit 200 is 5000, the first detection resistor Rsen1 and the second sampling resistor Rsen2 are both 2kΩ, then the sampling current range of the power switch K1 is 0-2mA, at this time, it is assumed that the reference current Iref is 1mA. Therefore, when the first sampling current signal is the reference current Iref (1mA or other preset known value) and the second sampling current signal is less than 1mA, the microcontroller 40 can infer that the first sampling signal is a calibration sampling signal; and when the first sampling current signal is less than or equal to 1mA and the second sampling current signal is a preset known value (for example, a fixed value or related to the reference current Iref value), the microcontroller 40 can infer that the second sampling signal is a calibration sampling signal. This embodiment does not limit the specific implementation principle of the microcontroller 40 determining the calibration sampling signal. It is understandable that the microcontroller 40 can also directly determine the calibration sampling signal based on the first sampling voltage signal and the second sampling voltage signal, which is not explained here.

[0138] For example, the following uses the first sampling signal as the calibration sampling signal to calibrate the second sampling signal. For example, the calibration sampling signal is the first sampling signal obtained from the first sampling terminal CS1 (the first sampling voltage signal is equal to 1.9V), combined with the first theoretical sampling signal of the first sampling terminal CS1 (the first theoretical sampling voltage signal is equal to 2V), so that the microcontroller 40 can be based on the sampling deviation formula The first sampling deviation information of the intelligent electronic switch 20 is calculated to be equal to 95%, so that the second sampling signal can be calibrated by using the first sampling deviation information to obtain a calibrated second sampling signal equal to Then, the output current Iout of the power switch K1 is determined based on the calibrated second sampling signal. The implementation principle of using the second sampling signal as the calibration sampling signal to calibrate the first sampling signal is similar and will not be described here.

[0139] In other embodiments of the present application, refer to Figure 4 , Figure 5A and Figure 5BAs shown, in order to improve the accuracy of the microcontroller 40 in identifying the calibration sampling signal, the intelligent electronic switch 20 also includes a feedback terminal FB, and the microcontroller 40 is also connected to the feedback terminal FB of the intelligent electronic switch 20, so that when the microcontroller 40 recognizes that both the first sampling terminal CS1 and the second sampling terminal CS2 have signal outputs, it can also obtain the indication signal of the feedback terminal FB, and then determine the calibration sampling signal according to the indication signal of the feedback terminal FB. Exemplarily, the microcontroller 40 determines that the second sampling signal is the calibration sampling signal when the indication signal of the feedback terminal FB is the first indication signal, and determines that the first sampling signal is the calibration sampling signal when the indication signal of the feedback terminal FB is the second indication signal. This embodiment effectively avoids the recognition error problem existing when the microcontroller 40 recognizes the calibration sampling signal, and improves the recognition accuracy.

[0140] It is understandable that other parts not described in detail in the above current detection device embodiment can refer to the contents recorded in the above embodiments of the intelligent electronic switch 20, and will not be described in detail here.

[0141] Optionally, based on the above embodiments, the embodiment of the present application further provides an integrated circuit chip, the integrated circuit chip includes the intelligent electronic switch 20 in the above embodiments, that is, the above intelligent electronic switch 20 can be made on the same semiconductor substrate. Among them, the power supply terminal VCC is a power supply pin, the power ground terminal GND is a power ground pin, the load output terminal OUT is a load output pin, the first sampling terminal CS1 is a first sampling pin, and the second sampling terminal CS2 is a second sampling pin.

[0142] Optionally, other embodiments of the present application further provide a chip product, which may include the above-mentioned intelligent electronic switch 20, wherein the components of the intelligent electronic switch 20 except the power switch K1 and some components of the control circuit 200 are located on a first integrated circuit chip, and the power switch K1 and some components of the control circuit 200 are located on a second integrated circuit chip, that is, the first integrated circuit chip is made on one semiconductor substrate, and the second integrated circuit chip is made on another semiconductor substrate.

[0143] Among them, the power supply terminal VCC is the power supply pin, the power ground terminal GND is the power ground pin, the load output terminal OUT is the load output pin, the first sampling terminal CS1 is the first sampling pin, the second sampling terminal CS2 is the second sampling pin, the power supply pin, the power ground pin, the first sampling pin and the second sampling pin are all located on the first integrated circuit chip, and the load output pin is located on the second integrated circuit chip. It can be understood that the first integrated circuit chip and the second integrated circuit chip can also add other pins, omit related pins, or merge related pins as needed. Here, the first integrated circuit chip and the second integrated circuit chip are packaged into one product.

[0144] In addition, in other embodiments of the present application, a car is also provided, which may be an electric car, such as an electric passenger car or an electric commercial vehicle, or a hybrid car, a fuel car, or a car. The car may include the above Figures 1A to 5B The intelligent electronic switch 20 shown or the integrated circuit chip or the chip product or the current detection device shown, in addition, the car may also include a battery 10 and a load 30. The positive electrode of the battery 10 is connected to the power supply terminal VCC, the negative electrode of the battery 10 is connected to the power ground terminal GND, one end of the load 30 is connected to the load output terminal OUT, and the other end of the load 30 is connected to the power ground terminal GND or the power supply terminal VCC.

[0145] The battery 10 is generally a storage battery, which provides voltages such as 12V, 24V, 48V, etc., and can also be other types of batteries. The load 30 includes at least one of a resistive load, an inductive load, and a capacitive load. The resistive load is, for example, a seat adjustment device, an auxiliary heating device, a window heating device, a light emitting diode (LED), a rear lighting, or other resistive loads. The inductive load is, for example, a pump, an actuator, a motor, an anti-lock braking system (ABS), an electronic braking system (EBS), a fan, or other systems including inductive loads for one or more wiper systems. The capacitive load is, for example, a lighting element, such as a xenon arc lamp.

[0146] It is understandable that the intelligent electronic switch, current detection device, and integrated circuit chip of this embodiment are not limited to use in automotive electronics, but can also be used in industrial automation, aerospace and other fields, which will not be elaborated here.

[0147] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0148] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. An intelligent electronic switch, characterized in that: It includes a power supply terminal, a power ground terminal, a load output terminal, a first sampling terminal, a second sampling terminal, a power switch and a control circuit; The power supply end and the power ground end are used to be connected to a battery, the power switch is used to be connected in series with a load, a first end thereof is connected to the power supply end or the power ground end, a second end thereof is connected to the load output end, and a control end thereof is connected to the control circuit, and the control circuit is used to control the power switch to be turned on or off; The control circuit is also connected to the first sampling terminal and the second sampling terminal, and the first sampling terminal and the second sampling terminal are also used to connect to the microcontroller. The control circuit is also used to collect the output current of the power switch and obtain a sampling current, and the sampling current is used to characterize the current flowing through the power switch. The sampling current is compared with a reference current. When the sampling current is less than or equal to the reference current, the sampling current is output through the first sampling terminal. When the sampling current is greater than the reference current, a second current is output through the second sampling terminal, and the second current is less than the sampling current and is related to the sampling current, so that the microcontroller determines the output current of the power switch according to the signal collected from the first sampling terminal and / or the second sampling terminal.

2. The intelligent electronic switch according to claim 1, characterized in that: The control circuit includes a driving unit, a current sampling unit and a current processing unit; The driving unit is used to be connected to the microcontroller and the control end of the power switch, the current sampling unit is connected to the power switch and the current processing unit, and the current processing unit is also connected to the first sampling end and the second sampling end; The driving unit is used to control the power switch to turn on or off according to the switch control signal of the microcontroller; the current sampling unit is used to collect the output current of the power switch and output the sampled current; the current processing unit is used to compare the received sampled current with the reference current, and when the sampled current is less than or equal to the reference current, output the sampled current to the first sampling end; when the sampled current is greater than the reference current, process the sampled current to obtain a second current and output the second current to the second sampling end.

3. The intelligent electronic switch according to claim 2, characterized in that: The current processing unit includes a comparison unit, a first logic unit and an operation unit; The first input end of the comparison unit, the input end of the first logic unit and the input end of the operation unit are all connected to the output end of the current sampling unit, the second input end of the comparison unit is used to access the reference current, the output end of the comparison unit is respectively connected to the enable end of the first logic unit and the enable end of the operation unit, the output end of the first logic unit is connected to the first sampling end, and the output end of the operation unit is connected to the second sampling end; The comparison unit is used to compare the sampling current with the reference current, output a first level signal when the sampling current is less than or equal to the reference current, and output a second level signal when the sampling current is greater than the reference current; The first logic unit is enabled when receiving the first level signal, and outputs the received sampling current to the first sampling end in the enabled state; the operation unit is enabled when receiving the second level signal, and performs a preset operation on the received sampling current in the enabled state to obtain the second current and output it to the second sampling end; When the sampling current is less than or equal to the reference current, the first sampling terminal outputs the sampling current, and when the sampling current is greater than the reference current, the second sampling terminal outputs the second current.

4. The intelligent electronic switch according to claim 2, characterized in that: The current processing unit is also used to output the reference current through the first sampling end when the sampled current is greater than the reference current, so that the microcontroller calibrates the second current actual sampling value collected from the second sampling end according to the actual sampling value of the reference current collected from the first sampling end.

5. The intelligent electronic switch according to claim 4, characterized in that: The current processing unit includes a first selection unit, a comparison unit and an operation unit; The first input end of the first selection unit, the first input end of the comparison unit and the input end of the operation unit are all connected to the output end of the current sampling unit, the second input end of the first selection unit and the second input end of the comparison unit are both used to access the reference current, the output end of the first selection unit is connected to the first sampling end; the output end of the comparison unit is connected to the enable end of the operation unit, and the output end of the operation unit is connected to the second sampling end; The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the comparison unit is used to compare the sampling current and the reference current, and when the sampling current is greater than the reference current, output a second level signal to enable the operation unit, and the operation unit performs a preset operation on the received sampling current and outputs a second current to the second sampling terminal when in the enabled state; When the sampling current is less than or equal to the reference current, the first sampling end outputs the sampling current; when the sampling current is greater than the reference current, the first sampling end outputs the reference current and the second sampling end outputs the second current.

6. The intelligent electronic switch according to claim 4, characterized in that: The current processing unit includes a first selection unit, a second selection unit and a subtraction unit; The first input end of the first selection unit and the first input end of the second selection unit are both connected to the output end of the current sampling unit, the second input end of the first selection unit, the second input end of the second selection unit and the second input end of the subtraction unit are all used to access the reference current, the output end of the first selection unit is connected to the first sampling end, the output end of the second selection unit is connected to the first input end of the subtraction unit, and the output end of the subtraction unit is connected to the second sampling end; The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the second selection unit is used to select a larger current from the sampling current and the reference current and output it to the subtraction unit, and the subtraction unit is used to subtract the reference current from the received larger current and output the operation result to the second sampling terminal; When the sampling current is less than or equal to the reference current, the first sampling terminal outputs the sampling current, and the current output by the second sampling terminal is equal to zero; when the sampling current is greater than the reference current, the first sampling terminal outputs the reference current, and the second sampling terminal outputs the second current, and the second current is equal to the difference between the sampling current and the reference current.

7. The intelligent electronic switch according to claim 2, characterized in that: The current processing unit is also used to output the first current through the second sampling end when the sampling current is less than or equal to the reference current, so that the microcontroller calibrates the actual sampling value of the sampling current collected from the first sampling end according to the actual sampling value of the first current collected from the second sampling end, wherein the first current is less than or equal to the reference current.

8. The intelligent electronic switch according to claim 7, characterized in that: The current processing unit includes a first selection unit, a second selection unit and a division unit; The first input end of the first selection unit and the first input end of the second selection unit are both connected to the output end of the current sampling unit, the second input end of the first selection unit and the second input end of the second selection unit are both used to access the reference current, the output end of the first selection unit is connected to the first sampling end, the output end of the second selection unit is connected to the input end of the division unit, and the output end of the division unit is connected to the second sampling end; The first selection unit is used to select a smaller current from the sampling current and the reference current and output it to the first sampling terminal, the second selection unit is used to select a larger current from the sampling current and the reference current and output it to the division unit, and the division unit is used to divide the received larger current by a preset value and output the operation result to the second sampling terminal; Wherein, when the sampling current is less than or equal to the reference current, the first sampling end outputs the sampling current, the second sampling end outputs the first current, and the first current is equal to the ratio of the reference current to the preset value; when the sampling current is greater than the reference current, the first sampling end outputs the reference current, the second sampling end outputs the second current, and the second current is equal to the ratio of the sampling current to the reference current.

9. The intelligent electronic switch according to any one of claims 4 to 8, characterized in that: The intelligent electronic switch further includes a feedback terminal, and the feedback terminal is connected to the current processing unit; The current processing unit is also used to feed back a first indication signal through the feedback end when the sampling current is less than or equal to the reference current, and to feed back a second indication signal through the feedback end when the sampling current is greater than the reference current, so that the microcontroller determines a calibration signal from the signals collected by the first sampling end and the second sampling end according to the received indication signal.

10. A current detection device, characterized in that: The intelligent electronic switch and microcontroller comprising the above claims 1 to 9; The microcontroller is connected to a first sampling terminal and a second sampling terminal of the intelligent electronic switch, and is used to determine an output current of a power switch in the intelligent electronic switch according to a signal collected from the first sampling terminal and / or the second sampling terminal.

11. The current detection device according to claim 10, characterized in that: When the microcontroller recognizes that both the first sampling end and the second sampling end have signal outputs, the microcontroller acquires a first sampling signal from the first sampling end and a second sampling signal from the second sampling end, and determines a calibration sampling signal from the first sampling signal and the second sampling signal; When the first sampling signal is a calibration sampling signal, the microcontroller determines first sampling deviation information of the intelligent electronic switch according to the first sampling signal and a first theoretical sampling signal of the first sampling end, calibrates the second sampling signal according to the first sampling deviation information, and the microcontroller determines the output current of the power switch based on the calibrated second sampling signal, and the first theoretical sampling signal is preset; When the second sampling signal is a calibration sampling signal, the microcontroller determines second sampling deviation information of the intelligent electronic switch according to the second sampling signal and a second theoretical sampling signal of the second sampling end, calibrates the first sampling signal according to the second sampling deviation information, and determines the output current of the power switch based on the calibrated first sampling signal, and the second theoretical sampling signal is preset.

12. The current detection device according to claim 11, characterized in that: The microcontroller is also connected to the feedback end of the intelligent electronic switch, and when the microcontroller recognizes that both the first sampling end and the second sampling end have signal outputs, the microcontroller obtains the indication signal of the feedback end; The microcontroller determines that the second sampling signal is the calibration sampling signal when the indication signal at the feedback end is the first indication signal, and determines that the first sampling signal is the calibration sampling signal when the indication signal at the feedback end is the second indication signal.

13. An integrated circuit chip, characterized in that: The intelligent electronic switch according to any one of claims 1 to 9, wherein the power supply terminal is a power supply pin, the power ground terminal is a power ground pin, the load output terminal is a load output pin, the first sampling terminal is a first sampling pin, and the second sampling terminal is a second sampling pin.

14. A chip product, characterized in that: The intelligent electronic switch according to any one of claims 1 to 9, wherein the components of the intelligent electronic switch except the power switch and some components of the control circuit are located on a first integrated circuit chip, and the power switch and some components of the control circuit are located on a second integrated circuit chip; Among them, the power supply end is a power supply pin, the power ground end is a power ground pin, the load output end is a load output pin, the first sampling end is a first sampling pin, and the second sampling end is a second sampling pin. The power supply pin, the power ground pin, the first sampling pin, and the second sampling pin are all located on a first integrated circuit chip, and the load output pin is located on a second integrated circuit chip.

15. A car, characterized in that: The intelligent electronic switch according to any one of claims 1 to 9, or the integrated circuit chip according to claim 13, or the chip product according to claim 14, or the current detection device according to any one of claims 10 to 12; It also includes a battery and a load, wherein the positive electrode of the battery is connected to the power supply end, the negative electrode of the battery is connected to the power ground end, one end of the load is connected to the load output end, and the other end of the load is connected to the power ground end or the power supply end.

Citation Information

Patent Citations

  • Monolithic integrated circuit switching device capable of outputting equalized currents

    CN106169925A

  • Control circuit and control method

    CN115378413A

  • Switching circuit, driving module, control method and power supply equipment

    CN116885681A

  • Intelligent electronic switch, integrated circuit chip, chip product and electronic equipment

    CN117879561A

  • Switching device control apparatus

    JP2013090449A