An electronic switch with watchdog output detection diagnostics
By combining a watchdog unit, a dual PMOS transistor structure, and a high-precision current and voltage detection unit, the shortcomings of existing electronic switches in MCU status monitoring, electrical parameter detection, and reverse current protection are solved, realizing a multi-functional integrated design of the electronic switch and improving the reliability and applicability of the equipment.
Patent Information
- Application Number
- CN202522699328.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2035-12-19
AI Technical Summary
Existing electronic switches suffer from limitations in MCU status monitoring, electrical parameter detection, fault diagnosis, and reverse current protection, including limited functionality, high cost, and poor adaptability. These limitations make it difficult to meet the high reliability and multifunctional requirements of complex electronic devices.
A watchdog unit is used to monitor the MCU status, a dual PMOS transistor structure is used to prevent backflow, a current and voltage detection unit is used to achieve high-precision sampling, a shutdown logic unit is used to perform signal logic judgment, a protection threshold is configured through an I2C interface, and a multi-functional integrated design is achieved by combining general-purpose components.
It enables real-time monitoring of MCU status, reverse current protection, accurate fault identification, and flexible adjustment of protection thresholds, thereby reducing costs and improving the reliability and applicability of electronic switches.
Smart Images

Figure CN225032362U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of automated control and management, specifically to an electronic switch with watchdog output detection and diagnosis. Background Technology
[0002] In the field of automation control and management, electronic switches, as the core control components of various low-voltage electronic modules and electronic devices, are widely used in the scenarios of equipment opening and closing control and operation status monitoring. Their performance stability and functional completeness directly affect the operational reliability of the entire electronic system.
[0003] Existing electronic switches mostly use a single MOSFET or ordinary transistor as the core switching device, coupled with a basic resistor voltage divider sampling unit, fixed-parameter hardware protection circuit, and a simple driver module. Their core architecture focuses solely on "on / off control," resulting in numerous technical shortcomings and making it difficult to meet the high-precision and high-reliability requirements of complex electronic devices. For example: ① The electronic switch lacks a real-time monitoring and anomaly response mechanism for the operating status of the host computer control unit (MCU), and it lacks a safety fallback strategy for control signal failures. Once the MCU experiences abnormalities such as program crashes or deadlocks, causing the level control signal to lose its periodic switching characteristics (i.e., signal instability or stagnation), the electronic switch will be unable to recognize this abnormal condition. It cannot detect the MCU's fault status in a timely manner, nor does it have corresponding failure protection trigger logic, causing the switch to maintain its original operating state or fall into uncertain control logic, thereby leading to equipment malfunction. At the same time, due to the lack of isolation and termination mechanisms for the initial anomaly, the fault will continue to propagate to downstream circuits or related equipment, ultimately causing the fault scope to expand and losses to intensify. ② The protection thresholds of existing electronic switches are preset during the R&D phase for specific target scenarios. These values are achieved through hardware circuit selection (such as fixed resistors or inherent parameters of dedicated chips) or firmware fixation, without reserving a technical path for dynamic adjustment via software instructions (such as communication interface configuration) or hardware expansion operations. Because low-voltage electronic modules and electronic devices in different application scenarios have significantly different load characteristics, safety redundancy requirements, and rated operating electrical parameter ranges (e.g., some devices require precise low-current protection, while others require wide-range high-voltage adaptation), the fixed protection thresholds cannot match diverse needs: if the threshold is higher than the actual safety limit of the application, it will cause overcurrent and overvoltage protection failure, increasing the risk of equipment damage; if the threshold is lower than the normal operating parameters of the equipment, it will trigger false protection, affecting the stable operation of the equipment. ③ When existing electronic switches experience voltage fluctuations that cause the output potential to be higher than the input potential, or when they encounter external reverse voltage surges, a reverse potential difference is formed in the circuit, which in turn induces reverse current. Since the electrical characteristics of core components (such as MCUs, power transistors, and sampling chips) are only optimized for forward operating current and voltage, their reverse withstand voltage and reverse current withstand capabilities are significantly lower than the forward operating threshold. When reverse current flows through, it can cause irreversible damage such as PN junction breakdown and metallization layer melting. At the same time, the electrical stress brought by the reverse current will accelerate the aging of the components. Even if it does not directly cause immediate damage, it will significantly reduce the stability and lifespan of the components, ultimately leading to malfunctions or shortened lifespan of the entire electronic device. ④ Existing electronic switches lack an effective output fault detection and identification mechanism. This not only makes it difficult to quickly and accurately capture abnormal electrical parameters and complete fault characterization, but also makes it impossible to convert the fault state into a standardized signal that can be recognized by the upper-level system, even if an abnormality is indirectly sensed. Once faults such as overcurrent or overvoltage occur, the upper-level control unit cannot obtain fault-related information. Those skilled in the art need to check point by point using external detection equipment, which not only increases the difficulty and time cost of fault tracing, but may also lead to misjudgment due to missing fault information, thereby affecting the timeliness and accuracy of system maintenance and reducing the operation and maintenance efficiency and availability of the entire electronic system. ⑤ The sampling circuit of existing electronic switches lacks signal anti-interference and calibration mechanisms. The core sampling components mostly rely on ordinary resistor voltage dividers or low-resolution sensing elements, resulting in insufficient voltage and current detection accuracy. The signal acquisition resolution and data stability of the core sampling components of electronic switches are poor, making it difficult to accurately capture the subtle fluctuations of key electrical parameters during equipment operation. This makes it impossible to provide accurate and reliable data support for the upper control unit to formulate system optimization operation strategies. Even though some electronic switches have basic detection functions, their detection functions rely on dedicated integrated circuits. This not only results in high procurement costs for core components, but also in highly targeted functional designs with limited scalability. They cannot be expanded through simple hardware adaptation or software configuration, making it difficult to flexibly adapt to the diverse application needs of low-voltage electronic modules and electronic devices in different scenarios.
[0004] While those skilled in the art have attempted to improve the operational reliability, monitoring effectiveness, and scenario adaptability of electronic switches to meet the complex usage requirements of low-voltage electronic equipment, they have failed to simultaneously address the integrated needs of detection and diagnosis, circuit protection, and flexible parameter adaptation. This results in issues such as limited functionality or significant core shortcomings, for example: The "Watchdog Device and Monitoring Method" with publication number CN120295825A, although it optimizes the monitoring stability of the system chip during the power-on startup stage through the reset circuit and avoids interference from false resets, and has auxiliary functions such as power control and external shielding, only focuses on chip-level operating status monitoring and reset signal transmission control. It does not involve the core electrical parameter detection of electronic switches, fault diagnosis, and circuit protection design such as anti-backflow and anti-reverse connection, and cannot meet the complex requirements of low-voltage electronic equipment for precise switch control and real-time monitoring of operating conditions.
[0005] The power switch circuit with watchdog function published in CN212649434U, although it realizes the flexible adjustment of the watchdog timer duration and the power-off restart function in case of system failure, only has basic power on / off control capability. It lacks an ultra-precise electrical parameter sampling module and fault identification mechanism. Its voltage and current protection thresholds rely on the adjustment of hardware resistor and capacitor parameters, which cannot achieve dynamic software adaptation and is difficult to meet the needs of accurate protection and fault tracing in diverse scenarios.
[0006] In summary, existing electronic switches and related improvement technologies have failed to overcome the limitations of "single-function optimization." They cannot simultaneously cover core requirements such as MCU status monitoring, accurate detection of electrical parameters, fault diagnosis, and reverse current protection. They also fail to achieve dynamic software adaptation of protection thresholds and low-cost universal design, making it difficult to meet the comprehensive requirements of complex electronic devices for switches that are "highly reliable, multifunctional, and adaptable to various scenarios."
[0007] Therefore, how to provide an integrated electronic switch that integrates watchdog monitoring, ultra-precise electrical parameter detection, fault identification, and reverse connection protection functions, while supporting dynamic adjustment of protection thresholds via software and using general-purpose components to reduce costs, has always been a technical problem that those skilled in the art urgently need to solve. Summary of the Invention
[0008] The purpose of this invention is to address the shortcomings of existing technologies by providing an electronic switch with watchdog output detection and diagnostics. The watchdog unit monitors the MCU program's running status, the dual PMOS transistor structure of the switching unit enables reverse current protection and circuit on / off control, the current / voltage detection unit achieves high-precision current / voltage sampling, I2C threshold configuration, and fault detection, and the shutdown logic unit enables intelligent switch control based on received watchdog signals, fault signals, and user control signals. This invention provides multiple functions including watchdog protection, reverse current and reverse connection protection, adjustable protection thresholds, fault detection and identification, high-precision detection, and low-cost, high-reliability operation.
[0009] The objective of this utility model is achieved through the following solution: An electronic switch with watchdog output detection and diagnostics includes a watchdog unit, a shutdown logic unit, a current and voltage detection unit, and a switching unit, wherein... The watchdog unit is used to generate a WDO watchdog level detection signal based on the WDI watchdog level signal output by the MCU, and to convert the WDO watchdog level detection signal to high or low level based on whether the WDI watchdog level signal toggles periodically, so as to avoid malfunction of electronic switches caused by MCU program abnormalities. The current and voltage detection unit is used to collect current and voltage data in real time during circuit operation, and to complete fault monitoring and threshold management. The shutdown logic unit is used to receive the WDO feed level detection signal output by the watchdog unit, the Alert signal generated by the current and voltage detection unit, and the ON / OFF user switch signal output by the MCU, and to perform logic operations and judgments to output the SWITCH switch control signal. The switching unit is used to receive the SWITCH switch control signal output by the shutdown logic unit, and to control the circuit on and off according to the SWITCH switch control signal. The signal output terminal of the watchdog unit is connected to the first signal input terminal of the shutdown logic unit, the signal output terminal of the current and voltage detection unit is connected to the second signal input terminal of the shutdown logic unit, the signal output terminal of the shutdown logic unit is connected to the signal input terminal of the switch unit, and the signal output terminal of the switch unit is connected to the signal input terminal of the current and voltage detection unit.
[0010] Preferably, the watchdog unit includes a first capacitor, a second capacitor, a first diode, a first transistor, a first resistor, a second resistor, and a third resistor, wherein... One end of the first resistor is connected to the power supply, and the other end of the first resistor is connected to the collector of the first transistor. The emitter of the first transistor is grounded. The base of the first transistor is connected to the cathode of the first diode through the second resistor. The cathode of the first diode is grounded through the second capacitor. The anode of the first diode is grounded through the third resistor. One end of the first capacitor is connected to the anode of the first diode, and the other end of the first capacitor is connected to the WDI dog feed level signal input branch.
[0011] Preferably, the shutdown logic unit includes a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a second transistor, a third transistor, and a fourth transistor, wherein... The emitter of the second transistor is connected to the power supply. The collector of the second transistor is connected to one end of the fifth resistor. The base of the second transistor is connected to one end of the fourth resistor. The other end of the fourth resistor is connected to the other end of the first resistor. The other end of the fifth resistor is connected to the collectors of the third transistor and the fourth transistor, respectively. The emitter of the fourth transistor is grounded. The base of the fourth transistor is connected to one end of the seventh resistor. The emitter of the third transistor is grounded. The base of the third transistor is connected to one end of the sixth resistor. The other end of the sixth resistor is connected to the ON / OFF user switch signal input branch.
[0012] Preferably, the current and voltage detection unit includes a chip, a third capacitor, a fourth capacitor, an eighth resistor, a ninth resistor, and a tenth resistor, wherein... The first and second pins of the chip are both grounded. The third pin of the chip is connected to the other end of the seventh resistor. The fourth pin of the chip is connected to the I2C data signal terminal. The fifth pin of the chip is connected to the I2C clock signal terminal. The sixth pin of the chip is connected to the power supply. The seventh pin of the chip is grounded. The eighth pin of the chip is connected to one end of the tenth resistor. The ninth pin of the chip is connected to one end of the ninth resistor. The tenth pin of the chip is connected to one end of the eighth resistor. One end of the third capacitor is connected to one end of the eighth resistor. The other end of the third capacitor is connected to one end of the ninth resistor. One end of the fourth capacitor is connected to one end of the tenth resistor. The other end of the fourth capacitor is grounded.
[0013] Preferably, the switching unit includes a first PMOS transistor, a second PMOS transistor, an eleventh resistor, a Zener diode, a twelfth resistor, a fifth transistor, a sixth transistor, a thirteenth resistor, and a fourteenth resistor, wherein... One end of the eleventh resistor is connected to the other end of the eighth resistor and the gate of the second PMOS transistor. The other end of the eleventh resistor is connected to the other end of the ninth resistor, one end of the Zener diode, and the voltage output terminal. The other end of the Zener diode is grounded. The source of the second PMOS transistor is connected to the source of the first PMOS transistor. The drains of the second PMOS transistor and the first PMOS transistor are both connected to the emitter of the fifth transistor. The gate of the first PMOS transistor is connected to the voltage input terminal and one end of the twelfth resistor. The other end of the twelfth resistor is connected to the emitter of the fifth transistor. The collector of the fifth transistor is grounded through the fourteenth resistor. The base of the fifth transistor is connected to the collector of the sixth transistor through the thirteenth resistor. The emitter of the sixth transistor is grounded. The base of the sixth transistor is connected to the other end of the fifth resistor.
[0014] Preferably, the first PMOS transistor and the second PMOS transistor are AO3401 or IRF9540, which are used to cooperate with the circuit structure to realize the disconnection and reverse flow prevention function and have reverse connection protection characteristics.
[0015] Preferably, the chip is INA226, INA219, or INA220, used to sample high-side current and high-side voltage, and interact with the MCU via I2C to output a fault alert signal, thereby realizing fault detection and safety control.
[0016] The beneficial effects of this utility model include the following: (1) This utility model receives the feed dog level signal (WDI) output by the MCU through the watchdog unit, and combines the capacitor charging and discharging and transistor switching logic to monitor the MCU program running status in real time and output a WDO detection signal. When the MCU fails to flip the WDI level according to the design cycle due to abnormal conditions such as program crash or deadlock, the watchdog unit outputs a high-level WDO signal. This signal is transmitted to the shutdown logic unit, triggers the logic judgment, and outputs a shutdown drive signal to control the switch unit to shut down, thereby preventing the switch from maintaining its original working state or falling into uncertain control logic, which could cause the equipment to malfunction.
[0017] (2) The current and voltage detection unit of this utility model is based on chip U1, which supports I2C interface communication. An external MCU can write custom voltage and current protection thresholds to the chip through the I2C interface. The chip judges the sampled data according to the set thresholds, and can realize flexible adjustment of the protection thresholds.
[0018] (3) The switching unit of this utility model uses dual PMOS transistors (Q2, Q3) as the main switching transistors, which can directly block the reverse current flow path when the circuit is disconnected or the voltage fluctuates, effectively preventing the current from flowing back to the front-end circuit or equipment, and avoiding irreversible damage such as PN junction breakdown and metallization layer melting inside the device.
[0019] (4) The current and voltage detection unit of this utility model uses chip U1 as the core detection device and is paired with high-side current sampling resistor to build a high-precision sampling link. Its measurement accuracy is significantly better than that of existing ordinary detection circuits. It can accurately capture subtle changes in voltage and current, provide reliable data support for judging the operating status of equipment, and effectively make up for the shortcomings of insufficient detection accuracy in existing technologies.
[0020] Meanwhile, the current and voltage detection unit monitors the circuit operating parameters in real time through high-side sampling mode. When the current or voltage exceeds the protection threshold preset by the MCU, the chip U1 will immediately output a low-level Alert fault signal. After the signal is transmitted to the shutdown logic unit, it will trigger the switching unit to quickly shut down to avoid the fault from expanding. On the other hand, the MCU can read the corresponding fault flag, which can realize accurate detection and identification of faults, and further solve the defect of existing technology that cannot effectively identify output faults.
[0021] (5) The watchdog unit, shutdown logic unit, current and voltage detection unit and switching unit of this utility model are all built using commercially available general source devices (capacitors, resistors), ordinary semiconductor devices (transistors, PMOS transistors) and industrial general detection chips (such as INA226). They do not rely on expensive dedicated chips. By combining these components into modules, functions such as watchdog, fault detection and threshold adjustment can be realized, which reduces costs and makes up for the shortcomings of dedicated chips.
[0022] Definitions: MCU: Microcontroller Unit, is a single-chip microcomputer that integrates a central processing unit (CPU), memory (RAM / ROM / Flash), timer / counter, interrupt controller and various peripheral interfaces (such as I2C, UART, GPIO, etc.).
[0023] WDI watchdog input signal: This is a level signal (usually a high / low level pulse or a continuous level) actively output by the MCU to reset the watchdog timer.
[0024] WDO watchdog level detection signal: In this invention, it is a feedback control signal generated by the watchdog unit after detecting the validity of the WDI watchdog level signal output by the host MCU (microcontroller).
[0025] SWITCH control signal: In this invention, it refers to the final execution control signal of the electronic switch. Its core function is to drive the main switch to turn on and off according to the front-end detection signals (watchdog, electrical parameters) and user instructions, so as to realize the safe opening / closing of the electronic switch.
[0026] ON / OFF user switch signal: This is a switch control command signal input by the user through buttons, remote control, host computer, etc., used to trigger the electronic switch to conduct (ON) or turn off (OFF).
[0027] I2C: or Integrated Circuit Bus, is a serial, half-duplex, multi-master multi-slave communication bus developed by Philips. It only requires two signal lines (SDA serial data line and SCL serial clock line) to realize data transmission between multiple devices. Attached Figure Description
[0028] Figure 1 This is a circuit diagram of the watchdog circuit in an embodiment of the present invention; Figure 2 This is a circuit diagram of the logic processing circuit in an embodiment of this utility model; Figure 3 This is a circuit diagram of the current and voltage detection circuit in an embodiment of this utility model; Figure 4 This is a circuit diagram of the switching circuit in an embodiment of the present invention; Figure 5 This is a system block diagram of the present invention. Detailed Implementation
[0029] like Figures 1 to 5 As shown, an electronic switch with watchdog output detection and diagnostics includes a watchdog unit, a shutdown logic unit, a current and voltage detection unit, and a switching unit, wherein... The watchdog unit, also known as the watchdog circuit (see details), Figure 1 This is used to generate a WDO watchdog level detection signal based on the WDI watchdog level signal output by the MCU, and to convert the WDO watchdog level detection signal to high or low level based on whether the WDI watchdog level signal toggles periodically, so as to avoid malfunction of electronic switches caused by MCU program abnormalities. In this embodiment, the watchdog unit includes a first capacitor C1, a second capacitor C2, a first diode D2, a first transistor Q1, a first resistor R1, a second resistor R2, and a third resistor R3, wherein... One end of the first resistor R1 is connected to the power supply, and the other end of the first resistor R1 is connected to the collector of the first transistor Q1. The emitter of the first transistor Q1 is grounded. The base of the first transistor Q1 is connected to the cathode of the first diode D2 through the second resistor R2. The cathode of the first diode D2 is grounded through the second capacitor C2. The anode of the first diode D2 is grounded through the third resistor R3. One end of the first capacitor C1 is connected to the anode of the first diode D2, and the other end of the first capacitor C1 is connected to the WDI dog feed level signal input branch.
[0030] It is worth noting that the core function of the watchdog unit is to monitor the operating status of the MCU, and its signal interaction and working principle are as follows: (1) Signal definition: WDI is the WDI watchdog level signal output by the MCU, and WDO is the WDO watchdog level detection signal fed back by the watchdog unit; (2) Working mechanism: The MCU periodically toggles the level of the WDI watchdog signal in the main program loop through software. This alternating level drives the first capacitor C1 to charge and discharge. When the first capacitor C1 is charging, the positive potential of the first diode D2 increases, which in turn charges the second capacitor C2. When the second capacitor C2 is charged to the preset voltage threshold, the first transistor Q1 is turned on, causing the WDI watchdog detection signal to switch from high level to low level, indicating that the MCU is operating normally. (3) Abnormal handling: If the MCU program is abnormal, the level of the WDI feed dog level signal stops toggling and remains at a high or low level, then the first capacitor C1 stops charging and discharging; after a preset time, the first capacitor C1 is discharged, the first transistor Q1 is turned off, the WDI feed dog level detection signal returns to a high level, and subsequent protection actions are triggered. (4) Parameter adjustability: The charging and discharging time of the circuit, i.e. the watchdog timeout threshold, can be flexibly configured by adjusting the parameters of the first capacitor C1, the second capacitor C2 and related resistors.
[0031] The current and voltage detection unit, also known as the current and voltage detection circuit (see details), Figure 3 This is used to collect current and voltage data during circuit operation in real time, and to complete fault monitoring and threshold management. In this embodiment, the current and voltage detection unit includes a chip U1, a third capacitor C3, a fourth capacitor C4, an eighth resistor R10, a ninth resistor R11, and a tenth resistor R14, wherein... The first pin A0 and the second pin A1 of chip U1 are both grounded. The third pin Alert of chip U1 is connected to the other end of the seventh resistor R13. The fourth pin SDA of chip U1 is connected to the I2C data signal terminal. The fifth pin SCL of chip U1 is connected to the I2C clock signal terminal. The sixth pin VS+ of chip U1 is connected to the power supply. The seventh pin GND of chip U1 is grounded. The eighth pin VBUS of chip U1 is connected to one end of the tenth resistor R14. The ninth pin VIN- of chip U1 is connected to one end of the ninth resistor R11. The tenth pin VIN+ of chip U1 is connected to one end of the eighth resistor R10. One end of the third capacitor C3 is connected to one end of the eighth resistor R10. The other end of the third capacitor C3 is connected to one end of the ninth resistor R11. One end of the fourth capacitor C4 is connected to one end of the tenth resistor R14. The other end of the fourth capacitor C4 is grounded.
[0032] In this embodiment, the chip is INA226, INA219, or INA220, used to sample high-side current and high-side voltage, and interact with the MCU via I2C to output a fault alert signal, thereby realizing fault detection and safety control.
[0033] It is worth noting that in this embodiment, the current and voltage detection unit uses the INA226 dedicated monitoring chip to achieve high-precision detection and threshold management of electrical parameters. The specific design is as follows: (1) Chip characteristics: INA226 is an ultra-precision monitoring chip that supports a voltage range of 36V and a resolution of 16 bits. It has current, voltage, power detection and alarm output functions, and the communication interface is I2C. (2) Sampling method: A combination of high-side current sampling and direct voltage sampling is adopted to ensure the accuracy and safety of electrical parameter detection; (3) Interaction mechanism: The MCU interacts with the INA226 through the I2C interface. On the one hand, it reads real-time current and voltage data, and on the other hand, it can set the alarm thresholds for current and voltage through the interface. (4) Address configuration: By setting the level of the first pin A0 and the second pin A1 of the chip, the I2C communication address of INA226 is configured to 0x80 to ensure the uniqueness of the communication link.
[0034] The shutdown logic unit, also known as the shutdown logic processing circuit (see details), is a shutdown logic unit. Figure 2 It is used to receive the WDO feed level detection signal output by the watchdog unit, the Alert signal generated by the current and voltage detection unit, and the ON / OFF user switch signal output by the MCU, and to perform logic operations and judgments to output the SWITCH switch control signal; In this embodiment, the shutdown logic unit includes a fourth resistor R8, a fifth resistor R9, a sixth resistor R12, a seventh resistor R13, a second transistor Q6, a third transistor Q7, and a fourth transistor Q8, wherein... The emitter of the second transistor Q6 is connected to the power supply. The collector of the second transistor Q6 is connected to one end of the fifth resistor R9. The base of the second transistor Q6 is connected to one end of the fourth resistor R8. The other end of the fourth resistor R8 is connected to the other end of the first resistor R1. The other end of the fifth resistor R9 is connected to the collectors of the third transistor Q7 and the fourth transistor Q8, respectively. The emitter of the fourth transistor Q8 is grounded. The base of the fourth transistor Q8 is connected to one end of the seventh resistor R13. The emitter of the third transistor Q7 is grounded. The base of the third transistor Q7 is connected to one end of the sixth resistor R12. The other end of the sixth resistor R12 is connected to the ON / OFF user switch signal input branch.
[0035] It is worth noting that in this embodiment, the shutdown logic unit is the core control unit of the switch driver, which outputs the switch control signal through multi-signal logic judgment, as follows: (1) Input signals: include three key signals, namely the WDO feed level detection signal output by the watchdog unit, the Alert signal output by the current and voltage detection unit, and the ON / OFF user switch signal output by the MCU; (2) Output signal: SWITCH control signal, which is the final drive signal of the switching unit; (3) Logic rule: The level state of the SWITCH switch control signal is determined by the ON / OFF user switch signal only when the WDO watchdog level detection signal is low (MCU is running normally) and the Alert signal is high (no electrical parameter fault). Specifically, when the ON / OFF user switch signal is high, the SWITCH switch control signal outputs a low level; when the ON / OFF user switch signal is low, the SWITCH switch control signal outputs a high level; if the WDO watchdog level detection signal is high (MCU abnormal) or the Alert signal is low (fault exists), the control logic of the ON / OFF user switch signal is not executed to ensure that the switch is in a safe state.
[0036] The switching unit, also known as the switching circuit (see details), Figure 4 (), used to receive the SWITCH switch control signal output by the SWITCH switch control unit, and to control the circuit on and off according to the SWITCH switch control signal; In this embodiment, the switching unit includes a first PMOS transistor Q2, a second PMOS transistor Q3, an eleventh resistor R4, a Zener diode D1, a twelfth resistor R5, a fifth transistor Q4, a sixth transistor Q5, a thirteenth resistor R6, and a fourteenth resistor R7, wherein... One end of the eleventh resistor R4 is connected to the other end of the eighth resistor R10 and the gate of the second PMOS transistor Q3. The other end of the eleventh resistor R4 is connected to the other end of the ninth resistor R11, one end of the Zener diode D1, and the voltage output terminal. The other end of the Zener diode D1 is grounded. The source of the second PMOS transistor Q3 is connected to the source of the first PMOS transistor Q2. The drains of the second PMOS transistor Q3 and the drains of the first PMOS transistor Q2 are both connected to the emitter of the fifth transistor Q4. The gate of the first PMOS transistor Q2 is connected to the voltage input terminal and one end of the twelfth resistor R5. The other end of the twelfth resistor R5 is connected to the emitter of the fifth transistor Q4. The collector of the fifth transistor Q4 is grounded through the fourteenth resistor R7. The base of the fifth transistor Q4 is connected to the collector of the sixth transistor Q5 through the thirteenth resistor R6. The emitter of the sixth transistor Q5 is grounded. The base of the sixth transistor Q5 is connected to the other end of the fifth resistor R9.
[0037] The first PMOS transistor Q2 and the second PMOS transistor Q3 are AO3401 or IRF9540, which are used to cooperate with the circuit structure to realize the disconnection and reverse flow protection function and have reverse connection protection characteristics.
[0038] It is worth noting that in this embodiment, the switching unit is an execution unit of an electronic switch, and a PMOS transistor combination design is used to realize the on-off control of the main circuit and the backflow prevention protection, as detailed below: (1) Core components: The first PMOS transistor Q2 and the second PMOS transistor Q3 are dual PMOS main switching transistors, which work together to improve the output current capability of the circuit; the eleventh resistor R4 is a high-side current sampling resistor, which is used to collect the main circuit current signal and feed it back to the current and voltage detection unit; the fifth transistor Q4 and the sixth transistor Q5 are complementary drive pairs, which are used to enhance the driving capability of the switching signal. (2) Turn-on logic: When the SWITCH switch control signal is high, the sixth transistor Q5 turns on, which in turn drives the fifth transistor Q4 to turn on; after the fifth transistor Q4 turns on, it pulls down the gate potential of the first PMOS transistor Q2 and the second PMOS transistor Q3, so that the main switch transistors of the first PMOS transistor Q2 and the second PMOS transistor Q3 are turned on, and the main circuit is connected; (3) Shutdown logic: When the SWITCH switch control signal is low, the sixth transistor Q5 is turned off, and the fifth transistor Q4 is turned off accordingly; the gate potentials of the first PMOS transistor Q2 and the second PMOS transistor Q3 are restored to the input voltage VIN, the main switch is turned off, and the main circuit is disconnected; at the same time, the dual PMOS transistor topology of the first PMOS transistor Q2 and the second PMOS transistor Q3 can realize the anti-backflow function in the shutdown state, and avoid the reverse current from damaging the front-end circuit.
[0039] like Figure 5 As shown, the signal output terminal of the watchdog unit (outputs the WDO feed level detection signal) is connected to the first signal input terminal of the shutdown logic unit (receives the WDO signal), the signal output terminal of the current and voltage detection unit (outputs the Alert fault alarm signal) is connected to the second signal input terminal of the shutdown logic unit (receives the Alert signal), the signal output terminal of the shutdown logic unit is connected to the signal input terminal of the switch unit, and the signal output terminal of the switch unit is connected to the signal input terminal of the current and voltage detection unit.
[0040] In summary, this utility model integrates a watchdog unit, a shutdown logic unit, a current and voltage detection unit, and a switching unit into a collaborative architecture. It uses real-time MCU status monitoring, dual PMOS transistor reverse current protection topology, I2C dynamic threshold configuration, and multi-channel signal logic fusion judgment as core technologies. Combined with high-precision sampling chips and modular combinations of general-purpose components, it ultimately achieves multiple functions of electronic switches, including watchdog failure protection, reverse current protection, software-adjustable protection thresholds, accurate fault detection and identification, and high-precision acquisition of electrical parameters.
[0041] The above description is only a preferred embodiment of the present utility model and is not intended to limit the present utility model. Any modifications made to the present utility model by those skilled in the art without departing from the spirit of the present utility model shall fall within the protection scope of the present utility model.
Claims
1. An electronic switch with watchdog output detection and diagnostics, characterized in that, It includes a watchdog unit, a shutdown logic unit, a current and voltage detection unit, and a switching unit, among which, The watchdog unit is used to generate a WDO watchdog level detection signal based on the WDI watchdog level signal output by the MCU, and to convert the WDO watchdog level detection signal to high or low level based on whether the WDI watchdog level signal toggles periodically, so as to avoid malfunction of electronic switches caused by MCU program abnormalities. The current and voltage detection unit is used to collect current and voltage data in real time during circuit operation, and to complete fault monitoring and threshold management. The shutdown logic unit is used to receive the WDO feed level detection signal output by the watchdog unit, the Alert signal generated by the current and voltage detection unit, and the ON / OFF user switch signal output by the MCU, and to perform logic operations and judgments to output the SWITCH switch control signal. The switching unit is used to receive the SWITCH switch control signal output by the shutdown logic unit, and to control the circuit on and off according to the SWITCH switch control signal. The signal output terminal of the watchdog unit is connected to the first signal input terminal of the shutdown logic unit, the signal output terminal of the current and voltage detection unit is connected to the second signal input terminal of the shutdown logic unit, the signal output terminal of the shutdown logic unit is connected to the signal input terminal of the switch unit, and the signal output terminal of the switch unit is connected to the signal input terminal of the current and voltage detection unit.
2. The electronic switch according to claim 1, characterized in that: The watchdog unit includes a first capacitor (C1), a second capacitor (C2), a first diode (D2), a first transistor (Q1), a first resistor (R1), a second resistor (R2), and a third resistor (R3), wherein... One end of the first resistor (R1) is connected to the power supply, and the other end of the first resistor (R1) is connected to the collector of the first transistor (Q1). The emitter of the first transistor (Q1) is grounded. The base of the first transistor (Q1) is connected to the cathode of the first diode (D2) through the second resistor (R2). The cathode of the first diode (D2) is grounded through the second capacitor (C2). The anode of the first diode (D2) is grounded through the third resistor (R3). One end of the first capacitor (C1) is connected to the anode of the first diode (D2), and the other end of the first capacitor (C1) is connected to the WDI dog feed level signal input branch.
3. The electronic switch according to claim 2, characterized in that: The shutdown logic unit includes a fourth resistor (R8), a fifth resistor (R9), a sixth resistor (R12), a seventh resistor (R13), a second transistor (Q6), a third transistor (Q7), and a fourth transistor (Q8), wherein... The emitter of the second transistor (Q6) is connected to the power supply. The collector of the second transistor (Q6) is connected to one end of the fifth resistor (R9). The base of the second transistor (Q6) is connected to one end of the fourth resistor (R8). The other end of the fourth resistor (R8) is connected to the other end of the first resistor (R1). The other end of the fifth resistor (R9) is connected to the collectors of the third transistor (Q7) and the fourth transistor (Q8), respectively. The emitter of the fourth transistor (Q8) is grounded. The base of the fourth transistor (Q8) is connected to one end of the seventh resistor (R13). The emitter of the third transistor (Q7) is grounded. The base of the third transistor (Q7) is connected to one end of the sixth resistor (R12). The other end of the sixth resistor (R12) is connected to the ON / OFF user switch signal input branch.
4. The electronic switch according to claim 3, characterized in that: The current and voltage detection unit includes a chip (U1), a third capacitor (C3), a fourth capacitor (C4), an eighth resistor (R10), a ninth resistor (R11), and a tenth resistor (R14), wherein... The first pin (A0) and second pin (A1) of the chip (U1) are both grounded. The third pin (Alert) of the chip (U1) is connected to the other end of the seventh resistor (R13). The fourth pin (SDA) of the chip (U1) is connected to the I2C data signal terminal. The fifth pin (SCL) of the chip (U1) is connected to the I2C clock signal terminal. The sixth pin (VS+) of the chip (U1) is connected to the power supply. The seventh pin (GND) of the chip (U1) is grounded. The eighth pin (VBUS) of the chip (U1) is connected to the tenth pin. One end of resistor (R14) is connected, the ninth pin (VIN-) of chip (U1) is connected to one end of the ninth resistor (R11), the tenth pin (VIN+) of chip (U1) is connected to one end of the eighth resistor (R10), one end of the third capacitor (C3) is connected to one end of the eighth resistor (R10), the other end of the third capacitor (C3) is connected to one end of the ninth resistor (R11), one end of the fourth capacitor (C4) is connected to one end of the tenth resistor (R14), and the other end of the fourth capacitor (C4) is grounded.
5. The electronic switch according to claim 4, characterized in that: The switching unit includes a first PMOS transistor (Q2), a second PMOS transistor (Q3), an eleventh resistor (R4), a Zener diode (D1), a twelfth resistor (R5), a fifth transistor (Q4), a sixth transistor (Q5), a thirteenth resistor (R6), and a fourteenth resistor (R7). One end of the eleventh resistor (R4) is connected to the other end of the eighth resistor (R10) and the gate of the second PMOS transistor (Q3). The other end of the eleventh resistor (R4) is connected to the other end of the ninth resistor (R11), one end of the Zener diode (D1), and the voltage output terminal. The other end of the Zener diode (D1) is grounded. The source of the second PMOS transistor (Q3) is connected to the source of the first PMOS transistor (Q2). The drains of the second PMOS transistor (Q3) and the drains of the first PMOS transistor (Q2) are both connected to the fifth transistor (Q4). The emitter is connected, and the gate of the first PMOS transistor (Q2) is connected to the voltage input terminal and one end of the twelfth resistor (R5). The other end of the twelfth resistor (R5) is connected to the emitter of the fifth transistor (Q4). The collector of the fifth transistor (Q4) is grounded through the fourteenth resistor (R7). The base of the fifth transistor (Q4) is connected to the collector of the sixth transistor (Q5) through the thirteenth resistor (R6). The emitter of the sixth transistor (Q5) is grounded, and the base of the sixth transistor (Q5) is connected to the other end of the fifth resistor (R9).
6. The electronic switch according to claim 5, characterized in that: The first PMOS transistor (Q2) and the second PMOS transistor (Q3) are both AO3401 or IRF9540, which are used to cooperate with the circuit structure to realize the disconnection and reverse flow protection function and have reverse connection protection characteristics.
7. The electronic switch according to claim 4, characterized in that: The chip (U1) is INA226, INA219, or INA220, used to sample high-side current and high-side voltage, and interact with the MCU via I2C to output a fault alert signal, thereby realizing fault detection and safety control.
Citation Information
Patent Citations
Watchdog device and monitoring method
CN120295825A
Power switch circuit with watchdog function
CN212649434U
