Method, device and circuit for MCU to control plug-in module to reset

The reset method of the plug-in module controlled by the MCU solves the problem of asynchronous reset between the MCU and the plug-in module, improves the stability and energy efficiency of the system, simplifies troubleshooting, and improves electromagnetic compatibility.

CN118708041APending Publication Date: 2024-09-27SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410872514.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The MCU and plug-in modules failed to synchronize during reset, resulting in abnormal system functions, low stability, increased power consumption, and difficulty in troubleshooting.

Method used

The MCU controls the reset method of the plug-in module, determines the reset mode according to the system status, sets the reset switch status, and determines the reset status through the reset signal to ensure that the plug-in module operates normally when the system is reset and achieves synchronous reset.

Benefits of technology

It improves the functional integrity and stability of the system, reduces power consumption, simplifies troubleshooting, improves electromagnetic compatibility, and enhances the system's customizability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708041A
    Figure CN118708041A
Patent Text Reader

Abstract

The invention relates to a method, a device and a circuit for an MCU to control a plug-in module to reset, and belongs to the technical field of synchronous reset, the method determines a reset mode according to a system state, sets an on-off state of a reset switch on the plug-in module according to the reset mode, and if the reset is controlled to be turned on, the corresponding plug-in module starts to reset and feeds back a reset signal in real time; whether the plug-in module is successfully reset or not is determined through the reset signal, so that the plug-in module is normally reset, the functions of the system are normally operated, and the stability of the system is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of module reset, and in particular to a method, device and circuit for resetting an external module controlled by an MCU. Background Art

[0002] MCU is a microcontroller unit (MCU), also known as a single-chip microcomputer (SingleChip Microcomputer) or a single-chip microcomputer; LDO is the abbreviation of Low Drop-Out, also known as a low-voltage difference regulator, which is an electronic component mainly used to reduce high voltage to a lower voltage and provide a stable power supply.

[0003] In a system, the functions of the system are usually implemented by combining the MCU with multiple external modules with different functions. Sometimes the MCU and the external modules need to be reset synchronously. If these external modules are not reset correctly, the system function may be abnormal or unpredictable, resulting in low system stability. Summary of the invention

[0004] To this end, the present invention provides a method, device and circuit for MCU to control external module resetting, so as to solve the problem in the prior art that the external module cannot be reset correctly, causing system function abnormality or unpredictable abnormality, resulting in low system stability.

[0005] In a first aspect, a method for resetting an external module by controlling an MCU is provided, the method comprising:

[0006] Determine the reset mode according to the system state; the system state includes starting and normal operation; the reset mode includes initialization mode and periodic self-check refresh mode;

[0007] The switch state of the reset switch on the external module is set according to the reset mode; each of the external modules is respectively connected to a different reset pin of the MCU;

[0008] The reset state of the external module is determined by a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

[0009] Further, determining the reset mode according to the system state includes:

[0010] If the system state is starting up, the reset mode is an initialization mode;

[0011] If the system state is normal operation, the reset mode is a periodic self-check refresh mode.

[0012] Further, the setting of the switch state of the reset switch on the external module according to the reset mode includes:

[0013] If the reset mode is the initialization mode, turning off the reset switch of the external module;

[0014] If the reset mode is a periodic self-check and refresh mode, the switch state of the reset switch of the external module is detected at preset time intervals, and then the switch state of the reset switch is controlled according to a control instruction; the control instruction is set according to real-time needs.

[0015] Further, determining the reset state of the external module by a reset signal includes:

[0016] Receiving a reset signal from the external module;

[0017] The reset state of the external module is determined by the high and low levels of the reset signal; the reset state includes normal reset and abnormal reset.

[0018] Furthermore, the method further comprises:

[0019] If the circuit voltage and circuit current of the external module fall within the preset circuit voltage range and the preset circuit current range respectively, the external module is in a normal state;

[0020] If the circuit voltage does not fall within the preset circuit voltage range or the circuit current does not fall within the preset circuit current range, the external module is in an abnormal state.

[0021] Furthermore, the method further comprises:

[0022] Acquire the temperature value of the external module in real time;

[0023] If the temperature value falls within the preset temperature range, the external module is in a normal state;

[0024] If the temperature value does not fall within the preset temperature range, the external module is in an abnormal state.

[0025] Furthermore, the method further comprises:

[0026] Acquire the real-time operating frequency of the circuit of the external module in real time;

[0027] If the real-time operating frequency of the circuit falls within the operating frequency range, the external module is in a normal state;

[0028] If the real-time operating frequency of the circuit does not fall within the operating frequency range, the external module is in an abnormal state.

