A MCU power supply self-protection circuit and energy storage power supply

By designing the MCU power supply self-protection circuit, the charging module and comparator module are used to ensure stable power supply of the MCU when the PV energy is unstable, the problem of MCU crash in the photovoltaic input system is solved, and the stable operation and self-protection start of the MCU are achieved.

CN118971287BActive Publication Date: 2025-01-03SHENZHEN POWEROAK NEWENER CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411425394.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-03
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

In photovoltaic input systems, when PV energy is unstable, MCU power supply may cause crash, mainly due to unstable auxiliary power supply.

Method used

A self-protection circuit for power supply of MCU is designed, including a first charging module, a comparator module and a first switching module. It is charged through an auxiliary power supply and is turned on when the MCU outputs a high-level signal, ensuring that the MCU remains unstable when the PV energy is unstable. It can supply power stably and discharge after charging to avoid crashes.

Benefits of technology

It effectively avoids the MCU crash caused by unstable auxiliary power supply, ensures that the MCU can still operate normally when the PV energy is unstable, and provides self-protective startup conditions when the photovoltaic power supply is restored.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971287B_ABST
    Figure CN118971287B_ABST
Patent Text Reader

Abstract

The present invention discloses an MCU power supply self-protection circuit and an energy storage power supply. The MCU power supply self-protection circuit includes a first charging module, a comparator module, and a first switch module; the input end of the first charging module is connected to an auxiliary power supply to charge the first charging module through the auxiliary power supply; the control end of the first switch module is connected to the output end of the MCU so that it can be turned on when the MCU outputs a high-level signal, the first end of the first switch module is connected to the output end of the first charging module, and the second end of the first switch module is grounded, so as to discharge the first charging module when the first switch module is turned on; the output end of the first charging module is connected to the first input end of the comparator module, the second input end of the comparator module is connected to a reference voltage, and the output end of the comparator module is connected to the input end of the MCU, so as to output a low level to the input end of the MCU when the voltage at the first input end is higher than the reference voltage. Through the present invention, the MCU can still be stably powered even when the PV energy is unstable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of protection circuits, and in particular to an MCU power supply self-protection circuit and an energy storage power supply. Background Art

[0002] In power electronic equipment with PV (photovoltaic) input and PV (photovoltaic) power supply for the system, there is a situation where PV (photovoltaic) energy is unstable, such as in the morning or on cloudy days. When the PV (photovoltaic) energy is unstable, the MCU (Micro-controller Unit) may freeze due to unstable auxiliary power supply when the MCU is powered on.

[0003] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes an MCU power supply self-protection circuit and an energy storage power supply, which can ensure that the MCU can still be stably powered even when the PV energy is unstable.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, the present invention discloses an MCU power supply self-protection circuit, comprising: a first charging module, a comparator module, and a first switch module; the input end of the first charging module is connected to an auxiliary power supply to charge the first charging module through the auxiliary power supply; the control end of the first switch module is connected to the output end of the MCU so that it can be turned on when the MCU outputs a high-level signal, the first end of the first switch module is connected to the output end of the first charging module, and the second end of the first switch module is grounded, so as to discharge the first charging module when the first switch module is turned on; the output end of the first charging module is connected to the first input end of the comparator module, the second input end of the comparator module is connected to a reference voltage, and the output end of the comparator module is connected to the input end of the MCU, so as to output a low level to the input end of the MCU when the voltage of the first input end is higher than the reference voltage.

[0007] Preferably, the time it takes for the first charging module to be fully charged is greater than or equal to the time it takes for the MCU to be stably powered on.

[0008] Preferably, the first charging module includes a first resistor and a first capacitor, the first end of the first resistor is connected to the auxiliary power supply, the second end of the first resistor and the first end of the first capacitor are respectively connected to the first input end of the comparator module, the second end of the first resistor and the first end of the first capacitor are also respectively connected to the first end of the first switch module, and the second end of the first capacitor is grounded.

[0009] Preferably, the MCU power supply self-protection circuit also includes a second charging module, the input end of the second charging module is connected to the auxiliary power supply for charging the second charging module through the auxiliary module, and the output end of the second charging module is connected to the input end of the MCU.

[0010] Preferably, the second charging module includes a second resistor and a second capacitor, the first end of the second resistor is connected to the auxiliary power supply, the second end of the second resistor and the first end of the second capacitor are respectively connected to the input end of the MCU, and the second end of the second capacitor is grounded.

[0011] Preferably, the MCU power supply self-protection circuit also includes a second switch module, the control end of the second switch module is connected to the output end of the second charging module, the first end of the second switch module is connected to the output end of the first charging module, and the second end of the second switch module is grounded.

[0012] Preferably, the MCU power supply self-protection circuit also includes a first diode, the anode of the first diode is connected to the input end of the MCU, and the cathode of the first diode is connected to the output end of the comparator module.

[0013] Preferably, the MCU power supply self-protection circuit also includes a hysteresis circuit, the input end of the hysteresis circuit is connected to the auxiliary power supply, the first end of the hysteresis circuit is connected to the second input end of the comparator module to generate the reference voltage, and the second end of the hysteresis circuit is connected to the output end of the comparator module to generate a reset voltage when the output end of the comparator module outputs a low level signal.

[0014] Preferably, the hysteresis circuit includes a third resistor, a fourth resistor, a fifth resistor and a second diode, the first end of the third resistor is connected to the auxiliary power supply, the second end of the third resistor, the first end of the fourth resistor and the first end of the fifth resistor are respectively connected to the second input end of the comparator module, the second end of the fourth resistor is grounded, the second end of the fifth resistor is connected to the positive electrode of the second diode, and the negative electrode of the second diode is connected to the output end of the comparator module.

[0015] In a second aspect, the present invention discloses an energy storage power supply, including the MCU power supply self-protection circuit described in the first aspect.

[0016] Compared with the prior art, the beneficial effect of the present invention is that: the MCU power supply self-protection circuit and energy storage power supply proposed by the present invention include a first charging module, a comparator module and a first switch module, wherein the first charging module is connected to an auxiliary power supply used to activate the MCU for stable power-on to realize charging, when the first charging module is charged to the voltage at the first input end of the comparator module is greater than the reference voltage connected to the second input end of the comparator module, the MCU completes stable power supply, then the output end of the MCU outputs a high-level signal to the first switch module to control the first switch module to be turned on, after the first switch module is turned on, the first charging module can be discharged through the first switch module, and the MCU operates normally; and in the process of charging the first charging module, if the output end of the MCU always outputs a low level, it means that the auxiliary power supply activation power supply does not meet the requirements of stable power-on of the MCU at this time, as the first charging module is continuously charged until the voltage of the first input end of the comparator module connected to the output end of the first charging module is higher than the reference voltage connected to the second input end of the comparator module, then a low-level signal is generated at the output end of the comparator module and output to the input end of the MCU, triggering the MCU to reset, thereby avoiding the serious risk of abnormal MCU startup due to insufficient stable power supply time. Therefore, through the MCU power supply self-protection circuit, it can be ensured that even when the PV energy is unstable, the MCU can still be stably powered, thereby preventing the phenomenon of MCU crashing due to unstable auxiliary power supply.

[0017] In a further embodiment, the present invention also has the following beneficial effects:

[0018] (1) The MCU power supply self-protection circuit also includes a second charging module. When the auxiliary power supply supplies power to the first charging module, the second charging module also supplies power to the second charging module, so that when the output end of the comparator module is a high-level signal, the signal provided by the second charging module to the MCU is also a high-level signal, thereby further ensuring the normal operation of the MCU.

[0019] (2) When the MCU is successfully started and the photovoltaic power supply disappears so that the auxiliary power supply is no longer powered, the energy stored in the first charging module and the second charging module can be discharged through their respective corresponding switch modules, creating conditions for the MCU power supply self-protection to start when the photovoltaic power supply is restored next time; or when the MCU fails to start, the MCU is reset based on the comparator module outputting a low-level signal. At this time, the second switch module can be turned on, so that the second charging module can be discharged through the second switch module until the voltage at the output end of the second charging module is lower than the hysteresis threshold value of the comparator module, further enabling the comparator module to be reset, creating conditions for the MCU power supply self-protection to start when the photovoltaic power supply is restored next time.

