Power supply control device and method for MCU working circuit and microprocessor

Through the combined power supply control of energy storage capacitors and reference capacitors, the problem of excessive standby power consumption of MCU chips is solved, achieving longer standby time and better user experience.

CN107861599BActive Publication Date: 2025-09-02SHANGHAI EASTSOFT MICROELECTRONICS +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201710935642.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-10-10
Publication Date
2025-09-02
Estimated Expiration
2037-10-10

AI Technical Summary

Technical Problem

The working circuit of the MCU chip consumes too much power in standby state, causing the equipment power to drop too quickly and affect the user experience.

Method used

Using a combination of energy storage capacitors and reference capacitors, voltage comparison is made through the detection circuit, and the switches of the power supply circuit are controlled to optimize the power supply mode to ensure that the working circuit is only supplied when necessary and avoid unnecessary power consumption.

Benefits of technology

Reduces standby power consumption, extends the standby time of the device, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN107861599B_ABST
    Figure CN107861599B_ABST
Patent Text Reader

Abstract

The present invention provides a power supply control device, method and microprocessor for an MCU working circuit, the device comprising: a power supply circuit, a detection circuit, an energy storage capacitor and a reference capacitor; the power supply circuit comprising a power supply circuit; the detection circuit being configured to compare the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor; when the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, controlling the energy storage capacitor to supply power to the working circuit; and when the current voltage is lower than the reference voltage, controlling the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode. The present invention avoids the working circuit from being constantly operational. Compared to the prior art, the present invention reduces standby power consumption, thereby increasing standby time and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a microprocessor unit, and in particular to a power supply control device and method for an MCU working circuit, and a microprocessor. Background Art

[0002] A microcontroller unit (MCU) is a chip-level computer. MCUs and similar SOC chips are widely used in industries such as handheld devices, medical electronics, smart home electronics, and the Internet of Things.

[0003] In the field of MCU chip design, the MCU's operating circuits, such as the digital logic circuit, require a power supply module to provide power, as well as a timer circuit for wake-up, timing, and other functions. These power supply modules and timer circuits must remain operational at all times. This solution results in excessive standby power consumption, which causes the device's battery to drain too quickly, resulting in high power consumption, reduced standby time, and a significant impact on the user experience. Summary of the Invention

[0004] The present invention provides a power supply control device and method for an MCU working circuit and a microprocessor, so as to solve the problem of excessive standby power consumption.

[0005] According to a first aspect of the present invention, a power supply control device for an MCU working circuit is provided, comprising: a power supply circuit, a detection circuit, an energy storage capacitor, and a reference capacitor; the power supply circuit comprises a power supply circuit, wherein:

[0006] The output end of the power supply circuit is connected to the energy storage capacitor, the working circuit and the reference capacitor respectively;

[0007] The energy storage capacitor is also connected to the detection circuit and the working circuit;

[0008] The reference capacitor is also connected to the detection circuit;

[0009] The detection circuit is used to compare the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor; when the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, the detection circuit controls the energy storage capacitor to power the working circuit; when the current voltage is lower than the reference voltage, the detection circuit controls the power supply circuit to power the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode.

[0010] Optionally, the power supply circuit further includes: a voltage divider circuit;

[0011] The voltage divider circuit is connected to the power supply circuit, the energy storage capacitor and the reference capacitor respectively;

[0012] When the power supply circuit supplies power to the working circuit, the voltage divider circuit is used to make the voltage of the energy storage capacitor reach the normal working voltage of the working circuit and make the reference capacitor maintain the reference voltage.

[0013] Optionally, the voltage divider circuit includes:

[0014] a first resistor and a second resistor, wherein a first end of the first resistor is connected to the power supply circuit and the energy storage capacitor at a first node respectively, a second end of the first resistor is connected to the first end of the second resistor at a second node, and the reference capacitor is further connected to the first resistor and the second resistor at the second node;

[0015] The current voltage of the energy storage capacitor is the voltage between the first node and the ground, and the reference voltage of the reference capacitor is the voltage between the second node and the ground.

[0016] Optionally, the device further includes: a chip power supply;

[0017] The chip power supply is connected to the power supply circuit and the detection circuit respectively; a first switch is provided between the first node and the energy storage capacitor, a second switch is provided between the second node and the reference capacitor, and a third switch is provided between the power supply circuit and the chip power supply;

[0018] The detection circuit is specifically configured to control the first switch, the second switch, and the third switch to be opened when the current voltage is higher than the reference voltage; and to control the first switch, the second switch, and the third switch to be closed when the current voltage is lower than the reference voltage.

[0019] Optionally, the detection circuit is a comparator, the energy storage capacitor is connected to a first input terminal of the comparator, the reference capacitor is connected to a second input terminal of the comparator, and an output terminal of the comparator is connected to the first switch, the second switch, and the third switch respectively;

[0020] The comparator is specifically configured to output a first level signal to the first switch, the second switch, and the third switch to control the first switch, the second switch, and the third switch to be disconnected when the current voltage is higher than the reference voltage; and output a second level signal to the first switch, the second switch, and the third switch to control the first switch, the second switch, and the third switch to be closed when the current voltage is lower than the reference voltage.

[0021] Optionally, the device further includes: a reference source circuit;

[0022] The reference source circuit is connected between the chip power supply and the power supply circuit, and its output end is also connected to the second input end of the comparator;

[0023] The voltage divider circuit further includes a third resistor, a first end of the third resistor is connected to the second end of the second resistor, the first input end of the comparator is connected to a third node between the second resistor and the third resistor, and the second end of the third resistor is grounded;

[0024] When the energy storage capacitor supplies power to the working circuit, the comparator is specifically used to compare the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor;

[0025] When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, controlling the energy storage capacitor to continue to supply power to the working circuit;

[0026] When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, controlling the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and controlling the chip power supply to supply power to the reference source circuit;

[0027] When the power supply circuit supplies power to the working circuit, the comparator is further configured to compare a divided output voltage of the power supply circuit with an output voltage of the reference source circuit, wherein the divided output voltage is a voltage between the third node and ground, and the output voltage of the reference source circuit is a preset voltage; when the divided output voltage is higher than the preset voltage, the current voltage of the energy storage capacitor is higher than a normal operating voltage of the working circuit;

[0028] When the divided output voltage is higher than the preset voltage, controlling the energy storage capacitor to supply power to the working circuit;

[0029] When the divided output voltage is lower than the preset voltage, the power supply circuit is controlled to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and the chip power supply is controlled to continue to supply power to the reference source circuit.

