1. Field of the Invention
This invention relates to Class-D amplifier circuits, especially to Pulse-Width-Modulated or Sigma-Delta Class-D amplifiers, with circuitry for reducing power consumption, and in particular to Class-D audio amplifiers.
2. Description of the Related Art
The output node at the common node of the two series switches is switched between the power supplies to provide a rail-to-rail square wave output with a duty cycle controlled to provide the desired output voltage. In some embodiments the output stage may be connected to a passive reactive smoothing filter 102 to provide low pass filtering of the output signal VOUT to a load 103. In some embodiments however the filter arrangement 102 may be omitted and the load 103 connected directly to the output stage, relying on inherent filtering in the load 103 itself.
The output stage 101 is controlled by a modulator 104 which receives the input signal SIN to be amplified and derives control signals for switching the output stage 101 in an appropriate switching cycle. In a PWM amplifier the output voltage may be fed back and compared/combined with the input signal SIN to derive an error signal. This error signal is passed through a loop filter 106 and then typically compared, by comparator 105, to a reference waveform to control the duty cycle of the output stage. Typically the reference waveform is a repeating ramped waveform such as a triangular or sawtooth type waveform. To provide the reference waveform a waveform generator 107 may receive a clock signal FIN at a switching frequency fSW which defines the ramp period. This clock signal FIN may also be used to reset the comparator 106. In such an arrangement the switching frequency fSW defines the overall switching cycle frequency of the output stage 101.
Such Class-D amplifiers can be ideally 100% efficient as the output is rail-to-rail and the filter 102, if present, contains only reactive components. In practice however there will be power losses, for example due to power consumption of the control circuitry, ohmic (I2R) losses associated with the non-zero resistance of the switch elements and power consumed in driving the control nodes of the switch devices. There may also be losses due to any overlap in on-time of the practical switches allowing shoot through current or underlap, i.e. excessive deadtime, when both switches are off and recirculating inductive current flows through a body diode associated with a switch with a diode drop loss.
It will of course be appreciated that
It would be desirable, especially for Class-D amplifiers used in battery powered devices such as portable electronic devices, to reduce power losses where possible.
Thus according to the present invention there is provided a Class-D amplifier circuit for amplifying an input signal comprising:
The frequency controller may comprise a comparator for comparing the indication of signal amplitude to at least one threshold and the frequency controller may be configured to control the frequency of the clock signal based on said comparison. The frequency controller may be configured to provide the first switching frequency if the indication of signal amplitude is above a first threshold and to provide the second switching frequency if the indication of signal amplitude is below the first threshold. The first threshold may correspond, for example, to a substantially quiescent input signal amplitude or to a signal input amplitude which is within a set range, say within 5-25%, of the maximum signal amplitude. In some embodiments the comparator may be configured to compare the indication of signal amplitude to a plurality of different thresholds, with each threshold corresponding to a different switching frequency.
The indication of the amplitude of the input signal may be an envelope value for the input signal and the amplifier circuit may comprise an envelope detector for monitoring the input signal and deriving said envelope value. In some embodiments the indication of the amplitude of the input signal may be a received volume control signal.
in some embodiments the indication of the amplitude of the input signal may derived from the output of said comparator. The circuit may comprise a pulse width monitor for determining the pulse width or duty cycle of pulses output from the comparator, wherein the pulse width or duty cycle provides said indication of the amplitude of the input signal. The pulse width monitor may comprise a counter clocked by a second clock signal wherein the second clock signal has a greater frequency than said first clock signal.
The indication of the amplitude of the input signal may additionally or alternatively be derived from a control signal output from said modulator for controlling the switches of the output stage or derived from an output of the output stage.
The second switching frequency may be substantially half of the frequency of the first switching frequency.
The frequency controller may comprise a clock generator for receiving an input clock signal and generating at least one additional clock signal from the input clock signal. The clock generator may comprise a frequency divider or frequency multiplier for generating the additional clock signals from the input clock signal. The input clock signal may be used as a clock signal at one of the first or second switching frequencies. The clock generator may comprise a multiplexor configured to receive a clock signal at the first switching frequency at a first input and a clock signal at the second switching frequency at a second input, wherein the output of the multiplexer is switched between its inputs based on the indication of amplitude of the input signal. The multiplexer may be controlled so that any switching of the output of the multiplexor between its inputs is timed so as to be substantially synchronised to a clock edge of both of the first and second clock signals.
The modulator may comprise a reference waveform generator for generating a ramped reference waveform at a frequency based on the first clock signal. The frequency controller may be configured such that any change in switching frequency is substantially synchronised to the top or bottom of the ramp of the reference voltage waveform. The reference waveform generator may be configured such that the amplitude of the reference waveform is substantially the same at both the first and second switching frequencies. The clock generator may therefore be configured to generate a gain control signal indicating any changes in said switching frequency and the reference waveform generator may be configured to receive the gain control signal and adjust the slope of the ramp waveform based on the gain control signal to compensate for any change in switching frequency. In some embodiments the reference waveform generator may comprise an integrator circuit connected to at least first and second current steering branches, each current steering branch comprising at least one current source for generating a charging or discharging current based on the first clock signal. In some embodiments the second current steering branch can be enabled or disabled based on the gain control signal. Additionally or alternatively at least one current source may be programmable based on the gain control signal. In some embodiments the reference waveform generator may comprise an integrator circuit comprising an op-amp and a first feedback capacitor wherein at least one additional feedback capacitor can be selectively connected in parallel with first feedback capacitor based on said gain control signal.
The frequency controller may be configured to implement the transition from the first switching frequency to the second switching frequency or the second switching frequency to from the first switching frequency over a period of time. The transition may implemented by a series of steps of change in switching frequency and/or for at least part of the transition the frequency controller may be configured to apply a gradual rate of change of switching frequency at the beginning and end of the transition and an increased rate of change in the middle of the transition. The transition may have a sinusoidal rate of change of switching frequency with time. The frequency controller may thus comprise a frequency modulator for controllably varying the first clock signal between a plurality of predetermined switching frequencies with the modulator controlling the change between predetermined switching frequencies to approximate a smooth transition in switching frequency between said first and second switching frequencies. The frequency modulator may comprise a sigma-delta modulator. The period of time of the transition in switching frequency may be between 0.1-0.5 ms inclusive.
The class-D amplifier circuit may be implemented as an integrated circuit and/or may form part of a driver circuit. The driver circuit may be arranged to drive at least one of: an audio transducer, a haptic transducer, an ultrasound transducer; or an electromechanical actuator or motor. The amplifier circuit as described may be implemented in an electronic device, which may be at least one of: a portable device; a battery powered device; a mobile communications device; a computing device; a gaming device; an audio device; or an ultrasonic device.
In another aspect of the invention there is provided a method of amplifying an input signal in a Class-D amplifier comprising:
The method of this aspect of the invention offers all of the same advantages and can be used with all of the variants as discussed above in relation to the first aspect of the invention.
In general, embodiments of the invention provide a Class-D amplifier circuit for amplifying a signal, the circuit comprising: an output stage; and a frequency controller for controlling the switching frequency of the output stage in response to an indication of the amplitude of the signal so as to provide a first switching frequency at a first signal amplitude and a second, lower, switching frequency at a second, lower, signal amplitude.
Also provided is a Class-D amplifier circuit comprising: an output stage; and a controller for controlling switching of the output stage to amplify an input signal wherein the controller is configured to switch the output stage with a first switching frequency at a first input signal amplitude and with a second, lower, switching frequency at a second, lower, input signal amplitude.
In another aspect there is a Class-D amplifier circuit comprising: an output stage; and a controller for controlling switching of said output stage to amplify an input signal wherein said controller is configured to reduce the switching frequency of the output stage for low amplitude input signals.
In a further aspect there is provided a Class-D amplifier circuit for amplifying an audio signal comprising: an output stage comprising at least first and second switches; a modulator comprising a signal input for receiving the audio signal and a clock input for receiving a first clock signal, the modulator being configured to control the duty cycles of the first and second switches based on said audio signal and a cyclic reference waveform, wherein the frequency of the cyclic reference waveform depends on the first clock signal; and a frequency controller for controlling the frequency of the first clock signal in response to an indication of the amplitude of the audio signal so as to provide a first frequency at a first audio signal amplitude and a second, lower, frequency at a second, lower, audio signal amplitude.
In a further aspect there is provided a Class-D amplifier circuit for amplifying an audio signal comprising: an output stage comprising at least first and second switches; a modulator comprising a signal input for receiving the audio signal and a clock input for receiving a first clock signal at a first clock frequency, the modulator being configured to generate a cyclic reference waveform at a frequency dependent on the first clock frequency and control the duty cycle, per cycle of said cyclic reference waveform, of the first and second switches based on said audio signal and the cyclic reference waveform, and a frequency controller for controlling the frequency of the first clock signal in response to an indication of the amplitude of the audio signal so as to provide a first frequency at a first audio signal amplitude and a second, lower, frequency at a second, lower, audio signal amplitude.
The invention will now be described by way of example only with respect to the following drawings, of which:
a and 8b illustrate simulated voltage transients caused by a change in switching frequency;
a and 9b illustrate simulated voltage transients caused by a transition in switching frequency over a time period and
a and 13b illustrates transient noise against period over which the frequency transition is implemented for an embodiment such as shown in
a and 17b illustrate two embodiments of Class D amplifier circuits with full bridge output stages.
As described above
For audio applications it has been appreciated that audio waveforms tend to have a high crest factor, i.e. the ratio of peak signal level to average r.m.s. signal level. Also it may be rare for an audio amplifier to be used at the maximum power, i.e. volume, setting. Thus, for audio applications, the power consumption at low to medium output power levels of a Class-D amplifier is important in determining the average overall power consumption of the amplifier in use.
One of the main contributions to power consumption at such low output power levels is typically the power consumption in driving the switches of the output stage, e.g. the charging (“CV2”) losses associated with driving the gate capacitance C of a MOSFET switch through a voltage V. These power losses occur every switching cycle and so are related to the switching frequency (f), i.e. the losses are proportional to fCV2. A lower switching frequency would therefore result in lower switching losses than a higher switching frequency. In addition other power losses may also be related to switching frequency, for example any losses due to shoot-through current may occur each switching cycle and thus may be lower at lower switching frequencies. It may therefore be beneficial to use a relatively low switching frequency. However the minimum switching frequency is determined by performance and stability considerations.
In theory a Class-D amplifier could be implemented in an open-loop configuration with a pulse width being derived which is proportional to the input signal value rather than an error signal. However the use of practical components with non-ideal switch resistances, charge injection etc. could result in errors in the transfer function leading to distortion in the output signal. The negative feedback loop suppresses these distortion components by a factor equal to the open-loop gain at the relevant frequencies.
The overall open-loop gain AOL depends on various factors such as the loop filter response, the conversion factor from the loop filter output to the duty cycle of the pulse appearing at the output of comparator 105 (which is dependent on the reference waveform ramp rate), the conversion from duty cycle to output voltage at the output stage (which is dependent on the output stage supply voltage), and also possibly any gain or attenuation (not illustrated) in the feedback path or in the adder. The shape of the frequency response of the loop may be defined primarily by the loop filter. The loop filter will have a frequency response that typically provides reduced open-loop gain with increasing signal frequency. For example a simple first-order loop filter may provide a gain roll-off of the order of 20 dB per decade.
Typically the loop filter response may be more complex and may for instance comprise a region with a second order slope of 40 db per decade as illustrated by the dotted line. This may provide increased loop gain at lower frequencies, and thus could potentially allow a lower value of fu, but stability considerations require this region to end at a corner frequency fc which is at least an octave or so below fu.
Conventionally therefore there is a minimum value which would be considered for the switching frequency of such a Class-D amplifier to ensure stability and thus a minimum to how low the fCV2 losses could be.
In embodiments of the present invention however the switching frequency may be varied based on an indication of the input signal amplitude with the switching frequency being reduced at low signal amplitudes to reduce power losses.
The first clock signal may be supplied by a frequency controller 301 which controls the switching frequency fSW in response to a characteristic of the input signal SIN so as to provide a first switching frequency at a first input signal amplitude and a second, lower, switching frequency at a second, lower, input signal amplitude. The first clock signal is passed to a waveform generator 302 to generate the required reference waveform, e.g. a triangular waveform. The waveform generator 302 in
It has been appreciated by the present inventors that the constraint that the switching frequency fSW of the Class D amplifier is greater than the unity gain frequency fu of the loop filter by a factor of at least π generally arises from a requirement that the slew rate of the filtered error signal does not exceed the ramp slope of the reference waveform. It has also been appreciated that when the input signal has a small amplitude the filtered error signal is smaller than when the input signal has a large amplitude. Thus the maximum slew rate of the filtered error signal is reduced and consequently a reduced slope of the reference waveform can be tolerated for low signal amplitudes. It has thus been appreciated that the switching frequency can be reduced at lower input signal amplitudes whilst still maintaining loop stability.
For a signal amplitude that reduces to zero, i.e. the quiescent signal condition with no input signal, the condition for loop stability drops to a requirement that the switching frequency be at least a factor of π/2 greater than the unity gain frequency.
Thus, in some embodiments, the switching frequency for small input signal amplitudes can be reduced by at least a factor of up to two (2) relative to the switching frequency for large input signal amplitudes. This can consequently reduce the power losses associated with switching, during moments of quiet in an audio track say, by up to a factor of two (2). In some embodiments, where the switching frequency for largest amplitude signals is greater than the required π.fu it may be possible to reduce such switching frequency by a factor of more than two (2) for the lowest amplitude input signals.
It should be noted however that especially for Class-D amplifier circuits which do not comprise a filter 102 there may be an additional constraint that the switching frequency should be such that the spectrum of the output square wave, which is centred around fSW, should fall in the inductive part of the load impedance—this is to avoid high frequency square waves of current flowing through the resistive components of the load which would lead to power dissipation and counteract any switching power efficiency savings. The switching frequency fSW should therefore be maintained well above the resistance/inductance corner frequency. For an example load (say 8 ohm resistance, 40 μH inductance) the corner frequency is around 30 kHz. The normal switching frequency for typical Class D amplifiers may typically be of the order of 384 kHz so this is not a significant constraint.
As mentioned the frequency controller 301 controllably varies the switching frequency based on an indication of the actual or expected input signal amplitude. In other words the frequency controller is responsive to a parameter which is related to the input signal amplitude. As illustrated in
In one embodiment the frequency control circuitry 301 is configured such that an input signal amplitude above the first threshold VTh leads to a first switching frequency fSW1 which is sufficient to ensure loop stability across the whole expected operating range of input signal amplitudes. The first switching frequency fSW1 may be set to meet the criterion that it is greater than, or equal, to π.fu where fu is the unity gain frequency for the loop filter. In some embodiments the first switching frequency fSW1 may be set to be relatively close to a value of π.fu so as to minimise switching losses at higher amplitude signals. In some embodiments however the first switching frequency fSW1 may be set to a convenient value based on other existing system clocks.
If the input signal SIN amplitude is below the first threshold VTh, a second, lower switching frequency fSW2 may be used. The first threshold VTh may be set so as to correspond to very low input signal levels, for instance corresponding substantially to silence. In other words the frequency controller 301 may be arranged to use the second, lower, switching frequency fSW2 for substantially quiescent input signal amplitudes but to use the first, faster, switching frequency fSW1 for any input signal levels above a substantially quiescent level. In this case the second, slower, switching frequency fSW2 may be of the order of about half of the first switching frequency fSW1. In other embodiments however the first threshold VTh may be a given fraction of the maximum expected input signal amplitude, e.g. the threshold may be set at a level of say 10% or 20% or any desired fraction of the expected maximum input signal amplitude, for example the threshold may be set in the range of 5-25% of the maximum signal amplitude. Thus, the first switching frequency fSW1 would be used for higher amplitude input signal levels and the second switching frequency fSW2 would be used for lower input signal amplitudes.
In some embodiments there may be multiple thresholds associated with or corresponding to multiple different switching frequencies such that the switching frequency may be reduced in multiple steps if the input signal amplitude drops from a maximum level. In some embodiments the switching frequency may be varied in a substantially continuous manner with signal amplitude over at least a first range of signal amplitudes.
Advantageously the envelope detector 401 has a relatively fast attack time constant so as to react quickly to any increases in input signal amplitude to increase the switching frequency to a suitable level for the new input signal amplitude. It will be appreciated however that the filtered error signal will take some time to react to any increase in signal amplitude. The envelope detector may have a relatively slower decay time constant so as to delay response to any decrease in signal amplitude to avoid frequent changes of switching frequency. As will be explained in more detail later changing switching frequency can potentially lead to signal artefacts which could subsequently lead to audio artefacts in an audio application and thus it may be advantageous to avoid too many changes in switching frequency in a given period of time. The envelope detector 401 may therefore implement a hold period where the current envelope value is maintained for the hold period before being reduced, to delay any changes in switching frequency.
The clock generator 403 receives the output of comparator 402 and generates a clock signal with the appropriate switching frequency fSW. The clock generator 403 may receive an input clock signal FIN, which may be received from off chip or which may be generated from an on-chip oscillator in either case possibly via an on-chip frequency divider.
The multiplexer output is controlled by a frequency change signal, for example the output from the comparator 402. Thus when the input signal envelope is above the first threshold the multiplexor output is the first switching frequency and when the input signal envelope is below the first threshold the multiplexor output is the second switching frequency.
The use of a frequency divider or multiplier in this way ensures that the first and second clock signals are synchronised. Advantageously any change in frequency is synchronised to an edge of the lower frequency signal, e.g. the second switching frequency clock signal in the case of a frequency divider, as this ensure that the change will be synchronised to a clock edge in both clock signals. This can ensure that the frequency change occurs at a maximum or minimum of the reference waveform which can be beneficial as will be explained in more detail below. Thus the output from the frequency divider may be input to an edge detector 503 which detects an edge of the clock pulse, say a rising edge (or alternatively a falling edge). The output of the edge detector 503 is used to synchronise the timing of any change in output of the multiplexor 502 to the clock edge of the lower frequency signal. In one embodiment therefore the output of the edge detector 503 and the frequency change signal may be inputs to logic 504. In one example logic 504 could for instance be a D-type flip-flop with the output of frequency divider 503 providing a clock for the flip-flop and the frequency change signal providing the data input.
The switching frequency clock signal is then provided to a waveform generator 302 to generate the reference waveform. The waveform generator may comprise an integrator circuit which is connected to current sources to charge during a positive part of the clock cycle and discharge during the negative part of the clock cycle. This results in a triangular waveform with a constant up and down slope and an overall cycle period defined by the clock signal.
It will be appreciated however that were such a waveform generator used with a variable frequency clock signal the amplitude of the reference waveform would also vary. Basically, with a constant ramp slope, if the period of the positive half of the clock cycle was doubled then the ramp excursion would also double. Ideally the amplitude of the reference waveform should be substantially the same before and after any change in switching frequency, otherwise the change in amplitude of the reference waveform would lead to a change in the conversion factor from loop filter output to duty-cycle, i.e. a change in open loop gain, which would lead to a transient in the output signal until the loop recovers to give the different loop filter output voltage necessary post-change to give a similar output duty-cycle.
Thus when the first, higher, switching frequency fSW1 is used current controller 605b is enabled and thus the current at the input node of the integrator circuit is the sum of the current from both branches resulting in a given ramp slope. When however the second, lower, switching frequency fSW2 is used the second branch current controller 605b is disabled so that only the first branch operates. Thus the current at the input node of the integrator is due to the first branch only and is reduced compared to the current when both branches are enabled, resulting in a reduced ramp slope. The relative contributions of the current sources of the various branches may be chosen with regard to the ratio of the first and second switching frequencies. For example when the second switch frequency is half the frequency of the first switching frequency the current sources of the first and second branches may generate substantially equal currents so the current when both branches are enabled is double that generated when the first branch only is enabled.
It will of course be appreciated that if there were more than two possible switching frequencies there may be more current sources that could be enabled or disabled to give a wider range of possible gains and/or programmable current sources could be used to provide a desired current output for a given switching frequency so as to provide a greater range of possible gains.
To allow the gain of the waveform generator to be set appropriately for the switching frequency, e.g. to enable or disable the second branch, the clock generator may output a gain control signal, G. In the embodiment of
This is advantageous as the change in switching frequency is not likely to occur at a point when the output stage is changing state. Typically a near 100% or near 0% duty cycle is rare and thus changing the switching frequency at the top or bottom of the reference waveform ramp avoids any issue with the output stage being switched as the switching frequency changes. In fact it will be understood that for small input signal levels the duty cycle will be near to 50% and thus switching will likely occur at the middle of each ramp.
In addition however it will be appreciated that at the point of change in switching frequency there will be a transient change in the duty cycle. As can be seen in
The discussion above has focussed on a sudden change in switching frequency from the first switching frequency to the second switching frequency, or vice versa. As mentioned this can result in a voltage transient at the time of changing the switching frequency. In some embodiments the transition from the first switching frequency to the second switching frequency may therefore be implemented over a period of time, for instance in a series of steps or in a relatively continuous manner. Thus if the input signal amplitude falls below the first threshold say the switching frequency may be reduced from the first switching frequency to the second switching frequency over a period of time.
The switching frequency could therefore be varied from the first switching frequency to the second switching frequency in a substantially linear fashion with respect to time. It has been found however that to achieve the transition in a given timescale it may be better to implement a more gradual rate of change of switching frequency at the beginning and end of the transition and then increase the rate of change in the middle of the transition, for example to apply a type of sinusoidal rate of change of frequency.
a and 9b illustrate the simulated voltage transients for a change in frequency from a first higher switching frequency to the second lower switching frequency. In each figure the lower plot shows the variation in switching frequency against time from a first switching frequency of 384 kHz to a second switching frequency of 192 kHz over a period of about 1 ms.
c illustrates the how the r.m.s. value of the noise transient varies with respect to transition period for both a linear change in switching frequency and also a sinusoidal change in switching frequency. It can be seen that for a given transition period that a sinusoidal type transition in switching frequency can lead to a lower voltage transient. Even with a relatively short transition period the voltage transient level can be reduced to microvolt levels with a sinusoidal type transition in switching frequency.
In order to provide a gradual change in switching frequency the waveform generator should be capable of generating waveforms with a plurality of different switching frequencies. As noted above however the amplitude of the reference voltage waveform should remain substantially the same so as to avoid any transient due to a change in loop gain.
The various components may be enabled/disabled or programmed as required so as to be operable with a range of different switching frequencies to provide an output reference waveform with substantially the same output amplitude.
In practice truly smooth, i.e. continuous switching frequency transition may however be difficult to achieve in such a circuit as there will be practical limits on the number of selectable components. In other words the waveform generator may only be able to operate to provide a constant amplitude reference waveform at a certain number of different switching frequencies and the resolution in these supported switching frequencies may not be good enough to provide a smooth transition in switching frequency.
In one embodiment therefore the clock signal input to waveform generator may be modulated by a sigma-delta modulator. The sigma-delta modulator may be responsive to a frequency control signal to provide a pseudo-smooth frequency change to the switching frequency clock signal. In other words the clock generator may comprise a sigma-delta modulator.
a illustrates the noise level, in dBV, generated as a result of a switching frequency transition as a function of transition time period using a four level sigma-delta modulator.
It can be seen that unlike the result for an ideal transition shown in
As can also be seen from
In general then embodiments of the invention provide class-D amplifiers where the switching frequency of the output stage is reduced at relatively low input signal amplitudes so as to reduce switching power losses but without adversely impacting on loop stability. The change in switching frequency will result in a voltage transient which could lead to a signal artefact. For audio applications this could potentially lead to an audible artefact such as a pop or click. Implementing the change in switching frequency at the top or bottom of the reference ramp waveform can be advantageous in keeping the transient level relatively small and in some embodiments it can be beneficial to implement a transition gradually over a period of time, for instance by stepping through various intermediate switching frequencies. In some embodiments a pseudo smooth transition may be implemented through use of a sigma-delta modulator.
In some embodiments the frequency controller may receive an early warning of impeding silence in the audio signal, or a mute or power-down command, for instance from some upstream circuitry. This warning may be generated by a silence detector in the form of circuitry or signal processing operating on the incoming signal. The silence detector may be arranged to monitor the incoming signal before part of the signal path that includes some inherent processing delay or before some deliberately added delay to give long enough advance warning. Thus such a silence detector may be part of a Class-D amplifier according to an embodiment of the present invention. In such cases the frequency controller may implement a switching frequency reduction to a suitable low level before the audio input signal has reduced to zero amplitude (for instance over-riding any decay time constant or hold time implemented in normal operation) so that any transient occurs during the last period of audio content. Any transient is likely to be low and may be masked by any audio content in the input signal.
As discussed above, traditional stability analysis of a Class-D amplifier leads to a requirement that the switching frequency be at least a factor of π greater than the open loop unity gain frequency. This condition may be relaxed to near a factor of π/2 for small signals. However, particularly for periods of silence or for small signals where there is less inherent distortion to be suppressed, a reduced loop gain-bandwidth may be adequate. Reducing the loop-gain bandwidth thus allows further possible reductions in the switching frequency and, as described above, it is desirable to run at a lower switching frequency. Thus in some embodiments as well as changing the switching frequency of the output stage the loop filter components may be programmable, so as to reduce the loop unity gain frequency or gain-bandwidth. For example as illustrated in
In cases where loop filter components may be switched in/out, switching may be configured to preserve the charge on capacitors. For example in the integrator of
In some embodiments, the reference waveform generator, e.g. the sawtooth or triangle waveform generator, may be merged with parts of the loop filter.
In the embodiment illustrated in
To provide a triangle wave component of voltage at the output of the integrator, one or more current branches comprising current sources 603, may be arranged to the be switched to provide a square wave of current, i.e. alternate charging and discharging currents as described previously in relation to
In this embodiment therefore the current generated by the current sources 603 is integrated by the same integrator 1502, 1503 that forms part of the loop filter. this avoids the need for a separate feedback capacitor 602 and amplifier 601 of the alternative circuits of the triangle generators of
To maintain the amplitude of the triangle output component when fsw is changed, the magnitude of this current may be changed by switching in more or fewer parallel current sources as described previously. Also the loop filter integrator time constant may be adjusted by adding in parallel integrator feedback capacitors 1506 via switches 1507. For example if the frequency of fsw is halved, doubling the feedback integrator capacitance will maintain the peak-to-peak swing of the triangle component and also halve the integrator bandwidth to help maintain stability.
In the embodiments described above the indication of the amplitude of the input signal may be derived from monitoring the received input signal (possibly after a user controlled volume gain is applied) or from a volume control signal or some other upstream signal. In other embodiments however the indication of the amplitude of the input signal may be derived at least in part from other parts of the signal chain within the Class-D amplifier circuitry and used to alter the switching frequency accordingly. For instance the control signals output from the modulator 104 are used to control the switches of the output stage so as to provide an amplified version of the input signal and thus can be used to indicate the amplitude or envelope of the input signal, for example by indicating the duty cycle. Likewise the output voltage from the output stage can be used, either before filtering by looking at the duty cycle or after filtering by comparison to a reference voltage. It will be understood therefore that the indication of amplitude of the input signal can be derived from a signal produced within the class-D amplifier circuit whose properties depend on the input signal.
The counter may, in one embodiment, be configured to start counting on the positive edge of the output from comparator 105 and stop counting on the negative edge to give a measure of the pulse width in terms of cycles of the clock Ffast. The count value output from counter 1601 may be compared directly and immediately with some threshold value or set of threshold values, to decide what switching frequency to use. It will of course be appreciated that the expected pulse width output from comparator 105 will change along with a change in switching frequency fSW although the duty cycle should remain the same (apart from the slight artefacts discussed above arising as the switching frequency is changed). The frequency controller 301 may therefore apply a different threshold depending on the present switching frequency (and the counter 1601 may be clocked by the clock signal produced by the frequency controller). For example consider that the switching frequency is a first, relatively fast, switching frequency fSW1 and the fast clock signal is 64 fSW1. A relatively low amplitude signal would lead to a near 50% duty cycle and thus a count value near to 32 over the switching cycle. The frequency controller may therefore be configured such that, when operating at fSW1, to reduce the switching frequency if the count value is within a set range, e.g. say within a count range of 24 to 40 or 28 to 36. If a count value in the relevant range is produced the frequency controller may change (possibly via a gradual transition as discussed above) to a second, slower switching frequency fSW2, which may for instance be 0.5 fSW1. At such a second switching frequency a duty cycle of 50% would lead to a pulse width equal to 64 periods of the fast clock signal Ffast. When the switching frequency is changed the relevant thresholds for switching back to the first switching frequency may be changed to count values of say 48 to 80 or 56 to 72.
In other embodiments however an up-down counter may be used to count up during the positive part of the pulse output from comparator 105 and count down during the negative part of the pulse to provide an overall indication of the duty cycle which could be compared to thresholds. Alternatively the frequency of the fast clock signal could be varied in accordance with frequency changes to the switching frequency.
The frequency controller 301 may be configured to apply a hold time or hysteresis to prevent too frequent changes in switching frequency in a similar fashion as described above.
Embodiments that use, e.g. counters, for determining the pulse width or duty cycle of the drive signals for the output stage provide a method of controlling switching frequency using a small amount of purely digital hardware. This is especially advantageous in the case of a system with analogue inputs and thus no digital representation of the input signal, or for amplifiers on small geometry manufacturing processes.
Other embodiments may take the output signal, either direct from the output stage, possibly with some filtering, or after the post filter and derive an envelope thereof for processing similar to that describe for processing an input signal to provide a signal to control fsw.
The analogue output signal may be passed through an ADC, to allow the signal processing to be performed digitally. Preferably such an ADC would be a continuous-time ADC, i.e. one which does not sample its input signal, to allow accurate capturing of the duty cycle and any transients arising around switching edges without having to run at an excessive sampling frequency. Such ADCs include continuous time delta-sigma converters and converters including voltage-to-frequency converters or voltage-controlled oscillators.
The embodiments described above have mainly been described in terms of a half bridge output stage but, as mentioned above, embodiments of the invention may be readily adapted and implemented with a full H-bridge output stage. Use of a full H-bridge output may help suppress any transient across the load.
A full H-bridge output Class-D amplifier may be constructed simply from two circuits similar to that of
Alternatively a fully-differential architecture may be employed as in
In some embodiments there may be no feedback path from the output to the modulator, as in known open loop Class D amplifiers, but the switching frequency is still reduced for low input signals by means of a frequency controller similar to that described. Such open loop embodiments may comprise substantially digital circuitry for the modulator.
As mentioned above therefore in general embodiments of the invention relate to Class-D amplifier circuits having an output stage and controller for controlling switching of the output stage to amplify a signal wherein the controller is configured to switch the output stage with a first switching frequency at a first signal amplitude and with a second, lower, switching frequency at a second, lower, signal amplitude. The switching frequency is thus controlled in the response to an indication of the amplitude of the signal being amplified. The controller is configured to reduce the switching frequency of the output stage for low amplitude signals. The amplifier may therefore have a a modulator with a signal input for receiving a signal and a clock input for receiving a first clock signal, the modulator being configured to control the duty cycles of the switches of the output stage based on the input signal and a cyclic reference waveform, wherein the frequency of said cyclic reference waveform depends on said first clock signal; and a frequency controller controls the frequency of the first clock signal to provide a first frequency at a first signal amplitude and a second, lower, frequency at a second, lower, signal amplitude.
The amplifier circuit may advantageously be used to amplify audio input signals for instance as part of an audio driving circuit or audio signal processing circuit. However embodiments of the invention may be implemented to amplify a range of different input signals for a variety of applications.
The amplifier circuit may conveniently be implemented as an integrated circuit and may form part of a host electronic device, especially a portable device and/or a battery powered device. The amplifier may be used in an audio device such as a personal music or video player. The amplifier may be implemented in a mobile communications device such as mobile telephone or a computing device, such as a laptop or tablet computer or PDA. The amplifier may be used in a gaming device. The amplifier may be used in device having an ultrasonic transducer or a haptic transducer.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfil the functions of several units recited in the claims. Any reference numerals or labels in the claims shall not be construed so as to limit their scope.
Number | Date | Country | Kind |
---|---|---|---|
1318745.5 | Oct 2013 | GB | national |