A MCU safety protection circuit
By designing a MCU safety protection circuit, using voltage sampling, comparison and intelligent control modules, it works together to stabilize the power supply of MCU, which solves the problem of power failure and restart caused by power supply abnormalities in the MCU, and realizes the stability and reliability of MCU power supply.
Patent Information
- Application Number
- CN202311489735.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-10
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2043-11-10
AI Technical Summary
The existing MCUs directly perform power outage protection when the power supply power adapter is abnormal, resulting in the MCU's power outage and restart, affecting the MCU's performance.
A MCU safety protection circuit is designed, including a power supply module, a voltage sampling module, a voltage comparison module, an intelligent control module, an energy control module and an input control module. Through the coordinated work of these modules, stable control of the MCU power supply is achieved and faults caused by overvoltage and undervoltage are avoided.
The intelligent control module performs timed power off control to ensure the stable supply of power, avoid failure and damage to the MCU due to abnormal power supply, and maintain the working power required by the MCU module.
Smart Images

Figure CN117608216B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of power supply protection, in particular to an MCU safety protection circuit. Background Art
[0002] MCU (Micro Controller Unit), also known as microcontroller or embedded controller, is small in size and easy to use. It is widely used in communication equipment, intelligent management, medical equipment and industrial automation, power supply protection of automobiles and other fields. To ensure the safety of MCU, most of the existing MCUs are directly provided with the required working power by the power adapter, and when the power provided by the power adapter is abnormal, the power is directly cut off for protection, which will cause the MCU to power off and restart, causing MCU failure and affecting the performance of the MCU. Therefore, there is room for improvement. Summary of the invention
[0003] The embodiment of the present invention provides an MCU safety protection circuit to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] An MCU safety protection circuit comprises: a power supply module, a first voltage sampling module, a second voltage sampling module, a first voltage comparison module, a second voltage comparison module, an intelligent control module, a power control module, an input control module and an MCU module;
[0006] A power module, used for providing direct current power;
[0007] A first voltage sampling module, connected to the power module, for sampling the voltage of the electric energy provided by the power module and outputting a first sampling signal;
[0008] A second voltage sampling module, connected to the power control module, for sampling the voltage of the power output by the power control module and outputting a second sampling signal;
[0009] A first voltage comparison module is connected to the first voltage sampling module, and is used to set an input comparison threshold and compare the first sampling signal with the input comparison threshold for overvoltage and undervoltage, and is used to output a first control signal when overvoltage occurs, and output a second control signal when undervoltage occurs;
[0010] A second voltage comparison module is connected to the second voltage sampling module and the first voltage comparison module, and is used to set an output comparison threshold, to compare the second sampling signal with the output comparison threshold for overvoltage and output a third control signal, to perform logic processing on the third control signal and the first control signal when overvoltage occurs and to output a first level signal, and to perform inversion processing on the third control signal and perform logic processing on the inverted signal and the second control signal when not overvoltage occurs and output a second level signal;
[0011] An intelligent control module, connected to the power control module, the input control module, the second voltage sampling module, the first voltage sampling module, the second voltage comparison module and the first voltage comparison module, for receiving the first sampling signal and the second sampling signal, for receiving the first level signal and outputting the first pulse signal to control the voltage reduction work of the power control module, for receiving the second level signal and outputting the second pulse signal to control the voltage boost work of the power control module, and for receiving the first control signal and the second control signal and outputting the clock signal to time the power-off work of the input control module;
[0012] An electric energy control module, connected to the power module, for transmitting the electric energy provided by the power module to the input control module, for receiving the first pulse signal and performing step-down regulation on the transmitted electric energy, and for receiving the second pulse signal and performing step-up regulation on the transmitted electric energy;
[0013] An input control module, connected to the power control module and the MCU module, used to transmit the power output by the power control module to the MCU module, and used to receive a clock signal and perform a timed power-off operation;
[0014] The MCU module is used to receive the electric energy transmitted by the input control module.
[0015] As a further solution of the present invention: the power module includes a power adapter; the first voltage sampling module includes a first resistor and a second resistor; the intelligent control module includes a first controller;
[0016] Preferably, the first end of the power adapter is connected to the first end of the first resistor, the second end of the first resistor is connected to the first IO terminal of the first controller and is grounded through the second resistor, and the second end of the power adapter is grounded.
[0017] As a further solution of the present invention: the power control module includes a first power tube, a first inductor, a third diode, and a second power tube;
[0018] Preferably, the source of the first power tube is connected to the anode of the third diode and the drain of the second power tube through the first inductor, the source of the second power tube is grounded, the gate of the second power tube and the gate of the first power tube are respectively connected to the fourth IO terminal of the first controller and the third IO terminal of the first controller, and the cathode of the third diode is connected to the input control module.
[0019] As a further solution of the present invention: the power control module further includes a first power supply, a third resistor, a first diode, a fourth resistor, a third power tube and a second diode;
[0020] Preferably, the first power supply is connected to the gate of the first power tube and the anode of the first diode through a third resistor, the cathode of the first diode is connected to the gate of the third power tube and grounded through a fourth resistor, the drain of the third power tube is grounded, the source of the third power tube is connected to the anode of the second diode, and the cathode of the second diode is connected to the source of the first power tube.
[0021] As a further solution of the present invention: the second voltage sampling module includes a fifth resistor and a sixth resistor;
[0022] Preferably, a first end of the fifth resistor is connected to the cathode of the third diode, a second end of the fifth resistor is connected to the second IO terminal of the first controller and is connected to the ground terminal through a sixth resistor.
[0023] As a further solution of the present invention: the input control module includes a seventh resistor, a fourth power tube, a first capacitor and a first switch tube; the MCU module includes an MCU interface;
[0024] Preferably, one end of the seventh resistor is connected to the drain of the fourth power tube and the cathode of the third diode, the other end of the seventh resistor is connected to the gate of the fourth power tube and the collector of the first switching tube, the emitter of the first switching tube is grounded, the base of the first switching tube is connected to the fifth IO terminal of the first controller, and the source of the fourth power tube is connected to the MCU interface and grounded through the first capacitor.
[0025] As a further solution of the present invention: the first voltage comparison module includes a first threshold device, a fourth diode, and a first comparator;
[0026] Preferably, the inverting end of the first comparator is connected to the second end of the first resistor, the non-inverting end of the first comparator is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the first threshold device, and the output end of the first comparator is connected to the seventh IO terminal of the first controller.
[0027] As a further solution of the present invention: the first voltage comparison module further includes a second power supply, an eighth resistor, a second comparator, and a fifth diode;
[0028] Preferably, the second power supply is connected to the cathode of the fifth diode and the inverting end of the second comparator through the eighth resistor, the non-inverting end of the second comparator is connected to the second end of the first resistor, the anode of the fifth diode is connected to the first threshold device, and the output end of the second comparator is connected to the sixth IO end of the first controller.
[0029] As a further solution of the present invention: the second voltage comparison module includes a third comparator, a first logic chip, and a second threshold device;
[0030] Preferably, the in-phase terminal and the inverting terminal of the third comparator are respectively connected to the second end of the fifth resistor and the second threshold device, the output end of the third comparator is connected to the first end of the first logic chip, the second end of the first logic chip is connected to the output end of the second comparator, and the third end of the first logic chip is connected to the ninth IO terminal of the first controller.
[0031] As a further solution of the present invention: the second voltage comparison module further includes a first inverter and a second logic chip;
[0032] Preferably, the input end of the first inverter is connected to the output end of the third comparator, the output end of the first inverter is connected to the first end of the second logic chip, the second end of the second logic chip is connected to the output end of the first comparator, and the output end of the second logic chip is connected to the eighth IO end of the first controller.
[0033] Compared with the prior art, the beneficial effects of the present invention are as follows: the MCU safety protection circuit of the present invention transmits the electric energy provided by the power module to the MCU module by the power control module and the input control module. When the electric energy provided by the power module is overvoltage or undervoltage, the intelligent control module will be triggered to perform timed power-off control on the input control module. At the same time, the intelligent control module completes the voltage boost and voltage reduction work of the power control module according to the signals output by the first voltage comparison module and the second voltage comparison module, thereby ensuring a stable supply of electric energy, avoiding MCU failure and damage due to power supply abnormality, and maintaining the working power required by the MCU module. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0035] Figure 1 A schematic block diagram of a MCU safety protection circuit provided by an example of the present invention.
[0036] Figure 2A circuit diagram of an MCU safety protection circuit provided by an example of the present invention.
[0037] Figure 3 A connection circuit diagram of a first voltage comparison module provided in an example of the present invention.
[0038] Figure 4 A connection circuit diagram of a second voltage comparison module provided in an example of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] In one embodiment, see Figure 1 , an MCU safety protection circuit, comprising: a power supply module 1, a first voltage sampling module 2, a second voltage sampling module 3, a first voltage comparison module 4, a second voltage comparison module 5, an intelligent control module 6, a power control module 7, an input control module 8 and an MCU module 9;
[0041] Specifically, the power module 1 is used to provide DC power;
[0042] A first voltage sampling module 2, connected to the power module 1, for sampling the voltage of the electric energy provided by the power module 1 and outputting a first sampling signal;
[0043] A second voltage sampling module 3, connected to the power control module 7, for sampling the voltage of the power output by the power control module 7 and outputting a second sampling signal;
[0044] A first voltage comparison module 4 is connected to the first voltage sampling module 2, and is used to set an input comparison threshold and compare the first sampling signal with the input comparison threshold for overvoltage and undervoltage, and is used to output a first control signal when overvoltage occurs, and output a second control signal when undervoltage occurs;
[0045] A second voltage comparison module 5 is connected to the second voltage sampling module 3 and the first voltage comparison module 4, and is used to set an output comparison threshold, to compare the second sampling signal with the output comparison threshold for overvoltage and output a third control signal, to perform logic processing on the third control signal and the first control signal when overvoltage occurs and to output a first level signal, and to perform inversion processing on the third control signal and perform logic processing on the inverted signal and the second control signal when not overvoltage occurs and output a second level signal;
[0046] The intelligent control module 6 is connected with the power control module 7, the input control module 8, the second voltage sampling module 3, the first voltage sampling module 2, the second voltage comparison module 5 and the first voltage comparison module 4, and is used to receive the first sampling signal and the second sampling signal, to receive the first level signal and output the first pulse signal to control the voltage reduction work of the power control module 7, to receive the second level signal and output the second pulse signal to control the voltage boost work of the power control module 7, and to receive the first control signal and the second control signal and output the clock signal to time the power-off work of the input control module 8;
[0047] The power control module 7 is connected to the power module 1, and is used to transmit the power provided by the power module 1 to the input control module 8, and is used to receive the first pulse signal and perform step-down regulation on the transmitted power, and is used to receive the second pulse signal and perform step-up regulation on the transmitted power;
[0048] An input control module 8 is connected to the power control module 7 and the MCU module 9, and is used to transmit the power output by the power control module 7 to the MCU module 9, and is used to receive a clock signal and perform a timed power-off operation;
[0049] The MCU module 9 is used to receive the electric energy transmitted by the input control module 8 .
[0050] In a specific embodiment, the power supply module 1 may adopt a power adapter to provide the working power required by the MCU module 9; the first voltage sampling module 2 may adopt a first voltage sampling circuit to perform voltage sampling on the power output of the power supply module 1; the second voltage sampling module 3 may adopt a second voltage sampling circuit to perform voltage sampling on the power output of the power control module 7; the first voltage comparison module 4 may adopt a threshold adjustment circuit and a first comparison circuit, and the threshold adjustment circuit provides a voltage threshold, which is obtained by dividing the working power required by the MCU module 9, and will not be described in detail here, and the voltage threshold is stepped down and stepped up to obtain a set input comparison threshold, and the first comparison circuit is used to perform undervoltage comparison and overvoltage comparison; the second voltage comparison module 5 may adopt a second comparison circuit and a logic processing circuit. The second comparison circuit sets the output comparison threshold and performs overvoltage judgment. The output comparison threshold is the same as the voltage threshold. The logic processing circuit performs logic calculation on the signals output by the second comparison circuit and the first voltage comparison circuit and transmits the calculation results to the intelligent control module 6; the above-mentioned intelligent control module 6 can adopt a micro-control circuit, which integrates many components such as an arithmetic unit, a clock device, a memory, and an input and output device to realize signal processing, data storage, module control, timing control and other functions; the above-mentioned power control module 7 can adopt a power control circuit to complete the transmission, boost and buck processing of power; the above-mentioned input control module 8 can adopt an input control circuit composed of a power tube, etc. to perform power transmission control; the above-mentioned MCU module 9 can adopt an MCU interface to be connected to the power supply end of the MCU chip, which is not repeated here.
[0051] In another embodiment, see Figure 1 , Figure 2 , Figure 3 and Figure 4 , the power module 1 includes a power adapter; the first voltage sampling module 2 includes a first resistor R1 and a second resistor R2; the intelligent control module 6 includes a first controller U1;
[0052] Specifically, a first end of the power adapter is connected to a first end of a first resistor R1, a second end of the first resistor R1 is connected to a first IO terminal of a first controller U1 and is grounded through a second resistor R2, and a second end of the power adapter is grounded.
[0053] In a specific embodiment, the power adapter can be composed of a switching power supply circuit, which is not described here; the first resistor R1 and the second resistor R2 form a first voltage sampling circuit for voltage sampling; the first controller U1 can be an STM32 microcontroller equipped with a clock device.
[0054] Furthermore, the power control module 7 includes a first power tube Q1, a first inductor L1, a third diode D3, and a second power tube Q2;
[0055] Specifically, the drain of the first power tube Q1 is connected to the anode of the third diode D3 and the drain of the second power tube Q2 through the first inductor L1, the source of the second power tube Q2 is grounded, the gate of the second power tube Q2 and the gate of the first power tube Q1 are respectively connected to the fourth IO terminal of the first controller U1 and the third IO terminal of the first controller U1, and the cathode of the third diode D3 is connected to the input control module 8.
[0056] In a specific embodiment, the first power tube Q1 can be an N-channel enhancement type MOS tube with a parasitic diode, which cooperates with the first inductor L1 and the third diode D3 to complete the power transmission control; the second power tube Q2 can be an N-dog belt enhancement type MOS tube, which cooperates with the first inductor L1 and the third diode D3 to perform boosting work.
[0057] Furthermore, the power control module 7 further includes a first power supply VCC1, a third resistor R3, a first diode D1, a fourth resistor R4, a third power tube Q3 and a second diode D2;
[0058] Specifically, the first power supply VCC1 is connected to the gate of the first power tube Q1 and the anode of the first diode D1 through the third resistor R3, the cathode of the first diode D1 is connected to the gate of the third power tube Q3 and is grounded through the fourth resistor R4, the drain of the third power tube Q3 is grounded, the source of the third power tube Q3 is connected to the anode of the second diode D2, and the cathode of the second diode D2 is connected to the source of the first power tube Q1.
[0059] In a specific embodiment, the third power tube Q3 can be an N-channel enhancement type MOS tube, which cooperates with the first power tube Q1, the first inductor L1, the second diode D2, the first power supply VCC1, the third resistor R3, the first diode D1 and the fourth resistor R4 to perform a voltage reduction operation. When the third IO terminal of the first controller U1 is not working, the first power supply VCC1 and the third resistor R3 trigger the first power tube Q1 to turn on, so as to cooperate with the first inductor L1 and the third diode D3 to complete the transmission control of electric energy. The first diode D1 and the fourth resistor R4 perform voltage reduction and voltage division processing, so that the first power supply VCC1 cannot trigger the conduction of the third power tube Q3 through the third resistor R3, until the third IO terminal of the first controller U1 outputs the first pulse signal, the conduction state of the first power tube Q1 and the third power tube Q3 will be controlled to achieve the voltage reduction function.
[0060] Further, the second voltage sampling module 3 includes a fifth resistor R5 and a sixth resistor R6;
[0061] Specifically, a first end of the fifth resistor R5 is connected to the cathode of the third diode D3, a second end of the fifth resistor R5 is connected to the second IO terminal of the first controller U1 and is connected to the ground terminal through the sixth resistor R6.
[0062] In a specific embodiment, the fifth resistor R5 and the sixth resistor R6 constitute a second voltage sampling circuit.
[0063] Further, the input control module 8 includes a seventh resistor R7, a fourth power tube Q4, a first capacitor C1 and a first switch tube VT1; the MCU module 9 includes an MCU interface;
[0064] Specifically, one end of the seventh resistor R7 is connected to the drain of the fourth power tube Q4 and the cathode of the third diode D3, the other end of the seventh resistor R7 is connected to the gate of the fourth power tube Q4 and the collector of the first switch tube VT1, the emitter of the first switch tube VT1 is grounded, the base of the first switch tube VT1 is connected to the fifth IO terminal of the first controller U1, and the source of the fourth power tube Q4 is connected to the MCU interface and grounded through the first capacitor C1.
[0065] In a specific embodiment, the fourth power tube Q4 can be an N-channel enhancement mode MOS tube with a parasitic diode; the first switch tube VT1 can be an NPN transistor, which is controlled by the clock signal regularly output by the fifth IO terminal of the first controller U1.
[0066] Further, the first voltage comparison module 4 includes a first threshold device, a fourth diode D4, and a first comparator A1;
[0067] Specifically, the inverting end of the first comparator A1 is connected to the second end of the first resistor R1, the non-inverting end of the first comparator A1 is connected to the cathode of the fourth diode D4, the anode of the fourth diode D4 is connected to the first threshold device, and the output end of the first comparator A1 is connected to the seventh IO terminal of the first controller U1.
[0068] In a specific embodiment, the first threshold device provides a voltage threshold, and the fourth diode D4 performs voltage reduction processing; the first comparator A1 can select an LM397 comparator to perform undervoltage comparison.
[0069] Furthermore, the first voltage comparison module 4 also includes a second power supply VCC2, an eighth resistor R8, a second comparator A2, and a fifth diode D5;
[0070] Specifically, the second power supply VCC2 is connected to the cathode of the fifth diode D5 and the inverting end of the second comparator A2 through the eighth resistor R8, the non-inverting end of the second comparator A2 is connected to the second end of the first resistor R1, the anode of the fifth diode D5 is connected to the first threshold device, and the output end of the second comparator A2 is connected to the sixth IO end of the first controller U1.
[0071] In a specific embodiment, the fifth diode D5, the eighth resistor R8 and the second power supply VCC2 perform voltage boosting processing on the voltage threshold provided by the first threshold device; the first comparator A1 may use an LM397 comparator to perform overvoltage comparison.
[0072] Further, the second voltage comparison module 5 includes a third comparator A3, a first logic chip J1, and a second threshold device;
[0073] Specifically, the in-phase terminal and the inverting terminal of the third comparator A3 are respectively connected to the second end of the fifth resistor R5 and the second threshold device, the output end of the third comparator A3 is connected to the first end of the first logic chip J1, the second end of the first logic chip J1 is connected to the output end of the second comparator A2, and the third end of the first logic chip J1 is connected to the ninth IO terminal of the first controller U1.
[0074] In a specific embodiment, the third comparator A3 can be a LM397 comparator; the output comparison threshold provided by the second threshold device is the same as the voltage threshold provided by the first threshold device. The first logic chip J1 can be a logic chip to provide a high-level voltage reduction instruction for the first controller U1.
[0075] Furthermore, the second voltage comparison module 5 also includes a first inverter J3 and a second logic chip J2;
[0076] Specifically, the input end of the first inverter J3 is connected to the output end of the third comparator A3, the output end of the first inverter J3 is connected to the first end of the second logic chip J2, the second end of the second logic chip J2 is connected to the output end of the first comparator A1, and the output end of the second logic chip J2 is connected to the eighth IO end of the first controller U1.
[0077] In a specific embodiment, the second logic chip J2 can be selected as a logic chip to cooperate with the first inverter J3 to provide a high-level boost instruction for the first controller U1.
[0078] In an MCU safety protection circuit of the present invention, electric energy is provided by a power adapter. When the electric energy is normal, the electric energy is directly transmitted to the first capacitor C1 and the MCU interface through the first power tube Q1, the first inductor L1, the third diode D3 and the fourth power tube Q4. A voltage threshold is provided by a first threshold device. The voltage threshold is subjected to a voltage reduction process by the fourth diode D4, and is subjected to a voltage increase process by the fifth diode D5, the eighth resistor R8 and the second power supply VCC2, so as to obtain an input comparison threshold within a certain range. The first comparator A1 and the second comparator A2 respectively perform undervoltage and voltage increase detection. When undervoltage occurs, the first controller U1 will timer control the first switch tube VT1 to turn on, so that the fourth power tube Q4 is timed to be disconnected, the first capacitor C1 is briefly powered, and at the same time, the third comparator A3 cooperates with the second threshold device to perform voltage comparison on the electric energy transmitted by the third diode D3. At this time, due to undervoltage, the third comparator A3 The output is low level, processed by the first inverter J3, and cooperates with the second logic chip J2 to provide a boost instruction for the first controller U1, so that the first controller U1 controls the conduction degree of the second power tube Q2 to complete the boost work, until the power transmitted by the third diode D3 meets the power of the MCU interface, the first controller U1 stops controlling the first switch tube VT1, the fourth power tube Q4 will be turned on and transmit power, if the power provided by the power adapter returns to normal at this time, the first controller U1 will stop the boost control, similarly, when overvoltage occurs, the first switch tube VT1 is turned on, the second comparator A2 and the third comparator A3 output high levels, the first logic chip J1 provides a step-down instruction for the first controller U1, and the first controller U1 controls the first power tube Q1 and the third power tube Q3 to perform step-down work, until the power transmitted by the third diode D3 meets the power of the MCU interface, and the fourth power tube Q4 resumes power transmission.
[0079] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0080] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. An MCU safety protection circuit, characterized in that: The MCU safety protection circuit comprises: a power supply module, a first voltage sampling module, a second voltage sampling module, a first voltage comparison module, a second voltage comparison module, an intelligent control module, a power control module, an input control module and an MCU module; The power module is used to provide direct current power; The first voltage sampling module is connected to the power module and is used to perform voltage sampling on the electric energy provided by the power module and output a first sampling signal; The second voltage sampling module is connected to the power control module and is used to perform voltage sampling on the power output by the power control module and output a second sampling signal; The first voltage comparison module is connected to the first voltage sampling module, and is used to set an input comparison threshold and compare the first sampling signal with the input comparison threshold for overvoltage and undervoltage, and is used to output a first control signal when overvoltage occurs, and output a second control signal when undervoltage occurs; The second voltage comparison module is connected to the second voltage sampling module and the first voltage comparison module, and is used to set an output comparison threshold, to compare the second sampling signal with the output comparison threshold for overvoltage and output a third control signal, to perform logic processing on the third control signal and the first control signal when overvoltage occurs and to output a first level signal, and to perform inversion processing on the third control signal and perform logic processing on the inverted signal and the second control signal when not overvoltage occurs and output a second level signal; The intelligent control module is connected to the power control module, the input control module, the second voltage sampling module, the first voltage sampling module, the second voltage comparison module and the first voltage comparison module, and is used to receive the first sampling signal and the second sampling signal, to receive the first level signal and output the first pulse signal to control the voltage reduction work of the power control module, to receive the second level signal and output the second pulse signal to control the voltage boost work of the power control module, and to receive the first control signal and the second control signal and output the clock signal to time the power-off work of the input control module; The power control module is connected to the power module, and is used to transmit the power provided by the power module to the input control module, and is used to receive the first pulse signal and perform step-down regulation on the transmitted power, and is used to receive the second pulse signal and perform step-up regulation on the transmitted power; The input control module is connected to the power control module and the MCU module, and is used to transmit the power output by the power control module to the MCU module, and is used to receive the clock signal and perform a timed power-off operation; The MCU module is used to receive the electric energy transmitted by the input control module.
2. The MCU safety protection circuit according to claim 1, characterized in that: The power supply module includes a power adapter; the first voltage sampling module includes a first resistor and a second resistor; the intelligent control module includes a first controller; The first end of the power adapter is connected to the first end of the first resistor, the second end of the first resistor is connected to the first IO terminal of the first controller and is grounded through the second resistor, and the second end of the power adapter is grounded.
3. The MCU safety protection circuit according to claim 2, characterized in that: The power control module includes a first power tube, a first inductor, a third diode, and a second power tube; The source of the first power tube is connected to the anode of the third diode and the drain of the second power tube through the first inductor, the source of the second power tube is grounded, the gate of the second power tube and the gate of the first power tube are respectively connected to the fourth IO terminal of the first controller and the third IO terminal of the first controller, and the cathode of the third diode is connected to the input control module.
4. The MCU safety protection circuit according to claim 3, characterized in that: The power control module also includes a first power supply, a third resistor, a first diode, a fourth resistor, a third power tube and a second diode; The first power supply is connected to the gate of the first power tube and the anode of the first diode through a third resistor, the cathode of the first diode is connected to the gate of the third power tube and is grounded through a fourth resistor, the drain of the third power tube is grounded, the source of the third power tube is connected to the anode of the second diode, and the cathode of the second diode is connected to the source of the first power tube.
5. The MCU safety protection circuit according to claim 4, characterized in that: The second voltage sampling module includes a fifth resistor and a sixth resistor; A first end of the fifth resistor is connected to the cathode of the third diode, a second end of the fifth resistor is connected to the second IO terminal of the first controller and is connected to the ground terminal through a sixth resistor.
6. The MCU safety protection circuit according to claim 5, characterized in that: The input control module includes a seventh resistor, a fourth power tube, a first capacitor and a first switch tube; the MCU module includes an MCU interface; One end of the seventh resistor is connected to the drain of the fourth power tube and the cathode of the third diode, the other end of the seventh resistor is connected to the gate of the fourth power tube and the collector of the first switch tube, the emitter of the first switch tube is grounded, the base of the first switch tube is connected to the fifth IO terminal of the first controller, and the source of the fourth power tube is connected to the MCU interface and grounded through the first capacitor.
7. The MCU safety protection circuit according to claim 6, characterized in that: The first voltage comparison module includes a first threshold device, a fourth diode, and a first comparator; The inverting end of the first comparator is connected to the second end of the first resistor, the non-inverting end of the first comparator is connected to the cathode of the fourth diode, the anode of the fourth diode is connected to the first threshold device, and the output end of the first comparator is connected to the seventh IO end of the first controller.
8. The MCU safety protection circuit according to claim 7, characterized in that: The first voltage comparison module also includes a second power supply, an eighth resistor, a second comparator, and a fifth diode; The second power supply is connected to the cathode of the fifth diode and the inverting end of the second comparator through the eighth resistor, the non-inverting end of the second comparator is connected to the second end of the first resistor, the anode of the fifth diode is connected to the first threshold device, and the output end of the second comparator is connected to the sixth IO end of the first controller.
9. The MCU safety protection circuit according to claim 8, characterized in that: The second voltage comparison module includes a third comparator, a first logic chip, and a second threshold device; The non-inverting end and the inverting end of the third comparator are respectively connected to the second end of the fifth resistor and the second threshold device, the output end of the third comparator is connected to the first end of the first logic chip, the second end of the first logic chip is connected to the output end of the second comparator, and the third end of the first logic chip is connected to the ninth IO end of the first controller.
10. The MCU safety protection circuit according to claim 9, characterized in that: The second voltage comparison module also includes a first inverter and a second logic chip; The input end of the first inverter is connected to the output end of the third comparator, the output end of the first inverter is connected to the first end of the second logic chip, the second end of the second logic chip is connected to the output end of the first comparator, and the output end of the second logic chip is connected to the eighth IO end of the first controller.
Citation Information
Patent Citations
Low-voltage detection circuit with built-in MCU and capable of dynamically switching voltage detection points
CN115754450A
Protection circuit for power supply
CN205986102U
