A hardware watchdog system

Through the design of the hardware watchdog system, the automatic restart and time adjustment of the main control module is achieved, which solves the problem that the existing watchdog circuit cannot automatically restart and insufficient time for feeding dogs, and meets the time requirements of complex transactions.

CN112084057BActive Publication Date: 2024-11-12HISENSE GRP HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010920221.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-03
Publication Date
2024-11-12
Estimated Expiration
2040-09-03

AI Technical Summary

Technical Problem

The existing watchdog circuit cannot automatically restart the main control module, and the time interval for feeding the dog is not enough to meet the needs of some complex transactions, resulting in the main control module being unable to complete the work.

Method used

Design a hardware watchdog system, including power supply module, main control module, hardware watchdog module and power supply control module, and realize the main The automatic restart of the control module and the function of flexibly adjusting the crash to power outage time.

Benefits of technology

When the main control module is in a dead state, the hardware watchdog system can automatically restart the main control module and flexibly adjust the time from dead to power outage and power outage to restart by adjusting the size of the circuit components to meet the needs of different products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112084057B_ABST
    Figure CN112084057B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of watchdog technology, and discloses a hardware watchdog system, the system comprising a power supply module, a main control module, a hardware watchdog module and a power supply control module; wherein the power supply module is used to supply power to the power supply control module and the hardware watchdog module; the main control module is used to send a pulse signal to the hardware watchdog module; the hardware watchdog module is used to analyze the received pulse signal, and send a level signal to the power supply control module according to the analysis result; the power supply control module is used to supply power to the main control module, and control the power on and off of the main control module according to the received level signal. The hardware watchdog system provided by the present invention can automatically restart the main control module when the main control module is in various dead states.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic circuits, and in particular to a hardware watchdog system. Background Art

[0002] The watchdog is a monitoring system that monitors the operation of the monitored system. When the monitored system is not operating properly, it can perform operations such as resetting the monitored system.

[0003] At present, most of the watchdog circuits have only a reset function, but no function of powering off and restarting the main control module. In this way, when the thyristor latch effect occurs in the main control module, the reset of the main control module by the watchdog cannot remove the thyristor latch effect of the main control module at all. That is, ordinary watchdogs cannot solve the deadlock phenomenon of the main control module due to the thyristor latch effect. In addition, the feeding time interval of ordinary watchdogs is not greater than 5S at present. For watchdogs that need to have a deadlock confirmation time greater than or equal to 10S, ordinary watchdogs cannot achieve such time requirements. Therefore, when the main control module handles complex affairs or handles affairs that cannot be divided into time for any other affairs, that is, when the dog cannot be fed within the specified time of ordinary watchdogs, the watchdog will reset the main control module, causing the main control module to be unable to complete the required work. Summary of the invention

[0004] The technical problem to be solved by the embodiment of the present invention is to provide a hardware watchdog system, which automatically restarts the main control module when the main control module is in various dead states.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a hardware watchdog system, which includes a power supply module, a main control module, a hardware watchdog module and a power supply control module; wherein,

[0006] The power supply module is used to supply power to the power supply control module and the hardware watchdog module;

[0007] The main control module is used to send a pulse signal to the hardware watchdog module;

[0008] The hardware watchdog module is used to analyze the received pulse signal and send a level signal to the power supply control module according to the analysis result;

[0009] The power supply control module is used to supply power to the main control module and control power on and power off of the main control module according to the received level signal.

[0010] In a preferred embodiment, the hardware watchdog module includes a first power supply terminal, a second power supply terminal, a third power supply terminal, a fourth power supply terminal, an input terminal, an output terminal, a dynamic identification circuit, a deadlock confirmation circuit, a power-off time processing circuit, and an enabling shutdown circuit; wherein,

[0011] The input end of the dynamic identification circuit is connected to the input end of the hardware watchdog module, the output end of the dynamic identification circuit is connected to the input end of the deadlock confirmation circuit, and the dynamic identification circuit is used to generate a first signal according to the received pulse signal and send it to the deadlock confirmation circuit;

[0012] The output end of the crash confirmation circuit is connected to the input end of the power-off time processing circuit, the first power supply end of the crash confirmation circuit is connected to the first power supply end of the watchdog module, the second power supply end of the crash confirmation circuit is connected to the second power supply end of the watchdog module, and the crash confirmation circuit is used to generate a second signal according to the received first signal and send it to the power-off time processing circuit;

[0013] The output end of the power-off time processing circuit is connected to the input end of the enable shutdown circuit, the power supply end of the power-off time processing circuit is connected to the third power supply end of the watchdog module, and the power-off time processing circuit is used to generate a third signal according to the received second signal and send it to the enable shutdown circuit;

[0014] The output end of the enable shutdown circuit is connected to the output end of the hardware watchdog module, the power supply end of the enable shutdown circuit is connected to the fourth power supply end of the watchdog module, and the enable shutdown circuit is used to generate the level signal according to the received third signal and transmit it to the output end of the hardware watchdog module.

[0015] In a preferred embodiment, the dynamic identification circuit includes a first capacitor, a first resistor, a first diode, a second diode, a second capacitor, a second resistor and a third resistor; wherein,

[0016] One end of the first capacitor is connected to the input end of the dynamic identification circuit, and the other end of the first capacitor is connected to one end of the first resistor;

[0017] The other end of the first resistor is connected to the anode of the second diode;

[0018] The anode of the first diode is grounded, and the cathode of the first diode is connected to the anode of the second diode;

[0019] The cathode of the second diode is connected to one end of the second resistor;

[0020] One end of the second capacitor is connected to one end of the second resistor, and the other end of the second capacitor is grounded;

[0021] The other end of the second resistor is connected to the output end of the dynamic identification circuit;

[0022] One end of the third resistor is connected to the output end of the dynamic identification circuit, and the other end of the third resistor is grounded.

[0023] In a preferred embodiment, the deadlock confirmation circuit includes a first switch tube, a fourth resistor, a third capacitor, a first diode subcircuit, a switch tube circuit, a second diode subcircuit and a fifth resistor; wherein,

[0024] The first end of the first switch tube is connected to the input end of the deadlock confirmation circuit, the second end of the first switch tube is grounded, and the third end of the first switch tube is connected to one end of the fourth resistor;

[0025] The other end of the fourth resistor is connected to the first power supply end of the deadlock confirmation circuit;

[0026] One end of the third capacitor is connected to one end of the fourth resistor, and the other end of the third capacitor is grounded;

[0027] The first end of the first diode subcircuit is connected to the third end of the first switch tube, and the second end of the first diode subcircuit is connected to the first end of the switch tube circuit; the first diode subcircuit includes x diodes connected in series, x≥0, wherein the anode of the first diode is connected to the first end of the first diode subcircuit, the anode of the subsequent diode is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the first diode subcircuit;

[0028] The second end of the switch tube circuit is grounded, and the third end of the switch tube circuit is connected to one end of the fifth resistor; the switch tube circuit includes y switch tubes, y≥0, wherein the first end of the first switch tube is connected to the first end of the switch tube circuit, the third end of the first switch tube is connected to the third end of the switch tube circuit, the second end of the first switch tube is connected to the first end of the next switch tube, the third end of the subsequent switch tube is connected to the third end of the switch tube circuit, the second end of the subsequent switch tube is connected to the first end of the next switch tube, and the second end of the last switch tube is grounded;

[0029] The other end of the fifth resistor is connected to the second power supply end of the deadlock confirmation circuit;

[0030] The first end of the second diode sub-circuit is connected to one end of the fifth resistor, and the second end of the second diode sub-circuit is connected to the output end of the crash confirmation circuit; the second diode sub-circuit includes z diodes connected in series, z≥0, the anode of the first diode is connected to the first end of the second diode sub-circuit, the anode of the subsequent diodes is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the second diode sub-circuit.

[0031] In a preferred embodiment, the power-off time processing circuit includes a second switch tube, a sixth resistor, a fourth capacitor, a seventh resistor, an eighth resistor, a third diode and a third switch tube; wherein,