[0030] Optionally, a fourth switch is provided between the energy storage capacitor and the comparator, a fifth switch is provided between the third node and the comparator, a sixth switch is provided between the reference capacitor and the comparator, a seventh switch is provided between the reference source circuit and the comparator, and an inverter is further provided between the fourth switch, the sixth switch and the output end of the comparator;

[0031] The comparator is specifically configured to, when the current voltage is higher than the preset voltage, output a first level signal to the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch, so as to control the first switch, the second switch, the third switch, the fifth switch, and the seventh switch to be opened and the fourth switch and the sixth switch to be closed; and, when the current voltage is lower than the reference voltage, output a second level signal to the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch, so as to control the first switch, the second switch, the third switch, the fifth switch, and the seventh switch to be closed and the fourth switch and the sixth switch to be opened.

[0032] Optionally, the power supply circuit is a low voltage dropout linear regulator or a first bandgap reference circuit.

[0033] Optionally, the reference source circuit is a second bandgap reference circuit.

[0034] Optionally, the output end of the comparator is also connected to a watchdog circuit, and the output signal of the comparator serves as a clock signal of the watchdog circuit.

[0035] According to a second aspect of the present invention, there is provided a microprocessor comprising the apparatus according to the first aspect of the present invention and its optional solutions.

[0036] According to a third aspect of the present invention, a method for controlling power supply of an MCU working circuit is provided, comprising:

[0037] The detection circuit compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor;

[0038] When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, the detection circuit controls the energy storage capacitor to supply power to the working circuit;

[0039] When the current voltage is lower than the reference voltage, the detection circuit controls the power supply circuit of the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode.

[0040] Optionally, the method further includes:

[0041] When the power supply circuit supplies power to the working circuit, the voltage divider circuit enables the voltage of the energy storage capacitor to reach the normal working voltage of the working circuit and enables the reference capacitor to maintain the reference voltage;

[0042] The current voltage of the energy storage capacitor is the voltage between the first node of the voltage divider circuit and the ground, and the reference voltage of the reference capacitor is the voltage between the second node of the voltage divider circuit and the ground.

[0043] Optionally, the detection circuit is a comparator;

[0044] When the comparator controls the energy storage capacitor to supply power to the working circuit, the method further includes:

[0045] When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, the comparator further controls the chip power supply to supply power to the reference source circuit;

[0046] When the comparator controls the power supply circuit to supply power to the working circuit, the method further includes:

[0047] The comparator compares the divided output voltage of the power supply circuit with the output voltage of the reference source circuit; wherein the divided output voltage is the voltage between the third node of the voltage divider circuit and the ground, and the output voltage of the reference source circuit is a preset voltage; when the divided output voltage is higher than the preset voltage, the current voltage of the energy storage capacitor is higher than the normal operating voltage of the working circuit;

[0048] When the divided output voltage is higher than the preset voltage, controlling the energy storage capacitor to supply power to the working circuit;

[0049] When the divided output voltage is lower than the preset voltage, the power supply circuit is controlled to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and the chip power supply is controlled to continue to supply power to the reference source circuit.

[0050] Optionally, the power supply circuit is a low voltage dropout linear regulator or a first bandgap reference circuit.

[0051] Optionally, the reference source circuit is a second bandgap reference circuit.

[0052] Optionally, the detection circuit is a comparator, and the method further includes: an output signal of the comparator is used as a clock signal of the watchdog circuit.

[0053] The power supply control device, method and microprocessor of the MCU working circuit provided by the present invention control the energy storage capacitor to supply power to the working circuit when the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, and control the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit when the current voltage is lower than the reference voltage, thereby avoiding the working circuit from keeping working at all times. Compared with the existing technology, the present invention reduces standby power consumption, thereby increasing standby time and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0055] Figure 1 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 1 ;

[0056] Figure 2 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 2 ;

[0057] Figure 3 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 3 ;

[0058] Figure 4 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 4 ;

[0059] Figure 5 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 5 ;

[0060] Figure 6 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 6 ;

[0061] Figure 7 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 7 ;

[0062] Figure 8 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 8 ;

[0063] Figure 9This is a schematic diagram of the voltage change of the energy storage capacitor in the power supply control device of the MCU working circuit of the present invention;

[0064] Figure 10 This is a schematic diagram of changes in a pulse signal output by a detection circuit in a power supply control device for an MCU working circuit of the present invention;

[0065] Figure 11 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 1 ;

[0066] Figure 12 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 2 ;

[0067] Figure 13 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 3 ;

[0068] Figure 14 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 4 . DETAILED DESCRIPTION

[0069] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.

[0070] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the invention described herein can, for example, be implemented in orders other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, apparatus, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0071] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0072] Figure 1 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 1 ;refer to Figure 1 The device includes: a power supply circuit U1, a detection circuit U2, an energy storage capacitor C L and reference capacitor C S The power supply circuit U1 includes a power supply circuit U 11 ;in:

[0073] The power supply circuit U 11 The output terminals are connected to the energy storage capacitor C L , working circuit U3 and the reference capacitor C S connect;

[0074] The energy storage capacitor C L It is also connected to the detection circuit U2 and the working circuit U3;

[0075] The reference capacitance C S Also connected to the detection circuit U2;

[0076] The detection circuit U2 is used to detect the energy storage capacitor C L The current voltage and the reference capacitor C S The reference voltage is compared; when the energy storage capacitor C L The current voltage is higher than the reference capacitor C S When the reference voltage is , the detection circuit U2 controls the energy storage capacitor C L Power is supplied to the working circuit U3. When the current voltage is lower than the reference voltage, the detection circuit U2 controls the power supply circuit U 11 is the energy storage capacitor C L , the reference capacitor C S and supplies power to the working circuit U3, wherein the reference voltage is the minimum voltage required for the working circuit U3 to operate in standby mode.

[0077] Power supply circuit U 11 , which can be understood as a circuit structure that can realize power supply transmission.

[0078] Energy storage capacitor C L , when storing energy, the power supply circuit U 11 The supplied electrical energy can be discharged to the working circuit U3 when discharging. L It can be one or more. In the specific implementation, other energy storage elements can also be selected to replace the energy storage capacitor C L , such as inductors, chemical batteries, etc.

[0079] Reference capacitor C S, since it does not discharge, and can be used in the power supply circuit U 11 When power is supplied to it, the reference voltage is reached, which can provide a stable basis for the judgment of the detection circuit U2 and meet the judgment requirements of the detection circuit U2 with fewer components.

[0080] Working circuit U3 can be any working circuit of the microprocessor and can have a certain margin. Since working circuit U3 basically does not run any program in standby mode and only maintains data, the current consumed is generally a fixed value. If it runs programs such as query, interrupt, and timing, the power consumption is only minimal or the power consumption value is periodic. Therefore, it is not necessary to maintain the working circuit U3 at the normal operating voltage.