[0020] (3) The second input terminal of the comparator module is connected to the hysteresis circuit. When the voltage at the first input terminal of the comparator module is lower than the voltage at the second input terminal, the comparator module outputs a high-level signal. At this time, the voltage at the second input terminal of the comparator module is the reference voltage generated by the hysteresis circuit. When the voltage at the first input terminal of the comparator module increases to a voltage higher than the voltage at the second input terminal due to continuous charging by the first charging module, the comparator module outputs a low-level signal. At this time, the voltage at the second input terminal of the comparator module is the reset voltage generated by the hysteresis circuit, so that the comparator can be reset to achieve the hysteresis effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a structural schematic diagram of the MCU power supply self-protection circuit disclosed in an embodiment of the present invention;

[0022] Figure 2 It is a structural schematic diagram of the MCU power supply self-protection circuit disclosed in the preferred embodiment of the present invention;

[0023] Figure 3 It is a structural schematic diagram of the MCU self-protection circuit disclosed in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following is a detailed description of the embodiments of the present invention. It should be emphasized that the following description is only exemplary and is not intended to limit the scope and application of the present invention.

[0025] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit / signal communication.

[0026] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0027] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0028] like Figure 1 As shown, the first embodiment of the present invention discloses an MCU power supply self-protection circuit 10, including a first charging module 11, a comparator module 12, and a first switch module 13; wherein, the input end of the first charging module 11 is connected to an auxiliary power supply 30 to charge the first charging module 11 through the auxiliary power supply 30; the control end of the first switch module 13 is connected to the output end of the MCU 20 so as to be turned on when the MCU 20 outputs a high-level signal, the first end of the first switch module 13 is connected to the output end of the first charging module 11, and the second end of the first switch module 13 is grounded, so as to discharge the first charging module 11 when the first switch module 13 is turned on; the output end of the first charging module 11 is connected to the first input end In1 of the comparator module 12, the second input end In2 of the comparator module 12 is connected to a reference voltage Vref, and the output end OUT of the comparator module 12 is connected to the input end of the MCU 20, so as to output a low level to the input end of the MCU 20 when the voltage of the first input end In1 is higher than the reference voltage Vref.

[0029] The time it takes for the first charging module 11 to be fully charged is greater than or equal to the time it takes for the MCU 20 to be stably powered on.

[0030] The auxiliary power supply 30 provides energy through photovoltaics. In the presence of photovoltaics, the auxiliary power supply 30 not only supplies power to the first charging module 11, but also supplies power to the MCU 20 to activate the MCU 20 to power on stably. When the MCU 20 needs to be powered on, the auxiliary power supply 30 charges the first charging module 11: (1) based on the fact that the time it takes for the first charging module 11 to be fully charged is greater than or equal to the time it takes for the MCU 20 to power on stably, before the voltage at the first input terminal In1 of the comparator module 12 is greater than the reference voltage Vref connected to the second input terminal In2 of the comparator module, the MCU 20 completes stable power supply, and the output terminal of the MCU 20 outputs a high-level signal to the first switch module 13 to control the first switch module 13 to be turned on. After the first switch module 13 is turned on, the first charging module 11 can be discharged through the first switch module 13, and the MCU 20 operates normally. At this time, the comparator module 12 does not work. (2) If the output terminal of MCU 20 keeps outputting a low level during the process of charging the first charging module 11, it means that the auxiliary power supply activation power supply does not meet the requirement of stable power-on of MCU 20 at this time. As the first charging module 11 is continuously charged, until the voltage of the first input terminal In1 of the comparator module 12 connected to the output terminal of the first charging module 11 is higher than the reference voltage Vref connected to the second input terminal In2 of the comparator module 12, a low level signal is generated at the output terminal OUT of the comparator module 12 and output to the input terminal of MCU 20, triggering the reset of MCU 20, thereby avoiding the serious risk of abnormal startup of MCU 20 due to insufficient stable power supply time. (3) When the photovoltaic power supply disappears, the energy stored in the first charging module 11 is discharged, creating conditions for the self-protection startup of MCU 20 when the photovoltaic power supply is restored next time.

[0031] like Figure 2 As shown, in a preferred embodiment, the MCU power supply self-protection circuit 10 further includes a second charging module 14, the input end of the second charging module 14 is connected to the auxiliary power supply 30 to charge the second charging module 12 through the auxiliary power supply 30, and the output end of the second charging module 14 is connected to the input end of the MCU 20. When the auxiliary power supply 30 supplies power to the first charging module 11, it also supplies power to the second charging module 14, so that when the output end Out of the comparator module 12 is a high-level signal, the signal provided by the second charging module 14 to the MCU 20 is also a high-level signal, further ensuring the normal operation of the MCU 20.

[0032] Furthermore, the MCU power supply self-protection circuit 10 further includes a second switch module 15, the control end of the second switch module 15 is connected to the output end of the second charging module 14, the first end of the second switch module 15 is connected to the output end of the first charging module 11, and the second end of the second switch module 15 is grounded. By setting the second switch module 15, when the MCU 20 fails to start, the first charging module 11 continues to charge, so that the voltage of the first input end In1 of the comparator module 12 reaches the threshold value (i.e., the reference voltage Vref) of the comparator module 12, and the output end Out of the comparator module 12 outputs a low-level signal, and the MCU 20 is reset. At this time, the second charging module 14 provides a bias voltage to the control end of the second switch module 15 to turn on the second switch module 15, so that the second charging module 14 is discharged through the second switch module 15 until the voltage of the output end of the second charging module 14 is lower than the hysteresis threshold value of the comparator module 12, and further the comparator module 12 can also be reset, creating conditions for the MCU 20 power supply self-protection startup when the photovoltaic power supply is restored next time.

[0033] In a preferred embodiment, the MCU power supply self-protection circuit 10 further includes a first diode D1, the anode of the first diode D1 is connected to the input terminal of the MCU 20, and the cathode of the first diode D1 is connected to the output terminal Out of the comparator module 12. The first diode D1 plays a unidirectional conduction role, specifically, it is only turned on when the output terminal Out of the comparator module 12 outputs a low-level signal, at which time the voltage of the input terminal of the MCU 20 is pulled to the same level as the comparator output terminal Out, so that the MCU 20 is reset.

[0034] In a preferred embodiment, the MCU power supply self-protection circuit 10 also includes a hysteresis circuit 16, the input end of the hysteresis circuit 16 is connected to the auxiliary power supply 30, the first end of the hysteresis circuit 16 is connected to the second input end In2 of the comparator module 12 to generate a reference voltage Vref, and the second end of the hysteresis circuit 16 is connected to the output end of the comparator module 12 to enable the hysteresis circuit 16 to generate a reset voltage when the output end Out of the comparator module 12 outputs a low level signal. When the voltage of the first input terminal In1 of the comparator module 12 is less than the voltage of the second input terminal In2, the comparator module 12 outputs a high-level signal. At this time, the voltage of the second input terminal In2 of the comparator module 12 is the reference voltage Vref generated by the hysteresis circuit; when the voltage of the first input terminal In1 of the comparator module 12 increases to a voltage greater than the voltage of the second input terminal In2 due to the continuous charging of the first charging module 11, the comparator module 12 outputs a low-level signal. At this time, the voltage of the second input terminal In2 of the comparator module 12 is the reset voltage (i.e., the hysteresis threshold value) generated by the hysteresis circuit 16, so that the comparator module 12 is reset to achieve the hysteresis effect.

