[go: up one dir, main page]

CN112787607B - Power supply circuit, power supply control method, electronic device and storage medium - Google Patents

Power supply circuit, power supply control method, electronic device and storage medium Download PDF

Info

Publication number
CN112787607B
CN112787607B CN202110011377.7A CN202110011377A CN112787607B CN 112787607 B CN112787607 B CN 112787607B CN 202110011377 A CN202110011377 A CN 202110011377A CN 112787607 B CN112787607 B CN 112787607B
Authority
CN
China
Prior art keywords
voltage
power supply
module
power
amplification module
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
CN202110011377.7A
Other languages
Chinese (zh)
Other versions
CN112787607A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110011377.7A priority Critical patent/CN112787607B/en
Publication of CN112787607A publication Critical patent/CN112787607A/en
Application granted granted Critical
Publication of CN112787607B publication Critical patent/CN112787607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03FAMPLIFIERS
    • H03F3/00Amplifiers with only discharge tubes or only semiconductor devices as amplifying elements
    • H03F3/20Power amplifiers, e.g. Class B amplifiers, Class C amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Amplifiers (AREA)

Abstract

The invention relates to a power supply circuit, a power supply control method, an electronic device and a storage medium. The power supply circuit includes: a power module; the power amplifying module is used for receiving the audio signal and amplifying the audio signal; the switching module is used for switching and conducting a first power supply path or a second power supply path between the power supply module and the power amplification module, the first power supply path is used for outputting a first voltage to the power amplification module, the second power supply path is used for outputting a second voltage to the power amplification module, the first voltage is a power supply voltage directly output by the power supply module, and the second voltage is smaller than the first voltage; the control module is used for acquiring the power supply voltage of the power amplification module and controlling the switch module to conduct the first power supply path or the second power supply path according to the power supply voltage so as to output the target voltage for supplying power to the power amplification module; the target voltage is a voltage having a smaller voltage difference from the power supply voltage among the first voltage and the second voltage. The power supply voltage regulation efficiency of the power amplification module can be improved.

Description

供电电路、供电控制方法、电子设备及存储介质Power supply circuit, power supply control method, electronic device and storage medium

技术领域Technical Field

本发明涉及电子设备技术领域,特别是涉及一种供电电路、供电控制方法、电子设备及存储介质。The present invention relates to the technical field of electronic equipment, and in particular to a power supply circuit, a power supply control method, an electronic device and a storage medium.

背景技术Background technique

音频功率放大模块(PowerAmplifier,PA)是电子设备中音频播放的重要组成部分,音频功率放大模块的主要功能是将音频信号放大,然后输出至扬声器震动发声。The audio power amplifier (PA) module is an important component of audio playback in electronic devices. The main function of the audio power amplifier module is to amplify the audio signal and then output it to the speaker to vibrate and make sound.

目前电子设备中,音频PA单元直接由电子设备的电源电压供电,为了达到音频功率放大模块供电的目标电压,需要对电源输出的电源电压进行调压,其调压压差大,调压效率较低。In current electronic devices, the audio PA unit is directly powered by the power supply voltage of the electronic device. In order to achieve the target voltage of the audio power amplifier module, the power supply voltage output by the power supply needs to be regulated, and the voltage regulation difference is large and the voltage regulation efficiency is low.

发明内容Summary of the invention

本申请实施例提供了一种供电电路、供电控制方法、电子设备及存储介质,可以提高电源为音频PA单元的供电效率。The embodiments of the present application provide a power supply circuit, a power supply control method, an electronic device and a storage medium, which can improve the power supply efficiency of an audio PA unit.

一种供电电路,包括:A power supply circuit, comprising:

电源模块;Power module;

功率放大模块,用于接收音频信号,并对音频信号进行放大处理,以输出放大信号;A power amplifier module, used for receiving an audio signal and amplifying the audio signal to output an amplified signal;

开关模块,分别与所述功率放大模块、所述电源模块连接,用于切换导通所述电源模块与所述功率放大模块之间的第一供电通路或第二供电通路,所述第一供电通路用于向所述功率放大模块输出第一电压,所述第二供电通路用于向所述功率放大模块输出第二电压,所述第一电压为所述电源模块直接输出的电源电压,所述第二电压小于第一电压;a switch module, connected to the power amplifier module and the power supply module respectively, and used for switching on a first power supply path or a second power supply path between the power supply module and the power amplifier module, wherein the first power supply path is used for outputting a first voltage to the power amplifier module, and the second power supply path is used for outputting a second voltage to the power amplifier module, wherein the first voltage is a power supply voltage directly output by the power supply module, and the second voltage is less than the first voltage;

控制模块,分别与所述功率放大模块、所述开关模块连接,用于获取所述功率放大模块的供电电压,并根据所述供电电压,控制所述开关模块导通所述第一供电通路或第二供电通路以输出适用于为所述功率放大模块供电的目标电压;所述目标电压为所述第一电压和所述第二电压中与所述供电电压压差较小的电压。A control module is connected to the power amplifier module and the switch module respectively, and is used to obtain the power supply voltage of the power amplifier module, and according to the supply voltage, control the switch module to turn on the first power supply path or the second power supply path to output a target voltage suitable for powering the power amplifier module; the target voltage is the voltage of the first voltage and the second voltage that has a smaller voltage difference with the supply voltage.

一种供电控制方法,包括:A power supply control method, comprising:

获取功率放大模块的供电电压;所述功率放大模块用于对音频信号进行放大处理;Obtaining a power supply voltage of a power amplifier module; the power amplifier module is used to amplify the audio signal;

根据所述供电电压控制开关模块切换导通电源模块与所述功率放大模块之间的第一供电通路或第二供电通路,以输出适用于为所述功率放大模块供电的目标电压;所述目标电压为所述第一电压和所述第二电压中与所述供电电压压差较小的电压;According to the supply voltage, the switch module is controlled to switch on the first power supply path or the second power supply path between the power supply module and the power amplifier module, so as to output a target voltage suitable for supplying power to the power amplifier module; the target voltage is a voltage of the first voltage and the second voltage with a smaller voltage difference with the supply voltage;

