The present invention relates to a device, system and method for generating pulse-density modulated (PDM) outputs. More specifically, the present invention relates to a device, system and method for creating a PDM output with synchronous digital circuits to reduce the otherwise required switching activity.
It is often desirable to drive loads such as, by way of example only, loudspeakers, with high efficiency in order to reduce heat generation and energy consumption. Several classes of electronic amplifiers are known to do this by driving the load, often in combination with a reactive circuit, with electronic switches. So called “Class D” switching amplifiers (including “Class AD” and “Class BD”) do this, as do “Class G”, “Class H” and others.
These amplifiers use a modulator circuit to define the required switching sequence, which is then implemented by a power-switching stage. In most practical amplifier designs, there may also be other components, such as feedback and protection circuits. The modulator circuit takes as input a representation of the desired output signal and produces switching signals to create an output that approximates that input.
In older technologies the input signal was generally in analog form, but in modern systems the input is digital. Many modulators first convert the digital signal to analog form and then use a traditional analog modulator to produce the switching waveforms. This is undesirable because analog processing is subject to variability over manufacturing, time and environmental conditions and it is preferred to produce the modulated signal entirely digitally.
Sigma delta modulators (SDMs) are known, and can be used to produce switching sequences closely tracking a digital input over a given range of frequencies, e.g. the audio range. SDMs oversample, meaning that their clock rates are higher than required for Nyquist sampling: typical oversampling for high-precision modulation might be by a factor of sixty-four or one-hundred and twenty-eight.
For the purpose of modulation for switching amplifiers, sigma-delta modulators typically switch too often. For example, good-quality analog Class D amplifiers for audio frequencies typically switch at about 1 MHz, whereas a sigma-delta modulator for audio purposes would typically be clocked at 3 MHz to 6 MHz and have average switching rates at up to half of that.
It is undesirable to switch too often because each switching event dissipates energy and causes high-current pulses, so that frequent switching reduces efficiency and increases electromagnetic interference. Frequent switching also increases harmonic distortion, because transition times in practical output stages are modulated by load current and particularly severely modulated in the case of inductive loads such as are typically required for smoothing switching waveforms.
Analog modulators can achieve a given performance level with low switching rates because they have high (in principle infinite) resolution on the timing of switching edges, whereas synchronous digital circuits can switch only at clock edges; and if the clock rate is set high to get fine resolution, the known modulators also switch frequently.
It is desired to develop synchronous digital circuits modulating switching waveforms but having average switching rates substantially lower than their clock rates. It is also desirable that such modulators reduce the worst types of electromagnetic interference and are capable of adjustment to trade off accuracy and switching rate. It is also desirable to minimize distortion due to signal modulation of the amplifier output impedance.
It is an object of the present invention to provide a novel device, system and method for generating pulse-density modulated (PDM) outputs with synchronous digital circuits which obviates, or mitigates, at least one disadvantage of the prior art.
According to a first aspect of the present invention, there is provided A hysteretic pulse-density modulator operating on an input signal to produce an output signal, comprising: at least one a sigma delta modulator operating at a clock rate selected to provide a predefined level of timing resolution for sampling the input signal, the sigma delta modulator including a hysteresis element operable to reduce the average transition rate of the output signal of the sigma delta modulator to reduce switching losses.
The present invention provides a novel pulse density modulator which includes at least one sigma delta modulator operating at a clock rate selected to provide a pre-selected timing resolution for sampling an input signal. The sigma delta modulator employs a hysteresis element to reduce the average transition rate of the output signal of the sigma delta modulator to reduce switching losses. The novel pulse density modulator can provide at least a two or three level output, as desired.
More specifically, the present invention relates to a system and method using clocked digital circuits for producing n-ary outputs closely tracking the spectrum of a digital input signal over a frequency band of interest, where the average output switching rate is substantially smaller than the clock rate.
Preferred embodiments of the present invention will now be described, by way of example only, with reference to the attached Figures, wherein:
Before describing the present invention, prior art configurations of pulse width modulators and pulse density modulators will be described to assist in better understanding the present invention.
Those of skill in the art will recognize that many implementations of the architecture described in
Circuits having the architecture of
Those skilled in the art are also aware that the pulse-width modulator architecture described in
Class BD amplifiers can be more efficient than Class AD amplifiers, particularly when the level of input signal 108 is small, but may produce more output distortion due to mismatches between impedances in drivers 116a and 116b and more electromagnetic interference due to excursions in the average (or “common mode”) of switching voltage waveforms 120a and 120b.
One skilled in the art will recognize the output configuration of drivers 116a and 116b as that of the “H bridge” referred to above, and will recognize that many implementations of the architecture of
A digital implementation of the architecture of
Shown generally at 320 is a large collection of small spikes in the audio frequency band, typically defined as the band from about 20 Hz to about 20 kHz, caused by the inherent distortions of this style of modulator. While individual spikes are quite small, their net effect is large enough to make this implementation only marginally acceptable for audio use; in one standard subjective quality measure known as A-weighted signal to noise ratio, the quality of this modulator is calculated to be 73.5 dB when excited with the above-mentioned pair of tones; this is equivalent to approximately 0.03% distortion.
The architecture of
One skilled in the art will recognize that a straightforward digital implementation of the architecture of
Sigma-delta modulators are known to be capable of providing switching waveforms that very accurately represent their input signals over a desired range of frequencies, such as the range to which the human ear is sensitive, and are very amenable to digital implementation. It is known that they can also be designed to provide 3-level “Class BD” outputs if desired; and like the hysteretic modulators of
The difficulty with using sigma-delta modulators for Class D power amplifiers is that they create more switching events than do the analog implementations of
The prior art thus provides modulators well suited to analog implementation, as shown in
However, it is desired to have a modulator: suitable for digital implementation but with low average switching rates and therefore good efficiency; pseudo-random switching and therefore causing reduced electromagnetic interference; and, if possible, having means of correcting other known deficiencies such as the distortion caused by driver impedance mismatch in Class BD amplifiers. This desired modulator would ideally be configurable for both Class AD and Class BD modes of operation and configurable for a wide variety of performance levels in exchange for a range of efficiency levels. The use of digital implementation is known to make feature development more practical, and the desired modulator should be able to take advantage of this.
In the present invention, as described below, disadvantages of the prior art designs are overcome, at least in part, by adding hysteresis to the structure of a sigma-delta modulator. This novel design is unexpected as evidenced by the fact that the literature on sigma-delta modulation, in general, teaches against hysteresis as it reduces the accuracy of the output sequence at any given clock rate.
To make the invention clear we first present the internal architecture of a typical prior art sigma-delta modulator.
Sigma-delta inner loop 620 in itself forms a sigma-delta modulator, said to be of order one, because it contains exactly one integrator. Sigma-delta modulator 600 can now be seen to comprise an outer loop comprising integrator 604a operable through gain coefficient 624c and summer 628a to control inner sigma-delta loop 620. Register 612 of sigma-delta inner loop 620 is operable through gain coefficient 624c and summer 628b to contribute to the input of integrator 604a. Input signal 108 also contributes to the input of integrator 604a through gain coefficient 624d and summer 628b, such that through this system of nested loops input signal 108 is operable to control output waveform 623. Sigma-delta modulator 600 is said to be of order two because it contains two integrators.
It is known to those skilled in the art that the mathematical properties of feedback systems dictate that the spectrum of output waveform 623 will closely approximate the spectrum of input signal 108 in a band of frequencies from zero, up to a small fraction—typically 1/64, of the frequency of input clock 616.
It is also known to design sigma-delta modulators with arbitrary orders and with two-state comparators generalized to quantizers having an arbitrary number of states, and in particular to quantizers having three output states.
It is also known to introduce additional loops which are operable to shape the power spectrum of error signals as appropriate for particular applications: for example, to make a modulator have its best performance at frequencies where the human ear is particularly sensitive.
It is also known to filter high-frequency components of output signals very conservatively and by way of compensation to pre-distort the input signal to a modulator so as to emphasize high frequencies.
It is further known to interconnect the integrators and quantizers in many different ways, and particular advantages and disadvantages are known for all of these choices. The particular architecture, order and quantizer accuracy shown in
Under these conditions a signal-to-noise ratio of 92.9 dB is obtained and the average output frequency is 1.08 MHz. It should be noted that this is already almost 20 dB better than the performance of pulse width modulator 300, while switching at a slightly lower frequency. One skilled in the art will recognize that the average switching frequency will vary from 1.08 MHz according to the detailed properties of input signal 108, but cannot exceed one-half of the given 3.5 MHz frequency of clock.
Radio-frequency tones at 712 and generally indicated at 716 are present, but are substantially attenuated relative to corresponding tones 312 and 316 in pulse width modulator 300.
Turning now to the present invention,
Hysteretic registered quantizer 812 is operable to produce an output switched waveform 816 having hysteresis, that is to say the property of tending to avoid changing state. If the value of feedback gain 804 is zero, then there is no hysteresis and the modulator acts simply as sigma-delta 600. Conversely, if feedback gain 804 is positive then a decision by quantizer 608 at a given cycle is reinforced by positive feedback and therefore more likely to be repeated on the next cycle. There is also negative feedback, through the loops including integrators 604b and 604a, and because this is integral feedback, it will eventually overwhelm the effect of positive feedback 804 and cause pulse-density modulated output 816 to switch, but this may take several cycles—the number depending on the details of coefficients and signal history.
Those skilled in the art will recognize that there are many ways of implementing hysteresis, and that the principle of operation is unaffected by the particular implementation chosen. They will also recognize that some amount of hysteresis is common in practical circuit implementations of quantizers, but is usually regarded as a circuit imperfection leading to reduced performance. They will also know that this effect is a known defect in the design of sigma-delta converters which reduces output switching rate relative to clock rate and therefore reduces quality.
The present invention comprises employing a sigma-delta modulator having substantial hysteresis and increasing the clock rate to the sigma-delta modulator to compensate for the loss of quality introduced by the hysteresis. A skilled technician might expect these two effects to simply cancel, but the present inventor has determined that, unexpectedly, this is not in fact the case because for a given average output switching rate the fast hysteretic loop has a finer timing resolution than the slow non-hysteretic loop.
This demonstrates that by adding hysteresis and compensating for reduced switching with increased clock rate, a modulator having the same average output rate as that of a conventional sigma-delta modulator but with substantially improved signal-to-noise ratio can be obtained. Because the average switching rates are the same, switching efficiency is (to a good approximation) the same.
As can be seen, radio-frequency noise tones 912 are well dithered, having peak values similar to those of conventional sigma-delta modulators and not exhibiting signal-dependent peaks like those seen at 712.
Three-level quantizer 1008 comprises a pair of digital comparators 1012a and 1012b, each operable to compare the output of summer 808 with a reference value (labeled as “t+” and “t−” respectively) and an encoder 1016 operable to encode the ensemble of output states of comparators 1012a and 1012b as a decision from the set {−1, 0, 1}. An example of a sequence of such decisions is indicated at 1020.
Changing the extent of hysteresis trades off signal to noise ratio (a measure of quality) against switching rate (a cause of power dissipation). The extent of hysteresis in Class BD hysteretic modulator 1000 can be adjusted by changing the value of positive feedback coefficient 804, together with threshold values “t+” and “t−” of comparators 1012a and 1012b. If it is desired to increase the average widths of the “+1” and “−1” states, then positive feedback coefficient 804 should be increased. In addition, if it is desired to increase the average widths of “0” states then “t+” can be increased and “t−” decreased.
The values of positive feedback coefficient and thresholds “t+” and “t−” can be fixed at the time of design or can be set during operation. These parameters could also be selected by a user choice, as for example in headphone systems where a user chooses “heavy metal” (large hysteresis and high thresholds) or “classical” modes (reduced hysteresis). Hysteresis parameters can also be responsive to power availability: for example choosing low hysteresis levels when batteries are charging or freshly charged and higher hysteresis levels when batteries are in poor condition. Hysteresis parameters can also be responsive to statistical properties of the signal being reproduced: for example reducing hysteresis during quiet passages and increasing it for loud passages. Combinations of these parameter adjustment strategies can also be desirable, for example reducing hysteresis while batteries are charging or fresh but making it increasingly responsive to signal statistics as batteries drain.
A further advantage of Class BD hysteretic modulator 1000 over Class AD modulator 800 is that most transitions are smaller: between 0 and +1 or 0 and −1, where in Class AD modulator 800 all transitions are between +1 and −1. It is known that switching losses are proportional to the square of the change in voltage in transitions, and Class BD modulator 1000 accordingly has losses almost four times smaller than those of Class AD modulator 800.
The present invention provides a novel pulse density modulator which includes at least one sigma delta modulator which operates at a clock rate selected to provide a pre-selected timing resolution for sampling an input signal and which employs a hysteresis element to reduce the average transition rate of the output signal of the sigma delta modulator to reduce switching losses. The novel pulse density modulator can provide at least a two or three level output, as desired.
The above-described embodiments of the invention are intended to be examples of the present invention and alterations and modifications may be effected thereto, by those of skill in the art, without departing from the scope of the invention which is defined solely by the claims appended hereto.
The present application claims priority from U.S. provisional application 61/645,119, filed May 10, 2012 and the contents of this earlier application are incorporated herein, in their entirety, by reference.
Number | Date | Country | |
---|---|---|---|
61645119 | May 2012 | US |