[0032] The first end of the second switch tube is connected to the input end of the power-off time processing circuit, the third end of the second switch tube is connected to one end of the sixth resistor, and the second end of the second switch tube is grounded;

[0033] The other end of the sixth resistor is connected to the power supply end of the power-off time processing circuit;

[0034] One end of the fourth capacitor is connected to one end of the sixth resistor, and the other end of the fourth capacitor is connected to one end of the seventh resistor;

[0035] The other end of the seventh resistor is connected to the first end of the third switch tube;

[0036] One end of the eighth resistor is connected to the first end of the third switch tube, and the other end of the eighth resistor is grounded;

[0037] The anode of the third diode is grounded, and the cathode of the third diode is connected to the first end of the third switch tube;

[0038] The second end of the third switch tube is grounded, and the third end of the third switch tube is connected to the output end of the power-off time processing circuit.

[0039] In a preferred embodiment, the enabling shutdown circuit includes a ninth resistor; wherein,

[0040] One end of the ninth resistor is connected to the power supply end of the enable shutdown circuit, the other end of the ninth resistor is connected to the input end of the enable shutdown circuit, and the other end of the ninth resistor is also connected to the output end of the enable shutdown circuit.

[0041] In a preferred embodiment, the hardware watchdog module includes a first power supply terminal, a second power supply terminal, an input terminal, an output terminal, a dynamic identification circuit, a deadlock confirmation circuit, a power-off time processing circuit, and an enabling shutdown circuit; wherein,

[0042] The input end of the dynamic identification circuit is connected to the input end of the hardware watchdog module, the output end of the dynamic identification circuit is connected to the input end of the deadlock confirmation circuit, the power supply end of the dynamic identification circuit is connected to the first power supply end of the watchdog module, and the dynamic identification circuit is used to generate a fourth signal according to the received pulse signal and send it to the deadlock confirmation circuit;

[0043] The output end of the crash confirmation circuit is connected to the input end of the power-off time processing circuit, the power supply end of the crash confirmation circuit is connected to the first power supply end of the watchdog module, and the crash confirmation circuit is used to generate a fifth signal according to the received fourth signal and send it to the power-off time processing circuit;

[0044] The output end of the power-off time processing circuit is connected to the input end of the enable shutdown circuit, the first power supply end of the power-off time processing circuit is connected to the first power supply end of the watchdog module, the second power supply end of the power-off time processing circuit is connected to the second power supply end of the watchdog module, and the power-off time processing circuit is used to generate a sixth signal according to the received fifth signal and send it to the enable shutdown circuit;

[0045] The output end of the enable shutdown circuit is connected to the output end of the watchdog module, the power supply end of the enable shutdown circuit is connected to the second power supply end of the watchdog module, and the enable shutdown circuit is used to generate a level signal according to the received sixth signal and transmit it to the output end of the hardware watchdog module.

[0046] In a preferred embodiment, the dynamic identification circuit includes a tenth resistor, a fifth capacitor, a fourth diode, a fifth diode, a sixth capacitor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a first voltage comparator, a seventh capacitor, a fourteenth resistor, a fifteenth resistor and a sixteenth resistor; wherein,

[0047] One end of the tenth resistor is connected to the input end of the dynamic identification circuit, and the other end of the tenth resistor is connected to the power supply end of the dynamic identification circuit;

[0048] One end of the fifth capacitor is connected to one end of the tenth resistor, and the other end of the fifth capacitor is connected to the anode of the fifth diode;

[0049] The anode of the fourth diode is grounded, and the cathode of the fourth diode is connected to the anode of the fifth diode;

[0050] The cathode of the fifth diode is connected to the inverting input terminal of the first voltage comparator;

[0051] One end of the sixth capacitor is connected to the inverting input end of the first voltage comparator, and the other end of the sixth capacitor is grounded;

[0052] One end of the eleventh resistor is connected to the inverting input end of the first voltage comparator, and the other end of the eleventh resistor is grounded;

[0053] One end of the twelfth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the twelfth resistor is grounded;

[0054] One end of the thirteenth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the thirteenth resistor is connected to the power supply end of the dynamic identification circuit;

[0055] One end of the fourteenth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the fourteenth resistor is connected to the output end of the first voltage comparator;

[0056] One end of the fifteenth resistor is connected to the output end of the first voltage comparator, and the other end of the fifteenth resistor is connected to the power supply end of the dynamic identification circuit;

[0057] The output terminal of the first voltage comparator is connected to one end of the sixteenth resistor;

[0058] The other end of the sixteenth resistor is connected to the output end of the dynamic identification circuit;

[0059] One end of the seventh capacitor is connected to the power supply end of the dynamic identification circuit, and the other end of the seventh capacitor is grounded.

[0060] In a preferred embodiment, the deadlock confirmation circuit includes a fourth switch tube, a seventeenth resistor, an eighteenth resistor, a fifth switch tube, a nineteenth resistor, a twentieth resistor, an eighth capacitor, a twenty-first resistor, a twenty-second resistor, a second voltage comparator, a twenty-third resistor, a twenty-fourth resistor and a twenty-fifth resistor; wherein,

[0061] A first end of the fourth switch tube is connected to an input end of the deadlock confirmation circuit, a second end of the fourth switch tube is grounded, and a third end of the fourth switch tube is connected to one end of the eighteenth resistor;

[0062] One end of the seventeenth resistor is connected to one end of the eighteenth resistor, and the other end of the seventeenth resistor is connected to the power supply end of the deadlock confirmation circuit;

[0063] The other end of the eighteenth resistor is connected to the first end of the fifth switch tube;

[0064] The second end of the fifth switch tube is grounded, and the third end of the fifth switch tube is connected to one end of the twentieth resistor;

[0065] One end of the nineteenth resistor is connected to one end of the twentieth resistor, and the other end of the nineteenth resistor is connected to the power supply end of the deadlock confirmation circuit;

[0066] The other end of the twentieth resistor is connected to the inverting input end of the second voltage comparator;

[0067] One end of the twenty-first resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the twenty-first resistor is grounded;

[0068] One end of the 22nd resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the 22nd resistor is connected to the power supply end of the deadlock confirmation circuit;

[0069] One end of the twenty-third resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the twenty-third resistor is connected to the output end of the second voltage comparator;

[0070] One end of the 24th resistor is connected to the output end of the second voltage comparator, and the other end of the 24th resistor is connected to the power supply end of the deadlock confirmation circuit;

[0071] The output terminal of the second voltage comparator is connected to one end of the twenty-fifth resistor;

[0072] The other end of the twenty-fifth resistor is connected to the output end of the deadlock confirmation circuit.

[0073] In a preferred embodiment, the power-off time processing circuit includes a sixth switch tube, a twenty-sixth resistor, a ninth capacitor, a twenty-seventh resistor, a sixth diode, a twenty-eighth resistor, a twenty-ninth resistor, a thirtieth resistor, a third voltage comparator, a thirty-first resistor and a thirty-second resistor; wherein,

[0074] A first end of the sixth switch tube is connected to an input end of the power-off time processing circuit, a second end of the sixth switch tube is grounded, and a third end of the sixth switch tube is connected to one end of the twenty-sixth resistor;

[0075] The other end of the twenty-sixth resistor is connected to the first power supply end of the power-off time processing circuit;

[0076] One end of the ninth capacitor is connected to one end of the twenty-sixth resistor, and the other end of the ninth capacitor is connected to the inverting input end of the third voltage comparator;

[0077] One end of the twenty-seventh resistor is connected to the inverting input end of the third voltage comparator, and the other end of the twenty-seventh resistor is grounded;

[0078] The anode of the sixth diode is grounded, and the cathode of the sixth diode is connected to the inverting input terminal of the third voltage comparator;

[0079] One end of the 28th resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the 28th resistor is connected to the second power supply end of the power-off time processing circuit;

[0080] One end of the twenty-ninth resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the twenty-ninth resistor is grounded;

[0081] One end of the 30th resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the 30th resistor is connected to the output end of the third voltage comparator;

[0082] One end of the thirty-first resistor is connected to the output end of the third voltage comparator, and the other end of the thirty-first resistor is connected to the second power supply end of the power-off time processing circuit;

[0083] The output end of the third voltage comparator is connected to one end of the thirty-second resistor;

[0084] The other end of the thirty-second resistor is connected to the output end of the power-off time processing circuit.

[0085] In a preferred embodiment, the enabling shutdown circuit includes a fourth voltage comparator, a thirty-third resistor, a thirty-fourth resistor, a thirty-fifth resistor and a thirty-sixth resistor; wherein,

[0086] The non-inverting input terminal of the fourth voltage comparator is connected to the input terminal of the enable shutdown circuit;

[0087] One end of the thirty-third resistor is connected to the inverting input end of the fourth voltage comparator, and the other end of the thirty-third resistor is connected to the power supply end of the enable shutdown circuit;

[0088] One end of the thirty-fourth resistor is connected to the inverting input end of the fourth voltage comparator, and the other end of the thirty-fourth resistor is grounded;

[0089] One end of the thirty-fifth resistor is connected to the non-inverting input end of the fourth voltage comparator, and the other end of the thirty-fifth resistor is connected to the output end of the fourth voltage comparator;

[0090] One end of the thirty-sixth resistor is connected to the output end of the fourth voltage comparator, and the other end of the thirty-sixth resistor is connected to the power supply end of the enable shutdown circuit;

[0091] The output terminal of the fourth voltage comparator is connected to the output terminal of the enable shutdown circuit.

[0092] Compared with the prior art, the hardware watchdog system provided by the embodiment of the present invention has the beneficial effect that: when the main control module is in various freeze states, the hardware watchdog system will not lose its working ability and can restart the main control module within the required time; the hardware watchdog module is composed of independent pure circuit elements. By setting the sizes of some resistors and capacitors therein, the time from freeze to power off and from power off to restart of the main control module can be flexibly adjusted, which can meet the needs of different products. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] In order to more clearly illustrate the technical features of the embodiments of the present invention, the drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0094] Figure 1 It is a structural schematic diagram of a preferred embodiment of a hardware watchdog system provided by the present invention;

[0095] Figure 2 It is a structural schematic diagram of a preferred embodiment of a hardware watchdog module provided by the present invention;

[0096] Figure 3 It is a circuit diagram of a preferred embodiment of a hardware watchdog module provided by the present invention;

[0097] Figure 4 It is a structural schematic diagram of another preferred embodiment of a hardware watchdog module provided by the present invention;

[0098] Figure 5 is a circuit diagram of another preferred embodiment of a hardware watchdog module provided by the present invention;

[0099] Figure 6 It is a structural schematic diagram of another preferred embodiment of a hardware watchdog system provided by the present invention. DETAILED DESCRIPTION

[0100] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are only used to illustrate the present invention, but are not intended to limit the scope of protection of the present invention. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without paying creative work should all belong to the scope of protection of the present invention.

[0101] In the description of the present invention, it should be understood that the numbers themselves, such as "first", "second", etc., are only used to distinguish the objects described, have no sequential or technical meaning, and cannot be understood as stipulating or implying the importance of the objects described.

[0102] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0103] Figure 1 Shown is a structural schematic diagram of a preferred embodiment of a hardware watchdog system provided by the present invention.

[0104] like Figure 1 As shown, the system includes a power supply module, a main control module, a hardware watchdog module and a power supply control module; wherein,

[0105] The power supply module is used to supply power to the power supply control module and the hardware watchdog module;

[0106] The main control module is used to send a pulse signal to the hardware watchdog module;

[0107] The hardware watchdog module is used to analyze the received pulse signal and send a level signal to the power supply control module according to the analysis result;

[0108] The power supply control module is used to supply power to the main control module and control power on and power off of the main control module according to the received level signal.

[0109] Furthermore, the connection relationship between the various modules of the system is as follows: the output end of the power supply module is respectively connected to the power supply end of the power supply control module and the power supply end of the hardware watchdog module, the output end of the power supply control module is connected to the power supply end of the main control module, the input end of the hardware watchdog module is connected to one of the output ends of the main control module, and the output end of the hardware watchdog module is connected to the enable end of the power supply control module.

[0110] Among them, the power supply module supplies power to the power supply control module and the hardware watchdog module; the main control module sends a pulse signal to the hardware watchdog module to control its output signal; the hardware watchdog module controls the signal of the enable end of the power supply control module; the power supply control module controls the on and off of the power supply circuit of the main control module according to the signal of the enable end.

[0111] The working principle of the hardware watchdog system is as follows:

[0112] When the main control module works normally, a specific square wave signal is sent to the hardware watchdog module. The hardware watchdog module works normally and outputs a level signal (high level or low level, the output is set according to the level requirement of the enable end of the power supply control module, and "high / low level" is uniformly used instead of "high level or low level" and "low / high level" is used instead of "low level or high level") to enable the power supply control module to work normally.

[0113] After the main control module crashes, the signal sent to the hardware watchdog module will change from a specific square wave signal to a continuous high / low level (specifically determined by the pulse level before the main control module crashes), and the hardware watchdog module outputs an enable level (low / high level) to the enable end of the power supply control module, and the power supply control module stops working.

[0114] By further adjusting the values ​​of the circuit components in the hardware watchdog module, the output signal of the hardware watchdog module can be flexibly and effectively flipped within a certain period of time, thereby controlling the power supply control module to restore the power supply to the main control module, thereby enabling the main control module to automatically restart.

[0115] Figure 2 Shown is a structural schematic diagram of a preferred embodiment of a hardware watchdog module provided by the present invention.

[0116] like Figure 2 As shown, in a preferred embodiment, the hardware watchdog module includes a first power supply end, a second power supply end, a third power supply end, a fourth power supply end, an input end, an output end, a dynamic identification circuit 11, a deadlock confirmation circuit 12, a power-off time processing circuit 13, and an enable shutdown circuit 14; wherein,

[0117] The input end of the dynamic identification circuit 11 is connected to the input end of the hardware watchdog module, and the output end of the dynamic identification circuit 11 is connected to the input end of the deadlock confirmation circuit 12. The dynamic identification circuit 11 is used to generate a first signal according to the received pulse signal and send it to the deadlock confirmation circuit 12;

[0118] The output end of the crash confirmation circuit 12 is connected to the input end of the power-off time processing circuit 13, the first power supply end of the crash confirmation circuit 12 is connected to the first power supply end of the watchdog module, the second power supply end of the crash confirmation circuit 12 is connected to the second power supply end of the watchdog module, and the crash confirmation circuit 12 is used to generate a second signal according to the received first signal and send it to the power-off time processing circuit 13;

[0119] The output end of the power-off time processing circuit 13 is connected to the input end of the enable shutdown circuit 14, the power supply end of the power-off time processing circuit 13 is connected to the third power supply end of the watchdog module, and the power-off time processing circuit 13 is used to generate a third signal according to the received second signal and send it to the enable shutdown circuit 14;

[0120] The output end of the enable shutdown circuit 14 is connected to the output end of the hardware watchdog module, the power supply end of the enable shutdown circuit 14 is connected to the fourth power supply end of the watchdog module, and the enable shutdown circuit 14 is used to generate the level signal according to the received third signal and transmit it to the output end of the hardware watchdog module.

[0121] Figure 3 Shown is a circuit diagram of a preferred embodiment of a hardware watchdog module provided by the present invention.

[0122] like Figure 3 As shown, in a preferred embodiment, the switch tube adopts an NPN transistor, and the first end, the second end, and the third end of the switch tube correspond to the base, the emitter, and the collector of the transistor respectively. Then the dynamic identification circuit 11 includes a first capacitor C1, a first resistor R1, a first diode D1, a second diode D2, a second capacitor C2, a second resistor R2, and a third resistor R3; wherein,

[0123] One end of the first capacitor C1 is connected to the input end of the dynamic identification circuit 11, and the other end of the first capacitor C1 is connected to one end of the first resistor R1;

[0124] The other end of the first resistor R1 is connected to the anode of the second diode D2;

[0125] The anode of the first diode D1 is grounded, and the cathode of the first diode D1 is connected to the anode of the second diode D2;

