A control method and device for a power supply circuit and an electronic device
By dynamically controlling the shared power circuit to power the processor, the problem of idle power in the traditional power architecture is solved, and the power usage efficiency and overall system performance are improved.
Patent Information
- Application Number
- CN202110974981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-24
AI Technical Summary
In the traditional power supply architecture, multiple processors each use independent power circuits, which results in a large occupation area, low power supply efficiency, and inability to fully utilize power. Especially when processor functions overlap or conflict with functions, the power supply power is idle.
A power circuit control method is provided. By obtaining the working status of the processor, the shared power circuit is dynamically controlled to supply power to processors with the same function, and alternately supplies power to the second processor and sub-processors of the first processor, thereby reducing unnecessary Necessary power circuit use.
It improves the efficiency of system power supply, reduces power consumption, reduces the wiring area, saves production costs, and meets the need for miniaturization.
Smart Images

Figure CN113778211B
Abstract
Description
Technical Field
[0001] The present application relates to the field of power supply circuits, and in particular to a control method, device and electronic equipment for a power supply circuit. Background Art
[0002] In traditional power architectures, multiple independent power circuits are usually set up for multiple processors. However, in reality, some processors do not need to run at the same time because of overlapping or conflicting functions.
[0003] In the above case, if each processor uses an independent power supply circuit, it will not only occupy a larger area, but also reduce the power supply efficiency of the power supply and fail to fully utilize the electrical energy. Summary of the invention
[0004] The applicant creatively provides a control method and device for a power supply circuit and an electronic device.
[0005] According to a first aspect of an embodiment of the present application, a method for controlling a power supply circuit is provided, which is applied to an electronic device including a first processor, a second processor and a first power supply circuit, wherein the first processor has a sub-processor with the same function as the second processor, the first processor is also connected to a second power supply circuit, and the second processor is also connected to a third power supply circuit, the method comprising: obtaining a working state of the second processor; in response to the working state being a first state, controlling the first power supply circuit to be electrically connected to the second processor; in response to the working state being a second state, controlling the first power supply circuit to be electrically connected to the sub-processor of the first processor, wherein the power consumption of the second state is lower than the power consumption of the first state.
[0006] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power switch and a multiplexer, the power switch is connected to the first power circuit; the multiplexer is connected to the first power circuit, the sub-processor of the first processor and the second processor; accordingly, the first power circuit is controlled to be electrically connected to the second processor, including: controlling the power switch to cut off power to the first power circuit; controlling the multiplexer to disconnect the connection between the first power circuit and the sub-processor of the first processor, and connecting the first power circuit to the second processor; controlling the power switch to power on the first power circuit.
[0007] According to an implementation of an embodiment of the present application, obtaining the working state of the second processor includes: obtaining the power output power consumption of the second processor; and determining the working state of the second processor according to the power consumption of the second processor.
[0008] According to an implementation of an embodiment of the present application, the method also includes: obtaining the power output power consumption of the first processor over a period of time; predicting the load change trend of the first processor based on the power output power consumption over a period of time; and adjusting the maximum operating frequency of power supply to the first processor based on the load change trend.
[0009] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power adapter, a charger and a battery. Accordingly, the method also includes: obtaining the battery charging power consumption, the battery required power consumption and the input power consumption of the power adapter; in response to the power adapter input power consumption, the battery required power consumption and the input charging power consumption of the power adapter satisfying a first condition, increasing the input power consumption of the charger to the nominal power consumption of the power adapter, the first condition being that the input power consumption of the power adapter is less than the battery required power consumption and the input power consumption of the power adapter is less than the nominal power consumption of the power adapter.
[0010] According to a second aspect of an embodiment of the present application, a control device for a power supply circuit is provided, which is applied to an electronic device including a first processor, a second processor and a first power supply circuit, wherein the first processor has a sub-processor with the same function as the second processor, the first processor is also connected to the second power supply circuit, and the second processor is also connected to the third power supply circuit, and the device includes: a working status acquisition module, for acquiring the working status of the second processor; a first power supply circuit control module, for controlling the first power supply circuit to be electrically connected to the second processor in response to the working status being a first status; and controlling the first power supply circuit to be electrically connected to the sub-processor of the first processor in response to the working status being a second status, wherein the power consumption of the second status is lower than the power consumption of the first status.
[0011] According to the third aspect of the embodiments of the present application, an electronic device is provided, including a first processor, a second processor and a first power supply circuit, the first processor having a sub-processor with the same function as the second processor, the first processor being further connected to the second power supply circuit, and the second processor being further connected to the third power supply circuit, wherein: the sub-processor of the first processor is connected to a multiplexer via a first power controller; the second processor is connected to the multiplexer via a second power controller; the first power supply circuit is connected to a power switch and is connected to the multiplexer; the power switch and the multiplexer are used to control the first power supply circuit to be electrically connected to the sub-processor of the first processor, or to be electrically connected to the second processor.
[0012] According to an implementation manner of an embodiment of the present application, the electronic device further includes: a first power detector connected to the second processor power controller, and used to obtain the power output power consumption of the second processor.
[0013] According to an implementation of an embodiment of the present application, the electronic device further includes: a second power detector connected to the power controller of the first processor, and used to obtain the power output power consumption of the first processor within a period of time.
[0014] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power adapter, a charger, a battery and a third power detector. The third power detector is a high-precision power detector, which is respectively connected to the power adapter, the charger and the battery, and is used to obtain the battery charging power consumption, the battery demand power consumption and the input power consumption of the power adapter.
[0015] Embodiments of the present application provide a control method, device and electronic device for a power supply circuit. The method is applied to an electronic device provided with two processors and wherein the first processor has a sub-processor with the same function as the second processor, for example, a computer equipped with a CPU with an integrated graphics card and connected to an independent GPU, wherein each processor is connected to a core power supply circuit for basic power supply and shares another group of power supply circuits. The method comprises: detecting whether the second processor is in operation, and if so, giving the shared power supply circuit to the second processor, and if not, giving the shared power supply circuit to the sub-processor of the first processor. In this way, the efficiency of the use of the system power supply can be greatly improved. In addition, since one group can be shared, the wiring area can be greatly reduced, the production cost can be saved, and the needs of miniaturization can be better met.
[0016] It should be understood that the implementation of the present application does not require the realization of all the beneficial effects described above, but a specific technical solution can achieve a specific technical effect, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0018] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0019] Figure 1 A schematic diagram of the hardware structure of an electronic device using a traditional power supply architecture;
[0020] Figure 2 This is a schematic diagram of an implementation flow of a control method for a power supply circuit according to an embodiment of the present application;
[0021] Figure 3 A schematic diagram of a power circuit control method according to another embodiment of the present application applied to an improved electronic device;
[0022] Figure 4 A schematic diagram of a part of the circuit of another embodiment of the present application;
[0023] Figure 5 For this application Figure 4 A schematic diagram of the efficiency curve of the power module of the illustrated embodiment;
[0024] Figure 6 A schematic diagram of a part of the circuit of another embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of the structure of a control device for a power supply circuit according to an embodiment of the present application;
[0026] Figure 8 Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0030] Figure 1 FIG. 1 shows a hardware structure of an electronic device 10 using a traditional power supply architecture. Figure 1As shown, the electronic device 10 is provided with two processors: a first processor 101 and a second processor 102, wherein the first processor 101 is integrated with a sub-processor 1011, and the sub-processor 1011 has the same function as the second processor 102. Among them, the first processor 101 is connected to a first power controller 1013, and the power control is performed through the first power controller 1013. The first power controller 1013 is connected to multiple power circuits, for example, a first power circuit 1014 for powering the sub-processor and a second power circuit 1012 for basic power supply. The second processor 102 is connected to a second power controller 1022, and the power control is performed through the second power controller 1022. The second power controller 1022 is connected to multiple power circuits, for example, a third power circuit 1021 and a fourth power circuit 1023 for providing basic power supply, wherein the power supply capacity of the fourth power circuit 1023 is equivalent to the power supply capacity of the first power circuit 1014.
[0031] Since the sub-processor 1011 has the same function as the second processor 102, when the second processor 102 is running, the sub-processor 1011 is actually not required to run. At this time, the power provided by the first power supply circuit 1014 for powering the sub-processor 1011 cannot be effectively utilized.
[0032] When the second processor 102 is not running, the third power circuit 1021 and the fourth power circuit 1023 are not needed to jointly supply power to the second processor 102. At this time, the power provided by the third power circuit 1021 and the fourth power circuit 1023 cannot be effectively utilized.
[0033] It can be seen that in the above usage scenario, since the function of the second processor 102 is the same as the sub-processor 101 of the first processor 101 and only one processor will be actually used at the same time, either the power supplied by the first power circuit 1014 is idle, or the power supplied by the fourth power circuit 1023 and the third power circuit 1021 is idle. In this way, the utilization rate of the power supply power is greatly reduced.
[0034] It should be noted that the Nth power supply circuit mentioned in this application (where N is a natural number 1, 2, ..., N) is only a logical division based on function and for the purpose of better explaining the technical problem. In practical applications, each of the power supply circuits may be physically composed of multiple power supply channels or power supply modules.
[0035] In response to the above problems, the inventors of the present application creatively conceived that if a control method for a power supply circuit can be provided so that the first power supply circuit 1014 can alternately supply power to the second processor 102 and the sub-processor 1011 of the first processor 101 according to processing needs, there is no need to set up the fourth power supply circuit 1023.
[0036] In this way, the utilization rate of power supply energy can be greatly improved, and the power consumption of electronic equipment can be further saved; in addition, since the fourth power supply circuit 1023 is no longer required, the wiring area can be reduced, the production cost can be saved, and the miniaturization requirements can be better met.
[0037] Based on the above invention ideas, the present application provides a control method for a power supply circuit, which is applied to an electronic device including a first processor, a second processor and a first power supply circuit, wherein the first processor has a sub-processor with the same function as the second processor, the first processor is further connected to the second power supply circuit, and the second processor is further connected to the third power supply circuit, such as Figure 2 As shown, the method includes: operation 210, obtaining the working state of the second processor; operation 220, in response to the working state being a first state, controlling the first power supply circuit to be electrically connected to the second processor; operation 230, in response to the working state being a second state, controlling the first power supply circuit to be electrically connected to a sub-processor of the first processor, wherein the power consumption of the second state is lower than the power consumption of the first state.
[0038] Among them, the processor mainly refers to the device used for calculation, control and processing in electronic equipment, such as central processing unit, graphics processing unit, tensor processing unit (TPU), etc.
[0039] The second processor is a processor independent of the first processor, and its computing performance is often higher than that of the sub-processor of the first processor. However, correspondingly, the resources and power consumption required by the second processor when running are relatively large. Therefore, the second processor is often only run when performing some relatively complex processing that requires high computing performance.
[0040] Therefore, the second processor has at least two working states, one is a runtime state and the other is a non-runtime state. Of course, it is not excluded that the second processor also has an unsaturated state under unsaturated workload and an overloaded state under super-saturated workload.
[0041] The second state in operation 230 mainly refers to a non-operational state, while the first state in operation 220 may be any other state with a power consumption greater than that of the non-operational state, such as a runtime state, a non-saturated state, or an overload state.
[0042] It can be seen that the control method of the power circuit provided by the present application can obtain the working state of the second processor through operation 210, and then accurately control the first power circuit in response to different working states of the second processor according to operations 220 and 230, and alternately supply power to the second processor and the sub-processor of the first processor with the same function. In this way, the utilization rate of the power supply energy can be greatly improved.
[0043] It should be noted that Figure 1 The embodiments shown are only basic embodiments of the present application, and implementers can also refine and expand them on this basis. For example:
[0044] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power switch and a multiplexer, the power switch is connected to the first power circuit; the multiplexer is connected to the first power circuit, the sub-processor of the first processor and the second processor; accordingly, the first power circuit is controlled to be electrically connected to the second processor, including: controlling the power switch to cut off power to the first power circuit; controlling the multiplexer to disconnect the connection between the first power circuit and the sub-processor of the first processor, and connecting the first power circuit to the second processor; controlling the power switch to power on the first power circuit.
[0045] In this embodiment, the electronic device to which the control method of the power circuit of the present application is applied controls the first power circuit to be electrically connected to the second processor through a multiplexer and a power source. In this case, the above operation can be performed to control the first power circuit to be electrically connected to the second processor.
[0046] According to an implementation of an embodiment of the present application, obtaining the working state of the second processor includes: obtaining the power output power consumption of the second processor; and determining the working state of the second processor according to the power consumption of the second processor.
[0047] Usually, the working state of the second processor can be determined by the power output power consumption of the power supply, and this implementation method is also relatively simple and easy.
[0048] Figure 3 A specific embodiment of the power circuit control method of the present application is shown. The embodiment is applied to Figure 3 See the electronic device shown. Figure 3 In this electronic device, the first processor is CPU 301 , a graphics card 3011 is integrated on CPU 301 , and the second processor is GPU 302 .
[0049] Among them, CPU301 sends instructions to CPU power controller 3013 through SVID signal to manage and control the power supply circuit. CPU power controller 3013 is connected to second power circuit 3012 and multiplexer 30143 respectively to supply power to CPU301 and graphics card 3011 integrated thereon. Second power circuit includes N groups of CPU core power channels composed of DRmos, inductor, etc. cooperating with CPU power controller 3013, for example, CPU core power channel 1, CPU core power channel 2, ..., CPU core power channel N. Due to limited space, Figure 3 Not all CPU core power channels are shown.
[0050] The multiplexer 30143 is connected to the first power circuit 3014 , and the first power circuit 3014 includes two groups of shared power channels: shared power channel 1 and shared power channel 2. The first power circuit is also connected to a power switch 30142 .
[0051] It should be noted that, in practical applications, the power supply channels shared by the first power supply circuit are not limited to two groups, and the implementer may determine the specific number according to specific circumstances.
[0052] GPU302 sends instructions to GPU power controller 3022 through VID signal to manage and control the power supply circuit. GPU power controller 3022 is connected to third power circuit 3021 and multiplexer 30143 respectively to GPU302. The third power circuit includes M-2 groups of GPU core power channels composed of DRmos, inductors, etc. and GPU power controller 3022, for example, GPU core power channel 3 and GPU core power channel M. Due to limited space, Figure 3 Not all CPU core power channels are shown.
[0053] Since the GPU 302 shares the shared power channel 1 and the shared power channel 2 in the first power circuit with the graphics card 3011 on the CPU 301, the GPU 302 uses two fewer GPU core power channels than electronic devices using a traditional power architecture.
[0054] In the above power supply circuit, each core power supply channel is provided with a pulse width modulator (PWM). Figure 3 Not shown in the figure, it is used to modulate the bias of the transistor base or the MOS tube gate according to the change of the corresponding load to achieve the change of the transistor or MOS tube conduction time, thereby achieving the change of the output of the switching regulated power supply.
[0055] One end of the GPU power controller 3022 is also connected to a GPU power detector (Power Sensor) 3023 for obtaining the output power consumption of the GPU power.
[0056] In addition, the electronic device is also provided with an AI chip 303, which is respectively connected to the CPU 201, the multiplexer 30143 and the GPU power detector 3023, and is used to execute the control method of the power circuit of the present application, which specifically includes:
[0057] Use the GPU power detector 3023 to obtain the power output power consumption of GPU302 to determine whether GPU302 is in operation; if GPU302 is in operation, send a "GPU switching signal" to CPU301 respectively, and send a "GPU selection signal" to the multiplexer 30143 and the power switch 30142; if GPU302 is not in operation, send a "GPU switching signal" to CPU301 respectively, and send a "CPU selection signal" to the multiplexer 30143 and the power switch 30142.
[0058] After receiving the GPU switching signal, CPU301 sends an SVID signal to the CPU power controller 3013 to stop or start supplying power to the graphics card 3011.
[0059] After the power switch 30142 and the multiplexer 30143 receive the "GPU selection signal", they will first turn off the power, wait for the multiplexer 30143 to electrically connect the first power circuit 3014 and the GPU power controller 3022, and then turn on the power to allow the shared power channel 1 and shared power channel 2 in the first power circuit 3014 to power the GPU 302.
[0060] After the power switch 30142 and the multiplexer 30143 receive the "CPU selection signal", they will first turn off the power, wait for the multiplexer 30143 to electrically connect the first power circuit 3014 and the CPU power controller 3013, and then turn on the power to allow the shared power channel 1 and the shared power channel 2 in the first power circuit 3014 to power the graphics card 3011 in the CPU 301.
[0061] It should be noted that Figure 3 The illustrated embodiments are merely illustrative of the control method of the power supply circuit of the present application, and are not intended to limit the implementation methods or application scenarios of the present application.
[0062] According to an implementation of an embodiment of the present application, the method also includes: obtaining the power output power consumption of the first processor over a period of time; predicting the load change trend of the first processor based on the power output power consumption over a period of time; and adjusting the maximum operating frequency of power supply to the first processor based on the load change trend.
[0063] Usually, the maximum adjustable operating frequency of a power controller, such as the aforementioned first power controller or second power controller, is fixed.
[0064] But in fact, when the processor is under medium load or slightly heavy load, it is not necessary to adjust the power supply frequency to the maximum operating frequency set for full load. Instead, it can be adjusted to a maximum operating frequency that is more commensurate with the processor load.
[0065] As mentioned above, the load of the processor is usually reflected in the output power consumption of the power supply. Therefore, in this embodiment, taking the first processor as an example, the load change trend of the first processor can be predicted by obtaining the power output power consumption of the first processor over a period of time, and the maximum operating frequency of the power supply to the first processor can be reduced or increased according to the trend.
[0066] Figure 4 FIG. 2 shows a partial circuit diagram of an embodiment using this embodiment. Figure 4 As shown, a power detector 402 is connected to the output circuit of the first power controller 401 connected to the first processor. The power detector 402 obtains the power output power consumption of the first processor in real time over a period of time to predict the load change trend of the first processor, and reduces or increases the maximum operating frequency of power supply to the first processor according to the trend.
[0067] In this way, losses can be reduced and the efficiency of electricity utilization can be improved.
[0068] Figure 5 The efficiency curve (a) of the same power step-down module at a maximum operating frequency of 600K Hz and the efficiency curve (b) of the same power step-down module at a maximum operating frequency of 1 MHz under this embodiment are shown.
[0069] Among them, the dotted line represents the efficiency when Vin=12V, Vout=1V; the dotted line represents the efficiency when Vin=12V, Vout=3.3V; and the solid line represents the efficiency when Vin=12V, Vout=5V.
[0070] It can be seen that after adopting this implementation, under non-heavy load conditions, after adjusting the maximum operating frequency to 600K Hz, the efficiency can be improved by at least 2-3 percentage points compared to the original implementation in which the maximum operating frequency of 1 MHz is always used.
[0071] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power adapter, a charger and a battery. Accordingly, the method also includes: obtaining the battery charging power consumption, the battery required power consumption and the input power consumption of the power adapter; in response to the power adapter input power consumption, the battery required power consumption and the input charging power consumption of the power adapter satisfying a first condition, increasing the input power consumption of the charger to the nominal power consumption of the power adapter, the first condition being that the input power consumption of the power adapter is less than the battery required power consumption and the input power consumption of the power adapter is less than the nominal power consumption of the power adapter.
[0072] At present, many electronic devices are equipped with power adapters, chargers and batteries, so that they can be powered by batteries when the power adapter cannot be used. After the battery power is consumed, the electric field can be charged to replenish the battery power when the power adapter is connected.
[0073] The inventor of the present application discovered that when a power adapter is connected for power supply, the current of the charger will be limited to protect the power adapter. However, there will be an error of about 0.2A when the charger detects the current. This will result in the inability to fully utilize the power that the adapter can provide, thereby extending the charging time and further shortening the battery life.
[0074] To this end, in this embodiment, by obtaining more accurate battery charging power consumption, battery required power consumption and input power consumption of the power adapter, and when the input power consumption of the power adapter is less than the battery required power consumption and the input power consumption of the power adapter is less than the nominal power consumption of the power adapter, the input power consumption of the charger is increased to the nominal power consumption of the power adapter. The nominal power consumption of the power adapter is the maximum power consumption that the power adapter can provide.
[0075] In this way, the purpose of protecting the power adapter can be achieved, and the input power consumption of the charger can be improved, shortening the charging time.
[0076] Figure 6 FIG. 2 shows a partial circuit diagram of an embodiment using this embodiment. Figure 6 As shown, the output circuit of the power adapter 601 and the output circuit of the charger 602 are respectively connected to the power detector 604. The battery charging power consumption of the battery 603, the battery required power consumption and the input power consumption of the power adapter 601 are obtained in real time through the power detector 604; if the input power consumption of the power adapter 601 is less than the battery required power consumption and the input power consumption of the power adapter 601 is less than the nominal power consumption of the power adapter 601, the input power consumption of the charger 602 is increased to the nominal power consumption of the power adapter 601.
[0077] Furthermore, the present application also provides a control device for a power supply circuit, which is applied to an electronic device including a first processor, a second processor and a first power supply circuit, wherein the first processor has a sub-processor with the same function as the second processor, the first processor is further connected to the second power supply circuit, and the second processor is further connected to the third power supply circuit, such as Figure 7 As shown, the device 70 includes: a working status acquisition module 701, used to obtain the working status of the second processor; a first power supply circuit control module 702, used to control the first power supply circuit to be electrically connected to the second processor in response to the working status being the first status; the first power supply circuit control module 702 is also used to control the first power supply circuit to be electrically connected to the sub-processor of the first processor in response to the working status being the second status, wherein the power consumption of the second status is lower than the power consumption of the first status.
[0078] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power switch and a multiplexer, the power switch is connected to the first power circuit; the multiplexer is connected to the first power circuit, the sub-processor of the first processor and the second processor; accordingly, the first power circuit control module 702 includes: a power switch control sub-module, used to control the power switch to cut off the power of the first power circuit; a multiplexer control sub-module, used to control the multiplexer to disconnect the connection between the first power circuit and the sub-processor of the first processor, and connect the first power circuit with the second processor; the power switch control sub-module is also used to control the power switch to power on the first power circuit.
[0079] According to an implementation of an embodiment of the present application, the working status acquisition module 702 includes: a power output power consumption acquisition submodule, used to obtain the power output power consumption of the second processor; and a working status determination submodule, used to determine the working status of the second processor according to the power consumption of the second processor.
[0080] According to an implementation of an embodiment of the present application, the device 70 also includes: a first power consumption acquisition module, used to obtain the power output power consumption of the first processor within a period of time; a load prediction module, used to predict the load change trend of the first processor based on the power output power consumption within a period of time; a maximum operating frequency adjustment module, used to adjust the maximum operating frequency of power supply to the first processor according to the load change trend.
[0081] According to an implementation mode of an embodiment of the present application, the electronic device also includes a power adapter, a charger and a battery. Accordingly, the device 70 also includes: a second power consumption acquisition module, used to obtain the battery charging power consumption of the battery, the battery requirement power consumption and the input power consumption of the power adapter; an input power consumption improvement module, used to increase the input power consumption of the charger to the nominal power consumption of the power adapter in response to the input power consumption of the power adapter, the battery requirement power consumption and the input charging power consumption of the power adapter satisfying a first condition, the first condition being that the input power consumption of the power adapter is less than the battery requirement power consumption and the input power consumption of the power adapter is less than the nominal power consumption of the power adapter.
[0082] In addition, the present application will provide an electronic device, which can apply the control method of the power supply circuit, such as Figure 4 As shown, the electronic device 80 includes: a sub-processor of a first processor 8011 is connected to a multiplexer 80141 via a first power controller 8013; a second processor 802 is connected to the multiplexer 80141 via a second power controller 8022; a first power circuit 8014 is connected to a power switch connection 80142, and is connected to the multiplexer 80141; the power switch 80142 and the multiplexer 80141 are used to control the first power circuit 8014 to be electrically connected to the sub-processor 8011 of the first processor 801, or to be electrically connected to the second processor 802.
[0083] Compared to Figure 1 The electronic device 10 and the electronic device 80 shown in the figure that adopt the traditional power supply architecture do not need to set up a fourth power supply circuit, and a multiplexer 80141 and a power switch 80142 are respectively added on both sides of the first power supply circuit 8014 to control whether the first power supply circuit 8014 is electrically connected to the second processor 802 or to the sub-processor 8011 of the first processor 801.
[0084] In this way, the utilization efficiency of the system power supply can be greatly improved, the wiring area can be greatly reduced, the production cost can be saved, and the miniaturization requirements can be better met.
[0085] According to an implementation of an embodiment of the present application, the electronic device 80 further includes: a first power detector connected to the second processor power controller, and used to obtain the power output power consumption of the second processor.
[0086] According to an implementation of an embodiment of the present application, the electronic device 80 further includes: a second power detector connected to the power controller of the first processor, and used to obtain the power output power consumption of the first processor within a period of time.
[0087] According to an implementation mode of an embodiment of the present application, the electronic device 80 also includes a power adapter, a charger, a battery and a third power detector. The third power detector is a high-precision power detector, which is connected to the power adapter, the charger and the battery respectively, and is used to obtain the battery charging power consumption, the battery demand power consumption and the input power consumption of the power adapter.
[0088] It should be pointed out here that the above description of the control device embodiment for the power supply circuit and the above description of the electronic device embodiment are similar to the description of the aforementioned method embodiment and have similar beneficial effects as the aforementioned method embodiment, so they are not described in detail. For the technical details that have not been disclosed in the description of the control device embodiment for the power supply circuit and the description of the electronic device embodiment of this application, please refer to the description of the aforementioned method embodiment of this application for understanding, and in order to save space, they are not described in detail.
[0089] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0090] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another device, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0091] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0092] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0093] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage medium, read-only memory (ROM), disk or optical disk, etc. Various media that can store program codes.
[0094] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage media, ROM, magnetic disks or optical disks.
[0095] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A power circuit control method, applied to an electronic device comprising a first processor, a second processor, and a first power circuit, wherein the first power circuit comprises at least one group of shared power channels, the first processor comprises a sub-processor having the same function as the second processor, the first processor is further connected to a second power circuit, the second power circuit comprises multiple groups of first processor core power channels, and the second processor is further connected to a third power circuit, the third power circuit comprises multiple groups of second processor core power channels. The method comprises: Obtaining the working status of the second processor; In response to the working state being the first state, controlling the first power supply circuit to be electrically connected to the second processor; In response to the working state being a second state, controlling the first power supply circuit to be electrically connected to the sub-processor of the first processor, wherein power consumption of the second state is lower than power consumption of the first state.
2. The method according to claim 1, wherein the electronic device further comprises a power switch and a multiplexer, wherein the power switch is connected to the first power circuit; the multiplexer is connected to the first power circuit, a sub-processor of the first processor, and the second processor; Accordingly, controlling the first power supply circuit to be electrically connected to the second processor includes: controlling the power switch to cut off power to the first power circuit; controlling the multiplexer to disconnect the first power circuit from the sub-processor of the first processor and connect the first power circuit to the second processor; The power switch is controlled to energize the first power circuit.
3. The method according to claim 1, wherein obtaining the operating status of the second processor comprises: Obtaining the power output power consumption of the second processor; The operating state of the second processor is determined according to the power consumption of the second processor.
4. The method according to claim 1, further comprising: Obtaining the power output power consumption of the first processor over a period of time; predicting a load change trend of the first processor based on the power output power consumption within the period of time; The maximum operating frequency of power supplied to the first processor is adjusted according to the load change trend.
5. The method according to claim 1, wherein the electronic device further comprises a power adapter, a charger, and a battery. Accordingly, the method further comprises: Obtaining battery charging power consumption, battery required power consumption, and input power consumption of the power adapter; In response to the input power consumption of the power adapter, the required power consumption of the battery, and the input charging power consumption of the power adapter satisfying a first condition, the input power consumption of the charger is increased to the nominal power consumption of the power adapter, wherein the first condition is that the input power consumption of the power adapter is less than the required power consumption of the battery and the input power consumption of the power adapter is less than the nominal power consumption of the power adapter.
6. A power circuit control device, applied to an electronic device comprising a first processor, a second processor, and a first power circuit, wherein the first power circuit comprises at least one group of shared power channels, the first processor comprises a sub-processor having the same function as the second processor, the first processor is further connected to a second power circuit, the second power circuit comprises multiple groups of first processor core power channels, the second processor is further connected to a third power circuit, the third power circuit comprises multiple groups of second processor core power channels, the device comprising: A working status acquisition module, used to acquire the working status of the second processor; The first power supply circuit control module is used to control the first power supply circuit to be electrically connected to the second processor in response to the working state being a first state; and to control the first power supply circuit to be electrically connected to the sub-processor of the first processor in response to the working state being a second state, wherein the power consumption of the second state is lower than the power consumption of the first state.
7. An electronic device comprising a first processor, a second processor, and a first power supply circuit, the first power supply circuit including at least one group of shared power supply channels, the first processor having a sub-processor with the same function as the second processor, the first processor further connected to a second power supply circuit, the second power supply circuit including multiple groups of first processor core power supply channels, the second processor further connected to a third power supply circuit, the third power supply circuit including multiple groups of second processor core power supply channels, wherein: The sub-processor of the first processor is connected to the multiplexer via a first power controller; The second processor is connected to the multiplexer via a second power controller; The first power supply circuit is connected to a power switch and is connected to a multiplexer; The power switch and the multiplexer are used to control the first power circuit to be electrically connected to the sub-processor of the first processor, or to be electrically connected to the second processor.
8. The electronic device according to claim 7, further comprising: The first power detector is connected to the second processor power controller and is used to obtain the power output power consumption of the second processor.
9. The electronic device according to claim 7, further comprising: The second power detector is connected to the power controller of the first processor and is used to obtain the power output power consumption of the first processor within a period of time.
10. The electronic device according to claim 7, further comprising a power adapter, a charger, a battery, and a third power detector. The third power detector is a high-precision power detector, which is connected to the power adapter, the charger and the battery respectively, and is used to obtain the battery charging power consumption, the battery required power consumption and the input power consumption of the power adapter.
Citation Information
Patent Citations
Decentralized power management distributed among multiple processor cores
CN102541237A
Symphony orchestra type multi-core CPU and multi-internal-storage computer system
CN103995796A
Charging method
CN105990864A
Computation device and electronic equipment
CN111033438A
Optimal operating point estimator for hardware operating under shared power / thermal constraints
CN111143174A
