Power supply circuit control method, device, electronic device and readable storage medium
By detecting the audio playback mode in electronic devices and adjusting the operating frequency of the charge pump, the problem of noise generated by components in the hardware circuit due to voltage fluctuations is solved, and the stability of the power supply output current and the reduction of noise are achieved.
Patent Information
- Application Number
- CN202210426878.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Components in the hardware circuits of electronic devices are easily affected by voltage fluctuations and make noise, especially when the load power jumps, causing voltage fluctuations.
By detecting the audio playback mode of the electronic device, especially in the earpiece mode, the operating frequency of the charge pump is adjusted to the first target frequency to stabilize the power output current, compensate for the power consumption of the wireless communication unit, and reduce voltage fluctuations in the hardware circuit.
It effectively reduces the voltage fluctuation range in the hardware circuit, avoids components from making noise due to voltage jumps, and improves the transient response capability of the power supply.
Smart Images

Figure CN114759782B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and device for a power supply circuit, an electronic device, and a readable storage medium. Background Art
[0002] With the widespread adoption of terminal technology, the hardware circuit design layout of electronic devices is becoming increasingly compact. The power supply in electronic devices provides the required power to various loads within the electronic devices through the power circuit. The power circuit controls the power output based on the power required by the load.
[0003] However, when users use certain functions of electronic devices, the power required by the load will jump, causing voltage fluctuations in the hardware circuit. The components in the hardware circuit are affected by the voltage fluctuations and are prone to noise. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a control method, device, electronic device and readable storage medium for a power supply circuit, which can solve the problem that components in the hardware circuit are easily affected by voltage fluctuations and easily emit noise.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a power supply circuit. The method is applied to an electronic device, wherein the electronic device includes a power supply circuit, a wireless communication unit, and a power supply, wherein the power supply is connected to the wireless communication unit via a charge pump. The method includes:
[0006] When the wireless communication unit is in a wireless communication state, detecting an audio playback mode of the electronic device;
[0007] When the audio playback mode is the earpiece mode, the operating frequency of the charge pump is adjusted to a first target frequency.
[0008] In a second aspect, an embodiment of the present application provides a device for controlling a power supply circuit, which is applied to an electronic device. The electronic device includes a power supply circuit, a wireless communication unit, and a power supply, wherein the power supply is connected to the wireless communication unit via a charge pump. The device includes:
[0009] a detection module, configured to detect an audio playback mode of the electronic device when the wireless communication unit is in a wireless communication state;
[0010] The processing module is configured to adjust the operating frequency of the charge pump to a first target frequency when the audio playback mode is the earpiece mode.
[0011] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0014] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.
[0015] In an embodiment of the present application, an electronic device includes a power supply circuit, a wireless communication unit and a power supply, and the power supply circuit includes a charge pump connected to the wireless communication unit and the power supply respectively, and the power supply is connected to the wireless communication unit through the charge pump. Therefore, the current output by the power supply can be adjusted by the charge pump. Specifically, when the wireless communication unit is in a wireless communication state, the audio playback mode of the electronic device is detected. When the audio playback mode is the handset mode, the operating frequency of the charge pump is adjusted to the first target frequency, thereby adjusting the output current of the power supply to the output current corresponding to the first target frequency, so that the power consumption of the wireless communication unit can be compensated by the output current corresponding to the first target frequency. In this way, sufficient power can be provided to the load, reducing the voltage fluctuation range in the hardware circuit, thereby preventing the components in the hardware circuit from being affected by the voltage jump and emitting noise. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of the structure of a power supply circuit provided in an embodiment of the present application;
[0017] Figure 2 This is a flow chart of a method for controlling a power supply circuit provided in an embodiment of the present application;
[0018] Figure 3 This is a schematic structural diagram of a control device for a power supply circuit provided in an embodiment of the present application;
[0019] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0020] Figure 5 This is a schematic diagram of the hardware structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0022] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0023] With the widespread adoption of terminal technology, the hardware circuit design layout of electronic devices is becoming increasingly compact. The power supply in electronic devices provides the required power to various loads within the electronic devices through the power circuit. The power circuit controls the power output based on the power required by the load.
[0024] However, when users use certain functions of electronic devices, the power required by the load will jump, causing voltage fluctuations in the hardware circuit. The components in the hardware circuit are affected by the voltage fluctuations and are prone to noise.
[0025] Specifically, the layout of hardware circuits implemented on printed circuit boards (PCBs) in electronic devices is becoming increasingly compact. Components such as capacitors are often packaged within these hardware circuits. When a load is connected to a hardware circuit in an electronic device, if the load is in operation and the power consumption is unstable and subject to sudden changes, this can easily cause the inverse piezoelectric effect, causing components such as capacitors packaged within the hardware circuit to vibrate and generate noise.
[0026] In response to this, an embodiment of the present application provides a control method, device, electronic device and readable storage medium for a power supply circuit. In an embodiment of the present application, the electronic device includes a power supply circuit, a wireless communication unit and a power supply, and the power supply circuit includes a charge pump connected to the wireless communication unit and the power supply, respectively, and the charge pump is used to control the output current of the power supply. Specifically, when the wireless communication unit is in a wireless communication state, the audio playback mode of the electronic device is detected. When the audio playback mode is the handset mode, the operating frequency of the charge pump is adjusted to the first target frequency. By adjusting the output current of the power supply to the output current corresponding to the first target frequency in advance, the power consumption of the wireless communication unit can be compensated. In this way, sufficient power can be provided to the load, and the voltage fluctuation range in the hardware circuit can be reduced, thereby avoiding the components in the hardware circuit from being affected by the voltage jump and emitting noise.
[0027] The control method of the power supply circuit provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0028] Figure 1 This is a schematic diagram of the structure of a power supply circuit provided by an embodiment of the present application. Figure 1 As shown. The power supply circuit 10 includes a charge pump 11 and a wireless communication unit 12. The power supply circuit can be configured in an electronic device, and the power supply in the electronic device can be a built-in power supply or an external power supply. Exemplarily, the electronic device is a device with wireless communication function, such as a mobile phone, a tablet computer, a laptop computer or a PDA. As the functions in electronic devices increase, the performance becomes more and more complex. The charge pump 11 can be connected to the power supply in the electronic device. The charge pump 11 is used to control the output current of the power supply. As a specific example, a capacitor is used as an energy storage element in the charge pump 11 for voltage conversion. Specifically, by adjusting the operating frequency of the charge pump, the control voltage change is achieved, thereby changing the output current. For example, by adjusting the operating frequency of the charge pump, the control voltage is reduced, and the current is increased.
[0029] Figure 2 This is a flow chart of a method for controlling a power supply circuit provided by an embodiment of the present application. The method for controlling a power supply circuit can be used to control Figure 1 The power supply circuit shown in the figure. Figure 1 As shown, the method includes step 210 and step 220.
[0030] Step 210 : When the wireless communication unit is in a wireless communication state, detect the audio playing mode of the electronic device.
[0031] Specifically, components in the hardware circuits of electronic devices can generate noise due to fluctuations in the power required by the load. For example, the load can be a wireless communication unit. The closer the user is to the electronic device, the greater the impact of the noise on the user.
[0032] Optionally, the wireless communication unit being in the wireless communication state means that the wifi function is in an on state.
[0033] In some embodiments, before executing step 210, it may specifically include: detecting whether the wireless communication unit is in a wireless communication state.
[0034] When the wireless communication unit is in a wireless communication state, the electronic device can send or receive data based on the wireless communication unit. Exemplarily, the wireless communication unit may include a Wi-Fi communication module. When the wireless communication unit is in a wireless communication state, the electronic device can use the Wi-Fi communication module to transmit data. The method of transmitting data is, for example, sending data or receiving data. The faster the data transmission rate of the wireless communication module, the higher the power consumption required. By detecting whether the wireless communication unit is in a wireless communication state, it is possible to timely determine whether the operating frequency of the charge pump needs to be adjusted in advance, so that noise can be avoided in advance.
[0035] The audio playback mode of the electronic device, for example, earpiece mode and non-earpiece mode, wherein the non-earpiece mode includes speaker mode, silent mode, etc. It is understood that the electronic device may include an audio playback element, and audio data is played through the audio playback element. For example, the audio playback element may be a receiver, a single speaker, or other audio playback element.
[0036] Optionally, the handset mode refers to a state in which the handset of the electronic device is in use, for example, answering a call through the handset, listening to a voice message through the handset, etc.
[0037] Step 220 : When the electronic device is in the handset mode, adjust the operating frequency of the charge pump to a first target frequency.
[0038] Specifically, when the audio playback mode is the handset mode, it can be understood that the distance between the user and the electronic device is relatively close. Scenarios where the electronic device is in the handset mode include, for example, the user using the electronic device to play voice messages, the user using the electronic device to make calls, etc., which are not listed here one by one.
[0039] The charge pump can cause the power supply to output different currents at different operating frequencies. For example, the higher the charge pump's operating frequency, the greater the power supply's output current. When the charge pump operates at a first target frequency, the power supply can stably output a high current, thereby compensating for the power consumption of the wireless communication unit during wireless communication. The first target frequency can be determined based on the charge pump's preset frequency operating range and the power supply's maximum output current.
[0040] In some embodiments, when the charge pump's operating frequency is at a first target frequency, the power supply can stably output a high current. For example, in an electronic device equipped with a dual-cell power supply and a 2:1 step-down charge pump, the charge pump can directly adjust its operating frequency to a fixed frequency of 450kHz in normal current mode (NCM), allowing the power supply to output a high current in advance.
[0041] According to the embodiment of the present application, by adjusting the operating frequency of the charge pump to the first target frequency, the power supply can provide sufficient output current, thereby improving the transient response capability of the power supply. This provides sufficient power to the load, reduces the voltage fluctuation range in the hardware circuit, and prevents the components in the hardware circuit from generating noise due to voltage jumps.
[0042] In some embodiments, after adjusting the operating frequency of the charge pump to the first target frequency, the audio playback mode of the electronic device may be continuously detected. If the audio playback mode is not in the handset mode, the embodiments of the present application may further include the following steps: when the electronic device is in the handset mode, obtaining the distance between the electronic device and the user; and adjusting the operating frequency of the charge pump to a second target frequency corresponding to the distance.
[0043] When the wireless communication unit is in operation, the components in the electronic device's hardware circuits may generate noise due to the sudden changes in the power required by the load. To reduce the impact of noise on the user when the audio playback component is not in earpiece mode, the charge pump operating frequency can be adjusted based on a pre-set mapping between the charge pump operating frequency and distance. For example, when the distance is smaller, the electronic device is closer to the user, so the charge pump operating frequency can be increased accordingly.
[0044] In some embodiments, a distance sensor may be configured in the electronic device. Optionally, the distance sensor may be a radar sensor, a laser sensor, an acoustic wave sensor, etc., which are not specifically limited here. Based on the distance sensing, the distance between the electronic device and the user can be obtained. Optionally, a posture detection sensor may also be configured in the electronic device. The posture detection sensor may be, for example, a gyroscope or other detection element. Before obtaining the distance between the electronic device and the user, the posture information of the electronic device may also be detected to determine whether the user is using the electronic device. If it is determined that the user is using the electronic device, the distance between the electronic device and the user may be obtained; if the user is not using the electronic device, the acquisition of the distance between the electronic device and the user may be stopped.
[0045] In an embodiment of the present application, upon learning that a user's audio playback component is in non-earpiece mode, the distance between the electronic device and the user is determined to determine whether to adjust the charge pump operating frequency. This facilitates timely adjustment of the charge pump operating frequency to a second target frequency corresponding to the distance. By adjusting the charge pump operating frequency to the second target frequency, the voltage fluctuation range in the hardware circuit can be reduced, thereby preventing components in the hardware circuit from emitting noise due to power jumps, effectively reducing noise and preventing any impact on the user.
[0046] In some embodiments of the present application, adjusting the operating frequency of the charge pump to a second target frequency corresponding to the distance may specifically include: when the distance is greater than or equal to a first threshold, determining the second target frequency based on the power consumption of the wireless communication unit; and adjusting the operating frequency of the charge pump to the second target frequency.
[0047] Specifically, the above distance is the distance between the electronic device and the user. The first threshold value can be pre-set according to actual application requirements, wherein, when the distance is greater than or equal to the first threshold value, it can be considered that the distance between the user and the electronic device is relatively far, and the noise in the hardware circuit has little impact on the user. For example, the first threshold value can be 10 centimeters. Therefore, based on the power consumption of the wireless communication unit, the second target frequency is determined, that is, the charge pump is controlled to enter the adaptive operating frequency adjustment mode. Exemplarily, in the adaptive operating frequency adjustment mode, the electronic device can adjust the operating frequency of the charge pump according to the power consumption of the wireless communication unit in the wireless communication state.
[0048] As a specific example, after the charge pump enters the adaptive operating frequency adjustment mode, the power consumption in the wireless communication unit is obtained. When the power consumption increases, the target output current of the power supply can be determined according to the change in power consumption. Since the charge pump can control the magnitude of the output current of the power supply, the second target frequency of the charge pump can be determined according to the target output current. Continuing to take the configuration of a dual-cell power supply in an electronic device and a charge pump with a 2:1 step-down as an example, when the operating frequency of the charge pump is higher, the output current of the power supply is greater; when the operating frequency of the charge pump is lower, the output current of the power supply is smaller. After the charge pump enters the adaptive operating frequency adjustment mode, after adjusting the operating frequency of the charge pump to the second target frequency, it can meet the power consumption of the wireless communication unit in the wireless communication state.
[0049] In an embodiment of the present application, since the second target frequency can be adaptively determined based on the power consumption of the wireless communication unit, the operating frequency of the charge pump can be reduced when the user is far away from the electronic device, thereby avoiding noise and effectively reducing the power consumption caused by excessive switching frequency.
[0050] In some embodiments of the present application, step 220 may further specifically include: when the distance is less than the first threshold and the distance is greater than or equal to the second threshold, adjusting the operating frequency of the charge pump to a second target frequency, and the second target frequency is equal to the first preset frequency.
[0051] Specifically, the second threshold value can be pre-set according to actual application requirements. Among them, when the distance is less than the first threshold value and the distance is greater than or equal to the second threshold value, it can be considered that the distance between the user and the electronic device is relatively close, and the impact of the noise in the hardware circuit on the user becomes obvious. Exemplarily, the second threshold value can be 5 cm. At this time, the operating frequency of the charge pump can be directly adjusted to a fixed frequency first preset frequency. In this way, the power supply can stably output a larger current, appropriately compensate for the power consumption of the wireless communication unit in the wireless communication state, and avoid the generation of large fluctuating voltages in the circuit, which causes noise in the circuit.
[0052] In some embodiments of the present application, step 220 may further specifically include: when the distance is less than a second threshold, adjusting the operating frequency of the charge pump to a second target frequency, the second target frequency being equal to a second preset frequency, wherein the second preset frequency is greater than the first preset frequency.
[0053] Specifically, when the distance is less than the second threshold, it can be considered that the user is very close to the electronic device. If there is noise in the circuit, it will have a significant impact on the user. At this time, the operating frequency of the charge pump can be directly adjusted to a fixed frequency second preset frequency. When the charge pump operates at the second preset frequency, the power supply can stably output a large current, thereby compensating for the power consumption of the wireless communication unit in the wireless communication state. Taking the electronic device equipped with a dual-cell power supply and a 2:1 step-down charge pump as an example, the second preset frequency can be, for example, 450kHz, so that the power supply can stably output a large current.
[0054] According to the embodiments of the present application, by adjusting the operating frequency of the charge pump to the second preset frequency, the power supply can provide sufficient output current, thereby improving the transient response capability of the power supply. This reduces voltage ripple in the hardware circuit and reduces capacitor noise. Therefore, even if the user is close to the electronic device, the noise can be effectively reduced, minimizing the impact on the user.
[0055] The power circuit control method provided in the embodiment of the present application can be executed by a power circuit control device. In the embodiment of the present application, the power circuit control method performed by the power circuit control device is used as an example to illustrate the power circuit control device provided in the embodiment of the present application.
[0056] Figure 3 This is a schematic diagram of the structure of a control device for a power circuit provided in an embodiment of the present application; the control device 300 for the power circuit is applied to an electronic device, which includes a power circuit, a wireless communication unit and a power supply, wherein the power circuit includes a charge pump, and the power supply is connected to the wireless communication unit via the charge pump. Figure 3 As shown, the control device 300 of the power supply circuit may include: a detection module 310 and a processing module 320 .
[0057] The detection module 310 is configured to detect the audio playback mode of the electronic device when the wireless communication unit is in a wireless communication state;
[0058] The processing module 320 is configured to adjust the operating frequency of the charge pump to a first target frequency when the electronic device is in the handset mode.
[0059] In an embodiment of the present application, an electronic device includes a power supply circuit, a wireless communication unit and a power supply. The power supply circuit includes a charge pump connected to the wireless communication unit and the power supply respectively. The power supply is connected to the wireless communication unit through the charge pump. Therefore, the current output by the power supply can be adjusted by the charge pump. Specifically, when the wireless communication unit is in a wireless communication state, the audio playback mode of the electronic device is detected. When the audio playback mode is the handset mode, by adjusting the operating frequency of the charge pump to the first target frequency, the transient response capability of the power supply is improved because the power supply can provide sufficient output current. This provides sufficient power for the load, reduces the voltage fluctuation range in the hardware circuit, and prevents the components in the hardware circuit from emitting noise due to the influence of voltage jumps.
[0060] In some embodiments, the acquisition module is configured to acquire the distance between the electronic device and the user when the electronic device is in a non-earpiece mode;
[0061] The processing module 320 is further configured to adjust the operating frequency of the charge pump to a second target frequency corresponding to the distance.
[0062] In an embodiment of the present application, upon learning that a user's audio playback component is in non-earpiece mode, the distance between the electronic device and the user is determined to determine whether to adjust the charge pump operating frequency. This facilitates timely adjustment of the charge pump operating frequency to a second target frequency corresponding to the distance. By adjusting the charge pump operating frequency to the second target frequency, the voltage fluctuation range in the hardware circuit can be reduced, thereby preventing components in the hardware circuit from emitting noise due to power jumps, effectively reducing noise and preventing any impact on the user.
[0063] In some embodiments, the processing module 320 is further configured to determine a second target frequency based on power consumption of the wireless communication unit when the distance is greater than or equal to the first threshold;
[0064] The processing module 320 is further configured to adjust the operating frequency of the charge pump to a second target frequency.
[0065] In an embodiment of the present application, since the second target frequency can be adaptively determined based on the power consumption of the wireless communication unit, the operating frequency of the charge pump can be reduced when the user is far away from the electronic device, thereby avoiding noise and effectively reducing the power consumption caused by excessive switching frequency.
[0066] In some embodiments, the processing module 320 is further configured to adjust the operating frequency of the charge pump to a second target frequency when the distance is less than the first threshold and greater than or equal to the second threshold, and the second target frequency is equal to the first preset frequency.
[0067] In this way, the power supply can stably output a larger current, appropriately compensate for the power consumption of the wireless communication unit in the wireless communication state, and avoid large fluctuation voltage in the circuit, which causes noise in the circuit.
[0068] In some embodiments, the processing module 320 is further configured to adjust the operating frequency of the charge pump to a second target frequency when the distance is less than a second threshold, where the second target frequency is equal to a second preset frequency and the second preset frequency is greater than the first preset frequency.
[0069] In this way, the power supply can stably output a larger current, appropriately compensate for the power consumption of the wireless communication unit in the wireless communication state, and avoid large fluctuation voltage in the circuit, which causes noise in the circuit.
[0070] In some embodiments, the detection module 310 is further configured to detect whether the wireless communication unit is in a wireless communication state.
[0071] In this way, by detecting whether the wireless communication unit is in a wireless communication state, it can be timely determined whether the operating frequency of the charge pump needs to be adjusted in advance, thereby avoiding noise.
[0072] The control device of the power supply circuit in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0073] The control device of the power circuit in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0074] The control device of the power supply circuit provided in the embodiment of the present application can achieve Figure 2 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0075] Alternatively, as Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401 and a memory 402, wherein the memory 402 stores a program or instruction that can be run on the processor 401, and when the program or instruction is executed by the processor 401, the various steps of the control method embodiment of the above-mentioned power supply circuit are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0076] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0077] Figure 5 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0078] The electronic device 500 includes but is not limited to components such as a radio frequency unit 501 , a network module 502 , an audio output unit 503 , an input unit 504 , a sensor 505 , a display unit 506 , a user input unit 507 , an interface unit 508 , a memory 509 , and a processor 510 .
[0079] Those skilled in the art will understand that the electronic device 500 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0080] The electronic device includes a power supply circuit, a wireless communication unit and a power supply. The power supply circuit includes a charge pump, and the power supply is connected to the wireless communication unit through the charge pump.
[0081] In the embodiment of the present application, the electronic device further includes:
[0082] The processor 510 is configured to detect an audio playback mode of the electronic device when the wireless communication unit is in a wireless communication state;
[0083] The processor 510 is configured to adjust the operating frequency of the charge pump to a first target frequency when the audio playback mode is the earpiece mode.
[0084] In an embodiment of the present application, an electronic device includes a power supply circuit, a wireless communication unit and a power supply. The power supply circuit includes a charge pump connected to the wireless communication unit and the power supply respectively. The power supply is connected to the wireless communication unit through the charge pump. Therefore, the current output by the power supply can be adjusted by the charge pump. Specifically, when the wireless communication unit is in a wireless communication state, the audio playback mode of the electronic device is detected. When the audio playback mode is the handset mode, by adjusting the operating frequency of the charge pump to the first target frequency, the transient response capability of the power supply is improved because the power supply can provide sufficient output current. This provides sufficient power for the load, reduces the voltage fluctuation range in the hardware circuit, and prevents the components in the hardware circuit from emitting noise due to the influence of voltage jumps.
[0085] In some embodiments, the processor 510 is configured to obtain a distance between the electronic device and the user when the electronic device is in a non-earpiece mode;
[0086] The processor 510 is further configured to adjust the operating frequency of the charge pump to a second target frequency corresponding to the distance.
[0087] In an embodiment of the present application, upon learning that a user's audio playback component is in non-earpiece mode, the distance between the electronic device and the user is determined to determine whether to adjust the charge pump operating frequency. This facilitates timely adjustment of the charge pump operating frequency to a second target frequency corresponding to the distance. By adjusting the charge pump operating frequency to the second target frequency, the voltage fluctuation range in the hardware circuit can be reduced, thereby preventing components in the hardware circuit from emitting noise due to power jumps, effectively reducing noise and preventing any impact on the user.
[0088] In some embodiments, the processor 510 is further configured to determine a second target frequency based on power consumption of the wireless communication unit when the distance is greater than or equal to the first threshold;
[0089] The processor 510 is further configured to adjust the operating frequency of the charge pump to a second target frequency.
[0090] In an embodiment of the present application, since the second target frequency can be adaptively determined based on the power consumption of the wireless communication unit, the operating frequency of the charge pump can be reduced when the user is far away from the electronic device, thereby avoiding noise and effectively reducing the power consumption caused by excessive switching frequency.
[0091] In some embodiments, the processor 510 is further configured to adjust the operating frequency of the charge pump to a second target frequency when the distance is less than the first threshold and greater than or equal to the second threshold, where the second target frequency is equal to the first preset frequency.
[0092] In this way, the power supply can stably output a larger current, appropriately compensate for the power consumption of the wireless communication unit in the wireless communication state, and avoid large fluctuation voltage in the circuit, which causes noise in the circuit.
[0093] In some embodiments, the processor 510 is further configured to adjust the operating frequency of the charge pump to a second target frequency when the distance is less than a second threshold, where the second target frequency is equal to a second preset frequency, and the second preset frequency is greater than the first preset frequency.
[0094] In this way, the power supply can stably output a larger current, appropriately compensate for the power consumption of the wireless communication unit in the wireless communication state, and avoid large fluctuation voltage in the circuit, which causes noise in the circuit.
[0095] In some embodiments, the processor 510 is further configured to detect whether the wireless communication unit is in a wireless communication state.
[0096] In this way, by detecting whether the wireless communication unit is in a wireless communication state, it can be timely determined whether the operating frequency of the charge pump needs to be adjusted in advance, thereby avoiding noise.
[0097] It should be understood that in an embodiment of the present application, the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and at least one of other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.
[0098] The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 509 may include a volatile memory or a non-volatile memory, or the memory 509 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 509 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0099] Processor 510 may include one or more processing units. Optionally, processor 510 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 510.
[0100] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the control method embodiment of the above-mentioned power supply circuit are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0101] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0102] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned power supply circuit control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0103] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0104] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the power supply circuit as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0105] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course 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 the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0107] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for controlling a power supply circuit, characterized in that: The method is applied to an electronic device, the electronic device including a power supply circuit, a wireless communication unit, and a power supply, the power supply circuit including a charge pump, the power supply being connected to the wireless communication unit via the charge pump, the method comprising: When the wireless communication unit is in a wireless communication state, detecting an audio playback mode of the electronic device; When the audio playback mode is the handset mode, adjusting the operating frequency of the charge pump to a first target frequency; The method further comprises: When the audio playback component is in a non-earpiece mode, obtaining a distance between the electronic device and a user; The operating frequency of the charge pump is adjusted to a second target frequency corresponding to the distance.
2. The method according to claim 1, characterized in that The adjusting the operating frequency of the charge pump to a second target frequency corresponding to the distance includes: When the distance is greater than or equal to a first threshold, determining the second target frequency according to power consumption of the wireless communication unit; The operating frequency of the charge pump is adjusted to the second target frequency.
3. The method according to claim 2, characterized in that The adjusting the operating frequency of the charge pump to a second target frequency corresponding to the distance further includes: When the distance is less than the first threshold and the distance is greater than or equal to a second threshold, the operating frequency of the charge pump is adjusted to a second target frequency, and the second target frequency is equal to the first preset frequency.
4. The method according to claim 3, characterized in that The adjusting the operating frequency of the charge pump to a second target frequency corresponding to the distance further includes: When the distance is less than the second threshold, the operating frequency of the charge pump is adjusted to a second target frequency, where the second target frequency is equal to a second preset frequency, wherein the second preset frequency is greater than the first preset frequency.
5. The method according to claim 1, wherein Before detecting the audio playback mode of the electronic device, the method further includes: Detecting whether the wireless communication unit is in a wireless communication state.
6. A device for controlling a power circuit, characterized in that: The device is applied to an electronic device, the electronic device including a power supply circuit, a wireless communication unit, and a power supply, the power supply circuit including a charge pump, the power supply being connected to the wireless communication unit via the charge pump, and the device including: a detection module, configured to detect an audio playback mode of the electronic device when the wireless communication unit is in a wireless communication state; a processing module, configured to adjust the operating frequency of the charge pump to a first target frequency when the audio playback mode is the handset mode; The device further comprises: an acquisition module, configured to acquire a distance between the electronic device and the user when the audio playback component is in a non-earpiece mode; The processing module is further configured to adjust the operating frequency of the charge pump to a second target frequency corresponding to the distance.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the power supply circuit control method according to any one of claims 1 to 5 are implemented.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the power supply circuit control method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Power supply control method and mobile terminal
CN107846287A
Voice call processing method and device, mobile terminal and storage medium
CN117354679A