[0126] The cathode of the second diode D2 is connected to one end of the second resistor R2;

[0127] One end of the second capacitor C2 is connected to one end of the second resistor R2, and the other end of the second capacitor C2 is grounded;

[0128] The other end of the second resistor R2 is connected to the output end of the dynamic identification circuit 11;

[0129] One end of the third resistor R3 is connected to the output end of the dynamic identification circuit 11, and the other end of the third resistor R3 is grounded.

[0130] It should be noted that the first diode D1 is not limited to the above connection method, and its cathode connection is specifically related to the driving force of the main control module. When the driving capability is strong, the cathode of the first diode D1 is connected to the right end of the first resistor R1; when the driving capability is weak, the cathode of the first diode D1 is connected to the left end of the first resistor R1.

[0131] Furthermore, the deadlock confirmation circuit 12 includes a first transistor Q1, a fourth resistor R4, a third capacitor C3, a first diode sub-circuit Dx, a transistor sub-circuit Qy, a second diode sub-circuit Dz, and a fifth resistor R5; wherein,

[0132] The base of the first transistor Q1 is connected to the input end of the dead-system confirmation circuit 11, the emitter of the first transistor Q1 is grounded, and the collector of the first transistor Q1 is connected to one end of the fourth resistor R4;

[0133] The other end of the fourth resistor R4 is connected to the first power supply end VDD1 of the dead confirmation circuit 11;

[0134] One end of the third capacitor C3 is connected to one end of the fourth resistor R4, and the other end of the third capacitor C3 is grounded;

[0135] The first end of the first diode sub-circuit Dx is connected to the collector of the first transistor Q1, and the second end of the first diode sub-circuit Dx is connected to the first end of the transistor sub-circuit Qy; the first diode sub-circuit Dx includes x diodes connected in series, x≥0, wherein the anode of the first diode is connected to the first end of the first diode sub-circuit Dx, the anode of the subsequent diode is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the first diode sub-circuit Dx;

[0136] The second end of the triode sub-circuit Qy is grounded, and the third end of the triode sub-circuit Qy is connected to one end of the fifth resistor R5; the triode sub-circuit Qy includes y triodes, y≥0, wherein the base of the first triode is connected to the first end of the triode sub-circuit Qy, the collector of the first triode is connected to the third end of the triode sub-circuit Qy, the emitter of the first triode is connected to the base of the next triode, the collector of the subsequent triode is connected to the third end of the triode circuit Qy, the emitter of the subsequent triode is connected to the base of the next triode, and the emitter of the last triode is grounded;

[0137] The other end of the fifth resistor R5 is connected to the second power supply end VDD2 of the dead confirmation circuit 12;

[0138] The first end of the second diode sub-circuit Dz is connected to one end of the fifth resistor R5, and the second end of the first diode sub-circuit Dz is connected to the output end of the crash confirmation circuit 12; the second diode sub-circuit Dz includes z diodes connected in series, z≥0, the anode of the first diode is connected to the first end of the second diode sub-circuit Dz, the anode of the subsequent diodes is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the second diode sub-circuit Dz.

[0139] The charging time constant formed by the fourth resistor R4 and the third capacitor C3 is greater than the startup time of the main control module.

[0140] The specific number of diodes in the first diode subcircuit Dx is determined by the level required by the circuit and the maximum voltage value charged to both ends of the third capacitor C3; the specific number of transistors in the triode subcircuit Qy is determined by the amplification factor required by the circuit and the maximum voltage value charged to both ends of the third capacitor C3; the specific number of diodes in the second diode subcircuit Dz is determined by the level required by the circuit. After determining the specific parameters of the circuit, those skilled in the art can flexibly set the values ​​of x, y, and z, and this embodiment does not limit this.

[0141] Furthermore, the power-off time processing circuit 13 includes a second transistor Q2, a sixth resistor R6, a fourth capacitor C4, a seventh resistor R7, an eighth resistor R8, a third diode D3 and a third transistor Q3; wherein,

[0142] The base of the second transistor Q2 is connected to the input end of the power-off time processing circuit 13, the collector of the second transistor Q2 is connected to one end of the sixth resistor R6, and the emitter of the second transistor Q2 is grounded;

[0143] The other end of the sixth resistor R6 is connected to the first power supply end VDD3 of the power-off time processing circuit 13;

[0144] One end of the fourth capacitor C4 is connected to one end of the sixth resistor R6, and the other end of the fourth capacitor C4 is connected to one end of the seventh resistor R7;

[0145] The other end of the seventh resistor R7 is connected to the base of the third transistor Q3;

[0146] One end of the eighth resistor R8 is connected to the base of the third transistor Q3, and the other end of the eighth resistor R8 is grounded;

[0147] The anode of the third diode D3 is grounded, and the cathode of the third diode D3 is connected to the base of the third transistor Q3;

[0148] The emitter of the third transistor Q3 is grounded, and the collector of the third transistor Q3 is connected to the output end of the power-off time processing circuit 13 .

[0149] In a preferred embodiment, the enabling shutdown circuit 14 includes a ninth resistor; wherein,

[0150] One end of the ninth resistor is connected to the power supply end of the enable shutdown circuit 14 , the other end of the ninth resistor is connected to the input end of the enable shutdown circuit 14 , and the other end of the ninth resistor is also connected to the output end of the enable shutdown circuit 14 .

[0151] As an example, in Figure 3 In the example, the high level of the enable terminal of the power supply control module is effective, X1 is the level signal output by the dynamic identification circuit 11 to the deadlock confirmation circuit 12; X2 is the level signal output by the deadlock confirmation circuit 12 to the power-off time processing circuit 13; X3 is the level signal output by the power-off time processing circuit 13 to the enable shutdown circuit 14; ENABLE is the level signal output by the enable shutdown circuit 14 to the enable terminal EN of the power supply control module. Then its operation is as follows:

[0152] 1. Initial power-on state

[0153] (1) When the power is just turned on, the potential of X1 is low, the first transistor Q1 is not turned on, and the third capacitor C3 is charged through the fourth resistor R4. Since the charging time constant formed by the fourth resistor R4 and the third capacitor C3 is greater than the startup time of the main control module, the voltage across the third capacitor C3 cannot rise quickly, so that the transistor sub-circuit Qy is in a cut-off state for a period of time after power-on, and then X2 outputs a high level, resulting in the second transistor Q2 being saturated and turned on, the third transistor Q3 being cut off, X3 being a high level, that is, the ENABLE signal is a high level, the power supply control module is powered normally, and the main control module is started normally;

[0154] (2) After the main control module starts normally, it outputs a square wave signal, so that the second capacitor C2 is quickly charged, so that X1 is at a high level, causing the first transistor Q1 to be saturated and turned on, and the third capacitor C3 is quickly discharged through the first transistor Q1, X2 remains at a high level, the second transistor Q2 remains turned on, the third transistor Q3 remains turned off, ENABLE remains at a high level, the power supply control module maintains normal power supply, and the main control chip works normally;

[0155] 2. Normal working status

[0156] When the main control module is working normally, it sends a specific square wave signal to the hardware watchdog module. The hardware watchdog module is working normally and outputs a continuous high level ENABLE. The power supply control module maintains normal power supply and the main control module is working normally.

[0157] 3. The main control module crashes

[0158] After the main control module crashes, the pulse on the left side of the first capacitor C1 disappears, and the level on the left side of the first capacitor C1 remains at the pulse level before the main control module crashes. Since the first capacitor C1 isolates DC, no matter whether the level on the left side of the first capacitor C1 is high or low, there is no high level to charge the second capacitor C2. The second capacitor C2 can only discharge through the second resistor R2 and the third resistor R3, so that the X1 potential changes from high to low, the first transistor Q1 is turned off, and the third capacitor C3 is charged through the fourth resistor R4; when the third capacitor C3 is charged to the transistor sub-circuit Qy is turned on, X2 changes from a high level to a low level, the second transistor Q2 is turned off, the third transistor Q3 is turned on, and the input of the enable end of the power supply control module is pulled down to a low level, the power supply control module is turned off, the main control module loses power and stops working, and various crash faults lose power and disappear;

