CN108549476B - Method and terminal for switching SMPS working frequency - Google Patents

Method and terminal for switching SMPS working frequency Download PDF

Info

Publication number
CN108549476B
CN108549476B CN201810215660.XA CN201810215660A CN108549476B CN 108549476 B CN108549476 B CN 108549476B CN 201810215660 A CN201810215660 A CN 201810215660A CN 108549476 B CN108549476 B CN 108549476B
Authority
CN
China
Prior art keywords
smps
frequency
operating frequency
terminal
condition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810215660.XA
Other languages
Chinese (zh)
Other versions
CN108549476A (en
Inventor
肖石文
李占武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810215660.XA priority Critical patent/CN108549476B/en
Publication of CN108549476A publication Critical patent/CN108549476A/en
Application granted granted Critical
Publication of CN108549476B publication Critical patent/CN108549476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a method and a terminal for switching the working frequency of an SMPS (switch-mode switch), which are applied to the technical field of terminals and are used for solving the problem that noise emitted by the terminal can be heard by a user. The method comprises the following steps: determining whether the SMPS generates noise under the condition that the SMPS works under a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a PFM mode, and the load value of the SMPS is less than or equal to a preset threshold value; switching an operating frequency of the SMPS from the first operating frequency to a second operating frequency if the SMPS generates noise; determining whether the SMPS generates noise in case that the operating frequency of the SMPS is the second operating frequency; if the SMPS does not generate noise, the second operating frequency is determined as the operating frequency of the SMPS under the first condition.

Description

Method and terminal for switching SMPS working frequency
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method for switching the working frequency of an SMPS and a terminal.
Background
With the development of terminal technology, as the time of using the terminal by the user is longer and longer every day, the performance requirement of the user on the terminal power supply is more and more important.
In order to minimize power consumption of the terminal in various usage scenarios, a Switching Mode Power Supply (SMPS) is added in a terminal power management mode. The electromagnetic interference (EMI) generated by the SMPS may affect the signal strength received by each receiving function module (e.g., Global Positioning System (GPS), wireless fidelity (WiFi), audio circuit, receiver, speaker, earphone, camera, etc.) of the terminal. Currently, the operating mode of a Boost Or Buck (BOB) circuit in an SMPS may be selected according to the power requirements of the SMPS load, thereby reducing EMI generated by the SMPS and increasing the efficiency of the SMPS.
However, when the BOB circuit in the SMPS is in operation, the filter capacitor in the BOB circuit may generate an inverse voltage effect (i.e., the structure of the filter capacitor is deformed due to the voltage ripple variation, and the filter capacitor generates a vibration sound due to the deformation), and thus, a noise (e.g., a "ziggy" capacitor sound) emitted from the terminal may be heard by the user.
Disclosure of Invention
Embodiments of the present invention provide a method and a terminal for switching an SMPS operating frequency, so as to solve a problem that noise generated by the terminal may be heard by a user.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for switching an operating frequency of an SMPS, where the method includes: determining whether the SMPS generates noise under the condition that the SMPS works under a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a PFM mode, and the load value of the SMPS is less than or equal to a preset threshold value; switching an operating frequency of the SMPS from the first operating frequency to a second operating frequency if the SMPS generates noise; determining whether the SMPS generates noise in case that the operating frequency of the SMPS is the second operating frequency; if the SMPS does not generate noise, the second operating frequency is determined as the operating frequency of the SMPS under the first condition.
In a second aspect, an embodiment of the present invention further provides a terminal, where the terminal includes a determining module and a switching module; the determining module is used for determining whether the SMPS generates noise or not under the condition that the SMPS works in a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a PFM mode, and the load value of the SMPS is smaller than or equal to a preset threshold value; the switching module is used for switching the working frequency of the SMPS from the first working frequency to a second working frequency if the determining module determines that the SMPS generates noise; the determining module is further configured to: determining whether the SMPS generates noise in a case where an operating frequency of the SMPS is the second operating frequency switched by the switching module; if the SMPS does not generate noise, the second operating frequency is determined as the operating frequency of the SMPS under the first condition.
In a third aspect, embodiments of the present invention provide a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the method for switching the operating frequency of an SMPS as described in the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium on which is stored a computer program that, when executed by a processor, implements the steps of the method of SMPS operating frequency switching as described in the first aspect.
In the embodiment of the invention, the terminal determines whether the SMPS generates noise or not under the condition that the SMPS works under a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a PFM mode, and the load value of the SMPS is less than or equal to a preset threshold value; if the SMPS generates noise, the terminal switches the operating frequency of the SMPS from a first operating frequency to a second operating frequency. Further, the terminal determines whether the SMPS generates noise in a case where the operating frequency of the SMPS is the second operating frequency. If the SMPS does not generate noise, the terminal determines the second operating frequency as the operating frequency of the SMPS under the first condition. Since the second operating frequency is determined without generating noise when the SMPS operates, the SMPS of the terminal can prevent the user from hearing noise emitted from the terminal when the SMPS operates again using the second operating frequency determined by the terminal in the first condition.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for switching the operating frequency of the SMPS according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another method for switching the operating frequency of the SMPS according to the embodiment of the invention;
fig. 4 is a schematic structural diagram of a possible terminal according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another possible terminal structure provided in the embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a terminal according to various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the SMPS operating frequency switching method provided by the embodiment of the present invention is described with an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention, in fig. 1, an architecture of an android operating system 100 includes 4 layers, which are an application layer 101, an application framework layer 102, a system runtime layer 103, and a kernel layer 104 (which may be an L inux kernel layer).
The application layer 101 includes various applications (including system applications and third-party applications) in the android operating system 100.
The application framework layer 102 is a framework of the application, and a developer can develop some applications based on the application framework layer 102 while observing the development principle of the framework of the application.
The system runtime layer 103 includes a library 1031 (also referred to as a system library) and an android operating system runtime environment 1032. The library 1031 mainly provides various resources required by the android operating system 100. The android operating system runtime environment 1032 is used to provide a software environment for the android operating system 100.
The kernel layer 104 is an operating system layer of the android operating system 100 and belongs to the lowest layer of a software hierarchy of the android operating system 100, and the kernel layer 104 provides core system services and hardware-related drivers for the android operating system 100 based on L inux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for switching the operating frequency of the SMPS provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for switching the operating frequency of the SMPS may operate based on the android operating system shown in fig. 1. That is, the processor or the terminal device may implement the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention by running the software program in the android operating system.
The method for switching the operating frequency of the SMPS according to the embodiment of the present invention is described below with reference to fig. 2, where fig. 2 is a schematic flow chart of the method for switching the operating frequency of the SMPS according to the embodiment of the present invention, and the steps include S201 to S204:
s201, the terminal determines whether the SMPS generates noise or not under the condition that the SMPS works under a first condition and the working frequency is the first working frequency.
The first condition is that the SMPS operates in a Pulse Frequency Modulation (PFM) mode, and a load value of the SMPS is less than or equal to a preset threshold.
It should be noted that, in the embodiment of the present invention, under the condition that the operating efficiency is the same, the loads with different sizes may operate at different operating frequencies.
In general, the operating frequency of an SMPS, which may also be referred to as a switching frequency, may use multiple frequencies to power a load.
It should be noted that the operation mode of the BOB circuit in the SMPS in the embodiment of the present invention may be regarded as the operation mode of the SMPS, including a PFM mode and a Pulse Width Modulation (PWM) mode. Generally, the SMPS operates under a light load current condition using the PFM mode, and operates under a heavy load current condition using the PWM mode. The PWM/PFM switching type employs PFM control at a light load current and automatically switches to PWM control at a heavy load current. The PFM is a method of frequency modulation of the BOB circuit, and can maintain relatively high operating efficiency of a direct current-direct current (DC-DC) converter in a relatively large current output range, so the PFM mode is also referred to as a "power saving" mode, in which the frequency of a modulation signal varies with the amplitude of an input signal, and the duty ratio of the modulation signal (which refers to the proportion of the energization time to the total time in a pulse cycle) is not changed. The DC-DC converter is a voltage converter, also called a switching power supply or a switching regulator, which effectively outputs a fixed voltage after converting an input voltage, and the type of the DC-DC converter includes an SMPS type. At present, the DC-DC converter is widely used in products such as mobile phones, MP3(moving picture experts group layer-3), digital cameras, and portable media players.
It will be appreciated that in a quieter environment, noise generated by the terminal is readily audible to the user, where the user hears the noise of the terminal including noise emitted by the vibration of the filter capacitor in the BOB circuit.
S202, if the SMPS generates noise, the terminal switches the working frequency of the SMPS from the first working frequency to the second working frequency.
Optionally, in this embodiment of the present invention, the terminal may select any one operating frequency as the second operating frequency. The second operating frequency may be greater than the first operating frequency or less than the first operating frequency, which is not specifically limited in this embodiment of the present invention.
It can be understood that the terminal may select an operating frequency with higher operating efficiency as the second operating frequency according to the level of the operating efficiency.
Generally, different loads of different SMPS have different working efficiencies corresponding to different working frequencies, and when the terminal determines the working frequency of the SMPS, the terminal can select the corresponding working frequency according to the working efficiency of the SMPS.
It will be appreciated that noise generated by the SMPS may propagate through the solid body to a handset (e.g. the handset of a mobile phone) in the terminal, and that when the handset is active, the user may hear the terminal "nuisance" noise; the noise generated by the SMPS may also be propagated through the air, for example, when the terminal is located in a quiet environment and the terminal is close to the user, the user may hear the terminal "nuisance" noise.
And S203, the terminal determines whether the SMPS generates noise or not under the condition that the operating frequency of the SMPS is the second operating frequency.
Generally, the frequency of sound in the human auditory range is between [20Hz, 20KHz ], noise in the embodiment of the present invention refers to sound of a frequency in the human auditory range, and sound of a frequency not in the human auditory range is considered not to be noise.
And S204, if the SMPS does not generate noise, the terminal determines the second working frequency as the working frequency of the SMPS under the first condition.
For example, when the operating frequency of the SMPS is f1, if it is determined that the SMPS generates noise, a frequency f2 having lower operating efficiency than f1 may be re-determined according to the level of the operating efficiency, and the operating frequency of the SMPS may be switched from f1 to f 2; the SMPS determines whether the SMPS generates noise after being powered according to f2, if the SMPS still generates noise when the working frequency of the SMPS is f2, a frequency f3 with lower working efficiency than f2 can be determined again according to the level of the working efficiency, the terminal switches the working frequency of the SMPS from f2 to f3, and after being powered according to f3, whether the SMPS generates noise is determined until the determined working frequency enables the SMPS not to generate noise.
It should be noted that there are many factors in generating noise by the SMPS, including: the material of the capacitor (for example, it is difficult for the tantalum capacitor to generate capacitance sound), the capacity of the capacitor (the larger the capacity of the capacitor is, the smaller the probability of generating capacitance sound), the structure of the capacitor (when the capacitor is a stacked capacitor, the capacitor is likely to vibrate along with the variation of the ripple voltage, so that the SMPS power supply generates sound of the ripple frequency due to the vibration of the capacitor), the number of filter capacitors, and the wiring design of the circuit.
When the load value of the SMPS is less than or equal to a preset threshold (i.e., low power consumption or low load), such as when the terminal is in a standby WiFi mode, a standby GPS mode, or a voice mode, noise generated by the terminal is easily heard by a user, affecting user experience. For example, a user may hear a "nuisance" sound from his terminal when neither party is talking while the user is talking.
In the method for switching the operating frequency of the SMPS provided by the embodiment of the invention, when the SMPS operates in a first condition and the operating frequency is the first operating frequency, the terminal determines whether the SMPS generates noise, wherein the first condition is that the SMPS operates in a PFM mode, and a load value of the SMPS is less than or equal to a preset threshold value; if the SMPS generates noise, the terminal switches the operating frequency of the SMPS from a first operating frequency to a second operating frequency. Further, the terminal determines whether the SMPS generates noise in a case where the operating frequency of the SMPS is the second operating frequency. If the SMPS does not generate noise, the terminal determines the second operating frequency as the operating frequency of the SMPS under the first condition. Since the second operating frequency is determined without generating noise when the SMPS operates, the SMPS of the terminal can prevent the user from hearing noise emitted from the terminal when the SMPS operates again using the second operating frequency determined by the terminal in the first condition.
Optionally, after S203, the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention further includes S205:
and S205, if the SMPS does not generate noise, the terminal determines the first working frequency as the working frequency of the SMPS under the first condition.
Based on the scheme, when the terminal determines that no noise is generated when the operating frequency of the SMPS is the first operating frequency, the first operating frequency is determined as the operating frequency of the SMPS under the first condition, and when the terminal is used later and the first condition is met, the first operating frequency can be continuously used for supplying power to a load of the SMPS.
Specifically, as shown in fig. 3, S201 in the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention may be specifically implemented by S201a-S201 c:
s201a, the terminal acquires the frequency of the capacitive sound generated by the SMPS.
It should be noted that the capacitive sound is emitted by an inverse voltage effect, when the operating frequency of the SMPS is f1, the frequency of the capacitive sound is a multiple of the operating frequency, for example, the frequency of the capacitive sound may be 2f1, 4f1, or 10f1, etc., the frequency of the capacitive sound generated by the capacitor with the same parameter operating in different circuits of the SMPS may be any multiple of the operating frequency of the SMPS, and when the frequency of the capacitive sound is within the range of human hearing, a user may hear a "acquired" sound emitted by the mobile phone in some quieter use scenes.
S201b, if the frequency of the capacitive sound is within the preset interval, the terminal determines that the SMPS generates noise.
Wherein, the frequency in the preset interval is the frequency of the sound in the auditory range of human ears.
Alternatively, the maximum frequency of the preset interval may be 20 kHz.
It can be understood that when the operating frequency of the SMPS selected by the terminal is greater than 20kHz, the frequencies of the generated capacitive sounds are all greater than 20kHz, and when the frequencies of the capacitive sounds are greater than 20kHz, the frequency of the sound generated by the vibration due to the occurrence of the reverse voltage effect of the capacitance is not within the hearing range of the human ear, so that the user can be directly prevented from hearing the capacitive sound emitted by the terminal when the operating frequency of the SMPS is greater than 20 kHz.
S201c, if the frequency of the capacitive sound is not within the preset interval, the terminal determines that the SMPS does not generate noise.
Based on the scheme, the terminal acquires the frequency of capacitive sound generated by the SMPS, determines whether the capacitive sound is sound in an ear hearing range according to the frequency of the capacitive sound acquired by the terminal, and determines that the SMPS generates noise if the frequency of the capacitive sound is within a preset interval; if the frequency of the capacitive sound is not within the preset interval, it is determined that the SMPS does not generate noise, and the user can be prevented from hearing the noise emitted by the terminal.
Optionally, S201a in the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention may be specifically implemented by S201a 1:
s201a1, the terminal acquires the frequency of the capacitive sound through a sound receiving circuit in the terminal.
It is to be understood that the sound receiving circuit may be a receiving circuit of a microphone of the terminal, and may also be another sound receiving circuit in the terminal, which is not specifically limited in this embodiment of the present invention.
Based on the scheme, the frequency of the capacitive sound can be acquired through the sound receiving circuit in the terminal, so that a judgment basis is provided for the terminal to determine whether the frequency of the capacitive sound is in a preset interval, and the terminal can more accurately judge whether the SMPS generates noise.
Optionally, after S204, the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention further includes S206-S207:
s206, the terminal determines the clock frequency according to the second working frequency and a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the second working frequency and the clock frequency.
In general, clock frequency (clock frequency) refers to the fundamental frequency of a clock in a synchronous circuit, measured in hertz (Hz) as "cycles per second". The clock frequency of the SMPS varies with power consumption of various functional modules in the terminal, operation modes of the functional mode load assembly, and different application scenarios, among others.
It should be noted that the preset corresponding relationship is a corresponding relationship between the operating frequency and the clock frequency determined according to the prior art, and generally, after the operating frequency of the power supply is determined, the operating frequency is a multiple of the clock frequency, so that the operating efficiency of the power supply is better. For example, the operating frequency is 25KHz, the operating efficiency of the power supply is better when the clock frequency is 2.5 KHz.
And S207, the terminal controls the SMPS to work according to the second working frequency under the clock frequency.
Based on the scheme, if the SMPS does not generate noise, the terminal determines the second working frequency as the working frequency of the SMPS under the first condition, firstly, the terminal determines the clock frequency according to the second working frequency and the preset corresponding relation, and then the terminal controls the SMPS to work according to the second working frequency under the clock frequency, so that when the SMPS supplies power according to the second working frequency and the clock frequency determined according to the second working frequency, the noise is not generated, and better working efficiency can be guaranteed.
Optionally, before S201, the method for switching the operating frequency of the SMPS provided by the embodiment of the present invention further includes S208 to S209:
s208, the terminal determines that the working mode of the SMPS is a PFM mode, and the load value of the SMPS is smaller than or equal to a preset threshold value; the operating frequency of the SMPS corresponding to the PFM mode is a first operating frequency.
S209, the terminal determines the operating frequency of the SMPS as a first operating frequency according to the PFM mode.
Alternatively, the terminal may select a frequency greater than 20KHz as the first operating frequency.
Typically, at frequencies greater than 20KHz, the capacitance acoustic frequency generated by the reverse voltage effect is also greater than 20 KHz. Therefore, when a frequency greater than 20KHz is selected as the operating frequency of the SMPS circuit, the frequency of the capacitive sound generated by the SMPS is not within the human audible frequency range, and thus the user cannot hear the sound generated by the SMPS.
At present, the SMPS may select a working mode of a BOB circuit of the SMPS according to a power requirement of a load, when the load is a low-power load, the working mode of the SMPS is a PFM, and since a working frequency of the SMPS corresponding to the PFM is relatively high in a [2KHz, 3KHz ] interval, the SMPS may be selected in the [2KHz, 3KHz ] interval when the working frequency of the SMPS is selected, and of course, the working frequency of the SMPS may be selected in other ranges.
Through the above steps, the terminal may determine the operating frequency of the SMPS to be the first operating frequency according to the PFM mode.
For example, assuming that a developer tests whether the operating frequency of the SMPS of one terminal can cause the SMPS to generate capacitive sound, the method can be implemented according to the following steps:
step 1: and setting the load mode of the SMPS to be a low power consumption mode (namely, the load is less than or equal to a preset threshold) in the engineering setting mode of the terminal, and setting the working mode of a BOB circuit in the SMPS to be a PFM mode.
Step 2: selecting the frequency f with the highest working efficiency according to the set load low power consumption mode 11For the operating frequency (i.e., switching frequency) of the BOB circuit of the SMPS in PFM mode, according to f1Selecting
Figure BDA0001598523310000061
f1Is the clock frequency.
It should be noted that, a developer may select a frequency with the highest operating efficiency according to the set load low power consumption mode according to an existing selection method, which is not specifically limited in this embodiment of the present invention.
And step 3: and configuring a BOB circuit of the SMPS to supply power to a load corresponding to the set low power consumption mode in the PFM mode.
And 4, step 4: placing the terminal in a anechoic chamber or an anechoic box, and detecting the working frequency f according to the MIC circuit of the terminal1Whether noise is present.
a) If no noise is detected, f is determined1For setting the optimal operating frequency corresponding to the low power consumption mode,
Figure BDA0001598523310000062
f1an optimum clock frequency corresponding to the set low power mode is stored in the terminal, and when the set low power mode is satisfied by the user using the terminal, the SMPS of the terminal is according to f1And
Figure BDA0001598523310000063
f1the load of the SMPS is powered.
Of course, the developer may detect whether there is audible noise by detecting the frequency of the capacitive sound, or by detecting whether there is audible noise by a microphone (e.g., using a microphone in a sound box to determine whether the noise is audible).
b) Determining the frequency f with the second highest working efficiency if the existence of noise is detected2For the operating frequency of the BOB circuit of the SMPS in PFM mode, according to f2Selecting
Figure BDA0001598523310000064
f2Is the clock frequency.
Continuing to determine the operating frequency f according to step 42The SMPS is free of noise. Until an operating frequency is found that does not produce noise.
Through the steps 1 to 4, the developer can continue to set the load low power consumption mode 2, and select the SMPS operating frequency that does not generate noise for the load low power consumption mode 2. After determining the working frequency of each SMPS which does not generate noise and corresponds to each low-power-consumption mode of different loads respectively, locking the working frequency of the SMPS determined by the corresponding low-power-consumption mode of the loads as the optimal working frequency and the determined clock frequency of the SMPS as the optimal clock frequency, and recording and storing the frequencies in the terminal.
It can be understood that the method for switching the operating frequency of the SMPS provided in the embodiment of the present invention may be applied to any electronic device with an SMPS, and a BOB circuit of the SMPS adopts a PFM mode.
Fig. 4 is a schematic diagram of a possible structure of a terminal according to an embodiment of the present invention, as shown in fig. 4, a terminal 400 includes a determining module 401 and a switching module 402; a determining module 401, configured to determine whether the SMPS generates noise when the SMPS operates in a first condition and an operating frequency of the SMPS is in a first operating mode, where the first condition is that the SMPS operates in a PFM mode and a load value of the SMPS is less than or equal to a preset threshold; a switching module 402 for switching the operating frequency of the SMPS from a first operating frequency to a second operating frequency if the determining module 401 determines that the SMPS generates noise; the determining module 401 is further configured to: determining whether the SMPS generates noise in a case where an operating frequency of the SMPS is a second operating frequency switched by the switching module 402; if the SMPS does not generate noise, the second operating frequency is determined as the operating frequency of the SMPS under the first condition.
Optionally, the determining module 401 is further configured to: after determining whether the SMPS generates noise in a case where the SMPS operates in a first condition and the operating frequency is a first operating frequency, determining the first operating frequency as the operating frequency of the SMPS in the first condition if the SMPS does not generate noise.
Optionally, the determining module 401 is specifically configured to: acquiring the frequency of capacitive sound generated by the SMPS; determining that the SMPS generates noise when the frequency of the capacitive sound is within a preset interval; if the frequency of the capacitive sound is not within the preset interval, determining that the SMPS does not generate noise; wherein, the frequency in the preset interval is the frequency of the sound in the auditory range of human ears.
Optionally, the determining module 401 is specifically configured to: the frequency of the capacitive sound is acquired by a sound receiving circuit in the terminal 400.
Optionally, with reference to fig. 4, as shown in fig. 5, the terminal 400 further includes a control module 403; the determination module 401 is further configured to: after the second working frequency switched by the switching module 402 is determined as the working frequency of the SMPS under the first condition, the clock frequency is determined according to the second working frequency and a preset corresponding relationship, wherein the preset corresponding relationship comprises a corresponding relationship between the second working frequency and the clock frequency; the control module 403 is configured to: the SMPS is controlled to operate at the clock frequency at the second operating frequency switched by the switching module 402.
The terminal 400 provided by the embodiment of the present invention can implement each process implemented by the terminal in the foregoing method embodiments, and is not described here again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the terminal configuration shown in fig. 6 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to determine whether the SMPS generates noise under a first condition that the SMPS operates in a PFM mode and a load value of the SMPS is less than or equal to a preset threshold, where the operating frequency of the SMPS is a first operating frequency; switching the operating frequency of the SMPS from a first operating frequency to a second operating frequency if the SMPS generates noise; determining whether the SMPS generates noise in case that the operating frequency of the SMPS is a second operating frequency; if the SMPS does not generate noise, the second operating frequency is determined as the operating frequency of the SMPS under the first condition.
In the terminal provided by the embodiment of the present invention, when the SMPS operates under a first condition and the operating frequency is the first operating frequency, whether the SMPS generates noise is determined, where the first condition is that the SMPS operates in a PFM mode, and a load value of the SMPS is less than or equal to a preset threshold; the terminal switches an operating frequency of the SMPS from a first operating frequency to a second operating frequency in the event the SMPS generates noise. Further, the terminal determines whether the SMPS generates noise in a case where the operating frequency of the SMPS is the second operating frequency. If the SMPS does not generate noise, the terminal determines the second operating frequency as the operating frequency of the SMPS under the first condition. Since the second operating frequency is determined without generating noise when the SMPS operates, the SMPS of the terminal can prevent the user from hearing noise emitted from the terminal when the SMPS operates again using the second operating frequency determined by the terminal in the first condition.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 602, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 can also provide audio output related to a specific function performed by the terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although in fig. 6, the touch panel 6071 and the display panel 6061 are two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to realize the input and output functions of the terminal, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 600 or may be used to transmit data between the terminal 600 and an external device.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby performing overall monitoring of the terminal. Processor 610 may include one or more processing units; optionally, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to various components, and optionally, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides a terminal, including the processor 610 in fig. 6, the memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the foregoing SMPS operating frequency switching method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing method for switching the SMPS operating frequency, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method of switching an operating frequency of a switched mode power supply, SMPS, the method comprising:
determining whether an SMPS generates noise under the condition that the SMPS works in a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a Pulse Frequency Modulation (PFM) mode, the load value of the SMPS is less than or equal to a preset threshold value, and the noise is sound in the hearing range of human ears;
if the SMPS generates noise, switching the working frequency of the SMPS from the first working frequency to a second working frequency according to the working efficiency of the SMPS;
determining whether the SMPS generates noise in a case where an operating frequency of the SMPS is the second operating frequency;
determining the second operating frequency as the operating frequency of the SMPS under the first condition if the SMPS does not generate noise.
2. The method of claim 1, wherein after determining whether the SMPS generates noise if the SMPS operates in a first condition and an operating frequency is a first operating frequency, the method further comprises:
determining the first operating frequency as an operating frequency of the SMPS under the first condition if the SMPS does not generate noise.
3. The method of claim 1 or 2, wherein the determining whether the SMPS is generating noise comprises:
acquiring a frequency of capacitive sound generated by the SMPS;
if the frequency of the capacitive sound is within a preset interval, determining that the SMPS generates noise;
if the frequency of the capacitive sound is not within the preset interval, determining that the SMPS does not generate noise;
and the frequency in the preset interval is the frequency of sound in the auditory range of human ears.
4. The method of claim 3, wherein the deriving the frequency of the capacitive sound produced by the SMPS comprises:
and acquiring the frequency of the capacitive sound through a sound receiving circuit in the terminal.
5. The method of claim 1, wherein after determining the second operating frequency as the operating frequency of the SMPS under the first condition, the method further comprises:
determining a clock frequency according to the second working frequency and a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the second working frequency and the clock frequency;
and controlling the SMPS to work according to the second working frequency under the clock frequency.
6. A terminal is characterized by comprising a determining module and a switching module;
the determining module is used for determining whether the SMPS generates noise or not under the condition that the SMPS works under a first condition and the working frequency is a first working frequency, wherein the first condition is that the SMPS works in a Pulse Frequency Modulation (PFM) mode, the load value of the SMPS is smaller than or equal to a preset threshold value, and the noise is sound in the hearing range of human ears;
the switching module is configured to switch the operating frequency of the SMPS from the first operating frequency to a second operating frequency according to the operating efficiency of the SMPS if the determining module determines that the SMPS generates noise;
the determining module is further configured to:
determining whether the SMPS generates noise in case that an operating frequency of the SMPS is the second operating frequency switched by the switching module;
determining the second operating frequency as the operating frequency of the SMPS under the first condition if the SMPS does not generate noise.
7. The terminal of claim 6, wherein the determining module is further configured to:
after determining whether the SMPS generates noise in a case where the SMPS operates in a first condition and an operating frequency is a first operating frequency, determining the first operating frequency as the operating frequency of the SMPS in the first condition if the SMPS does not generate noise.
8. The terminal according to claim 6 or 7, wherein the determining module is specifically configured to:
acquiring a frequency of capacitive sound generated by the SMPS;
if the frequency of the capacitive sound is within a preset interval, determining that the SMPS generates noise;
if the frequency of the capacitive sound is not within the preset interval, determining that the SMPS does not generate noise;
and the frequency in the preset interval is the frequency of sound in the auditory range of human ears.
9. The terminal of claim 8, wherein the determining module is specifically configured to:
and acquiring the frequency of the capacitive sound through a sound receiving circuit in the terminal.
10. The terminal of claim 6, further comprising a control module;
the determination module is further to:
after the second working frequency switched by the switching module is determined as the working frequency of the SMPS under the first condition, determining a clock frequency according to the second working frequency and a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the second working frequency and the clock frequency;
the control module is used for:
and controlling the SMPS to work according to the second working frequency switched by the switching module under the clock frequency.
CN201810215660.XA 2018-03-15 2018-03-15 Method and terminal for switching SMPS working frequency Active CN108549476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810215660.XA CN108549476B (en) 2018-03-15 2018-03-15 Method and terminal for switching SMPS working frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810215660.XA CN108549476B (en) 2018-03-15 2018-03-15 Method and terminal for switching SMPS working frequency

