Configurable hardware watchdog circuit

By designing a configurable hardware watchdog circuit and using discrete devices to achieve hardware reset, the problem of high cost of watchdog circuits in the prior art is solved, reducing circuit costs and increasing the application scenarios of reset circuits and stability.

CN222105952UActive Publication Date: 2024-12-03WASION GROUP HLDG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420815481.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-12-03
Estimated Expiration
2034-04-19

AI Technical Summary

Technical Problem

The existing watchdog circuit is expensive and cannot achieve hardware reset, which cannot effectively prevent the MCU from crashing.

Method used

A configurable hardware watchdog circuit is designed, including a dog feed input signal processing circuit, a time reference configuration circuit, a system voltage stabilization power circuit, a constant current discharge delay time sequence setting circuit and a hardware reset circuit, and a discrete device to realize the hardware Reset reduces circuit cost and increases the application scenarios of reset circuits.

Benefits of technology

Hardware reset is realized, circuit cost and power consumption is reduced, circuit stability and reliability are ensured, and hardware reset cannot be achieved in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222105952U_ABST
    Figure CN222105952U_ABST
Patent Text Reader

Abstract

The utility model is suitable for the technical field of circuits, and relates to a configurable hardware watchdog circuit, which comprises a dog feeding input signal processing circuit, a duration reference configuration circuit, a system voltage-stabilized power supply circuit, a counting chip U2, a constant-current discharge delay time sequence setting circuit and a hardware reset circuit, the dog feeding input signal processing circuit is connected with an MR pin of the counting chip U2, the duration reference configuration circuit is connected with an RS pin, an RTC pin and a CTC pin of the counting chip U2, and the system voltage-stabilized power supply circuit is connected with a Q13 pin of the counting chip U2, one end of the constant-current discharge delay time sequence setting circuit and one end of the hardware reset circuit. And the other end of the constant-current discharge delay time sequence setting circuit is connected with the other end of the hardware reset circuit. The reset circuit is simple in structure, stable in performance, and low in cost while realizing circuit hardware reset.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of circuits, and in particular relates to a configurable hardware watchdog circuit. Background Art

[0002] A watchdog timer (WDT) is a timer circuit, which generally has one input and one output. The input is called kicking the dog / service the dog, and the output is to the RST terminal of the MCU. When the MCU is working normally, it outputs a signal to the kicking dog terminal at regular intervals to clear the WDT. If the dog is not kicked for a specified period of time (generally when the program is running wild), a reset signal will be given to the MCU to reset the MCU and prevent the MCU from crashing. The function of the watchdog is to prevent the program from looping or running wild. Existing watchdog circuits usually require integrated combined work, the circuit cost is relatively high, and generally only software reset can be achieved, and hardware reset cannot be achieved.

[0003] The patent with publication number CN209560523U provides a watchdog circuit, including a dog feeding signal input circuit and a dog action output circuit, wherein the dog feeding signal input circuit is connected to the dog action output circuit; the dog feeding signal input circuit includes a counter chip and an interval time setting circuit and a dog feeding circuit connected to the counter chip; the interval time setting circuit includes a first resistor, a second resistor and a first capacitor, wherein the first end of the first resistor, the first end of the second resistor and the first end of the first capacitor are respectively connected to the counter chip, and the second end of the first resistor is respectively connected to the second end of the second resistor and the second end of the first capacitor; the dog feeding circuit includes a second capacitor, a third resistor, a fourth resistor and a first unidirectional diode, wherein the first end of the second capacitor is connected to the input end of the dog feeding signal input circuit, the second end of the second capacitor is connected to the reset control end of the counter chip through the third resistor, the first end of the fourth resistor is connected to the second end of the second capacitor, the second end of the fourth resistor is connected to the input end of the first unidirectional diode, and the output end of the first unidirectional diode is connected to the reset control end of the counter chip. The circuit in this patent application realizes software reset of MCU by combining counter 4060 and reset chip SP706. The system integrated chip has high cost and cannot realize hardware reset.

[0004] Therefore, how to provide a watchdog circuit with low circuit cost and capable of hardware reset is an urgent problem to be solved by personnel in the field of this technology. Utility Model Content