[0029] Furthermore, the method further comprises:

[0030] If the plug-in module is in an abnormal state, the error code of the abnormal state is displayed on the display device, and the abnormal event corresponding to the abnormal state is stored in the log; the abnormal event includes the abnormal time point, abnormal type and abnormal triggering condition.

[0031] In a second aspect, a device for resetting an external module by controlling an MCU is provided, the device comprising:

[0032] A mode determination module, used to determine a reset mode according to a system state; the system state includes starting and normal operation; the reset mode includes an initialization mode and a periodic self-check refresh mode;

[0033] A switch state setting module, used to set the switch state of the reset switch on the external module according to the reset mode; each of the external modules is respectively connected to a different reset pin of the MCU;

[0034] The reset state detection module is used to determine the reset state of the external module through a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

[0035] In a third aspect, a circuit for resetting an external module controlled by an MCU is provided, the circuit comprising:

[0036] An MCU and an external module connected to the MCU; a first diode is provided between the external module and the MCU;

[0037] An LDO module connected to the external module; a second diode is arranged between the external module and the LDO module.

[0038] The present invention adopts the above technical solution and has at least the following beneficial effects:

[0039] Provided are a method, device and circuit for MCU to control the resetting of an external module. The reset mode is determined according to the system state, and the switch state of the reset switch on the external module is set according to the reset mode. If the reset control is turned on, the corresponding external module starts to reset and feeds back the reset signal in real time. The reset signal is used to determine whether the external module is reset successfully, so that the external module is reset normally, and then the system functions can operate normally, effectively improving the stability of the system.

[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 It is a flow chart of a method for resetting an external module by controlling an MCU according to an exemplary embodiment of the present invention;

[0043] Figure 2 It is a schematic block diagram of a device for resetting an external module controlled by an MCU, shown in an exemplary embodiment of the present invention;

[0044] Figure 3 The diagram is a schematic diagram of a circuit for controlling the resetting of an external module by an MCU according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] In the prior art, during the design of MCU, some MCUs have no actual circuit connection inside even if the MCU functional modules are encapsulated in the same package, which will cause some circuits that are not connected to the MCU to not be reset synchronously when resetting the MCU. The disadvantage of this design is that there are some unconnected external modules inside the MCU, and these unconnected external modules may not be reset synchronously when resetting. This may lead to the following problems:

[0047] Abnormal function: The unconnected plug-in module may contain some peripherals or functional modules. If these modules are not reset correctly, it may cause abnormal system function or unpredictable behavior. This may affect the normal operation and stability of the system.

[0048] Power consumption: Unconnected external modules may continue to work and consume power. This will cause the system to consume unnecessary power after reset, reducing the system's energy efficiency.

[0049] Difficult troubleshooting: If a system problem occurs and troubleshooting is required, disconnected external modules may increase the complexity of debugging. Because these circuits are not reset correctly, it may lead to misunderstanding or confusion about the root cause of the problem, making troubleshooting more difficult and time-consuming.

[0050] The embodiment of the present application provides a method, device and circuit for MCU to control the reset of external modules. Functional integrity: By controlling the synchronous reset of external modules through software, it is ensured that all circuits can be correctly reset when the system is reset. This can avoid functional abnormalities or unpredictable behaviors caused by external modules and improve the functional integrity and reliability of the system.

[0051] Improved energy efficiency: By shutting down external modules during reset, these circuits are prevented from continuing to work and consuming power. This can reduce the power consumption of the system after reset and improve the energy efficiency of the system.

[0052] Improved electromagnetic compatibility: By controlling the reset management module with software, you can avoid electromagnetic interference generated by external modules when they are reset. This is because external modules may generate electromagnetic radiation due to voltage mutations or signal interference when they are reset. By controlling the reset management module with software, you can ensure that the external modules are in a closed state when they are reset, avoiding unnecessary electromagnetic radiation and thus reducing the interference of the system to external devices. This helps improve the electromagnetic compatibility of the system, reduce interference with other devices and sensitivity to external interference.

[0053] Convenience of troubleshooting: By controlling the reset management module through software, troubleshooting can be more convenient. When a problem occurs in the system, the status of the plug-in module can be monitored by software to quickly locate the root cause of the problem, reducing the difficulty and time cost of troubleshooting. Software monitoring of the status of the plug-in module usually involves status monitoring settings, status reading, status analysis, exception handling, and fault location.

[0054] System customizability: Through software control of the reset management module, the reset state of the plug-in module can be flexibly configured according to specific needs. This makes the system design more customizable and can be adjusted and optimized according to different application scenarios and needs.