[0081] In this embodiment, the energy storage capacitor C L When powering the working circuit U3, since the working circuit U3 consumes a fixed small current, the energy storage capacitor C L The voltage gradually decreases and does not drop to the reference capacitor C S When the reference voltage is lower than the reference voltage, the voltage of the working circuit U3 can be guaranteed to be above the minimum voltage required for standby operation, that is, the working circuit U3 can be guaranteed to work. When it drops below the reference voltage, the power supply circuit U 11 Provides power to the working circuit U3.

[0082] It can be seen that the present invention uses the energy storage capacitor C L The current voltage is higher than the reference capacitor C S When the reference voltage is L Power the working circuit U3. When the current voltage is lower than the reference voltage, the power supply circuit U 11 is the energy storage capacitor C L , the reference capacitor C S The power supply of the working circuit U3 is avoided by the working circuit U3 to keep working normally at all times. Compared with the prior art, the present invention reduces the standby power consumption, thereby increasing the standby time and improving the user experience.

[0083] In addition, since the reference voltage can be determined as the minimum voltage required for standby operation, this embodiment ensures that the power consumption of the MCU chip in standby mode is only slightly higher than the necessary power consumption.

[0084] Figure 2 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 2 .exist Figure 1 Schematic structure based on reference Figure 2 The power supply circuit U1 may further include: a voltage divider circuit U 12 ;

[0085] The voltage divider circuit U 12 Respectively with the power supply circuit U 11 , the energy storage capacitor C L and the reference capacitor C S connect.

[0086] In the power supply circuit U 11 When supplying power to the working circuit U3, the voltage divider circuit U 12 For making the energy storage capacitor C L The voltage of the working circuit U3 reaches the normal working voltage, and the reference capacitor C S Maintain the reference voltage.

[0087] In this embodiment, the voltage divider circuit U 12 , the reference capacitance C can be realized S and the energy storage capacitor C L are at different voltages to meet the reference capacitance C S Maintaining the reference voltage and the energy storage capacitor C L The stored energy meets the normal operating voltage requirement of the working circuit U3.

[0088] In addition, in this embodiment, as the energy storage capacitor C L When the voltage drops when powering the working circuit U3, the working circuit U3 enters standby mode from normal operation until the minimum voltage required for standby operation is reached. During this period, there is no need to latch data, and no additional high-voltage logic unit is required in the process. Correspondingly, there is no need to read the latched data when waking up from standby mode. Compared with the solution that requires latching data in the existing related technology, the speed is better.

[0089] The voltage divider circuit U 12 Specifically, it may include:

[0090] The first resistor R1 and the second resistor R2, the first end of the first resistor R1 are connected to the power supply circuit U 11 and the energy storage capacitor C L connected to a first node 41, the second end of the first resistor R1 and the first end of the second resistor R2 are connected to a second node 42, and the reference capacitor C S The first resistor R1 and the second resistor R2 are also connected to the second node 42. In addition, the working circuit U3 can also be connected to the first node 41.

[0091] The energy storage capacitor C L The voltage between the first node 41 and the ground is the voltage between the first node 41 and the ground, and the reference capacitor C S The reference voltage is the voltage between the second node 42 and the ground.

[0092] This embodiment uses a first resistor R1 and a second resistor R2 to divide the voltage, achieving voltage division with fewer components. Furthermore, the first resistor R1 may include only a single resistor or multiple sub-resistors, and the multiple sub-resistors in the first resistor R1 may be combined in series, in parallel, or in series-parallel to achieve the desired resistance value of the first resistor R1. The second resistor R2 may include only a single resistor or multiple sub-resistors, and the multiple sub-resistors in the second resistor R2 may be combined in series, in parallel, or in series-parallel to achieve the desired resistance value of the second resistor R2.

[0093] Power supply circuit U 11 The output voltage value can be V DD , the voltage drop across the first resistor R1 can be △V, V DD It can be the voltage value of the working circuit U3 when it is working normally, and also the energy storage capacitor C L Voltage value after energy storage; Since the working voltage of the working circuit U3 has a certain margin, the voltage of the working circuit U3 in standby operation can be (V DD -△V), corresponding to the reference capacitance C S The voltage to be maintained must be (V DD -△V), so after the first resistor R1 divides the voltage △V, it can be supplied to the reference capacitor C S The voltage is (V DD -△V). When the energy storage capacitor C L The voltage drops to less than (V DD -△V), the detection circuit U2 controls the power supply circuit U 11 is the energy storage capacitor C L , working circuit U3 and reference capacitor C S powered by.

[0094] In other optional implementations, the voltage division method may not be through the resistor string voltage division, but may be through the MOS tube string voltage division working in the linear region or other methods that can generate (V DD -△V) voltage of any circuit method.

[0095] Figure 3 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 3 .exist Figure 2 Schematic structure based on reference Figure 3 , the device may further include: a chip power supply U0.

[0096] The chip power supply U0 is respectively connected to the power supply circuit U 11 and the detection circuit U2; the first node 41 is connected to the energy storage capacitor C LA first switch S1 is provided between the second node 42 and the reference capacitor C S A second switch S2 is provided between the power supply circuit U 11 A third switch S3 is provided between the chip power supply U0 and the chip power supply U0.

[0097] The detection circuit U2 is specifically configured to control the first switch S1, the second switch S2, and the third switch S3 to be opened when the current voltage is higher than the reference voltage; and to control the first switch S1, the second switch S2, and the third switch S3 to be closed when the current voltage is lower than the reference voltage.

[0098] When the first switch S1, the second switch S2 and the third switch S3 are all disconnected, the energy storage capacitor C L It can supply power to the working circuit U3; when the first switch S1, the second switch S2 and the third switch S3 are all closed, the power supply circuit U 11 For the working circuit U3, the energy storage capacitor C L , and the reference capacitor C S powered by.

[0099] This embodiment avoids the energy storage capacitor C by setting the first switch S1 and the second switch S2. L When supplying power to the working circuit U3, the energy storage capacitor C L With the reference capacitor C S Voltage divider circuit U 12 The resistor in the capacitor discharges, causing the energy storage capacitor C L The discharge current is basically supplied to the working circuit U3, and the reference capacitor C S Basically no discharge. By setting the third switch S3, the power supply circuit U 11 Whether to connect the chip power supply U0 to control, only when the chip power supply U0 is connected, the power supply circuit U 11 Only then can the electricity it supplies be used to provide electricity to the power supply control device.