Publications (2)

Publication Number Publication Date
CN108549476A CN108549476A (en) 2018-09-18
CN108549476B true CN108549476B (en) 2020-07-10

Family

ID=63516399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810215660.XA Active CN108549476B (en) 2018-03-15 2018-03-15 Method and terminal for switching SMPS working frequency

Country Status (1)

Country Link
CN (1) CN108549476B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064484A (en) * 2007-04-19 2007-10-31 唯冠科技(深圳)有限公司 Electric power apparatus and light modulation method
CN201378798Y (en) * 2008-11-07 2010-01-06 罗吉国 Switching power frequency variable circuit
CN103780996A (en) * 2014-02-20 2014-05-07 深圳市京泉华科技股份有限公司 Circuit for eliminating noise of switching power source on acoustic AM
CN104104222A (en) * 2013-04-03 2014-10-15 富士电机株式会社 Switching power supply device
CN104394247A (en) * 2014-10-31 2015-03-04 小米科技有限责任公司 Power supply circuit and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950000441B1 (en) * 1991-12-31 1995-01-19 주식회사 금성사 Apparatus for switching stand-by power line for tv receiver
CN103166471B (en) * 2011-12-19 2016-09-07 比亚迪股份有限公司 Switching Power Supply and control method thereof and control chip
US9059793B2 (en) * 2013-01-28 2015-06-16 Qualcomm Incorporated Noise shaping for switching circuitry
CN103219900B (en) * 2013-04-17 2016-08-10 上海新进半导体制造有限公司 A kind of eliminate the circuit of PFM switching power supply noise, method and Switching Power Supply
CN107005314B (en) * 2014-09-04 2019-07-30 华盛顿大学 From the mode of operation of the user's driving of single sense point detection electronic equipment
US10637254B2 (en) * 2015-03-19 2020-04-28 Linear Technology Corporation Spread spectrum for switch mode power supplies

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064484A (en) * 2007-04-19 2007-10-31 唯冠科技(深圳)有限公司 Electric power apparatus and light modulation method
CN201378798Y (en) * 2008-11-07 2010-01-06 罗吉国 Switching power frequency variable circuit
CN104104222A (en) * 2013-04-03 2014-10-15 富士电机株式会社 Switching power supply device
CN103780996A (en) * 2014-02-20 2014-05-07 深圳市京泉华科技股份有限公司 Circuit for eliminating noise of switching power source on acoustic AM
CN104394247A (en) * 2014-10-31 2015-03-04 小米科技有限责任公司 Power supply circuit and electronic equipment