所述第一供电通路用于向所述功率放大模块输出第一电压,所述第二供电通路用于向所述功率放大模块输出第二电压;所述第一电压为所述电源模块直接输出的电源电压,所述第二电压小于所述第一电压。The first power supply path is used to output a first voltage to the power amplifier module, and the second power supply path is used to output a second voltage to the power amplifier module; the first voltage is the power supply voltage directly output by the power supply module, and the second voltage is lower than the first voltage.

一种电子设备,包括:An electronic device, comprising:

扬声器;及loudspeakers; and

如上述的供电电路,所述供电电路中的功率放大模块与所述扬声器连接,用于发送放大信号至所述扬声器。As in the power supply circuit mentioned above, the power amplifier module in the power supply circuit is connected to the speaker and is used to send an amplified signal to the speaker.

一种电子设备,电源模块、功率放大模块、存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述的方法的步骤。An electronic device comprises a power supply module, a power amplifier module, a memory and a processor, wherein the memory stores a computer program and the processor implements the steps of the above method when executing the computer program.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法的步骤。A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

上述供电电路、供电控制方法、电子设备及存储介质,基于电子设备中电源模块在进行供电时会降压后再输出为各器件供电的第二电压,供电电路根据功率放大模块的供电电压,控制开关模块切换导通电源模块与功率放大模块之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块供电的与供电电压压差较小的目标电压,功率放大模块在升压时由于压差更小,使得供电效率更高。The above-mentioned power supply circuit, power supply control method, electronic device and storage medium are based on the fact that the power module in the electronic device will step down the voltage and then output the second voltage for powering each device when supplying power. The power supply circuit controls the switch module to switch the first power supply path or the second power supply path between the power module and the power amplifier module according to the power supply voltage of the power amplifier module, so as to output a target voltage suitable for powering the power amplifier module and having a smaller voltage difference with the supply voltage. When the power amplifier module is boosted, the voltage difference is smaller, so the power supply efficiency is higher.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或传统技术中的技术方案,下面将对实施例或传统技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1为一实施例中,供电电路的结构框图之一;FIG1 is a structural block diagram of a power supply circuit in one embodiment;

图2为一实施例中,供电电路的结构框图之二;FIG2 is a second structural block diagram of a power supply circuit in an embodiment;

图3为一实施例中,供电电路的结构框图之三;FIG3 is a third structural block diagram of a power supply circuit in one embodiment;

图4为一实施例中,供电电路的结构框图之四;FIG4 is a fourth structural block diagram of a power supply circuit in one embodiment;

图5为一实施例中,供电电路的结构框图之五;FIG5 is a fifth structural block diagram of a power supply circuit in one embodiment;

图6为一实施例中,迟滞比较器的输出波形示意图;FIG6 is a schematic diagram of an output waveform of a hysteresis comparator in one embodiment;

图7为一实施例中,供电电路的结构框图之六;FIG7 is a sixth structural block diagram of a power supply circuit in one embodiment;

图8为一实施例中,供电控制方法的流程示意图;FIG8 is a schematic flow chart of a power supply control method in one embodiment;

图9为与本申请实施例提供的电子设备相关的部分结构的框图。FIG. 9 is a block diagram of a partial structure related to an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

为了便于理解本申请,为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本申请,附图中给出了本申请的较佳实施方式。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施方式。相反地,提供这些实施方式的目的是使对本申请的公开内容理解的更加透彻全面。本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似改进,因此本申请不受下面公开的具体实施例的限制。In order to facilitate the understanding of the present application, in order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the preferred embodiments of the present application are given in the accompanying drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly understood. The present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。在本申请的描述中,“若干”的含义是至少一个,例如一个,两个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the description of the present application, the meaning of "several" is at least one, such as one, two, etc., unless otherwise clearly and specifically defined.

可以理解,以下实施例中的“连接”,如果被连接的电路、模块、单元等相互之间具有电信号或数据的传递,则应理解为“电连接”、“通信连接”等。It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

还应当理解的是,术语“包括/包含”或“具有”等指定所陈述的特征、整体、步骤、操作、组件、部分或它们的组合的存在,但是不排除存在或添加一个或更多个其他特征、整体、步骤、操作、组件、部分或它们的组合的可能性。同时,在本说明书中使用的术语“和/或”包括相关所列项目的任何及所有组合。It should also be understood that the terms "include/comprise" or "have" etc. specify the existence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the existence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and/or" used in this specification includes any and all combinations of the relevant listed items.

本申请一实施例的供电电路应用于电子设备,在其中一个实施例中,电子设备可以为包括手机、平板电脑、笔记本电脑、账上电脑、移动互联网设备(Mobile InternetDevice,MID)、可穿戴设备(例如智能手表、智能手环、计步器等)或其他具有音频播放功能的设备。The power supply circuit of one embodiment of the present application is applied to an electronic device. In one embodiment, the electronic device may include a mobile phone, a tablet computer, a laptop computer, an account computer, a mobile Internet device (Mobile Internet Device, MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.) or other devices with audio playback function.

如图1所示,本申请实施例提供一种供电电路,供电电路包括电源模块100、功率放大模块200、开关模块300及控制模块400。其中,电源模块100为电子设备中的电源模块100,除了为供电电路中的各元器件供电,还用于为电子设备的其他模块进行供电。功率放大模块200即音频功率放大模块200,用于对接收到的音频信号进行放大处理后,输出放大信号至电子设备的扬声器进行播放。开关模块300用于连接功率放大模块200与电源模块100之间的第一供电通路和第二供电通路,并用于切换导通第一供电通路或第二供电通路;第一供电通路导通时,电源模块100向功率放大模块200输出第一电压Vbat进行供电;第二供电通路导通时,电源模块100向功率放大模块200输出第二电压Vph进行供电,其中,第一电压Vbat为电源模块100直接输出的电源电压,第二电压Vph小于第一电压Vbat。控制模块400实时获取功率放大模块200的供电电压Vbst,根据供电电压Vbst控制开关模块300选择导通第一供电通路或第二供电通路,以输出为适用于为功率放大模块200供电的目标电压。目标电压是第一电压Vbat和第二电压Vph中与供电电压Vbst压差较小的电压。As shown in FIG1 , an embodiment of the present application provides a power supply circuit, which includes a power supply module 100, a power amplifier module 200, a switch module 300 and a control module 400. Among them, the power supply module 100 is a power supply module 100 in an electronic device, which is used to power other modules of the electronic device in addition to powering each component in the power supply circuit. The power amplifier module 200 is an audio power amplifier module 200, which is used to amplify the received audio signal and output the amplified signal to the speaker of the electronic device for playback. The switch module 300 is used to connect the first power supply path and the second power supply path between the power amplifier module 200 and the power supply module 100, and is used to switch the first power supply path or the second power supply path; when the first power supply path is turned on, the power supply module 100 outputs a first voltage Vbat to the power amplifier module 200 for power supply; when the second power supply path is turned on, the power supply module 100 outputs a second voltage Vph to the power amplifier module 200 for power supply, wherein the first voltage Vbat is the power supply voltage directly output by the power module 100, and the second voltage Vph is less than the first voltage Vbat. The control module 400 obtains the power supply voltage Vbst of the power amplifier module 200 in real time, and controls the switch module 300 to select the first power supply path or the second power supply path according to the power supply voltage Vbst, so as to output a target voltage suitable for powering the power amplifier module 200. The target voltage is a voltage with a smaller voltage difference with the power supply voltage Vbst between the first voltage Vbat and the second voltage Vph.