[0100] In addition, the first switch S1, the second switch S2 and the third switch S3 are repeatedly controlled to be on and off, and the energy storage capacitor C L The voltage on the capacitor can always keep the working circuit U3 working. L The charging time is much shorter than the energy storage capacitor C L The discharging time will be averaged, which is much smaller than the power supply circuit U 11 Therefore, the power supply circuit U 11 The power consumption of normal operation can be increased, and it has a stronger anti-interference ability when supplying power. Since the power consumption is small in standby mode, the energy storage capacitor C LThere is no need to configure a higher energy storage capacity. In a specific implementation, it is not necessary to use an excessively large capacitance value, which can avoid excessive chip area overhead.

[0101] Figure 4 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 4 . Figure 5 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 5 .

[0102] refer to Figure 4 and Figure 5 ,exist Figure 3 Based on the schematic structure, the detection circuit U2 is a comparator CMP, the energy storage capacitor C L is connected to the first input terminal of the comparator CMP, the reference capacitor C S The first switch S1 is connected to the second input terminal of the comparator CMP, and the output terminal of the comparator CMP is connected to the first switch S1, the second switch S2 and the third switch S3 respectively.

[0103] The comparator CMP is specifically configured to, when the current voltage is higher than the reference voltage, output a first level signal to the first switch S1, the second switch S2, and the third switch S3 to control the first switch S1, the second switch S2, and the third switch S3 to be disconnected, and the first level signal may be a high level; and, when the current voltage is lower than the reference voltage, output a second level signal to the first switch S1, the second switch S2, and the third switch S3 to control the first switch S1, the second switch S2, and the third switch S3 to be closed, and the second level signal may be a low level.

[0104] refer to Figure 4 and Figure 5 , the working circuit U3 can be a digital logic circuit U 31 For example: Under normal circumstances, the digital logic circuit U 31 The required normal operating voltage can be 1.6V. If the operating voltage drops to 1.3V, for the digital logic circuit U 31 , can still keep working or keep data, where 1.3V can be understood as the digital logic circuit U 31 The minimum voltage required for standby operation.

[0105] In addition, the energy storage capacitor C L The first end of the first resistor R1 is connected to the first node 41 through the first switch S1, and then connected to the first end of the first resistor R1, the power supply circuit U 11 , and the working circuit U3, the energy storage capacitor C LThe first end of the comparator CMP is also connected to the first input end of the energy storage capacitor C L The second end of the reference capacitor C S The first end of the reference capacitor C is connected to the second node 42 through the second switch S2, and further connected to the second end of the first resistor R1 and the first end of the second resistor R2. S The first terminal is also connected to the second input terminal of the comparator CMP, the reference capacitor C S The second end is grounded.

[0106] refer to Figure 4 In this embodiment, the power supply circuit U1 is a low dropout regulator (LDO). Through the low dropout regulator (LDO), a transistor or FET operating in its linear region can be used to subtract excess voltage from the applied input voltage to generate a regulated output voltage.

[0107] When the power supply circuit U1 is a low voltage dropout linear regulator LDO, the voltage divider circuit U 12 This can be achieved by using the sampling resistor of the voltage divider circuit used by the low-dropout linear regulator LDO without the need for additional components. Figure 4 The sampling resistor may include a first resistor R1, a second resistor R2, and a third resistor R3. By sampling the voltage between the second resistor R2 and the third resistor R3, the regulated output of the low-dropout linear regulator (LDO) can be adjusted. The third resistor R3 can be grounded, and the sampled voltage is the voltage drop across the third resistor R3. The third resistor R3 may be a single resistor or comprise multiple sub-resistors. The multiple sub-resistors within the third resistor R3 may be combined in series, parallel, or series-parallel to achieve the desired resistance value for the third resistor R3.

[0108] For the sampling resistor, the existing technical solutions all require very high resistance values ​​to achieve low power consumption. This solution only requires resistors of around tens of kilo-ohms to achieve this. It can be seen that due to the low standby power consumption, it does not need to use excessively large resistors, avoiding the use of high-resistance processes or the resistors occupying too large a chip area.

[0109] refer to Figure 5 In this embodiment, the power supply circuit U1 is a first bandgap reference circuit Bandgap1. Through the first bandgap reference circuit Bandgap1, a voltage with a zero temperature coefficient can be obtained by linearly combining two voltages with opposite temperature coefficients based on the characteristic that the bandgap voltage of silicon material is independent of the power supply voltage and temperature. 12 This can be achieved by using the resistor in the first bandgap reference circuit Bandgap1. In this solution, refer to Figure 5 , voltage divider circuit U 12The device may include a first resistor R1 and a second resistor R2, and the second resistor R2 is grounded.

[0110] exist Figure 4 and Figure 5 In the illustrated embodiment, the energy storage capacitor C L Power the working circuit U3 and the power supply circuit U 11 When the working circuit U3 is powered, the comparator CMP is connected to the energy storage capacitor C L The current voltage and the reference capacitor C S The reference voltage is compared.

[0111] In the energy storage capacitor C L When the working circuit U3 is powered, the comparator CMP is specifically used to L The current voltage and the reference capacitor C S The reference voltage is compared, specifically: when the energy storage capacitor C L The current voltage is higher than the reference capacitor C S When the reference voltage is less than 0.01, the output level of the comparator CMP does not change to control the energy storage capacitor C L Continue to supply power to the working circuit U3; when the energy storage capacitor C L The current voltage is lower than the reference capacitor C S When the reference voltage is higher, the output level of the comparator CMP changes to control the power supply circuit U 11 is the energy storage capacitor C L , the reference capacitor C S and supplies power to the working circuit U3.

[0112] In the power supply circuit U 11 When the working circuit U3 is powered, the comparator CMP is specifically used to L The current voltage and the reference capacitor C S The reference voltage is compared, specifically: when the energy storage capacitor C L The current voltage is higher than the reference capacitor C S When the reference voltage is higher, the output level of the comparator CMP changes to control the energy storage capacitor C L Power the working circuit; when the energy storage capacitor C L The current voltage is lower than the reference capacitor C S When the reference voltage is 0, the output level of the comparator CMP does not change, and the power supply circuit U is controlled 11 Continue to the energy storage capacitor C L , the reference capacitor C S , the working circuit U3 is powered.

[0113] Among them, the output level changes to control the energy storage capacitor C L When power is supplied, the energy storage capacitor C L The voltage of is the reference voltage, that is, the minimum voltage required for the working circuit to work in standby mode, and this embodiment requires that the energy storage capacitor C L The voltage of the working circuit U3 can reach the normal working voltage. Therefore, in order to meet the voltage of the working circuit U3 reaching the normal working voltage, the on-off changes of the first switch S1, the second switch S2 and the third switch S3 need to be delayed. The delay time can be understood as meeting the energy storage capacitor C L The time required to charge the circuit U3 to its normal operating voltage. In a specific implementation, a delay circuit can be provided at the output of the comparator CMP to meet the delay time requirement.