[0005] In view of the deficiencies of the prior art, the purpose of the utility model is to provide a configurable hardware watchdog circuit to solve the problems in the prior art that the watchdog circuit has a high cost and cannot achieve hardware reset.

[0006] In order to solve the above technical problems, the utility model adopts the following technical solutions:

[0007] The utility model provides a configurable hardware watchdog circuit, comprising:

[0008] Feeding dog input signal processing circuit, duration benchmark configuration circuit, system voltage-stabilized power supply circuit, counting chip U2, constant current discharge delay timing setting circuit and hardware reset circuit;

[0009] The dog feeding input signal processing circuit is connected to the MR pin of the counting chip U2, the duration reference configuration circuit is respectively connected to the RS pin, RTC pin, and CTC pin of the counting chip U2, the system voltage-stabilized power supply circuit is respectively connected to the Q13 pin of the counting chip U2, one end of the constant current discharge delay timing setting circuit, and one end of the hardware reset circuit, and the other end of the constant current discharge delay timing setting circuit is connected to the other end of the hardware reset circuit.

[0010] Furthermore, the dog feeding input signal processing circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C4 and a transistor Q1, one end of the resistor R1 is respectively connected to the dog feeding signal input end and one end of the capacitor C4, and the other end is grounded, the other end of the capacitor C4 is respectively connected to one end of the resistor R2, one end of the resistor R3, and one end of the resistor R4, the other end of the resistor R2 is connected to an external power supply, the other end of the resistor R3 is grounded, the other end of the resistor R4 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the external power supply, the collector of the transistor Q1 is respectively connected to one end of the resistor R5 and one end of the resistor R6, the other end of the resistor R5 is grounded, and the other end of the resistor R6 is connected to the MR pin of the counting chip U2.

[0011] Furthermore, the duration reference configuration circuit includes a resistor R7, a resistor R8, a capacitor C7 and a capacitor C8, one end of the resistor R7 is respectively connected to the RS pin of the counting chip U2 and one end of the capacitor C7, the other end of the capacitor C7 is grounded, the other end of the resistor R7 is respectively connected to one end of the resistor R8 and one end of the capacitor C8, the other end of the resistor R8 is connected to the RTC pin of the counting chip U2, and the other end of the capacitor C8 is connected to the CTC pin of the counting chip U2.

[0012] Furthermore, the system voltage-stabilized power supply circuit includes a rectifier diode VD1, a rectifier diode VD2, a rectifier diode VD3, a power chip U1 and a MOS tube G1, the positive electrode of the rectifier diode VD1 is connected to the internal battery, the positive electrode of the rectifier diode VD2 is connected to the external battery, the positive electrode of the rectifier diode VD3 is connected to the external power supply and the supercapacitor respectively, the negative electrode of the rectifier diode VD1, the negative electrode of the rectifier diode VD2, and the negative electrode of the rectifier diode VD3 are all connected to the VIN pin of the power chip U1, and the VOUT pin of the power chip U1 is connected to the source of the MOS tube G1.

[0013] Furthermore, the constant current discharge delay timing setting circuit includes a resistor R10, a capacitor C10 and a MOS tube G2, the metal gate of the MOS tube G1 is respectively connected to the drain of the MOS tube G2 and one end of the capacitor C10, the metal gate of the MOS tube G2 is respectively connected to one end of the resistor R10 and the other end of the capacitor C10, and the other end of the resistor R10 is grounded.

[0014] Furthermore, the hardware reset circuit includes a transistor Q2, a resistor R12 and a MOS transistor G3, the collector of the transistor Q2 is connected to the source of the MOS transistor G2 and the metal gate of the MOS transistor G3, respectively, the base of the transistor Q2 is connected to the source of the MOS transistor G3 and one end of the resistor R12, respectively, the drain of the MOS transistor G3 is connected to the system power supply output and the drain of the MOS transistor G1, respectively, and the other end of the resistor R12 is connected to the emitter of the transistor Q2 and grounded.

[0015] Furthermore, it also includes a power decoupling circuit, which includes a capacitor C5 and a capacitor C6, one end of the capacitor C5 is connected to the VCC pin of the counting chip U2 and an external power supply respectively, one end of the capacitor C6 is connected to the VCC pin of the counting chip U2 and an external power supply respectively, the other end of the capacitor C5 is grounded, and the other end of the capacitor C6 is grounded.

