CN115840499A - Power management system and chip device - Google Patents
Power management system and chip device Download PDFInfo
- Publication number
- CN115840499A CN115840499A CN202310117226.9A CN202310117226A CN115840499A CN 115840499 A CN115840499 A CN 115840499A CN 202310117226 A CN202310117226 A CN 202310117226A CN 115840499 A CN115840499 A CN 115840499A
- Authority
- CN
- China
- Prior art keywords
- clock
- voltage
- system clock
- synchronous
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000003381 stabilizer Substances 0.000 claims abstract description 56
- 230000009467 reduction Effects 0.000 claims abstract description 28
- 230000001360 synchronised effect Effects 0.000 claims description 82
- 238000000034 method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 4
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a power management system and chip equipment, the system includes: the system comprises a central processing unit, a power management unit, a system clock and a stabilizer; the system clock is connected with the central processing unit and the power management unit so as to provide clock signals for the central processing unit and the power management unit; the power management unit is connected with the central processing unit and the stabilizer and used for outputting a first clock mode selection signal to the system clock after receiving a sleep mode request sent by the central processing unit so that the system clock enters a low-frequency low-power-consumption mode, outputting a first potential selection signal to the stabilizer so that the stabilizer performs voltage reduction adjustment, and outputting a first combined clock enabling signal to the system clock after voltage reduction is completed so as to close the system clock. The system can further adjust the voltage of the stabilizer to reduce power consumption in a sleep mode, can control a default system starting clock through hardware, does not need an additional low-frequency clock to realize digital control, and is small in hardware occupied area and low in cost.
Description
Technical Field
The invention relates to the technical field of chips, in particular to a power management system and chip equipment.
Background
In a general microcontroller, a power management unit can provide stable voltage and flexible low-power-consumption mode control, can provide stable reference voltage and reference current for a clock, an analog-to-digital conversion module and other analog modules in the microcontroller, and can meet the control requirements of various low-power-consumption modes of the microcontroller. It has very wide application in the fields of consumer, industry, medical treatment, automobile electronics and the like. The low power consumption performance in the sleep mode is an important index for measuring the power consumption performance of the microcontroller at present.
In a common sleep mode of a microcontroller, an application scheme of a power management unit generally reduces dynamic power consumption of the microcontroller through an independent CPU (central processing unit) clock gate shutdown process. Or further switching the loading capacity of the analog power supply of the power supply management unit to further reduce the power consumption. However, this method cannot adjust the voltage of the internal stabilizer of the microcontroller in the sleep mode, and therefore cannot further meet the requirement of lower power consumption. In addition, in a general sleep mode, a low-frequency normally-open clock is often required to realize the digital control signal processing of the microcontroller, and the power consumption is large.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, the invention aims to provide a power management system and a chip device to further adjust the voltage of a stabilizer to reduce power consumption, and the default system starting clock is controlled by hardware, so that digital control is realized without an additional low-frequency clock, and the hardware area overhead cost is reduced.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a power management system, including: the system comprises a central processing unit, a power management unit, a system clock and a stabilizer; the system clock is respectively connected with the central processing unit and the power management unit so as to provide clock signals for the central processing unit and the power management unit; the power management unit is respectively connected with the central processing unit and the stabilizer and used for outputting a first clock mode selection signal to the system clock after receiving a sleep mode request sent by the central processing unit so as to enable the system clock to enter a low-frequency low-power-consumption mode, outputting a first potential selection signal to the stabilizer so as to enable the stabilizer to perform voltage reduction adjustment, and outputting a first combined clock enable signal to the system clock after voltage reduction is completed so as to close the system clock.
In addition, the power management system according to the above embodiment of the present invention may further have the following additional technical features:
according to an embodiment of the invention, the power management unit is further configured to connect to an external device for: after receiving an asynchronous wake-up request sent by the external device, outputting a second combination clock enable signal to the system clock to turn on the system clock, outputting a second potential selection signal to the stabilizer to enable the stabilizer to perform boost adjustment, and outputting a second clock mode selection signal to the system clock after the boost is completed to enable the system clock to enter a normal frequency mode.
According to one embodiment of the invention, the power management unit comprises: the circuit comprises a PMU state machine, a voltage reduction control circuit, a voltage boosting control circuit, a combination circuit and a register preset circuit;
the PMU state machine is respectively connected with the CPU, the system clock, the buck control circuit, the boost control circuit and the combination circuit, is used for being connected to the external equipment, and is used for outputting a synchronous sleep request of a first level to the buck control circuit and the combination circuit after receiving the sleep mode request, outputting a synchronous sleep request of a second level to the buck control circuit and the combination circuit after receiving the asynchronous wake-up request, and outputting a synchronous wake-up request to the boost control circuit;
the voltage reduction control circuit is connected with the system clock and used for counting voltage reduction adjustment time after receiving the synchronous sleep request to obtain a first count value, and outputting a voltage reduction completion signal to the PMU state machine when the first count value reaches a first preset value, so that the PMU state machine outputs a synchronous clock enabling signal to the combined circuit according to the voltage reduction completion signal;
the boost control circuit is connected with the system clock and the combination circuit and is used for counting boost adjustment time after receiving the synchronous awakening request to obtain a second count value, and outputting a boost completion signal to the combination circuit when the second count value reaches a second preset value;
the register presetting circuit comprises a first voltage presetting gear register and a second voltage presetting gear register, wherein the first voltage presetting gear register is used for providing a first voltage gear, and the second voltage presetting gear register is used for providing a second voltage gear;
the combination circuit is connected with the system clock, the stabilizer, the first voltage preset gear register and the second voltage preset gear register, is connected to the external device, and is configured to output the first potential selection signal corresponding to the first voltage gear to the stabilizer and output the first clock mode selection signal to the system clock after receiving the synchronous sleep request of the first level, output the second combination clock enable signal to the system clock after receiving the asynchronous wake-up signal, output the second potential selection signal corresponding to the second voltage gear to the stabilizer after receiving the cancellation of the synchronous sleep request of the second level, and output the second clock mode selection signal to the system clock after receiving the boost completion signal.
According to one embodiment of the present invention, the step-down control circuit includes a first voltage adjustment time preset register, a first time counter, a first equal comparator and a first synchronous logic sub-circuit; wherein,
the first time counter is respectively connected with the PMU state machine, the system clock, the first equal comparator and the first synchronous logic sub-circuit, and is used for counting the voltage reduction adjustment time after receiving the synchronous sleep request to obtain a first count value and outputting the first count value to the first equal comparator;
the first equality comparator is respectively connected with the first voltage regulation time presetting register and the first synchronous logic sub-circuit, and is used for triggering the first synchronous logic sub-circuit to output a voltage reduction completion signal to the first time counter and the PMU state machine respectively after the first count value is equal to a first preset value provided by the first voltage regulation time presetting register, so that the first time counter is cleared from 0, and the PMU state machine outputs a synchronous clock enabling signal to the combinational circuit according to the voltage reduction completion signal.
According to one embodiment of the present invention, the boost control circuit includes a second voltage adjustment time preset register, a second time counter, a second equal comparator and a second synchronous logic sub-circuit; wherein,
the second time counter is respectively connected with the PMU state machine, the system clock, the second equal comparator and the second synchronous logic sub-circuit, and is used for counting the boosting adjustment time after receiving the synchronous awakening request to obtain a second count value and outputting the second count value to the second equal comparator;
the second equality comparator is connected to the second voltage adjustment time presetting register and the second synchronous logic sub-circuit, and is configured to trigger the second synchronous logic sub-circuit to output a voltage boosting completion signal to the second time counter and the combinational circuit, respectively, after the second count value is equal to a second preset value provided by the second voltage adjustment time presetting register, so that the second time counter performs 0 clearing, and the combinational circuit outputs the second clock mode selection signal to the system clock.
According to one embodiment of the invention, the combinational circuit includes a channel selector and a logic gate subcircuit; wherein,
the first input end of the channel selector is connected with the first voltage preset gear register, the second input end of the channel selector is connected with the second voltage preset gear register, the control end of the channel selector is connected with the PMU state machine and used for inputting the synchronous sleep request, the output end of the channel selector is connected with the stabilizer, and the channel selector is used for outputting the first potential selection signal to the stabilizer after receiving the synchronous sleep request of the first level and outputting the second potential selection signal to the stabilizer after receiving the synchronous sleep request of the second level;
the logic gate sub-circuit is respectively connected with the PMU state machine, the boost control circuit and the clock system, is connected to the external device, and is configured to output the first combined clock enable signal to the system clock after receiving the synchronous clock enable signal, output the second combined clock enable signal to the system clock after receiving the asynchronous wake-up request, output the first clock mode selection signal to the system clock after receiving the synchronous sleep request, and output the second clock mode selection signal to the system clock after receiving the boost completion signal.
According to one embodiment of the invention, the logic gate subcircuit includes: a first or gate, a not gate and a second or gate; wherein,
the first or gate is connected with the PMU state machine for inputting the synchronous clock enabling signal, the second input end is connected with the external equipment for inputting the asynchronous awakening request, and the output end is connected with the system clock;
the input end of the NOT gate is connected with the boost control circuit and used for inputting the boost completion signal, the output end of the NOT gate is connected with the first input end of the second OR gate, and the NOT gate is used for inverting the boost completion signal;
the second or gate is configured to output the first clock mode selection signal to the system clock after receiving the synchronous sleep request, and output the second clock mode selection signal to the system clock after receiving the inverted boost completion signal.
According to one embodiment of the present invention, the first level is a high level, and the second level is a low level.
According to one embodiment of the invention, the system further comprises: the system bus is connected with the first voltage preset gear register, the second voltage preset gear register, the first voltage adjusting time preset register and the second voltage adjusting time preset register respectively, and is used for configuring the first voltage gear to the first voltage preset gear register, configuring the second voltage gear to the second voltage preset gear register, configuring the first preset value to the first voltage adjusting time preset register and configuring the second preset value to the second voltage adjusting time preset register.
In order to achieve the above object, a second embodiment of the invention provides a chip device, which includes the above power management system.
The power management system and the chip device of the embodiment of the invention can further adjust the voltage of the stabilizer to reduce the power consumption, controls the default system starting clock through hardware, does not need an additional low-frequency clock to realize digital control, and has small hardware occupied area and low cost.
Drawings
FIG. 1 is a block diagram of a power management system according to an embodiment of the invention;
FIG. 2 is a block diagram of a power management system according to another embodiment of the invention;
FIG. 3 is a block diagram of a power management system according to yet another embodiment of the invention;
FIG. 4 is a flow diagram of a method of entering sleep mode according to one embodiment of the invention;
FIG. 5 is a control timing diagram for a power management system of one embodiment of the present invention;
FIG. 6 is a flow diagram of a method of exiting sleep mode according to one embodiment of the invention;
fig. 7 is a block diagram of a chip device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The power management system and the chip device of the embodiment of the present invention are described below with reference to the drawings.
Fig. 1 is a block diagram of a power management system according to an embodiment of the present invention.
Referring to fig. 1, a power management system 100 includes: a central processor 101, a power management unit 102, a system clock 103 and a stabilizer 104.
The system clock 103 is respectively connected with the central processing unit 101 and the power management unit 102 to provide clock signals for the central processing unit 101 and the power management unit 102;
the power management unit 102 is respectively connected to the central processing unit 101 and the stabilizer 104, and is configured to output a first clock mode selection signal to the system clock 103 after receiving a sleep mode request sent by the central processing unit 101, so that the system clock 103 enters a low-frequency low-power consumption mode, output a first potential selection signal to the stabilizer 104, so that the stabilizer 104 performs voltage reduction adjustment, and output a first combined clock enable signal to the system clock 103 after voltage reduction is completed, so as to turn off the system clock 103.
Specifically, as shown in fig. 2, the three-way input of the power management unit 102 includes: input 1 is the system clock signal, the output clock from system clock 103; input 2 is a sleep mode request signal from a sleep mode request initiated by the central processor 101; input 3 is an asynchronous wake-up request signal from an asynchronous wake-up request initiated outside the system.
The three-way output of the power management unit 102 includes: output 1 is the combined clock enable signal, given to input EN to system clock 103; EN =1 for turning on the system clock 103, EN =0 for turning off the system clock 103; output 2 is a clock mode select signal to the input SEL to the system clock; SEL =1 indicates that the low-frequency low-power mode is selected, and SEL =0 indicates that the normal mode is selected; output 3 is a potential select signal that is provided to an input of the stabilizer 104, and the stabilizer 104 also outputs a voltage that is used to power the entire power management system 100.
In this embodiment, when the central processing unit 101 initiates a sleep mode request, after the power management unit 102 receives the request, the output 2 of the power management unit 102 controls the input SEL of the system clock 103, so that SEL =1 allows the system clock 103 to enter a low-frequency low-power mode, and the output 3 of the power management unit 102 switches the input of the stabilizer 104 to step down the stabilizer 104, where the differential pressure before and after step down may be 300mv. After the whole voltage reduction is completed, 1 is output through the power management unit 102, so that the system clock 103 is turned off by the input EN =0 of the system clock 103, and the system completely enters the sleep mode.
The power management system of the embodiment of the invention can further adjust the voltage of the stabilizer to reduce the power consumption, controls the default system start clock through hardware, does not need an additional low-frequency clock to realize digital control, and has small hardware occupied area and low cost.
In some embodiments, the power management unit 102 is further configured to connect to an external device for: after receiving an asynchronous wake-up request sent by an external device, outputting a second combination clock enable signal to the system clock 103 to turn on the system clock 103, outputting a second potential selection signal to the stabilizer 104 to enable the stabilizer 104 to perform boost adjustment, and outputting a second clock mode selection signal to the system clock 103 after the boost is completed to enable the system clock 103 to enter a normal frequency mode.
Specifically, as shown in fig. 2, when the power management system 100 receives an asynchronous wake-up request, the power management unit 102 receives the asynchronous wake-up request through the input 3, and then makes the input EN =1 of the system clock 103 through the output 1 of the power management unit 102 to turn on the system clock again. The output 3 of the power management unit 102 is used to boost the stabilizer 104, and the differential pressure before and after boosting can be 300mv. After the boosting is completed, the input SEL =0 of the system clock 103 is set to the normal frequency mode by the output 2 of the power management unit 102, and the system operates normally.
In some embodiments, as shown in fig. 3, the power management unit 102 includes: a PMU (Power Management Unit) state machine 201, a step-down control circuit 202, a step-up control circuit 203, a combining circuit 204, and a register presetting circuit 205.
The PMU state machine 201 is connected to the central processing unit 101, the system clock 103, the buck control circuit 202, the boost control circuit 203, and the combination circuit 204, and is configured to be connected to an external device, and is configured to output a synchronous sleep request at a first level to the buck control circuit 202 and the combination circuit 204 after receiving a sleep mode request, and output a synchronous sleep request at a second level to the buck control circuit 202 and the combination circuit 204 after receiving an asynchronous wake-up request, and output a synchronous wake-up request to the boost control circuit 203.
Where the first level may be high and the second level may be low, the PMU state machine 201 is driven primarily by the system clock 103.
The buck control circuit 202 is connected to the system clock 103, and is configured to count a buck adjustment time after receiving the synchronous sleep request, obtain a first count value, and output a buck completion signal to the PMU state machine 201 when the first count value reaches a first preset value, so that the PMU state machine 201 outputs a synchronous clock enable signal to the combining circuit 204 according to the buck completion signal.
The boost control circuit 203 is connected to the system clock 103 and the combination circuit 204, and is configured to count the boost adjustment time after receiving the synchronous wake-up request, obtain a second count value, and output a boost completion signal to the combination circuit 204 when the second count value reaches a second preset value.
The register presetting circuit 205 includes a first voltage presetting gear register 206 and a second voltage presetting gear register 207, the first voltage presetting gear register 206 is used for providing a first voltage gear, and the second voltage presetting gear register 207 is used for providing a second voltage gear.
The first voltage step is a target voltage step of the stabilizer 104 after entering the sleep mode, and the second voltage step is a target voltage step of the stabilizer 104 after exiting the sleep mode and the system normally works.
The combination circuit 204 is connected to the system clock 103, the stabilizer 104, the first voltage preset shift register 206, and the second voltage preset shift register 207, respectively, and is configured to be connected to an external device, and configured to output a first potential selection signal corresponding to a first voltage step to the stabilizer 104 after receiving a synchronous sleep request of a first level, output a first clock mode selection signal to the system clock 103, output a second combination clock enable signal to the system clock 103 after receiving an asynchronous wake-up signal, output a second potential selection signal corresponding to a second voltage step to the stabilizer 104 after receiving a cancellation of the synchronous sleep request of a second level, and output a second clock mode selection signal to the system clock 103 after receiving a voltage boosting completion signal.
The combination circuit 204 further includes a channel selector 501, the PMU state machine 201 is connected to the channel selector 501, and the PMU state machine 201 can adjust the voltage step of the stabilizer 104 through the channel selector 501.
In some embodiments, as shown in fig. 3, the buck control circuit 202 includes a first voltage adjustment time preset register 301, a first time counter 302, a first equal comparator 303 and a first synchronization logic sub-circuit 304.
The first time counter 302 is connected to the PMU state machine 201, the system clock 103, the first equalization comparator 303, and the first synchronization logic sub-circuit 304, and configured to count the buck adjustment time after receiving the synchronous sleep request, obtain a first count value, and output the first count value to the first equalization comparator 303.
The first equalization comparator 303 is connected to the first voltage regulation time presetting register 301 and the first synchronization logic sub-circuit 304, and configured to trigger the first synchronization logic sub-circuit 304 to output a buck completion signal to the first time counter 302 and the PMU state machine 201, respectively, after the first count value is equalized to the first preset value provided by the first voltage regulation time presetting register 301, so that the first time counter 302 clears 0, and the PMU state machine 201 outputs a synchronization clock enable signal to the combining circuit 204 according to the buck completion signal.
Specifically, the first time counter 302 is driven by the system clock 103, and when the PMU state machine 201 initiates a synchronous sleep request, the first voltage stage is selected through the channel selector 501, so that the stabilizer 104 steps down, and at the same time, the first time counter 302 is started to count the step-down time, and the system clock 103 is switched to the low power consumption mode; when the first count value is equal to the first preset value, the first synchronization logic sub-circuit 304 generates a done1 signal to the CLR input of the first time counter 302 to perform a clear 0 operation, and meanwhile, the first synchronization logic sub-circuit 304 feeds back state information to the PMU state machine 201, so that the system completely enters the sleep mode.
In some embodiments, as shown in fig. 3, boost control circuit 203 includes a second voltage regulation time preset register 401, a second time counter 402, a second equivalence comparator 403, and a second synchronization logic subcircuit 404.
The second time counter 402 is connected to the PMU state machine 201, the system clock 103, the second equal comparator 403, and the second synchronous logic sub-circuit 404, and is configured to count the boost adjustment time after receiving the synchronous wakeup request, obtain a second count value, and output the second count value to the second equal comparator 403.
The second equivalence comparator 403 is respectively connected to the second voltage adjustment time presetting register 401 and the second synchronous logic sub-circuit 404, and is configured to trigger the second synchronous logic sub-circuit 404 to output a boosting completion signal to the second time counter 402 and the combinational circuit 204, respectively, after the second count value is equal to a second preset value provided by the second voltage adjustment time presetting register 401, so that the second time counter 402 performs clearing 0, and the combinational circuit 204 outputs a second clock mode selection signal to the system clock 103.
Specifically, the second time counter 402 is driven by the system clock 103, and when the PMU state machine 201 receives an external asynchronous wake-up request, the system clock 103 is immediately turned on, and at this time, the system clock 103 is still in the low power consumption mode, and the stabilizer 104 is switched to the second voltage stage through the channel selector 501, so that the second time counter 402 counts the boosting time. When the second count value equals the second predetermined value, the second synchronous logic sub-circuit 404 generates a done2 signal to the combinational circuit 204, indicating that the boosting has been completed, and switches the system clock back to the normal mode.
In some embodiments, as shown in fig. 3, the combinational circuit 204 includes a channel selector 501 and a logic gate subcircuit 502.
The channel selector 501 has a first input end connected to the first voltage preset shift register 206, a second input end connected to the second voltage preset shift register 207, a control end connected to the PMU state machine 201 for inputting a synchronous sleep request, and an output end connected to the stabilizer 104, and is configured to output a first potential selection signal to the stabilizer 104 after receiving the synchronous sleep request at the first level and output a second potential selection signal to the stabilizer 104 after receiving the synchronous sleep request at the second level.
The logic gate sub-circuit 502 is respectively connected to the PMU state machine 201, the boost control circuit 203, and the system clock 103, and is configured to connect to an external device, and configured to output a first combined clock enable signal to the system clock 103 after receiving the synchronous clock enable signal, output a second combined clock enable signal to the system clock 103 after receiving the asynchronous wakeup request, output a first clock mode selection signal to the system clock 103 after receiving the synchronous sleep request, and output a second clock mode selection signal to the system clock 103 after receiving the boost completion signal.
In some embodiments, as shown in FIG. 3, the logic gate subcircuit 502 includes: a first or gate 601, a not gate 602, and a second or gate 603; wherein,
the first or gate 601 has a first input connected to the PMU state machine 201 for inputting a synchronous clock enable signal, a second input connected to an external device for inputting an asynchronous wake-up request, and an output connected to the system clock 103, and is configured to output a first combined clock enable signal to the system clock 103 upon receiving the synchronous clock enable signal and output a second combined clock enable signal to the system clock 103 upon receiving the asynchronous wake-up request.
The input terminal of the not gate 602 is connected to the boost control circuit 203 for inputting the boost completion signal, the output terminal is connected to the first input terminal of the second or gate 603, and the not gate 602 is configured to perform an inverting process on the boost completion signal.
A second input end of the second or gate 603 is connected to the PMU state machine 201 for inputting a synchronous sleep request, and an output end thereof is connected to the system clock 103, where the second or gate 603 is configured to output a first clock mode selection signal to the system clock 103 after receiving the synchronous sleep request, and output a second clock mode selection signal to the system clock 103 after receiving the inverted boosting completion signal.
In some embodiments, as shown in fig. 3, the power management system 100 further comprises: the system bus is connected with the first voltage preset gear register 206, the second voltage preset gear register 207, the first voltage regulation time preset register 301 and the second voltage regulation time preset register 401, and is used for configuring a first voltage gear to the first voltage preset gear register 206, configuring a second voltage gear to the second voltage preset gear register 207, configuring a first preset value to the first voltage regulation time preset register 301, and configuring a second preset value to the second voltage regulation time preset register 401.
The working principle of the power management system according to the embodiment of the present invention is described below with reference to the flowchart of the method for entering sleep mode in fig. 4.
As shown in fig. 4, the method of entering the sleep mode includes:
and S41, presetting a first voltage gear, a second voltage gear, a first preset value and a second preset value before the system initiates a sleep request.
And S42, after receiving the sleep request initiated by the system, the PMU state machine initiates a synchronous sleep request.
And S43, after the synchronous sleep request is initiated, switching the system clock to a low-frequency low-power-consumption mode.
And S44, selecting the first voltage step as a target value through the channel selector, reducing the voltage, and enabling a first time counter of the voltage reduction control circuit to start timing.
And S45, after the first time counter counts to a first preset value, a voltage reduction completion signal (one beat width) is generated, and the counting of the first time counter is synchronously cleared.
And S46, feeding back a PMU voltage reduction completion signal to the PMU state machine, marking that the internal voltage regulation of the PMU is completed, generating a synchronous clock enabling signal through the PMU state machine, closing a system clock, and completely entering a low power consumption mode by the system.
Fig. 5 shows a control sequence for entering the sleep mode.
The working principle of the power management system according to the embodiment of the present invention is described below with reference to the flowchart of the sleep mode exiting method in fig. 6.
As shown in fig. 6, exiting the sleep mode method (i.e., being awakened) includes:
s61, when the system has an asynchronous wake-up request such as an asynchronous interrupt, the PMU will turn on the system clock again through the combinational circuit and make the system clock in the low-frequency low-power mode.
And S62, after the system clock is stabilized again, the PMU state cancels the synchronous sleep request and generates a synchronous awakening request inside the PMU.
And S63, selecting a second voltage gear as a target value through the channel selector by the synchronous awakening request of the PMU to regulate the voltage, and starting timing by a second time counter of the boost control circuit.
And S64, after the second time counter of the boost control circuit counts a second preset value, a PMU boost completion signal is generated, the second time counter is synchronously cleared, and the internal boost of the PMU is completed.
And S65, switching the system clock to the normal mode by the PMU boosting completion signal through the PMU combined circuit, and returning the system to the normal mode to work.
The control sequence for exiting the sleep mode is shown in fig. 5.
In summary, the power management system according to the embodiment of the present invention can further reduce the power consumption of the microcontroller in the sleep mode (the internal stabilizer of the PMU keeps working) through the voltage regulation of the hardware; the automatic switching function of the system clock can be realized only by the default clock of the system, and an additional low-frequency clock is not needed, so that the hardware area overhead is saved; the time for the system to enter and exit the sleep mode can be adjusted through presetting, and the stability of switching the low-power consumption mode of the PMU analog circuit is further enhanced. The control circuits added in the invention are all designed by pure digital logic, and the hardware cost is low, thus being easy to realize in the circuit design.
Fig. 7 is a block diagram of a chip device of an embodiment of the present invention.
As shown in fig. 7, the chip apparatus 700 includes the power management system 100 described above.
It should be noted that the logic and/or steps shown in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (10)
1. A power management system, the system comprising: the system comprises a central processing unit, a power management unit, a system clock and a stabilizer; wherein,
the system clock is respectively connected with the central processing unit and the power management unit so as to provide clock signals for the central processing unit and the power management unit;
the power management unit is respectively connected with the central processing unit and the stabilizer and used for outputting a first clock mode selection signal to the system clock after receiving a sleep mode request sent by the central processing unit so as to enable the system clock to enter a low-frequency low-power-consumption mode, outputting a first potential selection signal to the stabilizer so as to enable the stabilizer to perform voltage reduction adjustment, and outputting a first combined clock enable signal to the system clock after voltage reduction is completed so as to close the system clock.
2. The power management system of claim 1, wherein the power management unit is further configured to connect to an external device for:
after receiving an asynchronous wake-up request sent by the external device, outputting a second combination clock enable signal to the system clock to turn on the system clock, outputting a second potential selection signal to the stabilizer to enable the stabilizer to perform boost adjustment, and outputting a second clock mode selection signal to the system clock after the boost is completed to enable the system clock to enter a normal frequency mode.
3. The power management system of claim 2, wherein the power management unit comprises: the circuit comprises a PMU state machine, a voltage reduction control circuit, a voltage boosting control circuit, a combination circuit and a register preset circuit;
the PMU state machine is respectively connected with the CPU, the system clock, the buck control circuit, the boost control circuit and the combination circuit, is used for being connected to the external equipment, and is used for outputting a synchronous sleep request of a first level to the buck control circuit and the combination circuit after receiving the sleep mode request, outputting a synchronous sleep request of a second level to the buck control circuit and the combination circuit after receiving the asynchronous wake-up request, and outputting a synchronous wake-up request to the boost control circuit;
the voltage reduction control circuit is connected with the system clock and used for counting voltage reduction adjustment time after receiving the synchronous sleep request to obtain a first count value, and outputting a voltage reduction completion signal to the PMU state machine when the first count value reaches a first preset value, so that the PMU state machine outputs a synchronous clock enabling signal to the combined circuit according to the voltage reduction completion signal;
the boost control circuit is connected with the system clock and the combination circuit and is used for counting boost adjustment time after receiving the synchronous awakening request to obtain a second count value, and outputting a boost completion signal to the combination circuit when the second count value reaches a second preset value;
the register presetting circuit comprises a first voltage presetting gear register and a second voltage presetting gear register, wherein the first voltage presetting gear register is used for providing a first voltage gear, and the second voltage presetting gear register is used for providing a second voltage gear;
the combination circuit is connected with the system clock, the stabilizer, the first voltage preset gear register and the second voltage preset gear register, is connected to the external device, and is configured to output the first potential selection signal corresponding to the first voltage gear to the stabilizer and output the first clock mode selection signal to the system clock after receiving the synchronous sleep request of the first level, output the second combination clock enable signal to the system clock after receiving the asynchronous wake-up signal, output the second potential selection signal corresponding to the second voltage gear to the stabilizer after receiving the cancellation of the synchronous sleep request of the second level, and output the second clock mode selection signal to the system clock after receiving the boosting completion signal.
4. The power management system of claim 3, wherein the buck control circuit comprises a first voltage regulation time preset register, a first time counter, a first equal comparator and a first synchronous logic sub-circuit; wherein,
the first time counter is respectively connected with the PMU state machine, the system clock, the first equal comparator and the first synchronous logic sub-circuit, and is used for counting the voltage reduction adjustment time after receiving the synchronous sleep request to obtain a first count value and outputting the first count value to the first equal comparator;
the first equality comparator is respectively connected with the first voltage regulation time presetting register and the first synchronous logic sub-circuit, and is used for triggering the first synchronous logic sub-circuit to output a voltage reduction completion signal to the first time counter and the PMU state machine respectively after the first count value is equal to a first preset value provided by the first voltage regulation time presetting register, so that the first time counter is cleared from 0, and the PMU state machine outputs a synchronous clock enabling signal to the combinational circuit according to the voltage reduction completion signal.
5. The power management system of claim 4, wherein the boost control circuit comprises a second voltage regulation time preset register, a second time counter, a second equal comparator and a second synchronous logic sub-circuit; wherein,
the second time counter is respectively connected with the PMU state machine, the system clock, the second equal comparator and the second synchronous logic sub-circuit, and is used for counting the boosting adjustment time after receiving the synchronous awakening request to obtain a second count value and outputting the second count value to the second equal comparator;
the second equality comparator is connected to the second voltage adjustment time presetting register and the second synchronous logic sub-circuit, and is configured to trigger the second synchronous logic sub-circuit to output a voltage boosting completion signal to the second time counter and the combinational circuit, respectively, after the second count value is equal to a second preset value provided by the second voltage adjustment time presetting register, so that the second time counter performs 0 clearing, and the combinational circuit outputs the second clock mode selection signal to the system clock.
6. The power management system of claim 3, wherein the combinational circuit comprises a channel selector and a logic gate subcircuit; wherein,
the first input end of the channel selector is connected with the first voltage preset gear register, the second input end of the channel selector is connected with the second voltage preset gear register, the control end of the channel selector is connected with the PMU state machine and used for inputting the synchronous sleep request, the output end of the channel selector is connected with the stabilizer, and the channel selector is used for outputting the first potential selection signal to the stabilizer after receiving the synchronous sleep request of the first level and outputting the second potential selection signal to the stabilizer after receiving the synchronous sleep request of the second level;
the logic gate sub-circuit is respectively connected with the PMU state machine, the boost control circuit and the clock system, is connected to the external device, and is configured to output the first combined clock enable signal to the system clock after receiving the synchronous clock enable signal, output the second combined clock enable signal to the system clock after receiving the asynchronous wake-up request, output the first clock mode selection signal to the system clock after receiving the synchronous sleep request, and output the second clock mode selection signal to the system clock after receiving the boost completion signal.
7. The power management system of claim 6, wherein the logic gate subcircuit comprises: a first or gate, a not gate and a second or gate; wherein,
the first or gate is connected with the PMU state machine for inputting the synchronous clock enabling signal, the second input end is connected with the external equipment for inputting the asynchronous wake-up request, and the output end is connected with the system clock;
the input end of the NOT gate is connected with the boost control circuit and used for inputting the boost completion signal, the output end of the NOT gate is connected with the first input end of the second OR gate, and the NOT gate is used for performing inversion processing on the boost completion signal;
the second or gate is used for outputting the first clock mode selection signal to the system clock after receiving the synchronous sleep request and outputting the second clock mode selection signal to the system clock after receiving the voltage boosting completion signal after the negation processing.
8. The power management system of claim 3, wherein the first level is a high level and the second level is a low level.
9. The power management system of claim 5, further comprising: the system bus is connected with the first voltage preset gear register, the second voltage preset gear register, the first voltage adjusting time preset register and the second voltage adjusting time preset register respectively, and is used for configuring the first voltage gear to the first voltage preset gear register, configuring the second voltage gear to the second voltage preset gear register, configuring the first preset value to the first voltage adjusting time preset register and configuring the second preset value to the second voltage adjusting time preset register.
10. A chip device comprising a power management system according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310117226.9A CN115840499B (en) | 2023-02-15 | 2023-02-15 | Power management system and chip device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310117226.9A CN115840499B (en) | 2023-02-15 | 2023-02-15 | Power management system and chip device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115840499A true CN115840499A (en) | 2023-03-24 |
CN115840499B CN115840499B (en) | 2023-05-26 |
Family
ID=85579739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310117226.9A Active CN115840499B (en) | 2023-02-15 | 2023-02-15 | Power management system and chip device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115840499B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149640A (en) * | 2006-10-31 | 2008-03-26 | 威盛电子股份有限公司 | Systems and methods for low-power computer operation |
CN101944527A (en) * | 2009-07-08 | 2011-01-12 | 炬力集成电路设计有限公司 | Integrated circuit and standby controlling method thereof |
CN102498451A (en) * | 2009-06-22 | 2012-06-13 | 亚马逊技术股份有限公司 | Quiescent state retention mode for processor |
US20160004292A1 (en) * | 2014-07-02 | 2016-01-07 | Freescale Semiconductor, Inc. | Microcontroller with multiple power modes |
CN106802709A (en) * | 2016-11-28 | 2017-06-06 | 珠海格力电器股份有限公司 | Low-power consumption circuit and control method thereof |
CN107015623A (en) * | 2015-12-07 | 2017-08-04 | 联发科技股份有限公司 | System power dissipation ameliorative way and its system for implementing improvement power consumption |
CN108089689A (en) * | 2017-11-17 | 2018-05-29 | 珠海慧联科技有限公司 | A kind of small-sized SoC super low-power consumptions control circuit and method |
-
2023
- 2023-02-15 CN CN202310117226.9A patent/CN115840499B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149640A (en) * | 2006-10-31 | 2008-03-26 | 威盛电子股份有限公司 | Systems and methods for low-power computer operation |
CN102498451A (en) * | 2009-06-22 | 2012-06-13 | 亚马逊技术股份有限公司 | Quiescent state retention mode for processor |
CN101944527A (en) * | 2009-07-08 | 2011-01-12 | 炬力集成电路设计有限公司 | Integrated circuit and standby controlling method thereof |
US20160004292A1 (en) * | 2014-07-02 | 2016-01-07 | Freescale Semiconductor, Inc. | Microcontroller with multiple power modes |
CN107015623A (en) * | 2015-12-07 | 2017-08-04 | 联发科技股份有限公司 | System power dissipation ameliorative way and its system for implementing improvement power consumption |
CN106802709A (en) * | 2016-11-28 | 2017-06-06 | 珠海格力电器股份有限公司 | Low-power consumption circuit and control method thereof |
CN108089689A (en) * | 2017-11-17 | 2018-05-29 | 珠海慧联科技有限公司 | A kind of small-sized SoC super low-power consumptions control circuit and method |
Also Published As
Publication number | Publication date |
---|---|
CN115840499B (en) | 2023-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12019493B2 (en) | Synchronous power state control scheme for multi-chip integrated power management solution in embedded systems | |
US9882472B2 (en) | Techniques for power supply topologies with capacitance management to reduce power loss associated with charging and discharging when cycling between power states | |
JP4098533B2 (en) | Control circuit for switching power supply device and switching power supply device using the same | |
KR100342899B1 (en) | Booster including charge pumping circuit with its electric power consumption reduced and method of operating the same | |
US8736247B2 (en) | Power supply circuit and control method of controlling the power supply circuit | |
JP5175642B2 (en) | Power control device | |
WO2003014902A1 (en) | Distributed power supply architecture | |
US9252774B2 (en) | Integrated circuit wake-up control system | |
US7652944B2 (en) | Semiconductor device for reducing soft error rate with reduced power consumption | |
US20100017636A1 (en) | Power supply system | |
CN102414970A (en) | Energy-efficient standby mode in a switching power supply | |
JP2006325391A (en) | Power management system | |
US20110179299A1 (en) | Power Management In A System Having A Processor And A Voltage Converter That Provide A Power Voltage To The Processor | |
US20160006350A1 (en) | Techniques for reducing switching noise and improving transient response in voltage regulators | |
CN115840499A (en) | Power management system and chip device | |
US6870778B2 (en) | Semiconductor device including a voltage monitoring circuit | |
CN108648817B (en) | Power supply control device and patient monitor thereof | |
EP2817690B1 (en) | Method and apparatus for load switch controller | |
US7489975B2 (en) | Power supply device, information processing apparatus, and power control method | |
US10203743B2 (en) | Reference voltage circuits in microcontroller systems | |
CN112346063B (en) | Ultrasonic apparatus, control method of ultrasonic apparatus, and storage medium | |
TW200818672A (en) | Charge pump circuit and control circuit thereof | |
JP2011176904A (en) | Distributed power supply system, control method, program, and recording medium | |
CN116505768A (en) | Power supply device and method, electronic device, and readable storage medium | |
JPH113125A (en) | Power supply circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |