Voltage control method, circuit, computer program product and electronic equipment
By performing voltage peak detection and dynamic voltage control on the input signal of the gain device, the resource waste problem of the DC-DC boost converter during the low-amplitude signal input period is solved, and the system efficiency is improved and the output voltage without data distortion is achieved. match.
Patent Information
- Application Number
- CN202410660221.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-13
AI Technical Summary
In battery-powered high-power systems, typical DC-DC boost converters cause additional power consumption during low-amplitude signal input periods while maintaining a constant output voltage, resulting in a waste of resources.
By detecting the voltage peak of the input signal of the gain device, a voltage control signal is obtained, and based on this signal, the output voltage of the power supply of the gain device is dynamically controlled to match the changing trend of the input signal.
It improves system efficiency, reduces resource waste, ensures that data is not distorted, and optimizes the matching of power supply output voltage.
Smart Images

Figure CN118646378A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply control, voltage control methods, circuits, computer program products and electronic equipment. Background Art
[0002] In battery-powered high-power systems, such as audio equipment, audio amplifiers are often used to amplify audio input signals. Since typical batteries have limited voltage supply, direct current-direct current (DC-DC) boost converters are often used to boost the battery voltage to a higher voltage level to power the audio amplifier. In order to prevent clipping and distortion of the audio amplifier output signal, it is necessary to ensure that the output voltage of the DC-DC boost converter is higher than the audio signal and is maintained at a very high voltage value. Since the audio input signal amplitude varies, if the output voltage of the DC-DC boost converter is maintained at a high voltage when the amplifier is not distorted, it will cause additional power consumption during low-amplitude signal input, resulting in a large waste of resources. Summary of the invention
[0003] In order to solve the problem of resource waste caused by insufficient system efficiency, the present application provides a voltage control method, circuit, computer program product and electronic device.
[0004] In a first aspect, the present application provides a voltage control method, the method comprising: performing voltage peak detection on an input signal of a gain device to obtain a voltage control signal, wherein the voltage control signal includes an input peak value obtained by performing voltage peak detection on the amplitude of the input signal at multiple detection time points; controlling the output voltage of a power supply of the gain device according to the voltage control signal so that the output voltage matches the changing trend of the input signal.
[0005] In some embodiments of the first aspect above, a voltage peak value detection is performed on an input signal of a gain device to obtain a voltage control signal, including: at each detection time point, using a system gain, an adjustment coefficient, and a configurable constant term, performing a voltage calculation on the input signal to obtain an amplitude corresponding to the input signal at each detection time point; judging the amplitude corresponding to the input signal at each detection time point to determine an amplitude that meets a preset condition; and using the amplitude that meets the preset condition as the input peak value.
[0006] In some embodiments of the first aspect above, a voltage peak value detection is performed on an input signal of a gain device to obtain a voltage control signal, including: judging the amplitude corresponding to the input signal at each detection time point to determine the amplitude that meets a preset condition; and using the system gain, adjustment coefficient and configurable constant term to perform voltage calculation on the amplitude that meets the preset condition to obtain an input peak value.
[0007] In some embodiments of the first aspect above, the amplitude corresponding to the input signal at each detection time point is judged to determine the amplitude that meets the preset conditions, including: comparing the amplitude corresponding to each detection time point in the input signal with the current peak value corresponding to each detection time point in chronological order; if the current amplitude corresponding to the current detection time point in the input signal is greater than or equal to the current peak value corresponding to the current detection time point, using the current amplitude as the input peak value, and updating the current peak value with the current amplitude to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point of the current detection time point.
[0008] In some embodiments of the first aspect above, it also includes: if the current amplitude corresponding to the current detection time point in the input signal is smaller than the current peak value corresponding to the current detection time point, start timing from the current detection time point, and within a preset time length, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point in the input signal is smaller than the current amplitude, use the current amplitude as the input peak value; after reaching the preset time length, stop timing, and update the current peak value with the current amplitude to obtain an updated current peak value, and use the updated current peak value as the current peak value corresponding to the next detection time point after stopping timing.
[0009] In some embodiments of the first aspect above, it also includes: within a preset time length, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point is greater than or equal to the current amplitude and less than the current peak value, the amplitude corresponding to the subsequent detection time point is used as the input peak value; after reaching the preset time length, the timing is stopped, and the current peak value is updated with the amplitude corresponding to the subsequent detection time point to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the timing is stopped.
[0010] In some embodiments of the first aspect above, it also includes: within a preset time length, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point is greater than or equal to the current peak value, the timing is stopped, and the amplitude corresponding to the subsequent detection time point is used as the input peak value, and the current peak value is updated with the amplitude corresponding to the subsequent detection time point to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point of the subsequent detection time point.
[0011] In some embodiments of the first aspect above, the output voltage of the power supply of the gain device is controlled according to the voltage control signal, including: performing a preprocessing operation on the voltage control signal to obtain a voltage control optimization signal; controlling the output voltage of the power supply of the gain device according to the voltage control optimization signal; wherein the preprocessing operation includes at least one of a noise elimination process and an amplitude limitation process.
[0012] In some embodiments of the first aspect above, a preprocessing operation is performed on the voltage control signal to obtain a voltage control optimization signal, including: performing noise removal processing on the voltage control signal to obtain a first intermediate signal; performing amplitude limiting processing on the first intermediate signal to obtain a voltage control optimization signal.
[0013] In some embodiments of the first aspect above, the first intermediate signal is amplitude limited to obtain a voltage control optimization signal, including: adjusting the amplitude of the first intermediate signal greater than the first threshold to the first threshold, and adjusting the amplitude of the first intermediate signal less than the second threshold to the second threshold, to obtain the voltage control optimization signal.
[0014] In some embodiments of the first aspect above, the method further includes: performing delay processing on the input signal to obtain a delayed input signal.
[0015] In some embodiments of the first aspect above, delay processing is performed on the input signal, including: delay processing is performed on the input signal by using any one of filtering, caching, sampling rate change and digital-to-analog conversion.
[0016] In the second aspect, an embodiment of the present application provides a voltage control circuit, including: a voltage peak detection module, wherein the voltage peak detection module is used to perform voltage peak detection on the input signal of the gain device to obtain a voltage control signal, wherein the voltage control signal includes an input peak value obtained by performing voltage peak detection on the amplitude of the input signal at multiple detection time points; the voltage control signal is used to control the output voltage of the power supply of the gain device so that the output voltage matches the changing trend of the input signal.
[0017] In some embodiments of the second aspect above, the voltage peak detection module is also used to perform voltage calculation on the input signal at each detection time point using the system gain, adjustment coefficient and configurable constant term to obtain the amplitude of the input signal at each detection time point; judge the amplitude of the input signal at each detection time point to determine the amplitude that meets the preset conditions; and use the amplitude that meets the preset conditions as the input peak value.
[0018] In some embodiments of the second aspect above, the voltage peak detection module is also used to judge the amplitude corresponding to the input signal at each detection time point to determine the amplitude that meets the preset conditions; use the system gain, adjustment coefficient and configurable constant term to perform voltage calculation on the amplitude that meets the preset conditions to obtain the input peak value.
[0019] In some embodiments of the second aspect above, a preprocessing module is further included; the preprocessing module is used to perform a preprocessing operation on the voltage control signal to obtain a voltage control optimization signal; the power supply of the gain device controls the output voltage according to the voltage control optimization signal; wherein the preprocessing operation includes at least one operation of noise elimination processing and amplitude limitation processing.
[0020] In some embodiments of the second aspect above, the preprocessing module includes a noise reduction submodule and a limiter; the noise reduction submodule performs noise reduction processing on the voltage control signal to obtain a first intermediate signal; the limiter performs amplitude limiting processing on the first intermediate signal to obtain a voltage control optimization signal.
[0021] In some embodiments of the second aspect above, the first intermediate signal is amplitude limited by a limiter to obtain a voltage control optimization signal, including: adjusting the amplitude of the first intermediate signal greater than the first threshold to the first threshold, and adjusting the amplitude of the first intermediate signal less than the second threshold to the second threshold by the limiter to obtain the voltage control optimization signal.
[0022] In some embodiments of the second aspect above, the circuit further includes a delay unit, which performs delay processing on the input signal to obtain a delayed input signal.
[0023] In some embodiments of the second aspect above, the delay unit includes at least one of an upsampling filter, a downsampling filter, a first-in-first-out data buffer, a data buffer area, a shift register, and a digital-to-analog converter.
[0024] In a third aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the voltage control method of the first aspect is implemented.
[0025] In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a power supply, a gain device and the voltage control circuit of the second aspect above.
[0026] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0027] The voltage control method provided in the embodiment of the present application performs voltage peak detection on the input signal of the gain device to obtain a voltage control signal; then the output voltage of the power supply of the gain device is controlled according to the voltage control signal so that the output voltage matches the change trend of the input signal. In this way, by using the voltage control method provided in the embodiment of the present application to generate a voltage control signal, the output voltage of the power supply can be controlled so that the output voltage of the power supply is higher than the input signal and changes with the change of the input signal, thereby improving system efficiency and reducing resource waste while ensuring that the data is not distorted. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the steps of a voltage control method provided in an embodiment of the present application;
[0029] Figure 2A is a flow chart of a method for determining a voltage control signal provided by an embodiment of the present application;
[0030] Figure 2B is a flow chart of another method for determining a voltage control signal provided by an embodiment of the present application;
[0031] Figure 3 It is a schematic diagram of a peak extraction process provided by an embodiment of the present application;
[0032] Figure 4A is a flow chart of a peak detection method provided in an embodiment of the present application;
[0033] Figure 4B is another flow chart of a peak detection method provided in an embodiment of the present application;
[0034] Figure 5 is a flow chart of a method for optimizing a voltage control signal provided in an embodiment of the present application;
[0035] Fig. 6A This is a schematic diagram of an amplitude limitation process provided by an embodiment of the present application;
[0036] Figure 6B is another amplitude limitation processing schematic diagram provided in an embodiment of the present application;
[0037] Figure 7 It is a schematic diagram of an application scenario of a voltage control circuit provided in an embodiment of the present application;
[0038] Fig. 8A This is a schematic diagram of an effect achieved by the voltage control circuit provided in an embodiment of the present application;
[0039] Figure 8B This is another schematic diagram of the effect achieved by the voltage control circuit provided in the embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0041] Illustrative embodiments of the present application include, but are not limited to, a voltage control method, a circuit, a computer program product, and an electronic device.
[0042] As mentioned above, in order to improve system efficiency and reduce resource waste, in some optional embodiments, an adaptive boost circuit device is provided, which can dynamically control the voltage of the DC-DC boost converter based on the input signal, so that the voltage changes dynamically with the input signal. In the boost circuit device, the signal processing module obtains the maximum amplitude of the data by taking the envelope as the basis for selecting the boost voltage, so that the boost voltage can follow the power change of the input signal in time, thereby improving the power supply efficiency. However, the envelope is not optimized enough, resulting in insufficient voltage conversion efficiency.
[0043] In some other optional embodiments, a power driving device is provided, which can dynamically realize fast tracking of signals and can dynamically and quickly boost voltage according to the amplitude of input signals, thereby dynamically controlling the power supply voltage based on the input signals. However, the device includes a large number of data selectors and comparators, resulting in a complex circuit design and a large area.
[0044] In order to solve the above problems, the present application provides a voltage control method. Figure 1 The voltage control method provided in this application is described.
[0045] S101: Perform voltage peak detection on the input signal of the gain device to obtain a voltage control signal.
[0046] The gain device may include any electronic device having a power gain function, such as an audio amplifier. Accordingly, the input signal may be an audio signal.
[0047] In the embodiment of the present application, a voltage control signal is obtained by performing voltage calculation and peak detection on the input signal of the gain device, and the voltage control signal can reflect the change in the voltage amplitude of the input signal. The voltage calculation of the input signal of the gain device is mainly to prevent the output signal of the gain device from clipping and distortion, and to ensure that the output voltage of the power supply of the gain device is higher than the input signal of the gain device. In addition, the present application does not limit the order of the aforementioned voltage calculation and peak detection.
[0048] In the embodiment of the present application, the voltage control signal includes an input peak value obtained by performing voltage peak detection on the amplitude of the input signal at multiple detection time points. It can be understood that the input signal changes in real time, and the voltage control signal should be synchronized with the input signal as much as possible, so that the time difference between adjacent detection time points in the above-mentioned detection time points can be very small, so that the real-time detection of the input signal is realized, so as to adjust the output voltage of the power supply of the gain device in time according to the amplitude of the input signal.
[0049] S102: Controlling the output voltage of the power supply of the gain device according to the voltage control signal, so that the output voltage matches the variation trend of the input signal.
[0050] In the embodiment of the present application, since the voltage control signal is obtained based on the peak value of the input signal, the output voltage of the power supply of the gain device is controlled according to the voltage control signal, which can ensure that the output voltage of the power supply is always higher than the input signal and matches the changing trend of the input signal.
[0051] Therefore, the voltage control signal of the gain device is determined through the above steps S101 and S102. Then, the output voltage of the power supply of the gain device is controlled according to the voltage control signal, so that the output voltage can match the change trend of the input signal, and the system efficiency can be improved and the waste of resources can be reduced while ensuring that the data is not distorted.
[0052] As mentioned above, the present application does not limit the order of voltage calculation and peak value detection. Figure 2A and Figure 2B Two embodiments of step S101 are introduced respectively.
[0053] like Figure 2A As shown, in some embodiments, the above step S101 may include:
[0054] S1011: At each detection time point, the voltage of the input signal is calculated using the system gain, the adjustment coefficient and the configurable constant term to obtain the amplitude of the input signal at each detection time point.
[0055] In an optional implementation, the input signal may be calculated according to the following voltage calculation formula (1):
[0056] Vp1=Vp0*Gain*(1+A)+Head……(1)
[0057] Wherein, Vp0 represents the input signal; Gain represents the system gain, and the value of the system gain can be obtained from the system to which the method is applied; A represents the adjustment coefficient, which ranges from -1 to 1, and the specific value is determined according to the system efficiency required in the actual application; Head represents a configurable constant item, and the value of the configurable constant item is configured according to the actual situation and is not limited here; Vp1 represents the amplitude of the input signal at the detection time point.
[0058] It can be understood that adding the adjustment factor to the voltage calculation formula can save system power consumption.
[0059] S1012: Determine the amplitude of the input signal at each detection time point to determine the amplitude that meets the preset conditions.
[0060] The step S1012 will be described in detail below and will not be described here in detail.
[0061] S1013: Taking the amplitude that meets the preset condition as the input peak value.
[0062] It can be understood that steps S1011 to S1013 first calculate the voltage of the input signal of the gain device and then perform peak detection.
[0063] like Figure 2B As shown, in some other embodiments, the above step S101 may include:
[0064] S1011': judging the amplitude of the input signal corresponding to each detection time point, and determining the amplitude that meets the preset conditions.
[0065] The step S1011' will be described in detail below and will not be described here in detail.
[0066] S1012': Using the system gain, the adjustment coefficient and the configurable constant term, a voltage calculation is performed on the amplitude that meets the preset conditions to obtain an input peak value.
[0067] The voltage calculation process can refer to the above formula (1). At this time, Vp0 is substituted into the amplitude that meets the preset conditions, and accordingly, the calculated Vp1 is the input peak value.
[0068] It can be understood that steps S0111 ′ to S1012 ′ first perform peak detection on the input signal of the gain device and then perform voltage calculation.
[0069] It can be understood that the amplitude corresponding to each detection time point of the input signal described in step S1012 is calculated by voltage, while the amplitude corresponding to each detection time point of the input signal described in step S1011' is not calculated by voltage. However, the method of amplitude judgment and the method of determining the amplitude that meets the preset conditions are universal, so step S1012 and step S1011' can have the same embodiment.
[0070] The following takes step S1011' as an example to introduce two specific embodiments.
[0071] In the first embodiment, the above step S1011' may include: at each detection time point, determining the amplitude corresponding to each detection time point in the input signal as the input peak value corresponding to each detection time point, and obtaining an input peak value set. Here, since the corresponding amplitude is directly collected as the input peak value at each detection time point, multiple input peak values in the input peak value set finally obtained correspond to multiple detection time points one by one. For example, Figure 3As shown, multiple detection time points are t0, t1, t2, ..., at time t0, the amplitude V0 of the input signal corresponding to time t0 is taken as the input peak; at time t1, the amplitude V1 of the input signal corresponding to time t1 is taken as the input peak; at time t2, the amplitude V2 of the input signal corresponding to time t2 is taken as the input peak, and so on, to obtain the input peak value set [V0, V1, V2, ...].
[0072] In a second embodiment, the above step S1011' may include: at each detection time point, judging the amplitude corresponding to each detection time point in the input signal; taking the amplitude that meets the preset conditions as the input peak value, and obtaining an input peak value set. Specifically, in chronological order, the amplitude corresponding to each detection time point in the input signal is compared with the current peak value corresponding to each detection time point. Among them, the current peak value is constantly changing, and the current peak value corresponding to different detection time points may be different. Then, based on the comparison result, the amplitude that meets the preset conditions is taken as the input peak value, and the input peak value set is obtained.
[0073] like Figure 4A As shown, in chronological order, each detection time point is taken as the current detection time point in turn, and then the current amplitude corresponding to the current detection time point in the input signal is compared with the current peak value corresponding to the current detection time point. The specific comparison process refers to the following steps:
[0074] S401: Determine whether the current amplitude corresponding to the current detection time point is greater than the current peak value corresponding to the current detection time point.
[0075] In this step, it is determined whether the current amplitude corresponding to the current detection time point in the input signal is greater than the current peak value corresponding to the current detection time point. If the judgment result is that the current amplitude corresponding to the current detection time point in the input signal is greater than or equal to the current peak value corresponding to the current detection time point, step S402 is executed; if the judgment result is that the current amplitude corresponding to the current detection time point in the input signal is less than the current peak value corresponding to the current detection time point, step S403 is executed.
[0076] S402: Use the current amplitude as the input peak value, and use the current amplitude to update the current peak value.
[0077] In this step, when the current amplitude is greater than or equal to the current peak value, it means that the preset condition is met, and the current amplitude is used as the input peak value. At the same time, the current peak value is updated with the current amplitude to obtain the updated current peak value. The updated current peak value will be used as the current peak value corresponding to the next detection time point of the current detection time point.
[0078] It can be understood that the current peak value corresponding to the initial detection time point can be 0, that is, the current peak value corresponding to the initial detection time point can be directly used as the input peak value.
[0079] S403: Start timing from the current detection time point and record the maximum input amplitude.
[0080] Corresponding to the current amplitude corresponding to the current detection time point in the input signal being less than the current peak value corresponding to the current detection time point, timing is started from the current detection time point, and the maximum input amplitude in the input signal is recorded. It can be understood that within the preset time length of starting timing, the amplitude corresponding to the subsequent detection time point of the current detection time point also needs to be judged by step S401, so the maximum input amplitude may be the current amplitude, or it may be the amplitude corresponding to the subsequent detection time point of the current detection time point.
[0081] In one case, if it is determined that the amplitude corresponding to the subsequent detection time point of the current detection time point is greater than or equal to the current peak value, the maximum input amplitude is the amplitude corresponding to the subsequent detection time point, and the timing is stopped at this time, and the timing duration is reset to 0. The amplitude corresponding to the subsequent detection time point is used as the input peak value, and at the same time, the current peak value is updated with the amplitude corresponding to the subsequent detection time point to obtain the updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point of the subsequent detection time point. Then starting from step S401, the amplitude corresponding to the next detection time point is continuously detected. The subsequent steps do not need to be executed.
[0082] Except for the above cases, the subsequent steps S404 to S406 need to be performed to determine the input peak value.
[0083] S404: Determine whether the timing duration reaches a preset duration.
[0084] When the timing duration does not reach the preset duration, execute step S405; when the timing duration reaches the preset duration, execute steps S406 to S407.
[0085] S405: The current peak value remains unchanged.
[0086] During the timing process, the current peak value is not updated.
[0087] S406: Taking the maximum input amplitude as the input peak value, and using the maximum input amplitude to update the current peak value.
[0088] In one case, if the amplitudes corresponding to the subsequent detection time points of the current detection time point are all smaller than the current amplitude after the preset time length is reached, the maximum input amplitude is the current amplitude. That is, the current amplitude is used as the input peak value, the current peak value is updated with the current amplitude, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the timing is stopped.
[0089] In one case, if after the preset time length is reached, there is an amplitude corresponding to a subsequent detection time point of the current detection time point that is greater than or equal to the current amplitude and less than the current peak value, the amplitude corresponding to the subsequent detection time point is used as the input peak value. At the same time, the current peak value is updated with the amplitude corresponding to the subsequent detection time point, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the timing is stopped.
[0090] S407: Reset the timing duration.
[0091] When the timing duration reaches the preset duration or the current peak value is updated, the timing duration is reset.
[0092] It should be understood that when the timing duration reaches the preset duration or the current peak value is updated, the timing duration needs to be reset. If the timing is in progress when the current peak value is updated, the timing is stopped and the timing duration is reset regardless of whether the current timing duration reaches the preset duration. That is, the next timing starts from 0.
[0093] like Figure 4B As shown, it is a flowchart of another form of the second embodiment. In S401', the amplitude (input (Din)) corresponding to the current detection time point in the input signal and the current peak value (current Peak) are judged. If Din is greater than the current Peak, steps S402' and S407' are executed to update the input peak value (Peak) to Din, and then reset the counter and the maximum input value recorder, that is, the next timing starts from 0; if Din is less than or equal to the current Peak, steps S403' to S407' are executed, the timer starts timing, and the maximum input value recorder records the maximum input amplitude (Din_max). When the timer does not reach the set window time, the Peak value remains unchanged; when the timer reaches the set window time, the Peak value is updated to Din_max and the timer and the maximum input value recorder are reset.
[0094] like Figure 5 As shown, in some embodiments, the above S102 may include:
[0095] S1021: Perform preprocessing operations on the voltage control signal to obtain a voltage control optimization signal.
[0096] The preprocessing operation includes at least one of noise elimination and amplitude limiting. Noise elimination can eliminate or weaken the noise interference in the signal and improve the quality and reliability of the signal. Amplitude limiting can adjust the dynamic range of the signal, limit the peak amplitude of the signal, prevent signal overload and transient interference, and avoid signal distortion and damage by limiting the signal within a certain range.
[0097] S1022: Control the output voltage of the power supply of the gain device according to the voltage control optimization signal.
[0098] In a specific example, the voltage control signal is first subjected to noise elimination processing to obtain a first intermediate signal; and then the first intermediate signal is subjected to amplitude limitation processing to obtain a voltage control optimization signal.
[0099] Exemplarily, the voltage control signal can be smoothed and filtered, for example, by smoothing and filtering the voltage control signal through a filter, thereby eliminating the noise in the signal and obtaining the first intermediate signal. In a special case, the filter includes two adders, a multiplier and a delay device, and its transfer function can be expressed as y[n]=A*x[n]+B*y[n-1], where y[n] represents the output of the filter at the current moment, x[n] represents the input of the filter at the current moment, y[n-1] represents the output of the filter at the previous moment, and A and B are constants.
[0100] Exemplarily, an averaging operation may also be performed on the voltage control signal to eliminate noise in the signal and obtain a first intermediate signal.
[0101] In an optional embodiment, the first intermediate signal is amplitude limited to obtain a voltage control optimization signal, including: adjusting the amplitude of the first intermediate signal greater than the first threshold to the first threshold, and adjusting the amplitude of the first intermediate signal less than the second threshold to the second threshold, to obtain the voltage control optimization signal.
[0102] Fig. 6A and Figure 6B Two methods of amplitude limiting processing are shown, the first threshold can be used as the upper limit of the amplitude limiting processing, and the second threshold can be used as the lower limit of the amplitude limiting processing. Fig. 6A As shown, the upper limit and the lower limit can be preset fixed parameters. During the amplitude limiting process, the part of the first intermediate signal that is greater than the upper limit is adjusted to be equal to the upper limit, and the part of the first intermediate signal that is less than the lower limit is adjusted to be equal to the lower limit, thereby achieving the voltage amplitude of the first intermediate signal being limited within a certain range.
[0103] like Figure 6B As shown, the upper and lower limits can also be variables provided by the power supply, and the variables are dynamically adjusted and updated according to the state of the system. Fig. 6A The process is the same as in , and will not be repeated here.
[0104] In an optional implementation, the voltage control method in the present application may further include: delaying the input signal to obtain a delayed input signal.
[0105] In this step, the purpose of the delay processing operation is to input the input signal into the gain device after the above voltage control optimization signal is generated. It should be noted that in hardware devices, it is generally necessary to delay the input signal. When the voltage control method is used in software, such as algorithm applications, the input signal may not be delayed.
[0106] In an optional implementation, the input signal is delayed, including delaying the input signal by any one of filtering, caching, sampling rate change, and digital-to-analog conversion.
[0107] In summary, the voltage control method provided in the embodiment of the present application obtains a voltage control signal by performing peak detection, voltage calculation and other processing on the input signal of the gain device, and controls the output voltage of the power supply of the amplifier according to the voltage control signal, so that the output voltage matches the change trend of the input signal and is higher than the input signal. While ensuring that the output signal of the amplifier is not distorted, the system efficiency is also improved and resource waste is reduced.
[0108] The present application also provides a voltage control circuit. Figure 7 A voltage control circuit provided in an embodiment of the present application is described. Figure 7 An application scenario of a voltage control circuit provided in an embodiment of the present application is shown. In this embodiment, the voltage control circuit is applied to a battery-powered audio device.
[0109] exist Figure 7 The application scenario shown includes a voltage control circuit, a battery (not shown in the figure), a DC-DC boost converter 501 and an audio amplifier 502. The voltage control circuit includes a peak detection module 503, a voltage calculation module 504, a noise reduction module 505, a limiter 506 and a delay unit 507. Among them, the voltage peak detection module mentioned in the present application may include a peak detection module 503 and a voltage calculation module 504.
[0110] In some embodiments, the peak detection module 503 is used to perform peak detection on the audio input signal of the audio amplifier to obtain the peak signal Vp0; the voltage calculation module 504 is used to perform voltage calculation based on the peak signal to obtain the voltage control signal Vp1; the noise elimination module 505 and the limiter 506 are used to perform preprocessing operations on the voltage control signal Vp1 to obtain the voltage control optimization signal Vps; the delay unit 507 is used to delay the audio input signal to obtain the delayed audio input signal (i.e., the delayed signal). The DC-DC boost converter 501 is used to control the voltage VBAT provided by the battery based on the voltage control optimization signal Vps output by the voltage control circuit to obtain the voltage PVDD, and to power the audio amplifier 502 based on the voltage PVDD; the audio amplifier 502 amplifies the delayed signal and obtains the output signal Vout.
[0111] It can be understood that the peak signal Vp0 includes an input peak set obtained by detecting the audio input signal at multiple detection time points. The peak detection module 503 determines the amplitude corresponding to each detection time point in the audio input signal at each detection time point, and takes the amplitude that meets the preset conditions as the input peak value to obtain the input peak set. The specific peak detection process of the peak detection module 503 is as follows: Figure 4A As shown, the peak signal Vp0 is obtained by executing steps S401 to S407, which will not be repeated here. The peak detection module 503 includes a timer and a maximum input value recorder. The timer is used to start timing when the peak value decreases. A preset time length, i.e., a window time, can be set for the timer. Whenever the timing reaches the window time, the current peak value is updated. The window time can be set to any time within the range of 0.1 seconds to 10 seconds, and can also be configured according to the actual application. The maximum value recorder is used to record the input peak value.
[0112] It can be understood that the voltage calculation module 504 performs voltage calculation based on the peak signal Vp0. The specific voltage calculation formula can be the above formula (1). The parameters involved in formula (1) and the specific meanings of each parameter can be found in the previous description of the formula and will not be repeated here.
[0113] It can be understood that the noise elimination module 505 and the limiter 506 perform preprocessing operations on the voltage control signal Vp1 to obtain the voltage control optimization signal Vps, including: the noise elimination module 505 first performs noise elimination processing on the voltage control signal Vp1 to obtain the first intermediate signal Vp2; the limiter 506 then performs amplitude limiting processing on the first intermediate signal Vp2 to obtain the voltage control optimization signal Vps.
[0114] Exemplarily, the noise elimination module 505 may be a smoothing filter, which may smooth the voltage control signal Vp1 through a transfer function y[n]=A*x[n]+B*y[n-1], thereby eliminating noise in the signal and obtaining a first intermediate signal Vp2.
[0115] Exemplarily, the noise elimination module 505 may also be a mean filter, which may perform a mean operation on the voltage control signal Vp1, thereby eliminating noise in the signal and obtaining the first intermediate signal Vp2.
[0116] Exemplarily, the noise elimination module 505 may also be a low-pass filter, which performs low-pass filtering on the voltage control signal Vp1 to eliminate noise in the signal and obtain the first intermediate signal Vp2.
[0117] The process of the amplitude limiter 506 performing amplitude limiting processing on the first intermediate signal Vp2 can be referred to Fig. 6A and Figure 6B , which is the same as the above-mentioned amplitude limitation processing process and will not be repeated here.
[0118] It should be understood that the delay unit 507 can delay the audio input signal to obtain a delayed signal. The delay unit is used to provide a delay effect, the purpose of which is to input the audio input signal into the audio amplifier 502 after the voltage control optimization signal Vps is generated.
[0119] In an optional embodiment, the delay unit 507 may include at least one of an upsampling filter, a downsampling filter, a first-in-first-out data buffer, a data buffer area, a shift register, and a digital-to-analog converter, and use any one of filtering, caching, sampling rate change, and digital-to-analog conversion to delay the audio input signal.
[0120] After receiving the voltage control optimization signal Vps, the DC-DC boost converter 501 converts the voltage VBAT provided by the battery based on the voltage control signal Vps, outputs the voltage PVDD and powers the audio amplifier 502 based on the voltage PVDD, and the audio amplifier 502 amplifies the delayed signal and obtains the output signal Vout.
[0121] The output voltage PVDD and output signal Vout curves can be referred to Fig. 8A and Figure 8B , Fig. 8A This is the case when the output signal is a high frequency signal. Figure 8BIn the case where the output signal Vout is a low-frequency signal, it can be seen that the voltage PVDD keeps consistent with the change trend of the output signal and is always higher than the output signal Vout, which can prevent the output signal Vout from clipping and distortion, thus avoiding resource waste and improving system efficiency.
[0122] It should be understood that the voltage control circuit provided by the present application includes at least a peak detection module and a voltage calculation module, and may include at least one of a delay unit, a noise elimination module and a limiter, or may not include these modules. The present application only requires that the peak detection module be located before the noise elimination module, and does not limit the order of other modules in the circuit, and can be freely combined.
[0123] The voltage control circuit provided in the present application generates a signal Vps (i.e., a voltage control optimization signal) based on an audio input signal. The battery converts the power supply voltage according to the signal Vps through a DC-DC boost converter to obtain a controlled output voltage, and supplies power to the audio amplifier based on the output voltage. The output voltage changes dynamically with the audio input signal and is always higher than the audio input signal. There is no need to maintain a constant voltage when ensuring that the audio amplifier is not distorted, which avoids generating additional power during the input of low-amplitude signals and improves system efficiency.
[0124] The voltage control method and voltage control circuit provided in the present application can be applied not only to audio equipment, but also to any high-power system with a power supply and an amplifier, without limitation herein.
[0125] In an optional implementation, the present application further provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, the voltage control method involved in the above embodiment is implemented.
[0126] In an optional implementation, the present application further provides an electronic device, which includes a power supply, an amplifier, and the voltage control circuit involved in the above embodiments.
[0127] It will be understood that, as used herein, the term "module" may refer to or include an application specific integrated circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and / or memory that executes one or more software or firmware programs, a combinational logic circuit, and / or other appropriate hardware components that provide the described functionality, or may be part of these hardware components.
[0128] It can be understood that in each embodiment of the present application, the processor can be an application processor (application processor, AP), a digital signal processor (digital signal processor, DSP), a microcontroller, etc., and / or any combination thereof. According to another aspect, the processor can be a single-core processor, a multi-core processor, etc., and / or any combination thereof.
[0129] The various embodiments disclosed in the present application may be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application may be implemented as a computer program or program code executed on a programmable system, the programmable system including at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0130] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, an AP, a DSP, a microcontroller, an ASIC, or a microprocessor.
[0131] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0132] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0133] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0134] It should be noted that, in the examples and description of the present application, relational terms such as first and second, etc. are only used to distinguish one signal or parameter from another signal or parameter, and do not necessarily require or imply any such actual relationship or order between these signals or parameters. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise one" do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0135] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the present application.
Claims
1. A voltage control method, characterized in that: include: Performing voltage peak detection on an input signal of a gain device to obtain a voltage control signal, wherein the voltage control signal includes an input peak value obtained by performing voltage peak detection on the amplitude of the input signal at multiple detection time points; The output voltage of the power supply of the gain device is controlled according to the voltage control signal, so that the output voltage matches the variation trend of the input signal.
2. The method according to claim 1, characterized in that The step of performing voltage peak detection on the input signal of the gain device to obtain a voltage control signal comprises: At each detection time point, using the system gain, the adjustment coefficient and the configurable constant term, the voltage of the input signal is calculated to obtain the amplitude of the input signal at each detection time point; Determining the amplitude of the input signal at each detection time point to determine the amplitude that meets the preset conditions; The amplitude that meets the preset condition is used as the input peak value.
3. The method according to claim 1, characterized in that The step of performing voltage peak detection on the input signal of the gain device to obtain a voltage control signal comprises: Determining the amplitude of the input signal at each detection time point to determine the amplitude that meets the preset conditions; The input peak value is obtained by performing voltage calculation on the amplitude that meets the preset conditions by using the system gain, the adjustment coefficient and the configurable constant term.
4. The method according to claim 2 or 3, characterized in that: The step of judging the amplitude of the input signal at each detection time point to determine the amplitude that satisfies a preset condition includes: Comparing the amplitude corresponding to each detection time point in the input signal with the current peak value corresponding to each detection time point in sequence; If the current amplitude corresponding to the current detection time point in the input signal is greater than or equal to the current peak value corresponding to the current detection time point, the current amplitude is used as the input peak value, and the current peak value is updated with the current amplitude to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the current detection time point.
5. The method according to claim 4, characterized in that Also includes: If the current amplitude corresponding to the current detection time point in the input signal is less than the current peak value corresponding to the current detection time point, timing starts from the current detection time point, Within a preset time period, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point in the input signal is smaller than the current amplitude, the current amplitude is used as the input peak value; After reaching the preset time length, the timing is stopped, and the current peak value is updated with the current amplitude to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the timing is stopped.
6. The method according to claim 4, characterized in that Also includes: Within a preset time period, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point is greater than or equal to the current amplitude and less than the current peak value, the amplitude corresponding to the subsequent detection time point is used as the input peak value; After reaching the preset duration, the timing is stopped, and the current peak is updated with the amplitude corresponding to the subsequent detection time point to obtain an updated current peak, and the updated current peak is used as the current peak corresponding to the next detection time point after the timing is stopped.
7. The method according to claim 4, characterized in that Also includes: Within the preset time length, if it is detected that the amplitude corresponding to the subsequent detection time point of the current detection time point is greater than or equal to the current peak value, the timing is stopped, and the amplitude corresponding to the subsequent detection time point is used as the input peak value, and, The current peak value is updated with the amplitude corresponding to the subsequent detection time point to obtain an updated current peak value, and the updated current peak value is used as the current peak value corresponding to the next detection time point after the subsequent detection time point.
8. The method according to claim 1, characterized in that The controlling the output voltage of the power supply of the gain device according to the voltage control signal comprises: Performing a preprocessing operation on the voltage control signal to obtain a voltage control optimization signal; Controlling the output voltage of the power supply of the gain device according to the voltage control optimization signal; The preprocessing operation includes at least one of noise elimination processing and amplitude limitation processing.
9. The method according to claim 8, characterized in that The preprocessing operation is performed on the voltage control signal to obtain a voltage control optimization signal, including: Performing noise elimination processing on the voltage control signal to obtain a first intermediate signal; The first intermediate signal is subjected to amplitude limitation processing to obtain the voltage control optimization signal.
10. The method according to claim 9, characterized in that The performing amplitude limiting processing on the first intermediate signal to obtain the voltage control optimization signal includes: The amplitude of the first intermediate signal that is greater than the first threshold is adjusted to the first threshold, and the amplitude of the first intermediate signal that is less than the second threshold is adjusted to the second threshold, so as to obtain the voltage control optimization signal.
11. The method according to claim 1, characterized in that: The method further comprises: Delay processing is performed on the input signal to obtain a delayed input signal.
12. The method according to claim 11, characterized in that The delay processing of the input signal comprises: The input signal is subjected to the delay processing by any one of filtering, caching, sampling rate change and digital-to-analog conversion.
13. A voltage control circuit, characterized in that: include: Voltage peak detection module, where: The voltage peak detection module is used to perform voltage peak detection on the input signal of the gain device to obtain a voltage control signal, wherein the voltage control signal includes an input peak value obtained by performing voltage peak detection on the amplitude of the input signal at multiple detection time points; The voltage control signal is used by the power supply of the gain device to control the output voltage so that the output voltage matches the variation trend of the input signal.
14. The circuit according to claim 13, characterized in that The voltage peak detection module is further used to perform voltage calculation on the input signal at each detection time point using the system gain, the adjustment coefficient and the configurable constant term to obtain the amplitude of the input signal corresponding to each detection time point; Determining the amplitude of the input signal at each detection time point to determine the amplitude that meets the preset conditions; The amplitude that meets the preset condition is used as the input peak value.
15. The circuit according to claim 13, characterized in that The voltage peak detection module is further used to judge the amplitude of the input signal corresponding to each detection time point to determine the amplitude that meets the preset conditions; The input peak value is obtained by performing voltage calculation on the amplitude that meets the preset conditions by using the system gain, the adjustment coefficient and the configurable constant term.
16. The circuit according to claim 13, characterized in that It also includes a pre-processing module; The preprocessing module is used to perform a preprocessing operation on the voltage control signal to obtain a voltage control optimization signal; The power supply of the gain device controls the output voltage according to the voltage control optimization signal; The preprocessing operation includes at least one of noise elimination processing and amplitude limitation processing.
17. The circuit according to claim 16, characterized in that The pre-processing module includes a noise reduction submodule and a limiter; Performing noise elimination processing on the voltage control signal by the noise elimination submodule to obtain a first intermediate signal; The amplitude limiting device performs amplitude limiting processing on the first intermediate signal to obtain the voltage control optimization signal.
18. The circuit according to claim 17, characterized in that The step of performing amplitude limiting processing on the first intermediate signal by the amplitude limiter to obtain the voltage control optimization signal comprises: The amplitude of the first intermediate signal that is greater than a first threshold is adjusted to the first threshold, and the amplitude of the first intermediate signal that is less than a second threshold is adjusted to the second threshold through the limiter, so as to obtain the voltage control optimization signal.
19. The circuit according to claim 13, characterized in that The circuit further comprises a delay unit, which performs delay processing on the input signal to obtain a delayed input signal.
20. The circuit according to claim 19, characterized in that The delay unit includes at least one of an up-sampling filter, a down-sampling filter, a first-in-first-out data buffer, a data buffer area, a shift register, and a digital-to-analog converter.
21. A computer program product, characterized in that The method comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the voltage control method according to any one of claims 1 to 12 is implemented.
22. An electronic device, characterized in that: The electronic device comprises a power supply, a gain device and the voltage control circuit according to any one of claims 13 to 20.
