This invention relates generally to semiconductor circuits and methods, and more particularly to a system and method for generating a pulse-width modulated signal.
Pulse-width modulated systems are used to provide high efficiency amplification and transmission in applications that vary widely from low-power consumer audio devices, such as MP3 players, to high power data transmission circuits such as base station transmitters. High efficiency is achieved by minimizing power losses due to bias current within the output stages of an amplifier. For example, in audio applications, a class-D amplifier is used to switch the terminals of a loudspeaker between two supply voltages at a frequency greater than the bandwidth of the desired output signal. Here, high frequency switching energy is filtered by the characteristics of the load circuit, for example, the inductance of the loudspeaker. Similarly, in RF applications, a power amplifier (PA), is driven by a pulse-width modulated signal with a pulse frequency greater than the bandwidth of interest. Out-of-band energy is then filtered using an RF bandpass filter, such as a SAW filter. Because there is a minimal IR drop across the output stage of devices operating in a switched manner, as can be the case when PWM signals are used, dissipated power across the output stages of the devices are minimized and efficiency is improved.
The generation of high dynamic range PWM signals, however, poses a number of challenges. Because the amplitude of the signal is embedded within the timing of a pulse train, jitter and inaccuracies in edge transitions may lead to increased noise and decreased dynamic range. The sampled nature of a PWM system can lead to further reductions in dynamic range due to noise folding and aliasing. This is further exasperated when a PWM signal is upconverted to another frequency, for example, in an RF system. Moreover, the generation of aliasing, images and out of band noise potentially causes adjacent band interference, and is often attenuated using high order filtering.
In an embodiment, a method of generating a pulse-width modulated signal from an input signal includes calculating a finite number of basis functions of a first pulse-width modulated signal based on the input signal, and forming an electronic output based on the calculated finite number of basis functions.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.
For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
a-1e illustrate prior art PWM generators and associated spectra;
a-2b illustrate an embodiment PWM modulator and associated spectra;
The making and using of the presently preferred embodiments are discussed in detail below. It should be appreciated, however, that the present invention provides many applicable inventive concepts that can be embodied in a wide variety of specific contexts. The specific embodiments discussed are merely illustrative of specific ways to make and use the invention, and do not limit the scope of the invention.
The present invention will be described with respect to preferred embodiments in a specific context, namely a pulse-width modulator for use with baseband and RF transmission systems. The invention may also be applied, however, to other types of circuits systems, such as audio systems, communication systems, and other electronic or optical systems that utilize pulse-width modulated signals.
In an embodiment, a discrete-time pulse-width modulated signal is created by calculating a finite number of basis functions representing an output PWM signal. The band limited nature of these basis functions prevent aliasing due to the discrete time nature of the signal, thereby allowing for a high-dynamic range and a low out of band noise floor.
a illustrates conventional pulse-width modulator 100 that generates PWM signal 110 by using comparator 104 to compare input signal 102 with reference signal 106, for example a ramp signal, to produce PWM output signal 110. Each time the signal level of the input signal crosses the signal level of the reference signal, PWM signal 110 switches its output from one state to another. For example, one state could be a logic 1 representing an output voltage of VDD, and another state could be a logic 0 representing an output voltage of ground. As is known in the art, the pulse-width of output signal 110 can be proportional to the amplitude of input signal 102.
b illustrates representative spectra of the input and output of conventional pulse-width modulator 100 shown in
The noise floor and accuracy of the analog PWM modulators, however, is dependent on the quality and accuracy of reference signal 106. In some cases, an analog implementation of an analog PWM modulator requires a complicated and process dependent implementation in order to produce an output PWM signal with a high dynamic range. One way that process dependencies and reference nonlinearities of an analog implementation can be avoided is by implementing PWM modulator 150 in the digital domain as shown in
Depending on the sampling rate, aliasing present in a digital implementation can significantly reduce the dynamic range of sampled output signal 152 compared to an analog implementation. For example, if a PWM reference frequency of 100 MHz (frequency of the sawtooth or triangular reference 154) and a PWM sampling frequency of 1 GHz are used, each PWM cycle is quantized into 10 steps resulting in additional noise and aliasing. In some cases, the spurious-free dynamic range of such an implementation can be reduced from 70 dB to about 30 dB, where the spurious-free dynamic range is defined as the ratio between the average signal power and the power of the largest spurious signal component in the band of interest in decibels. It should be appreciated that other dynamic range measures can be used to characterize the performance of embodiment PWM generators.
e illustrates representative spectrums 160 and 170 corresponding to sampled input signal 158 and representative output signal 152 of
This effect is further exasperated if the output signal of digital PWM generator 150 is upconverted to RF frequencies. Since the baseband signal is not band-limited, the modulated baseband signal is distorted at the positive carrier frequency from components stemming from negative carrier frequencies and vice versa. This further reduces the dynamic range around the carrier frequency and degrades modulated input signal. In some, cases portions of this signal quality degradation is conventionally remedied if a multiple of the PWM sampling frequency falls at about the RF carrier frequency.
Another way to conventionally overcome the problem of image distortion in upconverted PWM signals is to use a low-pass filter after the DPWM before the PWM pulses are upconverted to the desired RF carrier frequency. While this may avoid an image problem, aliasing still significantly affects the dynamic range. Increasing the sampling rate of the digital PWM modulator can help alleviate the image problem, however, this sampling rate can become very high. For example, at a 100 MHz PWM frequency, the sampling rate of the PWM pulses would need to be tens of Gigahertz to produce a dynamic range equivalent to a conventional analog implementation.
a illustrates PWM modulator 200 according to an embodiment of the present invention. Band limited function 202 takes digitized input 206 and produces digitized output 208 having a limited harmonic content. Digitalized pulse output 208 is already band limited, as evidenced by sample 204 of intermediate amplitude. In one embodiment, digitized output 208 is calculated by determining the first k Fourier harmonics of a Fourier Series expansion of a PWM signal. Alternatively, any band limited Fourier Series expansion of a PWM signal or other basis functions besides Fourier basis functions, including, but not limited to wavelet, orthogonal polynomials, and radial basis functions can be used. By band limiting the generated PWM function instead of lowpass filtering a generated wideband function, the effect of aliasing degrading the dynamic range of the PWM signal can be greatly reduced or avoided. Modulator 200 can be implemented in a number of ways including, but not limited to using custom and/or standard cell logic on a general purpose and/or application specific integrated circuit, using an programmable processor, or by executing software on a computer system.
b illustrates representative input and output spectra 210 and 212 corresponding to input digital signal 206 and output digital signal 208, respectively. Here, additional spectral content due to aliasing is not apparent in regions 214 of output spectrum 212 because of the band limited nature of the generated basis functions.
In an embodiment, a band limited kernel can be derived natural-sampling trailing-edge PWMs for input signals x(t) bounded between 0 and 1. The continuous time input-output relationship of such a PWM signal can be written as:
where x(t) is the input signal, fP is the PWM frequency, and y(t) is the pulse-width modulated output signal. From the above equation, it is apparent that the kernel is not band-limited, since y(t) has frequency components approaching infinity when x(t) is non-zero.
The above expression can be expressed in a discrete-time or sampled version where x(nT) is substituted for x(t):
where T is the sampling period. In the above equation, aliasing occurs for T>0. Therefore, in some embodiment, the kernel is band-limited by using only k terms instead of all terms:
Therefore, for a sufficiently short sampling period T, the aliasing problem is avoided. In embodiments, the PWM signal is generated based on the band-limited kernel from the last equation, where each harmonic k is calculated according to:
In some embodiments, the band limitation of the PWM generator creates an approximation of an ideal PWM signal, which means that the signal contains not only temporal pulse-width information but also amplitude information. Therefore, a DAC with low resolution is used to convert this multi-bit digital signal into the analog domain in some embodiments. Depending on the required signal quality or dynamic range for a particular implementation, a resolution of 7 to 8 bit for a 60 dB to 70 dB dynamic range is sufficient. Alternatively, greater or fewer than 7 or 8 bits can be used depending on the implementation and its specifications.
Referring to
In an embodiment, a method of generating a pulse-width modulated signal from an input signal includes calculating a finite number of basis functions of a first pulse-width modulated signal based on the input signal forming an electronic output based on the calculated finite number of basis functions. In some embodiments, the finite number of basis functions represents a band limited approximation of the first pulse-width modulated signal. Some embodiments, the finite number of basis functions comprise k Fourier Series harmonics of a Fourier Series representation of the first pulse-width modulated signal. For example, calculating the fining number of basis functions can include calculating a first k Fourier Series harmonics according to:
where gk{ } is a time domain representation of a kth basis function, fP is a pulse-width modulation frequency and x(nT) is the input signal. In some embodiments, k=5, meaning that the first five Fourier Series harmonics of the Fourier Series representation of the first pulse-width modulated signal is calculated.
In an embodiment, the method further includes applying a digital representation of the input signal as an address to a lookup table, and obtaining the calculated finite number of basis functions from the lookup table based on the address. In some embodiments, forming the electronic output signal includes performing an analog to digital conversion on the calculated number of basis functions to obtain a first analog output signal. Furthermore, the method can also include applying the first analog output signal to a first input of a mixer, applying a carrier signal to a second input of the mixer; and obtaining a modulated signal at an output of the mixer. A RF power amplifier can also be coupled to the output of the mixer. In some embodiments, the first analog output signal is applied to an input of a class-D amplifier. This class-D amplifier can drive an acoustic transducer, such as a loudspeaker, or other device.
In an embodiment, a method of providing a pulse-width modulated signal from a digital input signal includes calculating a first k Fourier harmonics of a first pulse-width modulated signal to produce a first digital signal, the first pulse-with modulated signal having a pulse-width proportional to an amplitude of the digital input signal, and forming an electronic output signal based on the first digital signal. In some embodiments, forming the electronic output includes performing a digital upconversion of the first digital signal to a first carrier, and performing an analog to digital conversion of the first upconverted signal. In some cases, forming the electronic output includes performing an analog to digital conversion of the first digital signal to form a first analog signal. Forming the electronic output can also include applying the first analog signal to an input of a mixer, and applying an output of the mixer to an input of a power amplifier. The first analog signal can also be applied to an input of a class-D amplifier. In some embodiments, the method can include upsampling an input signal to form the digital input signal.
In an embodiment, a system for providing a pulse-width modulated signal includes digital pulse-width modulator configured to generate a first plurality of basis functions approximating a pulse-width modulated signal. In some embodiments, pulse-width is proportional to a first digital input signal.
In some embodiments, the first plurality of basis functions comprise the first k Fourier Series harmonics of the pulse-width modulated signal, which are calculated according to:
where gk{ } is a time domain representation of a kth basis function, fP is a pulse-width modulation frequency and x(nT) is the input signal.
In some embodiments, the system further includes an interpolator coupled to an input of the digital pulse-width modulator, where the interpolator upsamples an input signal to form the first digital input signal. A digital-to-analog converter can be coupled to an output of the digital pulse-width modulator, and/or a class-D amplifier can be coupled to an output of the analog-to-digital converter. In some embodiments, a mixer is coupled to an output of the digital to analog converter.
In an embodiment, an integrated circuit includes a digital pulse-width modulator configured to generate a first k Fourier harmonics approximating a pulse-width modulated signal that has a pulse-width proportional to a first digital input signal. The system also includes, for example, a digital-to-analog converter coupled to an output of the digital pulse-width modulator. In some systems, an interpolator is coupled to an input of the digital pulse-width modulator, where the interpolator upsamples an input signal to form the first digital input signal.
In an embodiment, the digital pulse-width modulator comprises a look-up table generating the first k Fourier harmonics according to the first digital input signal. The look-up table can be implemented as a single look-up table or it can comprise a plurality of look-up tables, where each of the plurality of look-up tables produced a different one of the first k Fourier harmonics.
Advantages of embodiments include the ability to digitally generate pulse-width modulated waveforms having a high dynamic range and low noise floor with a relatively low oversampling rate. For example, in one embodiment, a dynamic range of 70 dB is achievable with a 12× oversampling ratio. A lower oversampling ratio allows for power savings in systems.
With respect to in RF systems in which an embodiment PWM is upconverted to a high frequency, advantageous embodiments include the ability to have a low noise floor in adjacent channels. In some cases, this low adjacent channel noise floor is lower than the out of band noise floor created by PWM systems using noise shaped techniques such as sigma-delta modulators. By having a lower out of band noise floor, output filtering requirements are relaxed, thereby allowing for a flexible system configuration. For example, in some embodiments, the output frequency can be easily changed or reassigned without having to replace an expensive high-order filter, such as a saw filter. In some embodiments, the pulse-width modulated signal can be directly upconverted to an RF frequency without having to resort to using a fixed high-order filter at an intermediate frequency, thereby saving power and cost. Of course, in some embodiments, an intermediate frequency and high order SAW filters could also be used if Specifications dictate. However, the noise and distortion performance of embodiment DPWM generators can potentially relax the requirements of output or IF SAW filters also.
A further advantage of embodiments include the ability to implement high performance digital PWM modulators using a simple digital architecture, for example, a lookup table. Consequently, embodiment circuits can be implemented using standard digital circuits techniques and existing circuits can be migrated to finer geometry processes in a relatively straightforward manner.
While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.
This application is a continuation application of U.S. application Ser. No. 13/081,628 entitled “System and Method for Generating a Pulse-width Modulated Signal” filed Apr. 7, 2011, which is incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 13081628 | Apr 2011 | US |
Child | 14159252 | US |