A watchdog reset circuit with status indication
The master-slave monitoring architecture, consisting of monitoring chip U1 and microcontroller U2, solves the problems of lack of status indication and numerous components in traditional watchdog reset circuits, realizing status indication and hardware reset, and reducing circuit complexity and cost.
Patent Information
- Application Number
- CN202522643582.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-12
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2035-12-12
AI Technical Summary
Traditional watchdog reset circuits lack status indications, making troubleshooting difficult. They also require a large number of components, occupy a large PCB area, and are costly.
A master-slave monitoring architecture is constructed using monitoring chip U1 and microcontroller U2. Status indication is achieved through hardware watchdog mechanism and voltage monitoring, and the number of circuit components is reduced by using simple peripheral circuits, omitting components such as timers, comparators and discrete MOSFETs.
It implements status indication function, reduces the number of circuit components, reduces PCB board area and cost, and provides status indicator flashing with a power-on reset pulse width of 200ms, supports dynamic dog feed signal frequency adjustment and hardware reset.
Smart Images

Figure CN224985804U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of watchdog circuit technology, specifically a watchdog reset circuit with status indication. Background Technology
[0002] In applications such as power monitoring and program runaway prevention in embedded systems, watchdog reset circuits are often required. Traditional watchdog circuits often lack an indication of whether they are in a reset state, making troubleshooting difficult. Furthermore, existing watchdog reset circuits typically require timers, comparators, or discrete MOSFETs, along with an external RC delay network. This results in a large number of components, requiring significant PCB space and increasing costs. Therefore, a watchdog reset circuit with fewer components is needed. Utility Model Content
[0003] To address the shortcomings of existing technologies, the purpose of this invention is to provide a watchdog reset circuit with status indication, which can solve the problems described in the background art.
[0004] The technical solution to achieve the purpose of this utility model is as follows: a watchdog reset circuit with status indication, including a monitoring chip U1, a status indicator LED1, and a microcontroller U2. The reset output pin of the monitoring chip U1 is connected in series with the status indicator LED1 through a resistor R1, and then grounded after being connected in series with the status indicator LED1. The reset output pin is also connected to the pin output mode pin of the microcontroller U2. The manual reset input pin of the monitoring chip U1 is connected in series with a physical reset button S1, and then in series with a capacitor C1 before being grounded. Capacitors C2 and C3 are connected in parallel between the positive power supply pin and the ground pin of the monitoring chip U1, and a positive voltage and ground are connected to the two ends of the parallel connection, respectively. The watchdog input pin of the monitoring chip U1 is connected to the watchdog signal output pin of the microcontroller U2. After power-on, when the applied voltage exceeds the internal reset voltage threshold of monitoring chip U1, the reset output pin of monitoring chip U1 outputs a high-level signal, driving the status indicator LED1 to light up. When microcontroller U2 receives the high-level signal through its pin output mode pin, microcontroller U2 is in normal working condition and outputs a watchdog signal to monitoring chip U1 through its watchdog signal output pin. When the voltage applied is lower than the reset voltage threshold inside the monitoring chip U1, the reset output pin of the monitoring chip U1 outputs a low-level signal, which is insufficient to drive the status indicator LED1 to light up. The status indicator LED1 is in the off state. When the microcontroller U2 receives the low-level signal through the pin output mode pin, the microcontroller U2 receives the low-level signal representing the reset signal and performs a reset.
[0005] Furthermore, in response to the manual pressing of the physical reset button S1, the monitoring chip U1 receives a voltage signal through the manual reset input pin. This voltage signal is the manual reset voltage signal. When the monitoring chip U1 receives the manual reset voltage signal, the reset output pin of the monitoring chip U1 outputs a low-level signal, causing the microcontroller U2 to reset.
[0006] Furthermore, the monitoring chip U1 is model SGM823, or any one of MAX823, CAT823, or SP823.
[0007] The beneficial effects of this invention are as follows: This invention requires only two chips (U1, U2) and some simple peripheral circuitry to achieve watchdog reset. It eliminates the need for timers, comparators, discrete MOSFETs, and external RC delay network circuits, significantly reducing the number of components and thus the required PCB area, thereby lowering costs. Furthermore, this solution achieves real-time response; a power-on reset pulse width of 200ms is sufficient to synchronously flash the status indicator LED1, which is easily visible to the human eye. The microcontroller U2 can dynamically adjust the frequency of the watchdog signal (e.g., 0.1s-1.5s) according to the task load. In debug mode, disabling relevant pins prevents breakpoint triggering. Hardware reset can be achieved via the physical reset button S1, eliminating the need for software and preventing irrecoverable program crashes. Attached Figure Description
[0008] Figure 1 This is a circuit diagram of the present invention. Detailed Implementation
[0009] The present invention will be further described below with reference to the accompanying drawings and specific embodiments: like Figure 1 As shown, a watchdog reset circuit with status indication includes a monitoring chip U1, a status indicator LED1, and a microcontroller U2. The reset output pin of the monitoring chip U1 (i.e., the nRESET pin in the figure) is connected in series with the status indicator LED1 through a resistor R1, and then grounded after being connected in series with the status indicator LED1. The reset output pin is also connected to the pin output mode pin of the microcontroller U2 (i.e., the CHIP_PU pin in the figure). The manual reset input pin of the monitoring chip U1 is connected in series with the physical reset button S1, and then in series with a capacitor C1 before being grounded. Capacitors C2 and C3 are connected in parallel between the positive power supply pin and the ground pin of the monitoring chip U1, and a positive voltage (3.3V in this embodiment) and ground are connected to the two ends of the parallel connection, respectively. The watchdog input pin of the monitoring chip U1 is connected to the watchdog signal output pin of the microcontroller U2 (i.e., the GPIO25 pin in the figure).
[0010] After the monitoring chip U1 is powered on (i.e., when the positive voltage is applied), if the applied voltage exceeds the internal reset voltage threshold of the monitoring chip U1, the reset output pin of the monitoring chip U1 outputs a high-level signal and drives the status indicator LED1 to light up. When the reset output pin of the monitoring chip U1 outputs a high-level signal, the microcontroller U2 receives the high-level signal through the pin output mode pin, and the microcontroller U2 is in a state of reset release and starts running. When the microcontroller U2 starts running normally and enters the normal working state, it periodically outputs a watchdog signal to the monitoring chip U1 through the watchdog signal output pin. The dog feed signal occurs when the voltage applied is lower than the internal reset voltage threshold of the monitoring chip U1. The reset output pin of the monitoring chip U1 outputs a low-level signal, which is insufficient to illuminate the status indicator LED1, leaving LED1 off. When the reset output pin of the monitoring chip U1 outputs a low-level signal, the microcontroller U2 receives this signal through its pin output mode pin. The microcontroller U2 then receives the low-level signal representing the reset signal and performs a reset. Similarly, if the microcontroller U2 crashes, it stops outputting the dog feed signal and is also forcibly reset.
[0011] When the physical reset button S1 is manually pressed, the monitoring chip U1 receives a voltage signal through the manual reset input pin. This voltage signal is the manual reset voltage signal. When the monitoring chip U1 receives this manual reset voltage signal, its reset output pin outputs a low-level signal, causing the microcontroller U2 to reset. This allows the monitoring chip U1 to assist the microcontroller U2 in resetting and restarting by manually pressing the physical reset button S1.
[0012] Understandably, manually restarting the microcontroller via the physical reset button S1 is helpful in practical applications. For example, if the display screen suddenly freezes or the touch function fails during product use, the microcontroller U2 can be restarted by pressing the physical reset button S1 without turning off the device. This will cause the display screen connected to the microcontroller U2 to restart, restore initialization, avoid freezing, and restore the touch function.
[0013] The monitoring chip U1 and the microcontroller U2 form a master-slave monitoring architecture, achieving unmasked reset control through a hardware watchdog mechanism and voltage monitoring. The microcontroller U2 needs to periodically send a heartbeat signal to the watchdog input pin (i.e., the WDI pin) of the monitoring chip U1 to prove the integrity of the program flow. Once the monitoring chip U1 detects a watchdog timeout, it will immediately perform a forced reset.
[0014] For example, the monitoring chip U1 is model SGM823, or a pin-compatible monitoring chip such as MAX823, CAT823, SP823, etc.
[0015] The microcontroller U2 is a domestically produced ESP32 series chip, such as ESP32-D0WD-V3, ESP32-D0WDQ6-V3, ESP32-D0WD, ESP32-D0WDQ6, ESP32-D2WD, ESP32-S0WD, ESP32-U4WDH, or a domestically produced ME32F031 series chip from Minsilicon, such as ME32F031K4T6 (LQFP32), ME32F031C4T6 (LQFP48), ME32F031K6T6 (LQFP32), ME32F031C6T6 (LQFP48), ME32F031C8T6 (LQFP48), ME32F031R8T6 (LQFP64), ME32F031C8U6 (QFN48), ME32F031CBT6. (LQFP48), ME32F031RBT6 (LQFP64), ME32F031CCT6 (LQFP48), ME32F031RCT6 (LQFP64), etc. For the U2 microcontroller, any microcontroller with a reset pin can be used.
[0016] The voltage signal output by the reset output pin of monitoring chip U1 has a pulse width of 200ms, requiring no external delay capacitor. Automatic reset occurs upon power-on delay. At the moment of power-on, the positive power supply pin of monitoring chip U1 starts at 0V. Once the voltage stabilizes, the internal 200ms timer of monitoring chip U1 starts. After 200ms, the reset output pin of monitoring chip U1 goes high, illuminating the status indicator LED1. If the voltage connected to monitoring chip U1 is abnormal and falls below a certain threshold (e.g., 2.63V), the reset output pin of monitoring chip U1 goes low, turning off status indicator LED1 and preventing the microcontroller from malfunctioning under low voltage conditions.
[0017] When the watchdog input pin of the monitoring chip U1 does not receive a watchdog signal within a preset time (e.g., 1.6 seconds), the reset output pin of the monitoring chip U1 will force a 200ms low level to force a restart of the microcontroller.
[0018] This invention requires only two chips (U1, U2) and some simple peripheral circuitry to achieve watchdog reset. It eliminates the need for timers, comparators, discrete MOSFETs, and external RC delay network circuitry, significantly reducing the number of components and thus the required PCB area, thereby lowering costs. Furthermore, this solution achieves real-time response; a power-on reset pulse width of 200ms is sufficient to synchronously flash the status indicator LED1, which is easily visible to the human eye. The microcontroller U2 can dynamically adjust the frequency of the watchdog signal (e.g., 0.1s-1.5s) according to the workload. In debug mode, disabling relevant pins prevents breakpoint triggering. Hardware reset can be achieved via the physical reset button S1, eliminating the need for software and preventing irrecoverable program crashes.
[0019] The embodiments disclosed in this specification are merely illustrative of one aspect of the features of this utility model. The protection scope of this utility model is not limited to this embodiment, and any other functionally equivalent embodiments fall within the protection scope of this utility model. Those skilled in the art can make various other corresponding changes and modifications based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this utility model.
Claims
1. A watchdog reset circuit with status indication, characterized by, The system includes a monitoring chip U1, a status indicator LED1, and a microcontroller U2. The reset output pin of the monitoring chip U1 is connected in series with the status indicator LED1 via resistor R1, and then grounded after being connected in series with the status indicator LED1. The reset output pin is also connected to the pin output mode pin of the microcontroller U2. The manual reset input pin of the monitoring chip U1 is connected in series with the physical reset button S1, then in series with capacitor C1, and finally grounded. Capacitors C2 and C3 are connected in parallel between the positive power input pin and the ground pin of the monitoring chip U1, with a positive voltage and ground connected to their respective ends. The watchdog input pin of the monitoring chip U1 is connected to the watchdog signal output pin of the microcontroller U2. After power-on, when the applied voltage exceeds the internal reset voltage threshold of monitoring chip U1, the reset output pin of monitoring chip U1 outputs a high-level signal, driving the status indicator LED1 to light up. When microcontroller U2 receives the high-level signal through its pin output mode pin, microcontroller U2 is in normal working condition and outputs a watchdog signal to monitoring chip U1 through its watchdog signal output pin. When the voltage applied is lower than the reset voltage threshold inside the monitoring chip U1, the reset output pin of the monitoring chip U1 outputs a low-level signal, which is insufficient to drive the status indicator LED1 to light up. The status indicator LED1 is in the off state. When the microcontroller U2 receives the low-level signal through the pin output mode pin, the microcontroller U2 receives the low-level signal representing the reset signal and performs a reset.
2. The watchdog reset circuit with status indication according to claim 1, characterized in that, Upon manual pressing of the physical reset button S1, the monitoring chip U1 receives a voltage signal through the manual reset input pin. This voltage signal is the manual reset voltage signal. When the monitoring chip U1 receives the manual reset voltage signal, the reset output pin of the monitoring chip U1 outputs a low-level signal, causing the microcontroller U2 to reset.
3. The watchdog reset circuit with status indication according to claim 1 or 2, characterized in that, The monitoring chip U1 is model SGM823, or any one of MAX823, CAT823, or SP823.