基于电子设备中电源模块在进行供电时会降压后再输出为各器件供电的第二电压Vph,上述供电电路根据功率放大模块200的供电电压Vbst,控制开关模块300切换导通电源模块100与功率放大模块200之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块200供电的与供电电压Vbst压差较小的目标电压,功率放大模块200在升压时由于压差更小,使得供电效率更高。Based on the fact that the power module in the electronic device will step down the voltage when supplying power and then output the second voltage Vph for powering each device, the above-mentioned power supply circuit controls the switch module 300 to switch on the first power supply path or the second power supply path between the power module 100 and the power amplifier module 200 according to the power supply voltage Vbst of the power amplifier module 200, so as to output a target voltage suitable for powering the power amplifier module 200 with a smaller voltage difference with the power supply voltage Vbst. When the power amplifier module 200 is boosted, the voltage difference is smaller, so the power supply efficiency is higher.

如图5所示,在其中一个实施例中,电源模块100包括电池单元101和降压单元102,电池单元101与开关模块300连接,用于输出第一电压Vbat;降压单元102分别与电池单元101、开关模块300连接,用于对电池单元101输出的第一电压Vbat进行降压处理后输出第二电压Vph。As shown in Figure 5, in one embodiment, the power module 100 includes a battery cell 101 and a step-down unit 102. The battery cell 101 is connected to the switch module 300 and is used to output a first voltage Vbat; the step-down unit 102 is respectively connected to the battery cell 101 and the switch module 300, and is used to output a second voltage Vph after stepping down the first voltage Vbat output by the battery cell 101.

如图2所示,在其中一个实施例中,功率放大模块200包括功率放大器201、升压单元202及检测单元203。其中,功率放大器201(amplifier,AP)用于实现对音频进行放大处理并输出的过程,升压单元202用于将电源模块100经第一供电通路输出的第一电压Vbat或经第二供电通路输出的第二电压Vph升压至功率放大器201所需的供电电压Vbst,为功率放大器201供电。检测单元203用于实时监测升压单元202输出的供电电压Vbst,并基于检测到的供电电压Vbst输出反馈信号至控制单元,控制单元根据反馈信号反馈的供电电压Vbst对开关模块300进行控制。示例性的,电子设备可以为串联双电池手机,电源模块100输出的第一电压Vbat为7~8.8V,第一电压Vbat经降压单元102处理后输出第二电压Vph,第二电压Vph可以是3.5~4.4V,功率放大模块200的供电电压Vbst为6~7V时,控制模块400控制开关模块300导通第二供电通路,关断第一供电通路,输出第二电压Vph至功率放大模块200的升压单元202进行升压,升压单元202将升压后的电压输出至功率放大器201为其供电;功率放大模块200的供电电压Vbst为7~10V时,控制模块400控制开关模块300导通第一供电通路,关断第二供电通路,输出第一电压Vbat至功率放大模块200的升压单元202进行升压,升压单元202将升压后的电压输出至功率放大器201为其供电。As shown in FIG2 , in one embodiment, the power amplifier module 200 includes a power amplifier 201, a boost unit 202 and a detection unit 203. The power amplifier 201 (amplifier, AP) is used to realize the process of amplifying and outputting the audio, and the boost unit 202 is used to boost the first voltage Vbat outputted by the power module 100 through the first power supply path or the second voltage Vph outputted through the second power supply path to the power supply voltage Vbst required by the power amplifier 201, so as to supply power to the power amplifier 201. The detection unit 203 is used to monitor the power supply voltage Vbst outputted by the boost unit 202 in real time, and output a feedback signal to the control unit based on the detected power supply voltage Vbst, and the control unit controls the switch module 300 according to the power supply voltage Vbst fed back by the feedback signal. Exemplarily, the electronic device may be a mobile phone with dual batteries connected in series, the first voltage Vbat output by the power module 100 is 7 to 8.8V, the first voltage Vbat is processed by the step-down unit 102 to output the second voltage Vph, the second voltage Vph may be 3.5 to 4.4V, when the power supply voltage Vbst of the power amplifier module 200 is 6 to 7V, the control module 400 controls the switch module 300 to turn on the second power supply path, turn off the first power supply path, output the second voltage Vph to the boost unit 202 of the power amplifier module 200 for boosting, the boost unit 202 outputs the boosted voltage to the power amplifier 201 for powering it; when the power supply voltage Vbst of the power amplifier module 200 is 7 to 10V, the control module 400 controls the switch module 300 to turn on the first power supply path, turn off the second power supply path, output the first voltage Vbat to the boost unit 202 of the power amplifier module 200 for boosting, the boost unit 202 outputs the boosted voltage to the power amplifier 201 for powering it.

在其中一个实施例中,为了保证音频信号的播放质量,放大信号的功率也会实时变化,为了满足实时变化的功率,供电电压Vbst也需要适应性调整,因此升压单元202需要根据音频信号调节供电电压Vbst的目标值,即调节升压单元202升压所要达到的电压值,满足功率放大器201的需求。In one of the embodiments, in order to ensure the playback quality of the audio signal, the power of the amplified signal will also change in real time. In order to meet the real-time changing power, the power supply voltage Vbst also needs to be adaptively adjusted. Therefore, the boost unit 202 needs to adjust the target value of the power supply voltage Vbst according to the audio signal, that is, adjust the voltage value to be achieved by the boost unit 202 to meet the needs of the power amplifier 201.