[0016] Furthermore, it also includes a signal filtering and anti-interference processing circuit, which includes a resistor C9 and a capacitor C9, one end of the resistor C9 is respectively connected to the Q13 pin of the counting chip U2 and one end of the capacitor C9, and the other end of the resistor C9 is connected to the other end of the capacitor C9 and grounded.

[0017] Compared with the prior art, the configurable hardware watchdog circuit provided by the utility model has at least the following beneficial effects:

[0018] Existing watchdog circuits usually require integrated combination work, the circuit cost is high, and generally only software reset can be achieved, and hardware reset cannot be achieved. The utility model has a simple structure, and most of the circuit is implemented by discrete devices, avoiding the integrated combination working mode and greatly reducing the cost; long-cycle reset can be achieved by using a settable counting chip, which increases the application scenarios of the reset circuit; hardware reset is achieved through the designed hardware reset circuit, solving the pain point that hardware reset cannot be achieved in the existing counting; the set constant current discharge delay timing setting circuit can achieve safe and reliable discharge of the back-end capacitor, ensuring the stability and reliability of the circuit reset. The entire watchdog circuit effectively reduces power consumption and cost while achieving hardware reset. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the scheme of the utility model, a brief introduction is given below to the figures required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A circuit diagram of a configurable hardware watchdog circuit provided in an embodiment of the utility model. DETAILED DESCRIPTION

[0021] Unless otherwise defined, all technical and scientific terms used in this document have the same meaning as commonly understood by technicians in the technical field of the present invention; the terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For example, the directions or positions indicated by terms such as "length", "width", "up", "down", "left", "right", "front", "back", "vertical", "horizontal", "top", "bottom", "inside", and "outside" are based on the directions or positions shown in the drawings, which are only for the convenience of description and cannot be understood as limitations on the present technical solution.

[0022] The terms "including" and "having" and any variations thereof in the specification and claims of the utility model and the above-mentioned drawings are intended to cover non-exclusive inclusions; the terms "first", "second", etc. in the specification and claims of the utility model or the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In the specification and claims of the utility model and the above-mentioned drawings, when an element is referred to as "fixed to" or "mounted on" or "disposed on" or "connected to" another element, it may be directly or indirectly located on the other element. For example, when an element is referred to as "connected to" another element, it may be directly or indirectly connected to the other element.

[0023] In addition, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] The utility model provides a configurable hardware watchdog circuit, which is applied to the hardware reset process of the system in industrial equipment. The configurable hardware watchdog circuit includes:

[0025] Dog feeding input signal processing circuit, time reference configuration circuit, system voltage-stabilized power supply circuit, counting chip U2, constant current discharge delay timing setting circuit and hardware reset circuit; the dog feeding input signal processing circuit is connected to the MR pin of the counting chip U2, the time reference configuration circuit is respectively connected to the RS pin, RTC pin and CTC pin of the counting chip U2, the system voltage-stabilized power supply circuit is respectively connected to the Q13 pin of the counting chip U2, one end of the constant current discharge delay timing setting circuit and one end of the hardware reset circuit, and the other end of the constant current discharge delay timing setting circuit is connected to the other end of the hardware reset circuit.

[0026] The utility model has a simple structure and stable performance, and has low cost while realizing circuit hardware reset.

[0027] In order to enable those skilled in the art to better understand the solution of the utility model, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the accompanying drawings.

[0028] The utility model provides a configurable hardware watchdog circuit, which is applied to the hardware reset process of the system in industrial equipment, such as Figure 1 As shown, in this embodiment, the configurable hardware watchdog circuit includes:

[0029] Dog feeding input signal processing circuit, time reference configuration circuit, system voltage-stabilized power supply circuit, counting chip U2, constant current discharge delay timing setting circuit and hardware reset circuit; the dog feeding input signal processing circuit is connected to the MR pin of the counting chip U2, the time reference configuration circuit is respectively connected to the RS pin, RTC pin and CTC pin of the counting chip U2, the system voltage-stabilized power supply circuit is respectively connected to the Q13 pin of the counting chip U2, one end of the constant current discharge delay timing setting circuit and one end of the hardware reset circuit, and the other end of the constant current discharge delay timing setting circuit is connected to the other end of the hardware reset circuit.

[0030] Furthermore, in the present embodiment, the dog feeding input signal processing circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C4 and a transistor Q1, one end of the resistor R1 is respectively connected to the dog feeding signal input end and one end of the capacitor C4, and the other end is grounded, the other end of the capacitor C4 is respectively connected to one end of the resistor R2, one end of the resistor R3, and one end of the resistor R4, the other end of the resistor R2 is connected to an external power supply, the other end of the resistor R3 is grounded, the other end of the resistor R4 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the external power supply, the collector of the transistor Q1 is respectively connected to one end of the resistor R5 and one end of the resistor R6, the other end of the resistor R5 is grounded, and the other end of the resistor R6 is connected to the MR pin of the counting chip U2.

[0031] Specifically, the control signal of the MCU is coupled to the transistor Q1 through the resistor R1 and the capacitor C4, and the level matching of the MCU control signal voltage and the external voltage is achieved through the capacitor (the selection of the resistor R1 and the capacitor C4 also determines the input anti-interference performance). The resistors R2, R3, and R4 jointly determine the static operating voltage of the transistor Q1. This voltage can also solve the negative voltage problem caused by the negative edge of the digital signal of the capacitor C4, saving the negative voltage clamping diode. The transistor Q1 and the resistor R5 jointly output a signal to clear the counter (the dog feeding signal clears the count).

[0032] Furthermore, in this embodiment, the duration reference configuration circuit includes resistor R7, resistor R8, capacitor C7 and capacitor C8, one end of resistor R7 is connected to the RS pin of the counting chip U2 and one end of capacitor C7 respectively, the other end of capacitor C7 is grounded, the other end of resistor R7 is connected to one end of resistor R8 and one end of capacitor C8 respectively, the other end of resistor R8 is connected to the RTC pin of the counting chip U2, and the other end of capacitor C8 is connected to the CTC pin of the counting chip U2.

[0033] Specifically, capacitor C7, resistor R7, resistor R8, and capacitor C8 form the counter's oscillation period Tbase, which implements the configuration of the dog feeding time base. The counting chip U2 constitutes the watchdog's time manager and also implements the control signal source of the external power supply. For example: 13 *Tbase, determines the watchdog execution period by selecting Qn (n is 3 to 13).

[0034] Furthermore, in this embodiment, the system voltage-stabilized power supply circuit includes a rectifier diode VD1, a rectifier diode VD2, a rectifier diode VD3, a power chip U1 and a MOS tube G1, the positive electrode of the rectifier diode VD1 is connected to the internal battery, the positive electrode of the rectifier diode VD2 is connected to the external battery, the positive electrode of the rectifier diode VD3 is connected to the external power supply and the supercapacitor respectively, the negative electrode of the rectifier diode VD1, the negative electrode of the rectifier diode VD2, and the negative electrode of the rectifier diode VD3 are all connected to the VIN pin of the power chip U1, and the VOUT pin of the power chip U1 is connected to the source of the MOS tube G1.

[0035] Specifically, rectifier diodes VD1, VD2 and VD3 are used to realize sequential power supply of multiple power sources such as external battery, super capacitor, internal battery and external power supply. The power supply sequence is external battery, super capacitor, external power supply and internal battery. The system operating voltage is stably output through low-power power chip U1.

[0036] Furthermore, in this embodiment, the constant current discharge delay timing setting circuit includes a resistor R10, a capacitor C10 and a MOS tube G2, the metal gate of the MOS tube G1 is respectively connected to the drain of the MOS tube G2 and one end of the capacitor C10, the metal gate of the MOS tube G2 is respectively connected to one end of the resistor R10 and the other end of the capacitor C10, and the other end of the resistor R10 is grounded.

[0037] Furthermore, in this embodiment, the hardware reset circuit includes a transistor Q2, a resistor R12 and a MOS transistor G3, the collector of the transistor Q2 is connected to the source of the MOS transistor G2 and the metal gate of the MOS transistor G3, the base of the transistor Q2 is connected to the source of the MOS transistor G3 and one end of the resistor R12, the drain of the MOS transistor G3 is connected to the system power output and the drain of the MOS transistor G1, and the other end of the resistor R12 is connected to the emitter of the transistor Q2 and grounded.