Also Published As

Publication number Publication date
CN108549476A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
US11366510B2 (en) Processing method for reducing power consumption and mobile terminal
CN108684029B (en) Bluetooth pairing connection method and system, Bluetooth device and terminal
CN108712566B (en) Voice assistant awakening method and mobile terminal
CN107172671B (en) Channel switching method, device, storage medium and terminal
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN109739394B (en) SAR value processing method and mobile terminal
CN111225315B (en) Audio playing device, audio playing method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
US11375497B2 (en) Power configuration method and terminal
CN111654902A (en) Method and device for reducing interference to mobile terminal GPS signal and mobile terminal
CN112822001B (en) Control method of electronic equipment and electronic equipment
CN107343095B (en) Call volume control method and device, storage medium and terminal
CN112003983A (en) Adaptive vibration system, terminal, method, and computer-readable storage medium
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN108549476B (en) Method and terminal for switching SMPS working frequency
CN105635379B (en) Noise suppression method and device
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN113491097B (en) Voice broadcast control method and device, storage medium and electronic equipment
CN109218504B (en) Sound output method and terminal equipment
CN109217883B (en) Voltage control method and mobile terminal
CN107846287B (en) Power supply control method and mobile terminal
CN108287755A (en) A kind of control method and mobile terminal of application program
CN111245911B (en) Network transmission method and system, storage medium and terminal equipment
CN108808871B (en) Wireless charging receiving end, wireless charging method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant