Microcontroller reset architecture and electronic equipment
By designing the microcontroller reset architecture and using resistors, capacitors and switch tube modules to output low-level start signals, the problem of unreliable reset when the microcontroller crashes is solved, and a low-cost, high-reliability reset function is achieved.
Patent Information
- Application Number
- CN202420478835.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-03-12
AI Technical Summary
When the microcontroller crashes, the internal reset source cannot be reset effectively in time, and the external watchdog chip is expensive and has low adjustability, resulting in high reset cost and unreliability.
Design a microcontroller reset architecture, including a reset startup circuit, using resistors, capacitors and switch tube modules to output a low-level startup signal to achieve reset when the microcontroller crashes. It has a simple structure and low cost.
It ensures that the microcontroller starts the reset in time when it crashes, improves the reliability of the reset function, and reduces the reset cost. It is more economical than the external reset startup circuit.
Smart Images

Figure CN221927077U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a microcontroller reset architecture and electronic equipment. Background Art
[0002] Microcontrollers, or MCUs (Micro controller units), are widely used in industrial control and consumer products. If the MCU is disturbed, it may freeze, run away, or experience other faults, which can lead to unpredictable consequences and have adverse effects on users and even the entire society. There are various reset sources inside the MCU, but when the power supply is normal, the internal reset source may not be able to reset effectively in time. External watchdog chips can also achieve effective reset of the MCU, but their prices are relatively high and their adjustability is low. Utility Model Content
[0003] The main purpose of the present application is to provide a microcontroller reset architecture and electronic equipment, aiming to solve the technical problem of how to reduce costs while achieving effective microcontroller reset.
[0004] To achieve the above object, the present application provides a microcontroller reset architecture, the microcontroller reset architecture comprising:
[0005] Microcontroller;
[0006] A reset start circuit, wherein the input end of the reset start circuit is connected to the pulse width modulation signal output end of the microcontroller, and the output end of the reset start circuit is connected to the reset end of the microcontroller. The reset start circuit is used to output a low-level start signal to the microcontroller according to the signal output by the pulse width modulation signal output end when the microcontroller crashes, so as to reset the microcontroller, wherein the reset start circuit includes a resistor, a capacitor and a switch tube.
[0007] Optionally, the microcontroller comprises:
[0008] A universal input-output module, the universal input-output module is connected to the input end of the reset start circuit, and the universal input-output module is used to output an electrical signal;
[0009] A timer, the timer is connected to the universal input-output module, and the timer is used to periodically flip the electrical signal to adjust the electrical signal to the pulse width modulation signal;
[0010] A reset module, the input end of the reset module is connected to the output end of the reset start circuit, and the reset module is used to reset according to the low level start signal;
[0011] A recording module, the recording module is connected to the input end of the reset module, and the recording module is used to perform reset recording according to the start signal.
[0012] Optionally, the reset startup circuit includes:
[0013] DC power supply;
[0014] A first capacitor, one end of which is connected to the universal input and output module;
[0015] A switch tube module, wherein a first end of the switch tube module is connected to a DC power supply, a second end of the switch tube module is connected to the other end of the first capacitor, and a third end of the switch tube module is connected to an input end of the reset module;
[0016] A first resistor, one end of the first resistor is connected to the third end of the switch tube module, and the other end of the first resistor is grounded;
[0017] A second capacitor, one end of the second capacitor is connected to the third end of the switch tube module, and the other end of the second capacitor is grounded.
[0018] Optionally, when the microcontroller operates normally, the general input and output module outputs the pulse width modulation signal under the flipping action of the timer, the second end of the switch tube module is connected to the pulse width modulation signal through the first capacitor, the switch tube module is intermittently turned on, and the second capacitor is charged, so that the input end of the reset module is connected to a high-level signal, and the reset is not started.
[0019] Optionally, when the microcontroller crashes, the universal input-output module continues to output a high-level signal or a low-level signal, the first capacitor blocks the high-level signal or the low-level signal, the switch tube module is cut off, and the second capacitor discharges through the first resistor, so that the input end of the reset module is connected to the low-level start signal to start resetting.
[0020] Optionally, the switch tube module includes:
[0021] A triode, the emitter of which is connected to the DC power supply;
[0022] An input resistor connected between the emitter and the base of the transistor;
[0023] a base resistor, one end of which is connected to the other end of the first capacitor, and the other end of which is connected to the base of the transistor;
[0024] An output resistor, one end of which is connected to the collector of the transistor, and the other end of which is the input end of the reset module.
[0025] Optionally, the first resistor includes a variable resistor, and the variable resistor is used to adjust the reset time by changing a resistance value.
[0026] Optionally, the second capacitor includes a variable capacitor, and the variable capacitor is used to adjust the reset time by changing a capacitance value.
[0027] Optionally, the recording module includes a memory.
[0028] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes the microcontroller reset architecture as described above.
[0029] The present application proposes a microcontroller reset architecture and electronic equipment, the microcontroller reset architecture includes: a microcontroller; a reset start circuit, the input end of the reset start circuit is connected to the pulse width modulation signal output end of the microcontroller, the output end of the reset start circuit is connected to the reset end of the microcontroller, the reset start circuit is used to output a low-level start signal to the microcontroller according to the signal output from the pulse width modulation signal output end in the case of a crash of the microcontroller, so as to reset the microcontroller, wherein the reset start circuit includes a resistor, a capacitor and a switch tube. The microcontroller reset architecture of the present application can ensure that the microcontroller starts to reset in time in the event of a crash, thereby improving the reliability of the reset function of the microcontroller. At the same time, the microcontroller reset architecture has a simple structure and is less expensive than the external reset start circuit of other microcontrollers. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0031] Figure 1 A schematic diagram of a microcontroller reset architecture provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of the structure of a microcontroller in a microcontroller reset architecture provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of the structure of a reset start circuit in a microcontroller reset architecture provided in an embodiment of the present application;
[0034] Figure 4A schematic diagram of the structure of a switch tube module in a microcontroller reset architecture provided in an embodiment of the present application;
[0035] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0036] Description of Figure Numbers:
[0037] Label name Label name 10 Microcontroller 20 Reset startup circuit 11 General purpose input and output modules 12 Timer 13 Reset module 14 Recording Module 21 Switching tube module C1 First capacitor C2 Second capacitor U DC Power Supply R1 First resistor R2 Input resistance R3 Base resistance R4 Output resistance T1 triode 02 Microcontroller reset architecture 01 Electronic devices
[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0041] In addition, the descriptions of "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the meaning of "and / or" appearing in the full text is to include three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B.
[0042] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" 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 an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0043] It should also be understood that the references to "one embodiment" or "some embodiments" described in the specification of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0044] Microcontrollers, or MCUs, are widely used in industrial control and consumer products. If the MCU is disturbed, it may freeze, run into program errors, and other faults, which can lead to unpredictable consequences and have adverse effects on users and even the entire society. There are various reset sources inside the MCU, but when the power supply is normal, the internal reset source may not be able to reset effectively in time. External watchdog chips can also achieve effective reset of the MCU, but their prices are relatively high and their adjustability is low.
[0045] Based on this, the present application proposes a microcontroller reset architecture and electronic equipment, the microcontroller reset architecture includes: a microcontroller; a reset start circuit, the input end of the reset start circuit is connected to the pulse width modulation signal output end of the microcontroller, the output end of the reset start circuit is connected to the reset end of the microcontroller, the reset start circuit is used to output a low-level start signal to the microcontroller according to the signal output by the pulse width modulation signal output end in the case of a crash of the microcontroller, so as to reset the microcontroller, wherein the reset start circuit includes a resistor, a capacitor and a switch tube. The microcontroller reset architecture of the present application can ensure that the microcontroller starts to reset in time in the event of a crash, thereby improving the reliability of the reset function of the microcontroller. At the same time, the microcontroller reset architecture has a simple structure and is less expensive than the external reset start circuit of other microcontrollers.
[0046] The present application embodiment provides a microcontroller reset architecture, referring to Figure 1 , Figure 1 A schematic diagram of a microcontroller reset architecture provided in an embodiment of the present application, wherein the microcontroller reset architecture includes:
[0047] Microcontroller 10;
[0048] A reset start circuit 20, wherein the input end of the reset start circuit 20 is connected to the pulse width modulation signal output end of the microcontroller 10, and the output end of the reset start circuit 20 is connected to the reset end of the microcontroller 10. The reset start circuit 20 is used to output a low-level start signal to the microcontroller 10 according to the signal output from the pulse width modulation signal output end when the microcontroller 10 crashes, so as to reset the microcontroller 10, wherein the reset start circuit 20 includes a resistor, a capacitor and a switch tube.
[0049] In this embodiment, the microcontroller reset architecture can realize the external reset function of the microcontroller 10, that is, the MCU, to prevent the internal reset source of the MCU from being unable to be reset in time and effectively due to the normal power supply of the MCU, causing adverse effects. At the same time, the microcontroller reset architecture of this embodiment has a simple structure and is lower in cost compared to other MCU external reset startup circuits, such as a circuit composed of a watchdog chip.
[0050] The microcontroller reset structure includes a microcontroller 10 and a reset start circuit 20. The input end and the output end of the reset start circuit 20 are respectively connected to the pulse width modulation signal output end and the reset end of the microcontroller 10. When the microcontroller 10 operates normally, its pulse width modulation signal output end normally outputs a pulse width modulation signal, i.e., a PWM signal (Pulse Width Modulation). When the input end of the reset start circuit 20 is connected to the PWM signal, its output end outputs a high level signal, and the reset end of the microcontroller 10 is low level valid and high level invalid. Therefore, the reset will not be started in this case; when the microcontroller 10 crashes, its pulse width modulation signal output end continuously outputs a low level signal or a high level signal. When the input end of the reset start circuit 20 is connected to a high level signal or a low level signal, its output end outputs a low level signal, i.e., a low level start signal. The reset end of the microcontroller 10 is connected to a low level signal to start the reset.
[0051] In this embodiment, the microcontroller 10 is designed to output different signals to the reset start circuit 20 during normal operation and when a crash occurs, so that the reset start circuit 20 outputs different level signals and feeds back to the reset end of the microcontroller 10, so that the microcontroller 10 can start the reset function in time when a crash occurs, avoiding adverse effects. The microcontroller reset architecture of this embodiment is simple in structure, and the reset start circuit 20 is composed of common cheap components such as resistors and capacitors, which greatly reduces the cost while achieving effective reset of the microcontroller 10.
[0052] Reference Figure 2 In some feasible embodiments, the microcontroller 10 includes:
[0053] A universal input-output module 11, wherein the universal input-output module 11 is connected to an input end of the reset start circuit 20, and the universal input-output module 11 is used to output an electrical signal;
[0054] A timer 12, wherein the timer 12 is connected to the universal input-output module 11, and the timer 12 is used to periodically flip the electrical signal to adjust the electrical signal to the pulse width modulation signal;
[0055] A reset module 13, wherein the input end of the reset module 13 is connected to the output end of the reset start circuit 20, and the reset module 13 is used to reset according to the low level start signal;
[0056] The recording module 14 is connected to the input end of the reset module 13 and is used for performing reset recording according to the start signal.
[0057] In this embodiment, the microcontroller 10 includes a general purpose input and output module 11, a timer 12, a reset module 13 and a recording module 14. The general purpose input and output module 11 is a GPIO (General Purpose Input / Output). In the absence of the flipping action of the timer 12, the GPIO is set to output a constant electrical signal. Under the flipping action of the timer 12, the constant electrical signal is converted into a PWM signal. The timer 12 is a microsecond timer in the microcontroller 10. The principle of converting the constant electrical signal into a PWM signal is to use the microsecond timer to generate a periodic timing interrupt, and then change the state of the GPIO in the interrupt service program to generate a PWM signal. The specific steps are: first, it is necessary to configure the working mode and counting cycle of the microsecond timer so that it can generate a timing interrupt at the required frequency. For example, if a PWM signal with a frequency of f is to be generated, the counting cycle of the timer should be a time length of 1 / f. When the microsecond timer counts to the value corresponding to the flip, it will trigger its own interrupt. At this time, the MCU will jump to the interrupt service program to execute a specific code to change the state of the GPIO to flip the level of the output signal. The difference between the method of generating PWM signals in this embodiment and the commonly used method of generating PWM signals through independent PWM hardware is that the independent PWM hardware will continue to work when the MCU crashes, which will affect the reset architecture of the microcontroller. The method of the embodiment will not have the above problems, and when the MCU crashes, stopping the output of PWM signals is also a necessary means of this embodiment. The reset module 13 is the reset source of the microcontroller 10. It starts the reset by receiving the start signal of the external circuit, and the low level is effective. When the microcontroller 10 crashes, the recording module 14 records its reset operation. It only needs to record that the microcontroller 10 has been reset. When the MCU is powered on, it needs to query the recording module 14 once, which is convenient for the operator to know and debug.
[0058] Reference Figure 3 In some feasible embodiments, the reset start circuit 20 includes:
[0059] DC power supply U;
[0060] A first capacitor C1, one end of which is connected to the universal input and output module 11;
[0061] A switch module 21, wherein a first end of the switch module 21 is connected to a DC power supply U, a second end of the switch module 21 is connected to the other end of the first capacitor C1, and a third end of the switch module 21 is connected to an input end of the reset module 14;
[0062] A first resistor R1, one end of the first resistor R1 is connected to the third end of the switch tube module 21, and the other end of the first resistor R1 is grounded;
[0063] A second capacitor C2, one end of the second capacitor C2 is connected to the third end of the switch tube module 21, and the other end of the second capacitor C2 is grounded.
[0064] In this embodiment, the reset start circuit 20 includes a DC power supply U, a first capacitor C1, a switch tube module 21, a first resistor R1 and a second capacitor C2. The DC power supply U is a 5V DC power supply. The first capacitor C1 and the second capacitor C2 are not limited to capacitors with energy storage properties such as ceramic capacitors, electrolytic capacitors, and tantalum capacitors. The switch tube module can be a field effect tube or a triode, and is turned on at a low level.
[0065] In some feasible embodiments, when the microcontroller 10 operates normally, the general input and output module 11 outputs the pulse width modulation signal under the flipping action of the timer 12, the second end of the switch tube module 21 is connected to the pulse width modulation signal through the first capacitor C1, the switch tube module 21 is intermittently turned on, and the second capacitor C2 is charged, so that the input end of the reset module 13 is connected to a high-level signal, and the reset is not started.
[0066] In this embodiment, when the microcontroller 10 operates normally, the timer 12 operates normally, and the constant electrical signal output by the universal input and output module 11 is flipped according to the set frequency, so that the universal input and output module 11 outputs the PWM signal normally. The PWM signal can reach the switch tube module 21 through the first capacitor C1. Since the switch tube module 21 is turned on at a low level, under the action of the PWM signal, the switch tube module 21 is intermittently turned on. When turned on, the DC power supply U charges the second capacitor C2 through the switch tube module 21. Since the input end of the reset module 13 is connected to the second capacitor C2, the reset module 13 is connected to a high level signal at this time and the reset is not started.
[0067] In some feasible embodiments, when the microcontroller 10 crashes, the universal input-output module 11 continuously outputs a high-level signal or a low-level signal, the first capacitor C1 blocks the high-level signal or the low-level signal, the switch tube module 21 is cut off, and the second capacitor C2 discharges through the first resistor R1, so that the input end of the reset module 13 is connected to the low-level start signal to start resetting.
[0068] In this embodiment, when the microcontroller 10 crashes, the timer 12 cannot operate normally, and the program in the microcontroller 10 may also fail. Therefore, the general input and output module 11 can only output a constant electrical signal, which may be a low-level signal or a high-level signal. Since the high-level signal or the low-level signal cannot reach the switch module 21 through the first capacitor C1, the switch module 21 is cut off. When it is cut off, the electricity charged by the second capacitor C2 when it is not dead will be released through the first resistor R1. Therefore, the reset module 13 is connected to the low-level signal at this time to start the reset. It can be understood that when the microcontroller 10 is operating normally, since the switch module 21 is connected to the PWM signal, the switch module 21 is alternately turned on and off. When it is cut off, the second capacitor C2 will also discharge through the first resistor R1. In order to charge the second capacitor C2 in this case, it is necessary to control the charging rate to be greater than the discharging rate. This requirement can be met by adjusting the duty cycle of the PWM signal.
[0069] Reference Figure 4 In some feasible embodiments, the switch tube module 21 includes:
[0070] Transistor T1, the emitter of the transistor T1 is connected to the DC power supply U;
[0071] An input resistor R2, wherein the input resistor R2 is connected between the emitter and the base of the transistor T1;
[0072] A base resistor R3, one end of the base resistor R3 is connected to the other end of the first capacitor C1, and the other end of the base resistor R3 is connected to the base of the transistor T1;
[0073] An output resistor R4 , one end of which is connected to the collector of the transistor T1 , and the other end of which is the input end of the reset module 13 .
[0074] In this embodiment, the switch tube module 21 includes a transistor T1, an input resistor R2, a base resistor R3 and an output resistor R4. The transistor T1 is a PNP transistor, and the input resistor R2, the base resistor R3 and the output resistor R4 can be selected according to the model of the transistor T1. When the microcontroller 10 crashes, the base of the transistor T1 is connected to the DC power supply U through the base resistor R3 and the input resistor R2, so that the transistor T1 is cut off.
[0075] In some feasible embodiments, the first resistor R1 includes a variable resistor, and the variable resistor is used to adjust the reset time by changing the resistance value.
[0076] In this embodiment, the reset time is approximately equal to the resistance of the first resistor R1 multiplied by the capacitance of the second capacitor C2. Therefore, the first resistor R1 can be a variable resistor so that the reset time can be adjusted by adjusting the resistance of the first resistor R1.
[0077] In some feasible embodiments, the second capacitor C2 includes a variable capacitor, and the variable capacitor is used to adjust the reset time by changing the capacitance value.
[0078] In this embodiment, the reset time is approximately equal to the resistance of the first resistor R1 multiplied by the capacitance of the second capacitor C2. Therefore, the second capacitor C2 can be a variable capacitor so that the reset time can be adjusted by adjusting the capacitance of the second capacitor C2.
[0079] In some feasible embodiments, the recording module 14 includes a memory.
[0080] In this embodiment, the memory can be an EEPROM (Electrically ErasableProgrammable Read-Only Memory) inside the microcontroller 10. After the microcontroller 10 performs an external reset operation, the enable bit flag of the EEPROM is set to 1 and written into the EEPROM. When the microcontroller 10 is powered off normally, the enable bit flag of the EEPROM is set to 0, and the data in the EEPROM is cleared. The microcontroller 10 needs to read this enable bit every time it is powered on. If this enable bit is 1, it proves that the microcontroller 10 has experienced an abnormal crash, which is convenient for users to know and debug.
[0081] The present embodiment provides a microcontroller reset architecture, which is designed to output different signals to the reset start circuit during normal operation and when a crash occurs, so that the reset start circuit outputs different level signals, which are fed back to the reset end of the microcontroller, so that the microcontroller can start the reset function in time when a crash occurs, avoiding adverse effects. The PWM signal required by the microcontroller reset architecture of the present embodiment is obtained by flipping the output signal of the general input and output module through a timer, so that when the microcontroller crashes, the PWM signal is no longer output, thereby protecting the reset start circuit. Furthermore, the microcontroller reset architecture of the present embodiment records when the microcontroller is reset, which is convenient for users to know and debug. The microcontroller reset architecture has a simple structure and complete functions. It greatly reduces the design cost while achieving effective reset of the microcontroller.
[0082] In addition, the present application embodiment also provides an electronic device 01, referring to Figure 5 The electronic device 01 includes the microcontroller reset architecture 02 provided in the above embodiment.
[0083] Since the electronic device proposed in this embodiment includes the microcontroller reset architecture proposed in the above embodiments, it has the beneficial effects of the above embodiments. The specific working process and principle of the microcontroller reset architecture are detailed in the microcontroller reset architecture provided in the above embodiments, which will not be described one by one here, and are all within the protection scope of this embodiment.
[0084] It should be noted that the technical solutions of the various embodiments of the present application can be combined with each other, but it must be based on the fact that they can be implemented by technical personnel in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0085] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A microcontroller reset architecture, characterized in that: The microcontroller reset architecture includes: Microcontroller; A reset start circuit, wherein the input end of the reset start circuit is connected to the pulse width modulation signal output end of the microcontroller, and the output end of the reset start circuit is connected to the reset end of the microcontroller. The reset start circuit is used to output a low-level start signal to the microcontroller according to the signal output by the pulse width modulation signal output end when the microcontroller crashes, so as to reset the microcontroller, wherein the reset start circuit includes a resistor, a capacitor and a switch tube.
2. The microcontroller reset architecture as claimed in claim 1, characterized in that: The microcontroller comprises: A universal input-output module, the universal input-output module is connected to the input end of the reset start circuit, and the universal input-output module is used to output an electrical signal; A timer, the timer is connected to the universal input-output module, and the timer is used to periodically flip the electrical signal to adjust the electrical signal to the pulse width modulation signal; A reset module, the input end of the reset module is connected to the output end of the reset start circuit, and the reset module is used to reset according to the low level start signal; A recording module, the recording module is connected to the input end of the reset module, and the recording module is used to perform reset recording according to the start signal.
3. The microcontroller reset architecture as claimed in claim 2, characterized in that: The reset startup circuit comprises: DC power supply; A first capacitor, one end of which is connected to the universal input and output module; A switch tube module, wherein a first end of the switch tube module is connected to a DC power supply, a second end of the switch tube module is connected to the other end of the first capacitor, and a third end of the switch tube module is connected to an input end of the reset module; A first resistor, one end of the first resistor is connected to the third end of the switch tube module, and the other end of the first resistor is grounded; A second capacitor, one end of the second capacitor is connected to the third end of the switch tube module, and the other end of the second capacitor is grounded.
4. The microcontroller reset architecture as claimed in claim 3, characterized in that: When the microcontroller operates normally, the universal input-output module outputs the pulse width modulation signal under the flipping action of the timer, the second end of the switch tube module is connected to the pulse width modulation signal through the first capacitor, the switch tube module is intermittently turned on, and the second capacitor is charged, so that the input end of the reset module is connected to a high-level signal, and the reset is not started.
5. The microcontroller reset architecture as claimed in claim 3, characterized in that: In the case where the microcontroller crashes, the universal input-output module continues to output a high-level signal or a low-level signal, the first capacitor blocks the high-level signal or the low-level signal, the switch tube module is cut off, and the second capacitor discharges through the first resistor, so that the input end of the reset module is connected to the low-level start signal to start resetting.
6. The microcontroller reset architecture as claimed in claim 3, characterized in that: The switch tube module comprises: A triode, the emitter of which is connected to the DC power supply; An input resistor connected between the emitter and the base of the transistor; a base resistor, one end of which is connected to the other end of the first capacitor, and the other end of which is connected to the base of the transistor; An output resistor, one end of which is connected to the collector of the transistor, and the other end of which is the input end of the reset module.
7. The microcontroller reset architecture as claimed in claim 3, characterized in that: The first resistor includes a variable resistor, and the variable resistor is used to adjust the reset time by changing a resistance value.
8. The microcontroller reset architecture as claimed in claim 3, characterized in that: The second capacitor includes a variable capacitor, and the variable capacitor is used to adjust the reset time by changing the capacitance value.
9. The microcontroller reset architecture as claimed in claim 2, wherein: The recording module includes a memory.
10. An electronic device, characterized in that: The electronic device comprises a microcontroller reset architecture as claimed in any one of claims 1 to 9.