[0159] 4. Restart the main control module

[0160] After the main control module crashes for a period of time, when the fourth capacitor C4 is charged to a low level at both ends of the eighth resistor R8, the third transistor Q3 is cut off, and X3 flips from a low level to a high level, so that the enable end level of the power supply control module is restored from a low level to a high level, and the power supply control module resumes normal power supply to the main control module, and the main control module starts and enters normal operation.

[0161] In this embodiment, when the main control module works abnormally, the time when the third capacitor C3 in the freeze confirmation circuit 12 is charged to the time when the triode circuit Qy is turned on is the time when the main control module goes from freeze to power off; the time when the fourth capacitor C4 in the power off time processing circuit 13 is charged to the time when the voltage level at both ends of the eighth resistor R8 is low is the time when the main control module goes from power off to eliminating the freeze.

[0162] The time constant formed by the values ​​of the fourth resistor R4 and the third capacitor C3 in the crash confirmation circuit 12 needs to be greater than the time from power-on to normal operation of the main control module. By adjusting the values ​​of the fourth resistor R4 and the third capacitor C3 in the crash confirmation circuit 12, the time from the crash to power-off of the main control module can be set. By adjusting the values ​​of the fourth capacitor C4, the sixth resistor R6, the seventh resistor R7, and the eighth resistor R8 in the power-off time processing circuit 13, the time from power-off to eliminating the crash of the main control module (i.e., the time of resetting and restarting) can be set. By adjusting the values ​​of these resistors and capacitors, the power-off time and restart time required by different models of main control modules can be met.

[0163] Figure 4 Shown is a structural schematic diagram of another preferred embodiment of a hardware watchdog module provided by the present invention.

[0164] like Figure 4 As shown, in another preferred embodiment, the hardware watchdog module includes a first power supply end, a second power supply end, an input end, an output end, a dynamic identification circuit 15, a deadlock confirmation circuit 16, a power-off time processing circuit 17 and an enable shutdown circuit 18; wherein,

[0165] The input end of the dynamic identification circuit 15 is connected to the input end of the hardware watchdog module, the output end of the dynamic identification circuit 15 is connected to the input end of the deadlock confirmation circuit 15, the power supply end of the dynamic identification circuit 15 is connected to the first power supply end of the watchdog module, and the dynamic identification circuit is used to generate a fourth signal according to the received pulse signal and send it to the deadlock confirmation circuit 16;

[0166] The output end of the deadlock confirmation circuit 16 is connected to the input end of the power-off time processing circuit 17, the power supply end of the deadlock confirmation circuit 16 is connected to the first power supply end of the watchdog module, and the deadlock confirmation circuit 16 is used to generate a fifth signal according to the received fourth signal and send it to the power-off time processing circuit 17;

[0167] The output end of the power-off time processing circuit 17 is connected to the input end of the enable shutdown circuit 18, the first power supply end and the second power supply end of the power-off time processing circuit 17 are respectively connected to the first power supply end and the second power supply end of the watchdog module, and the power-off time processing circuit 17 is used to generate a sixth signal according to the received fifth signal and send it to the enable shutdown circuit 18;

[0168] The output end of the enable shutdown circuit 18 is connected to the output end of the watchdog module, the power supply end of the enable shutdown circuit 18 is connected to the second power supply end of the watchdog module, and the enable shutdown circuit 18 is used to generate a level signal according to the received sixth signal and transmit it to the output end of the hardware watchdog module.

[0169] Figure 5 Shown is a circuit diagram of another preferred embodiment of a hardware watchdog module provided by the present invention.

[0170] like Figure 5 As shown, preferably, the switch tube adopts an NPN transistor, and the first end, the second end, and the third end of the switch tube correspond to the base, the emitter, and the collector of the transistor respectively. Then the dynamic identification circuit 15 includes a tenth resistor R10, a fifth capacitor C5, a fourth diode D4, a fifth diode D5, a sixth capacitor C6, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, a first voltage comparator N1, a seventh capacitor C7, a fourteenth resistor R14, a fifteenth resistor R15, and a sixteenth resistor R16; wherein,

[0171] One end of the tenth resistor R10 is connected to the input end of the dynamic identification circuit 15, and the other end of the tenth resistor R10 is connected to the power supply end VDD5 of the dynamic identification circuit 15;

[0172] One end of the fifth capacitor C5 is connected to one end of the tenth resistor R10, and the other end of the fifth capacitor C5 is connected to the anode of the fifth diode D5;

[0173] The anode of the fourth diode D4 is grounded, and the cathode of the fourth diode D4 is connected to the anode of the fifth diode D5;

[0174] The cathode of the fifth diode D5 is connected to the inverting input terminal of the first voltage comparator N1;

[0175] One end of the sixth capacitor C6 is connected to the inverting input end of the first voltage comparator N1, and the other end of the sixth capacitor C6 is grounded;

[0176] One end of the eleventh resistor R11 is connected to the inverting input end of the first voltage comparator N1, and the other end of the eleventh resistor R11 is grounded;

[0177] One end of the twelfth resistor R12 is connected to the non-inverting input end of the first voltage comparator N1, and the other end of the twelfth resistor R12 is grounded;

[0178] One end of the thirteenth resistor R13 is connected to the non-inverting input end of the first voltage comparator N1, and the other end of the thirteenth resistor R13 is connected to the power supply end VDD5 of the dynamic identification circuit 15;

[0179] One end of the fourteenth resistor R14 is connected to the non-inverting input end of the first voltage comparator N1, and the other end of the fourteenth resistor R14 is connected to the output end of the first voltage comparator N1;

[0180] One end of the fifteenth resistor R15 is connected to the output end of the first voltage comparator N1, and the other end of the fifteenth resistor R15 is connected to the power supply end VDD5 of the dynamic identification circuit 15;

[0181] The output end of the voltage comparator N1 is connected to one end of the sixteenth resistor R16;

[0182] One end of the seventh capacitor C7 is connected to the power supply terminal VDD5 of the dynamic identification circuit 15, and the other end of the seventh capacitor C7 is grounded;

[0183] The other end of the sixteenth resistor R16 is connected to the output end of the dynamic identification circuit 15 .

[0184] Preferably, the deadlock confirmation circuit 16 includes a fourth transistor Q4, a seventeenth resistor R17, an eighteenth resistor R18, a fifth transistor Q5, a nineteenth resistor R19, a twentieth resistor R20, an eighth capacitor C8, a twenty-first resistor R21, a twenty-second resistor R22, a second voltage comparator N2, a twenty-third resistor R23, a twenty-fourth resistor R24 ​​and a twenty-fifth resistor R25; wherein,

[0185] The base of the fourth transistor Q4 is connected to the input end of the dead-system confirmation circuit 16, the emitter of the fourth transistor Q4 is grounded, and the collector of the fourth transistor Q4 is connected to one end of the eighteenth resistor R18;

[0186] One end of the seventeenth resistor R17 is connected to one end of the eighteenth resistor R18, and the other end of the seventeenth resistor R17 is connected to the power supply terminal VDD5 of the deadlock confirmation circuit;

[0187] The other end of the eighteenth resistor R18 is connected to the base of the fifth transistor Q5;

[0188] The emitter of the fifth transistor Q5 is grounded, and the collector of the fifth transistor Q5 is connected to one end of the twentieth resistor R20;

[0189] One end of the nineteenth resistor R19 is connected to one end of the twentieth resistor R20, and the other end of the nineteenth resistor R19 is connected to the power supply end VDD5 of the dead confirmation circuit 16;

[0190] The other end of the 20th resistor R20 is connected to the inverting input end of the second voltage comparator N2;

[0191] One end of the twenty-first resistor R21 is connected to the non-inverting input end of the second voltage comparator N2, and the other end of the twenty-first resistor R20 is grounded;

[0192] One end of the 22nd resistor R22 is connected to the non-inverting input end of the second voltage comparator N2, and the other end of the 22nd resistor R22 is connected to the power supply end VDD5 of the dead confirmation circuit 16;

[0193] One end of the 23rd resistor R23 is connected to the non-inverting input end of the second voltage comparator N2, and the other end of the 23rd resistor R23 is connected to the output end of the second voltage comparator N2;

[0194] One end of the 24th resistor R24 ​​is connected to the output end of the second voltage comparator N2, and the other end of the 24th resistor R24 ​​is connected to the power supply end VDD5 of the dead confirmation circuit 16;

[0195] The output end of the second voltage comparator N2 is connected to one end of the twenty-fifth resistor R25;

[0196] The other end of the twenty-fifth resistor R25 is connected to the output end of the deadlock confirmation circuit 16 .

[0197] The charging time constant formed by the nineteenth resistor R19 and the eighth capacitor C8 is greater than the startup time of the main control module.

[0198] Preferably, the power-off time processing circuit 17 includes a sixth transistor Q6, a twenty-sixth resistor R26, a ninth capacitor C9, a twenty-seventh resistor R27, a sixth diode D6, a twenty-eighth resistor R28, a twenty-ninth resistor R29, a thirtieth resistor R30, a third voltage comparator N3, a thirty-first resistor R31 and a thirty-second resistor R32; wherein,

[0199] The base of the sixth transistor Q6 is connected to the input end of the power-off time processing circuit 17, the emitter of the sixth transistor Q6 is grounded, and the collector of the sixth transistor Q6 is connected to one end of the twenty-sixth resistor R26;

[0200] The other end of the twenty-sixth resistor R26 is connected to the first power supply end VDD5 of the power-off time processing circuit 17;

[0201] One end of the ninth capacitor C9 is connected to one end of the twenty-sixth resistor R26, and the other end of the ninth capacitor C9 is connected to the inverting input end of the third voltage comparator N3;

[0202] One end of the 27th resistor R27 is connected to the inverting input end of the third voltage comparator N3, and the other end of the 27th resistor R27 is grounded;

[0203] The anode of the sixth diode D6 is grounded, and the cathode of the sixth diode D6 is connected to the cathode of the third voltage comparator N3;

[0204] One end of the 28th resistor R28 is connected to the non-inverting input end of the third voltage comparator N3, and the other end of the 28th resistor R28 is connected to the second power supply end VDD6 of the power-off time processing circuit 17;

[0205] One end of the 29th resistor R29 is connected to the non-inverting input end of the third voltage comparator N3, and the other end of the 29th resistor R29 is grounded;

[0206] One end of the 30th resistor R30 is connected to the non-inverting input end of the third voltage comparator N3, and the other end of the 30th resistor R30 is connected to the output end of the third voltage comparator N3;

[0207] One end of the thirty-first resistor R31 is connected to the output end of the third voltage comparator N3, and the other end of the thirty-first resistor R31 is connected to the second power supply end VDD6 of the power-off time processing circuit 17;

[0208] The output end of the third voltage comparator N3 is connected to one end of the thirty-second resistor R32;

[0209] The other end of the thirty-second resistor R32 is connected to the output end of the power-off time processing circuit 17 .

[0210] Preferably, the enabling shutdown circuit 18 includes a fourth voltage comparator N4, a thirty-third resistor R33, a thirty-fourth resistor R34, a thirty-fifth resistor R35 and a thirty-sixth resistor R36; wherein,

[0211] The non-inverting input terminal of the fourth voltage comparator N4 is connected to the input terminal of the enable shutdown circuit 18;

[0212] One end of the thirty-third resistor R33 is connected to the inverting input end of the fourth voltage comparator N4, and the other end of the thirty-third resistor R33 is connected to the power supply end VDD6 of the enable shutdown circuit 18;

[0213] One end of the thirty-fourth resistor R34 is connected to the inverting input end of the fourth voltage comparator N4, and the other end of the thirty-fourth resistor R34 is grounded;

[0214] One end of the thirty-fifth resistor R35 is connected to the non-inverting input end of the fourth voltage comparator N4, and the other end of the thirty-fifth resistor R35 is connected to the output end of the fourth voltage comparator N4;

[0215] One end of the thirty-sixth resistor R36 is connected to the output end of the fourth voltage comparator N4, and the other end of the thirty-sixth resistor R36 is connected to the power supply end VDD6 of the enable shutdown circuit 18;

[0216] The output terminal of the fourth voltage comparator N4 is connected to the output terminal of the enable shutdown circuit 18 .

[0217] Preferably, the voltages of VDD5 and VDD6 are equal.

[0218] As an example, in Figure 5 In the example, the high level of the enable terminal of the power supply control module is effective, X4 is the level signal output by the dynamic identification circuit 15 to the deadlock confirmation circuit 16; X5 is the level signal output by the deadlock confirmation circuit 16 to the power-off time processing circuit 17; X6 is the level signal output by the power-off time processing circuit 17 to the enable shutdown circuit 18; ENABLE is the level signal output by the enable shutdown circuit 18 to the enable terminal EN of the power supply control module. Then its operation is as follows:

[0219] 1. Initial power-on state

[0220] (1) When the power is just turned on, since there is no pulse signal at the connection between the tenth resistor R10 and the fifth capacitor C5, the negative electrode potential of the first voltage comparator N1 is low, and the input voltage Vin- <V in+ , the first comparator N1 outputs a high level, X4 is a high level, so that the fourth transistor Q4 is saturated and turned on, the fifth transistor Q5 is turned off, and the eighth capacitor C8 is charged through the nineteenth resistor R19. Since the charging time constant formed by the nineteenth resistor R19 and the eighth capacitor C8 is greater than the startup time of the main control module, the voltage across the eighth capacitor C8 cannot rise quickly, so that the input voltage of the second voltage comparator N2 is maintained at: V in- <V in+ , X5 outputs a high level, causing the sixth transistor Q6 to be saturated and turned on, and the input voltage of the third voltage comparator N3 is: V in- <V in+ , X6 is high level. That is, the ENABLE signal is high level, the power supply control module is powered normally, and the main control module starts normally;

[0221] (2) After the main control module starts normally, it outputs a square wave signal, so that the sixth capacitor C6 is quickly charged, the negative electrode potential of the first voltage comparator N1 increases, and X4 flips from a high level to a low level, causing the fourth transistor Q4 to be cut off and the fifth transistor Q5 to be saturated and turned on, and the eighth capacitor C8 is quickly discharged through the fifth transistor Q5, and X5 remains at a high level; causing the sixth transistor Q6 to remain turned on, X6 remains at a high level, ENABLE remains at a high level, the power supply control module maintains normal power supply, and the main control module operates normally;

[0222] 2. Normal working status

[0223] When the main control module is working normally, it sends a specific square wave signal to the hardware watchdog module. The hardware watchdog module is working normally, and the output is continuously high level ENABLE. The power supply control module maintains normal power supply, and the main control module is working normally.

[0224] 3. The main control module crashes

[0225] After the main control module crashes, the pulse at the connection between the tenth resistor R10 and the fifth capacitor C5 disappears, so that the level on the left side of the fifth capacitor C5 remains at the pulse level before the main control module crashes. Since the fifth capacitor C5 isolates DC, no matter whether the level on the left side of the fifth capacitor C5 is high or low, there is no high level to charge the sixth capacitor C6. The sixth capacitor C6 can only be discharged through the eleventh resistor R11, so that the negative electrode potential of the first voltage comparator N1 changes from high to low, and X4 flips from a low level to a high level, causing the fourth transistor Q4 to be saturated and turned on, the fifth transistor Q5 to be turned off, and the eighth capacitor C8 to be charged through the nineteenth resistor R19; when the eighth capacitor C8 is charged to the input terminal voltage of the second voltage comparator N2 becomes V in- >V in+When , X5 changes from high level to low level, and the sixth transistor Q6 is cut off; X6 changes from high level to low level; the fourth voltage comparator N4 outputs ENABLE as low level, the power supply control module is turned off, the main control module loses power and stops working, and various crash faults lose power and disappear;

[0226] 4. Restart the main control module

[0227] After the main control module crashes for a period of time, when the ninth capacitor C9 is charged to a low level at both ends of the twenty-seventh resistor R27, X5 flips from a low level to a high level, so that the enable end of the power supply control module returns to a high level, and the power supply control module resumes normal power supply to the main control module, and the main control module starts and enters normal operation.

[0228] In this embodiment, when the main control module works abnormally, the eighth capacitor C8 in the deadlock confirmation circuit 16 is charged until the input voltage of the second voltage comparator N2 becomes V in- >V in+ power-off time processing circuit 17 in the ninth capacitor C9 charged to the twenty-seventh resistor R27 across the low level of the time is the main control module from power off to eliminate the dead time.

[0229] By adjusting the values ​​of the nineteenth resistor R19 and the eighth capacitor C8 in the deadlock confirmation circuit 16, the time from deadlock to power-off of the main control module can be set. By adjusting the values ​​of the twenty-sixth resistor R26, the twenty-seventh resistor R27, and the ninth capacitor C9 in the power-off time processing circuit 17, the time from power-off to elimination of deadlock (i.e., the time of resetting and restarting) of the main control module can be set. By adjusting the values ​​of these resistors and capacitors, the power-off time and restart time required by different models of main control modules can be met.

[0230] Figure 6 Shown is a structural schematic diagram of another preferred embodiment of a hardware watchdog system provided by the present invention.

[0231] like Figure 6 As shown, in another preferred embodiment, the system further includes N functional modules, N ≥ 1;

[0232] Among them, each functional module is powered by the power supply module and controlled by the main control module, so as to realize the corresponding business function.

[0233] The functional modules can be set when the product leaves the factory or according to the actual needs of the user to meet the needs of different users. This embodiment does not limit its specific functions.

[0234] In summary, an embodiment of the present invention provides a hardware watchdog system. When the main control module is in various freeze states, the hardware watchdog system will not lose its working ability and can restart the main control module within the required time. The hardware watchdog module is composed of independent pure circuit components. By setting the sizes of some resistors and capacitors therein, the time from freeze to power off and the time from power off to restart of the main control module can be flexibly adjusted, which can meet the needs of different products.

[0235] The above description is only a preferred embodiment of the present invention, but the protection scope of the present invention is not limited thereto. It should be pointed out that for those skilled in the art, several equivalent obvious deformations and / or equivalent substitutions can be made without departing from the technical principles of the present invention. These obvious deformations and / or equivalent substitutions should also be regarded as the protection scope of the present invention.

Claims

1. A hardware watchdog system, characterized in that: The system includes a power supply module, a main control module, a hardware watchdog module and a power supply control module; wherein, The power supply module is used to supply power to the power supply control module and the hardware watchdog module; The main control module is used to send a pulse signal to the hardware watchdog module; The hardware watchdog module is used to analyze the received pulse signal and send a level signal to the power supply control module according to the analysis result; The power supply control module is used to supply power to the main control module, and control power on and power off of the main control module according to the received level signal; The hardware watchdog module includes a dynamic identification circuit, a deadlock confirmation circuit, a power-off time processing circuit and an enabling shutdown circuit; The dynamic identification circuit is used to generate a first signal according to the received pulse signal and send it to the deadlock confirmation circuit; The crash confirmation circuit is used to generate a second signal according to the received first signal and send it to the power-off time processing circuit; by adjusting the parameter values ​​of the fourth resistor and the third capacitor in the crash confirmation circuit, the time from crash to power-off of the main control module is adjusted; The power-off time processing circuit is used to generate a third signal according to the received second signal and send the third signal to the enabling shutdown circuit; The enabling shutdown circuit is used to generate the level signal according to the received third signal and transmit it to the output end of the hardware watchdog module; The deadlock confirmation circuit includes a first switch tube, a fourth resistor, a third capacitor, a first diode subcircuit, a switch tube circuit, a second diode subcircuit and a fifth resistor; wherein, The first end of the first switch tube is connected to the input end of the deadlock confirmation circuit, the second end of the first switch tube is grounded, and the third end of the first switch tube is connected to one end of the fourth resistor; The other end of the fourth resistor is connected to the first power supply end of the deadlock confirmation circuit; One end of the third capacitor is connected to one end of the fourth resistor, and the other end of the third capacitor is grounded; The first end of the first diode subcircuit is connected to the third end of the first switch tube, and the second end of the first diode subcircuit is connected to the first end of the switch tube circuit; the first diode subcircuit includes x diodes connected in series, x≥0, wherein the anode of the first diode is connected to the first end of the first diode subcircuit, the anode of the subsequent diode is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the first diode subcircuit; The second end of the switch tube circuit is grounded, and the third end of the switch tube circuit is connected to one end of the fifth resistor; the switch tube circuit includes y switch tubes, y≥0, wherein the first end of the first switch tube is connected to the first end of the switch tube circuit, the third end of the first switch tube is connected to the third end of the switch tube circuit, the second end of the first switch tube is connected to the first end of the next switch tube, the third end of the subsequent switch tube is connected to the third end of the switch tube circuit, the second end of the subsequent switch tube is connected to the first end of the next switch tube, and the second end of the last switch tube is grounded; The other end of the fifth resistor is connected to the second power supply end of the deadlock confirmation circuit; The first end of the second diode sub-circuit is connected to one end of the fifth resistor, and the second end of the second diode sub-circuit is connected to the output end of the crash confirmation circuit; the second diode sub-circuit includes z diodes connected in series, z≥0, the anode of the first diode is connected to the first end of the second diode sub-circuit, the anode of the subsequent diodes is connected to the cathode of the previous diode, and the cathode of the last diode is connected to the second end of the second diode sub-circuit.

2. The hardware watchdog system according to claim 1, characterized in that: The hardware watchdog module further includes a first power supply terminal, a second power supply terminal, a third power supply terminal, a fourth power supply terminal, an input terminal and an output terminal; wherein, The input end of the dynamic identification circuit is connected to the input end of the hardware watchdog module, and the output end of the dynamic identification circuit is connected to the input end of the deadlock confirmation circuit; The output end of the crash confirmation circuit is connected to the input end of the power-off time processing circuit, the first power supply end of the crash confirmation circuit is connected to the first power supply end of the watchdog module, and the second power supply end of the crash confirmation circuit is connected to the second power supply end of the watchdog module; The output end of the power-off time processing circuit is connected to the input end of the enable shutdown circuit, and the power supply end of the power-off time processing circuit is connected to the third power supply end of the watchdog module; The output end of the enabling shutdown circuit is connected to the output end of the hardware watchdog module, and the power supply end of the enabling shutdown circuit is connected to the fourth power supply end of the watchdog module.

3. The hardware watchdog system according to claim 2, characterized in that: The dynamic identification circuit includes a first capacitor, a first resistor, a first diode, a second diode, a second capacitor, a second resistor and a third resistor; wherein, One end of the first capacitor is connected to the input end of the dynamic identification circuit, and the other end of the first capacitor is connected to one end of the first resistor; The other end of the first resistor is connected to the anode of the second diode; The anode of the first diode is grounded, and the cathode of the first diode is connected to the anode of the second diode; The cathode of the second diode is connected to one end of the second resistor; One end of the second capacitor is connected to one end of the second resistor, and the other end of the second capacitor is grounded; The other end of the second resistor is connected to the output end of the dynamic identification circuit; One end of the third resistor is connected to the output end of the dynamic identification circuit, and the other end of the third resistor is grounded.

4. The hardware watchdog system according to claim 2, characterized in that: The power-off time processing circuit includes a second switch tube, a sixth resistor, a fourth capacitor, a seventh resistor, an eighth resistor, a third diode and a third switch tube; wherein, The first end of the second switch tube is connected to the input end of the power-off time processing circuit, the third end of the second switch tube is connected to one end of the sixth resistor, and the second end of the second switch tube is grounded; The other end of the sixth resistor is connected to the power supply end of the power-off time processing circuit; One end of the fourth capacitor is connected to one end of the sixth resistor, and the other end of the fourth capacitor is connected to one end of the seventh resistor; The other end of the seventh resistor is connected to the first end of the third switch tube; One end of the eighth resistor is connected to the first end of the third switch tube, and the other end of the eighth resistor is grounded; The anode of the third diode is grounded, and the cathode of the third diode is connected to the first end of the third switch tube; The second end of the third switch tube is grounded, and the third end of the third switch tube is connected to the output end of the power-off time processing circuit.

5. The hardware watchdog system according to claim 2, characterized in that: The enabling shutdown circuit includes a ninth resistor; wherein, One end of the ninth resistor is connected to the power supply end of the enable shutdown circuit, the other end of the ninth resistor is connected to the input end of the enable shutdown circuit, and the other end of the ninth resistor is also connected to the output end of the enable shutdown circuit.

6. The hardware watchdog system according to claim 1, characterized in that: The hardware watchdog module also includes a first power supply terminal, a second power supply terminal, an input terminal and an output terminal; wherein, The input end of the dynamic identification circuit is connected to the input end of the hardware watchdog module, the output end of the dynamic identification circuit is connected to the input end of the deadlock confirmation circuit, and the power supply end of the dynamic identification circuit is connected to the first power supply end of the watchdog module; The output end of the crash confirmation circuit is connected to the input end of the power-off time processing circuit, and the power supply end of the crash confirmation circuit is connected to the first power supply end of the watchdog module; The output end of the power-off time processing circuit is connected to the input end of the enable shutdown circuit, the first power supply end of the power-off time processing circuit is connected to the first power supply end of the watchdog module, and the second power supply end of the power-off time processing circuit is connected to the second power supply end of the watchdog module; The output end of the enabling shutdown circuit is connected to the output end of the watchdog module, and the power supply end of the enabling shutdown circuit is connected to the second power supply end of the watchdog module.

7. The hardware watchdog system according to claim 6, characterized in that: The dynamic identification circuit includes a tenth resistor, a fifth capacitor, a fourth diode, a fifth diode, a sixth capacitor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a first voltage comparator, a seventh capacitor, a fourteenth resistor, a fifteenth resistor and a sixteenth resistor; wherein, One end of the tenth resistor is connected to the input end of the dynamic identification circuit, and the other end of the tenth resistor is connected to the power supply end of the dynamic identification circuit; One end of the fifth capacitor is connected to one end of the tenth resistor, and the other end of the fifth capacitor is connected to the anode of the fifth diode; The anode of the fourth diode is grounded, and the cathode of the fourth diode is connected to the anode of the fifth diode; The cathode of the fifth diode is connected to the inverting input terminal of the first voltage comparator; One end of the sixth capacitor is connected to the inverting input end of the first voltage comparator, and the other end of the sixth capacitor is grounded; One end of the eleventh resistor is connected to the inverting input end of the first voltage comparator, and the other end of the eleventh resistor is grounded; One end of the twelfth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the twelfth resistor is grounded; One end of the thirteenth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the thirteenth resistor is connected to the power supply end of the dynamic identification circuit; One end of the fourteenth resistor is connected to the non-inverting input end of the first voltage comparator, and the other end of the fourteenth resistor is connected to the output end of the first voltage comparator; One end of the fifteenth resistor is connected to the output end of the first voltage comparator, and the other end of the fifteenth resistor is connected to the power supply end of the dynamic identification circuit; The output terminal of the first voltage comparator is connected to one end of the sixteenth resistor; The other end of the sixteenth resistor is connected to the output end of the dynamic identification circuit; One end of the seventh capacitor is connected to the power supply end of the dynamic identification circuit, and the other end of the seventh capacitor is grounded.

8. The hardware watchdog system according to claim 6, characterized in that: The deadlock confirmation circuit includes a fourth switch tube, a seventeenth resistor, an eighteenth resistor, a fifth switch tube, a nineteenth resistor, a twentieth resistor, an eighth capacitor, a twenty-first resistor, a twenty-second resistor, a second voltage comparator, a twenty-third resistor, a twenty-fourth resistor and a twenty-fifth resistor; wherein, A first end of the fourth switch tube is connected to an input end of the deadlock confirmation circuit, a second end of the fourth switch tube is grounded, and a third end of the fourth switch tube is connected to one end of the eighteenth resistor; One end of the seventeenth resistor is connected to one end of the eighteenth resistor, and the other end of the seventeenth resistor is connected to the power supply end of the deadlock confirmation circuit; The other end of the eighteenth resistor is connected to the first end of the fifth switch tube; The second end of the fifth switch tube is grounded, and the third end of the fifth switch tube is connected to one end of the twentieth resistor; One end of the nineteenth resistor is connected to one end of the twentieth resistor, and the other end of the nineteenth resistor is connected to the power supply end of the deadlock confirmation circuit; The other end of the twentieth resistor is connected to the inverting input end of the second voltage comparator; One end of the twenty-first resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the twenty-first resistor is grounded; One end of the 22nd resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the 22nd resistor is connected to the power supply end of the deadlock confirmation circuit; One end of the twenty-third resistor is connected to the non-inverting input end of the second voltage comparator, and the other end of the twenty-third resistor is connected to the output end of the second voltage comparator; One end of the 24th resistor is connected to the output end of the second voltage comparator, and the other end of the 24th resistor is connected to the power supply end of the deadlock confirmation circuit; The output terminal of the second voltage comparator is connected to one end of the twenty-fifth resistor; The other end of the twenty-fifth resistor is connected to the output end of the deadlock confirmation circuit.

9. The hardware watchdog system according to claim 6, characterized in that: The power-off time processing circuit includes a sixth switch tube, a twenty-sixth resistor, a ninth capacitor, a twenty-seventh resistor, a sixth diode, a twenty-eighth resistor, a twenty-ninth resistor, a thirtieth resistor, a third voltage comparator, a thirty-first resistor and a thirty-second resistor; wherein, A first end of the sixth switch tube is connected to an input end of the power-off time processing circuit, a second end of the sixth switch tube is grounded, and a third end of the sixth switch tube is connected to one end of the twenty-sixth resistor; The other end of the twenty-sixth resistor is connected to the first power supply end of the power-off time processing circuit; One end of the ninth capacitor is connected to one end of the twenty-sixth resistor, and the other end of the ninth capacitor is connected to the inverting input end of the third voltage comparator; One end of the twenty-seventh resistor is connected to the inverting input end of the third voltage comparator, and the other end of the twenty-seventh resistor is grounded; The anode of the sixth diode is grounded, and the cathode of the sixth diode is connected to the inverting input terminal of the third voltage comparator; One end of the 28th resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the 28th resistor is connected to the second power supply end of the power-off time processing circuit; One end of the twenty-ninth resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the twenty-ninth resistor is grounded; One end of the 30th resistor is connected to the non-inverting input end of the third voltage comparator, and the other end of the 30th resistor is connected to the output end of the third voltage comparator; One end of the thirty-first resistor is connected to the output end of the third voltage comparator, and the other end of the thirty-first resistor is connected to the second power supply end of the power-off time processing circuit; The output end of the third voltage comparator is connected to one end of the thirty-second resistor; The other end of the thirty-second resistor is connected to the output end of the power-off time processing circuit.

10. The hardware watchdog system according to claim 6, characterized in that: The enabling shutdown circuit includes a fourth voltage comparator, a thirty-third resistor, a thirty-fourth resistor, a thirty-fifth resistor and a thirty-sixth resistor; wherein, The non-inverting input terminal of the fourth voltage comparator is connected to the input terminal of the enable shutdown circuit; One end of the thirty-third resistor is connected to the inverting input end of the fourth voltage comparator, and the other end of the thirty-third resistor is connected to the power supply end of the enable shutdown circuit; One end of the thirty-fourth resistor is connected to the inverting input end of the fourth voltage comparator, and the other end of the thirty-fourth resistor is grounded; One end of the thirty-fifth resistor is connected to the non-inverting input end of the fourth voltage comparator, and the other end of the thirty-fifth resistor is connected to the output end of the fourth voltage comparator; One end of the thirty-sixth resistor is connected to the output end of the fourth voltage comparator, and the other end of the thirty-sixth resistor is connected to the power supply end of the enable shutdown circuit; The output terminal of the fourth voltage comparator is connected to the output terminal of the enable shutdown circuit.