CN112291680B - Control method and device of audio processing circuit, electronic equipment and readable storage medium - Google Patents

Control method and device of audio processing circuit, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112291680B
CN112291680B CN202011142847.5A CN202011142847A CN112291680B CN 112291680 B CN112291680 B CN 112291680B CN 202011142847 A CN202011142847 A CN 202011142847A CN 112291680 B CN112291680 B CN 112291680B
Authority
CN
China
Prior art keywords
frequency
audio
charge pump
switch control
signal
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
CN202011142847.5A
Other languages
Chinese (zh)
Other versions
CN112291680A (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 CN202011142847.5A priority Critical patent/CN112291680B/en
Publication of CN112291680A publication Critical patent/CN112291680A/en
Application granted granted Critical
Publication of CN112291680B publication Critical patent/CN112291680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G5/00Tone control or bandwidth control in amplifiers
    • H03G5/16Automatic control
    • H03G5/165Equalizers; Volume or gain control in limited frequency bands
    • 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

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The application discloses a control method and device of an audio processing circuit, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The audio processing circuit comprises a control module, a charge pump and an audio output module, wherein the control module is connected with the charge pump and used for sending a switch control signal to the charge pump. The charge pump is connected with the audio output module and used for supplying power to the audio output module. The audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump. The frequency of the switch control signal sent by the control module is adjusted through the amplitude value of the audio signal, so that the charge pump can act at a lower frequency when the amplitude value of the audio signal is lower, a lower voltage is output, the switching loss of the charge pump can be reduced, and meanwhile, the power consumption of the audio processing circuit in the whole audio signal output process is reduced.

Description

Control method and device of audio processing circuit, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a control method and device for an audio processing circuit, electronic equipment and a readable storage medium.
Background
The audio processing circuit is one of important components of an electronic device, and the main function of the audio processing circuit is to amplify and output an audio signal in the electronic device. With the popularization of electronic devices such as mobile phones, tablet computers and notebook computers, the application range of the audio processing circuit is getting larger and larger.
At present, an audio processing circuit includes components such as a power amplifier, and an audio signal is processed by the audio processing circuit and then output.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: in the process of outputting the audio signal, the audio processing circuit is controlled by the same input voltage to process the audio signal, which results in larger power consumption of the audio processing circuit.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for controlling an audio processing circuit, an electronic device, and a readable storage medium, which can solve the problem that power consumption of the audio processing circuit is large in an output process of an audio signal.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for controlling an audio processing circuit, where the audio processing circuit includes a control module, a charge pump, and an audio output module; the control module is connected with the charge pump and used for sending a switch control signal to the charge pump; the charge pump is connected with the audio output module and used for supplying power to the audio output module; the audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump; the method comprises the following steps:
acquiring the audio signal;
adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages.
In a second aspect, an embodiment of the present application provides a control apparatus for an audio processing circuit, where the audio processing circuit includes a control module, a charge pump, and an audio output module; the control module is connected with the charge pump and used for sending a switch control signal to the charge pump; the charge pump is connected with the audio output module and used for supplying power to the audio output module; the audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump; the device comprises:
the audio signal acquisition module is used for acquiring the audio signal;
the signal frequency adjusting module is used for adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In the embodiment of the application, the audio processing circuit comprises a control module, a charge pump and an audio output module, wherein the control module is connected with the charge pump and is used for sending a switch control signal to the charge pump. The charge pump is connected with the audio output module and used for supplying power to the audio output module. The audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump. The frequency of the switch control signal sent by the control module is adjusted through the amplitude value of the audio signal, so that the charge pump can act at a lower frequency when the amplitude value of the audio signal is lower, a lower voltage is output, the switching loss of the charge pump can be reduced, and meanwhile, the power consumption of the audio processing circuit in the whole audio signal output process is reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for controlling an audio processing circuit according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an audio processing circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a charge pump according to an embodiment of the present disclosure;
fig. 4 is a diagram illustrating an operation state of a charge pump according to an embodiment of the present disclosure;
fig. 5 is an operating state diagram and an equivalent circuit diagram of a first stage of a charge pump according to an embodiment of the present application;
FIG. 6 is a state diagram and equivalent circuit diagram of the second stage of the charge pump of FIG. 5;
FIG. 7 is a schematic diagram and an equivalent circuit diagram of a charge pump according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an audio output module according to an embodiment of the present disclosure;
FIG. 9 is an equivalent circuit diagram of the charge pump of FIG. 3;
FIG. 10 is a flowchart illustrating steps of another method for controlling an audio processing circuit according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another audio processing circuit provided in an embodiment of the present application;
fig. 12 is a block diagram of a control device of an audio processing circuit according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 14 is a schematic hardware structure diagram of another electronic device for implementing the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The audio processing circuit provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for controlling an audio processing circuit according to an embodiment of the present disclosure, where the method may include:
step 101, obtaining an audio signal.
For example, as shown in fig. 2, fig. 2 is a schematic structural diagram of an audio processing circuit provided in an embodiment of the present application, and the audio processing circuit may include a control module 100, a charge pump 200, and an audio output module 300. The control module 100 is connected to the charge pump 200 and configured to send a switch control signal to the charge pump 200. The charge pump 200 is connected to the audio output module 300, and is used for supplying power to the audio output module 300. The audio output module 300 is configured to obtain an audio signal and output a processed target audio signal under the control of the charge pump 200.
For example, if the audio processing circuit is an audio output unit in a mobile phone, an audio signal input end of the control module 100 may be connected to an audio signal output port in the mobile phone to obtain an audio signal to be output. The specific process of acquiring the audio signal may be set according to the requirement, which is not limited in this embodiment.
And 102, adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal.
The switch control signals with different frequencies are used for controlling the charge pump to generate different voltages.
For example, the switch control signal may be a clock signal, and the control module 100 may detect an amplitude value of an acquired audio signal, adjust a frequency of the clock signal according to the amplitude value of the audio signal, and output clock signals with different frequencies to the charge pump 200, so that the charge pump 200 may control the switching elements in the charge pump 200 to operate at different switching frequencies according to the clock signals with different frequencies, thereby controlling a charging and discharging frequency of an energy storage element (e.g., a capacitor) in the charge pump 200 to generate different voltages.
In the embodiment of the present application, steps 101 and 102 may be performed by the control module 100 described above.
Specifically, the control module 100 may be an analog circuit module having an amplitude detection function and a switch control signal output function, and composed of basic electronic components such as a diode, a transistor, a resistor, and a capacitor. When the control module is an analog circuit module, the control module can firstly convert the acquired digital audio signal into an analog audio signal, then detect the amplitude value of the analog audio signal, and adjust to obtain the switch control signal with corresponding frequency. Or, the control module may also be a digital circuit module composed of one or more integrated circuit chips, and only needs to detect the amplitude value of the audio signal and adjust to obtain the switching control signals of different frequencies according to different amplitude values.
In this embodiment, the charge pump 200 is configured to generate output voltages of different levels according to the switching control signals of different frequencies, so as to provide voltages of different levels for the audio output module 300. Illustratively, as shown in fig. 3, fig. 3 is a schematic structural diagram of a charge pump provided in an embodiment of the present application, and the charge pump 200 includes a switch 201, a switch 202, a switch 203, a switch 204, a capacitor 205, a capacitor 206, and an inverter 207. The charge pump 200 can control the switch 201, the switch 202, the switch 203 and the switch 204 to operate at different switching frequencies by the switch control signal 210 (clock signal), so as to control the charging and discharging frequencies of the capacitor 205 to generate output voltages of different levels.
Referring to fig. 4, fig. 4 is an operation state diagram of a charge pump according to an embodiment of the present disclosure, and in conjunction with fig. 3, a power input end 208 of the charge pump 200 is connected to an input voltage, and a switch control signal input end (i.e., an input end of an inverter) is connected to a switch control signal output end of the control module 100, so as to obtain a switch control signal output by the control module 100. When the switch control signal 210 is inputted into the inverter 207, under the action of the inverter 207, in the first stage: switch 201 and switch 204 are closed and switch 202 and switch 203 are open, current flows through switch 201 and switch 204, charging capacitor 205 until the voltage across capacitor 205 equals the input voltage. In the second stage: the switches 201 and 204 are opened, the switches 202 and 203 are closed, and the output voltage of the power supply output terminal 209 of the charge pump 200 is a negative voltage opposite to the input voltage because the anode of the capacitor 205 is grounded.
For example, as shown in fig. 5, fig. 5 is an operating state diagram and an equivalent circuit diagram of a first stage of a charge pump provided in an embodiment of the present application, and the charge pump 200 may include a switch 401, a switch 402, a switch 403, and a switch 404, a capacitor 405, a capacitor 406, and a capacitor 407. The charge pump 200 can control the switches 401, 402, 403 and 404 to operate at different switching frequencies through the switch control signal, so as to control the charging and discharging frequencies of the capacitors 205 and 206 to generate output voltages of different levels. As shown in fig. 4, in a first phase, switch 402 and switch 403 are closed, switch 401 and switch 404 are open, and current flows through switch 402 and switch 403 to charge capacitor 405 until the voltage across capacitor 405 equals the input voltage at power supply input 408.
As shown in fig. 6, fig. 6 is an operating state diagram and an equivalent circuit diagram of the second stage of the charge pump in fig. 5, and in conjunction with fig. 5, in the second stage, the switch 401 and the switch 404 are closed, the switch 402 and the switch 403 are opened, the negative electrode of the capacitor 405 is grounded, and after the input voltage is connected in series with the capacitor 405, the capacitor 406 is charged, so that the output voltage of the power supply output terminal 409 is equal to twice the input voltage.
For example, as shown in fig. 7, fig. 7 is a schematic structural diagram and an equivalent circuit diagram of another charge pump provided in the embodiment of the present application, and the charge pump 200 may include a switch 601, a switch 602, a switch 603, and a switch 604, a capacitor 605, a capacitor 606, a capacitor 609, and a capacitor 610. The charge pump 200 can control the switches 601, 602, 603, and 604 to operate at different switching frequencies by the switch control signal, so as to control the charging and discharging frequencies of the capacitors 605, 606, 609, and 610 to generate output voltages of different levels. In the first stage, the switch 601, the switch 602, the switch 603, and the switch 604 are controlled to operate, so that the capacitor 605 and the capacitor 606 are connected in series, and the capacitor 605 and the capacitor 606 are charged so that the voltages across the capacitor 605 and the capacitor 606 are equal to the input voltage of the power input terminal 608, and the voltages across the capacitor 605 and the capacitor 606 are each half of the input voltage. In the second stage, the switch 601, the switch 602, the switch 603 and the switch 604 are controlled to operate, so that the capacitor 605 and the capacitor 606 are connected in parallel, the capacitor 610 is charged by the capacitor 609, the capacitor 605 and the capacitor 606, and the output voltage of the power output end 607 is equal to 1.5 times of the input voltage.
The above is only an illustrative example, and the specific structure, the level and the number of the output voltages of the charge pump can be set according to the voltage requirement of the audio output module. For an understanding of the structure and principles of charge pumps, reference may be made to the prior art, and the present embodiments are not limited thereto.
When the frequencies of the switching control signals output to the charge pump 200 by the control module 100 are different, the switching elements (switches) in the charge pump 200 operate at different switching frequencies, and can control the energy storage elements (capacitors) to charge and discharge at different charging and discharging frequencies, when the frequency of the switching control signals is high, the charge pump 200 outputs a high voltage, and when the frequency of the switching control signals is low, the charge pump 200 outputs a low voltage.
In this embodiment, the audio output module 300 may amplify the audio signal to obtain a target audio signal, and output the target audio signal. In combination with the above example, if the audio processing circuit is an audio output unit in a mobile phone, the audio input end of the audio output module 300 may be connected to an audio signal output port in the mobile phone to obtain an audio signal to be output. For example, as shown in fig. 8, fig. 8 is a schematic structural diagram of an audio output module provided in this embodiment of the present application, and the audio output module 300 may include a first power amplifier 701 and a first player 702, where the first power amplifier 701 and the first player 702 (e.g., a loudspeaker) form a set of amplifying circuits for outputting a left channel in an audio signal, and a second power amplifier 703 and a second player 704, where the second power amplifier 703 and the second player 704 form a set of amplifying circuits for outputting a right channel in the audio signal. The audio input end of the first power amplifier 701 is connected to the left channel port of the audio signal output port, and the audio input end of the second power amplifier 703 is connected to the right channel port of the audio signal output port. In each power amplifier, the positive power input 706 is connected to the positive power output (e.g., power output 409 in fig. 4 and 5) of the charge pump 200, and the negative power input 705 is connected to the negative power output (e.g., power output 209 in fig. 2) of the charge pump 200 to provide voltage for the power amplifiers and players in each set of amplifying circuits. The first power amplifier 701 outputs the sound of the left channel through the first player 702 after amplifying the left channel in the audio signal, and the second power amplifier 703 outputs the sound of the right channel through the second player 704 after amplifying the right channel in the audio signal, thereby realizing the amplified output of the audio signal.
The above is merely an exemplary example, the audio output module may be an analog circuit module with an audio output function, which is composed of basic electronic elements such as a diode, a triode, a resistor, a capacitor, and the like, and when the audio output module is an analog circuit module, the audio output module may first convert an acquired digital audio signal into an analog audio signal, and then amplify and output the analog audio signal. Or, the audio output module may also be a digital circuit module with an audio output function, and the specific structure of the audio output module may be set according to actual requirements, which is not limited in this embodiment.
It should be noted that the schematic structural diagram of the charge pump and the audio output module provided in this embodiment is only a part of the audio processing circuit in an exemplary example, and the specific structures of the control module, the charge pump, and the audio output module, and the connection relationship among the three may be set correspondingly according to the function and structure of each module, which is not limited in this embodiment.
As shown in fig. 9, fig. 9 is an equivalent circuit diagram of the charge pump in fig. 3, and with reference to fig. 3, during the charging and discharging processes of the capacitor 205, F is the frequency of the switch control signal, the impedance in the circuit where the capacitor 205 is located is R, and the capacitance of the capacitor 205 is C, so that R is 1/(C × F), and the higher the frequency F is, the smaller the impedance R is, the higher the output voltage of the charge pump is, the higher the output voltage is, and the higher the power consumption of the charge pump is, the higher the power consumption of the audio processing circuit is.
In the prior art, the frequency of the switch control signal is kept unchanged when the audio signal with a fixed time length is output. For example, if the time length of the audio signal is 3 seconds, the frequency of the clock signal input to the charge pump is always 3Khz between 0 th and 3 th seconds, the charge pump controls the operation of the switching element at the frequency of 3Khz, the switching element is always operated at a high frequency, the switching loss of the charge pump is large, and the charge pump always outputs a high voltage corresponding to 3Khz, resulting in large power consumption of the entire audio processing circuit. In the audio signal with a fixed time length, if the amplitude value of the audio signal in a certain time period is low, the audio processing circuit outputs almost no sound, and at this time, a high voltage does not need to be provided for the audio output module. For example, between the 1 st second and the 2 nd second, if the amplitude value of the audio signal is lower than 0.1 mv (0.1 mv indicates that the amplitude value of the audio signal is low and the audio processing circuit has almost no sound output), it can be considered that the audio signal does not exist between the 1 st second and the 2 nd second, and the audio output module does not need a high voltage.
In the technical solution provided in this embodiment, the control module adjusts the frequency of the switching signal according to the amplitude value of the audio signal, so that the charge pump outputs voltages of different levels at different amplitude values of the audio signal. In combination with the above example, between the 0 th second and the 1 st second, and between the 2 nd second and the 3 rd second, the control module may output a switch control signal with a higher frequency to the charge pump, so that the charge pump outputs a higher voltage, and the audio output module outputs the audio signal normally. And between the 1 st second and the 2 nd second, the control module can output a switch control signal with lower frequency to the charge pump, and the switch element acts with lower frequency, so that the switching loss of the charge pump between the 1 st second and the 2 nd second is reduced, and the output voltage of the charge pump between the 1 st second and the 2 nd second is reduced, thereby reducing the power consumption of the audio processing circuit in the whole audio signal output process.
It should be noted that the control module may gradually adjust the frequency of the switch control signal according to the amplitude value of the audio signal, so that the output voltage of the charge pump may gradually change from large to small or from small to large. Alternatively, the control module may adjust and output the switch control signal with the corresponding frequency when the amplitude value of the audio signal is greater than or equal to a certain preset amplitude value and when the amplitude value of the audio signal is less than or equal to a certain preset amplitude value, so that the charge pump outputs the corresponding preset voltage value, which is not limited in this embodiment.
In summary, in this embodiment, the audio processing circuit may include a control module, a charge pump and an audio output module, where the control module is connected to the charge pump and configured to send a switch control signal to the charge pump. The charge pump is connected with the audio output module and used for supplying power to the audio output module. The audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump. The frequency of the switch control signal sent by the control module is adjusted through the amplitude value of the audio signal, so that the charge pump can act at a lower frequency when the amplitude value of the audio signal is lower, a lower voltage is output, the switching loss of the charge pump can be reduced, and meanwhile, the power consumption of the audio processing circuit in the whole audio signal output process is reduced.
Referring to fig. 10, fig. 10 is a flowchart illustrating steps of another method for controlling an audio processing circuit according to an embodiment of the present application, where the method may include,
step 1001, an audio signal is acquired.
Step 1002, detecting an amplitude value of the audio signal.
For example, as shown in fig. 11, fig. 11 is a schematic structural diagram of another audio processing circuit provided in the embodiment of the present application, and the control module 100 may include a peak detector 1001, an amplitude comparator 1002, and a charge pump controller 1003. The peak detector 1001 may detect an amplitude value of the acquired audio signal. For example, if the control module 100 is an analog circuit module, the control module 100 may include an analog-to-digital conversion circuit, and the peak detector 1001 may be an analog peak detection circuit. The input end of the peak detector 1001 may be connected to the output end of the analog-to-digital conversion circuit, the analog-to-digital conversion circuit converts the digital audio signal into an analog audio signal, and then inputs the analog audio signal into the peak detection circuit, and the peak detection circuit may detect the amplitude value of the audio signal. Alternatively, when the control module 100 is a digital circuit module, the peak detector 1001 may be an integrated circuit chip, and an input terminal of the peak detector 1001 may be connected to the audio signal output port to receive the digital audio signal and detect the amplitude value of the digital audio signal.
Step 1003, comparing the amplitude value with a preset amplitude value condition to obtain a comparison result.
In this embodiment, the amplitude comparator 1002 may compare the amplitude value with a preset amplitude value condition to obtain a comparison result. For example, the preset amplitude value condition may be a preset voltage value, and the amplitude comparator 1002 may compare the amplitude value of the audio signal with the preset voltage value. If the control module 100 is an analog circuit module, the amplitude comparator 1002 may be a voltage comparator, and an input terminal of the amplitude comparator 1002 may be connected to an output terminal of the peak detector 1001 to obtain an amplitude value of the audio signal output by the peak detector 1001. The amplitude comparator 1002 may compare the amplitude value of the audio signal with a preset voltage value to determine a magnitude relationship between the amplitude value of the audio signal and the preset voltage value, so as to obtain a corresponding comparison result. Alternatively, when the control module 100 is a digital circuit module, the amplitude comparator 102 may be a digital comparator, the preset voltage value may be a preset digital voltage value, and the amplitude value of the digital audio signal and the preset digital voltage value may be input into the digital comparator to determine the magnitude relationship between the amplitude value of the audio signal and the preset voltage value, so as to obtain a corresponding comparison result.
For example, if the amplitude value of the audio signal is smaller than the preset voltage value, the amplitude comparator 1002 may output a first instruction, the first instruction may be a low-level signal, for example, and if the amplitude value of the audio signal is greater than or equal to the preset voltage value, the amplitude comparator 1002 may output a second instruction, the second instruction may be a high-level signal corresponding to the low-level signal. Alternatively, the comparison result may be different codes, for example, if the amplitude value of the audio signal is greater than or equal to the preset voltage value, the amplitude comparator 1002 may output the code 001; if the amplitude value of the audio signal is smaller than the predetermined voltage value, the amplitude comparator 1002 may output the code 010. The specific form of the comparison result may be set according to the requirement, and this embodiment is not limited to this.
And 1004, adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result.
In this embodiment, the charge pump controller 1003 may output a switching control signal with a corresponding frequency according to the comparison result output by the amplitude comparator 1002. For example, a clock circuit may be included in the charge pump controller 1003, and an input terminal of the charge pump controller 1003 may be connected to the output terminal of the amplitude comparator 1002 to receive the first instruction and the second instruction output by the amplitude comparator 1002, and control the clock circuit to generate a clock signal having a frequency corresponding to the first instruction and the second instruction, respectively. The charge pump controller 1003 may control the oscillator to generate a clock signal having a frequency of 1Khz when receiving the first instruction output by the amplitude comparator 1002, and may control the oscillator to generate a clock signal having a frequency of 3Khz when receiving the second instruction output by the amplitude comparator 1002.
The above are merely exemplary examples, and the specific types and structures of the peak detector, the amplitude comparator and the charge pump controller may be designed according to the specific structure and type of the control module, which is not limited in this embodiment.
In this embodiment, the control module includes a peak detector, an amplitude comparator and a charge pump controller, and can sequentially detect and compare the amplitude value of the audio signal, and output the switch control signal with the corresponding frequency, so as to obtain the switch control signal corresponding to the amplitude value of the audio signal, thereby reducing the power consumption of the audio processing circuit.
Optionally, step 1004 may be implemented as follows:
under the condition that the amplitude value is smaller than a preset threshold value, adjusting the frequency of the switch control signal to be a first frequency;
under the condition that the amplitude value is greater than or equal to the preset threshold value, adjusting the frequency of the switch control signal to be a second frequency; the first frequency is less than the second frequency.
In this embodiment, the preset threshold may be a preset amplitude value, and when the amplitude value of the audio signal is greater than or equal to the preset threshold, it may be determined that the amplitude value of the audio signal is higher, and the audio output module needs higher voltage to output the audio signal; when the amplitude value of the audio signal is smaller than the preset threshold value, it can be determined that the amplitude value of the audio signal is lower, and the audio output module does not need a higher voltage.
In combination with the above example, the amplitude comparator 1002 may output the first instruction when the amplitude value of the audio signal is less than the preset threshold, and output the second instruction when the amplitude value of the audio signal is greater than or equal to the preset threshold. The charge pump controller 1003 may output a clock signal of a first frequency (1Khz) according to the first instruction, and output a clock signal of a second frequency (3Khz) according to the second instruction. Accordingly, the charge pump 200 may output a first voltage according to the clock signal with the first frequency when the amplitude value of the audio signal is smaller than the preset threshold, so as to provide the first voltage for the audio output module 300. And when the amplitude value of the audio signal is greater than or equal to the preset threshold, outputting a second voltage according to the clock signal of the second frequency to provide the second voltage for the audio output module 300. The audio output module 300 may output the audio signal when the amplitude value of the audio signal is less than the preset threshold according to the first voltage, and output the audio signal when the amplitude value of the audio signal is greater than or equal to the preset threshold according to the second voltage.
In practical application, a preset threshold value is set, when the amplitude value of an audio signal is smaller than the preset threshold value, the charge pump outputs a first voltage according to the switch control signal of the first frequency, and when the amplitude value of the audio signal is larger than or equal to the preset threshold value, the charge pump outputs a second voltage according to the switch control signal of the second frequency, so that the power consumption of the audio processing circuit is reduced, and meanwhile, the circuit design can be simplified.
Optionally, the method may further include:
the difference between the lowest frequency and the highest frequency of the control switch control signal does not exceed a preset difference, so that the output voltage ripple of the charge pump is within the voltage ripple range required by the audio output module.
In this embodiment, the charge pump controller 1003 may further control a difference between a lowest frequency and a highest frequency of the switch control signal not to exceed a preset difference, so that the output voltage ripple of the charge pump 200 is within a voltage ripple range required by the audio output module 300. For example, referring to fig. 4, if the maximum frequency of the clock signal output by the charge pump controller 1003 is F1, the minimum frequency is F2. The constant current of the capacitor 205 is I, the difference Δ V between the maximum voltage corresponding to the maximum frequency F1 and the minimum voltage corresponding to the minimum frequency F2 is I/(C × F1) -I/(C × F2), and the difference between F1 and F2 may not exceed a preset difference, so that Δ V is less than or equal to the maximum voltage ripple of the audio output module, and the voltage ripple output by the charge pump is within the voltage ripple range required by the audio output module. The preset difference value can be set according to the voltage ripple requirement of the audio output module, and this embodiment does not limit this. Wherein C is a capacitance value.
The embodiment of the invention aims to reduce the frequency of a switch in a charge pump and reduce the conversion of electric energy into heat energy, and an ideal design is that the voltage is not required to be changed, but the characteristic of a switch capacitor, R is 1/(C F), and the impedance R of the switch capacitor is changed along with the change of the frequency F of the switch capacitor, so that the output voltage is changed.
In practical application, the lowest frequency and the highest frequency of the switch control signal are controlled, so that the output voltage ripple of the charge pump is within the voltage ripple range required by the audio output module, the efficiency of the charge pump can be improved, and the interference of overlarge voltage ripple on the audio output module can be avoided.
Optionally, the lowest frequency corresponding to the switch control signal may be set according to the sampling frequency of the audio signal corresponding to the audio processing circuit. For example, in the design process of the audio processing circuit, the sampling frequency of the audio signal corresponding to the audio processing circuit may be set to 192 Khz. At this time, the frequency of the clock signal output by the charge pump controller 1003 may be set to 96Khz or more (one-half of the sampling frequency). The frequency of the switch control signal is set to be more than or equal to one half of the sampling frequency of the audio processing circuit, so that noise in the charge pump can be prevented from entering the audio output module, and the stability of the audio output module is improved.
Referring to fig. 12, fig. 12 is a block diagram of a control device of an audio processing circuit according to an embodiment of the present application, where the device 1200 may include: an audio signal acquisition module 1201 and a signal frequency adjustment module 1202.
The audio signal obtaining module 1201 is configured to obtain an audio signal.
The signal frequency adjusting module 1202 is configured to adjust the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages.
It should be noted that the control device may be a functional device in the control module 100.
In summary, in this embodiment, the audio processing circuit may include a control module, a charge pump and an audio output module, where the control module is connected to the charge pump and configured to send a switch control signal to the charge pump. The charge pump is connected with the audio output module and used for supplying power to the audio output module. The audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump. The frequency of the switch control signal sent by the control module is adjusted through the amplitude value of the audio signal, so that the charge pump can act at a lower frequency when the amplitude value of the audio signal is lower, a lower voltage is output, the switching loss of the charge pump can be reduced, and meanwhile, the power consumption of the audio processing circuit in the whole audio signal output process is reduced.
Optionally, the signal frequency adjusting module 1202 may include: the device comprises a detection unit, a comparison unit and an adjustment unit.
The detection unit is used for detecting the amplitude value of the audio signal.
The comparison unit is used for comparing the amplitude value with a preset amplitude value condition to obtain a comparison result.
The adjusting unit is used for adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result.
Optionally, the adjusting unit is specifically configured to adjust the frequency of the switch control signal to be a first frequency when the amplitude value is smaller than the preset threshold; under the condition that the amplitude value is greater than or equal to the preset threshold value, adjusting the frequency of the switch control signal to be a second frequency; the first frequency is less than the second frequency.
Optionally, the adjusting unit is further configured to control a difference between a lowest frequency and a highest frequency of the switch control signal not to exceed a preset difference, so that an output voltage ripple of the charge pump is within a voltage ripple range required by the audio output module.
Optionally, as shown in fig. 13, fig. 13 is a schematic structural diagram of an electronic device according to an exemplary embodiment, where the electronic device 1300 includes a processor 1301, a memory 1302, and a program or an instruction stored in the memory 1302 and capable of running on the processor 1301, and when the program or the instruction is executed by the processor 1301, the program or the instruction implements each process of the data sharing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a schematic hardware structure diagram of another electronic device for implementing the embodiment of the present application.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The audio output unit 1403 is used to acquire an audio signal;
adjusting the frequency of a switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages.
In summary, in this embodiment, the audio processing circuit may include a control module, a charge pump and an audio output module, where the control module is connected to the charge pump and configured to send a switch control signal to the charge pump. The charge pump is connected with the audio output module and used for supplying power to the audio output module. The audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump. The frequency of the switch control signal sent by the control module is adjusted through the amplitude value of the audio signal, so that the charge pump can act at a lower frequency when the amplitude value of the audio signal is lower, a lower voltage is output, the switching loss of the charge pump can be reduced, and meanwhile, the power consumption of the audio processing circuit in the whole audio signal output process is reduced.
An audio output unit 1403 also for detecting the amplitude value of the audio signal;
comparing the amplitude value with a preset amplitude value condition to obtain a comparison result;
and adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result.
In this embodiment, the control module includes a peak detector, an amplitude comparator and a charge pump controller, and can sequentially detect and compare the amplitude value of the audio signal, and output the switch control signal with the corresponding frequency, so as to obtain the switch control signal corresponding to the amplitude value of the audio signal, thereby reducing the power consumption of the audio processing circuit.
The audio output unit 1403 is further configured to adjust the frequency of the switch control signal to be the first frequency when the amplitude value is smaller than the preset threshold;
under the condition that the amplitude value is greater than or equal to the preset threshold value, adjusting the frequency of the switch control signal to be a second frequency; the first frequency is less than the second frequency.
In practical application, a preset threshold value is set, when the amplitude value of the audio signal is greater than or equal to the preset threshold value, the charge pump outputs a first voltage according to the switch control signal of the first frequency, and when the amplitude value of the audio signal is smaller than the preset threshold value, the charge pump outputs a second voltage according to the switch control signal of the second frequency.
The audio output unit 1403 is further configured to control a difference between a lowest frequency and a highest frequency of the switch control signal not to exceed a preset difference, so that an output voltage ripple of the charge pump is within a voltage ripple range required by the audio output module.
In this embodiment, the lowest frequency and the highest frequency of the control switch control signal are controlled, so that the output voltage ripple of the charge pump is within the voltage ripple range required by the audio output module, the efficiency of the charge pump can be improved, and the interference of the overlarge voltage ripple on the audio output module can be avoided.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned embodiment of the audio processing circuit control method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Wherein, the processor is the processor in the audio output unit described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Claims (6)

1. The control method of an audio processing circuit is characterized in that the audio processing circuit comprises a control module, a charge pump and an audio output module; the control module is connected with the charge pump and used for sending a switch control signal to the charge pump; the charge pump is connected with the audio output module and used for supplying power to the audio output module; the audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump; the method comprises the following steps:
acquiring the audio signal;
adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages;
wherein the method further comprises:
setting the lowest frequency corresponding to the switch control signal according to the sampling frequency of the audio signal corresponding to the audio processing circuit;
the setting of the lowest frequency corresponding to the switch control signal comprises setting the frequency of the switch control signal to be more than or equal to one half of the sampling frequency of the audio processing circuit;
the adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal includes:
detecting an amplitude value of the audio signal;
comparing the amplitude value with a preset amplitude value condition to obtain a comparison result;
adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result;
the adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result includes:
under the condition that the amplitude value is smaller than a preset threshold value, adjusting the frequency of the switch control signal to be a first frequency;
under the condition that the amplitude value is greater than or equal to the preset threshold value, adjusting the frequency of the switch control signal to be a second frequency; the first frequency is less than the second frequency.
2. The control method according to claim 1, characterized by further comprising:
and controlling the difference between the lowest frequency and the highest frequency of the switch control signal not to exceed a preset difference so as to enable the output voltage ripple of the charge pump to be within the voltage ripple range required by the audio output module.
3. The control device of the audio processing circuit is characterized in that the audio processing circuit comprises a control module, a charge pump and an audio output module; the control module is connected with the charge pump and used for sending a switch control signal to the charge pump; the charge pump is connected with the audio output module and used for supplying power to the audio output module; the audio output module is used for acquiring an audio signal and outputting a processed target audio signal under the control of the charge pump; the device comprises:
the audio signal acquisition module is used for acquiring the audio signal;
the signal frequency adjusting module is used for adjusting the frequency of the switch control signal sent by the control module according to the amplitude value of the audio signal; the switch control signals with different frequencies are used for controlling the charge pump to generate different voltages;
wherein the apparatus is further configured to:
setting the lowest frequency corresponding to the switch control signal according to the sampling frequency of the audio signal corresponding to the audio processing circuit;
the setting of the lowest frequency corresponding to the switch control signal comprises setting the frequency of the switch control signal to be more than or equal to one half of the sampling frequency of the audio processing circuit;
the signal frequency adjustment module comprises:
a detection unit for detecting an amplitude value of the audio signal;
the comparison unit is used for comparing the amplitude value with a preset amplitude value condition to obtain a comparison result;
the adjusting unit is used for adjusting the frequency of the switch control signal according to the frequency corresponding to the comparison result;
the adjusting unit is specifically configured to adjust the frequency of the switch control signal to a first frequency when the amplitude value is smaller than a preset threshold; under the condition that the amplitude value is greater than or equal to the preset threshold value, adjusting the frequency of the switch control signal to be a second frequency; the first frequency is less than the second frequency.
4. The apparatus of claim 3, wherein the adjusting unit is further configured to control a difference between a lowest frequency and a highest frequency of the switch control signal not to exceed a preset difference, so that an output voltage ripple of the charge pump is within a voltage ripple range required by the audio output module.
5. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method of controlling an audio processing circuit according to any of claims 1-2.
6. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the control method of an audio processing circuit according to any one of claims 1-2.
CN202011142847.5A 2020-10-22 2020-10-22 Control method and device of audio processing circuit, electronic equipment and readable storage medium Active CN112291680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011142847.5A CN112291680B (en) 2020-10-22 2020-10-22 Control method and device of audio processing circuit, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011142847.5A CN112291680B (en) 2020-10-22 2020-10-22 Control method and device of audio processing circuit, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112291680A CN112291680A (en) 2021-01-29
CN112291680B true CN112291680B (en) 2022-02-15

Family

ID=74424686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011142847.5A Active CN112291680B (en) 2020-10-22 2020-10-22 Control method and device of audio processing circuit, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112291680B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7808324B1 (en) * 2009-03-17 2010-10-05 Cirrus Logic, Inc. Operating environment and process position selected charge-pump operating mode in an audio power amplifier integrated circuit
US7830209B1 (en) * 2009-01-19 2010-11-09 Cirrus Logic, Inc. Signal level selected efficiency in a charge pump power supply for a consumer device audio power output stage
CN104883053A (en) * 2015-06-24 2015-09-02 上海芯望电子技术有限公司 Open-loop charge pump circuit capable of increasing output voltage ripple frequency
CN105119484A (en) * 2015-09-06 2015-12-02 北京兆易创新科技股份有限公司 Charge pump circuit
CN110049407A (en) * 2019-05-15 2019-07-23 昆腾微电子股份有限公司 Audio frequency apparatus and its control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI277853B (en) * 2005-03-03 2007-04-01 Novatek Microelectronics Corp Method for efficiency enhancement in a charge pump circuit and a charge pump control selector
CN109905813B (en) * 2019-04-10 2021-06-08 启攀微电子(上海)有限公司 Self-adaptive pseudo closed-loop charge pump circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7830209B1 (en) * 2009-01-19 2010-11-09 Cirrus Logic, Inc. Signal level selected efficiency in a charge pump power supply for a consumer device audio power output stage
US7808324B1 (en) * 2009-03-17 2010-10-05 Cirrus Logic, Inc. Operating environment and process position selected charge-pump operating mode in an audio power amplifier integrated circuit
CN104883053A (en) * 2015-06-24 2015-09-02 上海芯望电子技术有限公司 Open-loop charge pump circuit capable of increasing output voltage ripple frequency
CN105119484A (en) * 2015-09-06 2015-12-02 北京兆易创新科技股份有限公司 Charge pump circuit
CN110049407A (en) * 2019-05-15 2019-07-23 昆腾微电子股份有限公司 Audio frequency apparatus and its control method

Also Published As

Publication number Publication date
CN112291680A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
US7286021B2 (en) Low power random bit generator and random number generator
US7880548B2 (en) Headphone amplifier circuit
CN107257415B (en) Control method and device of proximity sensor, storage medium and mobile terminal
US20150378511A1 (en) Capacitive Voltage Information Sensing Circuit and Related Anti-Noise Touch Circuit
WO2018223252A1 (en) Proximity detection apparatus and method, proximity sensor, and terminal device
CN102945010B (en) Method and device for realizing automatic switching of sound source
KR20180049460A (en) Touch sensor controller
US11853098B2 (en) Detection circuit, touch control panel, and electronic apparatus
CN111369999B (en) Signal processing method and device and electronic equipment
CN109074145B (en) Power supply circuit and power supply method
CN113286239A (en) Voltage output method and device for microphone, microphone and electronic equipment
CN113253088B (en) Transistor gate oxide testing device and system
CN112291680B (en) Control method and device of audio processing circuit, electronic equipment and readable storage medium
CN116699296B (en) Load detection circuit and electronic device
CN112787607A (en) Power supply circuit, power supply control method, electronic device, and storage medium
US9866112B1 (en) Ultra-low power bandgap reference using a clocked amplifier
CN104917238A (en) Intelligent equipment, and method and device for controlling power supply of equipment
US20100275041A1 (en) Computer power supply and power status signal generating circuit thereof
CN113589882B (en) Clock frequency adjusting device and related product
CN110609646A (en) Signal processing method and device and electronic equipment
CN113709290B (en) Processing device, processing method and electronic equipment
CN204886223U (en) Device and smart machine of controlgear power supply
WO2020215321A1 (en) Voice broadcasting control method and apparatus, storage medium, and electronic device
CN112838626A (en) Electronic device, charging method thereof and readable storage medium
US9385593B2 (en) Suspend mode in charge pump

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