[0035] like Figure 3 As shown, in a specific embodiment of the present invention, the first charging module 11 includes a first resistor R1 and a first capacitor C1, the comparator module 12 includes a comparator U1B, and the first switch module 13 includes a first switch tube Q1. The first end of the first resistor R1 is connected to the auxiliary power supply 30, the second end of the first resistor R1 and the first end of the first capacitor C1 are respectively connected to the first input end of the comparator U1B, the second end of the first resistor R1 and the first end of the first capacitor C1 are also respectively connected to the first end of the first switch tube Q1, the second end of the first capacitor C1 is grounded, the control end of the first switch tube Q1 is connected to the output end M.DSP-RDY of the MCU 20, and the second end of the first switch tube Q1 is grounded. Specifically, the first switch tube Q1 adopts a MOS tube, and in a specific example, an NMOS tube is adopted, the gate of the NMOS tube is connected to the output end M.DSP-RDY of the MCU 20, the drain of the NMOS tube is connected to the second end of the first resistor R1, and the source of the NMOS tube is grounded, so that the NMOS tube is turned on when the output end M.DSP-RDY of the MCU 20 outputs a high level signal.

[0036] The second charging module 14 includes a second resistor R2 and a second capacitor C2, and the second switch module 15 includes a second switch tube Q2. The first end of the second resistor R2 is connected to the auxiliary power supply 30, the second end of the second resistor R2 and the first end of the second capacitor C2 are respectively connected to the input terminal M.DSP-RESET of the MCU 20, and the second end of the second capacitor C2 is grounded. The second capacitor C2 has the function of filtering interference, wherein the second resistor R2 charges the second capacitor C2, and when the output end of the comparator U1B is a high-level signal, the second capacitor C2 provides a high-level signal for the input terminal M.DSP-RESET of the MCU 20, thereby ensuring the normal operation of the MCU 20. The second end of the second resistor R2 and the first end of the second capacitor C2 are also respectively connected to the control end of the second switch tube Q2, the first end of the second switch tube Q2 is connected to the second end of the first resistor R1, and the second end of the second switch tube Q2 is grounded. Specifically, the second switch tube Q2 adopts a transistor, and in the specific example, a PNP transistor is adopted. The base of the PNP transistor is connected to the second end of the second resistor R2, the emitter of the PNP transistor is connected to the second end of the first resistor R1, and the collector of the PNP transistor is grounded; so that the PNP transistor is naturally turned on when the output end of the comparator U1B outputs a low-level signal.

[0037] An anode of the first diode D1 is connected to the input terminal M.DSP-RESET of the MCU 20 , and a cathode of the first diode D1 is connected to the output terminal of the comparator U1B.

[0038] The hysteresis circuit 16 includes a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a second diode D2, the first end of the third resistor R3 is connected to the auxiliary power supply 30, the second end of the third resistor R3, the first end of the fourth resistor R4 and the first end of the fifth resistor R5 are respectively connected to the second input end of the comparator U1B, the second end of the fourth resistor R4 is grounded, the second end of the fifth resistor R5 is connected to the positive electrode of the second diode D2, and the negative electrode of the second diode D2 is connected to the output end of the comparator U1B. Further, the hysteresis circuit 16 also includes a third capacitor C3, and the two ends of the third capacitor C3 are connected in parallel to the two ends of the fourth resistor R4.

[0039] Furthermore, the MCU power supply self-protection circuit 10 also includes a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8, wherein the sixth resistor R6 is connected between the second end of the first resistor R1 and the first end of the first switch tube Q1 to play a role in voltage division protection, the seventh resistor R7 is connected between the second end of the first resistor R1 and the first end of the second switch tube Q2 to play a role in voltage division protection, the first end of the eighth resistor R8 is connected to the control end of the first switch tube Q1, and the second end of the eighth resistor R8 is grounded to play a filtering role, thereby avoiding false triggering.

[0040] In a specific example, the input terminal M.DSP-RESET of MCU 20 receives the IO signal output by the MCU power self-protection circuit 10 to MCU 20, and the output terminal M.DSP-RDY of MCU 20 outputs the IO signal of MCU 20. The principle of the scheme of the present invention is further explained below in combination with the specific values ​​of each device.

[0041] In the case of photovoltaic, the auxiliary power supply 30 generates a +3.3V voltage to the MCU power supply self-protection circuit 10 and the MCU 20. At this time, after the auxiliary power supply 30 generates a +3.3V voltage to the MCU power supply self-protection circuit 10, there are two power flow paths in the MCU power supply self-protection circuit 10, and capacitors are connected in series in each current flow path to achieve the effect of charging the capacitor, wherein the first power flow path +3.3V→R1→C1→GND charges the first capacitor C1, and the second power flow path +3.3V→R2→C2→GND charges the second capacitor C2.

