Watchdog hardware circuit
The integrated watchdog hardware circuit addresses the cumbersome disconnection issue of shorting caps by providing continuous watchdog signal input, enhancing operational efficiency and reducing maintenance time and costs.
Patent Information
- Application Number
- CN202422150456.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2034-09-03
AI Technical Summary
The existing watchdog hardware circuits need to be unplugged first when upgrading the program, which leads to cumbersome and time-consuming operations and long-term impacts on-site operation and maintenance efficiency.
A watchdog hardware circuit is designed, including a watchdog control circuit and a dog feeding signal control circuit. By canceling the short-cap connection method, U2, R1, R2, R3, C1, C2, LED1 is used to form a watchdog control circuit, and U1 and R4 are formed to form a dog feeding signal control circuit, ensuring that the dog feeding signal can be provided during the normal operation and upgrade of the program, realizing uninterrupted upgrade of the hardware watchdog.
It simplifies program upgrade operations, improves the work efficiency of on-site operation and maintenance, reduces labor costs, and ensures that the watchdog chip always has signal input during program upgrade, avoiding cumbersome operations in traditional ways.
Smart Images

Figure CN223108354U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of watchdog circuits, and particularly relates to a watchdog hardware circuit. Background Technique
[0002] In an actual MCU application system, due to being often interfered by some external factors, the program may run away and enter an infinite loop, resulting in the entire system getting stuck and not automatically restoring to a controllable working state. Therefore, for the sake of the safety of MCU operation, a special reset monitoring circuit, WatchDog, commonly known as a watchdog, is introduced. The role of the watchdog circuit is that once a failure occurs in the MCU operation, it forcibly performs a hardware reset on the MCU to make the entire system return to a controllable state again.
[0003] Under normal circumstances, the program running will generate a "feeding dog" signal and will not cause the reset of the MCU. However, during the program burning and downloading process, since the MCU does not run the program normally and cannot output a signal to the WDI terminal of the watchdog chip, the WDO terminal of the watchdog chip will continuously output a low level to the MR terminal. After the MR terminal receives the low level, the RESET terminal of the watchdog chip will continuously give a reset signal to the MCU, interrupting the normal program download and making the system unable to update the program.
[0004] As Figure 1 shown, it is a common hardware watchdog implementation reset method involved in the prior art. Figure 1 At P1 in [[ ]], it needs to be short-circuited in the form of a shorting cap. However, when upgrading the program, the shorting cap needs to be removed first, otherwise the upgrade operation cannot be carried out. This solution is very unintelligent, with cumbersome operations, not easy for on-site maintenance personnel to use, and time-consuming and costly. Content of the Utility Model
[0005] In view of the above problems, the present application provides a watchdog hardware circuit to solve the problems that the existing watchdog hardware circuit is cumbersome in operation and time-consuming due to the need to remove the shorting cap first when implementing reset.
[0006] To achieve the above object, the utility model provides a watchdog hardware circuit, including:
[0007] Watchdog control circuit, including a first chip, a first resistor, a second resistor, a third resistor, a first capacitor, a second capacitor, a first indicator light and a first power supply module. The first chip includes a first pin, a second pin, a third pin, a fourth pin, a fifth pin, a sixth pin, a seventh pin and an eighth pin. The first power supply module includes a first power supply terminal, a second power supply terminal and a third power supply terminal. One end of the first resistor is connected to the first pin, and the other end of the first resistor is connected to the eighth pin. One end of the second resistor is connected to the first indicator light, and the other end is connected to the first power supply terminal. The first indicator light is also connected to the sixth pin. The third pin and the fourth pin are grounded. The first capacitor includes a first electrode and a second electrode. The first electrode is connected to the second power supply terminal, and the second electrode is grounded. The second pin is connected between the first electrode and the second power supply terminal. The second capacitor includes a third electrode and a fourth electrode. One end of the third resistor is connected to the third electrode, and the other end is connected to the third power supply terminal. The fourth electrode is grounded. The seventh pin is connected between the third resistor and the third electrode;
[0008] Dog feeding signal control circuit, including a second chip, a fourth resistor and a second power supply module. The second chip includes a first input pin, a second input pin, a ground pin, an output pin and a power supply pin. The power supply pin is connected to the second power supply module. The ground pin is grounded. One end of the fourth resistor is grounded, and the other end of the fourth resistor is connected to the first input pin. The output pin of the second chip is connected to the sixth pin of the first chip to output a dog feeding signal to the sixth pin of the first chip.
[0009] Further, the watchdog hardware circuit further includes:
[0010] MCU processor, connected to the first input pin.
[0011] Further, the watchdog hardware circuit further includes:
[0012] Emulation programmer, connected to the second input pin of the second chip.
[0013] Further, the emulation programmer is an ST-LINK emulation programmer.
[0014] Further, the first indicator light is an LED light.
[0015] Further, the sixth pin is the watchdog input pin.
[0016] Further, the seventh pin is the reset control pin.
[0017] Further, the second power supply module includes a fourth power supply terminal, and the power supply pin is connected to the fourth power supply terminal.
[0018] Further, the output voltage of the fourth power supply terminal is 3.3V.
[0019] Further, the output voltages of the first power supply terminal, the second power supply terminal, and the third power supply terminal are all 3.3V.
[0020] Different from the prior art, the watchdog hardware circuit provided by the above technical solution includes a watchdog control circuit and a dog-feeding signal control circuit. The watchdog control circuit includes a first chip, a first resistor, a second resistor, a third resistor, a first capacitor, a second capacitor, a first indicator light, and a first power supply module. The dog-feeding signal control circuit includes a second chip, a fourth resistor, and a second power supply module. The second chip includes a first input pin, a second input pin, a ground pin, an output pin, and a power supply pin. The sixth pin of the first chip is connected to the output pin of the second chip, and the output pin of the second chip is used to output a dog-feeding signal. When the program runs normally, the first input pin provides a dog-feeding signal to the output pin of the second chip in real time. When the system needs to upgrade the program, the second input pin provides a dog-feeding signal to the output pin of the second chip, thereby realizing the function of uninterruptedly upgrading the hardware watchdog.
[0021] The relevant records in the above utility model content are only an overview of the technical solution of this application. In order to enable those of ordinary skill in the art to more clearly understand the technical solution of this application, and then to implement it according to the content recorded in the description and the drawings, and in order to make the above objects, other objects, features, and advantages of this application more easily understood, the following is described in conjunction with the specific implementation manners and drawings of this application. Brief Description of the Drawings
[0022] The drawings are only used to illustrate the principles, implementation methods, applications, features, and effects of the specific implementation manners and other related contents of this application, and should not be considered as a limitation to this application.
[0023] In the drawings of the description:
[0024] Figure 1 is a schematic structural diagram of a watchdog hardware circuit related to the prior art;
[0025] Figure 2 is a schematic module diagram of a watchdog hardware circuit according to an embodiment of this application;
[0026] Figure 3 is a schematic circuit connection diagram of a watchdog hardware circuit according to an embodiment of this application;
[0027] The reference numerals involved in the above drawings are explained as follows:
[0028] 10. Watchdog hardware circuit;
[0029] 101. Watchdog control circuit;
[0030] 102. Dog feeding signal control circuit. Detailed implementation manners
[0031] To describe in detail the possible application scenarios, technical principles, specific implementable solutions, achievable purposes and effects of this application, etc., the following is described in detail with reference to the specific examples listed and in conjunction with the attached drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of this application, so they are only examples and cannot be used to limit the protection scope of this application.
[0032] Referring to "embodiment" in this document means that the specific features, structures or characteristics described in connection with the embodiment may be included in at least one embodiment of this application. The term "embodiment" that appears in various positions in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or relevance to other embodiments. In principle, in this application, as long as there is no technical contradiction or conflict, the technical features mentioned in each embodiment can be combined in any way to form corresponding implementable technical solutions.
[0033] Unless otherwise defined, the meanings of the technical terms used in this document are the same as those generally understood by those skilled in the technical field to which this application belongs; the use of the relevant terms in this document is only to describe specific embodiments and is not intended to limit this application.
[0034] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that there can be three relationships. For example, A and / or B means: there is A, there is B, and there is both A and B at the same time. In addition, the character " / " in this document generally represents an "or" logical relationship between the associated objects before and after.
[0035] In this application, terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual quantity, primary or secondary, or order relationship between these entities or operations.
[0036] Unless otherwise restricted, in this application, the terms "including", "comprising", "having" or other similar expressions are intended to cover non-exclusive inclusion. These expressions do not exclude the possibility that there may be additional elements in the process, method or product that includes the stated elements. Thus, a process, method or product that includes a series of elements may include not only those defined elements, but also other elements not explicitly listed, or elements inherent to such process, method or product.
[0037] Similar to the understanding in the "Examination Guidelines", in this application, expressions such as "greater than", "less than", "exceeding" are understood not to include the number itself; expressions such as "above", "below", "within" are understood to include the number itself. In addition, in the description of the embodiments of this application, the meaning of "a plurality of" is two or more (including two). Similar expressions related to "many", such as "multiple groups", "multiple times", etc., are understood in the same way, unless otherwise specifically defined.
[0038] In the description of the embodiments of this application, the spatially related expressions used, such as "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "perpendicular", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the specific embodiment or drawing. This is only for the convenience of describing the specific embodiments of this application or facilitating the understanding of the reader, rather than indicating or implying that the device or component referred to must have a specific position, a specific orientation, or be constructed or operated in a specific orientation. Therefore, it should not be construed as a limitation on the embodiments of this application.
[0039] Unless otherwise clearly specified or restricted, in the description of the embodiments of this application, the terms "installed", "connected", "joined", "fixed", "set", etc. should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integral setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be directly connected, or indirectly connected through an intermediate medium; it can be the internal communication of two components or the interaction relationship between two components. For those skilled in the art to which this application pertains, the specific meanings of the above terms in the embodiments of this application can be understood according to specific circumstances.
[0040] As Figure 2 shown, this application provides a watchdog hardware circuit 10, including:
[0041] Watchdog control circuit 101 includes a first chip, a first resistor, a second resistor, a third resistor, a first capacitor, a second capacitor, a first indicator light, and a first power supply module. The first chip includes a first pin, a second pin, a third pin, a fourth pin, a fifth pin, a sixth pin, a seventh pin, and an eighth pin. The first power supply module includes a first power supply terminal, a second power supply terminal, and a third power supply terminal. One end of the first resistor is connected to the first pin, and the other end of the first resistor is connected to the eighth pin. One end of the second resistor is connected to the first indicator light, and the other end is connected to the first power supply terminal. The first indicator light is also connected to the sixth pin. The third pin and the fourth pin are grounded. The first capacitor includes a first electrode and a second electrode. The first electrode is connected to the second power supply terminal, and the second electrode is grounded. The second pin is connected between the first electrode and the second power supply terminal. The second capacitor includes a third electrode and a fourth electrode. One end of the third resistor is connected to the third electrode, and the other end is connected to the third power supply terminal. The fourth electrode is grounded. The seventh pin is connected between the third resistor and the third electrode;
[0042] Dog feeding signal control circuit 102 includes a second chip, a fourth resistor, and a second power supply module. The second chip includes a first input pin, a second input pin, a ground pin, an output pin, and a power supply pin. The power supply pin is connected to the second power supply module. The ground pin is grounded. One end of the fourth resistor is grounded, and the other end of the fourth resistor is connected to the first input pin. The output pin of the second chip is connected to the sixth pin of the first chip for outputting a dog feeding signal to the sixth pin of the first chip.
[0043] As Figure 3 shown, in the technical solution of this application, the common shorting cap connection method is cancelled. The watchdog control circuit is mainly composed of U2, R1, R2, R3, C1, C2, and LED1 (where LED1 is the status indicator light of the system MCU operation, and the RESET pin is the reset control pin). Secondly, the dog feeding signal control circuit is composed of U1 and R4, ensuring that the system can provide a dog feeding signal to the WDI pin of the watchdog whether it is in normal operation or during program upgrade (when the system is in normal operation, the IN1 pin provides a dog feeding signal to the WDI pin in real time, and when the system needs to upgrade the program, the IN2 pin provides a dog feeding signal to the WDI pin). In this way, the function of continuous upgrade of the hardware watchdog is realized.
[0044] In some embodiments, the watchdog hardware circuit further includes an MCU processor, which is connected to the first input pin of the second chip. An MCU (Microcontroller Unit) is a single-chip microcomputer integrating functions such as a processor core, memory, input / output interfaces, etc. It is widely used in embedded systems to control various electronic devices and systems. The MCU processor is usually used to handle relatively simple control tasks, real-time control, and automation applications. In this way, in the state where the single-chip microcomputer freezes, the watchdog signal stopped from being output through the sixth pin enables the external watchdog circuit to automatically respond and operate to reset and restart the MCU. When the system is running normally, the MCU transmits the watchdog signal to the WDI pin (i.e., the sixth pin) of the first chip through the first input pin of the second chip.
[0045] In some embodiments, the watchdog hardware circuit further includes: an emulation programmer, which is connected to the second input pin of the second chip. In this way, when the system is under software upgrade and download, the second input pin provides the watchdog signal to ensure that the hardware watchdog circuit can complete the upgrade without interruption.
[0046] Preferably, the emulation programmer is an ST-LINK emulation programmer. The ST-LINK emulation programmer can be specifically used for the debugging and programming of STM32 and STM8 microcontrollers. Common models include ST-LINK / V2, ST-LINK / V2-1, ST-LINK / V3, etc.
[0047] In some embodiments, the first indicator light is an LED lamp. An LED lamp (Light Emitting Diode) is a light source that uses semiconductor technology to emit light. Compared with traditional incandescent lamps and fluorescent lamps, LED lamps have many significant advantages, including high efficiency, long lifespan, low power consumption, and environmental friendliness. By setting the LED lamp, the operating state of the system MCU can be monitored in real time.
[0048] In some embodiments, the sixth pin is a watchdog input pin. The watchdog input pin (Watchdog Input Pin) is part of the watchdog timer (Watchdog Timer) and is used to monitor the normal operation of the system. This pin is usually used to receive timing signals from the system or external components to ensure that the system can work properly within a predetermined time interval.
[0049] The watchdog input pin is used to receive system or external signals. The system needs to send signals to this pin regularly (usually called "feeding the dog" or "reset signal") to prevent the watchdog timer from timing out. If the system fails to send signals on time due to a fault, the watchdog timer will time out and trigger a preset reset or restart mechanism. This can automatically restore the normal operation of the system. In case of timeout, the watchdog timer will activate the reset function and restart the system to clear the fault status.
[0050] In some embodiments, the seventh pin is a reset control pin. The Watchdog Reset Control Pin is an important pin in the Watchdog Timer system and is used to implement the reset function of the system. Its main function is to trigger the reset operation of the system after the watchdog timer times out.
[0051] When the watchdog timer times out (i.e., the system fails to "feed the dog" within the predetermined time), the reset control pin will be activated, thus triggering a system reset. This helps to clear the abnormal state in the system and restart the system to resume normal operation. The reset control pin helps the system to automatically recover when encountering errors or faults, reducing system downtime and improving the stability and reliability of the system.
[0052] In some embodiments, the second power supply module includes a fourth power supply terminal, and the power pin is connected to the fourth power supply terminal. The output voltage of the fourth power supply terminal is 3.3V. In other embodiments, the output voltages of the first power supply terminal, the second power supply terminal, and the third power supply terminal are all 3.3V.
[0053] The present utility model relates to a watchdog hardware circuit, which includes a watchdog control circuit and a dog-feeding signal control circuit. The watchdog control circuit includes a first chip, a first resistor, a second resistor, a third resistor, a first capacitor, a second capacitor, a first indicator light, and a first power supply module. The dog-feeding signal control circuit includes a second chip, a fourth resistor, and a second power supply module. The second chip includes a first input pin, a second input pin, a ground pin, an output pin, and a power pin. The first chip is electrically connected to the second chip, and the output pin of the second chip is used to control the sixth pin to output a dog-feeding signal. When the program is running normally, the first input pin provides a dog-feeding signal to the output pin in real time. When the system needs to upgrade the program, the second input pin provides a dog-feeding signal to the output pin. The output pin is connected to the dog-feeding signal input terminal of the first chip, and in this way, the function of uninterruptedly upgrading the hardware watchdog is realized.
[0054] The above solution can ensure that during the program upgrade process, there is always one signal input at the WDI terminal of the watchdog chip, eliminating the cumbersome matter of having to disconnect the shorting cap in the traditional method for upgrading, greatly solving its complex operation, making the operation simple, facilitating maintenance by on-site operation and maintenance personnel, improving the work efficiency of on-site operation and maintenance, and reducing labor costs.
[0055] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be covered by the scope of the claims and the description of the present application. In particular, as long as there is no structural conflict, the technical features mentioned in each embodiment can be combined in any way. The present application is not limited to the specific embodiments disclosed in the text, but includes all technical solutions falling within the scope of the claims.
Claims
1. A watchdog hardware circuit, characterized in that, Comprising: A watchdog control circuit, including a first chip, a first resistor, a second resistor, a third resistor, a first capacitor, a second capacitor, a first indicator light, and a first power supply module. The first chip includes a first pin, a second pin, a third pin, a fourth pin, a fifth pin, a sixth pin, a seventh pin, and an eighth pin. The first power supply module includes a first power supply terminal, a second power supply terminal, and a third power supply terminal. One end of the first resistor is connected to the first pin, and the other end of the first resistor is connected to the eighth pin. One end of the second resistor is connected to the first indicator light, and the other end is connected to the first power supply terminal. The first indicator light is also connected to the sixth pin. The third pin and the fourth pin are grounded. The first capacitor includes a first electrode and a second electrode. The first electrode is connected to the second power supply terminal, and the second electrode is grounded. The second pin is connected between the first electrode and the second power supply terminal. The second capacitor includes a third electrode and a fourth electrode. One end of the third resistor is connected to the third electrode, and the other end is connected to the third power supply terminal. The fourth electrode is grounded. The seventh pin is connected between the third resistor and the third electrode; A dog-feeding signal control circuit, including a second chip, a fourth resistor, and a second power supply module. The second chip includes a first input pin, a second input pin, a ground pin, an output pin, and a power supply pin. The power supply pin is connected to the second power supply module. The ground pin is grounded. One end of the fourth resistor is grounded, and the other end of the fourth resistor is connected to the first input pin. The output pin of the second chip is connected to the sixth pin of the first chip to output a dog-feeding signal to the sixth pin of the first chip.
2. The watchdog hardware circuit according to claim 1, wherein Further comprising: An MCU processor, connected to the first input pin.
3. The watchdog hardware circuit according to claim 1, wherein Further comprising: An emulation programmer, connected to the second input pin of the second chip.
4. The watchdog hardware circuit according to claim 3, characterized in that, The emulation programmer is an ST-LINK emulation programmer.
5. The watchdog hardware circuit according to claim 1, wherein The first indicator light is an LED light.
6. The watchdog hardware circuit according to claim 1, wherein The sixth pin is a watchdog input pin.
7. The watchdog hardware circuit according to claim 1, wherein The seventh pin is a reset control pin.
8. The watchdog hardware circuit according to claim 1, wherein The second power supply module includes a fourth power supply terminal, and the power supply pin is connected to the fourth power supply terminal.
9. The watchdog hardware circuit according to claim 8, characterized in that The output voltage of the fourth power supply terminal is 3.3V.
10. The watchdog hardware circuit according to claim 6, characterized in that, The output voltages of the first power supply terminal, the second power supply terminal, and the third power supply terminal are all 3.3V.