The disclosed method and apparatus relate to digital to analog converters and more particularly to pulse density modulation digital to analog converters.
Designers of digital to analog converters (DACs) face several challenges today. One such challenge presents itself when attempting to perform digital to analog conversion using the well-known pulse-width modulation technique.
The challenge facing DAC designers attempting to use PWM DACs is providing a desired number of voltage steps within the constraints of the filters that are currently practically available.
At the point 206 where the value of the ramping signal 112 output from the counter 110 crosses the value held in the Pulse Width Register 106, the comparator output 118 goes low. The correlation between the point 206 and the state of the output 118 is illustrated by a dashed line 208, It can be seen from
It can be seen from
It should be noted that the duty cycle of the output 118 is 50% when the value of the input signal 102 is midway between the maximum and minimum values. Therefore, the maximum power resides at a frequency determined by the Max Value Register 108 and the frequency of the clock 111. It should also be noted that this is the lowest frequency generated in the spectrum of the output 118. That means that filter 120 has to be efficient at the low end of the spectrum in order to perform well. This poses challenges for the design of the DAC. This is even more difficult when there is a desire to have a large number of voltage steps. That is, when the number of bits in the Pulse Width Register 106 is high (i.e., the resolution of the PWM is high), the frequencies that must be passed include relatively high frequencies as the value of the Pulse Width Register 106 approaches the maximum value or the minimum value.
One way to mitigate the difficulties in making a filter suited to the task is to shift the relationship between the frequency of the output 118 and the amplitude of the digital input signal (i.e., the magnitude of the value stored in the Pulse Width Register 106). One way to shift this relationship is to use a pulse density modulation (PDM) DAC.
A horizontal line 507 is shown in
Using the PDM DAC 300 rather than the PWM DAC 100 results in an output for which it is easier to design a filter. However, the comparator output 318 will be a relatively consistent stream of pulses for most values stored in the Pulse Density Register 306. Such consistent streams of pulses can cause interference with other nearby circuits.
Accordingly, there is presently a need for an ADC that can convert digital signals to analog signals, both without requiring a filter that is difficult to design and without generating pulse streams that can interfere with other circuits.
Various embodiments of the disclosed method and apparatus for converting digital signals to analog signals are presented. Some of these embodiments are directed toward systems and methods for spreading the energy output from a digital to analog converter (DAC) over a frequency spectrum to reduce the likelihood that the DAC will create spurious signals that will interfere with other nearby circuits.
In accordance with the disclosed method and apparatus, a spectral spreading circuit randomizes the frequency output from a PDM DAC. The randomized output will have essentially the same amount of time in the high state over a predetermined interval of time as the output by the PDM waveform applied to the input port of the spreading circuit. This keeps the average voltage output from a filter coupled to the output of the spreading circuit approximately the same as would be the case were the filter coupled to the output port of the PDM DAC without spreading.
Spreading is accomplished by shifting the position of the pulses randomly within a constrained range. Incoming pulses increment an accumulator (i.e., a summing circuit), and the outgoing pulses decrement the accumulator. A randomized stream of 1's and −1's is added to the accumulator. The number of 1's and the number of −1 s are equal, resulting in a net zero gain. Accordingly, the accumulator output has the same number of positive pulses per unit time on the output as the number of positive pulses on the input. This allows the average level of the spread output to be the same as average level output from the PDM DAC that feeds the spreading circuit.
The disclosed method and apparatus, in accordance with one or more various embodiments, is described with reference to the following figures. The drawings are provided for purposes of illustration only and merely depict examples of some embodiments of the disclosed method and apparatus. These drawings are provided to facilitate the reader's understanding of the disclosed method and apparatus. They should not be considered to limit the breadth, scope, or applicability of the claimed invention. It should be noted that for clarity and ease of illustration these drawings are not necessarily made to scale.
The figures are not intended to be exhaustive or to limit the claimed invention to the precise form disclosed. It should be understood that the disclosed method and apparatus can be practiced with modification and alteration, and that the invention should be limited only by the claims and the equivalents thereof.
The PDM pulse stream 602 is received and coupled to the first of four input ports to the accumulator 604. Input port 2 to the accumulator is coupled to the Zero-Sum Sequence Register 606. The Zero-Sum Sequence Register 606 provides a stream of bits that can have values of either 1 or −1, and which, when summed together, equal zero (i.e., an equal number of 1s and −1s). For example, a four value wide Zero-Sum Sequence Register 606 could have the following sets of values (1,−1,1,−1); (−1,1,−1,1); (−1,−1,−1); and (−1,−1,1,1) stored therein. As noted above, each of the four values in each set sums to zero. Furthermore, as noted by the fact that the values can be either 1 or −1, the output from the Zero-Sum Sequence Register 606 is a signed value, such as a 2-bit signed two's complement output. However, any set of bits that can represent the values of 1 and −1 can be output by the Zero-Sum Sequence Register 606.
The output port of the accumulator 604 is coupled to the Accumulator Register 608. The value output from the Accumulator 604 is a 3-bit signed value. The output port of the Accumulator Register 608 is coupled back around to input port 3 of the Accumulator 604, The Accumulator Register 608 stores the value output from the accumulator 604. In accordance with one embodiment of the presently disclosed method and apparatus, the clock signal 311 generated by the clock 317 of the PDM circuit 300 (see
In one embodiment of the disclosed method and apparatus, a delay is created between the time each bit of the PDM bit stream is received at the first input of the accumulator 604 and the time the output of the accumulator 604 is clocked through to the output port of the accumulator register 608. In one such embodiment, the delay is created by having the value at input port 1 to the Accumulator 604 change on the rising edge of the clock signal 311. The input to the Accumulator Register 608 is clocked through to the output port of the Accumulator Register 608 on the falling edge of the clock signal 311. The Accumulator Register 608 holds that value until the next falling edge of the clock signal 311. Accordingly, all of the input signals at the input ports to the Accumulator 604 will be stable when the value is clocked through (e.g., during the falling edge of the clock signal 311). In accordance with one embodiment of the present invention, the clock signal 311 is output directly from the clock 317 of the PDM circuit 300. Alternatively, the clock signal coupled to clock input port of the Accumulator Register 608 is derived from and synchronized to the output of the clock 317. In one such embodiment, the clock signal may be offset in phase from the clock signal 311. In yet another embodiment, the clock signal may be filtered or otherwise processed to provide edges that are more appropriate to the spreading circuit 600.
In one embodiment of the disclosed method and apparatus, the Accumulator Register 608 is capable of storing 3-bit signed values that range from −4 to 3. However, in one such embodiment, the values that are output from the accumulator 604 will only be in the range of −2 to 2, as will be seen from some examples of the operation of the spreading circuit provided below.
The output port from the Accumulator Register 608 is also coupled to the input port of the comparator 610. The comparator 610 outputs a value of 1 for input values greater than zero. All other values will output a zero. Accordingly, values of −2, −1 and zero output from the Accumulator Register 608 will all cause the output port of the comparator 610 to output a zero. The output port from the comparator 610 is coupled to the output port 618 of the spreading circuit 600 and also to the input port of an inverter 612. The inverter 612 will cause a −1 to be output when a 1 is presented at its input. A zero input to the inverter 612 will result in a zero output. Since the comparator 610 only outputs either a zero or a 1, the output from the inverter 612 is constrained to the values −1 and zero. The output from the inverter 612 is coupled to input port 4 to the accumulator 604.
In one embodiment, the Zero-Sum Sequence Register 606 selects between the four possible zero-sum sequences based on the input from a 2-bit random source, such as the LFSR shown in
The Accumulator Register 608 is initialized to zero at time t0. Accordingly, the output from the Accumulator Register 608 will be zero until another value is presented to the input of the Accumulator Register 608 and that value is clocked through to the output port of the Accumulator Register 608. Therefore, input port 3 to the accumulator 604 is zero at t0. In addition, initializing the value of the Accumulator Register 608 to zero causes the value at time t0 at the output port of the inverter 610 to be zero and thus, input port 4 to the accumulator to be zero. Thus, the output of the spreading circuit 600 is zero at t0. The value output from the accumulator 604 is the sum of these value at time t0. Therefore, the sum of the four values at t0 is −1 at the output port of the Accumulator 604. This value will sit at the input port to the Accumulator Register 608 until clocked through to the output port at time t1.
Once clocked through by the clock signal 311 at t1, the −1 value is coupled to input port 3 to the Accumulator 604. This value is also coupled to the input port to the comparator 610. Since this value is not greater than zero, the output from the comparator 610 remains zero at t1. Likewise, the output of the spreading circuit 600 remains at zero at time t1. Accordingly, the output from the inverter 612 coupled to input port 4 of the Accumulator 604 remains zero at t1. The bit coupled from the PDM stream 602 to input port 1 of the accumulator is 1 at time t1. The second bit output from the Zero-Sum Sequence Register 606 is coupled to input port 2 to the Accumulator 604. That value is a 1 at time t1. Therefore, the sum of the four input ports to the Accumulator 604 is 1 at t1. This is coupled to the Accumulator Register 608.
At t2, the value at the input port of the Accumulator Register 608 is clocked through to the output port of the Accumulator Register 608. Accordingly, the value at input port 3 to the Accumulator 604 at t2 is 1. Since this value is now greater than zero, the output from the comparator 610 is 1. Therefore, at t2, the output of the spreading circuit 600 will be 1. The output from the inverter is then a −1, which is coupled to input port 4 of the accumulator at t2. The PDM stream 602 applied to port 1 of the accumulator has a value of 1 at t2 and the next value of the zero-sum sequence applied to port 2 of the accumulator at t2 is −1. Therefore, the sum at the output port of the accumulator 604 is zero at t2.
At t3, the output from the Accumulator 604 is clocked through to the output port of the Accumulator Register 608. Therefore, the value at input port 3 to the Accumulator 604 is zero. Also, the output from the comparator 610 is zero. The output port of the comparator 610 is coupled to the output port 618 of the spreading circuit 600. Accordingly, a zero is output from the spreading circuit 600. This value is then also applied to the inverter 612, which then outputs a zero. The zero is coupled to input port 4 of the accumulator at t3. The value at input port 1 to the Accumulator 604 is zero at t3. The value at input port 2 to the Accumulator 604 is 1. Therefore, the sum of the four input ports at t3, is 1. This value is then output from the Accumulator 604 and coupled to the input port of the Accumulator Register 608.
At t4, this value is clocked through to the output port of the Accumulator Register 608. When, at t4 the output of the Accumulator Register 608 goes to 1, the comparator 610 outputs a 1 as the output of the spreading circuit 600. In turn, the inverter 612 output a −1 at t4. The sum of the signals at the input ports to the Accumulator 604 at t4 is 1, which is then applied to the input port of the Accumulator Register 608.
At t5, this value is clocked through to the output port of the Accumulator Register 608. When, at t5 the output of the Accumulator Register 608 goes to 1, the comparator 610 outputs a 1 as the output of the spreading circuit 600. In turn, the inverter 612 output a −1 at ts. The sum of the signals at the input ports to the Accumulator 604 at t5 is zero, which is then applied to the input port of the Accumulator Register 608.
At t6, this value is clocked through to the output port of the Accumulator Register 608. When, at t6 the output of the Accumulator Register 608 goes to zero, the comparator 610 outputs a zero as the output of the spreading circuit 600. In turn, the output of the inverter 612 is zero at t6. The sum of the input signals to the Accumulator 604 at t6 is 1, which is then applied to the input port of the Accumulator Register 608.
At t7, this value is clocked through to the output port of the Accumulator Register 608. When, at t7 the output of the Accumulator Register 608 goes to 1, the comparator 610 outputs a 1 as the output of the spreading circuit 600. In turn, the inverter 612 outputs a −1 at t7. This process continues on in similar fashion.
It will be noted that the signal output from the output port 618 of the spreading circuit 600 is a sequence of 0, 0, 1, 0, 1, 1, 0, 1. It should be further noted that the number of pulses output (i.e., 1s output) is equal to the number of pulses applied to input port 1 of the accumulator 604. This will be the case for any sequence of input pulses assuming a valid zero-sum sequence is selected from the Zero-Sum Sequence Register 606. This process would then repeat for each randomly selected zero sum sequence, causing the sequence of pulses output by the spreading circuit 600 to vary in response to the randomly selected zero-sum sequences. This, in turn, will disrupt the otherwise periodic nature of the PDM pulse stream. Thus, the energy output from the spreading circuit 600 will spread in the frequency domain.
Those skilled in the art will appreciate that the math can be extended to other embodiments. For example, the number of bits in the LFSR 614 can be increased to 3 to allow one of 8 eight-bit zero sum sequences to be selected from the Zero-Sum Sequence Register 606.
Although the disclosed method and apparatus is described above in terms of various examples of embodiments and implementations, it should be understood that the various features, aspects and functionality described in one or more of the individual embodiments are not limited in their applicability to the particular embodiment with which they are described. Thus, the breadth and scope of the claimed invention should not be limited by any of the examples noted above. For example, it will be clear to those skilled in the art that values other than those disclosed above stored in the Zero-Sum Sequence Register 606 can be used as long as the sum of each sequence is zero. In addition, the function performed by the LFSR 614 can be implemented by any random number generator using any technique for generating a random (or pseudo-random) sequence. It should be understood that the more randomly the sequence, the more even the spreading. Still further, the functions of each of the elements of the spreading circuit 600 can be implemented using discrete functions or a programmable module that performs some or all of the functions, a state machine that performs some or all of the functions, or any other means for implementing the functions described above.
Terms and phrases used in this document, and variations thereof, unless otherwise expressly stated, should be construed as open ended as opposed to limiting. As examples of the foregoing: the term “including” should be read as meaning “including, without limitation” or the like; the term “example” is used to provide exemplary instances of the item in discussion, not an exhaustive or limiting list thereof; the terms “a” or “an” should be read as meaning “at least one,” “one or more” or the like; and adjectives such as “conventional,” “traditional,” “normal,” “standard,” “known” and terms of similar meaning should not be construed as limiting the item described to a given time period or to an item available as of a given time, but instead should be read to encompass conventional, traditional, normal, or standard technologies that may be available or known now or at any time in the future. Likewise, where this document refers to technologies that would be apparent or known to one of ordinary skill in the art, such technologies encompass those apparent or known to the skilled artisan now or at any time in the future.
A group of items linked with the conjunction “and” should not be read as requiring that each and every one of those items be present in the grouping, but rather should be read as “and/or” unless expressly stated otherwise. Similarly, a group of items linked with the conjunction “or” should not be read as requiring mutual exclusivity among that group, but rather should also be read as “and/or” unless expressly stated otherwise. Furthermore, although items, elements or components of the disclosed method and apparatus may be described or claimed in the singular, the plural is contemplated to be within the scope thereof unless limitation to the singular is explicitly stated.
The presence of broadening words and phrases such as “one or more,” “at least,” “but not limited to” or other like phrases in some instances shall not be read to mean that the narrower case is intended or required in instances where such broadening phrases may be absent. The use of the term “module” does not imply that the components or functionality described or claimed as part of the module are all configured in a common package. Indeed, any or all of the various components of a module, whether control logic or other components, can be combined in a single package or separately maintained and can further be distributed in multiple groupings or packages or across multiple locations.
Additionally, the various embodiments set forth herein are described in terms of exemplary block diagrams, flow charts and other illustrations. As will become apparent to one of ordinary skill in the art after reading this document, the illustrated embodiments and their various alternatives can be implemented without confinement to the illustrated examples. For example, block diagrams and their accompanying description should not be construed as mandating a particular architecture or configuration.
This application is a continuation of U.S. patent application Ser. No. 14/280,412, filed May 16, 2014, now U.S. Pat. No. 9,312,880, issued Apr. 12, 2016, which in turn claims priority benefit of U.S. Provisional Patent Application Ser. No. 61/978,438,filed Apr. 11, 2014.Each of the above identified applications is hereby incorporated herein by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6459398 | Gureshnik et al. | Oct 2002 | B1 |
7733256 | Yamauchi | Jun 2010 | B2 |
20110050467 | Crespi | Mar 2011 | A1 |
20130120060 | Loeda | May 2013 | A1 |
20140043176 | Tomasovics et al. | Feb 2014 | A1 |
20140266833 | Kris et al. | Sep 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20160330053 A1 | Nov 2016 | US |
Number | Date | Country | |
---|---|---|---|
61978438 | Apr 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14280412 | May 2014 | US |
Child | 15096973 | US |