[0114] Figure 6 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 6 .

[0115] refer to Figure 6 , the device may further include: a reference source circuit U4.

[0116] The reference source circuit U4 is connected to the chip power supply U0 and the power supply circuit U 11 Its output terminal is also connected to the second input terminal of the comparator CMP.

[0117] The voltage divider circuit U 12 A third resistor R3 is further included, a first end of the third resistor R3 is connected to the second end of the second resistor R2, and a first input end of the comparator CMP is connected to a third node 43 between the second resistor R2 and the third resistor R3.

[0118] In the energy storage capacitor C L When the working circuit U3 is powered, the comparator CMP is specifically used to L The current voltage and the reference capacitor C S The reference voltage is compared.

[0119] When the energy storage capacitor C L The current voltage is higher than the reference capacitor C S When the reference voltage is L The working circuit U3 continues to be powered.

[0120] When the energy storage capacitor C L The current voltage is lower than the reference capacitor CS When the reference voltage is 11 is the energy storage capacitor C L , the reference capacitor C S It supplies power to the working circuit U3 and controls the chip power supply U0 to supply power to the reference source circuit U4.

[0121] In the power supply circuit U 11 When supplying power to the working circuit U3, the comparator CMP is further used to supply power to the power supply circuit U 11 The divided output voltage is compared with the output voltage of the reference source circuit U4.

[0122] When the output voltage after voltage division is higher than the preset voltage, the energy storage capacitor C is controlled L Supplying power to the working circuit U3;

[0123] When the output voltage after voltage division is lower than the preset voltage, the power supply circuit U 11 Continue to the energy storage capacitor C L , the reference capacitor C S and the working circuit U3, and controls the chip power supply U0 to continue to supply power to the reference source circuit U4;

[0124] The output voltage after voltage division is the voltage between the third node 43 and the ground, and the preset voltage is the output voltage of the reference source circuit U4; and: when the output voltage after voltage division is higher than the preset voltage, the energy storage capacitor C L The current voltage of the power supply circuit U3 is higher than the normal working voltage of the working circuit U3. 11 When powering the working circuit U3, the comparator CMP compares the preset voltage with the output voltage after voltage division, and the basis for its control to change the output signal must not only meet the requirements of the energy storage capacitor C L The current voltage is higher than the reference capacitor C S , further needs to be higher than the preset voltage.

[0125] In this embodiment, the energy storage capacitor C L When powering the working circuit U3, the comparator CMP still compares the energy storage capacitor C L The current voltage and the reference capacitor C S The reference voltage of the power supply circuit U 11 When the working circuit U3 is powered, the comparator CMP no longer compares the energy storage capacitor C L The current voltage and the reference capacitor C SBy adjusting the output voltage of the reference source circuit U4, it is possible to make the following adjustments: when the first node 41 is input to the voltage divider circuit U 12 When the voltage of the third node 43 reaches the normal working voltage, the voltage of the third node 43 can reach the output voltage of the reference source circuit U4. L When the voltage reaches the normal working voltage after charging, the first node 41 inputs the voltage divider circuit U 12 The voltage reaches the normal working voltage.

[0126] It can also be understood that the voltage ratio of the third node 43 to the first node 41 is the same as the ratio of the output voltage of the reference source circuit U4 to the normal working voltage of the working circuit U3. Therefore, in this embodiment, by comparing the voltage of the third node 43 with the voltage of the reference source circuit U4, the energy storage capacitor C L Whether the normal operating voltage is reached is used as a basis for controlling the change of the switch without delay.

[0127] Figure 7 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 7 ; Figure 8 This is a schematic diagram of the structure of the power supply control device of the MCU working circuit of the present invention. Figure 8 .

[0128] exist Figure 6 Schematic structure based on reference Figure 7 and Figure 8 The device may further include a fourth switch S4, a fifth switch S5, a sixth switch S6, and a seventh switch S7.

[0129] Specifically, the energy storage capacitor C L A fourth switch S4 is provided between the comparator CMP and the reference capacitor C S A sixth switch S6 is provided between the reference source circuit U4 and the comparator CMP, a fifth switch S5 is provided between the third node 43 and the comparator CMP, a seventh switch S7 is provided between the reference source circuit U4 and the comparator CMP, and an inverter N1 is provided between the fourth switch S4, the sixth switch S6, and the output terminal of the comparator CMP. The reference source circuit U4 can be any circuit that utilizes the chip power supply U0 to output a desired voltage, and can be a second bandgap reference circuit Bandgap2.

[0130] The comparator CMP is specifically configured to, when the current voltage is higher than the preset voltage, output a first level signal to the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7, so as to control the first switch S1, the second switch S2, the third switch S3, the fifth switch S5, and the seventh switch S7 to be opened. Due to the action of the inverter N1, the fourth switch S4 and the sixth switch S6 can be closed. When the current voltage is lower than the reference voltage, the comparator CMP is configured to output a second level signal to the first switch S1, the second switch S2, the third switch S3, the fourth switch S4, the fifth switch S5, the sixth switch S6, and the seventh switch S7, so as to control the first switch S1, the second switch S2, the third switch S3, the fifth switch S5, and the seventh switch S7 to be closed. Due to the action of the inverter N1, the fourth switch S4 and the sixth switch S6 can be opened.

[0131] If the power supply circuit U1 utilizes a low-dropout linear regulator (LDO), the first resistor R1, the second resistor R2, and the third resistor R3 may serve as sampling resistors for the LDO. Depending on the specific design of the LDO, the resistance relationship between the third resistor R3 and the other two resistors, as well as the output voltage of the reference source circuit U4, may be predetermined, the principle of which is described above.

[0132] If the power supply circuit U1 is a circuit other than the low-dropout linear regulator LDO, such as the first bandgap reference circuit Bandgap1, then, reference may be made to Figure 8 The solution is to understand the voltage divider circuit U 12 It can include a first resistor R1, a second resistor R2, and a third resistor R3, the third resistor R3 is grounded, and the second resistor R2 and the third resistor R3 are connected to a third node 43; the relationship between the sum of the resistance values ​​of the second resistor R2 and the third resistor R3 and the resistance value of the first resistor R1 can be predetermined while satisfying the voltage requirements of the first node 41 and the second node 42, and then the resistance relationship between the third resistor R3 and the other resistors, as well as the output voltage of the reference source circuit U4, can be matched and designed, and can be designed to satisfy: the voltage ratio of the third node 43 to the first node 41 is the same as the ratio of the output voltage of the reference source circuit U4 to the normal working voltage of the working circuit U3.

