A high-side load detection method for working status
By using control modules, drive modules and detection modules in the high-side load detection system, the voltage value of the high-side load current is collected and calculated in real time, and the problem of complex, high-side load detection circuits in the existing technology is solved, and efficient and economical real-time fault detection is achieved.
Patent Information
- Application Number
- CN202111575805.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2041-12-21
AI Technical Summary
The existing high-side load detection circuit has a complex structure and is costly. It can only detect whether the load is open when the high-side driver is in a disconnected state, and real-time detection cannot be achieved.
By using the control module, the driving module and the detection module in the detection system, the control module outputs signals through the driving module, and after the preset delay, the voltage value corresponding to the high-side load current is collected several times through the detection module, and the sampling voltage value is calculated to judge the working state of the high-side load.
Real-time detection of high-side loads is realized, and it can promptly determine whether the load has open circuit or overcurrent faults. The circuit is simple, low-cost, and has high anti-interference ability and reliability.
Smart Images

Figure CN114414913B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive electronic technology, and in particular to a high-side load detection method in a working state. Background Art
[0002] At present, in the prior art, the traditional solution for detecting whether the high-side load is open circuit requires the use of a current source and a voltage comparator circuit, or a detection turn-on switch circuit and a voltage comparator circuit. The circuit structure of these two solutions is complex and the cost is high. Moreover, they can only detect whether the load is open circuit when the high-side driver is in the disconnected state, and cannot achieve real-time detection. Summary of the invention
[0003] In order to solve the problems in the prior art that the existing high-side load detection circuit has a complex structure, high cost, and can only detect whether the load is open when the high-side driver is in a disconnected state, and cannot achieve real-time detection, the present application provides a high-side load detection method in a working state.
[0004] A method for detecting a high-side load in a working state is applied to a detection system provided with a control module, a drive module, and a detection module, and the method comprises:
[0005] System initialization;
[0006] The control module outputs through the driving module, and after a preset delay, the control module collects the voltage value corresponding to the high-side load current through the detection module for multiple times, and calculates the sampled voltage value;
[0007] The current working state of the high-side load is determined according to the sampled voltage value.
[0008] Optionally, the control module collects voltage values corresponding to the high-side load current through the detection module for multiple times, and calculates the sampled voltage value, including:
[0009] The voltage values corresponding to the multiple high-side load currents are collected, and the sampled voltage value is calculated through an average value filtering algorithm.
[0010] Optionally, judging the current working state of the high-side load according to the sampled voltage value includes:
[0011] Determining whether the sampled voltage value is within the normal operating voltage range of the load;
[0012] If so, it is determined that the high-side load is working normally and the control module is working normally; otherwise, it is determined whether the sampled voltage value is greater than the high-side load overcurrent threshold;
[0013] If yes, it is determined that the high-side load is overcurrent, and the control module executes the overcurrent protection program; otherwise, it is determined whether the sampled voltage value is less than the high-side load open-circuit threshold;
[0014] If so, it is determined that the high-side load is open-circuited, and the control module executes the open-circuit alarm procedure; otherwise, it is determined that the sampled voltage value is abnormal, and the voltage value corresponding to the induced current of the high-side load is re-collected and calculated.
[0015] Optionally, the overcurrent protection procedure is to shut down the driving module so that the driving output end of the driving module does not output; the open circuit alarm procedure is to display high-side load open circuit information on a display screen.
[0016] Optionally, in the detection system, the control module is provided with an enable output terminal and a detection terminal, the enable output terminal is connected to the driving module, and the detection terminal is connected to the driving module through the detection module; the driving module is also connected to a power supply and a high-side load, and the driving module controls the on and off of the high-side load by receiving a signal from the control module.
[0017] Optionally, the control module includes a control chip, and the enable output terminal and the detection terminal are both arranged on the control chip.
[0018] Optionally, the driving module includes a high-side driver, which is provided with an enable input terminal, a load current sensing output terminal, a power supply input terminal, and a drive output terminal, the enable input terminal is connected to the enable output terminal, the load current sensing output terminal is connected to the detection module, the power supply input terminal is connected to the power supply, and the drive output terminal is connected to the high-side load.
[0019] Optionally, the detection module includes a current limiting circuit, a filtering circuit, and a current-to-voltage circuit;
[0020] The current limiting circuit is connected between the detection end and the load current sensing output end; one end of the current-to-voltage circuit is connected to the load current sensing output end, and the other end of the current-to-voltage circuit is grounded; one end of the filter circuit is connected to the detection end, and the other end of the filter circuit is grounded.
[0021] Optionally, the current limiting circuit includes at least a first resistor; the filtering circuit includes at least a first capacitor; and the current-to-voltage circuit includes at least a second resistor.
[0022] Optionally, a filter module is further connected between the enable output terminal and the enable input terminal, and the filter module includes at least one resistor and / or at least one capacitor.
[0023] The present application discloses a method for detecting a high-side load in a working state, and its beneficial effect is that the present application uses the load current sensing output terminal of the driving module to detect whether the load has an open circuit and an overcurrent fault when the high-side driver is in a working state, and solves the problem that the traditional solution can only detect the load open circuit when the high-side driver is in a disconnected state and cannot realize real-time detection. Moreover, the present application can not only detect in real time whether the high-side load has an open circuit fault, but also has the function of detecting in real time whether the high-side load has an overcurrent fault, and has strong practicality. At the same time, compared with the traditional solution, the present application has a simple circuit and a low cost. The present application adopts a software filtering algorithm for the sampling value and considers the noise tolerance for the threshold range of the sampling value, and has a high anti-interference ability and reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a system block diagram of an embodiment of the present application.
[0025] Figure 2 This is a circuit diagram of an embodiment of the present application.
[0026] Figure 3 The method flow of the embodiment of this application Figure 1 .
[0027] Figure 4 The method flow of the embodiment of this application Figure 2 . DETAILED DESCRIPTION
[0028] The preferred embodiments of the present application are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present application can be more easily understood by those skilled in the art, thereby making a clearer definition of the protection scope of the present application.
[0029] The same or similar numbers in the drawings of the embodiments of the present application correspond to the same or similar parts; in the description of the present application, it should be understood that if the terms "upper", "lower", "left", "right", "top", "bottom", "inside", "outside", etc. indicate the orientation or position relationship, it is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as a limitation on this patent.
[0030] In addition, if there are terms such as "first" and "second", they are only used for descriptive purposes, mainly to distinguish different devices, elements or components (the specific types and structures may be the same or different), and are not used to indicate or imply the relative importance and quantity of the indicated devices, elements or components, and cannot be understood as indicating or implying relative importance.
[0031] Embodiment 1,
[0032] In such Figure 1-2 In the embodiment shown, a high-side load detection circuit in a working state is applied to automotive electronic products. The circuit includes a control module, a drive module, and a detection module. The control module is provided with an enable output terminal and a detection terminal. The enable output terminal is connected to the drive module, and the detection terminal is connected to the drive module through the detection module; the drive module is also connected to the power supply and the high-side load, and the drive module controls the on-off of the high-side load by receiving a signal from the control module. In this embodiment, the enable output terminal of the control module is connected to the drive module to control the drive output connected to the high-side load; the detection terminal of the control module is connected to the existing load current sensing output terminal of the drive module through the detection module. It can be realized that when the high-side load is working, the working state of the high-side load is detected in real time. The present application uses the load current sensing output terminal of the drive module to detect whether the load has an open circuit and an overcurrent fault when the high-side driver is in the working state, which solves the problem that the traditional solution can only detect the load open circuit when the high-side driver is in the disconnected state and cannot realize real-time detection. Moreover, the present application can not only detect in real time whether there is an open circuit fault in the high-side load, but also detect in real time whether there is an overcurrent fault in the high-side load, and has strong practicality. At the same time, compared with the traditional solution, the present application has a simple circuit and low cost. The present application adopts a software filtering algorithm for the sampling value and considers the noise tolerance for the threshold range of the sampling value, and has high anti-interference ability and reliability.
[0033] In one implementation of the above embodiment, the control module includes a control chip MCU, and the enable output terminal GPIO and the detection terminal ADC are both set on the control chip MCU. In this embodiment, the control chip MCU can be a chip with a model number of R7F701441, and the enable output terminal GPIO and the detection terminal ADC are pins of the control chip MCU. The control chip MCU is used to control the driving module to drive according to the detection signal of the detection module; the detection terminal ADC is the input terminal of the analog-to-digital converter.
[0034] In one implementation of the above embodiment, the driving module includes a high-side driver U1, and the high-side driver U1 is provided with an enable input terminal IN, a load current sensing output terminal CS, a power input terminal VCC, and a drive output terminal OUTPUT, the enable input terminal IN is connected to the enable output terminal GPIO, the load current sensing output terminal CS is connected to the detection module, the power input terminal VCC is connected to the power supply, and the drive output terminal OUTPUT is connected to the high-side load. In the present embodiment, the high-side driver U1 can be a driver of model VND5T100, and the enable input terminal IN, the load current sensing output terminal CS, the power input terminal VCC, and the drive output terminal OUTPUT are pins of the high-side driver U1. The high-side driver U1 is used to control the power supply to supply power to the high-side load. In addition, the high-side driver U1 of the present application can be replaced by a high-side switch or the like.
[0035] In one implementation of the above embodiment, the detection module includes a current limiting circuit, a filtering circuit, and a current-to-voltage circuit; the current limiting circuit is connected between the detection terminal ADC and the load current sensing output terminal CS; one end of the current-to-voltage circuit is connected to the load current sensing output terminal CS, and the other end of the current-to-voltage circuit is grounded; one end of the filtering circuit is connected to the detection terminal ADC, and the other end of the filtering circuit is grounded. The current limiting circuit at least includes a first resistor R1; the filtering circuit at least includes a first capacitor C1; and the current-to-voltage circuit at least includes a second resistor R2. In this embodiment, the load current sensing output terminal CS of the driving module is connected to the second resistor R2, and the other end of the second resistor R2 is grounded; one end of the first resistor R1 is connected to the load current sensing output terminal CS of the high-side driver U1, and the other end of the first resistor R1 is connected to the detection terminal ADC of the control module; one end of the first capacitor C1 is connected to the detection terminal ADC of the control module, and the other end of the first capacitor C1 is grounded. The second resistor R2 converts the current of the load of the high-side driver U1 into a corresponding voltage value, the first resistor R1 is a current limiting resistor, and the first capacitor C1 is a filtering capacitor. In this embodiment, the current of the high-side load is converted into a voltage value by a detection circuit, and the voltage value is subjected to current limiting filtering and output to the control module for detection. The present application uses the load current sensing output terminal CS of the driver module to detect whether the load has an open circuit and an overcurrent fault when the high-side driver U1 is in a working state, which solves the problem that the traditional solution can only detect the load open circuit when the high-side driver U1 is in a disconnected state and cannot realize real-time detection. Moreover, the present application can not only detect whether the high-side load has an open circuit fault in real time, but also has the function of detecting whether the high-side load has an overcurrent fault in real time, and has strong practicality. At the same time, compared with the traditional solution, the present application has a simple circuit and low cost. The present application adopts a software filtering algorithm for the sampling value and considers the noise tolerance for the threshold range of the sampling value, and has high anti-interference ability and reliability.
[0036] In one implementation of the above embodiment, a filter module is further connected between the enable output terminal GPIO and the enable input terminal IN, and the filter module includes at least one resistor and / or at least one capacitor. In this embodiment, the output signal of the enable output terminal of the control chip MCU of the present application can be output to the enable input terminal IN through resistor current limiting or capacitor filtering. The high-side driver U1 can receive a more stable signal.
[0037] Embodiment 2,
[0038] The present application also provides a system, which can be a vehicle-mounted terminal system. The system includes a control module, a drive module, and a detection module, and the control module, the drive module, and the detection module are integrated on a circuit board of the terminal system, wherein the control module is provided with an enable output terminal GPIO and a detection terminal ADC, the enable output terminal GPIO is connected to the drive module, and the detection terminal ADC is connected to the drive module through the detection module; the drive module is also connected to a power supply and a high-side load, and the drive module controls the on-off of the high-side load by receiving a signal from the control module. The drive output terminal OUTPUT of the drive module is a drive interface connected to an external high-side load; the present application is connected to an external high-side load through the present system.
[0039] In the above embodiment, specifically, the enable output terminal GPIO of the control chip MCU is connected to the input terminal of the filter module, the output terminal of the filter module is connected to the enable input terminal IN of the high-side driver U1, the load current sensing output terminal CS of the high-side driver U1 is connected to the input terminal of the detection terminal ADC, the output terminal of the current-to-voltage circuit is connected to the detection terminal ADC of the control chip MCU, the power input terminal VCC of the high-side driver U1 is connected to the power supply, and the drive output terminal OUTPUT of the high-side driver U1 is connected to the high-side load. The load current sensing output terminal CS of the drive module is connected to the second resistor, and the other end of the second resistor is grounded; one end of the first resistor is connected to the load current sensing output terminal CS of the high-side driver U1, and the other end of the first resistor is connected to the detection terminal ADC of the control module; one end of the first capacitor is connected to the detection terminal ADC of the control module, and the other end of the first capacitor is grounded. The second resistor converts the current of the load of the high-side driver U1 into a corresponding voltage value, the first resistor is a current limiting resistor, and the first capacitor is a filter capacitor. The current of the high-side load is converted into a voltage value through the detection circuit, and the voltage value is current-limited and filtered and output to the control module for detection. The present application uses the load current sensing output terminal CS of the driving module to detect whether the load has an open circuit and overcurrent fault when the high-side driver U1 is in the working state, which solves the problem that the traditional solution can only detect the load open circuit when the high-side driver U1 is in the disconnected state (i.e., non-working state) and cannot realize real-time detection. Moreover, the present application can not only detect whether the high-side load has an open circuit fault in real time, but also detect whether the high-side load has an overcurrent fault in real time, and has strong practicality. At the same time, compared with the traditional solution, the present application has a simple circuit and low cost. The present application adopts a software filtering algorithm for the sampling value and considers the noise tolerance for the threshold range of the sampling value, and has high anti-interference ability and reliability.
[0040] Embodiment 3,
[0041] In the embodiment shown in the figure, the present application also discloses a detection method, which is applied to a system based on a high-side load detection circuit integrated with the above working state, see Figure 3 , the method comprises:
[0042] 100, system initialization: In step 100, after the system is powered on, each module inside the control chip MCU is initialized according to preset values.
[0043] 200, the control module outputs through the driving module, and after a preset delay, the control module collects the voltage value corresponding to the high-side load current multiple times through the detection module, and calculates the sampled voltage value; in step 200, the control module enables the output to the high-side load through the driving module to make the high-side load work. After the preset delay, the detection end ADC of the control chip MCU collects the voltage value of the high-side load multiple times through the detection module and the driving module in turn. And obtain the sampled voltage value data based on the multiple voltage values. Among them, the preset delay can be selected according to the actual use scenario, and the control module collects the voltage value corresponding to the high-side load current multiple times through the detection module, and calculates the sampled voltage value, including: collecting multiple voltage values corresponding to the high-side load current, and calculating the sampled voltage value through the average value filtering algorithm.
[0044] 300, judging the working state of the current high-side load according to the sampled voltage value. In this embodiment, judging the working state of the current high-side load according to the sampled voltage value includes: judging whether the sampled voltage value is within the normal working voltage range of the load; if so, judging that the high-side load is working normally and the control module is working normally; otherwise, judging whether the sampled voltage value is greater than the overcurrent threshold of the high-side load; if so, judging that the high-side load is overcurrent, and the control module executes the overcurrent protection program; otherwise, judging whether the sampled voltage value is less than the open circuit threshold of the high-side load; if so, judging that the high-side load is open circuit, and the control module executes the open circuit alarm program; otherwise, judging that the sampled voltage value is abnormal, and recollecting and calculating the voltage value corresponding to the induced current of the high-side load. The overcurrent protection program is to shut down the drive module so that the drive output terminal OUTPUT of the drive module does not output; the open circuit alarm program is to display the high-side load open circuit information on the display screen.
[0045] In the above embodiments, the detection method of the present application is specific, see Figure 4 , which can be achieved by following the steps below:
[0046] After the system is powered on, the control chip MCU starts to initialize.
[0047] The control chip MCU enables the output of the high-side driver U1 through the enable output terminal. The control chip MCU outputs the corresponding level of the high-side driver U1 output through the enable output terminal. In this embodiment, the output level can be a high level, which is output to the enable input terminal IN of the high-side driver U1 after passing through the current limiting and filtering circuit. After the high-side driver U1 detects the level, the internal high-side switch is turned on, the high-side driver U1 is in working state, and the load starts to work.
[0048] Delay. The control chip MCU performs delay processing, such as a delay of 2 milliseconds.
[0049] The control chip MCU collects the voltage value corresponding to the high-side load inductive current through the detection end ADC for multiple times, calculates the voltage value through the software filtering algorithm, and the calculated sampled voltage value is designed to be Vsense. In this embodiment, the software filtering algorithm can be an average filtering algorithm.
[0050] Determine whether the sampled voltage value Vsense is within the normal operating range of the load. If yes, the control chip MCU determines that the high-side load is working normally and executes other applications; if no, proceed to the next step. In this embodiment, the normal operating range of the load can be 2V≤Vsense≤4V
[0051] Determine whether the sampled voltage value Vsense is greater than the load overcurrent threshold. If yes, the control chip MCU determines that the high-side load is overcurrent and executes the overcurrent protection program; if no, proceed to the next step. In this embodiment, the load overcurrent threshold may be Vsense>4.5V. Among them, the overcurrent protection program may be to shut down the high-side driver U1.
[0052] Determine whether the sampled voltage value Vsense is less than the load open circuit threshold. If yes, the control chip MCU determines that the high-side load is open circuit and executes the open circuit alarm procedure; if no, proceed to the next step. In this embodiment, the load open circuit threshold Vsense < 1V. Among them, the open circuit alarm procedure can be to display the high-side load open circuit information on the display screen.
[0053] The control chip MCU determines that the sampled voltage value Vsense is interfered by noise, the acquisition is incorrect, and re-acquisition is required. Therefore, the control chip MCU restarts acquisition and processing.
[0054] The present application uses the load current sensing output terminal CS of the driving module to detect whether the load has an open circuit and overcurrent fault when the high-side driver U1 is in the working state, which solves the problem that the traditional solution can only detect the load open circuit when the high-side driver U1 is in the disconnected state (i.e., non-working state) and cannot realize real-time detection. Moreover, the present application can not only detect whether the high-side load has an open circuit fault in real time, but also detect whether the high-side load has an overcurrent fault in real time, and has strong practicality. At the same time, compared with the traditional solution, the present application has a simple circuit and low cost. The present application adopts a software filtering algorithm for the sampling value and considers the noise tolerance for the threshold range of the sampling value, and has high anti-interference ability and reliability.
[0055] The implementation modes of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in the field without departing from the purpose of the present application.
Claims
1. A high-side load detection method in a working state, characterized in that: The method is applied to a detection system provided with a control module, a driving module, and a detection module, and the method comprises: System initialization; The control module outputs through the driving module, and after a preset delay, the control module collects the voltage value corresponding to the high-side load current through the detection module for multiple times, and calculates the sampled voltage value; According to the sampled voltage value, determining the current working state of the high-side load; Wherein, the control module is provided with an enable output terminal and a detection terminal, the drive module includes a high-side driver, and the high-side driver is provided with an enable input terminal, a load current sensing output terminal, a power input terminal, and a drive output terminal, the enable input terminal is connected to the enable output terminal, the load current sensing output terminal is connected to the detection module, the power input terminal is connected to the power supply, and the drive output terminal is connected to the high-side load; The detection module includes a current limiting circuit, a filtering circuit, and a current-to-voltage circuit; the current limiting circuit is connected between the detection end and the load current sensing output end; one end of the current-to-voltage circuit is connected to the load current sensing output end, and the other end of the current-to-voltage circuit is grounded; one end of the filtering circuit is connected to the detection end, and the other end of the filtering circuit is grounded; the current limiting circuit includes at least a first resistor; the filtering circuit includes at least a first capacitor; the current-to-voltage circuit includes at least a second resistor; the load current sensing output end of the driving module is connected to the second resistor, and the other end of the second resistor is grounded; one end of the first resistor is connected to the load current sensing output end of the high-side driver, and the other end of the first resistor is connected to the detection end of the control module; one end of the first capacitor is connected to the detection end of the control module, and the other end of the first capacitor is grounded.
2. The high side load detection method of a working state according to claim 1 is characterized in that: The control module collects the voltage values corresponding to the high-side load current multiple times through the detection module and calculates the sampled voltage value, including: collecting multiple voltage values corresponding to the high-side load current and calculating the sampled voltage value through an average value filtering algorithm.
3. The high side load detection method of a working state according to claim 1 is characterized in that: The step of judging the working state of the current high-side load according to the sampled voltage value includes: Determining whether the sampled voltage value is within the normal operating voltage range of the load; If so, it is determined that the high-side load is working normally and the control module is working normally; otherwise, it is determined whether the sampled voltage value is greater than the high-side load overcurrent threshold; If yes, it is determined that the high-side load is overcurrent, and the control module executes the overcurrent protection program; otherwise, it is determined whether the sampled voltage value is less than the high-side load open-circuit threshold; If so, it is determined that the high-side load is open-circuited, and the control module executes the open-circuit alarm procedure; otherwise, it is determined that the sampled voltage value is abnormal, and the voltage value corresponding to the induced current of the high-side load is re-collected and calculated.
4. The high side load detection method in a working state according to claim 3 is characterized in that: The overcurrent protection procedure is to shut down the driving module so that the driving output end of the driving module does not output; the open circuit alarm procedure is to display the high-side load open circuit information on the display screen.
5. The method for detecting a high-side load in a working state according to claim 1, characterized in that: In the detection system, the enable output end is connected to the driving module, and the detection end is connected to the driving module through the detection module; the driving module is also connected to a power supply and a high-side load, and the driving module controls the on and off of the high-side load by receiving a signal from the control module.
6. The high side load detection method in working state according to claim 5, characterized in that: The control module comprises a control chip, and the enable output terminal and the detection terminal are both arranged on the control chip.
7. The method for detecting a high-side load in a working state according to claim 1, characterized in that: The current limiting circuit includes at least a first resistor; the filtering circuit includes at least a first capacitor; and the current-to-voltage circuit includes at least a second resistor.
8. The method for detecting a high-side load in a working state according to claim 6, characterized in that: A filter module is further connected between the enable output terminal and the enable input terminal, and the filter module includes at least one resistor and / or at least one capacitor.
Citation Information
Patent Citations
High-side driver switch fault detection circuit and fault detection method
CN110687439A
Circuit and method for suppressing surge current of high-side driver
CN112398097A
Automobile combination instrument control circuit capable of detecting high-side load open circuit
CN112455366A