如图3所示,在其中一个实施例中,功率放大模块200还包括保护单元204。保护单元204用于检测功率放大器201的输出,在检测到功率放大器201输出异常时(例如输出级损坏、过压、短路等),切断功率放大器201与负载的连接,以保护功率放大器201和/或负载不至于损坏。在其中一个实施例中,负载可以为扬声器、传声器等器件。As shown in FIG3 , in one embodiment, the power amplifier module 200 further includes a protection unit 204. The protection unit 204 is used to detect the output of the power amplifier 201. When the output of the power amplifier 201 is detected to be abnormal (e.g., output stage damage, overvoltage, short circuit, etc.), the connection between the power amplifier 201 and the load is cut off to protect the power amplifier 201 and/or the load from damage. In one embodiment, the load may be a device such as a speaker or a microphone.

在其中一个实施例中,功率放大模块200可以采用智能功率放大器(Smart PA)。In one embodiment, the power amplification module 200 may be a smart power amplifier (Smart PA).

如图4所示,在其中一个实施例中,控制模块400包括比较器401和基准电源402。其中,比较器401分别与功率放大模块200、开关模块300连接,根据功率放大模块200的供电电压Vbst以及基准电源402输出的基准电压Vref输出第一控制信号V1或第二控制信号V2至开关模块300,开关模块300在接收到第一控制信号V1时导通第一供电通路,开关模块300在接收到第二控制信号V2时导通第二供电通路。示例性的,若基准电压Vref为7V,在供电电压Vbst大于7V时,比较器401输出第一控制信号V1;在供电电压Vbst小于7V时,比较器401输出第二控制信号V2。As shown in FIG4 , in one embodiment, the control module 400 includes a comparator 401 and a reference power supply 402. The comparator 401 is connected to the power amplifier module 200 and the switch module 300 respectively, and outputs a first control signal V1 or a second control signal V2 to the switch module 300 according to the power supply voltage Vbst of the power amplifier module 200 and the reference voltage Vref output by the reference power supply 402. The switch module 300 conducts the first power supply path when receiving the first control signal V1, and conducts the second power supply path when receiving the second control signal V2. Exemplarily, if the reference voltage Vref is 7V, when the power supply voltage Vbst is greater than 7V, the comparator 401 outputs the first control signal V1; when the power supply voltage Vbst is less than 7V, the comparator 401 outputs the second control signal V2.

在其中一个实施例中,比较器401包括为迟滞比较器401。迟滞比较器401的两个输入端分别用于输入供电电压Vbst、基准电压Vref,如图6所示,在供电电压Vbst大于迟滞比较器401的上门限电压Vmax时,迟滞比较器401输出第一控制信号V1;在供电电压Vbst小于迟滞比较器401的下门限电压Vmin时,迟滞比较器401输出第二控制信号V2;在供电电压Vbst介于上门限电压Vmax和下门限电压Vmin之间时,则维持原有状态,即若迟滞比较器401原有状态为输出第一控制信号V1,此时则保持不变。其中,迟滞比较器401的上门限电压Vmax大于基准电源402输出的基准电压Vref,迟滞比较器401的下门限电压Vmin小于基准电源402输出的基准电压Vref。采用迟滞比较器401实现开关模块300的切换导通控制,能够保证系统稳定。In one embodiment, the comparator 401 includes a hysteresis comparator 401. The two input terminals of the hysteresis comparator 401 are respectively used to input a power supply voltage Vbst and a reference voltage Vref. As shown in FIG6 , when the power supply voltage Vbst is greater than the upper threshold voltage Vmax of the hysteresis comparator 401, the hysteresis comparator 401 outputs a first control signal V1; when the power supply voltage Vbst is less than the lower threshold voltage Vmin of the hysteresis comparator 401, the hysteresis comparator 401 outputs a second control signal V2; when the power supply voltage Vbst is between the upper threshold voltage Vmax and the lower threshold voltage Vmin, the original state is maintained, that is, if the original state of the hysteresis comparator 401 is to output the first control signal V1, it remains unchanged at this time. Among them, the upper threshold voltage Vmax of the hysteresis comparator 401 is greater than the reference voltage Vref output by the reference power supply 402, and the lower threshold voltage Vmin of the hysteresis comparator 401 is less than the reference voltage Vref output by the reference power supply 402. The hysteresis comparator 401 is used to implement the switching and conduction control of the switch module 300, which can ensure the stability of the system.

如图7所示,在其中一个实施例中,开关模块300包括第一电子开关Q1和第二电子开关Q2。其中第一电子开关Q1的第一端与电池单元101连接,第一电子开关Q1的第二端与功率放大模块200的供电端连接,第一电子开关Q1的受控端与控制模块400连接,在第一电子开关Q1导通时,即导通电池单元101与功率放大模块200之间的供电通路(第一供电通路)。第二电子开关Q2的第一端与降压单元102的输出端连接,第二电子开关Q2的第二端与功率放大模块200连接,第二电子开关Q2的受控端与控制模块400联考,在第二电子开关Q2导通时,即导通电池单元101经降压单元102与功率放大模块200之间的供电通路(第二供电通路)。As shown in FIG. 7 , in one embodiment, the switch module 300 includes a first electronic switch Q1 and a second electronic switch Q2. The first end of the first electronic switch Q1 is connected to the battery unit 101, the second end of the first electronic switch Q1 is connected to the power supply end of the power amplifier module 200, and the controlled end of the first electronic switch Q1 is connected to the control module 400. When the first electronic switch Q1 is turned on, the power supply path (first power supply path) between the battery unit 101 and the power amplifier module 200 is turned on. The first end of the second electronic switch Q2 is connected to the output end of the step-down unit 102, the second end of the second electronic switch Q2 is connected to the power amplifier module 200, and the controlled end of the second electronic switch Q2 is connected to the control module 400. When the second electronic switch Q2 is turned on, the power supply path (second power supply path) between the battery unit 101 and the power amplifier module 200 via the step-down unit 102 is turned on.

在其中一个实施例中,第一电子开关Q1与第二电子开关Q2可以采用MOS管,具体的,第一电子开关Q1可以是NMOS管,第二电子开关Q2可以是PMOS管,第一控制信号V1为高电平,第一电子开关Q1受控端在接收到第一控制信号V1时导通,此时第二电子开关Q2受控端接收到高电平使之截止;第二控制信号V2为低电平,第一电子开关Q1受控端在接收到第二控制信号V2时截止,此时第二电子开关Q2受控端接收到低电平使之导通。在其中一个实施例中,第一电子开关Q1也可以是PMOS管,第二电子开关Q2可以是NMOS管,第一控制信号V1为低电平,第一电子开关Q1受控端在接收到第一控制信号V1时导通,此时第二电子开关Q2受控端接收到低电平使之截止;第二控制信号V2为高电平,第一电子开关Q1受控端在接收到第二控制信号V2时截止,此时第二电子开关Q2受控端接收到高电平使之导通。由于MOS管阻抗低,可通大电流,不容易过流损坏,并且对于供电的损耗低。可以理解的是第一电子开关Q1与第二电子开关Q2也可以采用三极管、IGBT等开关。In one embodiment, the first electronic switch Q1 and the second electronic switch Q2 may be MOS tubes. Specifically, the first electronic switch Q1 may be an NMOS tube, and the second electronic switch Q2 may be a PMOS tube. The first control signal V1 is at a high level, and the controlled end of the first electronic switch Q1 is turned on when receiving the first control signal V1, and at this time, the controlled end of the second electronic switch Q2 receives a high level and is turned off; the second control signal V2 is at a low level, and the controlled end of the first electronic switch Q1 is turned off when receiving the second control signal V2, and at this time, the controlled end of the second electronic switch Q2 receives a low level and is turned on. In one embodiment, the first electronic switch Q1 may also be a PMOS tube, and the second electronic switch Q2 may be an NMOS tube. The first control signal V1 is at a low level, and the controlled end of the first electronic switch Q1 is turned on when receiving the first control signal V1, and at this time, the controlled end of the second electronic switch Q2 receives a low level and is turned off; the second control signal V2 is at a high level, and the controlled end of the first electronic switch Q1 is turned off when receiving the second control signal V2, and at this time, the controlled end of the second electronic switch Q2 receives a high level and is turned on. Since the MOS tube has low impedance, it can pass large current, is not easily damaged by overcurrent, and has low power loss. It can be understood that the first electronic switch Q1 and the second electronic switch Q2 can also be switches such as triodes and IGBTs.

如图8所示,在其中一个实施例中,还提供了一种供电控制方法,以该方法应用于上述供电电路为例进行说明,所述方法包括:As shown in FIG8 , in one embodiment, a power supply control method is further provided, which is described by taking the method applied to the above power supply circuit as an example. The method includes:

步骤802,获取功率放大模块的供电电压Vbst;功率放大模块用于对音频信号进行放大处理;Step 802, obtaining a power supply voltage Vbst of a power amplifier module; the power amplifier module is used to amplify the audio signal;

步骤804,根据供电电压Vbst控制开关模块切换导通电源模块与功率放大模块之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块供电的目标电压;其中,目标电压为第一电压Vbat和第二电压Vph中与供电电压Vbst压差较小的电压;Step 804, controlling the switch module to switch on the first power supply path or the second power supply path between the power supply module and the power amplifier module according to the power supply voltage Vbst, so as to output a target voltage suitable for powering the power amplifier module; wherein the target voltage is a voltage of the first voltage Vbat and the second voltage Vph with a smaller voltage difference with the power supply voltage Vbst;

第一供电通路用于向功率放大模块输出第一电压Vbat,第二供电通路用于向功率放大模块输出第二电压Vph;其中,第一电压Vbat为电源模块直接输出的电源电压,第二电压Vph小于第一电压Vbat。The first power supply path is used to output a first voltage Vbat to the power amplifier module, and the second power supply path is used to output a second voltage Vph to the power amplifier module; wherein the first voltage Vbat is the power supply voltage directly output by the power supply module, and the second voltage Vph is less than the first voltage Vbat.

关于供电控制方法的具体限定可以参见上文中对于供电电路的限定,在此不再赘述。应该理解的是,虽然图8的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图8中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。For the specific definition of the power supply control method, please refer to the definition of the power supply circuit above, which will not be repeated here. It should be understood that although the various steps in the flowchart of Figure 8 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least part of the steps in Figure 8 may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the steps or stages in other steps.

在其中一个实施例中,还提供了一种电子设备,包括扬声器及如上述实施例所述的供电电路,供电电路中的功率放大模块与扬声器连接,用于发送放大信号至扬声器。基于电子设备中电源在进行供电时会降压后再输出为各器件供电的第二电压Vph,供电电路根据功率放大模块200的供电电压Vbst,控制开关模块300切换导通电源模块100与功率放大模块200之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块200供电的与供电电压Vbst压差较小的目标电压,功率放大模块200在升压时由于压差更小,使得供电效率更高。In one of the embodiments, an electronic device is also provided, including a speaker and a power supply circuit as described in the above embodiment, wherein a power amplifier module in the power supply circuit is connected to the speaker and is used to send an amplified signal to the speaker. Based on the fact that the power supply in the electronic device will step down the voltage when supplying power and then output a second voltage Vph for powering each device, the power supply circuit controls the switch module 300 to switch on the first power supply path or the second power supply path between the power supply module 100 and the power amplifier module 200 according to the power supply voltage Vbst of the power amplifier module 200, so as to output a target voltage with a smaller voltage difference with the power supply voltage Vbst suitable for powering the power amplifier module 200. The power amplifier module 200 has a higher power supply efficiency due to a smaller voltage difference when boosting.

在其中一个实施例中,提供了一种电子设备,包括电源模块100、功率放大模块200、存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, an electronic device is provided, including a power module 100, a power amplifier module 200, a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

步骤802,获取功率放大模块的供电电压Vbst;功率放大模块用于对音频信号进行放大处理;Step 802, obtaining a power supply voltage Vbst of a power amplifier module; the power amplifier module is used to amplify the audio signal;