[0133] Among them, if the power supply circuit U1 and the reference source circuit U4 both adopt bandgap reference circuits, then the first bandgap reference circuit Bandgap1 and the second bandgap reference circuit Bandgap2 can be designed to output different voltages respectively, and then through the resistance design of the first resistor R1, the second resistor R2, and the third resistor R3, the ratio of the voltage of the third node 43 to the voltage of the first node 41 can be made the same as the ratio of the output voltage of the reference source circuit U4 to the normal working voltage of the working circuit U3. For example: if the first bandgap reference circuit Bandgap1 as the power supply circuit U1 can output 1.6 volts, and the second bandgap reference circuit Bandgap2 as the reference source circuit U4 can output 1.2 volts, then the ratio of the voltage of the third node 43 to the voltage of the first node 41 can be 1.2 / 1.6.

[0134] Figure 9 This is a schematic diagram of the voltage change of the energy storage capacitor in the power supply control device of the MCU working circuit of the present invention; wherein the horizontal axis represents time, and the vertical axis represents the energy storage capacitor C L Voltage, V DD is the voltage value of the working circuit U3 when it is working normally; (V DD -△D) is the minimum voltage value required for the working circuit to work in standby mode. Figures 1 to 8 The implementation methods can be obtained Figure 9 Variations of the circuit shown.

[0135] Figure 10 This is a schematic diagram of the change of the pulse signal output by the detection circuit in the power supply control device of the MCU working circuit of the present invention, with reference to Figure 10 , the detection circuit U2 can consume current only when it is triggered and does not consume current when it is static. 31 For example, the current consumed by the working circuit U3 is usually a fixed value (leakage or periodic operation), so the waveform output by the detection circuit U2 is a pulse with a certain frequency. Therefore, it can also realize the function of providing a clock signal for the watchdog circuit WDT (Watchdog Timer) in standby mode.

[0136] In one embodiment, the detection circuit U2 is further connected to a watchdog circuit WDT. The output signal of the comparator CMP can serve as a clock signal for the watchdog circuit WDT. In a specific implementation, the output signal can be provided directly to the watchdog circuit WDT, or it can be processed by a frequency divider or a counter before being provided to the watchdog circuit WDT. This embodiment can simplify circuit design and reduce the use of components.

[0137] refer to Figure 10 , the period of the comparator CMP output pulse signal is t tot , when the output is low, the power supply circuit U11 Powering the working circuit U3, when the output is high, the energy storage capacitor C L Power is supplied to the working circuit U3. The time when the output is low level in each cycle is t op ; When the power supply circuit U 11 The current consumed when powering the working circuit U3 is I tot , assuming that part of it is used to supply energy to the storage capacitor C L The charging current is α·I tot , where α<1.

[0138] Energy storage capacitor C L When supplying power to the working circuit U3, the working circuit U3 consumes the energy storage capacitor C L The current is I L , reference capacitance C S There is no current consumption, so the design should ensure that t op Much smaller than t tot , then the energy storage capacitor C consumed by the working circuit U3 in one cycle L The amount of electricity should be expressed by the following formula:

[0139] I L ·t tot =ΔV·C L ;

[0140] Similarly, assuming that the average current consumed each time it is turned on is in It is also used to feed the energy storage capacitor C L Charging, then:

[0141]

[0142] thus:

[0143] α·I tot t op =I L ·t tot ;

[0144] The equivalent current consumption is:

[0145]

[0146] Due to the different power consumption of different chips during leakage and standby operation, the pulse period output by the comparator CMP will be different, that is, the frequency of the clock signal of the watchdog circuit WDT will deviate. L It can be adjusted to a suitable value through calibration.

[0147] In the example:

[0148] Assume ∆V = 200mV, I L =100nA, t op = 100ns. If the clock signal frequency of the watchdog circuit WDT is 10kHz, then t tot =100μs, according to:

[0149] I L ·t tot =ΔV·C L ;

[0150] It can be seen that C L =50pF. This value can be realized in integrated circuits using metal capacitors or MOS capacitors, with very little area consumption.

[0151] It can also be based on:

[0152]

[0153] It can be seen that

[0154] Usually in the design of low voltage dropout linear regulator LDO, the output is sent to the energy storage capacitor C L The current accounts for the vast majority of its power consumption, and the rest is a fixed current consumption. Generally, it can be assumed to be

[0155] I S =5μA, we can know that:

[0156]

[0157] So:

[0158]

[0159] It can be seen that for the working current I that must be consumed L , the entire system consumes only 5nA more current. As can be seen, when the third switch S3 is open, the chip can be powered by the chip power supply U0 for a long period of time. However, when the third switch S3 is closed, the chip power supply U0 is required for a short period of time. Therefore, the average power consumption of the chip is significantly reduced, achieving ultra-low power consumption.

[0160] Therefore, through the conception of the present invention and its optional solutions, power consumption can be effectively reduced, thereby increasing standby time and improving user experience.

[0161] In some scenarios where the temperature changes greatly, the leakage current and working current of the working circuit U3 will increase with the temperature when the chip is in standby mode. Generally, this current is proportional to the temperature T, that is:

[0162] I L ∝T.

[0163] If the output pulse signal of the comparator CMP is used as the clock signal of the watchdog circuit WDT, the frequency of the clock signal of the watchdog circuit WDT changes with the temperature. Therefore, the power supply circuit U1 can be a first bandgap reference circuit Bandgap1. Since the characteristics of the bandgap reference circuit are: Here V DD Does not change with temperature, but:

[0164] ΔV∝T;

[0165] From the previous formula:

[0166]

[0167] It can be seen that:

[0168]

[0169] Because I L ∝T, and ΔV∝T, so t tot It is a constant value that does not change with temperature, that is, the frequency of the clock signal of the watchdog circuit WDT is constant.

[0170] This embodiment also provides a microprocessor, including the device provided by the optional solution of the present invention.

[0171] The microprocessor shown in this embodiment includes the following corresponding implementations: Figures 1 to 8 The technical solutions of the device embodiments shown have similar implementation principles, technical effects and meanings of terms, which will not be repeated here.

[0172] Figure 11 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 1 ; The method described comprises:

[0173] S101: The detection circuit compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor.

[0174] S102: When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, the detection circuit controls the energy storage capacitor to supply power to the working circuit.

[0175] S103: When the current voltage is lower than the reference voltage, the detection circuit controls the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode.

[0176] Figure 11 The method shown can be used to Figure 1The technical solution of the device embodiment shown is used to implement it, and its implementation principles, technical effects and meanings of terms are similar, so they will not be repeated here.

[0177] Figure 12 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 2 . It can be understood as Figure 11 An improvement based on the method shown.

[0178] When the power supply circuit supplies power to the working circuit, that is, after step S103, the method may further include step S104: a voltage divider circuit causes the voltage of the energy storage capacitor to reach the normal operating voltage of the working circuit, and causes the reference capacitor to maintain the reference voltage;

[0179] The current voltage of the energy storage capacitor is the voltage between the first node of the voltage divider circuit and the ground, and the reference voltage of the reference capacitor is the voltage between the second node of the voltage divider circuit and the ground.

[0180] Figure 12 The method shown can be used to Figure 2 The technical solution of the device embodiment shown is used to implement it, and its implementation principles, technical effects and meanings of terms are similar, so they will not be repeated here.

[0181] Figure 13 This is a schematic diagram of the power supply control method of the MCU working circuit of the present invention. Figure 3 . It can be understood as Figure 11 In one application of the illustrative method, the detection circuit may be a comparator.

[0182] The method comprises:

[0183] S201: The comparator controls the energy storage capacitor to supply power to the working circuit.

[0184] S202: The comparator compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor. Figure 11 Step S101 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0185] When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, step S201 is implemented. At this time, step S201 can also be understood as: the comparator controls the energy storage capacitor to continue to supply power to the working circuit. Figure 11 Step S102 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0186] When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, step S203 is implemented: the comparator controls the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit. Figure 11 Step S103 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0187] After step S203, the following steps are included:

[0188] S204: The comparator compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor. Figure 11 Step S101 in the illustrated method is an application when the power supply circuit supplies power to the working circuit.

[0189] When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, step S201 is implemented, that is, the comparator controls the energy storage capacitor to supply power to the working circuit. Figure 11 Step S102 in the illustrated method is an application when the power supply circuit supplies power to the working circuit.

[0190] When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, step S203 is implemented. At this time, step S203 can also be understood as: the comparator controls the power supply circuit to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit. Figure 11 Step S103 in the illustrated method is an application when the power supply circuit supplies power to the working circuit.

[0191] The power supply circuit may be a low voltage dropout linear regulator or a first bandgap reference circuit.

[0192] In one embodiment, since the detection circuit is a comparator, its output waveform is a pulse of a certain frequency. Therefore, it can also provide a clock signal for the watchdog circuit in standby mode. The method may further include: using the output signal of the comparator as the clock signal for the watchdog circuit.

[0193] Figure 13 The method shown can be used to Figure 4 and Figure 5 The technical solution of the device embodiment shown is used to implement it, and its implementation principles, technical effects and meanings of terms are similar, so they will not be repeated here.

[0194] Figure 14 This is a schematic diagram of the process of the power supply control method of the MCU working circuit of the present invention. Figure 4 . It can be understood as Figure 11 In one application of the illustrative method, the detection circuit may be a comparator.

[0195] The method comprises:

[0196] S301: The comparator controls the energy storage capacitor to supply power to the working circuit.

[0197] S302: The comparator compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor. Figure 11 Step S101 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0198] When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, step S301 is implemented. At this time, step S301 can also be understood as: the comparator controls the energy storage capacitor to continue to supply power to the working circuit. Figure 11 Step S102 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0199] When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, step S303 is implemented: the comparator controls the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and controls the chip power supply to supply power to the reference source circuit. Figure 11 Step S103 in the illustrated method is an application when the energy storage capacitor supplies power to the working circuit.

[0200] After step S303, the following steps are included:

[0201] S304: The comparator compares the divided output voltage of the power supply circuit with the output voltage of the reference source circuit.

[0202] When the divided output voltage is higher than the preset voltage, step S301 is implemented, that is, controlling the energy storage capacitor to supply power to the working circuit.

[0203] When the output voltage after voltage division is lower than the preset voltage, step S303 is implemented. At this time, step S303 can also be understood as: the comparator controls the power supply circuit to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and controls the chip power supply to continue to supply power to the reference source circuit.

[0204] The output voltage after voltage division is the voltage between the third node of the voltage divider circuit and the ground, and the output voltage of the reference source circuit is a preset voltage; when the output voltage after voltage division is higher than the preset voltage, the current voltage of the energy storage capacitor is higher than the normal operating voltage of the working circuit.

[0205] The power supply circuit may be a low voltage dropout linear regulator or a first bandgap reference circuit. The reference source circuit may be a second bandgap reference circuit.

[0206] In one embodiment, since the detection circuit can be a comparator, its output waveform is a pulse of a certain frequency. Therefore, it can also provide a clock signal for the watchdog circuit in standby mode. The method can also include: using the output signal of the detection circuit as the clock signal for the watchdog circuit.

[0207] Figure 14 The method shown can be used to Figure 6 、 Figure 7 and Figure 8 The technical solution of the device embodiment shown is used to implement it, and its implementation principles, technical effects and meanings of terms are similar, so they will not be repeated here.

[0208] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A power supply control device for an MCU working circuit, characterized in that: include: A power supply circuit, a detection circuit, an energy storage capacitor, a reference capacitor, and a chip power supply; the power supply circuit includes a power supply circuit; wherein: The output end of the power supply circuit is respectively connected to the first end of the energy storage capacitor, the working circuit and the first end of the reference capacitor; The second end of the energy storage capacitor is connected to the detection circuit; The first end of the energy storage capacitor is connected to the working circuit; The second end of the reference capacitor is connected to the detection circuit: The energy storage capacitor is used to store the electric energy supplied by the power supply circuit during energy storage, and is used to discharge the electric energy to the working circuit during energy discharge; The detection circuit is used to compare the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor; when the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, the detection circuit controls the energy storage capacitor to supply power to the working circuit; when the current voltage is lower than the reference voltage, the detection circuit controls the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode; The power supply circuit further includes: a voltage divider circuit; The voltage divider circuit is connected to the power supply circuit, the energy storage capacitor and the reference capacitor respectively; When the power supply circuit supplies power to the working circuit, the voltage divider circuit is used to make the voltage of the energy storage capacitor reach the normal working voltage of the working circuit and make the reference capacitor maintain the reference voltage; The voltage divider circuit comprises: a first resistor and a second resistor, wherein a first end of the first resistor is connected to the power supply circuit and the energy storage capacitor at a first node respectively, a second end of the first resistor is connected to the first end of the second resistor at a second node, and the reference capacitor is further connected to the first resistor and the second resistor at the second node; The current voltage of the energy storage capacitor is the voltage between the first node and the ground, and the reference voltage of the reference capacitor is the voltage between the second node and the ground; The chip power supply is connected to the power supply circuit and the detection circuit respectively; a first switch is provided between the first node and the energy storage capacitor, a second switch is provided between the second node and the reference capacitor, and a third switch is provided between the power supply circuit and the chip power supply; The detection circuit is specifically configured to control the first switch, the second switch, and the third switch to be opened when the current voltage is higher than the reference voltage; and to control the first switch, the second switch, and the third switch to be closed when the current voltage is lower than the reference voltage.

2. The device according to claim 1, characterized in that The detection circuit is a comparator, the energy storage capacitor is connected to the first input terminal of the comparator, the reference capacitor is connected to the second input terminal of the comparator, and the output terminal of the comparator is connected to the first switch, the second switch and the third switch respectively; The comparator is specifically configured to, when the current voltage is higher than the reference voltage, output a first level signal to the first switch, the second switch, and the third switch, so as to control the first switch, the second switch, and the third switch to be disconnected; When the current voltage is lower than the reference voltage, a second level signal is output to the first switch, the second switch, and the third switch to control the first switch, the second switch, and the third switch to be closed.

3. The device according to claim 2, characterized in that Also includes: Reference source circuit, The reference source circuit is connected between the chip power supply and the power supply circuit, and its output end is also connected to the second input end of the comparator; The voltage divider circuit further includes a third resistor, a first end of the third resistor is connected to the second end of the second resistor, the first input end of the comparator is connected to a third node between the second resistor and the third resistor, and the second end of the third resistor is grounded; When the energy storage capacitor supplies power to the working circuit, the comparator is specifically used to compare the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor; When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, controlling the energy storage capacitor to continue to supply power to the working circuit; When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, controlling the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and controlling the chip power supply to supply power to the reference source circuit; When the power supply circuit supplies power to the working circuit, the comparator is further configured to compare a divided output voltage of the power supply circuit with an output voltage of the reference source circuit, wherein the divided output voltage is a voltage between the third node and ground, and the output voltage of the reference source circuit is a preset voltage; when the divided output voltage is higher than the preset voltage, the current voltage of the energy storage capacitor is higher than a normal operating voltage of the working circuit; When the divided output voltage is higher than the preset voltage, controlling the energy storage capacitor to supply power to the working circuit; When the divided output voltage is lower than the preset voltage, the power supply circuit is controlled to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and the chip power supply is controlled to continue to supply power to the reference source circuit.

4. The device according to claim 3, characterized in that A fourth switch is provided between the energy storage capacitor and the comparator, a fifth switch is provided between the third node and the comparator, a sixth switch is provided between the reference capacitor and the comparator, a seventh switch is provided between the reference source circuit and the comparator, and an inverter is further provided between the fourth switch, the sixth switch and the output end of the comparator; The comparator is specifically configured to, when the current voltage is higher than the preset voltage, output a first level signal to the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch, so as to control the first switch, the second switch, the third switch, the fifth switch, and the seventh switch to be opened and the fourth switch and the sixth switch to be closed; and, when the current voltage is lower than the reference voltage, output a second level signal to the first switch, the second switch, the third switch, the fourth switch, the fifth switch, the sixth switch, and the seventh switch, so as to control the first switch, the second switch, the third switch, the fifth switch, and the seventh switch to be closed and the fourth switch and the sixth switch to be opened.

5. The device according to any one of claims 1 to 4, characterized in that The power supply circuit is a low voltage drop linear regulator or a first bandgap reference circuit.

6. The device according to claim 3 or 4, characterized in that The reference source circuit is a second bandgap reference circuit.

7. The device according to any one of claims 2 to 4, characterized in that The output end of the comparator is also connected to a watchdog circuit, and the output signal of the comparator serves as a clock signal of the watchdog circuit.

8. A microprocessor, characterized in that: The device comprises the device according to any one of claims 1 to 7.

9. A method for controlling power supply of an MCU working circuit, the method being applied to the power supply control device of the MCU working circuit according to any one of claims 1 to 7, characterized in that: include: The detection circuit compares the current voltage of the energy storage capacitor with the reference voltage of the reference capacitor; When the current voltage of the energy storage capacitor is higher than the reference voltage of the reference capacitor, the detection circuit controls the energy storage capacitor to supply power to the working circuit; When the current voltage is lower than the reference voltage, the detection circuit controls the power supply circuit of the power supply circuit to supply power to the energy storage capacitor, the reference capacitor and the working circuit, wherein the reference voltage is the minimum voltage required for the working circuit to operate in standby mode.

10. The method according to claim 9, characterized in that Also includes: When the power supply circuit supplies power to the working circuit, the voltage divider circuit enables the voltage of the energy storage capacitor to reach the normal working voltage of the working circuit and enables the reference capacitor to maintain the reference voltage; The current voltage of the energy storage capacitor is the voltage between the first node of the voltage divider circuit and the ground, and the reference voltage of the reference capacitor is the voltage between the second node of the voltage divider circuit and the ground.

11. The method according to claim 10, characterized in that The detection circuit is a comparator; When the comparator controls the energy storage capacitor to supply power to the working circuit, the method further includes: When the current voltage of the energy storage capacitor is lower than the reference voltage of the reference capacitor, the comparator further controls the chip power supply to supply power to the reference source circuit; When the comparator controls the power supply circuit to supply power to the working circuit, the method further includes: The comparator compares the divided output voltage of the power supply circuit with the output voltage of the reference source circuit, wherein the divided output voltage is the voltage between the third node of the voltage divider circuit and the ground, and the output voltage of the reference source circuit is a preset voltage; when the divided output voltage is higher than the preset voltage, the current voltage of the energy storage capacitor is higher than the normal operating voltage of the working circuit; When the divided output voltage is higher than the preset voltage, controlling the energy storage capacitor to supply power to the working circuit; When the divided output voltage is lower than the preset voltage, the power supply circuit is controlled to continue to supply power to the energy storage capacitor, the reference capacitor and the working circuit, and the chip power supply is controlled to continue to supply power to the reference source circuit.

12. The method according to any one of claims 9 to 11, characterized in that The power supply circuit is a low voltage drop linear regulator or a first bandgap reference circuit.

13. The method according to claim 11, characterized in that The reference source circuit is a second bandgap reference circuit.

14. The method according to claim 9 or 10, characterized in that The detection circuit is a comparator, and the method further includes: the output signal of the comparator is used as a clock signal of the watchdog circuit.

Citation Information

Patent Citations

  • Power supply control device and microprocessor of MCU operating circuit

    CN207367150U