Power supply circuit, electronic equipment and frequency adjustment method
By integrating a current sampling circuit into the PMIC, the current of the battery and backlight components is detected in real time, and the processor frequency is adaptively adjusted, solving the undervoltage lockout problem caused by silicon anode batteries and maximizing the processor frequency and improving device performance.
Patent Information
- Application Number
- CN202511647716.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-11
- Publication Date
- 2026-02-17
AI Technical Summary
Silicon anode batteries are prone to causing undervoltage lockout in electronic devices under low temperature or low voltage conditions, leading to power loss and shutdown. Existing technologies avoid undervoltage lockout by limiting the processor frequency, but this sacrifices device performance.
By integrating a current sampling circuit into the PMIC, the current of the battery and backlight components can be detected in real time. Combined with the processor's operating parameters, the processor frequency can be adaptively adjusted to maximize performance and avoid undervoltage lockout.
Maximize processor frequency without triggering undervoltage lockout, thereby improving the performance and smoothness of electronic devices.
Smart Images

Figure CN121546780A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of terminal, and particularly relates to a power supply circuit, an electronic device and a frequency adjustment method. BACKGROUND
[0002] The energy density of a silicon negative electrode battery is greater than that of a graphite battery, that is, under the same volume, the silicon negative electrode battery can design more battery capacity; and the greater the battery capacity is, the stronger the endurance of the electronic device is. Therefore, the silicon negative electrode battery becomes a common choice to improve the endurance of the electronic device.
[0003] However, the use of the silicon negative electrode battery can also cause the system stability of the electronic device to decrease. Specifically, under the condition that the battery temperature or the output voltage of the battery is low, the impedance of the silicon negative electrode battery is much greater than that of the graphite battery. It can be understood that the greater the battery impedance is, the greater the impedance voltage is, thereby causing the output voltage of the battery to be smaller. Therefore, when the battery temperature or the output voltage of the battery is low, the device using the silicon negative electrode battery is more likely to be powered off due to the output voltage of the battery being lower than the minimum working voltage threshold of the electronic device, that is, under-voltage lockout (ULVO).
[0004] In the related art, in order to avoid triggering the under-voltage lockout, the electronic device can limit the working frequency of the processor when the power of the silicon negative electrode battery is low, that is, no matter which application the electronic device runs, the electronic device limits the working frequency of the processor to a fixed threshold. However, under normal circumstances, the electronic device can still have power consumption redundancy, but is limited and cannot play the best performance. In this way, how to maximize the working frequency of the processor without triggering the under-voltage lockout to improve the running performance of the electronic device is a problem to be solved. SUMMARY
[0005] The purpose of the embodiments of the present application is to provide a power supply circuit, an electronic device and a frequency adjustment method, which can maximize the working frequency of the processor without triggering the under-voltage lockout to improve the running performance of the electronic device.
[0006] In a first aspect, the embodiments of the present application provide a power supply circuit applied to an electronic device, which can include: a power management integrated circuit (PMIC), a battery, a power management unit (PMU), a processor, a speaker, a display driver integrated circuit (DDIC), a backlight assembly, a first current sampling circuit, and a second current sampling circuit, wherein the PMU is connected with the processor, the speaker, and the DDIC respectively;
[0007] The first end of the PMIC is connected with the second end of the PMU and the second end of the backlight assembly, the second end of the PMIC is connected with the first end of the battery, the third end of the PMIC is connected with the first current sampling circuit, the fourth end of the PMIC is connected with the second current sampling circuit, the first current sampling circuit is connected with the second end of the battery, and the second current sampling circuit is connected with the backlight assembly;
[0008] Wherein, in the case that the output voltage of the battery detected by the PMIC is less than or equal to a first frequency limiting voltage threshold, the first current sampling circuit obtains the transient output current of the battery, and the second current sampling circuit obtains the working current of the backlight assembly; the working frequency of the processor is adjusted according to the transient output current of the battery, the output voltage of the battery, the working current of the backlight assembly, the refresh rate of the DDIC, the audio playing parameter of the speaker, and the full performance power consumption characteristic parameter of the first application.
[0009] The first application is an application currently running on the electronic device, and the full performance power consumption characteristic parameter includes a first power consumption and a first ratio, the first power consumption is the maximum power consumption of the processor when the first application runs at full performance, and the first ratio is the ratio of the maximum alternating current component and the direct current component of the processor when the first application runs at full performance.
[0010] In a second aspect, the embodiments of the present application provide an electronic device including the power supply circuit of the first aspect.
[0011] In a third aspect, an embodiment of the present application provides a frequency adjustment method applied to the power supply circuit in the first aspect, the method comprising: obtaining first information of the electronic device in a case where an output voltage of the battery in the electronic device is less than or equal to a first frequency limiting voltage threshold, the first information comprising: a working current of the backlight component, a refresh rate of the display driving circuit (DDIC), an audio playing parameter of the speaker, and a maximum transient output current of the battery; adjusting a working frequency of a processor of the electronic device according to the first information and a full performance power consumption characteristic parameter of a first application, wherein the first application is a currently running application, the full performance power consumption characteristic parameter comprises a first power consumption and a first ratio, the first power consumption is a maximum power consumption of the processor when the first application is running at full performance, and the first ratio is a ratio of a maximum alternating current component to a direct current component of the processor when the first application is running at full performance.
[0012] In the embodiment of the present application, in a case where the output voltage of the battery in the electronic device is less than or equal to the first frequency limiting voltage threshold, the maximum transient output current of the battery, the working current of the backlight component, the refresh rate of the DDIC, and the audio playing parameter of the speaker can be obtained, so that the working frequency of the application processor can be adjusted according to the working current of the backlight component, the transient output current of the battery, the refresh rate of the DDIC, the audio playing parameter of the speaker, and the full performance power consumption characteristic parameter of the currently running application. It can be understood that the maximum transient output current of the battery, the working current of the backlight component, the refresh rate of the DDIC, the audio playing parameter of the speaker, and the full performance power consumption characteristic parameter of the currently running application can reflect the real power consumption of the current running scenario, that is, the working frequency of the processor is adjusted according to the real power consumption of the current running scenario of the electronic device, so that the working frequency of the processor can be maximized while avoiding triggering the under-voltage lockout, and thus the running performance of the electronic device running the application can be maximized. BRIEF DESCRIPTION OF DRAWINGS
[0013] Figure 1A is an equivalent circuit schematic diagram of a battery;
[0014] Figure 1B is a structural schematic diagram of an electronic device in the related art;
[0015] Figure 1C is an equivalent circuit schematic diagram of a battery;
[0016] Figure 1D is a waveform schematic diagram of an output current of a battery;
[0017] Figure 1E is a corresponding relationship schematic diagram of an output voltage of a battery, a system maximum power, and a safety power upper limit in a reference load scenario;
[0018] Figure 2 is a structural schematic diagram of a power supply circuit provided by an embodiment of the present application;
[0019] Figure 3 is a structural schematic diagram of a power supply circuit provided by an embodiment of the present application;
[0020] Figure 4 is a structural schematic diagram of a power supply circuit provided by an embodiment of the present application;
[0021] Figure 5 is a structural schematic diagram of a power supply circuit provided by an embodiment of the present application;
[0022] Figure 6 is a flowchart of a frequency adjustment method provided by an embodiment of the present application;
[0023] Figure 7 is a partial circuit schematic diagram of an electronic device to which the frequency adjustment method provided by an embodiment of the present application is applied;
[0024] Figure 8 is a waveform schematic diagram of an output current of a battery;
[0025] Figure 9 is a flowchart of a self-learning application full-power consumption characteristic parameter provided by an embodiment of the present application;
[0026] Figure 10 is a flowchart of a working frequency adjustment method provided by an embodiment of the present application.
[0027] wherein, Figures 2 to 5 the reference signs in the drawings are as follows:
[0028] 100-electronic device, 10-battery, 11-PMU, 12-application processor, 13-speaker, 14-DDIC, 15-backlight assembly, 16-first current sampling circuit, 17-second current sampling circuit, 161-first current detection resistor, 162-first current meter, 171-second current detection resistor, 172-second current meter, 18-battery temperature detection circuit, 181-temperature-sensitive resistor, 182-temperature detection module, 19-voltage meter, 20-PMIC. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.
[0030] The following explains the terms and terminologies in the embodiments of the present application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and are not limited in number, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the objects before and after are in an "or" relationship.
[0032] The principle of the conventional frequency limiting method is described below.
[0033] First, the silicon negative electrode battery has higher energy density than the conventional graphite battery, and can be designed with more capacity under the same battery size to improve the consumer's endurance experience. However, although the silicon negative electrode battery has higher energy density than the graphite battery, it also has the following disadvantages: 1. Under the same battery output voltage, the impedance of the silicon negative electrode battery is much larger than that of the graphite battery; 2. Under the same battery temperature, the impedance of the silicon negative electrode battery is much larger than that of the graphite battery.
[0034] The above two characteristics of the silicon negative electrode battery mainly affect the power stability of the electronic device, and the main mechanism is as follows, see Figure 1A :
[0035] 1. When the silicon negative electrode battery discharges to the load, the battery impedance R will cause the impedance drop of the battery output Because the battery impedance of the silicon negative electrode battery is much larger than that of the graphite battery, under the same load condition, the of the silicon negative electrode battery is larger. Among them, Figure 1A OCV in the above formula is the static voltage of the battery when it tends to be idle, R represents the battery impedance, and I represents the load current of the battery, which can also be called the output current, , represents the output voltage of the battery or the load voltage of the battery, and .
[0036] 2. The power supply system of the electronic device, such as a smart phone, has a minimum voltage threshold for maintaining normal operation of the system, called UVLO. When the battery is low or the battery is in a low temperature environment, the battery impedance R can increase sharply, and the power consumption of the load can easily cause the output voltage of the battery transiently lower than UVLO, thereby causing the power supply system to transiently black out and power down, resulting in system power stability problems.
[0037] In related technologies, traditional frequency limiting methods can be used to limit the load, such as the operating frequency of the application processor, in order to limit the load power consumption, thereby preventing electronic devices from shutting down due to transient output voltage falling below UVLO.
[0038] In simple terms, under low battery voltage or low temperature conditions, a system power consumption limiting strategy can be implemented: based on a reference load scenario, the power consumption limit of the CPU / GPU and peripherals is limited, thereby limiting the power consumption of the CPU / GPU by limiting its maximum operating frequency. This frequency limiting strategy sacrifices system performance, resulting in performance issues such as lower application benchmark scores, games failing to run at full frame rate, and application interfaces becoming sluggish and unresponsive, leading to a decrease in the smoothness of electronic devices.
[0039] The hardware circuits and specific frequency limiting methods involved in the reference load scenario are explained below.
[0040] I. For example Figure 1B This is the hardware circuit diagram of the electronic equipment involved in traditional frequency limiting methods. See [link / reference]. Figure 1B It is known that electronic devices include batteries and power management circuits, as well as peripheral and system circuits.
[0041] 1. The battery and discharge power management circuit mainly consists of two large modules: the battery module and the power management integrated circuit (PMIC). The battery module's equivalent impedance model is connected in series with a 1-2mΩ current sensing (Rsense) resistor. This resistor is used to detect the battery's discharge current, also known as the battery's output current. The PMIC contains a discharge control switch S1 and a fuel gauge module. The fuel gauge module includes a battery output voltage monitor Vadc and a battery discharge current monitor Iadc. Vadc detects the battery's transient output voltage, and Iadc detects the battery's transient discharge current. Switch S1 controls the battery's output voltage Vbat to provide system power Vsys to the backend system and peripheral PMU. The PMIC's internal temperature detection module (BAT_THERM module) is connected to the battery's internal thermistor NTC to detect the battery's temperature.
[0042] 2. Peripherals and system circuitry include: the PMU and application processor (including CPU and / or GPU), as well as the peripherals with the largest power consumption (screen module and audio). Audio power consumption is primarily due to the speaker (SPK). The screen module's power consumption is divided into two main parts: the power consumption of the DDIC and the power consumption of the backlight components, such as the organic light-emitting diode (OLED) backlight. The backlight power supply for the backlight components is provided by a separate integrated circuit (IC). The operating current of the backlight power supply IC is directly supplied by the system power supply Vsys. When the electronic device is powered on, switch S1 is turned on. .
[0043] It's understandable that a loudspeaker can also be called a loudspeaker.
[0044] 3. The System Power Management Interface (SPMI) bus is used to transmit data and control signals between the PMIC, PMU, and CPU / GPU. The CPU can control the audio encoder (codec) via the I2S bus, and the audio codec controls the audio power amplifier (PA) to play audio to the speakers. The CPU can control the DDIC of the screen module to perform data transmission and refresh rate switching via control signals. When the DDIC receives the brightness adjustment command from the CPU, it sends a signal to the backlight power supply IC, which adjusts the output voltage ELVDD / ELVSS to change the brightness of the backlight component (such as the backlight OLED).
[0045] II. Traditional Frequency Limiting Methods
[0046] Understandable. Figure 1C It is the equivalent circuit of the battery, from Figure 1C It can be seen that battery impedance is divided into AC impedance. and DC impedance Total battery impedance , much smaller ,generally It is in the tens of mΩ range, while It generally varies from hundreds of mΩ to a few Ω depending on temperature and voltage.
[0047] Silicon anode cells, under low voltage or low temperature conditions, the cell's... Impedance increases non-linearly, so under low voltage or low temperature conditions, the system is more likely to trigger UVLO when subjected to heavy loads.
[0048] To avoid UVLO when the battery output voltage or battery temperature is low, the traditional frequency limiting method is as follows:
[0049] 1. First test the battery impedance of electronic devices, such as smartphones.
[0050] It mainly refers to the electron conduction impedance, which does not fluctuate significantly with changes in battery output voltage and battery temperature, and is conventionally defined. Industry standards are based on tests conducted at 1kHz, which involves discharging the battery using a 1ms current pulse and calculating the results. ,in, Vbat is the static voltage of the battery when it is close to no load, I is the output voltage of the battery, and Vbat is the output current of the battery.
[0051] and The main factor is the electrochemical diffusion impedance of lithium ions. Changes in battery output voltage and temperature have a significant impact on the Rdc impedance. Lower temperatures and lower voltages result in slower lithium-ion diffusion rates and higher equivalent electrochemical diffusion impedance. In other words, lower temperatures and / or lower battery output voltages... The larger.
[0052] The testing scheme is based on the temperature range in which the battery is safe to operate. It typically tests several typical temperature values, such as -20℃, -10℃, 0℃, 25℃, and 50℃.
[0053] The Rac impedance test method at a fixed temperature is as follows: first charge the battery to the target voltage, then record the voltage after letting it stand for 30 minutes. The voltage is set, and then continuous discharge begins at 0.XC, where X is a positive integer. The discharge current value is generally selected based on the average current of the platform system in most scenarios, such as 0.2C; the continuous discharge time is also based on the maximum duration of the average current in most scenarios of the platform system, such as 60 seconds.
[0054] For example, if the battery is continuously discharged at 0.2C / 60s, record the VBat voltage 60s after the discharge is complete, and calculate... .
[0055] The OCV (Optical Voltage Detection) is performed at 0.1V intervals until the battery can no longer discharge charge. The Rdc impedance data corresponding to each OCV voltage is then compiled into an Rdc database for the corresponding temperature value. In essence, the number of temperature values tested corresponds to the number of Rdc databases generated.
[0056] Of course, to ensure battery consistency, tests will be conducted on three or more batteries of the same model, and the average value will be used as the battery impedance parameter that needs to be loaded into the final electronic device.
[0057] 2. Design a maximum load scenario as a reference load scenario or model, such as running music at maximum screen brightness and maximum volume combined with the most heavily loaded application. This most heavily loaded application can be a frequently used application on the system platform. The purpose of using the maximum load scenario as the reference load scenario is to ensure that the peak power of any other application combined with screen and volume settings will not exceed that of this model scenario.
[0058] 3. The oscilloscope can obtain the battery's output current Ibat (when the device is powered on) under the heaviest load conditions. ), the battery's peak output current Ipeak. For example... Figure 1D As shown, the height of the pulse waveform within 1ms can be considered as the AC output component Iac of the battery, and the DC output component of the battery... Thus obtain and ratio It's understandable that, when the device is powered on, f and e are greater than 0.
[0059] 4. Set a UVLO voltage. If Vsys falls below this voltage, the system will experience a transient black screen and power loss, triggering system stability issues. To ensure system stability, you can use the following formula: Calculate the corresponding battery voltage Vbat. This ensures the system does not trigger UVLO, and the battery's maximum peak discharge current Ipeak. Therefore, according to the power formula... This allows us to calculate the peak power Pmax that the battery can release under the corresponding Vbat voltage, ensuring that the system does not trigger UVLO.
[0060] It should be noted that, based on system stability requirements, the total power Psys of the system at the corresponding Vbat voltage must be less than the maximum power Pmax that the battery can release.
[0061] 5. Based on the power stability design logic described in 1 to 4 above, the following strategy can be adopted:
[0062] 1) Based on the difference in Rdc impedance at different battery temperatures, the battery Rdc impedance is divided into several ranges. Since the lower the temperature, the higher the Rdc impedance, for each temperature range, the Rdc impedance at the lower temperature is taken as the corresponding algorithm impedance. For example, if the detection temperature range is -10℃ ≤ battery temperature < 0℃, then the Rdc impedance for this temperature range is selected from the battery Rdc data tested at -10℃. The purpose of this is to select the impedance corresponding to the lower limit of the temperature range, so that the difference margin between the system's maximum power Psysmax and the battery's maximum release power Pmax is larger, and the power supply system is more stable.
[0063] 2) Based on the heaviest load scenario, the total system power Psys was measured with CPU / GPU not throttled, backlight at its brightest, and volume at its highest. The minimum battery output voltage LVmin was then calculated using a formula. This formula can be used to... Where Ipeak is the maximum transient output IU detected by the battery, and UVLO is the designed minimum voltage threshold. This indicates the total impedance of the battery.
[0064] 3) Several voltage levels can be set, such as LV0, LV1, LV2, etc. Each voltage level has a system stability safety limit power limit Psafe. Psafe is the maximum power that the battery can release transiently at the current battery output voltage, in order to gradually reduce the operating frequency of the CPU / GPU.
[0065] like Figure 1E As shown:
[0066]
[0067] in, .
[0068] For example, see Figure 1E When the battery is in voltage level LV1, meaning the battery output voltage is greater than or equal to LV1 and less than or equal to LV0, the CPU / GPU operating frequency can be reduced and fixed at a certain upper frequency limit, thus reducing the peak power of the system. As the battery output voltage decreases further, the battery Rdc increases further. At LV2, the CPU / GPU operating frequency can be further reduced and fixed at a new upper frequency limit, and so on.
[0069] It should be noted that in traditional frequency limiting methods, the reference load scenario is the most frequently used and heaviest load scenario. Therefore, it can be ensured that the peak power consumption of commonly used scenarios will not exceed the power consumption value of the reference load scenario because:
[0070] 1) In most applications, the audio volume and screen brightness are not adjusted to the maximum, resulting in a power difference.
[0071] 2) When most applications are used without frequency throttling, the power consumption of the CPU / GPU is lower than that of the reference load scenario, and there is also a power difference here.
[0072] In short, the greater the total power consumption difference between the superimposed screen module, audio, and CPU / GPU, the more stable the system power supply will be.
[0073] However, the above method uses a one-size-fits-all approach. Because the reference load scenario uses the heaviest load scenario, other commonly used scenarios, regardless of how much lower their actual power consumption is compared to the heaviest load scenario, will always use the CPU / GPU frequency at the fixed upper limit of the heaviest load scenario's frequency. Theoretically, under the same load power, other scenarios could run at higher CPU / GPU frequencies. This effectively suppresses the actual performance potential of other scenarios, meaning that most scenarios' performance is not fully utilized, impacting the smoothness of the user experience.
[0074] To address the aforementioned issues, this application provides a power supply circuit, electronic device, and frequency adjustment method. This method adaptively adjusts the operating frequency of the application processor based on application performance to optimize application performance. Simply put, when the CPU / GPU is not frequency-limited, the application's full-performance power consumption characteristic parameters are calculated and saved through data sampling. When the battery's output voltage is within the range triggering a power reduction strategy, the application's full-performance power consumption characteristic parameters are automatically invoked to optimize the CPU / GPU's maximum operating frequency without triggering system power stability (i.e., without triggering undervoltage lockout), thereby improving application smoothness.
[0075] It is understood that "power consumption" and "power consumption" in the embodiments of this application have the same meaning and can be used interchangeably.
[0076] The power supply circuit, electronic equipment, and frequency adjustment method provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0077] This application provides a power supply circuit that can be applied to electronic devices, such as... Figure 2 As shown, the power supply circuit 100 may include: a battery 10, a PMU 11, a processor 12, a speaker 13, a DDIC 14, a backlight assembly 15, a first current sampling circuit 16 and a second current sampling circuit 17, and the PMU 11 is connected to the processor 12, the speaker 13 and the DDIC 14 respectively.
[0078] The first terminal of the PMIC 20 is connected to the second terminal of the PMU 11 and the second terminal of the backlight assembly 15. The second terminal of the PMIC 20 is connected to the first terminal of the battery 10. The third terminal of the PMIC 20 is connected to the first current sampling circuit 16. The fourth terminal of the PMIC 20 is connected to the second current sampling circuit 17. The first current sampling circuit 16 is connected to the second terminal of the battery 10. The second current sampling circuit 17 is connected to the backlight assembly 15.
[0079] Specifically, when the PMIC 20 detects that the output voltage of the battery 10 is less than or equal to the first frequency limiting voltage threshold, the first current sampling circuit 16 acquires the transient output current of the battery 10, and the second current sampling circuit 17 acquires the operating current of the backlight assembly 15. The operating frequency of the application processor 12 is adjusted according to the maximum transient output current of the battery 10, the transient output voltage of the battery 10, the operating current of the backlight assembly 15, the refresh rate of the DDIC 14, the audio playback parameters of the speaker 13, and the full-performance power consumption characteristic parameters of the first application. The first application is the application currently running on the electronic device. The full-performance power consumption characteristic parameters include a first power consumption and a first ratio. The first power consumption is the maximum power consumption of the application processor 12 when the first application is running at full performance, and the first ratio is the ratio of the maximum AC current component and the DC current component of the application processor 12 when the first application is running at full performance.
[0080] In some embodiments of this application, it is assumed that the first ratio is equal to f:e, then And both f and e are greater than 0.
[0081] In some embodiments of this application, the battery can be a silicon anode battery, a graphite battery, or any other battery that may trigger system stability; the embodiments of this application are not limited to this.
[0082] It is understandable that a PMU can be used to provide a stable power supply to the various load modules connected to it. For example, a PMU can provide a stable operating voltage and current to an application processor.
[0083] In some embodiments of this application, the DDIC is used for signal conversion and processing, timing control, and power management of the backlight module, such as managing the current and voltage of the backlight assembly.
[0084] In some embodiments of this application, the backlight assembly may be any of the following: a light-emitting diode (LED) backlight assembly, an organic light-emitting diode (OLED) backlight assembly, an electroluminescent (EL) backlight assembly, etc., and this application does not limit it.
[0085] In some embodiments of this application, the PMIC can detect the battery's output voltage in real time.
[0086] It should be noted that the first current sampling circuit detects multiple transient output currents of the battery, and the maximum current value among these multiple transient output voltages can be used as the maximum transient output voltage of the battery.
[0087] It's understandable that a PMIC can acquire the battery's transient output voltage and use it as the battery's output voltage. Therefore, the battery's output voltage is relatively stable over a short period, meaning it varies little, so the transient output voltage can be directly used as the battery's output voltage. Of course, for greater accuracy, a PMIC can detect multiple transient output voltages from the battery and then calculate the battery's output voltage based on these voltages, such as using the average of multiple transient outputs as the battery's output voltage.
[0088] In some embodiments of this application, the electrical connection between the load and the PMU can be direct or indirect, such as the DDIC being indirectly connected to the PMU, or the processor being directly connected to the PMU.
[0089] In some embodiments of this application, the processor may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an image signal processor (ISP), and a video codec.
[0090] In some embodiments of this application, the first end of the battery is the positive electrode of the battery, and the second end of the battery is the negative electrode of the battery.
[0091] In some embodiments of this application, the first current sampling circuit can detect the transient output current of the battery at a first detection frequency within a first detection duration to obtain a transient output current set.
[0092] In some embodiments of this application, the second current sampling circuit can detect the operating current of the backlight assembly at a second detection frequency within a second detection duration to obtain an operating current set.
[0093] In some embodiments of this application, the first detection frequency may be greater than the second detection frequency.
[0094] For example, the first detection frequency can be set to 2kHz, and continuous sampling can be performed for more than 60 seconds to obtain a set of data. It should be noted that, because it is necessary to sample the peak current pulse value in the millisecond range, based on the Nyquist sampling theorem, to reconstruct a continuous-time signal with as little distortion as possible, the sampling rate must be at least twice the highest frequency of the signal.
[0095] In some embodiments of this application, because the fluctuation of the operating current of the backlight component is very small, the second sampling frequency can be set low, such as 1kHz. This can optimize the sampling power consumption, because the higher the sampling rate, the higher the power consumption of the second current sampling circuit during the sampling process.
[0096] It should be noted that for other descriptions of the DDIC refresh rate, speaker audio playback parameters, and full-performance power consumption characteristics of the first application, please refer to the relevant descriptions in the following method embodiments. To avoid repetition, they will not be repeated here.
[0097] In some embodiments of this application, the operating frequency of the processor can be adjusted by the CPU, PMIC in the electronic device, etc., and this application does not limit it.
[0098] For example, the CPU can adjust the operating frequency of the CPU and / or GPU based on the transient output current of the battery, the transient output voltage of the battery, the operating current of the backlight assembly, the refresh rate of the DDIC, the audio playback parameters of the speaker, and the full-performance power consumption characteristics of the first application.
[0099] In some embodiments of this application, combined with Figure 2 ,like Figure 3 As shown, the PMIC20 may include a first ammeter 162, a second ammeter 172, and a voltmeter 19.
[0100] The first current sampling circuit 16 may include a first current detection resistor 161, the first end of which is connected to the second end of the battery 10, and the second end of which is grounded; the first end of the first ammeter 162 is connected to the first end of the first current detection resistor 161, and the second end of the first ammeter 162 is connected to the second end of the first current detection resistor 161.
[0101] The second current sampling circuit 17 may include a second current detection resistor 171, the first end of which is connected to the backlight assembly 15, and the second end of which is connected to the first end of the PMIC; the first end of the second ammeter 172 is connected to the first end of the second current detection resistor 171, and the second end of the second ammeter 172 is connected to the second end of the first current detection resistor 161.
[0102] The voltmeter 19 is connected to the first end of the battery 10.
[0103] It is understandable that since the second terminal of the battery is connected to the first current sensing resistor, it is equivalent to the first current sensing resistor being in series with the battery. Therefore, the current across the first current sensing resistor can be used as the battery's output current. Since the first current sensing resistor is connected in parallel with the first ammeter, the PMIC can detect the voltage difference across the first current sensing resistor using the first ammeter, thus obtaining the battery's transient output current. Similarly, since the first terminal of the backlight assembly is connected to the second current sensing resistor, it is equivalent to the second current sensing resistor being in series with the backlight assembly. Therefore, the current across the second current sensing resistor can be used as the backlight assembly's operating current. Thus, the PMIC can detect the voltage difference across the second current sensing resistor using the second ammeter, thereby calculating the backlight assembly's operating current. In this way, since the battery's output current or the backlight assembly's operating current can be detected using a combination of a resistor and an ammeter, the circuit structure for detecting the battery's output current and the backlight assembly's operating current can be simplified.
[0104] In some embodiments of this application, the first current sensing resistor can be any resistor with a small resistance value, such as 1Ω, 2Ω, 0.9Ω, or 1.2Ω.
[0105] In some embodiments of this application, the resistance value of the second current sensing resistor can be any small resistor such as 1Ω, 2Ω, 0.9Ω, or 1.2Ω.
[0106] In some embodiments of this application, the resistance value of the second current sensing resistor and the resistance value of the first current sensing resistor may be the same or different.
[0107] In some embodiments of this application, the first ammeter, the second ammeter, and the voltmeter are integrated in the PMIC, which enables the PMIC to know the status of the battery and loads such as the backlight assembly in a timely manner, and to manage the power supply of the system or load in a timely and reasonable manner based on these statuses.
[0108] It should be noted that since the first ammeter, second ammeter, voltmeter, and temperature detection module are all housed within the PMIC, the PMIC's integration level can be improved. Furthermore, the PMIC can quickly process and analyze the relevant data detected by the first ammeter, second ammeter, and voltmeter, simplifying the data transmission process. This, in turn, can improve the speed at which the electronic device adjusts the processor's operating frequency, ensuring the operational stability of the electronic device.
[0109] Thus, on the one hand, since the transient output current of the battery and the operating current of the backlight assembly can be detected by using the first and second galvanometers in the PMIC in conjunction with the first and second current sensing resistors respectively, the circuit structure for detecting the battery output voltage and the backlight assembly operating current can be simplified, and the process of the PMIC acquiring the battery output voltage and the backlight assembly operating current can be simplified, improving the compactness of the circuit structure. On the other hand, since the battery output voltage can be directly detected by the voltmeter built into the PMIC, the method of acquiring the battery output voltage can be simplified, thereby reducing the power consumption of the electronic device.
[0110] In some embodiments of this application, combined with Figure 3 ,like Figure 4 As shown, the PMIC 20 may also include the temperature detection module 182, and the electronic device 100 may also include a battery temperature detection circuit 18.
[0111] The battery temperature detection circuit 18 may include a thermistor 181, the first end of which is connected to the temperature detection module 182, and the second end of which is grounded.
[0112] In some embodiments of this application, the battery temperature detection circuit can monitor the temperature range of the battery, thereby predicting the battery impedance or impedance changes, and thus predicting whether the electronic device will trigger a transient black screen and power loss.
[0113] In some embodiments of this application, the thermistor can be disposed inside the battery or on the battery surface. Specifically, the thermistor only needs to have contact area with the battery. For example, the first terminal of the thermistor can be connected to the negative terminal of the battery.
[0114] In some embodiments of this application, the temperature detection module is integrated into the PMIC, which enables the PMIC to know the temperature status of the battery in a timely manner and to manage the system or load power supply in a timely and reasonable manner based on the temperature status, so as to adjust the load power consumption of the electronic device.
[0115] Thus, since the battery temperature can be detected by the temperature detection circuit, the impedance change trend of the battery can be predicted based on the temperature range of the battery, and then the output voltage change trend of the battery can be predicted. Based on the output voltage change trend of the battery, the load power consumption can be adjusted in a timely manner to ensure that the transient output voltage of the battery remains higher than the minimum voltage operating threshold of the electronic device, thereby improving the stability of the electronic device.
[0116] In some embodiments of this application, combined with Figure 4 ,like Figure 5As shown, the PMIC 20 may include a switch S1, the first end of which is connected to the first end of the battery 10, and the second end of which is connected to both the first end of the PMU 11 and the first end of the backlight assembly 15. It can be understood that when the switch is closed, the electronic device is powered on, and the system voltage of the electronic device is equal to the output voltage of the battery. .
[0117] Thus, since the first ammeter, second ammeter, voltmeter, and temperature detection module are all housed within the PMIC, the PMIC's integration level can be improved. Furthermore, the PMIC can quickly process and analyze the relevant data detected by the first current sampling circuit, second current sampling circuit, and battery temperature detection circuit, simplifying the data transmission process and thereby improving the response speed to the processor's operating frequency.
[0118] In the electronic device provided in this application embodiment, when the battery output voltage is less than or equal to a first frequency limiting voltage threshold, the maximum transient output current of the battery, the operating current of the backlight component, the refresh rate of the DDIC, and the audio playback parameters of the speaker can be obtained. This allows for targeted adjustment of the application processor's operating frequency based on the backlight component's operating current, the battery's transient output current, the DDIC's refresh rate, the speaker's audio playback parameters, and the full-performance power consumption characteristics of the currently running application. It can be understood that the battery's maximum transient output current, the backlight component's operating current, the DDIC's refresh rate, the speaker's audio playback parameters, and the full-performance power consumption characteristics of the currently running application reflect the actual power consumption of the current operating scenario. That is, this application adjusts the processor's operating frequency based on the actual power consumption of the electronic device's current operating scenario, thereby avoiding undervoltage lockout and maximizing the processor's operating frequency, thus maximizing the operating performance of the electronic device running applications.
[0119] This application also provides an electronic device, which includes... Figures 2 to 4 The power supply circuit shown in any one of the options.
[0120] In some embodiments of this application, such as Figure 5 As shown, the hardware circuit of an electronic device can include two main parts: battery and discharge management circuit, and peripheral and system circuit.
[0121] Among them, such as Figure 5 As shown, the battery and discharge management circuitry may include: a battery, a PMIC, a first current sampling circuit, a second current sampling circuit, a battery temperature detection circuit, and a voltmeter. Peripheral and system circuitry may include: a PMU, a backlight assembly, a processor, a speaker, and a DDIC, etc. For Figure 5For further descriptions, please refer to the relevant descriptions in the above embodiments.
[0122] In some embodiments of this application, such as Figure 5 As shown, the backlight assembly 15 may include a backlight power supply chip 151 and a backlight body 152. The input voltage terminal VIN of the backlight power supply chip 151 is connected to the first terminal of the second current sensing resistor 171. The positive power supply terminal Elvdd of the backlight power supply chip 151 is connected to the positive power supply terminal Vled+ of the backlight body 152. The negative power supply terminal Elvss of the backlight power supply chip 151 is connected to the negative power supply terminal Vled- of the backlight body 152. The control terminal CTL of the backlight power supply chip 151 is connected to the control terminal CTL of the backlight body.
[0123] In some embodiments of this application, such as Figure 5 As shown, the electronic device also includes an audio codec 21 (Coder-Decoder, CODEC) and an audio power amplifier 22 (Power Amplifier, PA). The first end of the audio CODEC is connected to the processor 12 via a first bus, the second end of the audio CODEC 21 is connected to the first end of the audio PA 22, and the second end of the audio PA 22 is connected to the speaker 13.
[0124] Among them, the audio CODEC21 is used to encode audio data, the audio PA is used to amplify the audio data decoded by the audio CODEC, and the speaker is used to play the audio amplified by the audio PA.
[0125] In some embodiments of this application, the first bus may be an I2S bus.
[0126] In some embodiments of this application, the CPU can control the audio CODEC via the I2S bus, and the audio CODEC controls the audio PA to play audio to the speaker.
[0127] In some embodiments of this application, such as Figure 5 As shown, the control terminal CTL of processor 12 is connected to the control terminal CTL of DDIC 14. The CPU can control the DDIC to perform data transmission and refresh rate switching via control signals. Upon receiving control signals from the CPU, such as brightness adjustment commands, DDIC 14 can send signals to the backlight power supply chip 151. The backlight power supply chip can then adjust its output voltage ELvdd / ELvss to change the brightness of the backlight LEDs.
[0128] In some embodiments of this application, the DDIC and the backlight body can constitute a display module.
[0129] In some embodiments of this application, the voltage output terminal of the PMU can be connected to the voltage input terminal of the processor.
[0130] In some embodiments of this application, the PMIC, PMU, and processor are further connected via a second bus. The second bus can be used to transmit data and control signals.
[0131] In some embodiments of this application, such as Figure 5 As shown, the second bus can be the SPMI bus. For example, the PMIC can transmit data such as the battery's output voltage, output current, and temperature to the CPU via the SPMI bus. For example, the CPU can send control signals to the PMIC via the SPMI bus to control the PMIC to adjust the system voltage Vsys.
[0132] Understandable, refer to Figure 5 The electronic device provided in the embodiments of this application, in Figure 1B Based on the circuit architecture shown, the PMIC uses Iadc1 to detect the current sensing resistor 161 connected in series with the battery as a detection circuit for the transient current Ibat. When the electronic device is powered on, Ibat = Isys. Simultaneously, a current sensing resistor 171 is connected in series between the VIN input power terminal of the backlight power supply chip and Vsys, and this resistor 171 is connected to Iadc2 of the PMIC to detect the Iled current of the backlight assembly. The battery's Ibat current is fed to Isys through switch S1. Isys is divided into two paths: one for the backlight assembly and the other for the system power supply PMU (excluding the backlight LEDs), i.e., Ibat = Isys = Ipmu + Iled. Where Ipmu = Ipum_dc + Ipum_ac.
[0133] In the electronic device provided in this application embodiment, since the electronic device can obtain the transient output current of the battery through a first current sampling circuit and the operating current of the backlight component through a second current sampling circuit when the PMIC detects that the battery output voltage is less than or equal to a first frequency limiting voltage threshold, and also read the refresh rate of the DDIC and the audio playback parameters of the speaker, it can specifically adjust the operating frequency of the application processor based on the obtained operating current of the backlight component, transient output current of the battery, refresh rate of the DDIC, audio playback parameters of the speaker, and full-performance power consumption characteristic parameters of the currently running application. It can be understood that the maximum transient output current of the battery, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, and the full-performance power consumption characteristic parameters of the currently running application can reflect the actual power consumption of the current operating scenario. That is, this application adjusts the processor's operating frequency based on the actual power consumption of the electronic device in the current operating scenario, thereby avoiding undervoltage lockout and maximizing the processor's operating frequency, thus maximizing the operating performance of the electronic device running applications.
[0134] This application also provides a method for adjusting the operating frequency, applied to, for example... Figures 2 to 5 The power supply circuit is shown. (As shown) Figure 6 As shown, the operating frequency adjustment method may include the following steps 701 and 702.
[0135] Step 701: When the output voltage of the battery in the electronic device is less than or equal to the frequency limiting voltage threshold, acquire the first information of the electronic device. This first information includes: the operating current of the backlight assembly, the refresh rate of the DDIC, the audio playback parameters of the speaker, and the transient output current of the battery.
[0136] For ease of understanding, please refer to the following: Figures 2 to 5 The rationality of the operating frequency adjustment method provided in the embodiments of this application will be briefly described.
[0137] When electronic devices, such as mobile phones, run applications, their power consumption mainly comes from three sources: the processor, the display screen, and the audio.
[0138] 1. The power consumption of the display screen is mainly divided into the power consumption of the DDIC and the power consumption of the backlight component.
[0139] 1) DDICs typically support refresh rates of 60Hz, 90Hz, or 120Hz, with minimal power consumption fluctuations at each refresh rate. This means that at the same refresh rate, the DDIC's current waveform is essentially DC (Alternating Current), remaining largely unchanged regardless of the application environment. Therefore, it's possible to test the DDIC's power consumption (Pddic) at different refresh rates in advance, allowing you to determine the DDIC's power consumption based on the refresh rate.
[0140] 2) When the brightness remains constant, the power consumption of the backlight component fluctuates very little. However, there are too many dimming levels of the backlight (up to 104 orders of magnitude). Therefore, the current of the backlight component in the actual scene can be collected by the second detection circuit in the electronic device, so as to calculate the actual power consumption of the backlight component.
[0141] 2. Audio power consumption: Audio power consumption is mainly due to the speakers, such as the power consumption of the speaker's SPK. Different scenarios require different audio playback parameters, such as video, games, and / or music playback. Within the same scenario, the volume is typically set to more than 10 levels from mute to maximum. At a fixed volume level, when the speaker is working, the power consumption fluctuation at the power supply end (Vbat) is very small. The current waveform at the speaker's power supply end is basically DC and does not fluctuate significantly. Therefore, the power consumption Pspk relative to Vbat for each volume level under different audio types can be tested in advance and saved to a database. When the system detects that an application is running, the background identifies which type of audio playback parameters the application is using and the current volume level. It can then look up the database table to obtain the current power consumption of the speaker.
[0142] 3. Processor Power Consumption. Taking processors, including CPUs and GPUs, as an example, the load changes randomly and dynamically during CPU / GPU operation. This translates into a current waveform (Vbat) at the power supply end, which includes both millisecond-level alternating current (AC) pulses and DC-like currents lasting longer than milliseconds. In other words, the processor has both AC and DC current components. Furthermore, the processor's power consumption may vary depending on the application being run. Therefore, it's possible to test the processor's maximum power consumption and the ratio of AC to DC current components when each application is running at full performance beforehand. This data can serve as a characteristic parameter for the full-performance power consumption of each application. Thus, when an electronic device is running a particular application, if the battery's output voltage is less than or equal to the frequency-limiting voltage threshold (i.e., within the range triggering a power-reduction strategy), the electronic device can indirectly calculate the processor's actual power consumption based on the corresponding application's full-performance power consumption characteristic parameter and the actual power consumption of the main DC power-consuming components in the electronic device, such as speakers, DDICs, and backlight components. This allows for further determination of how to adjust the processor's operating frequency.
[0143] In some embodiments of this application, the electronic device can obtain the transient output current of the battery, such as Ibat, at a first sampling frequency through a first current sampling circuit, thus obtaining a set of transient output currents of the battery. That is, the first information actually includes a set of transient output currents, which includes the transient output currents of the battery at multiple time points. For example, Figure 7 This is a partial circuit diagram of an electronic device, from Figure 7 It can be seen that the PMIC can collect the voltage across the current sensing resistor R1 within 60 seconds at a sampling rate of 2kHz using the ammeter Iadc1, thereby obtaining the transient output current Ibat of the battery.
[0144] In some embodiments of this application, the electronic device can obtain the operating current of the backlight component through a second current sampling circuit at a second sampling frequency, thereby obtaining a set of operating currents of the backlight component. That is, the first information includes the operating current of the backlight component at multiple time points.
[0145] It is understandable that electronic devices can query the current refresh rate of the DDIC and the audio playback parameters currently being called by the speaker.
[0146] In some embodiments of this application, audio playback parameters may include: audio parameter type, loudness, or volume.
[0147] In some embodiments of this application, the battery output voltage can be the transient output voltage of the battery detected by a voltmeter, or determined based on the battery's maximum transient output current and battery impedance. The process of determining the output voltage of the electromagnetic converter based on the battery's maximum transient output current and battery impedance will be described in step 83 below, and will not be repeated here to avoid repetition.
[0148] In some embodiments of this application, the electronic device can acquire the transient output voltage of the battery using a voltmeter.
[0149] Step 702: The electronic device adjusts the operating frequency of its processor based on the first information and the full-performance power consumption characteristic parameters of the first application.
[0150] Wherein, the first application is the application currently running on the electronic device, and the full-performance power consumption characteristic parameter includes a first power consumption and a first ratio. The first power consumption is the maximum power consumption of the processor when the first application is running at full performance, and the first ratio is the ratio of the maximum AC current component and the DC current component of the processor when the first application is running at full performance.
[0151] In some embodiments of this application, adjusting the processor's operating frequency may include: the electronic device may increase the processor's operating frequency, decrease the processor's operating frequency, or keep the processor's operating frequency unchanged, specifically determined based on the first information and the full-performance power consumption characteristic parameters of the first application.
[0152] In the frequency adjustment method provided in this application embodiment, since the electronic device can obtain the transient output current of the battery through the first current sampling circuit and the operating current of the backlight component through the second current sampling circuit when the PMIC detects that the battery output voltage is less than or equal to the first frequency limiting voltage threshold, and also read the refresh rate of the DDIC and the audio playback parameters of the speaker, it can specifically adjust the operating frequency of the application processor based on the obtained operating current of the backlight component, transient output current of the battery, refresh rate of the DDIC, audio playback parameters of the speaker, and full-performance power consumption characteristic parameters of the currently running application. It can be understood that the maximum transient output current of the battery, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, and the full-performance power consumption characteristic parameters of the currently running application can reflect the actual power consumption of the current operating scenario. That is, this application adjusts the processor's operating frequency based on the actual power consumption of the electronic device in the current operating scenario, thereby avoiding undervoltage lockout and maximizing the processor's operating frequency, thus maximizing the operating performance of the electronic device running applications.
[0153] In some embodiments of this application, step 702 may include steps 702A and 702B.
[0154] Step 702A: The electronic device determines the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device based on the first information and the full-performance power consumption characteristic parameters of the first application.
[0155] Step 702B: The electronic device adjusts the processor's operating frequency based on the full performance power consumption margin of the first application, the total power consumption margin of the electronic device, and the battery's output voltage.
[0156] In some embodiments of this application, the full-performance power consumption margin of the first application is the difference between the first power consumption and the actual power consumption of the processor. The full-performance power consumption margin of the first application can characterize the power consumption increment required for the first application to switch from its current running performance to full-performance operation.
[0157] In some embodiments of this application, the total power consumption margin of the electronic device can reflect the overall power consumption improvement potential of each power consumption entity in the electronic device.
[0158] In some embodiments of this application, the battery output voltage can reflect the possibility or probability of the battery triggering UVLO. If the battery output voltage is high, the transient output voltage of the battery will not be lower than UVLO even if the load power consumption increases. If the battery output voltage is low, the load power consumption may cause the transient output voltage of the battery to be lower than UVLO, thereby causing the electronic device to power off.
[0159] Thus, since the full-performance power consumption margin of the first application can characterize the power consumption margin between the processor's current power consumption and the processor's maximum power consumption when the first application is running at full performance, that is, reflecting the power consumption difference required for the first application to run at full performance; the total power consumption margin of the electronic device can characterize the total power consumption improvement space of the load in the electronic device; and the battery's output voltage can reflect whether the battery will trigger UVLO, the current power consumption of the electronic device can be comprehensively and accurately measured based on the full-performance power consumption margin of the first application, the total power consumption margin of the electronic device, and the battery's output voltage. This allows for a more precise adjustment of the processor's operating frequency to maximize the performance of the first application, such as improving the smoothness of the first application's operation and enhancing the user experience.
[0160] In some embodiments of this application, step 702A may include step 702A1.
[0161] Step 702A1: The electronic device determines the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device based on the first information, the full-performance power consumption characteristic parameters of the first application, and the general power consumption parameters of the electronic device.
[0162] The general power consumption parameters of the electronic device may include: a first correspondence between audio playback parameters and speaker power consumption; a second correspondence between refresh rate and DDIC power consumption; a third correspondence between battery temperature range and battery impedance; the maximum power consumption of the backlight assembly; and a fourth correspondence between the battery output voltage and temperature range in a reference load scenario and the upper limit threshold of the processor. The reference load scenario is: the electronic device running the application with the highest power consumption under the conditions of maximum display brightness of the backlight assembly, maximum refresh rate of the DDIC, and maximum loudness of the speaker.
[0163] It is understandable that the general power consumption parameters of electronic devices can be stored in the electronic devices themselves.
[0164] In some embodiments of this application, the aforementioned first, second, third, and fourth correspondences can be stored in the electronic device as data tables or databases. During use, the power consumption and impedance data corresponding to the first information can be retrieved one-to-one by looking up the table for subsequent calculations. It is understood that the aforementioned data tables are obtained through prior testing and recorded within the electronic device.
[0165] In some embodiments of this application, the maximum power consumption of the backlight component is the power consumption of the backlight component when the brightness is at its maximum.
[0166] In some embodiments of this application, "the battery's output voltage and temperature range in a reference load scenario and the processor's upper limit threshold" can represent the processor's upper limit power consumption in a reference load scenario when the battery's output voltage is specific and its temperature is within a specific temperature range. In other words, in a reference load scenario, when the battery's output voltage is specific and its temperature is within a specific temperature range, the processor's maximum power consumption is achieved without triggering undervoltage lockout. Typically, when the battery is in the same environment, the processor's power consumption should be less than the processor's upper limit threshold corresponding to that environment.
[0167] For example, under a reference load scenario, when the battery output voltage is voltage 01 and the battery temperature range is 02, the upper limit threshold of the processor is the power consumption threshold a. Then, during the use of electronic devices, when the battery output voltage is voltage 01, or is within the voltage range of voltage 01, and the battery temperature range is 02, the processor's operating frequency needs to be less than the power consumption threshold a to ensure that the electronic device does not trigger undervoltage lockout.
[0168] Thus, since the general power consumption parameters of electronic devices include the first correspondence between audio playback parameters and speaker power consumption, the second correspondence between refresh rate and DDIC power consumption, the third correspondence between battery temperature range and battery impedance, the maximum power consumption of backlight components, and the fourth correspondence between battery output voltage and temperature range in reference load scenarios and processor upper limit threshold, electronic devices can quickly and accurately determine the full performance power consumption margin of the first application and the total power consumption margin of the electronic device based on the first information, the full performance power consumption characteristic parameters of the first application, and the general power consumption parameters of the electronic device, thereby improving the response speed and response accuracy of the electronic device.
[0169] The specific methods for determining the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device are explained below.
[0170] I. Specific methods for determining the full performance power consumption margin of the first application.
[0171] In some embodiments of this application, the step 702A1 above, "the electronic device determines the full performance power consumption margin of the first application based on the first information, the full performance power consumption characteristic parameters of the first application, and the general power consumption parameters of the electronic device", may include the following steps 81 to 84.
[0172] Step 81: The electronic device calculates the operating current of the speaker based on the speaker's audio playback parameters and the first correspondence.
[0173] Step 82: The electronic device calculates the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence.
[0174] Step 83: The electronic device calculates the actual power consumption of the processor based on the operating current of the backlight assembly, the operating current of the speaker, the operating current of the DDIC, the maximum transient output current of the battery, and a ratio.
[0175] Step 84: The electronic device determines the difference between the first power consumption and the actual power consumption of the processor as the full-performance power consumption margin of the first application.
[0176] In some embodiments of this application, the electronic device can first determine the actual power consumption of the speaker based on the speaker's audio playback parameters and a first correspondence. Then based on the formula Calculate the operating current of the speaker. .in, This can be the output voltage of the battery.
[0177] Similarly, electronic devices calculate the actual power consumption of the DDIC based on its refresh rate and the second correspondence. Then based on the formula Calculate the operating current of the DDIC .in, This can be the output voltage of the battery.
[0178] In some embodiments of this application, in order to improve accuracy, the electronic device can use a second current sampling circuit to collect the transient operating current of the backlight assembly at a second sampling frequency to obtain a set of transient operating currents of the backlight assembly, and then calculate the average value of the set of transient operating currents to obtain the operating current of the backlight assembly.
[0179] In some embodiments of this application, the maximum transient output current of the battery can be the maximum current value in the above-mentioned transient output current set.
[0180] For example, the electronic device reads the transient output current of the battery at 2kHz through the first current acquisition circuit to obtain a transient output current set, and then filters out the maximum current value Ipeak1 from the transient output current set.
[0181] In this way, the electronic device calculates the speaker's operating current based on the first correspondence and the speaker's audio playback parameters, and calculates the DDIC's operating current based on the DDIC's refresh rate and the second correspondence. This allows for the indirect calculation of the processor's actual power consumption based on the backlight component's operating current, the speaker's operating current, the DDIC's operating current, the battery's maximum transient output current, and a first ratio. This simplifies the process of calculating the processor's actual power consumption and improves calculation accuracy. Furthermore, the electronic device determines the difference between the processor's maximum power consumption during full-performance operation of the first application and the processor's actual power consumption as the full-performance power consumption margin for the first application. This ensures that the full-performance power consumption margin of the first application accurately represents the difference between the processor's current power consumption and the power consumption requirement during full-performance operation of the first application. Thus, the electronic device can more accurately evaluate the processor's current power consumption improvement potential based on the full-performance power consumption margin of the first application and the electronic device's total power consumption margin, thereby more accurately adjusting the processor's operating frequency.
[0182] In some embodiments of this application, step 83 may include steps 83A to 82C.
[0183] Step 83A: The electronic device determines the processor's operating current based on the battery's maximum transient output current, the speaker's operating current, and the DDIC's operating current.
[0184] In some embodiments of this application, the electronic device can determine the processor's operating current using formula (1) based on the battery's maximum transient output current, the speaker's operating current, and the DDIC's operating current. .
[0185] (1)
[0186] in, This indicates the battery's maximum transient output current. You can find it by looking up the table. Indicates the processor's operating current. The operating current of the DDIC can be found in a table. This indicates the operating current of the backlight assembly.
[0187] Step 83B: The electronic device determines the actual AC current component and the actual DC current component of the processor based on the processor's operating current and the first ratio.
[0188] It is understood that the processor's operating current includes an AC current component and a DC current component. Since the first ratio of the processor's maximum AC current component to its DC current component when the first application is running at full performance is already known, the actual AC current component and the actual DC current component of the processor can be determined based on this first ratio and the processor's operating current.
[0189] For example, suppose the first ratio equals , ,and and All are greater than 0, and the processor's operating current is ,So:
[0190] The processor's actual AC current component ;
[0191] The processor's actual DC current component .
[0192] In some embodiments of this application, the processor's operating current includes both DC and AC current components, while the operating currents of other power-consuming components, such as the speaker, DDIC, and backlight assembly, are primarily DC. Therefore, these power-consuming components can also be referred to as DC power-consuming components. The operating current of the DC power-consuming components can be considered constant over a short period. Thus, the AC component of the battery's maximum transient output current can be considered the processor's AC current component, and the DC component of the maximum transient output current, excluding the operating current of the DC power-consuming components, is the processor's DC current component. Therefore, the AC output component of the battery's actual output current can be calculated using formula (2). With DC output component The third ratio.
[0193] (2)
[0194] In formula (2), This indicates the AC output component of the battery. This represents the DC output component of the battery. This represents the alternating current component of the processor. This represents the DC current component of the processor. , , These represent the operating current of the speaker, the operating current of the DDIC, and the operating current of the backlight assembly, respectively. ,and Greater than 0.
[0195] Furthermore, the electronic device can base its operation on the battery's static voltage (OCV) when it is nearing no-load, the battery's maximum transient output current, the third ratio, and the battery's AC impedance. and DC impedance The output voltage of the battery is calculated using formula (3). The battery's Rac and Rdc can be determined by referring to a table based on the battery's temperature range and OCV.
[0196] (3)
[0197] in, It is the battery's maximum transient output current. It is the battery's output voltage.
[0198] It should be noted that electronic devices can measure the battery's quiescent voltage (OCV) using a voltmeter during application switching or periods of user inactivity. The electronic device can then use the most recently measured OCV to calculate the battery's output voltage.
[0199] Step 83C: The electronic device determines the actual power consumption of the processor based on the actual AC current component of the processor, the actual DC current component of the processor, and the output voltage of the battery.
[0200] In some embodiments of this application, the electronic device can calculate the processor's DC power consumption Pdc based on the processor's actual DC current component and the battery's output voltage, and calculate the processor's AC power consumption Pac based on the processor's actual AC current component and the battery's output voltage, thus the processor's actual power consumption is Pdc + Pac. For example, , ;in, These represent the battery's output voltage, the processor's actual DC component, and the processor's actual AC component, respectively.
[0201] Thus, since the electronic device can first calculate the processor's operating current based on the battery's maximum transient output current, the speaker's operating current, and the DDIC's operating current, and then determine the processor's actual AC current component and actual DC current component based on the processor's operating current and the first ratio, the actual power consumption of the processor can be accurately calculated based on the processor's actual AC current component, actual DC current component, and the battery's output voltage.
[0202] II. The process of determining the total power consumption margin of electronic devices
[0203] In some embodiments of this application, the step 702A1 above, "the electronic device determines the total power consumption margin of the electronic device based on the first information, the full-performance power consumption characteristic parameters of the first application, and the general power consumption parameters of the electronic device", may include the following steps 91 to 94.
[0204] Step 91: The electronic device calculates the operating current of the speaker based on the speaker's audio playback parameters and the first correspondence.
[0205] Step 92: The electronic device calculates the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence.
[0206] Step 93: The electronic device calculates the actual power consumption of the processor based on the operating current of the backlight assembly, the operating current of the speaker, the operating current of the DDIC, the maximum transient output current of the battery, and the first ratio.
[0207] Step 94: The electronic device determines the total power consumption margin of the electronic device based on the actual power consumption of the processor, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, the output voltage of the battery, the first correspondence, the second correspondence, the third correspondence, and the fourth correspondence.
[0208] For the description of steps 91 to 93, please refer to the relevant description of steps 81 to 83 in the above embodiments. To avoid repetition, they will not be repeated here. It can be understood that in practical applications, for a first piece of information, the electronic device only needs to calculate the actual power consumption of the processor once, and there is no need to calculate it repeatedly.
[0209] In some embodiments of this application, the electronic device can calculate the power consumption margin of each power consumption subject separately, and then sum these power consumption margins to obtain the total power consumption margin of the electronic device. Alternatively, the electronic device can calculate the total power consumption of the electronic device, and then subtract the reference power consumption of each power consumption subject from the total power consumption to obtain the total power consumption margin of the electronic device. The total power consumption of the electronic device can be the sum of the actual power consumption of each power consumption subject.
[0210] The main components of power consumption differ, and so do the reference power consumption.
[0211] For example, the reference power consumption of the backlight component can be the maximum power consumption of the backlight component.
[0212] For example, the reference power consumption of the speaker is the maximum audio power consumption corresponding to the current audio parameter type of the speaker, that is, the power consumption of the speaker when playing audio of that audio parameter type at maximum loudness. This maximum audio power consumption can be determined by looking up a table based on the current audio parameter type of the speaker and the first correspondence.
[0213] For example, the processor's reference power consumption can be an upper limit threshold corresponding to the battery's output voltage and temperature range in a reference load scenario, such as the first upper limit threshold described below. Alternatively, the processor's reference power consumption can be an upper limit threshold corresponding to the voltage range of the battery's output voltage and temperature range in a reference load scenario.
[0214] For example, the reference power consumption of DDIC is the power consumption of DDIC at its maximum refresh rate, which can also be called the maximum power consumption of DDIC. It can be determined based on the correspondence between the maximum refresh rate and the second refresh rate.
[0215] Thus, since the total power consumption margin of the electronic device can be determined based on the actual power consumption of the processor, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, the output voltage of the battery, the first correspondence, the second correspondence, the third correspondence, and the fourth correspondence, that is, based on the power consumption of the processor, the operating current of the backlight component, the power consumption of the DDIC, the power consumption of the speaker, and the upper limit threshold in the reference load scenario, the total power consumption margin of the electronic device can be comprehensively determined, thus ensuring the accuracy of the total power consumption margin of the electronic device.
[0216] In some embodiments of this application, step 94 may include steps 94A to 94E.
[0217] Step 94A: The electronic device determines the power consumption margin of the backlight component based on the operating current of the backlight component, the output voltage of the battery, and the maximum power consumption of the backlight component.
[0218] Specifically, the electronic device calculates the actual power consumption of the backlight component based on the operating current of the backlight component and the output voltage of the battery using the power consumption formula P=V*I; then, the maximum power consumption of the backlight component is subtracted from the actual power consumption of the backlight component to obtain the power consumption margin of the backlight component.
[0219] It's understandable. You can first control the display screen to show the content at maximum brightness and test the power consumption of the backlight component, and then take the power consumption obtained from the test as the maximum power consumption of the backlight component.
[0220] For example, the power consumption margin of the backlight component, or backlight power consumption margin, can be calculated using the following formula:
[0221]
[0222] in, This indicates the power consumption margin of the backlight component. This indicates the maximum power consumption of the backlight component. This indicates the actual power consumption of the backlight component. Indicates the battery's output voltage. This represents the operating current when the backlight assembly reaches its maximum brightness. It should be noted that in the above formula... For illustration only and The fundamental calculation principle is that this algorithm is not required in the embodiments of this application.
[0223] Step 94B: The electronic device determines the power consumption of the speaker and the maximum audio power consumption corresponding to the audio type of the audio playback parameters based on the speaker's audio playback parameters and the first correspondence, and determines the difference between the maximum audio power consumption and the speaker's power consumption as the speaker's power consumption margin.
[0224] Step 94C: The electronic device determines the power consumption and maximum power consumption of the DDIC based on the refresh rate of the DDIC and the second correspondence, and determines the difference between the maximum power consumption and the actual power consumption of the DDIC as the power consumption margin of the DDIC.
[0225] For example, based on the audio parameter type in the speaker's audio playback parameters and the first correspondence, the power consumption of the speaker when playing audio of that audio parameter type at maximum loudness is determined, i.e., the maximum audio power consumption Pspk max; and based on the audio parameter type, loudness, and the first correspondence in the speaker's audio playback parameters, the power consumption of the speaker when playing audio of that audio parameter type at that loudness is determined, and this is taken as the actual power consumption Pspk1 of the speaker. Thus, the speaker has a power consumption margin. .
[0226] For the specific process of determining the power consumption margin of a DDIC, please refer to the process of determining the power consumption margin of a speaker. For example, the power margin of a DDIC. , This indicates the maximum power consumption of the DDIC. This indicates the actual power consumption of the DDIC.
[0227] Step 94D: The electronic device determines the first upper limit threshold corresponding to the battery's output voltage and temperature in the reference load scenario based on the battery's output voltage, battery temperature, and the fourth correspondence, and determines the processor's power consumption margin by the difference between the first upper limit threshold and the processor's actual power consumption.
[0228] It is understandable that the upper limit threshold determined by the reference load scenario will also be different depending on the voltage level or voltage range corresponding to the battery's output voltage and the temperature range of the battery.
[0229] For example, the first upper limit threshold can be determined based on the battery's output voltage. See also Figure 1D Assuming the battery's output voltage level is LV1, then Psysmax(LV1) can be determined as the first upper limit threshold.
[0230] For example, the first upper limit threshold can be determined based on the battery's output voltage. See also Figure 1D If we assume that the battery's output voltage level is LV2, then Psysmax(LV2) can be determined as the first upper limit threshold.
[0231] Step 94E: The electronic device determines the total power consumption margin of the electronic device by summing the power consumption margins of the backlight assembly, the speaker, the DDIC, and the processor.
[0232] Thus, since the total power consumption margin of an electronic device is the sum of the power consumption margins of the backlight assembly, the speaker, the DDIC, and the processor, the total power consumption margin of the electronic device can accurately reflect the current power consumption improvement space of the electronic device, thereby accurately reflecting the adjustment space of the processor's operating frequency and improving the accuracy of adjusting the processor's operating frequency.
[0233] The following explains the specific methods for adjusting the processor's operating frequency.
[0234] In some embodiments of this application, step 702B may include any one of steps 702B1 to 702B3 below.
[0235] Step 702B1: If the full-performance power consumption margin of the first application is greater than or equal to the total power consumption margin of the electronic device, and the output voltage of the battery is greater than or equal to the second frequency limiting voltage threshold, then the electronic device will adjust the processor's operating frequency to the frequency corresponding to the full-performance operating state of the application.
[0236] Step 702B2: If the full-performance power consumption margin of the first application is less than the total power consumption margin of the electronic device, and the output voltage of the battery is greater than or equal to the frequency limiting voltage threshold, then the electronic device increases the operating frequency of the processor according to the first frequency increment until the first condition is met.
[0237] Step 702B3: If the full performance power consumption margin of the first application is less than the total power consumption margin of the electronic device, or the output voltage of the battery is less than the frequency limiting voltage threshold, then the electronic device reduces the operating frequency of the processor.
[0238] The second frequency limiting voltage threshold is less than the first frequency limiting voltage threshold. The first condition is that the full-performance power consumption margin of the first application is equal to the total power consumption margin of the electronic device, and the battery output voltage is greater than the frequency limiting voltage threshold.
[0239] In some embodiments of this application, the first frequency increase can be any possible frequency increment, such as 1Hz, 0.5Hz, 2Hz, or 5Hz, depending on the actual usage requirements. This application does not limit the specific frequency increment.
[0240] In some embodiments of this application, the electronic device can determine a first frequency increase amount based on the difference between the battery's output voltage and a second frequency limiting voltage threshold. If the difference is large, a larger frequency increase amount is used; if the difference is small, a smaller frequency increase amount is used.
[0241] It is understandable that when the first condition is met, it means that the battery's output voltage can no longer support a larger load power consumption; otherwise, it may trigger a power system stability problem.
[0242] In some embodiments of this application, if the full-performance power consumption margin of the first application is less than the total power consumption margin of the electronic device, and the output voltage of the battery is greater than or equal to the second frequency limiting voltage threshold, it means that the output voltage of the battery is insufficient to support the power consumption requirements of the first application running at full performance, but there is still some room for improvement. Therefore, the operating frequency of the processor can be gradually increased to make the first application run more smoothly without triggering a power outage.
[0243] Furthermore, to avoid triggering undervoltage lockout due to excessive power consumption during the gradual increase of the processor's operating frequency, which would cause the electronic device to shut down due to power loss, it is advisable to evaluate whether the first condition is met before each frequency increase. If the first condition is met, the frequency adjustment is stopped. If the first condition is not met, the processor's operating frequency is increased further.
[0244] In other words, before increasing the processor's operating frequency by the first increment, the backend predicts whether increasing the operating frequency will cause a power outage or shutdown. If it determines that it will not cause a power outage or shutdown, the frequency is then adjusted to increase the operational stability of the electronic device.
[0245] In some embodiments of this application, the second frequency limiting voltage threshold can be the UVLO+ voltage offset of the electronic device. This voltage offset can be any possible voltage value such as 20mV, 25mV, 30mV, or 15mV.
[0246] In this way, since the electronic device can adaptively adjust the processor's operating frequency based on the relationship between the full performance power consumption margin of the first application and the total power consumption margin of the electronic device, as well as the relationship between the battery's output voltage and the second frequency limiting voltage threshold, it can ensure the stable operation of the electronic device and ensure that the processor operates at the optimal operating frequency without triggering undervoltage lockout, thereby maximizing the performance smoothness of the application.
[0247] In some embodiments of this application, after step 702 above, the operating frequency adjustment method provided in this application may further include steps 703 and 704.
[0248] Step 703: When the electronic device detects that the battery temperature has changed from being in the first temperature range to being in the second temperature range, it reacquires the first information of the electronic device.
[0249] Step 704: The electronic device adjusts the processor's operating frequency based on the newly acquired first information and the full-performance power consumption characteristic parameters of the currently running application.
[0250] In some embodiments of this application, the electronic device may use a battery temperature detection circuit in the electronic device to detect the temperature of the battery.
[0251] In some embodiments of this application, the upper limit temperature value of the first temperature range is less than the lower limit temperature value of the second temperature range, that is, the battery temperature is rising; or, the lower limit temperature value of the first temperature range is greater than the upper limit temperature value of the second temperature range, that is, the battery temperature is decreasing.
[0252] It is understandable that the first temperature range can be the original temperature range of the battery, while the second temperature range is the temperature range of the battery after the temperature change.
[0253] Furthermore, after the temperature range of the battery changes, the electronic device can use the changed temperature range of the battery, the battery output voltage, and the fourth correspondence to redetermine the upper limit threshold of the processor in the reference load scenario.
[0254] In some embodiments of this application, when the PMIC detects that the battery temperature Tbat is greater than the upper limit temperature value of the first temperature unit through the temperature detection circuit, it indicates that the battery impedance is decreasing. This allows the first information to be reacquired so that, based on the new first information and the full-performance power consumption characteristic parameters of the currently running application, it can be evaluated whether the processor's operating frequency can be increased to improve the smoothness of the application's operation.
[0255] When the PMIC detects that the battery temperature Tbat is less than the lower limit of the first temperature range through the temperature detection circuit, indicating an increasing trend in battery impedance, the processor's operating frequency can be reduced using traditional frequency limiting methods. Then, the first information is re-acquired, and the processor's operating frequency is adjusted based on the new first information and the full-performance power consumption characteristics of the currently running application. It can be understood that limiting the processor's operating frequency according to the reference load scenario first can prevent excessive voltage drop due to increased battery impedance, thus avoiding instability issues caused by the battery's output voltage system UVLO voltage critical point.
[0256] In some embodiments of this application, in a scheme that calculates the battery's output voltage based on the battery's internal resistance, if the temperature range of the battery changes, a new temperature range can be used, i.e., the second temperature range can be used to call Rac and Rdc data.
[0257] For further descriptions of steps 703 and 704, please refer to the relevant descriptions of steps 701 and 702 in the above embodiments. To avoid repetition, they will not be repeated here.
[0258] Thus, since changes in the battery's temperature range can characterize changes or trends in the battery's impedance, the electronic device can reacquire the first information after the battery's temperature range changes, and adjust the processor's operating frequency again based on the reacquired first information and the full-performance power consumption characteristic parameters of the currently running application. This ensures that the processor's operating frequency adapts to changes in battery impedance, thereby ensuring that the battery's transient output voltage remains higher than the electronic device's minimum operating voltage threshold, thus ensuring the operational stability of the electronic device.
[0259] In some embodiments of this application, before step 701 above, the operating frequency adjustment method provided in the embodiments of this application may further include the following step 704, and step 701 above may include the following step 701A.
[0260] Step 704: When the battery's output voltage is less than or equal to the frequency limiting voltage threshold, reduce the processor's operating frequency based on the battery's temperature range, the battery's output voltage, and the fourth corresponding relationship.
[0261] Step 701A: The electronic device acquires the first information of the electronic device.
[0262] The fourth correspondence is the relationship between the battery's output voltage and temperature range in the reference load scenario and the processor's upper limit threshold. The upper limit threshold in the reference load scenario is determined based on the reference load scenario itself, which is: the electronic device running the application with the highest power consumption at maximum display brightness, maximum refresh rate, and maximum loudness.
[0263] It is understandable that when the battery's output voltage is less than or equal to the frequency limiting voltage threshold, it indicates that the battery impedance may already be relatively high, meaning that the battery's internal resistance voltage drop is relatively high. Therefore, by first limiting the processor's operating frequency to a lower frequency, and then using the first information and the full power consumption characteristic parameters of the currently running application to adjust the processor's operating frequency, the system power consumption can be reduced to the maximum extent, thereby minimizing the risk of electronic devices shutting down due to power loss. This ensures the operational stability of electronic devices.
[0264] In some embodiments of this application, the electronic device may gradually reduce the processor's operating frequency to below the operating frequency corresponding to a relevant upper limit threshold in a progressive manner to improve the avoidance of application lag. Alternatively, the electronic device may adjust the processor's operating frequency to below the operating frequency corresponding to the relevant upper limit threshold in one step. This application does not limit the embodiments. It should be noted that the relevant upper limit threshold is determined based on the battery's output voltage, the battery's temperature range, and the fourth correspondence.
[0265] For further description of step 704, please refer to the relevant description of the reference load scenario in the above embodiments.
[0266] Thus, when the battery's output voltage is less than or equal to the frequency limiting voltage threshold, the electronic device can first reduce the processor's operating frequency according to the reference load scenario, and then further adjust the processor's operating frequency based on the first information and the full-performance power consumption characteristic parameters of the currently running application. Therefore, it can maximize the protection of the electronic device by keeping it powered on and increase the processor's operating frequency as much as possible to improve the application's operating performance.
[0267] The process of obtaining the full-performance power consumption characteristic parameters of the first application for electronic devices is explained below.
[0268] In some embodiments of this application, before step 701 above, the operating frequency adjustment method provided in this application may further include steps 705 to 711 below.
[0269] Step 705: When the battery charge is greater than the charge threshold, or the battery output voltage is greater than the first frequency limiting voltage threshold, and the first application is running at full performance, the electronic device acquires the transient output current set of the battery, the operating current set of the backlight assembly, the audio playback parameters of the speaker, and the refresh rate of the DDIC.
[0270] Step 706: The electronic device determines the maximum AC output component and DC output component of the battery based on the maximum transient output current in the transient output current set and the derivative of the transient output current collected in each first time period in the transient output current set.
[0271] In some embodiments of this application, the power threshold can be 30%, 25%, 40%, or 50% of the battery power, which can be determined according to actual usage requirements.
[0272] In some embodiments of this application, the first duration can be determined based on the first sampling frequency, and at least the number of samples within the first duration is guaranteed to be greater than or equal to 2.
[0273] For example, 1) the first ammeter Iadc1 is used to sample the battery output current Ibat at a sampling frequency of 2kHz for more than 60 seconds to obtain a database, which is the transient output current set during the parameter learning phase; then the maximum current value Ipeak, i.e., the maximum transient output current, is selected from this database. That is, sampling is performed every 0.5ms, such as sampling once at 0s and then sampling again at 0.5ms.
[0274] 2) Calculate the derivative of the current change *di* collected within a consecutive 0.5 ms interval of the transient output current, and set a threshold *a*, where *a* is a number greater than 0. When the absolute value of the derivative of a current change... At this time, the current fluctuation within the corresponding 0.5ms can be considered small, which is the Idc steady state. When the derivative of a current change... When the current fluctuation is determined to be a certain current fluctuation within the adjacent 0.5ms, it is identified as Iac wave dynamic. The original transient output current with AC state is extracted separately to obtain at least two transient output currents.
[0275] It is understandable that by continuously differentiating the current values of the transient output current set, one can find the largest Iac current among these changing currents.
[0276] 3) From the transient output current extracted based on the derivative of the current change, identify the transient output current that aligns with the detection time of the maximum current value Ipeak. Use this transient output current as the source of the ratio data between the battery's maximum AC output component Iac and DC output component Idc under the first application's full-performance operating scenario. It's understandable that since Rdc is much larger than Rac, and Rac does not change with temperature, a conservative design approach is to select Idc and Iac at the point of maximum transient output current as the source of the ratio parameters. This ensures that the internal resistance drop Vdrop of the battery in all transient states is less than the voltage internal resistance drop calculated from that set of transient output currents.
[0277] In some embodiments of this application, alignment with the Ipeak detection time can be: the Ipeak detection time falls within a time period corresponding to a set of transient output currents.
[0278] For example, such as Figure 8 As shown, the absolute value of the derivative of the transient output current data collected during the time period t1~t2 is greater than the threshold a, and the absolute value of the derivative of the transient output current data collected during the time periods t2 and t3 is also greater than a. Therefore, the electronic device can select all the transient output currents collected between t1 and t3. Then, since the detection time of Ipeak is t2, and both the time periods t1~t2 and t2~t3 include t2, it can be determined that the transient output currents collected during t1~t2 and t2~t3 are aligned with the sampling time of Ipeak. Thus, the electronic device can use the transient output currents collected during t1~t3 as the source of Iac and Idc ratio data for the first application's full-performance operation scenario.
[0279] 4) Assuming the battery's maximum AC output component Iac equals the target current change value dim, the battery's DC output component... Among them, the target current change value . and These are the maximum and minimum current values selected from the transient output currents in 3) above. It can be seen that... This refers to the maximum current value mentioned above, which is the battery's maximum transient output current, Ipeak. It can be understood that the DC current is considered constant over a short period, so the changing portion is considered an AC value. In other words, it can be... Figure 8 The amplitude of the current waveform curve corresponding to the time period t1~t3 is taken as Iac.
[0280] It should be noted that, because the processor in electronic devices has an alternating current component, while the speaker...
[0281] The DDIC and backlight components have little or no AC component, so the maximum output AC component of the battery can be directly considered as the maximum AC current component of the processor.
[0282] Step 707: The electronic device calculates the operating current of the speaker based on the speaker's audio playback parameters and the first correspondence.
[0283] Step 708: The electronic device calculates the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence.
[0284] For a description of steps 707 and 708, please refer to the relevant descriptions in the above embodiments.
[0285] Step 709: The electronic device subtracts the average value of the above-mentioned concentrated current, the speaker's operating current, and the DDIC's operating current from the DC output component of the battery to obtain the second difference.
[0286] It should be noted that the second difference is the DC current component of the processor.
[0287] It is understandable that the DC output component Idc total of the battery includes the DC current component of the processor, as well as the operating current of the DDIC, backlight assembly, and speaker.
[0288] Specifically, the processor's DC current component, the speaker's operating current, and the DDIC's operating current all originate from the PMU. Therefore, the sum of the processor's DC current component, the speaker's operating current, and the DDIC's operating current can be called... ,in, This represents the DC current component of the processor. , , These represent the output current of the PMU, the operating current of the speaker, and the operating current of the DDIC, respectively.
[0289] from Figure 5 or Figure 7 As can be seen from the formula, the DC output component of the battery's output current Ibat is divided into two parts: one part is the backlight assembly's operating current Iled, and the other part is Ipmu_dc. Therefore, it can be calculated according to the formula... Calculate .
[0290] Furthermore, it can be based on the formula The DC current component of the processor is calculated.
[0291] Step 710: The electronic device determines the ratio of the battery's maximum AC output component to the second difference as the first ratio.
[0292] Step 711: The electronic device calculates the first power consumption based on the battery's maximum AC output component, the second difference, and the battery's output voltage.
[0293] It can be understood that since the second difference is the processor's DC current component, and the battery's maximum AC output component is the processor's maximum AC current component, the ratio of the battery's maximum AC output component to the second difference can characterize the ratio of the processor's AC current component to its DC current component; for example, ;in, This represents the maximum AC current component of the processor when the first application is running at full performance. This represents the DC current component of the processor when the first application is running at full performance. ,and , All are greater than 0.
[0294] Similarly, the first power consumption Papp max can be calculated using the power consumption formula based on the second difference, the battery's maximum AC output component, and the battery's output voltage. This can be understood as the sum of the processor's DC and AC power consumption when the first application is running at full performance.
[0295] In some embodiments of this application, the electronic device may use the first ratio and the first power consumption as full-performance power consumption characteristic parameters of the first application and store them in the electronic device so that they can be called by the electronic device when the first application is run.
[0296] It is understandable that for each application in the electronic device, the electronic device can execute steps 705 to 711 respectively to obtain the full-performance power consumption characteristic parameters of each application.
[0297] In some embodiments of this application, for an application in an electronic device, the electronic device executes steps 705 to 711 only once. Specifically, when the electronic device is running an application, if the full-performance power consumption characteristic parameters of the application do not exist in the electronic device, the electronic device executes the above steps 705 to 711; otherwise, the electronic device does not execute the above steps 705 to 711 again, so as to save the power consumption of the electronic device.
[0298] In some embodiments of this application, for applications that already have full-performance power consumption characteristic parameters, the electronic device can re-execute steps 705 to 711 if the application is updated. Application updates may include, but are not limited to: the application adding new features, the application deleting one or more features, the application patching vulnerabilities, updating the application's algorithm, etc. Since the application's full-performance power consumption characteristic parameters can be re-determined after an application update, the validity of the application's full-performance power consumption characteristic parameters can be ensured.
[0299] Thus, since the electronic device can calculate the full-performance power consumption characteristics of the first application in advance by acquiring the transient output current set of the battery, the operating current set of the backlight component, the audio playback parameters of the speaker, and the refresh rate of the DDIC when the battery power is greater than the power threshold, or the battery output voltage is set to be greater than the first frequency limiting voltage threshold, and the first application is running at full performance, it can ensure that when the electronic device runs the first application again, it can accurately adjust the processor's operating frequency based on the pre-calculated full-performance power consumption characteristics of the first application to improve the performance smoothness of the first application.
[0300] The complete process of the operating frequency adjustment method provided in the embodiments of this application will be described by way of example below.
[0301] For example, the operating frequency adjustment method provided in this application includes a self-learning stage of power consumption characteristic parameters and a usage stage of power consumption characteristic parameters. The parameter learning stage can also be referred to as the self-learning stage.
[0302] I. Self-learning stage of full-performance power consumption characteristic parameters
[0303] The following example illustrates how an electronic device can learn the full-performance power consumption characteristics of a first application. The electronic device can learn these characteristics during the operation of the first application.
[0304] It's important to note that electronic devices require a certain amount of power consumption and time to learn full-performance power consumption characteristics, and this learning must be performed when the first application is running at full performance. This means that the processor is not frequency-limited during full-performance operation of the first application, as the parameters such as Iac and Idc calculated through data sampling represent the full-performance state of the first application. Therefore, the self-learning mechanism can be triggered when the battery level is relatively high. For example, it could be set to trigger the self-learning mechanism when the battery level SOC > 30%, typically with an LV0 threshold corresponding to a battery percentage < 20%. Alternatively, the self-learning mechanism can be triggered when the battery output voltage exceeds a first frequency-limiting voltage threshold.
[0305] Typically, when a user first uses the first application, the electronic device can determine whether the battery level is greater than a threshold or whether the battery output voltage is greater than a first frequency limiting voltage, such as 30% of the battery's rated capacity, and determine whether to trigger the learning process of the full-performance power consumption characteristic parameters of the first application based on the determination result. Specifically, such as Figure 9 As shown, the self-learning phase includes steps 120 to 129.
[0306] Step 120: Launch the first application.
[0307] Step 121: Check if the full-performance power consumption characteristic parameters of the first application exist.
[0308] In some embodiments of this application, if there are full-performance power consumption characteristic parameters of the first application, the electronic device can adjust the processor's operating frequency based on these full-performance power consumption characteristic parameters during the operation of the first application. For details, please refer to the description of the frequency adjustment stage in the following embodiments. If there are no full-performance power consumption characteristic parameters of the first application, then step 123 is executed.
[0309] Step 122: Check if the battery level is greater than 30%.
[0310] Specifically, 1) When the electronic device detects that there are no full-power characteristic parameters of the first application in the electronic device and the battery charge is ≤30%, the electronic device will not trigger the learning of the full-power characteristic parameters of the first application during the current operation of the first application. Furthermore, if the battery output voltage is less than LV0 during the operation of the first application, the CPU / GPU operating frequency can be adjusted using traditional frequency limiting methods.
[0311] 2) When the electronic device detects that there are no full-power characteristic parameters of the primary application in the electronic device, and the battery level is greater than 30%, the electronic device can trigger a power consumption characteristic parameter learning mechanism in the background, that is, combining... Figure 5 Perform the following steps:
[0312] Step 123: Use the first ammeter Iadc1 to sample the battery output current Ibat and filter the maximum sampled current Ipeak.
[0313] Specifically, the sampling frequency of the first ammeter Iadc1 can be set to 2kHz and continuously sampled for more than 60 seconds to obtain a set of sampled current data. Then, the maximum sampled current, or the maximum transient output current Ipeak, can be selected from this set of sampled current data.
[0314] This is understandable, because it is necessary to sample the peak current pulse value within the millisecond range. Based on the Nyquist sampling theorem, to restore a continuous-time signal with as little distortion as possible, the sampling rate must be at least twice the highest frequency of the signal.
[0315] Step 124: Differentiate the sampled current of the battery collected in each first time period, and filter out the sampled current including the Iac component.
[0316] Specifically, within a sampling current data period lasting longer than 60 seconds, the derivative of the current change collected within all adjacent 0.5 ms intervals is calculated. A threshold 'a' is set. The absolute value of the derivative of a current change is... At this time, the current fluctuation within the corresponding 0.5ms can be considered small, which is the Idc steady state. When the derivative of a current change... When the current fluctuation is determined to be a certain current fluctuation within the adjacent 0.5ms, which is Iac wave dynamic, the sampling current with AC state is extracted separately to obtain at least two sampling currents.
[0317] Step 125: Determine the battery's maximum AC output component Iac and DC output component Idc_total based on the sampling current that is aligned with the sampling time of the maximum sampling current Ipeak from at least two sampling currents.
[0318] Specifically, 1) From the transient output current extracted based on the derivative of the current change, find the transient output current that is aligned with the Ipeak detection time, and use this transient output current as the source of the ratio data between the battery's maximum AC output component Iac and DC output component Idc under the first application's full-performance operating scenario. It can be understood that since Rdc is much larger than Rac, and Rac does not change with temperature, a conservative design approach is to select Idc and Iac when the battery's transient output current is at its maximum as the source of the ratio parameters. This ensures that the internal resistance drop Vdrop of the battery in all transient states is less than the voltage internal resistance drop calculated from this set of transient output currents.
[0319] 2) Assuming the battery's maximum AC output component Iac equals the target current change value dim, the battery's DC output component... The target current change value dim is equal to Imax and Imin are the maximum and minimum currents in the sampled currents aligned with the Ipeak sampling time, respectively. It can be seen that Imax is the battery's maximum transient output current, Ipeak. It can be understood that the DC current is considered constant over a short period, so the changing portion is considered an AC value.
[0320] It is understandable that the above Iac and Idc_total can also be referred to as the AC output component and DC output component of the battery corresponding to Ipeak.
[0321] It should be noted that, in combination Figure 5 As can be seen, Idc total includes the Idc portion of the CPU / GPU, as well as the operating current of the DDIC and the speaker.
[0322] For example, such as Figure 5 As shown, the power consumption of the CPU / GPU, speakers, and DDIC (Digital Direct Current IC) all comes from the PMU output. Therefore, the total power consumption of the CPU / GPU, speakers, and DDIC (Digital Direct Current IC) is Ipmu_dc. The backlight assembly operates under DC current. Figure 5 The Iled. It is evident that... , ,in, These are the operating current of the speaker, the operating current of the DDIC, and the DC current component of the CPU / GPU.
[0323] Step 126: Look up Iddic and Ispk in the table, and obtain Iled based on the average value of the current values sampled by the second ammeter Iadc2.
[0324] The process of obtaining the operating current of the backlight assembly is explained below.
[0325] For example, A, electronic devices can be accessed via Figure 5 The second ammeter, Iadc2, collects the operating current Iled of the backlight assembly during the second time period. Because Iled has very small fluctuations, the sampling rate can be set low, such as 1kHz, and the average value is obtained by sampling multiple times. It can be understood that setting the sampling frequency of Iadc2 to 1kHz is for power consumption optimization; a higher sampling rate results in higher power consumption for Iadc2 during the sampling process. B. The average value of the operating current collected during the second time period is used to obtain the operating current of the backlight assembly.
[0326] In some embodiments of this application, the first duration and the second duration may be the same.
[0327] In some embodiments of this application, the first ammeters Iadc1 and Iadc2 can sample current within the same time period.
[0328] For example, the process of looking up Iddic and Ispk is as follows:
[0329] Speaker power consumption: The electronic device can determine the type of audio parameters invoked by the currently running application and obtain the current volume level, such as loudness. Then, based on the audio type parameters, loudness, and the first correspondence, it can query the corresponding audio power consumption Pspk. Similarly, DDIC power consumption: The electronic device can determine the currently set screen refresh rate and, based on the second correspondence, query the current DDIC power consumption. Then, the current battery output voltage Vbat is read using a voltmeter Vadc. Thus, based on the power formula... The operating current Ispk of the speaker and the operating current of the DDIC can be calculated. ,in, .
[0330] Step 127: Subtract Iddic, Ispk, and Iled from Idc_total to obtain the DC current component Igpu / cpu_dc of the CPU / GPU.
[0331] It can be understood that the AC current component Igpu / cpu_ac of the CPU / GPU is equal to the AC output component Iac of the battery.
[0332] Step 128: Based on Igpu / cpu_ac and Igpu / cpu_dc, calculate the first ratio of the AC current component and DC current component of the CPU / GPU, as well as the total power consumption Papp_max of the CPU / GPU. It can be understood that this first ratio and Papp_max are the full-performance power consumption characteristic parameters of the first application.
[0333] The current ratio data of the AC current component and the DC current component of the CPU / GPU can be expressed as: , And f1 and e1 are greater than 0.
[0334] It should be noted that the execution order of steps 124 and 127 is not limited.
[0335] Step 129: Save the full-performance power consumption characteristic parameters of the first application.
[0336] In some embodiments of this application, for applications that already have full performance characteristic parameters, the full performance power consumption characteristic parameters are not repeatedly obtained, in order to save power consumption of electronic devices.
[0337] II. Stages of Using Power Consumption Characteristic Parameters
[0338] Exemplarily, when the first application continuously runs until the output voltage of the battery is less than LV0, or the first application runs when the output voltage of the battery is <LV0, the electronic device can limit the working frequency of the CPU / GPU in the traditional frequency limiting manner to ensure that the initial state where the output voltage of the battery is <LV0 does not trigger UVLO, and execute Figure 10 the following steps shown:
[0339] Step 130: During the running of the first application, check whether there is a full-performance power consumption characteristic parameter of the first application.
[0340] When it is detected that there is a full-performance power consumption characteristic parameter of the first application, the electronic device can continue to execute the following steps: Detect the corresponding APP, such as whether the first application has a full-performance power consumption characteristic parameter. When it is detected that there is already a full-performance power consumption characteristic parameter, the following steps can be executed. It can be understood that the following steps can be executed simultaneously:
[0341] Step 131: Obtain the current audio playback parameter of the speaker and the current refresh rate of the DDIC, and determine the current working current Ispk1 of the speaker, the current working current Iddic1 of the DDIC, the current power consumption Pspk1 of the speaker, and the current power consumption Pddic1 of the DDIC according to the obtained audio playback parameter and refresh rate.
[0342] Among them, the audio playback parameter includes: audio type parameter and loudness level.
[0343] Specifically, the electronic device can obtain the current power consumption Pspk1 of the speaker and the current power consumption Pddic1 of the DDIC by looking up a table according to the obtained audio playback parameter and refresh rate. Then, according to , calculate to obtain Iddic1 and Ispk1. It can be understood that Vbat represents the current output voltage of the battery, where Vbat can be obtained through the voltmeter in the PMIC.
[0344] Step 132: The electronic device respectively samples the current of the battery and the backlight component through the first current meter Iadc1 and the second current meter Iadc2 to obtain the sampling current set 1 of the battery and the sampling current set 2 of the backlight component.
[0345] Step 133: The electronic device takes the average value of the sampling current set 2 as the current working current Iled1 of the backlight component, and filters out the maximum sampling current Ipeak1 in the sampling current set 2.
[0346] For example, the operating current of the backlight component can be collected by Iadc2. Since the operating current of the backlight component fluctuates very little in a short period of time, the sampling rate can be set low, such as 1kHz (for the purpose of optimizing power consumption; the higher the sampling rate, the higher the power consumption of Iadc2 during the sampling process). The operating current of the backlight component is obtained by averaging the samples multiple times.
[0347] For example, the battery's output current can be sampled at 2kHz within the first time period using Iadc1 to obtain sampled current set 1, and the maximum current Ipeak1 in sampled current set 1 can be selected as the battery's maximum transient output current.
[0348] Step 134: Based on Pddic1, Iled1, and Pspk1, determine the power consumption margin ΔPddic of DDIC, the power consumption margin ΔPLed of the backlight component, and the power consumption margin ΔPspk of the speaker, respectively.
[0349] Specifically, the difference between Pddic_max and Pddic1 is determined as the power consumption margin ΔPddic of the DDIC, i.e. Pddic_max is pre-stored in the electronic device.
[0350] Furthermore, the power consumption margin ΔPspk of the backlight component will be determined based on the difference between Pspk_max and Pspk1. Among them, Pspk_max is pre-stored in the electronic device and is the power consumption of the speaker when the speaker plays audio with the same audio type parameters as the currently played audio at maximum loudness.
[0351] The power can be calculated using the current operating current Iled1 of the backlight component. Calculate the current power consumption of the backlight component. Then, the difference between the maximum power consumption of the backlight component, Pled_max, and Pled1 is used as... PLed, that is Pled_max is the power consumption of the backlight component measured at the maximum brightness of the display backlight, i.e., the maximum power consumption of the backlight component.
[0352] Step 135: Based on the full-performance power consumption characteristic parameters of the first application, Iled1, Ispk1, Ipeak1 and Iddic1, determine the current power consumption Papp1 of the CPU / GPU, and the second ratio of the current AC current component Iac2 and DC current component Idc2 of the electronic device.
[0353] Specifically, 1) Based on Iled1, Ispk1, Ipeak1, and Iddic1, the formula is used. Determine the current operating current of the CPU / GPU. .
[0354] 2) Based on the first ratio f1:e1 and Determine the current AC current component of the CPU / GPU. and DC current component .in, ; .
[0355] 3) According to , , , , The second ratio of the current AC output component to the DC output component of the battery is calculated. , Both e2 and f2 are greater than 0.
[0356] in, .
[0357] 4) According to , Given the current battery output voltage Vbat, the actual power consumption Papp1 of the CPU / GPU can be calculated using the power formula. It should be noted that this power consumption formula includes both DC and AC power consumption formulas. Alternatively, the power consumption can be calculated using the formula based on the current battery output voltage Vbat and the CPU / GPU operating current Iapp_total1. Calculate the current actual power consumption of the CPU / GPU.
[0358] Understandably, the second ratio can be used to calculate the battery's current internal resistance or impedance.
[0359] Step 136: Take the difference between the first power consumption Papp_max and Papp 1 in the full-performance power consumption characteristic parameters of the first application as the full-power margin of the first application. .
[0360] in, .
[0361] 137. Determine the first upper limit threshold Pcpu / gpu_max corresponding to the current battery temperature and current battery output voltage in the reference load scenario, and determine the difference between Pcpu / gpu_max and the current power consumption Papp1 of the CPU / GPU as the power consumption margin of the CPU / GPU. .
[0362] in, .
[0363] Step 138: Determine if the condition is met. .
[0364] If the condition is met, proceed to step 139; otherwise, proceed to step 140.
[0365] Step 139: Determine if the condition is met. .
[0366] If satisfied, proceed to step 141.
[0367] Step 140: Remove the upper limit on the CPU / GPU operating frequency, allowing the first application to switch to full performance mode.
[0368] Step 141: Increase the operating frequency of the CPU / GPU according to the first frequency increment until the first condition is met.
[0369] It is understandable that during the process of increasing the CPU / GPU operating frequency according to the first frequency increment, the background calculation checks whether the first condition is met. The first condition is: the full-performance power consumption margin of the first application equals the total power consumption margin of the electronic device, and the battery output voltage is greater than the frequency limiting voltage threshold.
[0370] Specifically, in step 141, the electronic device can progressively increase the CPU / GPU frequency, while background synchronous calculations are performed. The value, and Size.
[0371] In a gradual manner ,and At this time, CPU / GPU asymptotic acceleration is stopped, allowing the CPU / GPU upper limit frequency to remain at the current frequency. It should be noted that OCV1 represents the current static voltage of the battery.
[0372] In step 138, the 20mV can be called the VULO margin. The 20mV margin reserved in VULO is to take into account the jitter error of the simulated power supply.
[0373] In some embodiments of this application, after step 141 described above, the operating frequency adjustment method provided in this application may further include the following steps:
[0374] Step 142: Check if the temperature range of the battery has changed.
[0375] If the battery temperature is higher than the upper limit of the battery's original temperature range, proceed to step 143 or step 144. If the battery temperature range has not changed, continue to check whether the battery temperature range has changed.
[0376] The change in temperature range includes any of the following: (1) the battery temperature is greater than the upper limit of the original temperature range, and (2) the battery temperature is less than the upper limit of the original temperature range. If (1) is satisfied, then step 143 is executed; if (2) is satisfied, then step 144 is executed.
[0377] Step 143: Obtain the Rac and Rdc corresponding to the new temperature range of the battery.
[0378] After obtaining the Rac and Rdc corresponding to the new temperature range, repeat steps 131 to 138.
[0379] Step 144: Reduce the CPU / GPU operating frequency according to the upper limit threshold of the processor under the reference load scenario.
[0380] After performing step 144, steps 131 through 138 can be re-executed.
[0381] Specifically, when the PMIC detects that the battery temperature Tbat is greater than the upper limit of the original temperature range through the temperature detection module, it indicates that the battery impedance is decreasing. Rac and Rac directly switch to the battery impedance data corresponding to the new temperature range and call it, and re-evaluate the processor's operating frequency adjustment strategy based on the full performance power consumption characteristic parameters.
[0382] (2) When the detected battery temperature Tbat is less than the lower limit of the original temperature range, it indicates that the battery impedance is increasing. At this time, the upper limit of the CPU and GPU frequency is limited according to the upper limit threshold of the processor under the reference load scenario. If the working frequency of the CPU and GPU is adjusted using the fourth correspondence, it can prevent the battery output voltage from being less than the UVLO voltage critical point due to the increase in battery impedance, thus preventing stability problems.
[0383] Thus, this application provides a method for learning the full-performance power consumption characteristics and adaptive power adjustment of an application, which can further optimize the performance and smoothness of application operation and improve the user experience while ensuring system stability.
[0384] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0385] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0386] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A power supply circuit, applied to electronic equipment, characterized in that, include: The system includes a power management integrated module (PMIC), a battery, a power management unit (PMU), a processor, a speaker, a display driver circuit (DDIC), a backlight assembly, a first current sampling circuit, and a second current sampling circuit, wherein the PMU is connected to the processor, the speaker, and the DDIC, respectively. The first terminal of the PMIC is connected to the second terminal of the PMU and the second terminal of the backlight assembly. The second terminal of the PMIC is connected to the first terminal of the battery. The third terminal of the PMIC is connected to the first current sampling circuit. The fourth terminal of the PMIC is connected to the second current sampling circuit. The first current sampling circuit is connected to the second terminal of the battery. The second current sampling circuit is connected to the backlight assembly. Specifically, when the PMIC detects that the output voltage of the battery is less than or equal to the first frequency limiting voltage threshold, the first current sampling circuit acquires the transient output current of the battery, and the second current sampling circuit acquires the operating current of the backlight assembly; the operating frequency of the processor is adjusted based on the maximum transient output current of the battery, the output voltage of the battery, the operating current of the backlight assembly, the refresh rate of the DDIC, the audio playback parameters of the speaker, and the full-performance power consumption characteristic parameters of the first application; The first application is the application currently running on the electronic device. The full-performance power consumption characteristic parameter includes a first power consumption and a first ratio. The first power consumption is the maximum power consumption of the processor when the first application is running at full performance. The first ratio is the ratio of the maximum AC current component to the DC current component of the processor when the first application is running at full performance.
2. The circuit according to claim 1, characterized in that, The PMIC includes a first ammeter, a second ammeter, and a voltmeter; The first current sampling circuit includes a first current sensing resistor, a first end of which is connected to the second end of the battery, and a second end of which is grounded; a first end of a first ammeter is connected to the first end of the first current sensing resistor, and a second end of the first ammeter is connected to the second end of the first current sensing resistor. The second current sampling circuit includes a second current sensing resistor, a first end of which is connected to the backlight assembly, and a second end of which is connected to the first end of the PMIC; a first end of the second ammeter is connected to the first end of the second current sensing resistor, and a second end of the second ammeter is connected to the second end of the first current sensing resistor. The voltmeter is connected to the first end of the battery.
3. The circuit according to claim 2, characterized in that, The PMIC also includes the temperature detection module, and the electronic device also includes a battery temperature detection circuit. The battery temperature detection circuit includes a thermistor, the first end of which is connected to the temperature detection module, and the second end of which is grounded.
4. An electronic device, characterized in that, Includes the power supply circuit as described in any one of claims 1 to 3.
5. A frequency adjustment method applied to a power supply circuit, characterized in that, The method includes: When the output voltage of the battery in the electronic device is less than or equal to the first frequency limiting voltage threshold, the first information of the electronic device is obtained. The first information includes: the operating current of the backlight component, the refresh rate of the display driving circuit DDIC, the audio playback parameters of the speaker, and the maximum transient output current of the battery. Based on the first information and the full-performance power consumption characteristic parameters of the first application, the operating frequency of the processor of the electronic device is adjusted; Wherein, the first application is the electronic device currently running, and the full-performance power consumption characteristic parameter includes a first power consumption and a first ratio. The first power consumption is the maximum power consumption of the processor when the first application is running at full performance, and the first ratio is the ratio of the maximum AC current component and the DC current component of the processor when the first application is running at full performance.
6. The method according to claim 5, characterized in that, Adjusting the operating frequency of the processor of the electronic device based on the first information and the full-performance power consumption characteristic parameters of the first application includes: Based on the first information and the full-performance power consumption characteristic parameters, determine the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device; The processor's operating frequency is adjusted based on the full performance power consumption margin of the first application, the total power consumption margin of the electronic device, and the output voltage of the battery.
7. The method according to claim 6, characterized in that, The step of adjusting the processor's operating frequency based on the full-performance power consumption margin of the first application, the total power consumption margin of the electronic device, and the output voltage of the battery includes: If the full-performance power consumption margin of the first application is greater than or equal to the total power consumption margin of the electronic device, and the output voltage of the battery is greater than or equal to the second frequency limiting voltage threshold, then the operating frequency of the processor is adjusted to the frequency corresponding to the full-performance operating state of the first application, and the second frequency limiting voltage threshold is less than the first frequency limiting voltage threshold. If the full-performance power consumption margin of the first application is less than the total power consumption margin of the electronic device, and the output voltage of the battery is greater than or equal to the second frequency limiting voltage threshold, then the operating frequency of the processor is increased according to the first frequency increase amount until the first condition is met. The first condition is that the full-performance power consumption margin of the first application is equal to the total power consumption margin of the electronic device, and the output voltage of the battery is greater than the second frequency limiting voltage threshold.
8. The method according to claim 6, characterized in that, The step of determining the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device based on the first information and the full-performance power consumption characteristic parameters includes: Based on the first information, the full-performance power consumption characteristic parameters, and the general power consumption parameters of the electronic device, determine the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device. The general power consumption parameters include: A first correspondence between audio playback parameters and the power consumption of the speaker; A second correspondence between refresh rate and power consumption of the DDIC; The third correspondence between the temperature range of the battery and the battery impedance; The maximum power consumption of the backlight assembly; The fourth correspondence between the output voltage and temperature range of the battery and the upper limit threshold of the processor in the reference load scenario, wherein the reference load scenario is: the electronic device is running the application with the highest power consumption under the maximum display brightness of the backlight component, the maximum refresh rate of the DDIC and the maximum loudness of the speaker.
9. The method according to claim 8, characterized in that, Determining the full-performance power consumption margin of the first application based on the first information, the full-performance power consumption characteristic parameters, and the general power consumption parameters of the electronic device includes: The operating current of the speaker is calculated based on the speaker's audio playback parameters and the first correspondence. Calculate the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence; The actual power consumption of the processor is calculated based on the operating current of the backlight assembly, the operating current of the speaker, the operating current of the DDIC, the maximum transient output current of the battery, and the first ratio. The difference between the first power consumption and the actual power consumption of the processor is determined as the full-performance power consumption margin of the first application.
10. The method according to claim 9, characterized in that, The step of calculating the actual power consumption of the processor based on the operating current of the backlight assembly, the operating current of the speaker, the operating current of the DDIC, the maximum transient output current of the battery, and the first ratio includes: The processor's operating current is determined based on the maximum transient output current, the speaker's operating current, and the DDIC's operating current. Based on the processor's operating current and the first ratio, the actual AC current component and the actual DC current component of the processor are determined; The actual power consumption of the processor is determined based on the actual AC current component, the actual DC current component, and the output voltage of the battery.
11. The method according to claim 10, characterized in that, The step of determining the full-performance power consumption margin of the first application and the total power consumption margin of the electronic device based on the first information, the full-performance power consumption characteristic parameters, and the general power consumption parameters of the electronic device includes: The operating current of the speaker is calculated based on the speaker's audio playback parameters and the first correspondence. Calculate the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence; The actual power consumption of the processor is calculated based on the operating current of the backlight assembly, the operating current of the speaker, the operating current of the DDIC, the maximum transient output current of the battery, and the first ratio. The total power consumption margin of the electronic device is determined based on the actual power consumption of the processor, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, the output voltage of the battery, the first correspondence, the second correspondence, the third correspondence, and the fourth correspondence.
12. The method according to claim 11, characterized in that, The step of determining the total power consumption margin of the electronic device based on the actual power consumption of the processor, the operating current of the backlight component, the refresh rate of the DDIC, the audio playback parameters of the speaker, the output voltage of the battery, the first correspondence, the second correspondence, the third correspondence, and the fourth correspondence includes: The power consumption margin of the backlight component is determined based on the operating current of the backlight component, the output voltage of the battery, and the maximum power consumption of the backlight component. Based on the audio playback parameters of the speaker and the first correspondence, the actual power consumption of the speaker and the maximum audio power consumption corresponding to the audio type of the audio playback parameters are determined, and the difference between the maximum audio power consumption and the actual power consumption of the speaker is determined as the power consumption margin of the speaker. Based on the refresh rate of the DDIC and the second correspondence, the actual power consumption and the maximum power consumption of the DDIC are determined, and the difference between the maximum power consumption and the actual power consumption of the DDIC is determined as the power consumption margin of the DDIC. Based on the battery's output voltage, the battery's temperature, and the fourth correspondence, a first upper limit threshold corresponding to the battery's output voltage and temperature in the reference load scenario is determined, and the difference between the first upper limit threshold and the processor's actual power consumption is used to determine the processor's power consumption margin. The total power consumption margin of the electronic device is determined by summing the power consumption margins of the backlight assembly, the speaker, the DDIC, and the processor.
13. The method according to claim 8, characterized in that, Before acquiring the first information of the electronic device, the method further includes: When the output voltage of the battery is greater than the first frequency limiting voltage threshold and the first application is running at full performance, the transient output current set of the battery, the operating current of the backlight assembly, the audio playback parameters of the speaker, and the refresh rate of the DDIC are obtained. The maximum AC output component and DC output component of the battery are determined based on the maximum transient output current in the transient output current set and the derivative of the transient output current collected in each first time period in the transient output current set. The operating current of the speaker is calculated based on the speaker's audio playback parameters and the first correspondence. Calculate the operating current of the DDIC based on the refresh rate of the DDIC and the second correspondence; The second difference is obtained by subtracting the average value of the transient output current concentrated current, the operating current of the speaker, and the operating current of the DDIC from the DC output component of the battery. The ratio of the maximum AC output component of the battery to the second difference is determined as the first ratio. The first power consumption is calculated based on the battery's maximum AC output component, the second difference, and the battery's output voltage.