步骤804,根据供电电压Vbst控制开关模块切换导通电源模块与功率放大模块之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块供电的目标电压;其中,目标电压为第一电压Vbat和第二电压Vph中与供电电压Vbst压差较小的电压;Step 804, controlling the switch module to switch on the first power supply path or the second power supply path between the power supply module and the power amplifier module according to the power supply voltage Vbst, so as to output a target voltage suitable for powering the power amplifier module; wherein the target voltage is a voltage of the first voltage Vbat and the second voltage Vph with a smaller voltage difference with the power supply voltage Vbst;

第一供电通路用于向功率放大模块输出第一电压Vbat,第二供电通路用于向功率放大模块输出第二电压Vph;其中,第一电压Vbat为电源模块直接输出的电源电压,第二电压Vph小于第一电压Vbat。The first power supply path is used to output a first voltage Vbat to the power amplifier module, and the second power supply path is used to output a second voltage Vph to the power amplifier module; wherein the first voltage Vbat is the power supply voltage directly output by the power supply module, and the second voltage Vph is less than the first voltage Vbat.

在其中一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

步骤802,获取功率放大模块的供电电压Vbst;功率放大模块用于对音频信号进行放大处理;Step 802, obtaining a power supply voltage Vbst of a power amplifier module; the power amplifier module is used to amplify the audio signal;

步骤804,根据供电电压Vbst控制开关模块切换导通电源模块与功率放大模块之间的第一供电通路或第二供电通路,以输出适用于为功率放大模块供电的目标电压;其中,目标电压为第一电压Vbat和第二电压Vph中与供电电压Vbst压差较小的电压;Step 804, controlling the switch module to switch on the first power supply path or the second power supply path between the power supply module and the power amplifier module according to the power supply voltage Vbst, so as to output a target voltage suitable for powering the power amplifier module; wherein the target voltage is a voltage of the first voltage Vbat and the second voltage Vph with a smaller voltage difference with the power supply voltage Vbst;

第一供电通路用于向功率放大模块输出第一电压Vbat,第二供电通路用于向功率放大模块输出第二电压Vph;其中,第一电压Vbat为电源模块直接输出的电源电压,第二电压Vph小于第一电压Vbat。The first power supply path is used to output a first voltage Vbat to the power amplifier module, and the second power supply path is used to output a second voltage Vph to the power amplifier module; wherein the first voltage Vbat is the power supply voltage directly output by the power supply module, and the second voltage Vph is less than the first voltage Vbat.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

参考图9,图9为与本申请实施例提供的电子设备相关的部分结构的框图。该电子设备可以包括射频电路590、包括有一个或一个以上计算机可读存储介质的存储器550、输入单元580、显示单元570、传感器560、音频电路530、无线保真(WiFi,Wireless Fidelity)模块520、包括有一个或者一个以上处理核心的处理器510、以及电源模块100等部件。本领域技术人员可以理解,图9中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Referring to FIG9 , FIG9 is a block diagram of a partial structure related to an electronic device provided in an embodiment of the present application. The electronic device may include a radio frequency circuit 590, a memory 550 including one or more computer-readable storage media, an input unit 580, a display unit 570, a sensor 560, an audio circuit 530, a wireless fidelity (WiFi, Wireless Fidelity) module 520, a processor 510 including one or more processing cores, and a power module 100 and other components. It can be understood by those skilled in the art that the electronic device structure shown in FIG9 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

其中,射频电路590可用于收发信息或通话过程中信号的接收和发送,可将基站的下行信息接收后,给处理器510处理;也可以将上行的数据发送给基站。The radio frequency circuit 590 may be used for receiving and sending information or receiving and sending signals during a call. It may receive downlink information from the base station and send it to the processor 510 for processing; it may also send uplink data to the base station.

存储器550可用于存储应用程序和数据。存储器550存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器510通过运行存储在存储器550的应用程序,从而执行各种功能应用以及数据处理。存储器550可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器550可以包括高速随机存取存储器550,还可以包括非易失性存储器550,例如至少一个磁盘存储器550件、闪存器件、或其他易失性固态存储器550件。相应地,存储器550还可以包括存储器550控制器,以提供处理器510和输入单元580对存储器550的访问。The memory 550 can be used to store applications and data. The applications stored in the memory 550 include executable codes. The applications can form various functional modules. The processor 510 executes various functional applications and data processing by running the applications stored in the memory 550. The memory 550 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 550 can include a high-speed random access memory 550, and can also include a non-volatile memory 550, such as at least one disk storage 550, a flash memory device, or other volatile solid-state storage 550. Accordingly, the memory 550 can also include a memory 550 controller to provide the processor 510 and the input unit 580 with access to the memory 550.

输入单元580可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元580可包括触敏表面551以及其他输入设备552。触敏表面551,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面551上或在触敏表面551附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面551可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,并能接收处理器510发来的命令并加以执行。The input unit 580 can be used to receive input digital, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 580 may include a touch-sensitive surface 551 and other input devices 552. The touch-sensitive surface 551, also known as a touch display screen or a touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 551), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 551 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 510, and can receive and execute commands sent by the processor 510.

显示单元570可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元570可包括显示面板571。可选的,可以采用液晶显示器(LCD,Liquid CrystalDisplay)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板571。进一步的,触敏表面551可覆盖显示面板571,当触敏表面551检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板571上提供相应的视觉输出。虽然在图9中,触敏表面551与显示面板571是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面551与显示面板571集成而实现输入和输出功能。可以理解的是,显示屏可以包括输入单元580和显示单元570。The display unit 570 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 570 may include a display panel 571. Optionally, the display panel 571 may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 551 may cover the display panel 571, and when the touch-sensitive surface 551 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of touch event, and then the processor 510 provides corresponding visual output on the display panel 571 according to the type of touch event. Although in FIG. 9, the touch-sensitive surface 551 and the display panel 571 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 551 and the display panel 571 can be integrated to implement input and output functions. It can be understood that the display screen may include an input unit 580 and a display unit 570.