[0038] Specifically, resistor R12 determines the constant current discharge current when the system fails, which can reduce the discharge current when the MOS tube G1 fails or there is a large capacitor on the system power output, thereby improving the reliability of the system. At the same time, the discharge circuit composed of MOS tube G3, transistor Q2, and resistor R12 can eliminate the situation where the MCU is in a low power consumption state after a failure, and there is a large capacitor on the system power output, resulting in the system power output voltage not dropping for a long time (many chips have a large operating voltage range, and the fault will not be eliminated when the power is not completely off), thereby achieving reliable power off when the MCU control system fails.

[0039] Furthermore, in this embodiment, a power decoupling circuit is also included, and the power decoupling circuit includes a capacitor C5 and a capacitor C6. One end of the capacitor C5 is connected to the VCC pin of the counting chip U2 and the external power supply respectively, and one end of the capacitor C6 is connected to the VCC pin of the counting chip U2 and the external power supply respectively. The other end of the capacitor C5 is grounded, and the other end of the capacitor C6 is grounded. The power decoupling circuit can take further filtering measures on the power supply to remove the influence of mutual interference between the two-level signals through the power supply.

[0040] Furthermore, in this embodiment, a signal filtering and anti-interference processing circuit is also included, and the signal filtering and anti-interference processing circuit includes a resistor C9 and a capacitor C9, one end of the resistor C9 is respectively connected to the Q13 pin of the counting chip U2 and one end of the capacitor C9, and the other end of the resistor C9 is connected to the other end of the capacitor C9 and grounded.

[0041] Specifically, capacitor C9 and resistor R9 are used for output signal filtering and system low-power supply (when the external power supply is powered off, the low-power system needs to be powered normally by super capacitors and batteries).

[0042] In this embodiment, when the MCU fails and does not give a feeding signal, causing the counting chip U2 to output a high level, the MOS tube G1 is immediately cut off. At the same time, through the capacitor C10 and the resistor R10, the resistor R10 determines the high level turn-on time of the MOS tube G2. The high level provided by the MOS tube G2 determines the constant current discharge time composed of the MOS tube G3, the transistor Q2, and the resistor R12, which can prevent extreme long-term faults such as MCU damage, resulting in long-term operation of the constant current discharge, increasing system power consumption and device heating, thereby improving the working life of the circuit and the reliability of the device.

[0043] Compared with the prior art, the configurable hardware watchdog circuit described in the above embodiment usually requires integrated combination work in the existing watchdog circuit, the circuit cost is relatively high, and generally only software reset can be achieved, and hardware reset cannot be achieved. The utility model has a simple structure, and most of the circuit is implemented by discrete devices, avoiding the integrated combination working mode and greatly reducing the cost; long-cycle reset can be achieved by using a configurable counting chip, which increases the application scenarios of the reset circuit; hardware reset is achieved through the designed hardware reset circuit, solving the pain point that hardware reset cannot be achieved in the existing counting; the constant current discharge delay timing setting circuit can achieve safe and reliable discharge of the back-end capacitor, ensuring the stability and reliability of the circuit reset. The entire watchdog circuit effectively reduces power consumption and cost while achieving hardware reset.

[0044] Obviously, the embodiments described above are only preferred embodiments of the utility model, rather than all embodiments. The preferred embodiments of the utility model are given in the accompanying drawings, but they do not limit the patent scope of the utility model. The utility model can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the utility model more thorough and comprehensive. Although the utility model is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to replace some of the technical features therein with equivalents. Any equivalent structure made using the contents of the utility model specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the utility model.

Claims

1. A configurable hardware watchdog circuit, characterized in that: include: Feeding dog input signal processing circuit, duration benchmark configuration circuit, system voltage-stabilized power supply circuit, counting chip U2, constant current discharge delay timing setting circuit and hardware reset circuit; The dog feeding input signal processing circuit is connected to the MR pin of the counting chip U2, the duration reference configuration circuit is respectively connected to the RS pin, RTC pin, and CTC pin of the counting chip U2, the system voltage-stabilized power supply circuit is respectively connected to the Q13 pin of the counting chip U2, one end of the constant current discharge delay timing setting circuit, and one end of the hardware reset circuit, and the other end of the constant current discharge delay timing setting circuit is connected to the other end of the hardware reset circuit.

2. A configurable hardware watchdog circuit according to claim 1, characterized in that: The dog feeding input signal processing circuit includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a capacitor C4 and a transistor Q1. One end of the resistor R1 is respectively connected to the dog feeding signal input end and one end of the capacitor C4, and the other end is grounded. The other end of the capacitor C4 is respectively connected to one end of the resistor R2, one end of the resistor R3 and one end of the resistor R4. The other end of the resistor R2 is connected to an external power supply, the other end of the resistor R3 is grounded, the other end of the resistor R4 is connected to the base of the transistor Q1, the emitter of the transistor Q1 is connected to the external power supply, the collector of the transistor Q1 is respectively connected to one end of the resistor R5 and one end of the resistor R6, the other end of the resistor R5 is grounded, and the other end of the resistor R6 is connected to the MR pin of the counting chip U2.

3. A configurable hardware watchdog circuit according to claim 1, characterized in that: The duration reference configuration circuit includes a resistor R7, a resistor R8, a capacitor C7 and a capacitor C8, one end of the resistor R7 is connected to the RS pin of the counting chip U2 and one end of the capacitor C7 respectively, the other end of the capacitor C7 is grounded, the other end of the resistor R7 is connected to one end of the resistor R8 and one end of the capacitor C8 respectively, the other end of the resistor R8 is connected to the RTC pin of the counting chip U2, and the other end of the capacitor C8 is connected to the CTC pin of the counting chip U2.

4. A configurable hardware watchdog circuit according to claim 1, characterized in that: The system voltage-stabilized power supply circuit includes a rectifier diode VD1, a rectifier diode VD2, a rectifier diode VD3, a power chip U1 and a MOS tube G1. The positive electrode of the rectifier diode VD1 is connected to an internal battery, the positive electrode of the rectifier diode VD2 is connected to an external battery, the positive electrode of the rectifier diode VD3 is connected to an external power supply and a super capacitor respectively, the negative electrode of the rectifier diode VD1, the negative electrode of the rectifier diode VD2, and the negative electrode of the rectifier diode VD3 are all connected to the VIN pin of the power chip U1, and the VOUT pin of the power chip U1 is connected to the source of the MOS tube G1.

5. A configurable hardware watchdog circuit according to claim 4, characterized in that: The constant current discharge delay timing setting circuit includes a resistor R10, a capacitor C10 and a MOS tube G2. The metal gate of the MOS tube G1 is connected to the drain of the MOS tube G2 and one end of the capacitor C10 respectively. The metal gate of the MOS tube G2 is connected to one end of the resistor R10 and the other end of the capacitor C10 respectively. The other end of the resistor R10 is grounded.

6. A configurable hardware watchdog circuit according to claim 5, characterized in that: The hardware reset circuit includes a transistor Q2, a resistor R12 and a MOS transistor G3, wherein the collector of the transistor Q2 is connected to the source of the MOS transistor G2 and the metal gate of the MOS transistor G3 respectively, the base of the transistor Q2 is connected to the source of the MOS transistor G3 and one end of the resistor R12 respectively, the drain of the MOS transistor G3 is connected to the system power supply output and the drain of the MOS transistor G1 respectively, and the other end of the resistor R12 is connected to the emitter of the transistor Q2 and grounded.

7. A configurable hardware watchdog circuit according to claim 1, characterized in that: It also includes a power decoupling circuit, which includes a capacitor C5 and a capacitor C6. One end of the capacitor C5 is connected to the VCC pin of the counting chip U2 and an external power supply respectively, one end of the capacitor C6 is connected to the VCC pin of the counting chip U2 and an external power supply respectively, the other end of the capacitor C5 is grounded, and the other end of the capacitor C6 is grounded.

8. The configurable hardware watchdog circuit according to claim 1, characterized in that: It also includes a signal filtering and anti-interference processing circuit, which includes a resistor C9 and a capacitor C9. One end of the resistor C9 is connected to the Q13 pin of the counting chip U2 and one end of the capacitor C9 respectively, and the other end of the resistor C9 is connected to the other end of the capacitor C9 and grounded.