Wake-up circuit, fault detection system and electrical device
Patent Information
- Application Number
- CN202511524662.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-08-18
AI Technical Summary
但是当MCU具有低功耗要求时,MCU处于休眠状态无法进行检测工作,则在休眠状态下,无法监控互锁开关的状态
[0052] The wake-up circuit, fault detection system, and electrical equipment provided in this application include: a wake-up module, adapted for electrical connection to a voltage divider module; the voltage divider module is used to divide the power supply according to the working state of a first switch; the first switch is connected in series to the voltage divider node of the voltage divider module; the wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. In the solution of this application, the voltage divider module generates a corresponding first voltage according to different states of the first switch; the wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. This realizes the wake-up of the main controller in a dormant state when the first switch is in a fault state, thereby enabling the main controller to perform fault detection on the first switch; and realizes continuous monitoring of faults when the main controller is in a low-power mode.
Smart Images

Figure CN122593211A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electric vehicle technology, and in particular to a wake-up circuit, a fault detection system, and an electrical device. Background Technology
[0002] Interlock switches applied to connectors are used by the main controller to sense the reliability of connector connections. The connection of the interlock switches is typically a two-contact short circuit, feeding back feedback to the main controller's detection port. The maintenance switch, as a connector, has an interlock design so that when the starter battery is being serviced, the main controller (MCU) detects a poorly connected connector and immediately disconnects the output. This prevents the starter battery from continuously outputting power when not in use, which could cause accidental short circuits or arcing.
[0003] In some interlock detection schemes, the interlock switch is detected by sending pulse signals (PWM) or level signals through a circuit. However, when the MCU has low power requirements, it may be in sleep mode and unable to perform detection work. Therefore, the status of the interlock switch cannot be monitored in sleep mode. Summary of the Invention
[0004] This application provides a wake-up circuit, a fault detection system, and an electrical device to wake up the main controller in a dormant state when the first switch is in a fault state, thereby reducing the power consumption of fault detection.
[0005] In a first aspect, embodiments of this application provide a wake-up circuit, including:
[0006] A wake-up module is suitable for electrical connection to a voltage divider module; the voltage divider module is used to divide the power supply according to the working state of the first switch; the first switch is connected in series to the voltage divider node of the voltage divider module;
[0007] The wake-up module is used to output a second voltage of a first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or the first voltage is less than a second threshold, so as to wake up the main controller.
[0008] In one possible implementation, the wake-up module is further configured to:
[0009] When the first voltage at the voltage divider node is not greater than the first threshold and the first voltage is less than the second threshold, the second voltage of the second state is output to the main controller so that the main controller remains in sleep mode.
[0010] In one possible implementation, the wake-up module includes: a first switch, a first resistor, a second resistor, a third resistor, a second switch, and a first diode;
[0011] The first terminal of the first switching transistor is connected to a power supply, the second terminal of the first switching transistor is connected to the first terminal of the second resistor, and the control terminal of the first switching transistor is connected to the first terminal of the first resistor; the second terminal of the first resistor is connected to the output terminal of the voltage divider module and the cathode of the first diode; the second terminal of the second resistor is grounded.
[0012] The first end of the third resistor is connected to the power supply, and the second end of the third resistor is connected to the positive terminal of the first diode;
[0013] The first terminal of the second switch is connected to the second terminal of the third resistor, the second terminal of the second switch is grounded, and the control terminal of the second switch is connected to the first terminal of the second resistor.
[0014] In one possible implementation, the wake-up module further includes: a first capacitor and a second capacitor;
[0015] The first terminal of the first capacitor is connected to the power supply, and the second terminal of the first capacitor is connected to the first terminal of the first resistor.
[0016] The first terminal of the second capacitor is connected to the first terminal of the second resistor, and the second terminal of the second capacitor is grounded through the connection to the second terminal of the second resistor.
[0017] In one possible implementation, the wake-up module includes: a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a first comparator, and a second comparator;
[0018] The fourth resistor, the fifth resistor, and the sixth resistor are connected in series between the power supply and ground.
[0019] The positive input terminal of the first comparator is connected between the fourth resistor and the fifth resistor, and the negative input terminal of the first comparator is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fourth resistor and the fifth resistor, and outputs the first comparison result at the output terminal of the first comparator.
[0020] The negative input terminal of the second comparator is connected between the fifth resistor and the sixth resistor, and the positive input terminal of the second comparator is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fifth resistor and the sixth resistor, and outputs a second comparison result at the output terminal of the second comparator, so as to output the second voltage based on the first comparison result and the second comparison result;
[0021] The first end of the seventh resistor is connected to the power supply, and the second end of the seventh resistor is connected to the connection point between the output of the first comparator and the output of the second comparator.
[0022] In one possible implementation, the wake-up module is specifically used for:
[0023] When the first voltage is greater than the first threshold or the first voltage is less than the second threshold, a second voltage in a low-level state is generated;
[0024] When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage in a high-level state is generated, and the main controller is configured to wake up at a low level.
[0025] In one possible implementation, the wake-up module includes: an eighth resistor, a third switch, a second diode, a third diode, and a ninth resistor;
[0026] The first end of the eighth resistor is connected to the power supply, and the second end of the eighth resistor is connected to the first end of the third switching transistor.
[0027] The second terminal of the third switch is grounded, and the control terminal of the third switch is connected to the voltage divider node;
[0028] The positive terminal of the second diode is connected to the voltage divider node and the second terminal of the eighth resistor, and the negative terminal of the second diode is connected to the first terminal of the ninth resistor;
[0029] The positive terminal of the third diode is connected to the voltage divider node and the second terminal of the eighth resistor, and the negative terminal of the third diode is connected to the first terminal of the ninth resistor and the negative terminal of the second diode; the second terminal of the ninth resistor is grounded.
[0030] In one possible implementation, the wake-up module includes: a tenth resistor, an eleventh resistor, a twelfth resistor, a first operational amplifier, a second operational amplifier, a fourth diode, and a fifth diode;
[0031] The tenth resistor, the eleventh resistor, and the twelfth resistor are connected in series between the power supply and ground.
[0032] The negative input terminal of the first operational amplifier is connected between the tenth resistor and the eleventh resistor, and the negative input terminal of the first operational amplifier is connected to the voltage divider node, which is used to compare the voltage of the voltage divider node with the voltage divider node between the tenth resistor and the eleventh resistor, and outputs a third comparison result at the output terminal of the first operational amplifier;
[0033] The positive input terminal of the second operational amplifier is connected between the eleventh resistor and the twelfth resistor, and the negative input terminal of the second operational amplifier is connected to the voltage divider node. This is used to compare the voltage of the voltage divider node with the voltage divider node between the eleventh resistor and the twelfth resistor, and to output a fourth comparison result at the output terminal of the second operational amplifier, so as to output the second voltage based on the third comparison result and the fourth comparison result.
[0034] In one possible implementation, the wake-up module is further specifically used for:
[0035] When the first voltage is greater than the first threshold or less than the first threshold, a second voltage in a high-level state is generated;
[0036] When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage in a low-level state is generated, and the main controller is configured to wake up at a high level.
[0037] In one possible implementation, the voltage divider module includes: a thirteenth resistor, a sixth diode, and a fourteenth resistor;
[0038] The first end of the thirteenth resistor is connected to the power supply, and the second end of the thirteenth resistor is connected to the positive terminal of the sixth diode; the negative terminal of the sixth diode is connected to one end of the first switch.
[0039] The first end of the fourteenth resistor is connected to the other end of the first switch, and the second end of the fourteenth resistor is grounded.
[0040] In one possible implementation, the circuit further includes:
[0041] A monitoring module, connected to the voltage divider module and the main controller, is used to monitor the voltage of the voltage divider node when the main controller is in a wake-up state, so that the main controller can detect the state of the first switch.
[0042] In one possible implementation, the monitoring module includes: a fifteenth resistor, a sixteenth resistor, and a third capacitor;
[0043] The first end of the fifteenth resistor is connected to the voltage divider module, and the second end of the fifteenth resistor is connected to the first end of the sixteenth resistor; the second end of the sixteenth resistor is connected to the first end of the third capacitor and the main controller;
[0044] The second terminal of the third capacitor is grounded.
[0045] In one possible implementation, the circuit further includes a filtering module;
[0046] Used to filter the second voltage generated by the wake-up module and output it to the main controller;
[0047] The filtering module includes: a seventeenth resistor and a fourth capacitor;
[0048] The first end of the seventeenth resistor is connected to the wake-up module, and the second end of the seventeenth resistor is connected to the first end of the fourth capacitor and the main controller;
[0049] The second terminal of the fourth capacitor is grounded.
[0050] Secondly, embodiments of this application provide a fault detection system, including: a first switch, a main controller, and a wake-up circuit as described above.
[0051] Thirdly, embodiments of this application provide an electrical device, including: the fault detection system described above.
[0052] The wake-up circuit, fault detection system, and electrical equipment provided in this application include: a wake-up module, adapted for electrical connection to a voltage divider module; the voltage divider module is used to divide the power supply according to the working state of a first switch; the first switch is connected in series to the voltage divider node of the voltage divider module; the wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. In the solution of this application, the voltage divider module generates a corresponding first voltage according to different states of the first switch; the wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. This realizes the wake-up of the main controller in a dormant state when the first switch is in a fault state, thereby enabling the main controller to perform fault detection on the first switch; and realizes continuous monitoring of faults when the main controller is in a low-power mode. Attached Figure Description
[0053] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0054] Figure 1 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 1 ;
[0055] Figure 2 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 2 ;
[0056] Figure 3 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 3 ;
[0057] Figure 4 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 4 ;
[0058] Figure 5 This is a schematic diagram of a fault detection system provided in an embodiment of this application. Detailed Implementation
[0059] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0060] Interlock switches applied to connectors are used by the main controller to sense the reliability of connector connections. The connection of the interlock switches is typically a two-contact short circuit, feeding back feedback to the main controller's detection port. The maintenance switch, as a connector, has an interlock design to disconnect the output when the main controller detects a poor connection during starter battery maintenance. This prevents the starter battery from continuously outputting power when not in use, which could cause accidental short circuits or arcing.
[0061] In some interlock detection schemes, the interlock switch is detected as closed by sending pulse signals (PWM) or level signals through a circuit. However, when the main controller (MCU) has low power consumption requirements and the power consumption is critical, the MCU cannot perform detection work in sleep mode, and therefore cannot monitor the status of the interlock switch in sleep mode.
[0062] In the wake-up circuit, fault detection system, and electrical equipment provided in this application embodiment, the voltage divider module generates a corresponding first voltage according to different states of the first switch; the wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. This realizes the wake-up of the main controller from its dormant state when the first switch is in a fault state, thereby enabling the main controller to perform fault detection on the first switch; and realizes continuous fault monitoring when the main controller is in a low-power mode.
[0063] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0064] Example 1
[0065] Figure 1 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 1 ; Figure 2 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 2 ; Figure 3 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 3 ; Figure 4 Schematic diagram of the wake-up circuit provided in the embodiments of this application Figure 4 Please refer to the following. Figure 1-4 .
[0066] The wake-up circuit provided in this application embodiment includes:
[0067] The wake-up module is suitable for electrical connection with the voltage divider module; the voltage divider module is used to divide the power supply according to the working state of the first switch; the first switch is connected in series to the voltage divider node of the voltage divider module;
[0068] The wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than the first threshold or less than the second threshold, so as to wake up the main controller.
[0069] Optionally, the wake-up circuit of this application can be applied to scenarios where the state of the first switch is detected. In practical applications, the first switch can be a plug-in component, typically including an interlock switch; the first switch can also be a maintenance switch. When maintenance of the starter battery is required, the main controller detects that the maintenance switch is not properly connected and disconnects the output. This avoids the starter battery continuously outputting power when not installed, which could cause accidental short circuits or arcing. Therefore, it is necessary to detect the state of the first switch, which can include short circuit, open circuit, and normal operating states.
[0070] One end of the voltage divider module is connected to the power supply of the wake-up circuit, and the other end is grounded. It is used to divide the power supply according to the operating state of the first switch. The first switch is connected in series to the nodes of the voltage divider module. For example... Figures 1-4 The LVIL-P and LVIL-N nodes shown are the external interfaces of the detection circuit, which are connected to the interlock slot of the first switch. When the first switch is in different states, the first voltage at the voltage divider node of the corresponding voltage divider module is different.
[0071] The wake-up module is connected to the voltage divider module and is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold. This second voltage is then output to the wake-up node of the main controller to wake it up. The wake-up node is as follows: Figures 1-4The LVIL-WAKE node is shown. The main controller can remain awake based on the specific value of the second voltage. For example, the second voltage in the first state is the voltage at which the wake-up condition for the main controller is met.
[0072] Alternatively, when the first voltage at the voltage divider node is not greater than the first threshold and the first voltage is less than the second threshold, the second voltage of the second state is output to the main controller so that the main controller remains in sleep mode.
[0073] Optionally, when the first switch is open or short-circuited to the power supply, the first voltage is greater than the first threshold; when the first switch is closed, the first voltage is not greater than the first threshold and not less than the second threshold; when the first switch is short-circuited to ground, the first voltage is less than the second threshold.
[0074] For example, the first threshold is a preset value close to the power supply voltage VCC; when the first switch is detected, if the first switch is open or short-circuited to the power supply, the first voltage must be greater than the first threshold; the value of the first voltage can be the power supply voltage VCC.
[0075] The second threshold is a preset value close to 0. When a short circuit to ground is detected in the first switch, the first voltage is less than the second threshold; the value of the first voltage can be 0.
[0076] When the first switch is detected to be closed and in normal working condition, the first voltage is not greater than the first threshold and not less than the second threshold; for example, the first voltage value can be half of the power supply voltage, VCC / 2.
[0077] In this example, different states of the first switch in the voltage divider module generate corresponding first voltages. The wake-up module outputs a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, thereby waking up the main controller. Conversely, when the first voltage at the voltage divider node is not greater than the first threshold and less than the second threshold, it outputs a second voltage of the second state to the main controller, keeping the main controller in sleep mode. This achieves the following: when the first switch is in a fault state, the main controller is woken up from its sleep state, enabling it to perform fault detection on the first switch; when the first switch is operating normally, the main controller remains in sleep mode, maintaining a low-power mode; and continuous fault monitoring is achieved even when the main controller is in low-power mode.
[0078] Optionally, the wake-up module is specifically used for:
[0079] When the first voltage is greater than the first threshold or less than the second threshold, a second voltage in a low-level state is generated.
[0080] When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage in a high-level state is generated, and the main controller is configured to wake up at a low level.
[0081] Optionally, when the main controller is configured for low-level wake-up, the first switch is either open or short-circuited to the power supply when the first voltage is greater than the first threshold. When the first voltage is less than the second threshold, the first switch is in a fault state of short-circuited to ground. Both of these fault conditions can generate a low-level second voltage, allowing the main controller to be woken up.
[0082] When the first voltage is not greater than the first threshold and not less than the second threshold, the first switch is in the normal closed state, generating a high-level second voltage, and the main controller is not woken up and is in sleep state.
[0083] In this example, depending on the different wake-up types of the main controller, the wake-up module is designed to generate a low-level wake-up voltage signal in a fault state, thereby waking up the dormant main controller.
[0084] Optional, refer to Figure 1 The wake-up module includes: a first switch Q1, a first resistor R2, a second resistor R7, a third resistor R4, a second switch Q2, and a first diode D2;
[0085] The first terminal of the first switch Q1 is connected to the power supply, the second terminal of the first switch Q1 is connected to the first terminal of the third resistor R7, the control terminal of the first switch Q1 is connected to the first terminal of the first resistor R2; the second terminal of the first resistor R2 is connected to the output terminal of the voltage divider module and the negative terminal of the first diode D2; the second terminal of the second resistor R7 is grounded.
[0086] The first end of the third resistor R4 is connected to the power supply, and the second end of the third resistor R4 is connected to the positive terminal of the first diode D2.
[0087] The first terminal of the second switch Q2 is connected to the second terminal of the third resistor R4, the second terminal of the second switch Q2 is grounded, and the control terminal of the second switch Q2 is connected to the first terminal of the second resistor R7.
[0088] Optionally, the wake-up module may also include: a first capacitor C1 and a second capacitor C4;
[0089] The first terminal of the first capacitor C1 is connected to the power supply, and the second terminal of the first capacitor C1 is connected to the first terminal of the third resistor R2.
[0090] The first terminal of the second capacitor C4 is connected to the first terminal of the fourth resistor R7, and the second terminal of the second capacitor C4 is grounded through the connection to the second terminal of the fourth resistor R7.
[0091] When the main controller is configured for low-level wake-up, when the MCU is in sleep mode, with the first switch open and the power supply short-circuited, the left end of the first diode D2 is at a high level, which is the power supply voltage VCC; that is, the first voltage at the voltage divider node (the voltage at the node between D1 and R1) is VCC. At this time, the first switch Q1 is turned off; for example, the first switch is a PNP transistor. When the first switch Q1 is turned off, the second resistor R7 discharges into the second capacitor C4 until the second switch Q2 turns on, pulling the voltage on the right side of the first diode D2 low, which is the second voltage. The low-level second voltage is transmitted to the wake-up pin LVIL-WAKE of the main controller, waking up the MCU. For example, the second switch can be a PNP transistor.
[0092] When the first switch is closed, the left end of the first diode D2 is at the level of VCC / 2, the first switch Q1 is turned on, the voltage across the second resistor R7 is the power supply voltage VCC, the second switch Q2 is turned off, and the right side of the first diode D2 follows the left side at the level of VCC / 2. The second voltage, VCC / 2, is transmitted to the wake-up pin LVIL-WAKE of the main controller. Since the wake-up voltage for waking up the main controller is not reached, the MCU remains in sleep mode.
[0093] When the first switch is short-circuited to ground, the left end of the first diode D2 is at a low level, i.e., 0V. The first switch Q1 is turned on, the voltage across the upper end of the second resistor R7 is VCC, the second switch Q2 is turned off, and the right side of the first diode D2 follows the level on the left, i.e., 0V. This low-level second voltage is transmitted to the LVIL-WAKE pin of the main controller, waking up the MCU. When the first switch Q1 is turned on, the first resistor R2 acts as isolation and current limiting protection, allowing the voltage on the left side of the first diode D2 to change according to the first voltage.
[0094] The third resistor R4 is a pull-up resistor, which pulls the voltage up when the second switch Q2 is turned off. The first capacitor C1 filters the power supply voltage before outputting it.
[0095] In this example, by using the wake-up module, the main controller is woken up or kept in sleep mode under different operating conditions of the first switch, thus realizing the status monitoring of the first switch in low power mode and improving the reliability of detection.
[0096] Reference Figure 2 The wake-up module includes: a fourth resistor R17, a fifth resistor R18, a sixth resistor R19, a seventh resistor R21, a first comparator U1, and a second comparator U2;
[0097] The fourth resistor R17, the fifth resistor R18, and the sixth resistor R19 are connected in series between the power supply and ground.
[0098] The positive input terminal of the first comparator U1 is connected between the fourth resistor R17 and the fifth resistor R18, and the negative input terminal of the first comparator U1 is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fourth resistor and the fifth resistor, and outputs the first comparison result at the output terminal of the first comparator U1.
[0099] The negative input terminal of the second comparator U2 is connected between the fifth resistor R18 and the sixth resistor R19, and the positive input terminal of the second comparator U2 is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fifth resistor R18 and the sixth resistor R19, and outputs the second comparison result at the output terminal of the second comparator U2, so as to output the second voltage based on the first comparison result and the second comparison result.
[0100] The first end of the seventh resistor R21 is connected to the power supply, and the second end of the seventh resistor R21 is connected to the connection point of the output of the first comparator U1 and the output of the second comparator U2.
[0101] like Figure 2 As shown, when the MCU is in sleep mode, the second level is set as the wake-up level through a voltage divider formed by the fourth resistor R17, the fifth resistor R18, and the sixth resistor R19. For example, the first comparator U1 and the second comparator U2 can be open-drain output comparators.
[0102] When the first switch is open and the power supply is short-circuited, the first voltage of the voltage divider node is high, i.e., the power supply voltage VCC. The level of the negative input terminal '-' of the first comparator U1 is higher than the level of the set positive input terminal '+', resulting in a low output. The level of the positive input terminal '+' of the second comparator U2 is higher than the level of the set negative input terminal '-', resulting in a high-impedance output. Therefore, the second voltage output by the wake-up module is low, which is transmitted to the wake-up pin LVIL-WAKE of the main controller to wake up the MCU.
[0103] When the first switch is closed, the first voltage of the voltage divider node is at the level of VCC / 2. The level of the negative input terminal '-' of the first comparator U1 is lower than the set level of the positive input terminal '+', resulting in a high-impedance output. The level of the positive input terminal '+' of the second comparator U2 is higher than the set level of the negative input terminal '-', also resulting in a high-impedance output. The second voltage output by the wake-up module is below the wake-up level of the main controller and is transmitted to the wake-up pin LVIL-WAKE of the main controller. The MCU is not woken up and remains in sleep mode.
[0104] When the first switch is short-circuited to ground, the first voltage of the voltage divider node is low, i.e., 0V. The negative input terminal '-' of the first comparator U1 is lower than the set positive input terminal '+' level, resulting in a high-impedance output. The positive input terminal '+' of the second comparator U2 is lower than the set negative input terminal '-' level, resulting in a low-level output. Therefore, the second voltage output by the wake-up module is low, which is transmitted to the LVIL-WAKE pin of the main controller to wake up the MCU.
[0105] For example, the node voltage between the fourth resistor R17 and the fifth resistor R18 is (VCC-VD1)×R8 / (R1+R8)+VD1+tolerance, and the node voltage between the fifth resistor R18 and the sixth resistor R19 is (VCC-VD1)×R8 / (R1+R8)+VD1-tolerance. The tolerance value can be set manually. VD1 is... Figure 1 The voltage of the sixth diode D1 in the voltage divider module is at Figure 2 The middle one is D6. Figure 3 The middle one is D3. Figure 4 The value in the middle is the voltage of D7.
[0106] In this example, the first voltage is compared with the voltage divider of R17, R18, and R19 by a comparator to set the wake-up level of the main controller, making the generated wake-up level more accurate and further improving the reliability of waking up the main controller.
[0107] Optionally, the wake-up module is also specifically used for:
[0108] When the first voltage is greater than the first threshold or less than the first threshold, a second voltage in a high-level state is generated;
[0109] When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage with a low level is generated, and the main controller is configured to wake up with a high level.
[0110] Optionally, when the main controller is configured for high-level wake-up, if the first voltage is greater than the first threshold, the first switch is either open or short-circuited to the power supply. If the first voltage is less than the second threshold, the first switch is in a fault state of short-circuited to ground. Both of these fault conditions can generate a high-level second voltage, allowing the main controller to be woken up.
[0111] When the first voltage is not greater than the first threshold and not less than the second threshold, the first switch is in the normal closed state, generating a low-level second voltage. The main controller is not woken up and is in sleep state.
[0112] In this example, depending on the different wake-up types of the main controller, the wake-up module is designed to generate a high-level wake-up voltage signal in a fault state, thereby waking up the dormant high-level wake-up main controller.
[0113] Optionally, the wake-up module includes: an eighth resistor R11, a third switch Q3, a second diode D4, a third diode D5, and a ninth resistor R14;
[0114] The first end of the eighth resistor R11 is connected to the power supply, and the second end of the eighth resistor R11 is connected to the first end of the third switch Q3.
[0115] The second terminal of the third switch Q3 is grounded, and the control terminal of the third switch Q3 is connected to the voltage divider node.
[0116] The positive terminal of the second diode D4 is connected to the voltage divider node and the second terminal of the eighth resistor R11, and the negative terminal of the second diode D4 is connected to the first terminal of the ninth resistor R14.
[0117] The positive terminal of the third diode D5 is connected to the voltage divider node and the second terminal of the eighth resistor R11. The negative terminal of the third diode D5 is connected to the first terminal of the ninth resistor R14 and the negative terminal of the second diode D4. The second terminal of the ninth resistor R14 is grounded.
[0118] Optional, refer to Figure 3 When the MCU is in sleep mode and the main controller is configured to wake up with a high level, under the condition of the first switch being open and the power supply being short-circuited, the left end of the second diode D4 is at a high level, i.e., the first voltage of the voltage divider node is high, which is the power supply voltage VCC. At this time, the third switch Q3 is turned on, and the left end of the third diode D5 is grounded, and the voltage is pulled down to a low level. For example, the third switch is an N-type MOSFET. This application does not specifically limit the type of the third switch. The second diode D4 and the third diode D5 form an OR gate, which uses the higher level (high level) as the second voltage output by the wake-up module and transmits it to the wake-up pin LVIL-WAKE of the main controller to wake up the MCU.
[0119] When the first switch is closed, the first voltage at the left end of the second diode D4, i.e., the voltage divider node, is at the level of VCC / 2. At this time, the third switch Q3 is turned on, and the left end of the third diode D5 is at a low level. The second diode D4 and the third diode D5 form an OR gate, which uses the higher level (VCC / 2) as the second voltage output by the wake-up module and transmits it to the wake-up pin LVIL-WAKE of the main controller. At this time, the second voltage does not reach the wake-up level of the MCU, and the MCU is not woken up.
[0120] When the first switch is short-circuited to ground, the left end of the second diode D4 is at a low level, meaning the first voltage of the voltage divider node is low (0V). At this time, the third switch Q3 is turned off, and the left end of the third diode D5 is at a high level. The second diode D4 and the third diode D5 form an OR gate, transmitting the higher voltage (high level) through the second voltage output from the wake-up module to the wake-up pin LVIL-WAKE of the main controller, thus waking up the MCU.
[0121] In this example, the wake-up module enables the main controller to be woken up and kept in sleep mode under different states of the first switch, thus realizing the monitoring of the state of the first switch when the main controller is in low power mode.
[0122] Optionally, the wake-up module includes: tenth resistor R26, eleventh resistor R27, twelfth resistor R28, first operational amplifier U3, second operational amplifier U4, fourth diode D8, and fifth diode D9;
[0123] The tenth resistor R26, the eleventh resistor R27, and the twelfth resistor R28 are connected in series between the power supply and ground.
[0124] The negative input terminal of the first operational amplifier U3 is connected between the tenth resistor R26 and the eleventh resistor R27. The negative input terminal of the first operational amplifier U3 is connected to the voltage divider node, which is used to compare the voltage of the voltage divider node with the voltage divider node between the tenth resistor R26 and the eleventh resistor R27, and outputs the third comparison result at the output terminal of the first operational amplifier U3.
[0125] The positive input terminal of the second operational amplifier U4 is connected between the eleventh resistor R27 and the twelfth resistor R28, and the negative input terminal of the second operational amplifier U4 is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage of the voltage divider node between the eleventh resistor R27 and the twelfth resistor R28, and outputs the fourth comparison result at the output terminal of the second operational amplifier U4, so as to output the second voltage based on the third comparison result and the fourth comparison result.
[0126] Optional, refer to Figure 4 When the MCU is in sleep mode, the wake-up level of the MCU is set by voltage divider R26, R27, and R28. The OR gate combination circuit composed of the first operational amplifier U3, the second operational amplifier U4, the fourth diode D8, and the fifth diode D9 outputs a high-level wake-up signal, which is then used by the MCU to perform the first switch state detection after waking up and entering the working mode.
[0127] When the first switch is open and the power supply is short-circuited, the first voltage at the voltage divider node is high, which is the power supply voltage VCC. The positive input terminal '+' of the first operational amplifier U3 is higher than the set negative input terminal '-', resulting in a high output. The negative input terminal '-' of the second operational amplifier U4 is higher than the set positive input terminal '+', resulting in a low output. Therefore, the second voltage output by the OR gate formed by the fifth diode D8 and the sixth diode D9 is high, and is output to the MCU's wake-up pin LVIL-WAKE to wake up the MCU.
[0128] With the first switch closed, the first voltage at the voltage divider node is VCC / 2. The positive input terminal '+' of the first operational amplifier U3 is lower than the set negative input terminal '-', resulting in a low output level. The negative input terminal '-' of the second operational amplifier U2 is higher than the set positive input terminal '+', also resulting in a low output level. After passing through the fourth diode D8 and the fifth diode D9, the low output level is transmitted to the LVIL-WAKE pin of the main controller. Since the wake-up level for the MCU is not reached, the MCU is not woken up.
[0129] Under the condition of a short circuit to ground at the first switch, the first voltage of the voltage divider node is low, i.e., 0V. The positive input terminal '+' of the first operational amplifier U3 is lower than the set negative input terminal '-', resulting in a low output level. The negative input terminal '-' of the second operational amplifier U4 is lower than the set positive input terminal '+', resulting in a high output level. At this time, after passing through the fourth diode D8 and the fifth diode D9, the high output level is transmitted as the second level to the LVIL-WAKE pin of the main controller to wake up the MCU.
[0130] For example, the node voltage between the tenth resistor R26 and the eleventh resistor R27 is (VCC-VD1)×R8 / (R1+R8)+VD1+fault tolerance, and the node voltage between the eleventh resistor R27 and the twelfth resistor R28 is (VCC-VD1)×R8 / (R1+R8)+VD1-fault tolerance. The fault tolerance value can be set manually, and VD1 is the voltage value of the sixth diode under the voltage divider module. Figure 2 The middle one is D6. Figure 3 The middle one is D3. Figure 4 The value in the middle is the voltage of D7.
[0131] In this example, the first voltage is compared with the voltage divider of R26, R27, and R28 by an operational amplifier to set the wake-up level of the main controller, making the generated wake-up level more accurate and further improving the reliability of waking up the main controller.
[0132] Optionally, the voltage divider module includes: a thirteenth resistor, a sixth diode, and a fourteenth resistor;
[0133] The first end of the thirteenth resistor is connected to the power supply, and the second end of the thirteenth resistor is connected to the positive terminal of the sixth diode; the negative terminal of the sixth diode is connected to one end of the first switch.
[0134] The first end of the fourteenth resistor is connected to the other end of the first switch, and the second end of the fourteenth resistor is grounded.
[0135] For example, refer to Figure 1 As shown, the voltage divider module includes: the thirteenth resistor R1, the sixth diode D1, and the fourteenth resistor R8. (Refer to...) Figure 2 As shown, the voltage divider module includes: the thirteenth resistor R16, the sixth diode D6, and the fourteenth resistor R24. (Refer to...) Figure 3 As shown, the voltage divider module includes: the thirteenth resistor R9, the sixth diode D3, and the fourteenth resistor R15. (Refer to...) Figure 4 As shown, the voltage divider module includes: the thirteenth resistor R25, the sixth diode D7, and the fourteenth resistor R32. (Refer to...) Figures 1-4 The first terminal of the thirteenth resistor is connected to the power supply of the detection circuit, and the second terminal of the thirteenth resistor is connected to the anode of the sixth diode; the cathode of the sixth diode is connected to one end of the first switch, and the other end of the fourteenth resistor is connected to the other end of the first switch, that is... Figures 1-4 LVIL-P and LVIL-N are the interfaces for connecting the first switch, which is connected in series between the two interfaces. The other end of the fourteenth resistor is grounded. For example, the sixth diode can be a PN junction diode, a Schottky diode, etc.; the sixth diode allows current to flow in one direction, preventing reverse current flow. The voltage divider node is the node between the thirteenth resistor and the sixth diode.
[0136] In this example, the identification conditions are created by resistor voltage division, which can effectively control power consumption while detecting the first switch state.
[0137] Optionally, the circuit may also include:
[0138] The monitoring module, connected to the voltage divider module and the main controller, is used to monitor the voltage of the voltage divider node when the main controller is in a wake-up state, so that the main controller can detect the state of the first switch.
[0139] Optionally, when the MCU is in operating mode, and in a sleep state but after being woken up, the main controller collects the voltage at the voltage divider node via an analog-to-digital converter (ADC) to determine the current state of the first switch. (See reference...) Figure 1-4 The LVIL-AD shown is the ADC acquisition pin of the main controller. This pin is connected to the monitoring module to acquire the voltage of the voltage divider node.
[0140] For example, when the voltage of the voltage divider node is within the range of (VCC-VD1)×R8 / (R1+R8)+VD1±tolerance, the first switch is considered to be in a closed state. Here, the tolerance value can be set manually, and VD1 is the voltage value of the sixth diode under the voltage divider module. Figure 2 The middle one is D6. Figure 3 The middle one is D3. Figure 4 The voltage value of D7 is shown in the figure. When the voltage of the voltage divider node is lower than (VCC-VD1)×R8 / (R1+R8)+VD1-fault tolerance, the first switch is considered to be short-circuited to ground; when the voltage of the voltage divider node is higher than (VCC-VD1)×R8 / (R1+R8)+VD1+fault tolerance, the first switch is considered to be short-circuited to the power supply.
[0141] In this example, by configuring the monitoring module to monitor the voltage of the voltage divider node when the MCU is in operation, the first switching state can be detected. Simultaneously, the monitoring module stabilizes and filters the voltage of the voltage divider node, improving the accuracy of the detection results.
[0142] Optionally, the monitoring module includes: a fifteenth resistor, a sixteenth resistor, and a third capacitor;
[0143] The first end of the fifteenth resistor is connected to the voltage divider module, and the second end of the fifteenth resistor is connected to the first end of the sixteenth resistor; the second end of the sixteenth resistor is connected to the first end of the third capacitor and the main controller; the second end of the third capacitor is grounded.
[0144] Reference Figure 1-4 ,exist Figure 1 In the diagram, the fifteenth resistor is resistor R3; Figure 2 In the diagram, the fifteenth resistor is resistor R20; Figure 3 In the diagram, the fifteenth resistor is resistor R10; Figure 4 In the diagram, the fifteenth resistor is resistor R29.
[0145] exist Figure 1 In the diagram, the sixteenth resistor is resistor R5, and the third capacitor is capacitor C2; Figure 2 In the diagram, the sixteenth resistor is resistor R22, and the third capacitor is capacitor C7; Figure 3 In the diagram, the sixteenth resistor is resistor R12, and the third capacitor is capacitor C5; Figure 4 In the diagram, the sixteenth resistor is resistor R31, and the third capacitor is capacitor C9.
[0146] The fifteenth and sixteenth resistors, along with the third capacitor, work together to stabilize and filter the voltage at the voltage divider node, making the detection results of the first switch more accurate and improving the stability of the detection status of the first switch.
[0147] Optionally, the circuit may also include: a filtering module;
[0148] The first end of the filtering module is connected to the wake-up module, and the second end of the filtering module is connected to the main controller. It is used to filter the second voltage generated by the wake-up module and output it to the main controller.
[0149] For example, the filtering module is used to filter the second voltage generated by the wake-up module and output the filtered and stable second voltage to the wake-up pin of the main controller, thereby improving the accuracy of waking up the main controller.
[0150] Optionally, the filtering module includes: a seventeenth resistor and a fourth capacitor;
[0151] The first end of the seventeenth resistor is connected to the wake-up module, and the second end of the seventeenth resistor is connected to the first end of the fourth capacitor and the main controller;
[0152] The second terminal of the fourth capacitor is grounded.
[0153] For example, refer to Figure 1-4 ,exist Figure 1 In the diagram, the seventeenth resistor is resistor R6, and the fourth capacitor is capacitor C3; Figure 2 In the diagram, the seventeenth resistor is resistor R23, and the fourth capacitor is capacitor C8; Figure 3 In the diagram, the seventeenth resistor is resistor R13, and the fourth capacitor is capacitor C6; Figure 4 In the diagram, the seventeenth resistor is resistor R30, and the fourth capacitor is capacitor C10.
[0154] In this example, the second filter module, consisting of the seventeenth resistor and the fourth capacitor, filters the second voltage before outputting it to the wake-up pin of the main controller, thus improving the accuracy of waking up the main controller.
[0155] In the wake-up circuit provided in this application embodiment, different states of the first switch of the voltage divider module generate corresponding first voltages. The wake-up module is used to output a second voltage of the first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or less than a second threshold, so as to wake up the main controller. And, when the first voltage at the voltage divider node is not greater than the first threshold and less than the second threshold, it outputs a second voltage of the second state to the main controller, so as to keep the main controller in sleep mode. This achieves the following: when the first switch is in a fault state, the main controller in sleep mode is woken up, thereby enabling the main controller to perform fault detection on the first switch; when the first switch is in normal operation, the main controller continues to remain in sleep mode, maintaining a low-power mode; and continuous fault monitoring is achieved when the main controller is in low-power mode.
[0156] Example 2
[0157] This application provides an embodiment of a fault detection system. Figure 5 This is a schematic diagram of the fault detection system provided in the embodiments of this application; as shown. Figure 5 As shown, the fault detection system includes a first switch, a main controller, and the aforementioned wake-up circuit. Both the first switch and the main controller are connected to the wake-up circuit.
[0158] Example 3
[0159] This application also provides an electrical device, in which the vehicle includes the aforementioned fault detection system. The electrical device can be an electric vehicle, a hybrid vehicle, or other new energy vehicle.
[0160] The embodiments or implementation methods described in this specification are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with an embodiment or example that are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described can be combined in any suitable manner in one or more embodiments or examples.
[0161] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A wake-up circuit, characterized in that, include: A wake-up module is suitable for electrical connection to a voltage divider module; the voltage divider module is used to divide the power supply according to the working state of the first switch; the first switch is connected in series to the voltage divider node of the voltage divider module; The wake-up module is used to output a second voltage of a first state to the main controller when the first voltage at the voltage divider node is greater than a first threshold or the first voltage is less than a second threshold, so as to wake up the main controller.
2. The circuit according to claim 1, characterized in that, The wake-up module is also used for: When the first voltage at the voltage divider node is not greater than the first threshold and the first voltage is less than the second threshold, the second voltage of the second state is output to the main controller so that the main controller remains in sleep mode.
3. The circuit according to claim 2, characterized in that, The wake-up module includes: a first switching transistor, a first resistor, a second resistor, a third resistor, a second switching transistor, and a first diode; The first terminal of the first switching transistor is connected to a power supply, the second terminal of the first switching transistor is connected to the first terminal of the second resistor, and the control terminal of the first switching transistor is connected to the first terminal of the first resistor; the second terminal of the first resistor is connected to the output terminal of the voltage divider module and the cathode of the first diode; the second terminal of the second resistor is grounded. The first end of the third resistor is connected to the power supply, and the second end of the third resistor is connected to the positive terminal of the first diode; The first terminal of the second switch is connected to the second terminal of the third resistor, the second terminal of the second switch is grounded, and the control terminal of the second switch is connected to the first terminal of the second resistor.
4. The circuit according to claim 3, characterized in that, The wake-up module further includes: a first capacitor and a second capacitor; The first terminal of the first capacitor is connected to the power supply, and the second terminal of the first capacitor is connected to the first terminal of the first resistor. The first terminal of the second capacitor is connected to the first terminal of the second resistor, and the second terminal of the second capacitor is grounded through the connection to the second terminal of the second resistor.
5. The circuit according to claim 2, characterized in that, The wake-up module includes: a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a first comparator, and a second comparator; The fourth resistor, the fifth resistor, and the sixth resistor are connected in series between the power supply and ground. The positive input terminal of the first comparator is connected between the fourth resistor and the fifth resistor, and the negative input terminal of the first comparator is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fourth resistor and the fifth resistor, and outputs the first comparison result at the output terminal of the first comparator. The negative input terminal of the second comparator is connected between the fifth resistor and the sixth resistor, and the positive input terminal of the second comparator is connected to the voltage divider node. It is used to compare the voltage of the voltage divider node with the voltage divider node between the fifth resistor and the sixth resistor, and outputs a second comparison result at the output terminal of the second comparator, so as to output the second voltage based on the first comparison result and the second comparison result; The first end of the seventh resistor is connected to the power supply, and the second end of the seventh resistor is connected to the connection point between the output of the first comparator and the output of the second comparator.
6. The circuit according to claim 2, characterized in that, The wake-up module is specifically used for: When the first voltage is greater than the first threshold or the first voltage is less than the second threshold, a second voltage in a low-level state is generated; When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage in a high-level state is generated, and the main controller is configured to wake up at a low level.
7. The circuit according to claim 2, characterized in that, The wake-up module includes: an eighth resistor, a third switching transistor, a second diode, a third diode, and a ninth resistor; The first end of the eighth resistor is connected to the power supply, and the second end of the eighth resistor is connected to the first end of the third switching transistor. The second terminal of the third switch is grounded, and the control terminal of the third switch is connected to the voltage divider node; The positive terminal of the second diode is connected to the voltage divider node and the second terminal of the eighth resistor, and the negative terminal of the second diode is connected to the first terminal of the ninth resistor; The positive terminal of the third diode is connected to the voltage divider node and the second terminal of the eighth resistor, and the negative terminal of the third diode is connected to the first terminal of the ninth resistor and the negative terminal of the second diode; the second terminal of the ninth resistor is grounded.
8. The circuit according to claim 2, characterized in that, The wake-up module includes: a tenth resistor, an eleventh resistor, a twelfth resistor, a first operational amplifier, a second operational amplifier, a fourth diode, and a fifth diode; The tenth resistor, the eleventh resistor, and the twelfth resistor are connected in series between the power supply and ground. The negative input terminal of the first operational amplifier is connected between the tenth resistor and the eleventh resistor, and the negative input terminal of the first operational amplifier is connected to the voltage divider node, which is used to compare the voltage of the voltage divider node with the voltage divider node between the tenth resistor and the eleventh resistor, and outputs a third comparison result at the output terminal of the first operational amplifier; The positive input terminal of the second operational amplifier is connected between the eleventh resistor and the twelfth resistor, and the negative input terminal of the second operational amplifier is connected to the voltage divider node. This is used to compare the voltage of the voltage divider node with the voltage divider node between the eleventh resistor and the twelfth resistor, and to output a fourth comparison result at the output terminal of the second operational amplifier, so as to output the second voltage based on the third comparison result and the fourth comparison result.
9. The circuit according to claim 7, characterized in that, The wake-up module is also specifically used for: When the first voltage is greater than the first threshold or the first voltage is less than the second threshold, a second voltage in a high-level state is generated; When the first voltage is not greater than the first threshold and not less than the second threshold, a second voltage in a low-level state is generated, and the main controller is configured to wake up at a high level.
10. The circuit according to claim 1, characterized in that, The voltage divider module includes: a thirteenth resistor, a sixth diode, and a fourteenth resistor; The first end of the thirteenth resistor is connected to the power supply, and the second end of the thirteenth resistor is connected to the positive terminal of the sixth diode; the negative terminal of the sixth diode is connected to one end of the first switch. The first end of the fourteenth resistor is connected to the other end of the first switch, and the second end of the fourteenth resistor is grounded.
11. The circuit according to claim 1, characterized in that, The circuit also includes: A monitoring module, connected to the voltage divider module and the main controller, is used to monitor the voltage of the voltage divider node when the main controller is in a wake-up state, so that the main controller can detect the state of the first switch.
12. The circuit according to claim 11, characterized in that, The monitoring module includes: a fifteenth resistor, a sixteenth resistor, and a third capacitor; The first end of the fifteenth resistor is connected to the voltage divider module, and the second end of the fifteenth resistor is connected to the first end of the sixteenth resistor; The second terminal of the sixteenth resistor is connected to the first terminal of the third capacitor and the main controller; the second terminal of the third capacitor is grounded.
13. The circuit according to any one of claims 1-12, characterized in that, The circuit also includes: a filtering module; Used to filter the second voltage generated by the wake-up module and output it to the main controller; The filtering module includes: a seventeenth resistor and a fourth capacitor; The first end of the seventeenth resistor is connected to the wake-up module, and the second end of the seventeenth resistor is connected to the first end of the fourth capacitor and the main controller; The second terminal of the fourth capacitor is grounded.
14. A fault detection system, characterized in that, include: The first switch, the main controller, and the wake-up circuit as described in any one of claims 1-13.
15. An electrical appliance, characterized in that, include: The fault detection system as described in claim 14.