[0055] The method in this application is described below through specific examples.

[0056] See also Figure 1 , Figure 1 is a flowchart of a method for MCU to control external module reset according to an exemplary embodiment of the present invention, see Figure 1 , the method comprising:

[0057] Step S11, determining a reset mode according to a system state; the system state includes starting and normal operation; the reset mode includes an initialization mode and a periodic self-check refresh mode;

[0058] Step S12: setting the switch state of the reset switch on the external module according to the reset mode; each external module is connected to a different reset pin of the MCU;

[0059] Step S13, determining the reset state of the external module through a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

[0060] It should be noted that the method for MCU controlling external module reset provided in this embodiment is applicable in specific practice to scenarios including but not limited to: single-chip microcomputer controlling external module reset and other devices that require single-chip microcomputer control module reset.

[0061] Specifically, reset refers to the situation where all MCUs need to be reset, which can be power-on reset, low voltage reset, watchdog reset, etc.

[0062] It can be understood that the method of MCU controlling the resetting of the external module provided in this embodiment determines the reset mode according to the system status, and sets the switch state of the reset switch on the external module according to the reset mode. If the reset control is turned on, the corresponding external module starts to reset and feeds back the reset signal in real time. The reset signal is used to determine whether the external module is reset successfully, so that the external module is reset normally, and then the system functions can operate normally, effectively improving the stability of the system.

[0063] In specific practice, "determining the reset mode according to the system state" in step S11 includes: if the system state is starting, the reset mode is the initialization mode; if the system state is normal operation, the reset mode is the periodic self-check refresh mode.

[0064] It should be noted that the system has an MCU and multiple external modules connected to it, and the system status includes normal startup and normal operation.

[0065] In specific practice, step S12 "setting the switch state of the reset switch on the external module according to the reset mode" includes: if the reset mode is the initialization mode, the reset switch of the external module is turned off; if the reset mode is the periodic self-check refresh mode, the switch state of the reset switch of the external module is detected at a preset time interval, and then the switch state of the reset switch is controlled according to the control instruction; the control instruction is set according to real-time needs.

[0066] It should be noted that a reset management module is added to the software program of the MCU. This module is responsible for controlling the reset state of the plug-in module, where the plug-in module is the plug-in module. During the system initialization process, the reset switches of all plug-in modules are set to the off state through software to ensure that these circuits are in the reset state when the system starts. When the system is reset, the reset management module is controlled by software to turn on the reset switches of all plug-in modules to synchronize them with the reset of the MCU; the control instruction is used to realize the opening or closing of the reset switch through the reset management module.

[0067] In specific practice, step S13 "determining the reset state of the external module through the reset signal" includes: receiving the reset signal of the external module; judging the reset state of the external module through the high and low levels of the reset signal; the reset state includes normal reset and abnormal reset.

[0068] It should be noted that the external module will output an electrical signal representing the reset state, which will be returned to the MCU pin through an external connection. The MCU will perform high and low level detection to determine whether the reset is successful.

[0069] Specifically, in the initialization mode: ① Reset switch state setting: In the initialization mode, the reset management module of the MCU should set the reset switches of all plug-in modules to the off state to ensure that these circuits are in the reset state when the system starts. ② Reset detection: In the initialization mode, reset detection can be performed on the following pins and circuits: Pin 1: Detect the reset state of plug-in module 1; Pin 2: Detect the reset state of plug-in module 2; Pin 3: Detect the reset state of plug-in module 3... Pin n: Detect the reset state of plug-in module n.

[0070] Specifically, in the periodic self-test refresh mode: ① Reset switch state setting: In the periodic self-test refresh mode, the reset management module of the MCU can control the state of the reset switch as needed, such as regularly performing reset detection and refresh on the plug-in module. ② Reset detection: In the periodic self-test refresh mode, reset detection can be performed on the following pins and circuits: Pin 1: Detect the reset state of plug-in module 1; Pin 2: Detect the reset state of plug-in module 2; Pin 3: Detect the reset state of plug-in module 3... Pin n: Detect the reset state of plug-in module n.

[0071] It can be understood that the method of MCU controlling the resetting of the plug-in module provided in this embodiment, in these two modes, by setting the switch state of the reset switch and performing corresponding reset state detection, can ensure that the system performs correct reset management of the plug-in module during initialization and periodic self-check refresh.

[0072] In specific practice, it also includes: if the circuit voltage and circuit current of the external module fall within the preset circuit voltage range and the preset circuit current range respectively, the external module is in a normal state; if the circuit voltage does not fall within the preset circuit voltage range or the circuit current does not fall within the preset circuit current range, the external module is in an abnormal state.