[0042] If the MCU 20 completes stable power supply before the voltage at the first capacitor C1 is charged to a voltage greater than the reference voltage of the comparator U1B, the MCU 20 controls the IO port corresponding to the output terminal M.DSP-RDY to output a high-level signal to control the first switch tube Q1 to be turned on. After the first switch tube Q1 is turned on, the energy of the first capacitor C1 is discharged through the first switch tube Q1, and the MCU 20 operates normally. At this time, the comparator U1B does not work.

[0043] If the IO port corresponding to the control output terminal M.DSP-RDY of MCU 20 is always at a low level during the charging process of the first capacitor C1 and the second capacitor C2, it means that the activation of the auxiliary power supply 30 does not meet the requirement of stable power-on of MCU 20. As the first capacitor C1 is continuously charged, the voltage of the first capacitor C1 is higher than the reference voltage of the comparator U1B, and a low-level signal is generated at the output terminal of the comparator U1B, that is, the input terminal M.DSP-RESET of MCU 20 receives the low-level signal, triggering the reset of MCU 20, thereby avoiding the serious risk of abnormal startup of MCU 20 due to insufficient stable power supply time.

[0044] When the photovoltaic power supply disappears, the energy stored in the first capacitor C1 and the second capacitor C2 is discharged, creating conditions for the MCU 20 to start the power supply self-protection when the photovoltaic power supply is restored next time.

[0045] In a specific example, the resistance of the first resistor R1 is 10KΩ; the capacitance of the first capacitor C1 is 10μF; wherein, the larger the resistance of the first resistor R1, the larger the voltage drop at the first resistor R1, and the smaller the remaining voltage flowing through the first resistor R1. At the same time, the larger the capacitance of the first capacitor C1, the greater the energy to be charged, and the longer the charging time. At this time, it can meet the requirement that the MCU 20 is sufficiently powered on stably before the first capacitor C1 is charged to the reference voltage Vref of the comparator U1B. In other embodiments, the parameters of the first resistor R1 and the first capacitor C1 can also be set as needed, as long as the charging time of the first capacitor C1 is sufficient to cover the time required for the MCU 20 to start stably.

[0046] In a specific example, the parameter values ​​of the components in the hysteresis circuit 16 are as follows: the resistance value of the third resistor R3 is 470Ω; the resistance value of the fourth resistor R4 is 10KΩ; and the resistance value of the fifth resistor R5 is 200Ω. Specifically, when the voltage at the first input terminal of the comparator U1B is less than the voltage at the second input terminal, the comparator U1B outputs a high level. At this time, the voltage at the second input terminal is the result of +3.3V input by the auxiliary power supply 30 being divided by the third resistor R3 and the fourth resistor R4, which is 3.15V in this example; when the voltage at the first input terminal of the comparator U1B increases to greater than 3.15V due to the charging of the first capacitor C1, the comparator U1B outputs a low level. At this time, the voltage at the second input terminal of the comparator U1B is the result of the voltage division of the third resistor R3, the fourth resistor R4, and the fifth resistor R5, which is 0.97V in this example. When the first capacitor C1 discharges so that the voltage at the first input terminal of the comparator U1B is lower than 0.97V, the comparator U1B is reset to achieve the hysteresis effect. The second electrode tube D2 plays a unidirectional conduction role. When the output end of the comparator U1B is a high-level signal, it is not turned on, that is, at this time, the voltage of the second input end of the comparator U1B is the result of the voltage division of the third resistor R3 and the fourth resistor R4; and when the output end of the comparator U1B is a low-level signal, it is turned on, so that the voltage of the second input end of the comparator U1B becomes the result of the voltage division of the third resistor R3, the fourth resistor R4, and the fifth resistor R5. In this example, the voltage of the second input end of the comparator U1B changes from 3.15V to 0.97V. In other examples, it is only necessary to make the fourth resistor significantly larger than the third resistor and the fifth resistor. In addition, the third capacitor C3 can play a filtering role.

[0047] It should be noted that the above parameters are only parameter values ​​of the devices used in a specific example of the present invention. In other embodiments, under the condition of complying with the principle of the present invention, the parameters of the components can be reasonably selected according to their own needs.

[0048] Embodiment 2 of the present invention discloses an energy storage power supply, including the MCU power supply self-protection circuit in the above embodiment 1.

[0049] The background section of the present invention may contain background information about the problem or environment of the present invention, rather than describing the prior art by others. Therefore, the content contained in the background section is not an admission by the applicant that the prior art is available.

[0050] The above content is a further detailed description of the present invention in combination with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be regarded as belonging to the protection scope of the present invention. In the description of this specification, the description of reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of mutual contradiction, the technical personnel in this field can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope defined by the attached claims.

Claims

1. An MCU power supply self-protection circuit, characterized in that: It includes a first charging module, a second charging module, a comparator module, a first switch module and a second switch module; The input end of the first charging module is connected to an auxiliary power supply so as to charge the first charging module through the auxiliary power supply; The control end of the first switch module is connected to the output end of the MCU so as to be turned on when the MCU outputs a high level signal, the first end of the first switch module is connected to the output end of the first charging module, and the second end of the first switch module is grounded so as to discharge the first charging module when the first switch module is turned on; The output end of the first charging module is connected to the first input end of the comparator module, the second input end of the comparator module is connected to a reference voltage, and the output end of the comparator module is connected to the input end of the MCU, so as to output a low level to the input end of the MCU when the voltage of the first input end is higher than the reference voltage; The input end of the second charging module is connected to the auxiliary power supply for charging the second charging module through the auxiliary power supply, and the output end of the second charging module is connected to the input end of the MCU; the control end of the second switch module is connected to the output end of the second charging module, the first end of the second switch module is connected to the output end of the first charging module, and the second end of the second switch module is grounded.

2. The MCU power supply self-protection circuit according to claim 1, characterized in that: The time it takes for the first charging module to be fully charged is greater than or equal to the time it takes for the MCU to be stably powered on.

3. The MCU power supply self-protection circuit according to claim 1, characterized in that: The first charging module includes a first resistor and a first capacitor, the first end of the first resistor is connected to the auxiliary power supply, the second end of the first resistor and the first end of the first capacitor are respectively connected to the first input end of the comparator module, the second end of the first resistor and the first end of the first capacitor are also respectively connected to the first end of the first switch module, and the second end of the first capacitor is grounded.

4. The MCU power supply self-protection circuit according to claim 1, characterized in that: The second charging module includes a second resistor and a second capacitor, a first end of the second resistor is connected to the auxiliary power supply, a second end of the second resistor and a first end of the second capacitor are respectively connected to the input end of the MCU, and a second end of the second capacitor is grounded.

5. The MCU power supply self-protection circuit according to claim 1, characterized in that: It also includes a first diode, wherein the anode of the first diode is connected to the input end of the MCU, and the cathode of the first diode is connected to the output end of the comparator module.

6. The MCU power supply self-protection circuit according to claim 1, characterized in that: It also includes a hysteresis circuit, wherein the input end of the hysteresis circuit is connected to the auxiliary power supply, the first end of the hysteresis circuit is connected to the second input end of the comparator module for generating the reference voltage, and the second end of the hysteresis circuit is connected to the output end of the comparator module for generating a reset voltage when the output end of the comparator module outputs a low level signal.

7. The MCU power supply self-protection circuit according to claim 6, characterized in that: The hysteresis circuit includes a third resistor, a fourth resistor, a fifth resistor and a second diode, the first end of the third resistor is connected to the auxiliary power supply, the second end of the third resistor, the first end of the fourth resistor and the first end of the fifth resistor are respectively connected to the second input end of the comparator module, the second end of the fourth resistor is grounded, the second end of the fifth resistor is connected to the positive electrode of the second diode, and the negative electrode of the second diode is connected to the output end of the comparator module.

8. An energy storage power supply, characterized in that: It comprises the MCU power supply self-protection circuit as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dormancy awakening method and system

    CN111654901A

  • Protection circuit and energy storage power supply

    CN219247468U