电子设备还可包括至少一种传感器560,比如光传感器560、运动传感器560以及其他传感器560。具体地,光传感器560可包括环境光传感器560及接近传感器560,其中,环境光传感器560可根据环境光线的明暗来调节显示面板571的亮度,接近传感器560可在电子设备移动到耳边时,关闭显示面板571和/或背光。作为运动传感器560的一种,重力加速度传感器560可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器560等其他传感器560,在此不再赘述。The electronic device may also include at least one sensor 560, such as a light sensor 560, a motion sensor 560, and other sensors 560. Specifically, the light sensor 560 may include an ambient light sensor 560 and a proximity sensor 560, wherein the ambient light sensor 560 may adjust the brightness of the display panel 571 according to the brightness of the ambient light, and the proximity sensor 560 may turn off the display panel 571 and/or the backlight when the electronic device is moved to the ear. As a type of motion sensor 560, the gravity acceleration sensor 560 may detect the magnitude of acceleration in each direction (generally three axes), and may detect the magnitude and direction of gravity when stationary, and may be used for applications that recognize the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors 560 such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors 560, etc. that may also be configured in the electronic device, they will not be described in detail here.

音频电路530可通过扬声器531、传声器532提供用户与电子设备之间的音频接口。音频电路530可将接收到的音频数据转换成电信号,传输到扬声器531,由扬声器531转换为声音信号输出;另一方面,传声器532将收集的声音信号转换为电信号,由音频电路530接收后转换为音频数据,再将音频数据输出处理器510处理后,经射频电路以发送给比如另一电子设备,或者将音频数据输出至存储器550以便进一步处理。音频电路530还可能包括耳机座,以提供外设耳机与电子设备的通信。The audio circuit 530 can provide an audio interface between the user and the electronic device through the speaker 531 and the microphone 532. The audio circuit 530 can convert the received audio data into an electrical signal, transmit it to the speaker 531, and the speaker 531 converts it into a sound signal for output; on the other hand, the microphone 532 converts the collected sound signal into an electrical signal, which is received by the audio circuit 530 and converted into audio data, and then the audio data is output to the processor 510 for processing, and then sent to another electronic device through the radio frequency circuit, or the audio data is output to the memory 550 for further processing. The audio circuit 530 may also include an earphone socket to provide communication between an external earphone and the electronic device.

无线保真(WiFi)模块属于短距离无线传输技术,电子设备通过无线保真模块520可以帮助用户接收电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了无线保真模块520,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The wireless fidelity (WiFi) module belongs to the short-range wireless transmission technology. The electronic device can help users receive emails, browse web pages and access streaming media through the wireless fidelity module 520, which provides users with wireless broadband Internet access. Although FIG9 shows the wireless fidelity module 520, it is understandable that it is not a necessary component of the electronic device and can be omitted as needed without changing the essence of the invention.

处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器550内的应用程序,以及调用存储在存储器550内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器510可包括一个或多个处理核心;优选的,处理器510可集成应用处理器510和调制解调处理器510,其中,应用处理器510主要处理操作系统、用户界面和应用程序等,调制解调处理器510主要处理无线通信。可以理解的是,上述调制解调处理器510也可以不集成到处理器510中。The processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing applications stored in the memory 550 and calling data stored in the memory 550, thereby monitoring the electronic device as a whole. Optionally, the processor 510 may include one or more processing cores; preferably, the processor 510 may integrate an application processor 510 and a modem processor 510, wherein the application processor 510 mainly processes the operating system, user interface, and application programs, and the modem processor 510 mainly processes wireless communications. It is understandable that the above-mentioned modem processor 510 may not be integrated into the processor 510.

电子设备还包括给各个部件供电的电源模块100。在其中一个实施例中,电源模块100可以通过电源管理系统与处理器逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源模块100还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power module 100 for supplying power to various components. In one embodiment, the power module 100 can be logically connected to the processor through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power module 100 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

尽管图9中未示出,电子设备还可以包括蓝牙模块等,在此不再赘述。具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。Although not shown in FIG9 , the electronic device may further include a Bluetooth module, etc., which will not be described in detail here. In specific implementation, the above modules may be implemented as independent entities, or may be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can refer to the previous method embodiments, which will not be described in detail here.

在本说明书的描述中,参考术语“有些实施例”、“其他实施例”、“理想实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特征包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性描述不一定指的是相同的实施例或示例。In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims (12)

1. A power supply circuit, comprising:
a power module for providing a first voltage and a second voltage;
the power amplifying module is used for receiving the audio signal and amplifying the audio signal to output an amplified signal;
The switch module is respectively connected with the power amplification module and the power supply module and is used for switching and conducting a first power supply path or a second power supply path between the power amplification module and the power supply module, the first power supply path is used for outputting the first voltage to the power amplification module, the second power supply path is used for outputting the second voltage to the power amplification module, the first voltage is a power supply voltage directly output by the power supply module, the second voltage is smaller than the first voltage, and the second voltage is a voltage output by the power supply module after the first voltage is subjected to step-down treatment;
The control module is respectively connected with the power amplification module and the switch module, and is used for acquiring the power supply voltage of the power amplification module and controlling the switch module to conduct the first power supply passage or the second power supply passage according to the power supply voltage so as to output target voltage suitable for supplying power to the power amplification module; the target voltage is a voltage with smaller voltage difference from the power supply voltage in the first voltage and the second voltage, and the power supply voltage is a voltage required by the power amplification module to amplify the audio signal.
2. The power supply circuit of claim 1, wherein the power amplification module comprises:
The power amplifier is used for amplifying the audio signal and outputting an amplified signal;
The boosting unit is respectively connected with the switch module and the power amplifier and is used for boosting the received first voltage or the received second voltage so as to supply power for the power amplifier module;
And the detection unit is respectively connected with the boosting unit and the control module, and is used for detecting the power supply voltage output by the boosting unit and outputting a feedback signal to the control module.
3. The power supply circuit of claim 2, wherein the boost unit is further configured to adjust a target value of the supply voltage based on the audio signal.
4. The power supply circuit of claim 2, wherein the power amplification module further comprises:
And the protection unit is connected with the power amplifier and is used for cutting off the connection between the power amplifier and a load when the abnormal output of the power amplifier is detected.
5. The power supply circuit of claim 1, wherein the control module comprises:
The comparator is respectively connected with the power amplifying module and the switch module and is used for outputting a first control signal or a second control signal according to the power supply voltage and a preset reference voltage;
The reference power supply is connected with the comparator and used for outputting reference voltage;
the switch module is used for conducting the first power supply path when the first control signal is received, and conducting the second power supply path when the second control signal is received.
6. The power supply circuit of claim 5, wherein the comparator is a hysteresis comparator;
The hysteresis comparator is used for outputting the first control signal when the power supply voltage is larger than an upper threshold voltage, outputting the second control signal when the power supply voltage is smaller than a lower threshold voltage, and maintaining the current state unchanged when the power supply voltage is between the upper threshold voltage and the lower threshold voltage; the upper threshold voltage is greater than the reference voltage, and the lower threshold voltage is less than the reference voltage.
7. The power supply circuit of claim 1, wherein the power module comprises:
The battery unit is connected with the switch module and used for outputting a first voltage;
and the voltage reducing unit is respectively connected with the battery unit and the switch module and is used for outputting a second voltage after the first voltage is subjected to voltage reducing treatment.
8. The power supply circuit of claim 7, wherein the switch module comprises a first electronic switch and a second electronic switch;
The first end of the first electronic switch is connected with the battery unit, the second end of the first electronic switch is connected with the power amplification module, and the controlled end of the first electronic switch is connected with the control module;
The first end of the second electronic switch is connected with the output end of the voltage reduction unit, the second end of the second electronic switch is connected with the power amplification module, and the controlled end of the second electronic switch is connected with the control module.
9. A power supply control method, characterized by comprising:
Acquiring a power supply voltage of a power amplification module; the power amplification module is used for amplifying an audio signal, and the power supply voltage is a voltage required by the power amplification module for amplifying the audio signal;
The power supply voltage control switch module is used for switching on a first power supply path or a second power supply path between the power supply module and the power amplification module according to the power supply voltage control switch module so as to output target voltage suitable for supplying power to the power amplification module; the power supply module is used for providing a first voltage and a second voltage, and the target voltage is a voltage with smaller voltage difference with the power supply voltage in the first voltage and the second voltage;
The first power supply path is used for outputting a first voltage to the power amplification module, and the second power supply path is used for outputting a second voltage to the power amplification module; the first voltage is a power supply voltage directly output by the power supply module, the second voltage is smaller than the first voltage, and the second voltage is a voltage output by the power supply module after the first voltage is subjected to step-down processing.
10. An electronic device, comprising:
a speaker; and
A power supply circuit as claimed in any one of claims 1 to 8, wherein a power amplification module in the power supply circuit is connected to the loudspeaker for sending an amplified signal to the loudspeaker.
11. An electronic device, comprising: a power supply module, a power amplification module, a memory and a processor, said memory storing a computer program, characterized in that the processor implements the steps of the method of claim 9 when executing said computer program.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of claim 9.
CN202110011377.7A 2021-01-06 2021-01-06 Power supply circuit, power supply control method, electronic device and storage medium Active CN112787607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110011377.7A CN112787607B (en) 2021-01-06 2021-01-06 Power supply circuit, power supply control method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110011377.7A CN112787607B (en) 2021-01-06 2021-01-06 Power supply circuit, power supply control method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112787607A CN112787607A (en) 2021-05-11
CN112787607B true CN112787607B (en) 2024-06-18

Family

ID=75755658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110011377.7A Active CN112787607B (en) 2021-01-06 2021-01-06 Power supply circuit, power supply control method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112787607B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389976B (en) * 2021-08-19 2023-12-01 荣耀终端有限公司 Method for improving external sound effect and related device
CN115770051A (en) * 2021-09-06 2023-03-10 Oppo广东移动通信有限公司 Buffer circuit, signal acquisition device and electronic equipment
CN114744606A (en) * 2022-04-08 2022-07-12 Oppo广东移动通信有限公司 Power supply system, wireless communication device, and power supply method
CN115857599A (en) * 2022-12-01 2023-03-28 联想(北京)有限公司 Electronic device
CN116634541B (en) * 2023-07-19 2023-11-07 荣耀终端有限公司 A power supply circuit, power supply method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10283989B1 (en) * 2018-01-30 2019-05-07 Apple Inc. Electrical power converter and detachable energy storage reservoir

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0918240A (en) * 1995-06-30 1997-01-17 Sanyo Electric Co Ltd Amplifier circuit
US20140167842A1 (en) * 2012-12-13 2014-06-19 Mediatek Inc. Power circuit and method thereof
US9634621B1 (en) * 2013-09-24 2017-04-25 Cirrus Logic, Inc. Charge-pump power supply with voltage-headroom-dependent supply voltage
US10368167B2 (en) * 2016-11-28 2019-07-30 Motorola Solutions, Inc. Audio power circuit and method
CN111541429B (en) * 2020-05-25 2024-03-08 延锋汽车饰件系统有限公司 Power supply control circuit of power amplifier and audio equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10283989B1 (en) * 2018-01-30 2019-05-07 Apple Inc. Electrical power converter and detachable energy storage reservoir

Also Published As

Publication number Publication date
CN112787607A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN112787607B (en) Power supply circuit, power supply control method, electronic device and storage medium
KR102258143B1 (en) Charging circuit for electronic device
CN106340925A (en) A charging control method, device and terminal
CN111681621B (en) Communication method and driving structure of time schedule controller and power management chip
CN108471234B (en) A voltage control circuit, its control method, and a mobile terminal
CN108829553B (en) Universal serial bus C-type interface detection circuit, detection method and electronic equipment
CN106532876B (en) Power supply control method and device and computer equipment
US9770827B2 (en) Robot control system
US20130181663A1 (en) Method and system for battery charging control of a terminal
CN113039518B (en) Playback control method and device, computer-readable storage medium, electronic equipment
CN110048479A (en) A kind of battery control method and terminal device
CN112769210B (en) Electronic device and charging method thereof
CN107884619A (en) Load power consumption test system and method, mobile terminal
CN111614329B (en) Power amplifier, electronic device, voltage control method and device
CN109861335A (en) Charging system, electronic device and charging control method
JP2022539669A (en) Mobile terminal and control method
CN105491185B (en) Mancarried electronic aid
US20130009920A1 (en) Image display method and apparatus
CN111369942B (en) Driving voltage adjusting method and electronic device
CN106454953B (en) Flow control method, device and terminal
CN112822001A (en) Control method of electronic equipment and electronic equipment
CN113115155B (en) Wireless earphone control method, wireless earphone control device and electronic equipment
CN108845755A (en) Split screen processing method and device, storage medium and electronic equipment
CN114759782A (en) Control method and device of power supply circuit, electronic equipment and readable storage medium
CN113552934B (en) Power supply circuit, electronic device, power supply control method and storage medium

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