[0073] It should be noted that the preset circuit voltage range and the preset circuit current range are set according to specific business needs and are based on the specific type of the plug-in module and the specific model of the MCU.

[0074] Specifically, ① Circuit status signal: The status signal of the monitoring circuit can reflect the working status of the circuit, such as whether the circuit is operating normally, whether there is an output signal, etc. ② Voltage and current monitoring: Monitor the voltage and current of the circuit to ensure that they are within the normal operating range.

[0075] In specific practice, it also includes: obtaining the temperature value of the external module in real time; if the temperature value falls within the preset temperature range, the external module is in a normal state; if the temperature value does not fall within the preset temperature range, the external module is in an abnormal state.

[0076] It should be noted that the preset temperature range is set according to the specific system environment. Monitor the temperature of the circuit. Abnormal temperature may indicate that the circuit has an overheating problem.

[0077] In specific practice, it also includes: obtaining the real-time operating frequency of the circuit of the external module in real time; if the real-time operating frequency of the circuit falls within the operating frequency range, the external module is in a normal state; if the real-time operating frequency of the circuit does not fall within the operating frequency range, the external module is in an abnormal state.

[0078] It should be noted that the operating frequency range is set according to the specific plug-in module. Monitor the operating frequency of the plug-in module circuit. Abnormal frequency may indicate unstable circuit operation.

[0079] In specific practice, if the plug-in module is in an abnormal state, the error code of the abnormal state is displayed on the display device, and the abnormal event corresponding to the abnormal state is stored in the log; the abnormal event includes the abnormal time point, abnormal type and abnormal trigger condition.

[0080] It should be noted that using error codes or status codes to indicate the status of plug-in modules can provide intuitive judgment. For example, specific error codes can indicate different types of abnormal situations, helping to quickly identify problems. Recording abnormal events of plug-in modules, including timestamps, abnormality types, triggering conditions and other information, is helpful for analyzing the cause of the problem.

[0081] It can be understood that the method for MCU to control the reset of the plug-in module provided in this embodiment adds a fault detection mechanism in the software program to detect the abnormal state of the plug-in module. The fault detection mechanism can ensure that the abnormal state of the plug-in module is discovered in time and corresponding processing is made. In the design, according to the specific application scenario and system requirements, suitable indicators can be selected to judge abnormal problems and improve the reliability and stability of the system, where the indicators are circuit state, voltage, current, temperature and frequency. At the same time, in order to better identify and solve the problem, it is recommended to design a detailed abnormal handling process and alarm mechanism in combination with actual conditions. When the abnormal state of the plug-in module is detected, the software program can take corresponding processing measures, such as sending an alarm, recording a log or performing a specific fault recovery operation. This technical solution provides a reset pin for the plug-in module in the hardware design, and controls the reset management module through software to achieve synchronous reset of the plug-in module. This ensures that all plug-in modules can be reset correctly when the MCU is reset, and solves the problems that may be caused by the plug-in module. At the same time, through software control, fault detection and processing can also be achieved to improve the reliability and fault tolerance of the system.

[0082] See also Figure 2 , Figure 2 is a schematic block diagram of a device for resetting an external module by controlling an MCU according to an exemplary embodiment of the present invention, see Figure 2 , the device 100 for MCU controlling the external module to reset comprises:

[0083] The mode determination module 101 is used to determine the reset mode according to the system state; the system state includes starting and normal operation; the reset mode includes initialization mode and periodic self-check refresh mode;

[0084] The switch state setting module 102 is used to set the switch state of the reset switch on the external module according to the reset mode; each external module is connected to a different reset pin of the MCU;

[0085] The reset state detection module 103 is used to determine the reset state of the external module through a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

[0086] It should be noted that the MCU-controlled external module reset device provided in this embodiment is applicable to scenarios including but not limited to: single-chip microcomputer-controlled external module reset and other devices that require single-chip microcomputer-controlled module reset.

[0087] Specifically, reset refers to the situation where all MCUs need to be reset, which can be power-on reset, low voltage reset, watchdog reset, etc.

[0088] It can be understood that the MCU provided in this embodiment controls the device for resetting the external module, determines the reset mode according to the system status, and sets the switch state of the reset switch on the external module according to the reset mode. If the reset control is turned on, the corresponding external module starts to reset and feeds back the reset signal in real time. The reset signal is used to determine whether the external module is reset successfully, so that the external module is reset normally, and then the system functions can operate normally, effectively improving the stability of the system.

