Intelligent electronic switch, current detection device, chip, chip product and vehicle
By introducing control circuits into smart electronic switches, the output current of the power switch is collected and the signal is outputted through a specific sampling terminal, the problem of inaccurate detection voltage of the microcontroller is solved and the detection accuracy is improved.
Patent Information
- Application Number
- CN202411123822.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2044-08-15
AI Technical Summary
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.
An intelligent electronic switch is designed, 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. The control circuit collects the output current of the power switch and outputs the sampling current or the second current through the first sampling terminal and the second sampling terminal, making it within the sampling capability range of the microcontroller.
The signals output through the first sampling end and the second sampling end are within the sampling capability range of the microcontroller, avoiding detection inaccuracy problems caused by small changes, and improving the detection accuracy of the microcontroller.
Smart Images

Figure CN119341534B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of electronic circuits, and particularly to an intelligent electronic switch, a current detection circuit, a chip, a chip product, and an automobile. Background Art
[0002] With the development of automotive intelligence, the functions of automobiles are becoming increasingly complex, and the implementation of these functions requires different loads and different actuators. Among them, the intelligent electronic switch includes at least one or more power switches used as electronic switches and a control unit. The control unit can control the power switch to turn on and conduct or turn off and cut off based on the received control signal.
[0003] In the prior art, the intelligent electronic switch may further include a current sampling unit and a sampling terminal. 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 terminal. The sampling terminal is also used to connect a detection resistor and a microcontroller, so that the microcontroller can obtain the sampling voltage corresponding to the sampling current from the sampling terminal and perform reasonable control on the power switch.
[0004] However, in practical applications, the maximum voltage detected by the microcontroller is its rated operating voltage. Thus, when the voltage at the sampling terminal exceeds the rated operating voltage of the microcontroller, the voltage detected by the microcontroller will be inaccurate. Summary of the Invention
[0005] This application provides an intelligent electronic switch, a current detection device, a chip, a chip product, and an automobile to solve the problem that the voltage detected by the microcontroller may be inaccurate.
[0006] In a first aspect, this 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] Among them, the power supply terminal and the power ground terminal are used to connect to a battery. The power switch is used to be connected in series with a load. Its first end is connected to the power supply terminal or the power ground terminal, its second end is connected to the load output terminal, and its control end is connected to the control circuit. The control circuit is used to control the power switch to turn on and conduct or turn off and cut off;
[0008] The control circuit is also connected to the first sampling terminal and the second sampling terminal. The first sampling terminal and the second sampling terminal are also used to be connected to a microcontroller. The control circuit is further used to collect the output current of the power switch to obtain a sampled current, where the sampled current is used to characterize the current flowing through the power switch. The sampled current is compared with a reference current. When the sampled current is less than or equal to the reference current, the sampled current is output through the first sampling terminal. When the sampled current is greater than the reference current, a second current is output through the second sampling terminal, where the second current is less than the sampled current and is related to the sampled current, so that the microcontroller determines the output current of the power switch according to the signals 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 terminal of the power switch. The current sampling unit is connected to the power switch and the current processing unit. The current processing unit is also connected to the first sampling terminal and the second sampling terminal;
[0011] The driving unit is used to control the power switch to turn on and conduct or turn off and cut 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. When the sampled current is less than or equal to the reference current, the sampled current is output to the first sampling terminal. When the sampled current is greater than the reference current, the sampled current is processed to obtain a second current and the second current is output to the second sampling terminal.
[0012] As an example, the current processing unit includes a comparison unit, a first logic unit, and an arithmetic unit;
[0013] The first input terminal of the comparison unit, the input terminal of the first logic unit, and the input terminal of the arithmetic unit are all connected to the output terminal of the current sampling unit. The second input terminal of the comparison unit is used to access the reference current. The output terminal of the comparison unit is respectively connected to the enable terminal of the first logic unit and the enable terminal of the arithmetic unit. The output terminal of the first logic unit is connected to the first sampling terminal. The output terminal of the arithmetic unit is connected to the second sampling terminal;
[0014] The comparison unit is configured to compare the sampled current with the reference current, output a first level signal when the sampled current is less than or equal to the reference current, and output a second level signal when the sampled current is greater than the reference current;
[0015] The first logic unit is enabled when receiving the first level signal, and outputs the received sampled current to the first sampling terminal in the enabled state. The operation unit is enabled when receiving the second level signal, and performs a preset operation on the received sampled current in the enabled state to obtain the second current and output it to the second sampling terminal;
[0016] Wherein, when the sampled current is less than or equal to the reference current, the first sampling terminal outputs the sampled current, and when the sampled 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 further configured to output the reference current through the first sampling terminal when the sampled current is greater than the reference current, so that the microcontroller calibrates the actual sampled value of the second current collected from the second sampling terminal according to the actual sampled value of the reference current collected from the first sampling terminal.
[0018] As an example, the current processing unit includes a first selection unit, a comparison unit, and an operation unit;
[0019] The first input terminal of the first selection unit, the first input terminal of the comparison unit, and the input terminal of the operation unit are all connected to the output terminal of the current sampling unit. The second input terminal of the first selection unit and the second input terminal of the comparison unit are both used to access the reference current. The output terminal of the first selection unit is connected to the first sampling terminal; the output terminal of the comparison unit is connected to the enable terminal of the operation unit, and the output terminal of the operation unit is connected to the second sampling terminal;
[0020] The first selection unit is configured to select the smaller current from the sampled current and the reference current and output it to the first sampling terminal. The comparison unit is configured to compare the sampled current with the reference current, and output a second level signal to enable the operation unit when the sampled current is greater than the reference current. The operation unit performs a preset operation on the received sampled current in the enabled state and outputs the second current to the second sampling terminal;
[0021] Wherein, when the sampled current is less than or equal to the reference current, the first sampling terminal outputs the sampled current; when the sampled current is greater than the reference current, the first sampling terminal outputs the reference current, and the second sampling terminal outputs the second current.
[0022] Optionally, the operation unit is a division unit, and a preset value greater than 1 is stored in the division unit, and the second current is equal to the value obtained by dividing the sampled current by the preset value.
[0023] Optionally, the operation unit is a subtraction unit, and the subtraction unit is further configured to receive the reference current, and the second current is equal to the value obtained by subtracting the reference current from the sampled 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 terminal of the first selection unit and the first input terminal of the second selection unit are both connected to the output terminal of the current sampling unit. The second input terminal of the first selection unit, the second input terminal of the second selection unit, and the second input terminal of the subtraction unit are all configured to receive the reference current. The output terminal of the first selection unit is connected to the first sampling terminal, the output terminal of the second selection unit is connected to the first input terminal of the subtraction unit, and the output terminal of the subtraction unit is connected to the second sampling terminal;
[0026] The first selection unit is configured to select the smaller current from the sampled current and the reference current and output it to the first sampling terminal. The second selection unit is configured to select the larger current from the sampled current and the reference current and output it to the subtraction unit. The subtraction unit is configured to subtract the reference current from the received larger current and output the operation result to the second sampling terminal;
[0027] Wherein, when the sampled current is less than or equal to the reference current, the first sampling terminal outputs the sampled current, and the current output by the second sampling terminal is equal to zero; when the sampled current is greater than the reference current, the first sampling terminal outputs the reference current, the second sampling terminal outputs the second current, and the second current is equal to the difference between the sampled current and the reference current.
[0028] In still another possible design of the first aspect, the current processing unit is further configured to output a first current through the second sampling terminal when the sampled current is less than or equal to the reference current, so that the microcontroller calibrates the actual sampled value of the sampled current collected from the first sampling terminal according to the actual sampled value of the first current collected from the second sampling terminal, 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] A first input end of the first selection unit and a first input end of the second selection unit are both connected to an output end of the current sampling unit. A second input end of the first selection unit and a second input end of the second selection unit are both used to access the reference current. An output end of the first selection unit is connected to the first sampling end. An output end of the second selection unit is connected to an input end of the division unit. An output end of the division unit is connected to the second sampling end;
[0031] The first selection unit is configured to select a smaller current from the sampled current and the reference current and output the smaller current to the first sampling end. The second selection unit is configured to select a larger current from the sampled current and the reference current and output the larger current to the division unit. The division unit is configured to divide the received larger current by a preset value and output an operation result to the second sampling end;
[0032] Wherein, when the sampled current is less than or equal to the reference current, the first sampling end outputs the sampled current, the second sampling end outputs the first current, and the first current is equal to a ratio of the reference current to the preset value. When the sampled 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 a ratio of the sampled 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 further configured to, when the sampled current is less than or equal to the reference current, feedback a first indication signal through the feedback end, and when the sampled current is greater than the reference current, feedback a second indication signal through the feedback end, so that the microcontroller determines a calibration signal from signals collected from 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 currents output by the control circuit to the first sampling end and / or the second sampling end are both 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 thereof;
[0037] The microcontroller is connected to the first sampling terminal and the second sampling terminal of the intelligent electronic switch, and the microcontroller is configured to determine the output current of the power switch in the intelligent electronic switch according to the signals 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 terminal and the second sampling terminal have signal outputs, the microcontroller acquires a first sampling signal of the first sampling terminal and a second sampling signal of the second sampling terminal, and determines a calibration sampling signal from the first sampling signal and the second sampling signal;
[0039] When the first sampling signal is the 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 terminal, 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 the 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 terminal, calibrates the first sampling signal according to the second sampling deviation information, and the microcontroller 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 the feedback terminal of the intelligent electronic switch, and when the microcontroller recognizes that both the first sampling terminal and the second sampling terminal have signal outputs, the microcontroller acquires an indication signal of the feedback terminal;
[0042] The microcontroller determines that the second sampling signal is the calibration sampling signal when the indication signal of the feedback terminal is a first indication signal, and determines that the first sampling signal is the calibration sampling signal when the indication signal of the feedback terminal is a 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 terminal, and its second end is connected to the ground potential. The first end of the second detection resistor is connected to the microcontroller and the second sampling terminal, and its second end 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 integrated circuit chip provided by an embodiment of the present application further includes the intelligent electronic switch as described in the first aspect and each possible design. Among them, 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.
[0047] In a fourth aspect, a chip product provided by an embodiment of the present application further includes the intelligent electronic switch as described in the first aspect and each possible design. Among them, the components of the intelligent electronic switch except for 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 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, the second sampling terminal 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 the first integrated circuit chip, and the load output pin is located on the second integrated circuit chip.
[0049] In a fifth aspect, an embodiment of the present application provides an automobile, including 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 further includes a battery and a load. Among them, the positive electrode of the battery is connected to the power supply terminal, the negative electrode of the battery is connected to the power ground terminal, one end of the load is connected to the load output terminal, and the other end of the load is connected to the power ground terminal or the power supply terminal.
[0051] The intelligent electronic switch, current detection circuit, chip, chip product, and vehicle provided by the present application. 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. A reference current is preset in the intelligent electronic switch. The control circuit can collect the output current of the power switch to obtain a sampled current, and compare the sampled current with the reference current. When the sampled current is less than or equal to the reference current, the sampled current is output through the first sampling terminal. When the sampled current is greater than the reference current, a second current is output through the second sampling terminal. The second current is less than the sampled current and is related to the sampled current. In this way, 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, so that the sampled 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 the problem of undetected due to small change amount will not occur, improving the detection accuracy of the microcontroller. Description of the Drawings
[0052] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0053] Figure 1A and Figure 1B is a schematic circuit module diagram of the intelligent electronic switch and its peripheral components provided by the first embodiment of the present application;
[0054] Figure 2 is a schematic circuit module diagram of the intelligent electronic switch and its peripheral components provided by the second embodiment of the present application;
[0055] Figure 3A is Figure 2 a schematic circuit structure diagram of the current processing unit shown;
[0056] Figure 3B is Figure 2 another schematic circuit structure diagram of the current processing unit shown;
[0057] Figure 3C is Figure 2 still another schematic circuit structure diagram of the current processing unit shown;
[0058] Figure 3D is Figure 2 yet another schematic circuit structure diagram of the current processing unit shown;
[0059] Figure 4 is a schematic circuit module diagram of the intelligent electronic switch and its peripheral components provided by the third embodiment of the present application;
[0060] Figure 5Aand Figure 5B are schematic diagrams showing two connection relationships between the feedback terminal and the current processing unit.
[0061] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept 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 of the Embodiment
[0062] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0063] The terms "including" and "having" and any variations thereof that appear in the specification, claims, and drawings of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.
[0064] In addition, the terms "first", "second", "third", etc. are used to distinguish different objects, rather than to describe a specific order. The electrical connections in the present application include direct electrical connections and indirect electrical connections. An indirect electrical connection means that there may be other electronic components, pins, etc. between the two electrical components being electrically connected. The XX terminal mentioned in the present application may or may not be an actual terminal. For example, it may only be 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 A, B, and A and B these three situations.
[0065] With the acceleration of the transformation of the automotive intelligent industry, more and more electronic switches are installed in automobiles. In practical applications, intelligent electronic switches have gradually become the trend of switch development because they have characteristics such as high reliability, flexibility, low power consumption, and small size and light weight, and are used for driving and switching of in-vehicle loads, as well as protecting and diagnosing the loads.
[0066] An intelligent electronic switch, for example, includes a current measurement circuit to measure the load current of a power switch. The current measurement value of the current measurement circuit can be used, for example, to implement an overcurrent protection function (such as overcurrent shutdown, current limiting, etc.). The intelligent electronic switch can also output the current measurement value so that a microcontroller can process it. To achieve this purpose, the intelligent electronic switch can have a sampling terminal and output a sampling current or a sampling voltage through this sampling terminal. The sampling current or sampling voltage can represent the current measurement value of the intelligent electronic switch or one or more parameters.
[0067] In practical applications, a detection resistor and a microcontroller are connected to the sampling terminal of the intelligent electronic switch, so that the microcontroller can obtain the sampling voltage corresponding to the sampling current from the sampling terminal. 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. Currently, since the intelligent electronic switch has a wide output current range, the sampling current range output to the sampling terminal is also relatively wide. Correspondingly, the sampling voltage range at the sampling terminal is also large. Since the maximum voltage detected by the microcontroller from the sampling terminal is its rated operating voltage, when the sampling voltage at the sampling terminal exceeds the rated operating voltage of the microcontroller, the voltage detected by the microcontroller will be inaccurate.
[0068] For example, the range of the output current Iout at the load output terminal of the intelligent electronic switch is 0 - 10A, and the sampling ratio of the current measurement circuit (such as the ratio of the output current to the sampling current) is k. Thus, the sampling current Ics output by the intelligent electronic switch to the sampling terminal is Iout / k. Assuming k = 5000, the output current Iout at 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 microcontroller will default to detecting a voltage of 3.6V, resulting in inaccurate detection results of the microcontroller.
[0069] In the related art, to solve the above problems, the resistance value of the detection resistor Rsen can be reduced. For example, it can be changed from 2 kΩ to 1 kΩ. In this way, when the sampling current remains unchanged, the highest sampling voltage at the sampling end is 2 V, and it will not exceed the rated operating voltage of the microcontroller. However, new problems will arise. When the change in the output current is small, the change in the sampling current is also small, resulting in a small change in the sampling voltage at the sampling end, and the microcontroller may not be able to detect it. For example, when the sampling ratio k of the current measurement circuit is 5000 and the detection resistor Rsen is 1 kΩ, if the output current Iout at the output end changes by 100 mA each time, the sampling current Ics changes by 0.02 mA. Correspondingly, the change in the sampling voltage Vcs is 20 mV. This may exceed the detection accuracy of the microcontroller, resulting in the microcontroller being unable to detect the change in the output current at the output end, with a large error and a problem of 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 externally connected detection resistor at the sampling end remains unchanged.
[0070] To solve the above technical problems, the inventor has conducted long-term research and improvement on the intelligent electronic switch, 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, it can compare the sampling current 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. 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 ability range 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 it also avoids the problem of being unable to detect due to the small change in the signal at the sampling end, improving the detection accuracy of the microcontroller.
[0071] It is understandable that in practical applications, the intelligent electronic switch may further include a temperature detection circuit and / or a voltage detection circuit. 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 of the intelligent electronic switch (the voltage at the power supply terminal). At this time, the intelligent electronic switch can also output a temperature measurement value or a power supply voltage measurement value through the first sampling terminal and the second sampling terminal according to an external indication signal. For example, the intelligent electronic switch further includes a diagnostic terminal (SEN) and a selector output terminal (SEL). The intelligent electronic switch can determine the type of sampling signal (current signal, temperature signal, or voltage signal) output through the first sampling terminal and the second sampling terminal according to the external signals received by the diagnostic terminal (SEN) and the selector output terminal (SEL).
[0072] The following uses specific embodiments to elaborate in detail on the technical solution of the present application and how the technical solution of the present application solves the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The following will describe the embodiments of the present application in conjunction with the accompanying drawings.
[0073] Figure 1A and Figure 1B is a schematic circuit module diagram of the intelligent electronic switch and its peripheral components provided by the first embodiment of the present application. As Figure 1A and Figure 1B 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] Among them, 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. The control circuit 200 is used to control the power switch K1 to turn on and conduct or turn off and cut off. Exemplarily, in the embodiment shown in Figure 1A the first end of the power switch K1 is connected to the positive pole 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 pole of the battery 10 and the load 30. In the embodiment shown in Figure 1B the first end of the power switch K1 is connected to the negative pole of the battery 10, that is, the power switch K1 is connected between the negative pole 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 elaborated here.
[0075] Continue to refer to Figure 1A and Figure 1BAs shown, in this embodiment, the control circuit 200 is further 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 further used to be connected to a micro-controller unit (MCU) 40. The control circuit 200 is further used to collect the output current Iout of the power switch K1 and obtain a sampling current Ics. The sampling current Ics is used to represent the current flowing through the power switch K1. The sampling current Ics is compared with a 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, a 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 signals 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 and conducts, there will be a current flowing through the branch where the load 30 and the power switch K1 are located. This current can also be referred to as the output current Iout of the power switch K1. In the embodiments of the present application, the intelligent electronic switch 20 externally connects a first detection resistor Rsen1 through the first sampling terminal CS1 and a second detection resistor Rsen2 through the second sampling terminal CS2. Moreover, a reference current Iref is preset in the control circuit 200. Thus, when the resistance values of the first detection resistor Rsen1 and the second detection resistor Rsen2 are both fixed and unchanged, the reference current Iref is related to the rated operating voltage of the microcontroller 40, and the reference voltage output from the reference current Iref to the first sampling terminal CS1 or the second sampling terminal CS2 is less than or equal to the rated operating 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 operating 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. However, 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 operating voltage of the microcontroller 40, exceeding the sampling ability of the microcontroller 40. At this time, the sampling current Ics can be processed and the obtained second current I2 is 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 above reference current Iref, that is, the second current I2 output through the second sampling terminal CS2 is also within the sampling ability range of the microcontroller 40.
[0077] That is to say, in this embodiment, the reference current Iref is related to the sampling ability of the microcontroller 40. After the reference current Iref is determined, within the output current range of the power switch K1, the current output from 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] Exemplarily, referring to Figure 1A and Figure 1BAs shown, assume 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 2 kΩ, the output current range of the power switch K1 is 0 - 10 A, the sampling ratio k of the control circuit 200 is 5000, and the reference current Iref is 1 mA. At this time, when the output current Iout of the power switch K1 is equal to 5 A, the sampling current Ics output to the first sampling terminal CS1 is equal to 1 mA (5 A / 5000), and the sampling voltage Vcs obtained by the microcontroller 40 at the first sampling terminal CS1 is equal to 2 V. When the output current Iout of the power switch K1 becomes 4.9 A, the sampling current Ics output to the first sampling terminal CS1 is equal to 0.98 mA, and the sampling voltage Vcs obtained by the microcontroller 40 at the first sampling terminal CS1 is 1.96 V, with a difference of 40 mV. That is, for every 100 mA change in the output current Iout of the power switch K1, the sampling voltage Vcs at the first sampling terminal CS1 changes by 40 mV, which means it has an accuracy of 40 mV, significantly higher than the 20 mV accuracy when the intelligent electronic switch 20 is connected to a 1 kΩ detection resistor, and it 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, except that the control circuit needs to first perform preset processing on the sampling current Ics to obtain a second current and then output it to the second sampling terminal, which will not be elaborated here.
[0079] It can be understood that the embodiments of the present application only specify 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 specify whether there is a signal output at the second sampling terminal CS2 when the sampling current Ics is less than or equal to the reference current Iref, nor does it specify whether there is a signal output at the first sampling terminal CS1 when the sampling current Ics is greater than the reference current Iref, which can be set according to actual design needs. For example, in the following Figure 3A shown scheme, the intelligent electronic switch 20 only outputs the sampling current Ics or the second current I2 through the first sampling terminal CS1; in the following Figure 3B and Figure 3C shown schemes, when the sampling current Ics is less than or equal to the reference current Iref, a calibration signal can also 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 this calibration signal; and / or, in the following Figure 3D shown scheme, when the sampling current Ics is greater than the reference current Iref, a calibration signal is output through the first sampling terminal CS1 so that the microcontroller 40 calibrates the signal collected from the second sampling terminal CS2 according to this calibration signal.
[0080] Optionally, in this embodiment, the power switch K1 can be an N-type metal-oxide-semiconductor field-effect transistor (NMOS FET, simply referred to as NMOS transistor), a PMOS transistor, a junction field effect transistor (JFET), or an insulated gate bipolar transistor (IGBT), etc. In the illustration, an N-type MOS transistor is taken as an example for explanation. In another possible design of this embodiment, the power switch K1 can also be implemented as a silicon device, or other semiconductor materials can be used for implementation, such as silicon carbide (SiC), gallium arsenide (GaAs), or gallium nitride (GaN), etc. The embodiment of the present application does not limit the form of the power switch K1.
[0081] Optionally, a fuse (not shown) can be connected in series between the battery 10 and the power supply terminal VCC to prevent faults caused by excessive current in the circuit. Other components can also be provided between the power ground terminal GND and the negative electrode of the battery 10. For example, an anti-reverse connection diode and a current-limiting resistor connected in parallel are provided 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] Optionally, 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. However, in actual applications, a 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 circuits such as the control circuit 200 to use the power supply unit to step down the voltage of the power supply terminal VCC and then supply it to the control circuit 200 or other circuits. In other embodiments, a 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 step down the voltage input to the power supply terminal VCC to the rated working voltage of circuits such as the control circuit 200, so that the voltage at the power supply terminal VCC can directly supply power to the circuits inside the intelligent electronic switch 20. The embodiment of the present application does not limit it.
[0083] In an embodiment of the present application, in addition to a power supply terminal, a power ground terminal, a load output terminal, a power switch, and a control circuit, the intelligent electronic switch further includes two sampling terminals (a first sampling terminal and a second sampling terminal). After the control circuit collects the output current of the power switch and obtains a sampling current, it can select a suitable way to output the sampling current according to the magnitude relationship between the sampling current and a 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, a 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 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, 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 that the change amount is too small to be detected, improving the detection accuracy of the microcontroller.
[0084] The above embodiment gives a general introduction to the intelligent electronic switch 20. The following will separately give a principle description of the control circuit 200 in the intelligent electronic switch 20 through different embodiments. Exemplarily, the following embodiments are Figure 1A explained and described based on the above
[0085] In a possible design, Figure 2 is a schematic diagram of a circuit module of the intelligent electronic switch and its peripheral components provided in the second embodiment of the present application. In Figure 2 the shown intelligent electronic switch 20, a circuit structure of the control circuit 200 is shown. As Figure 2 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] Referring to Figure 2 shown, in the control circuit 200, the driving unit 201 is used to connect to the microcontroller 40 and the control end of the power switch K1. The current sampling unit 202 is connected to the power switch K1 and the current processing unit 203. The current processing unit 203 is further connected to the first sampling terminal CS1 and the second sampling terminal CS2.
[0087] Among them, the driving unit 201 is used to control the power switch K1 to turn on and conduct or turn off and cut 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 sampled current Ics, and the current processing unit 203 is used to compare the received sampled current Ics with the reference current Iref. When the sampled current Ics is less than or equal to the reference current Iref, the sampled current Ics is output to the first sampling terminal CS1. When the sampled current Ics is greater than the reference current Iref, the sampled current Ics is processed to obtain a 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 it can receive the switch control signal sent by the microcontroller 40 and drive the power switch K1 to turn on and conduct or turn off and cut off based on this 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 and conduct. After the power switch K1 conducts, the power supply terminal VCC supplies power to the load 30 through the power switch K1, so that there is a current flowing through the branch where the power switch K1 and the load 30 are located. Therefore, the current sampling unit 202 can collect the output current Iout of the power switch K1 and output the corresponding sampled current Ics during operation. 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 sampled current Ics is k, then the sampled current Ics is equal to Iout / k.
[0089] Correspondingly, the current processing unit 203 is connected to the current sampling unit 202, and it can receive the sampled current Ics from the current sampling unit 202 and compare the sampled current Ics with the reference current Iref. As an example, when the sampled current Ics is less than or equal to the reference current Iref, the current processing unit 203 directly outputs the sampled current Ics to the first sampling terminal CS1, and when the sampled current Ics is greater than the reference current Iref, the current processing unit 203 first processes the sampled current Ics to obtain a second current I2 and outputs the second current I2 to the second sampling terminal CS2.
[0090] Optionally, the second current I2 can be the difference between the sampling current Ics and the reference current Iref, or the ratio of the sampling current Ics to a preset value. For example, the reference current Iref can be current values such as 1 / 3, 1 / 2, 2 / 3, etc. of the maximum sampling current (Iout(max) / k), and the preset value can be values such as 1.5, 2, 2.5, 3, etc. The embodiments of the present application do not limit the specific values of the reference current Iref and the preset value, and they can be selected according to the actual situation, 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 can implement the above functions through a variety of different implementation manners. Correspondingly, the current processing unit 203 can include different components.
[0092] In a possible design of the present application, Figure 3A is Figure 2 a schematic circuit diagram of a current processing unit shown. As Figure 3A shown, in this possible design, the current processing unit 203 includes a comparison unit CP, a first logic unit 2031, and an arithmetic unit 2032.
[0093] Among them, the first input terminal of the comparison unit CP, the input terminal of the first logic unit 2031, and the input terminal of the arithmetic unit 2032 are all connected to the output terminal of the current sampling unit 202. The second input terminal of the comparison unit CP is used to access the reference current Iref. The output terminal of the comparison unit CP is respectively connected to the enable terminals of the first logic unit 2031 and the arithmetic unit 2032. The output terminal of the first logic unit 2031 is connected to the first sampling terminal CS1, and the output terminal of the arithmetic unit 2032 is connected to the second sampling terminal CS2.
[0094] In this embodiment, the comparison unit CP is used to compare the sampling current Ics and the reference current Iref, and outputs a first level signal when the sampling current Ics is less than or equal to the reference current Iref, and outputs a second level signal when the sampling current Ics is greater than the reference current Iref. Exemplarily, Figure 3A in, taking the first input terminal of the comparison unit CP as the in-phase terminal and the second input terminal of the comparison unit CP as the anti-phase terminal for exemplary illustration, 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 anti-phase 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 outputs it to the second sampling terminal CS2.
[0096] Continuing 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, while it 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 to say, the first logic unit 2031 can be interpreted as an output switch of the sampling current Ics, which is turned on when receiving the 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 the second level signal (high level signal), preventing the sampling current Ics from being output to the first sampling terminal CS1. Correspondingly, in Figure 3A the embodiment shown, the operation unit 2032 is enabled when receiving a high level signal (1), and performs a preset operation on the received sampling current Ics in the enabled state to obtain a second current I2, and outputs the second current I2 to the second sampling terminal CS2, while it is disabled when receiving the first level signal (low level signal), does not receive the sampling current Ics or does not process the sampling current Ics and prevents the sampling current Ics from being output to the second sampling terminal CS2.
[0097] In this 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 currents 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 both within the sampling capability range of the microcontroller 40, solving the problem of inaccurate detection caused by the sampling current Ics (or sampling voltage) exceeding the rated operating voltage of the microcontroller 40, and also avoiding the problem that the microcontroller 40 may not be able to detect due to the small change amount of the sampling current Ics.
[0098] In the above Figure 2Based on the illustrated embodiment, when the sampled current Ics is greater than the reference current Iref, the current processing unit 203 is further configured to output the reference current Iref through the first sampling terminal CS1, so that the microcontroller 40 calibrates the actual sampled value of the second current collected from the second sampling terminal CS2 according to the actual sampled value of the reference current collected from the first sampling terminal CS1.
[0099] In practical applications, after the power switch K1 of the intelligent electronic switch 20 is turned on and conducts, there is current flowing through the power switch K1, causing the intelligent electronic switch 20 to heat up. As the temperature rises, the signal accuracy output by the first sampling terminal CS1 and the second sampling terminal CS2 is affected to a certain extent. Therefore, when the sampled 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 exactly the same as the current collected by the microcontroller 40 from the first sampling terminal CS1. Therefore, when the microcontroller 40 recognizes that there are signal outputs from both the first sampling terminal CS1 and the second sampling terminal CS2, it can determine the deviation amount of the first sampling terminal CS1 according to the actual sampled 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 amount, the microcontroller 40 can determine the above-mentioned second current I2 according to this deviation amount and the actual sampled 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 explained by Figure 3B and Figure 3C the examples shown below.
[0100] As an example, Figure 3B is Figure 2 Another schematic circuit diagram of the current processing unit shown in the figure. As Figure 3B shown, the current processing unit 203 includes a first selection unit 2033, a comparison unit CP, and an arithmetic unit 2032.
[0101] Optionally, referring to Figure 3B 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 arithmetic 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 arithmetic unit 2032, and the output terminal of the arithmetic unit 2032 is connected to the second sampling terminal CS2.
[0102] In this example, the first selection unit 2033 is used to select the smaller current Imin from the sampled 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 sampled current Ics and the reference current Iref, and output a second level signal to enable the arithmetic unit 2032 when the sampled current Ics is greater than the reference current Iref. When enabled, the arithmetic unit 2032 performs a preset operation on the received sampled current Ics and outputs a second current I2 to the second sampling terminal CS2.
[0103] Optionally, in this embodiment, when the sampled current Ics is less than or equal to the reference current Iref, the first selection unit 2033 selects the smaller sampled current Ics from the sampled current Ics and the reference current Iref and outputs it to the first sampling terminal CS1. At this time, the comparison unit CP outputs a first level signal, and the arithmetic unit 2032 is in a disabled state, and the second sampling terminal CS2 does not output a valid signal. When the sampled current Ics is greater than the reference current Iref, the first selection unit 2033 selects the smaller reference current Iref from the sampled current Ics and the reference current Iref and outputs it to the first sampling terminal CS1. The comparison unit CP outputs a second level signal to enable the arithmetic unit 2032. Therefore, the arithmetic unit 2032 can perform a preset operation on the received sampled current Ics to obtain a second current I2 and output it to the second sampling terminal CS2. Among them, when the sampled current Ics is greater than the reference current Iref, the reference current Iref output through the first sampling terminal CS1 can be used to calibrate the second current I2 output through the second sampling terminal CS2.
[0104] It can be understood that the working principle of the comparison unit CP in this example is similar to that of Figure 3A The specific implementation can be referred to the description in Figure 3A and will not be elaborated here.
[0105] Optionally, in Figure 3A and Figure 3B In the current processing circuit shown, the arithmetic unit 2032 can be implemented by a division unit, a subtraction unit, or other means. This embodiment does not limit it.
[0106] As an example, Figure 3A and Figure 3BThe operation unit 2032 therein is a division unit, and a preset value greater than 1 is stored in the division unit. Correspondingly, when the division unit is enabled, the function of the division unit is to divide the sampled current Ics by the preset value. Therefore, the second current I2 output by the division unit is equal to the value obtained by dividing the sampled current Ics by the preset value. The selection of the preset value can be made according to actual requirements, that is, the second current I2 output after the division unit processes the sampled current Ics needs to be both less than the reference current Iref and within the sampling capability range of the microcontroller 40.
[0107] As another example, Figure 3A and Figure 3B the operation unit 2032 therein 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 subtract the reference current Iref from the sampled current Ics, that is, the second current I2 output by the subtraction unit is equal to the value obtained by subtracting the reference current Iref from the sampled current Ics. It can be understood that the value of the reference current Iref can be selected according to actual requirements, that is, the second current I2 obtained by subtracting the reference current Iref from the sampled current Ics also needs to be within the sampling capability range of the microcontroller 40.
[0108] Optionally, in order to achieve the same function as Figure 3B the current processing unit 203 may also include different structural components. As another example, Figure 3C is Figure 2 another schematic diagram of the circuit structure of the current processing unit shown. As shown in Figure 3C the current processing unit 203 includes a first selection unit 2033, a second selection unit 2034, and a subtraction unit 2035.
[0109] Referring to Figure 3C 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. 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 configured to select the 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 configured to select the larger current Imax from the sampling current Ics and the reference current Iref and output it to the subtraction unit 2035. The subtraction unit 2035 is configured to subtract the reference current Iref from the received larger current and output the operation result to the second sampling terminal CS2.
[0111] Wherein, 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 subtracts the reference current Iref received at its second input terminal from the reference current Iref received at its first 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 the 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 the larger sampling current Ics from the sampling current Ics and the reference current Iref and outputs it to the subtraction unit 2035. Correspondingly, the subtraction unit 2035 subtracts the reference current Iref received at its second input terminal from the sampling current Ics received at its first input terminal to obtain a second current I2 and outputs it 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, 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 heat generation 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 possibility of deviation of the sampling current Ics output through the first sampling terminal CS1 is small, and the error is not large either. However, when the output current Iout of the power switch K1 gradually increases, the heat generation of the main circuit where the power switch K1 and the load 30 are located becomes larger. 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 there will be a certain deviation between the current signals output by the first sampling terminal CS1 and the second sampling terminal CS2. Therefore, Figure 3B and Figure 3C The embodiment shown in 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 does 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. Thus, in the embodiment of the present application, the microcontroller 40 and the intelligent electronic switch 20 can agree on the following sampling rule: 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. In this way, 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 to obtain the 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 further configured to output a 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 actual sampling value of the first current collected from the first sampling terminal CS1 according to the actual sampling value of the first current collected from the second sampling terminal CS2, where 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. It can be related to the reference current Iref and the sampling current Ics, or it 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 achieve the calibration function. This embodiment does not limit it.
[0115] In this possible design, when the sampled current Ics of the intelligent electronic switch 20 is less than or equal to the reference current Iref, in addition to outputting the sampled current Ics through the first sampling terminal CS1, it can also output a first current I1 through the second sampling terminal CS2, so that the microcontroller 40 determines the output deviation amount between the first sampling terminal CS1 and the second sampling terminal CS2 based on the first current I1 and the actual sampled value of the first current collected from the second sampling terminal CS2, and then calibrates the actual sampled value of the sampled current collected from the first sampling terminal CS1, which lays a foundation for the microcontroller 40 to determine the output current Iout of the precise power switch K1 and provides the implementation conditions for the microcontroller 40 to perform precise control. The following uses Figure 3D the embodiment shown in
[0116] As an example, Figure 3D is Figure 2 another schematic diagram of the circuit structure of the current processing unit shown. As Figure 3D 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 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 and the second input terminal of the second selection unit 2034 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 second selection unit 2034 is connected to the input terminal of the division unit 2036, and the output terminal of the division unit 2036 is connected to the second sampling terminal CS2.
[0118] In this example, the first selection unit 2033 is used to select the smaller current Imin from the sampled current Ics and the reference current Iref and output it to the first sampling terminal CS1. The second selection unit 2034 is used to select the larger current Imax from the sampled current Ics and the reference current Iref and output it to the division unit 2036. 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 sampled current Ics is less than or equal to the reference current Iref, the first selection unit 2033 selects the smaller sampled current Ics from the sampled 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 sampled current Ics and the reference current Iref and outputs it to the division unit 2036. Correspondingly, 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 sampled current Ics is greater than the reference current Iref, the first selection unit 2033 selects the smaller reference current Iref from the sampled 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 sampled current Ics from the sampled current Ics and the reference current Iref and outputs it to the division unit 2036. Correspondingly, the division unit 2036 divides the sampled 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 sampled current Ics is less than or equal to the reference current Iref, the first sampling terminal CS1 outputs the sampled 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 amount between the first sampling terminal CS1 and the second sampling terminal CS2 based on the actual sampled value of the first current collected from the second sampling terminal CS2 and the preset first current I1, and then use this deviation amount to calibrate the actual sampled value of the sampled current collected from the first sampling terminal CS1. When the sampled 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 ratio of the sampled current Ics to the reference current Iref. At this time, the microcontroller 40 can determine the deviation amount between the first sampling terminal CS1 and the second sampling terminal CS2 based on the actual sampled value of the reference current collected from the first sampling terminal CS1 and the preset reference current Iref, and then use this deviation amount to calibrate the actual sampled value of the second current collected from the second sampling terminal CS2 to determine the accurate output current of the power switch K1.
[0121] Optionally, in the above Figures 3B to 3DBased on the embodiments shown, when the sampled current Ics is less than or equal to the reference current Iref and when the sampled 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. Among them, the signal output by one sampling terminal is used to determine the sampled current Ics, and the signal output by the other sampling terminal is used to calibrate the sampled current Ics. In the above Figures 3B to 3D In the scheme shown, when the microcontroller 40 recognizes that signals are output from both the first sampling terminal CS1 and the second sampling terminal CS2, it can only determine the calibration signal and the sampling signal based on the magnitudes of the signals collected from the two sampling terminals, which may pose a risk of misidentification in practical applications. To solve this problem, when the intelligent electronic switch 20 provided in the embodiments of the present application outputs signals through the first sampling terminal CS1 and the second sampling terminal CS2, it can also output an indication signal to indicate the sampling terminal that outputs the calibration signal.
[0122] Exemplarily, Figure 4 FIG. is a schematic diagram of a circuit module of the intelligent electronic switch and its peripheral components provided in the third embodiment of the present application. Refer to 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 further configured to feedback a first indication signal through the feedback terminal FB when the sampled current Ics is less than or equal to the reference current Iref, and feedback a second indication signal through the feedback terminal FB when the sampled current Ics is greater than the reference current Iref, so that the microcontroller 40 can determine the calibration signal from the signals collected from 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. Exemplarily, Figure 5A and Figure 5B FIGS. are schematic diagrams of two connection relationships between the feedback terminal and the current processing unit. It can be understood that Figure 5A The schematic diagram shown is based on the structural schematic diagram shown above. In Figure 3B FIG., the feedback terminal FB is connected to the output terminal of the comparison unit CP. And Figure 5A In FIG., the feedback terminal FB is connected to the output terminal of the comparison unit CP. And Figure 5B The schematic diagram shown is based on the structural schematic diagram shown above in Figure 3C or Figure 3D FIG., and with reference to Figure 5BAs shown, the current processing unit 203 further includes a comparison unit CP. The first input terminal of the comparison unit CP is connected to the output terminal of the current sampling unit 202. The second input terminal of the comparison unit CP is used to access a reference current Iref. The output terminal of the comparison unit CP is connected to the feedback terminal FB. Therefore, in Figure 5A and Figure 5B In the current processing unit 203 shown, when the sampled current Ics is less than or equal to the reference current Iref, the comparison unit CP outputs a first level signal. Therefore, the first indication signal fed back by the current processing unit 203 through the feedback terminal FB is the first level signal; when the sampled current Ics is greater than the reference current Iref, the comparison unit CP outputs a second level signal. Therefore, the second indication signal fed back by the current processing unit 203 through the feedback terminal FB is the second level signal. Therefore, the microcontroller 40 can determine that the signal output by the second sampling terminal CS2 is the calibration signal when receiving the first level signal (the first indication signal), and determine that the signal output by the first sampling terminal CS1 is the calibration signal when receiving the second level signal (the second indication signal).
[0125] It can be understood that in practical applications, the feedback terminal FB can reuse the existing terminals of the intelligent electronic switch 20. For example, the input terminal INPUT. The feedback terminal FB can also be a newly added terminal of the intelligent electronic switch 20. The embodiments of the present application do not limit it.
[0126] In this embodiment, when the intelligent electronic switch outputs signals through the first sampling terminal and the second sampling terminal according to the magnitude relationship between the sampled current and the reference current, it also feeds back an indication signal through the feedback terminal, so that the microcontroller can determine the calibration signal from the signals collected from the first sampling terminal and the second sampling terminal according to the received indication signal, reducing the risk of misidentification by the microcontroller and improving the current sampling accuracy of the microcontroller.
[0127] It can be understood that other parts not detailed in the above embodiments can be referred to the descriptions in other embodiments of the present application, and will not be elaborated here.
[0128] Optionally, on the basis of the above embodiments, the embodiments of the present application further provide a current detection device. Referring to Figures 1A to 5B the structural schematic diagram shown, the current detection device may include the above Figures 1A to 5B shown intelligent electronic switch 20 and microcontroller 40.
[0129] Referring 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 this 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 acquires the first sampling signal of the first sampling terminal CS1 and the second sampling signal of the second sampling terminal CS2, and determines the calibration sampling signal from the first sampling signal and the second sampling signal.
[0135] As an example, when the first sampling signal is the 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 terminal 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, where the first theoretical sampling signal is preset.
[0136] As another example, when the second sampling signal is the 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 the microcontroller 40 determines the output current Iout of the power switch K1 based on the calibrated first sampling signal, where the second theoretical sampling signal is preset.
[0137] Assume that the first sampling signal is the first sampling voltage signal and the second sampling signal is the second sampling voltage signal. In this way, the microcontroller 40 can determine the first sampling current signal based on the first sampling voltage signal and the first detection resistor Rsen1, and determine the second sampling current signal based on the second sampling voltage signal and the second detection resistor Rsen2. Furthermore, based on the magnitudes of the first sampling current signal and the second sampling current signal, the calibration sampling signal among the first sampling signal and the second sampling signal can be determined. For example, the output current range of the power switch K1 is 0 to 10 A, the sampling ratio of the control circuit 200 is 5000, and both the first detection resistor Rsen1 and the second sampling resistor Rsen2 are 2 kΩ. Then, the sampling current range of the power switch K1 is 0 to 2 mA. At this time, assume that the reference current Iref is 1 mA. Therefore, when the first sampling current signal is the reference current Iref (1 mA or other preset known values) and the second sampling current signal is less than 1 mA, the microcontroller 40 can infer that the first sampling signal is the calibration sampling signal; and when the first sampling current signal is less than or equal to 1 mA 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 the calibration sampling signal. This embodiment does not limit the specific implementation principle for the microcontroller 40 to determine the calibration sampling signal. It can be understood 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 will not be elaborated here.
[0138] Exemplarily, the following takes the case of using the first sampling signal as the calibration sampling signal to calibrate the second sampling signal for illustration. 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.9 V). Combining with the first theoretical sampling signal of the first sampling terminal CS1 (the first theoretical sampling voltage signal is equal to 2 V), in this way, the microcontroller 40 can calculate the first sampling deviation information of the intelligent electronic switch 20 based on the sampling deviation formula to be equal to 95%. Thus, the second sampling signal can be calibrated using this first sampling deviation information to obtain the calibrated second sampling signal equal to and then further determine the output current Iout of the power switch K1 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 elaborated here.
[0139] In other embodiments of the present application, referring 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 further includes a feedback terminal FB, and the microcontroller 40 is also connected to the feedback terminal FB of the intelligent electronic switch 20. In this way, 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 the second sampling signal as the calibration sampling signal when the indication signal of the feedback terminal FB is the first indication signal, and determines the first sampling signal as the calibration sampling signal when the indication signal of the feedback terminal FB is the second indication signal. This embodiment effectively avoids the problem of misidentification when the microcontroller 40 identifies the calibration sampling signal and improves the identification accuracy.
[0140] It can be understood that other parts not detailed in the above embodiments of the current detection device can refer to the content described in the respective embodiments of the above intelligent electronic switch 20, and will not be elaborated here.
[0141] Optionally, based on the above embodiments, an integrated circuit chip is further provided in an embodiment of the present application. The integrated circuit chip includes the intelligent electronic switch 20 in the above embodiments, that is, the above intelligent electronic switch 20 can be fabricated 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 intelligent electronic switch 20. Among them, the components of the intelligent electronic switch 20 except for the power switch K1 and some components of the control circuit 200 are located on the first integrated circuit chip, and the power switch K1 and some components of the control circuit 200 are located on the second integrated circuit chip, that is, the first integrated circuit chip is fabricated on one semiconductor substrate, and the second integrated circuit chip is fabricated on another semiconductor substrate.
[0143] 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. 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 relevant pins, or combine relevant pins as needed. Here, the first integrated circuit chip and the second integrated circuit chip are packaged into a product.
[0144] In addition, in other embodiments of the present application, a vehicle is further provided. The vehicle can be an electric vehicle, such as an electric passenger vehicle or an electric commercial vehicle, etc., or a hybrid vehicle or a fuel vehicle. The vehicle can include the intelligent electronic switch 20 as described above Figures 1A to 5B or the above-mentioned integrated circuit chip or the above-mentioned chip product or the above-mentioned current detection device. In addition, the vehicle can further 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 supply 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 supply ground terminal GND or the power supply terminal VCC.
[0145] Among them, the battery 10 is generally a storage battery, which provides voltages such as 12V, 24V, 48V, etc. Of course, it 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), 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 can be understood that the intelligent electronic switch, current detection device, and integrated circuit chip of this embodiment are not limited to being used in automotive electronics, and can also be used in fields such as industrial automation and aerospace, which will not be elaborated here.
[0147] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
[0148] It should be understood that the present application is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited 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 a 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; wherein the reference current is related to the sampling capability of the microcontroller, and the sampling current output to the first sampling terminal and the second current output to the second sampling terminal by the control circuit are both within the rated sampling range of the microcontroller.
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 any one of 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.
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