1. Technical Field
The present disclosure relates to audio devices especially utilizing an output amplifier connected to a speaker, the output amplifier capable of entering a saturation state.
2. Description of the Related Art
An audio device generally includes upstream stages, the main function of which is to process or to decode and to pre-amplify an audio signal stored in any support, for example, an internal memory, an optical disk, or any incident audio signal, and an output power amplifier, having the function of generating an analog audio signal adapted to output speakers.
The power of output signal VOUT is equal to the surface area delimited by the curve representative of the signal and by the straight line representing the midpoint, or common-mode D.C. voltage, of amplifier 1. This surface is shown by the hatched areas of
Thus, a clipping in case of a saturation implies to provide a speaker 3 capable of withstanding up to twice the nominal power of the output signal. This is regrettable and is contrary to today's miniaturization aims.
An alternative solution to the clipping of output audio signal VOUT in case of a saturation is thus desired.
A protection method, currently designated as “soft-clipping” in the art, which systematically rounds off, by filtering, the audio signal peaks, enables elimination of slight saturations. A disadvantage of this method is that it decreases the nominal power of the amplifier. Further, the signal is distorted, even when the amplifier is not saturated. This protection is further inefficient against strong saturations.
Automatic gain control methods, currently designated in the art as AGC, are also used. These methods include bringing too intense peaks of the audio signal down the maximum output amplitude VCC of amplifier 1. Means for measuring the average value of output voltage VOUT are connected to means for controlling the gain of amplifier 1. Such methods strengthen the low-amplitude portions of the signal and attenuate the strong portions. A disadvantage of this type of method is the loss of data as to the amplitude of the audio signal. Further, the measurement of the average value of voltage VOUT at the output of amplifier 1 delays the gain adjustment.
A maximum saturation rate in signal VOUT capable of being withstood by speaker 3 without causing any damage is generally determined (for example by simulation). It is thus desirable to be able to accurately determine the saturation rate of output signal VOUT. Existing solutions for measuring the saturation rate, especially based on measurements of the average level of output voltage VOUT, are inaccurate and introduce delays.
An embodiment of the present disclosure aims at providing a method enabling to accurately measure the saturation rate of an audio device output amplifier.
An embodiment of the present disclosure further aims at providing a method enabling to adapt the gain of the output amplifier to the measured saturation.
One embodiment of the present disclosure enables choosing the best compromise between the useful power transmitted by the application, the distortion of the sound signal, and the speaker protection.
The present disclosure applies such methods to audio devices in which the output amplifier is a class D amplifier.
Thus, an embodiment of the present disclosure provides a method for adjusting the gain of an audio output stage comprising a class D amplifier, this method including the steps of setting the gain to a nominal value, analyzing an output signal of the class D amplifier during successive clock periods, counting the number of clock periods among these successive periods during which the signal is in a state corresponding to a saturation of the stage, decreasing the gain if the number reaches, before the end of a first time interval, a value corresponding to a first percentage of the total number of clock periods of the first time interval, maintaining the gain constant if, at the end of a second time interval, different from the first interval, the number corresponds to a second percentage, comprised between the first percentage and a third percentage lower than the first percentage, of the total number of clock periods of the second time interval, and increasing the gain if, at the end of the second time interval, the number corresponds to a fourth percentage, lower than the third percentage, of the total number of clock periods of the second time interval.
According to an embodiment of the present disclosure the gain is decreased only if the gain is greater than a minimum value, and wherein the gain is increased only if the gain is smaller than its nominal value.
According to an embodiment of the present disclosure the second time interval is greater than the first time interval.
According to an embodiment of the present disclosure the frequency of the clock signal is at least ten times greater than the highest frequencies to be reproduced by the audio output stage.
According to an embodiment of the present disclosure the frequency of the clock signal ranges between 200 and 400 kHz.
According to an embodiment of the present disclosure the third percentage is equal to 0.
According to an embodiment of the present disclosure the first percentage ranges between 30 and 60 percent.
According to an embodiment of the present disclosure the first time interval ranges between 0.5 and 5 milliseconds.
According to an embodiment of the present disclosure the second time interval ranges between 7 and 20 milliseconds
According to an embodiment of the present disclosure the gain decrease and increase are performed by increments.
An embodiment of the present disclosure provides a device for adjusting the gain of an audio output stage comprising a class D amplifier, this device comprising a clock signal generator that generates a clock signal having successive clock periods, a circuit that analyzes, during successive clock periods, an output signal of the class D amplifier, a circuit that counts the number of clock periods, among these successive periods, during which the signal is in a state corresponding to a saturation of the stage, and a circuit adapted to decrease the gain if the number reaches, before the end of a first time interval, a value corresponding to a first percentage of the total number of clock periods of the first time interval, to maintain the gain constant if, at the end of a second time interval, different from the first interval, the number corresponds to a second percentage, comprised between the first percentage and a third percentage lower than the first percentage, of the total number of clock periods of the second time interval, and to increase the gain if, at the end of the second time interval, the number corresponds to a fourth percentage, lower than the third percentage, of the total number of clock periods of the second time interval.
An embodiment of the present disclosure provides a circuit comprising an amplifier structured to receive an audio signal as input and to provide an amplified audio signal on an output, the amplifier further configured to generate a temporary voltage on another output thereof; and a comparator circuit having a first input to receive the temporary voltage from the amplifier and to further receive a D.C. voltage and to output a comparison signal that is received at a latch circuit driven by a clock signal, and to output the comparison signal to a counter that is driven by the same clock signal as the latch circuit, the counter outputting an output value on an output thereof.
According to an embodiment of the present disclosure the comparator outputs the comparison signal at a high state when the temporary voltage signal exceeds the reference voltage, which is an indication the audio signal is in a saturation stage, and otherwise outputs a low comparison voltage signal when the audio signal is not in a saturation condition, the output of the counter having a value that indicates the number of clock periods during which the audio signal is in a saturation state.
According to an embodiment of the present disclosure the amplifier comprises a preamplifier that outputs the temporary voltage signal that is also received at a power stage in the amplifier, the power stage configured to output the output voltage signal.
According to an embodiment of the present disclosure the counter receives a reset signal that controls a resetting of the output value of the counter after a selected number of clock periods.
According to an embodiment of the present disclosure the amplifier is configured to output the output voltage as a series of pulses having an average value proportional to an amplitude of the audio signal at input at a given time.
The foregoing features and advantages of the present disclosure will be discussed in detail in the following non-limiting description of specific embodiments in connection with the accompanying drawings.
For clarity, the same elements have been designated with the same reference numerals in the different drawings. Further, the timing diagrams of
When signal VTMP exceeds voltage VTH corresponding to a saturation of amplifier 1, output signal VCOMP of comparator 15 is in a high state. When VTMP does not exceed voltage VTH, VCOMP is in a low state. At each rising clock edge, flip-flop 17 stores the state of output VCOMP of comparator 15. Thus, output CPT of counter 19 indicates the number of clock periods during which amplifier 1 is in a saturation state.
For a selected time interval, the percentage of the clock periods during which the amplifier is saturated is an accurate indication of the saturation rate of amplifier 1. The accuracy of the measurement is determined by the frequency of the clock signal. To have an accurate measurement, the frequency of the clock signal must be greater than the highest frequencies to be reproduced by the audio device. Preferably, the frequency of the clock signal must be at least 10 times greater than the highest frequencies to be reproduced by the audio device. A clock rated between 200 and 400 kHz may for example be used. Further, the time interval during which the saturation rate is determined must be sufficiently long to enable tolerating a certain amount of saturation in the signal provided to the speakers. Indeed, it may be advantageous, for increasing the emitted noise power, to tolerate a certain amount of saturation in the signal provided to the speakers. A clock rated at 250 kHz may for example be used, and the saturation rate may be measured over frequency intervals ranging between 0.5 and 20 ms, that is, from 125 to 5,000 clock periods.
The method for adjusting the gain according to the saturation includes the steps of:
The time interval during which saturation rate TSAT is measured may be set differently according to whether the decision resulting from this measurement is a decrease, a maintaining, or an increase of the gain. For example, a decrease or a maintaining of the gain will result from a measurement of the saturation rate over a time interval from 0.5 to 5 ms while a gain increase will result from a measurement of the saturation rate over a greater time interval, from 7 to 20 ms for example.
The saturation of amplifier 1 can thus be finely measured and the saturation rate of amplifier 1 can be adapted whatever the desired sound quality, transmitted power, and speaker protection criteria.
The measurement of the saturation rate TSAT consists in counting, during successive clock periods corresponding to a given time interval, the number of clock periods during which a signal is in a state corresponding to a saturation of the amplifier. In practice, as soon as this number reaches a value corresponding to a percentage of the total number of clock periods of the given time interval equals to the high saturation rate TSAT1, the gain may be decreased by one increment, even if the time interval has not ended. This enables efficiently protecting the output speakers.
An aspect of the present disclosure is to apply the above-described methods for measuring the saturation rate and adjusting the gain to the case where the output amplifier is a class D amplifier. In this case, the saturation measurement method is particularly efficient and simple to implement.
A class D amplifier is an amplifier having an output stage with power transistors used as switches. Output signal VOUT thus has discrete states. As will be discussed in further detail hereafter in relation with
In non-saturated operation (
As illustrated in
Thus, output CPT of counter 25 indicates the number of clock periods during which amplifier 21 is in the saturation state.
The saturation rate in amplifier 21 during a selected time interval can be accurately deduced therefrom.
Measurements of the saturation rate over time intervals ranging between 1 and 20 ms, that is, from 250 to 5,000 clock periods if a clock rated at 250 kHz is used, may be performed.
The present disclosure thus provides a method for measuring the saturation rate which particularly advantageously applies to audio devices including a class D output amplifier. Indeed, such devices already have a clock signal source and comparison means for providing a discrete signal characterized by pulse jumps each time the amplifier is in the saturation state. The implementation of the saturation rate determination method described herein then only requires the addition of a small number of logic gates to perform the functions of D flip-flop 23 and of counter 25.
Specific embodiments of the present disclosure have been described. Various alterations and modifications will occur to those skilled in the art. In particular, the phases and the levels of the previously described periodic signals may be inverted, and the circuits driven by clock signals may be triggered indifferently on rising edges or on falling edges of the clock. Further, the present disclosure is not restricted to the sole output stages including a D flip-flop and a counter such as described hereabove. It will be within the abilities of those skilled in the art to implement the desired operation whatever the device used to count the number of clock periods during which the amplifier is saturated. It will be within the abilities of those skilled in the art to implement the desired operation whatever the class of the output amplifier used.
The specific embodiment of the present disclosure previously described in relation with
On the other hand, examples of digital values have been given in the previous descriptions, especially relating to the clock frequencies and to the time intervals of measurement of the saturation rate. The present disclosure is not limited to these sole specific cases. It will be within the abilities of those skilled in the art to adapt the present disclosure for an easy implementation of an automatic gain control (AGC) method known in prior art.
Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the spirit and the scope of the present disclosure. Accordingly, the foregoing description is by way of example only and is not intended to be limiting. The present disclosure is limited only as defined in the following claims and the equivalents thereto.
The various embodiments described above can be combined to provide further embodiments. All of the U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet are incorporated herein by reference, in their entirety. Aspects of the embodiments can be modified, if necessary to employ concepts of the various patents, applications and publications to provide yet further embodiments.
These and other changes can be made to the embodiments in light of the above detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
09/52063 | Mar 2009 | FR | national |