[0089] See also Figure 3 , Figure 3 is a schematic diagram of a circuit for controlling the resetting of an external module by an MCU according to an exemplary embodiment of the present invention, see Figure 3 The circuit for MCU to control the external module to reset includes: an MCU and an external module connected to the MCU; a first diode is arranged between the external module and the MCU; an LDO module connected to the external module; and a second diode is arranged between the external module and the LDO module.

[0090] Specifically, 3.3V_RTC is the clock power supply of the MCU. When the MCU needs to be reset, the 3.3V_RTC is disconnected, and the external module watchdog will output a reset signal. Since each module inside the MCU is powered by the 3.3V_MAIN power signal output by the 3.3VLDO, when the watchdog outputs the reset signal, the LDO output is cut off, and the reset information is sent to the MCU synchronously, thereby ensuring that all modules are reset synchronously.

[0091] Specifically, when the MCU needs to be reset, the watchdog will pull down the potential through the nWDO port, so that the second diode D3 and the first diode D5 are turned on, thereby controlling the EN enable pin of the LDO to be pulled low, and the output 3.3_MAIN will become a low level, and at the same time trigger the PRO_B power-off reset function of the corresponding module of the MCU, thereby ensuring that the 3.3V_MAIN output by the LDO and the 3.3V_RTC on the MCU are powered off at the same time, thereby ensuring that when the MCU is reset, all modules inside the MCU can be reset at the same time.

[0092] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0094] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0095] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A synchronous reset method for MCU and external module, characterized in that: The method comprises: Determine the reset mode according to the system state; the system state includes starting and normal operation; the reset mode includes initialization mode and periodic self-check refresh mode; The switch state of the reset switch on the external module is set according to the reset mode; each of the external modules is respectively connected to a different reset pin of the MCU; The reset state of the external module is determined by a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

2. The method according to claim 1, characterized in that The step of determining the reset mode according to the system state includes: If the system state is starting up, the reset mode is an initialization mode; If the system state is normal operation, the reset mode is a periodic self-check refresh mode.

3. The method according to claim 2, characterized in that The step of setting the switch state of the reset switch on the external module according to the reset mode includes: If the reset mode is the initialization mode, turning off the reset switch of the external module; If the reset mode is a periodic self-check and refresh mode, the switch state of the external synchronous reset switch is detected at preset time intervals, and then the switch state of the reset switch is controlled according to a control instruction; the control instruction is set according to real-time needs.

4. The method according to claim 3, characterized in that The step of determining the reset state of the external module by using a reset signal includes: Receiving a reset signal from the external module; The reset state of the external module is determined by the high and low levels of the reset signal; the reset state includes normal reset and abnormal reset.

5. The method according to claim 1, characterized in that The method further comprises: If the circuit voltage and circuit current of the external module fall within the preset circuit voltage range and the preset circuit current range respectively, the external module is in a normal state; If the circuit voltage does not fall within the preset circuit voltage range or the circuit current does not fall within the preset circuit current range, the external module is in an abnormal state.

6. The method according to claim 1, characterized in that The method further comprises: Acquire the temperature value of the external module in real time; If the temperature value falls within the preset temperature range, the external module is in a normal state; If the temperature value does not fall within the preset temperature range, the external module is in an abnormal state.

7. The method according to claim 1, characterized in that The method further comprises: Acquire the real-time operating frequency of the circuit of the external module in real time; If the real-time operating frequency of the circuit falls within the operating frequency range, the external module is in a normal state; If the real-time operating frequency of the circuit does not fall within the operating frequency range, the external module is in an abnormal state.

8. The method according to any one of claims 5 to 7, characterized in that: The method further comprises: If the plug-in module is in an abnormal state, the error code of the abnormal state is displayed on the display device, and the abnormal event corresponding to the abnormal state is stored in the log; the abnormal event includes the abnormal time point, abnormal type and abnormal triggering condition.

9. A device for resetting an external module controlled by an MCU, characterized in that: The device comprises: A mode determination module, used to determine a reset mode according to a system state; the system state includes starting and normal operation; the reset mode includes an initialization mode and a periodic self-check refresh mode; A switch state setting module, used to set the switch state of the reset switch on the external module according to the reset mode; each of the external modules is connected to a different reset pin of the MCU; The reset state detection module is used to determine the reset state of the external module through a reset signal; the reset signal is an electrical signal sent by the external module to the MCU.

10. A circuit for MCU to control external module reset, characterized in that: The circuit comprises: An MCU and an external module connected to the MCU; a first diode is provided between the external module and the MCU; An LDO module connected to the external module; a second diode is arranged between the external module and the LDO module.