Monitoring and BOOT guide starting circuit applied to single-chip microcomputer
By designing a monitoring and booting circuit, and utilizing a watchdog circuit and button control, the real-time status monitoring and mode switching of the microcontroller are realized, solving the problem of insufficient stability of the microcontroller under external interference and improving the reliability and ease of operation of the system.
Patent Information
- Application Number
- CN202423304339.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2034-12-31
AI Technical Summary
Microcontrollers are prone to data processing errors or program abnormalities under external environmental interference, leading to device malfunction and insufficient system stability and reliability.
Design a monitoring and booting circuit that includes a watchdog circuit, an analog switch circuit, and an inverter circuit. By monitoring the microcontroller's operating status in real time and automatically resetting it in case of abnormality, and combining it with button control to achieve mode switching, the system's stability and reliability are enhanced.
It enables reliable switching between program burning and normal operation modes for the microcontroller, improves system stability and reliability, simplifies the program burning process, enhances anti-interference capabilities, and ensures safe operation of the system in complex environments.
Smart Images

Figure CN223692662U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The utility model relates to the singlechip technology field more specifically, it is a kind of monitoring and BOOT booting circuit applied to singlechip. BACKGROUND
[0002] With the rapid progress of semiconductor technology, the performance and functionality of single-chip microcomputers (such as the STM32 series) have been significantly improved, and they are widely used in industrial control, consumer electronics, medical devices, and smart homes, among other fields. However, in practical applications, the working state of single-chip microcomputers is often disturbed by external environmental factors, such as electromagnetic interference, temperature fluctuations, and unstable power supply. These disturbances can cause data processing errors or program abnormalities, which can lead to partial functional failure of the device, and even cause the entire system to crash. In application scenarios with high reliability and stability requirements, such risks are particularly prominent. SUMMARY
[0003] In view of the problems existing in the prior art, the utility model provides a monitoring and BOOT booting circuit with simplified design and stable reliability, which not only realizes the monitoring function, but also ensures that the single-chip microcomputer quickly switches to the BOOT mode when programming, significantly improving the practicability and reliability of the system.
[0004] To achieve the above purpose, the technical scheme of the utility model is as follows: a monitoring and BOOT booting circuit applied to a single-chip microcomputer, comprising a power input end, a watchdog circuit, an analog switch circuit, an inverter circuit, and a single-chip microcomputer circuit, wherein the power input end VCC is connected to pin 1 of watchdog circuit N1, pin 5 of analog switch circuit N2, pin 5 of inverter circuit N3, and pins 1, 13, 19, 32, 48, and 64 of single-chip microcomputer circuit N4, respectively, for providing power supply for the circuit; pin 4 of watchdog circuit N1 and pin 5 of single-chip microcomputer circuit N4 are connected to pin 50 and pin 49 of single-chip microcomputer circuit N4, respectively, for real-time monitoring of the running state of the single-chip microcomputer and automatically triggering a reset signal when an abnormality is detected; pin 1 of analog switch circuit N2 is connected to pin 7 of single-chip microcomputer circuit N4, and the switching between BOOT booting mode and normal working mode is controlled by a key; pin 4 of inverter circuit N3 is connected to pin 60 of single-chip microcomputer circuit N4, for controlling the state of single-chip microcomputer BOOT0; the single-chip microcomputer circuit realizes monitoring and booting functions through the cooperative action of the watchdog circuit, analog switch circuit, and inverter circuit.
[0005] The utility model has the following beneficial effects:
[0006] Firstly, the running state of the single-chip microcomputer is monitored in real time by the external watchdog circuit, and a reset signal is automatically triggered when an abnormality is detected, so that the system can be quickly restored to normal, and the reliability of the system is significantly improved;
[0007] Secondly, the flexible switching of the single-chip microcomputer between the BOOT boot mode and the normal working mode is realized by the key control in the circuit design, so that the program burning process is simplified, the debugging efficiency is improved, and the operation is more convenient;
[0008] Thirdly, the circuit structure is compact, which is composed of a power input end, a watchdog circuit, an analog switch circuit, an inverter circuit and a single-chip microcomputer, the selected devices are mature and reliable, production and popularization are facilitated, and the practicability is strong;
[0009] Finally, the power fluctuation and external electromagnetic interference are effectively resisted through the filter capacitor, and the anti-interference ability of the system is further enhanced, so that the stable operation of the system in a complex environment is ensured;
[0010] To sum up, the utility model has the advantages of simple design and efficient operation, is suitable for various single-chip microcomputer systems, can effectively solve the problems of abnormal operation and complicated boot operation, and provides a powerful guarantee for the safety and stability of the system. DRAWINGS
[0011] Figure 1 The circuit principle diagram of the utility model. CONCRETE IMPLEMENTING METHOD
[0012] The utility model is further described below in combination with the drawings:
[0013] As Figure 1The utility model discloses a monitoring and BOOT booting circuit applied to single-chip microcomputer, which is characterized by comprising a power input end, a watchdog circuit with chip N1 as the core, an analog switch circuit with chip N2 as the core, an inverter circuit with chip N3 as the core and a single-chip microcomputer circuit with chip N4 as the core. The power input end VCC is connected with pin 1 of the watchdog circuit chip N1, pin 5 of the analog switch circuit chip N2, pin 5 of the inverter circuit chip N3 and pins 1, 13, 19, 32, 48 and 64 of the single-chip microcomputer circuit chip N4 respectively, for providing power supply for the circuit. Pin 4 of the watchdog circuit chip N1 and pin 50 of the single-chip microcomputer circuit chip N4 are connected respectively, for monitoring the running state of the single-chip microcomputer in real time and automatically triggering a reset signal when detecting an abnormality. Pin 1 of the analog switch circuit chip N2 is connected with pin 7 of the single-chip microcomputer circuit chip N4, for switching between the BOOT booting mode and the normal working mode through key control. Pin 4 of the inverter circuit chip N3 is connected with pin 60 of the single-chip microcomputer circuit chip N4, for controlling the state of the single-chip microcomputer BOOT0. The single-chip microcomputer circuit realizes the monitoring and booting functions through the cooperative action of the watchdog circuit, the analog switch circuit and the inverter circuit.
[0014] The watchdog circuit uses a TPL5010 watchdog timer chip N1, the input end of which receives the monitoring signal output of the single-chip microcomputer, and the output end is connected to the reset pin of the single-chip microcomputer, for triggering a reset signal when detecting an abnormal running state. The analog switch circuit uses a NLAS4157 single-pole double-throw analog switch chip N2, the state of which is switched through key control, and the output end is connected to the input end of the inverter circuit. The inverter circuit uses a 74AHC1G04 single inverter chip N3, the input end of which receives the signal output by the analog switch circuit, and the output end is connected to the BOOT mode selection pin of the single-chip microcomputer. The single-chip microcomputer circuit uses a single-chip microcomputer chip N4 with the model number of STM32F405RGT6. The single-chip microcomputer is externally connected to a crystal oscillator module to provide a stable clock signal, and the reset pin is connected to the watchdog circuit through a reset circuit to ensure the fast restart of the system after abnormal reset. Through the cooperative action of the above-mentioned circuits, the real-time monitoring of the single-chip microcomputer running state and the reliable switching between the program burning mode and the normal running mode can be realized, and the stability and reliability of the system are significantly improved.
[0015] The specific connection of the circuit is as follows: the 1 pin of the watchdog circuit chip N1 is connected with the power input terminal VCC, and is grounded through the capacitor C2 at the same time, the 2 pin of the chip N1 is grounded, the 3 pin of the chip N1 is grounded through the resistor R3, the 6 pin of the chip N1 is connected with the 4 pin of the analog switch circuit chip N2, and is connected with the power input terminal VCC through the pull-up resistor R1 at the same time; the 2 pin of the analog switch circuit chip N2 is grounded, the 3 pin of the chip N2 is empty, the 5 pin of the chip N2 is connected with the power input terminal VCC, and is connected with the 6 pin of the chip N2 through the resistor R4 at the same time, and is grounded through the capacitor C1, the 6 pin of the chip N2 is grounded through the button SW1, and is connected with the cathode of the diode VD1 at the same time; the anode of the diode VD1 is connected with the 2 pin of the inverter circuit chip N3, and is connected with the power input terminal VCC through the pull-up resistor R6 at the same time; the 1 pin of the inverter circuit chip N3 is empty, the 3 pin of the chip N3 is grounded, the 4 pin of the chip N3 is grounded through the resistor R8; the 5 pin of the chip N3 is connected with the power input terminal VCC, and is grounded through the capacitor C4 at the same time; the 5 pin and the 6 pin of the single-chip microcomputer circuit chip N4 are connected with both ends of the resonator G1, and are grounded through the capacitors C7 and C8 respectively, the 7 pin of the chip N4 is connected with one end of the resistor R9, the other end of the resistor R9 is connected with the power input terminal VCC, the capacitor C9 and one end of the switch SW2 respectively, the other end of the capacitor C9 and the switch SW2 is grounded, the 12 pin, the 18 pin and the 63 pin of the chip N4 are grounded, the 28 pin of the chip N4 is grounded through the resistor R10, the 31 pin of the chip N4 is grounded through the capacitor C10, and the 47 pin of the chip N4 is grounded through the capacitor C6.
[0016] The model of the resonator G1 is DSX321G-12.000MHz, and the main function is to provide a stable clock signal for the single-chip microcomputer, and ensure the normal operation of the single-chip microcomputer.
[0017] The working principle of the circuit is as follows:
[0018] The watchdog is often used to monitor the working state of the single-chip microcomputer. When the single-chip microcomputer is programmed, the BOOT pin of the single-chip microcomputer needs to be set. When the key SW1 is pressed, the cathode of the diode VD1 is at a low level, the anode of the diode VD1 is at a low level, the 2 pin of the inverter N2 detects a low level, the 4 pin outputs a high level, the 6 pin of the analog switch circuit N2 is at a low level, the 3 pin of the analog switch circuit N2 is connected with the 4 pin, the 6 pin of the watchdog N1 is connected with the 3 pin of the analog switch circuit N2, the 3 pin of the analog switch circuit N2 is empty, the watchdog N1 has no monitoring effect on the single-chip microcomputer, the BOOT0 pin of the single-chip microcomputer is at a high level, the BOOT1 pin is at a low level, and the single-chip microcomputer can be programmed through the BOOT state. When the key SW1 is released, the cathode of the diode VD1 is at a high level, the anode of the diode VD1 is at a high level, the 2 pin of the inverter N2 detects a high level, the 4 pin outputs a low level, the 6 pin of the analog switch circuit N2 is at a high level, the 1 pin of the analog switch circuit N2 is connected with the 4 pin, the 6 pin of the watchdog N1 is connected with the 1 pin of the analog switch circuit N2, the 1 pin of the analog switch circuit N2 is connected with the reset function pin of the single-chip microcomputer, the BOOT0 pin of the single-chip microcomputer is at a low level, the BOOT1 pin is at a low level, the single-chip microcomputer is in a normal working state, the 5 pin of the watchdog N1 outputs a fixed time interval pulse to the 49 pin of the single-chip microcomputer, the 50 pin of the single-chip microcomputer outputs a fixed time interval pulse to the 4 pin of the watchdog N1, when the 4 pin of the watchdog N1 cannot receive the pulse of the single-chip microcomputer, the 6 pin of the watchdog N1 outputs a low level pulse to reset the single-chip microcomputer, so that the single-chip microcomputer reenters the normal working state, and the watchdog N1 plays a monitoring role on the single-chip microcomputer. According to different application requirements, the watchdog N1 can realize the time interval of the pulse output by the 5 pin through the resistance R3 connected with the 3 pin.
Claims
1. A monitoring and BOOT booting starting circuit applied to a single-chip microcomputer, characterized in that: The utility model provides a kind of watchdog circuit, analog switch circuit, inverter circuit and single-chip microcomputer circuit, and the watchdog circuit, analog switch circuit, inverter circuit and single-chip microcomputer circuit are connected to each other, and the watchdog circuit, analog switch circuit, inverter circuit and single-chip microcomputer circuit are connected to each other. The watchdog circuit, analog switch circuit and inverter circuit realize monitoring and booting function through the synergistic effect of single-chip microcomputer circuit.
2. The monitoring and BOOT booting circuit applied to a single-chip microcomputer according to claim 1, characterized in that: The 1 pin of the watchdog circuit chip N1 is connected with the power input terminal VCC, and is grounded through capacitor C2 at the same time, the 2 pin of chip N1 is grounded, the 3 pin of chip N1 is grounded through resistor R3, the 6 pin of chip N1 is connected with the 4 pin of analog switch circuit chip N2, and is connected with the power input terminal VCC through pull-up resistor R1 at the same time; the 2 pin of analog switch circuit chip N2 is grounded, the 3 pin of chip N2 is empty, the 5 pin of chip N2 is connected with the power input terminal VCC, and is connected with the 6 pin of chip N2 through resistor R4, and is grounded through capacitor C1, the 6 pin of chip N2 is grounded through button SW1, and is connected with the cathode of diode VD1 at the same time; the anode of diode VD1 is connected with the 2 pin of inverter circuit chip N3, and is connected with the power input terminal VCC through pull-up resistor R6 at the same time; the 1 pin of inverter circuit chip N3 is empty, the 3 pin of chip N3 is grounded, the 4 pin of chip N3 is grounded through resistor R8; the 5 pin of chip N3 is connected with the power input terminal VCC, and is grounded through capacitor C4 at the same time; the 5 pin and 6 pin of single-chip microcomputer circuit chip N4 are connected with both ends of resonator G1, and are grounded through capacitor C7 and C8 respectively, the 7 pin of chip N4 is connected with one end of resistor R9, the other end of resistor R9 is connected with the power input terminal VCC, capacitor C9 and one end of switch SW2 respectively, capacitor C9 and the other end of switch SW2 are grounded, the 12 pin, 18 pin and 63 pin of chip N4 are grounded, the 28 pin of chip N4 is grounded through resistor R10, the 31 pin of chip N4 is grounded through capacitor C10, the 47 pin of chip N4 is grounded through capacitor C6.