CYCLIC DIGITAL TO ANALOG CONVERTER

Information

  • Patent Application
  • 20100283651
  • Publication Number
    20100283651
  • Date Filed
    May 06, 2009
    15 years ago
  • Date Published
    November 11, 2010
    14 years ago
Abstract
Some embodiments include apparatus and methods having an amplifier, a capacitor network coupled to the amplifier, and switching circuitry coupled to the amplifier and the capacitor network. The switching circuit is configured to successively apply a selected reference voltage selected from among a first reference voltage, a second reference voltage, and a third reference voltage to the capacitor network in response to a digital input code to generate an output voltage. Additional embodiments are disclosed.
Description
BACKGROUND

Many circuit devices, such as processors and microcontrollers used in electronic products, have digital to analog converter (DAC) circuits to convert information in digital form into corresponding information in analog form. Digital information is normally presented by signals having two discrete values, a binary one (logic one) and a binary zero (logic zero). Analog information is often represented by signals having many values within a specific range.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a partial block diagram of an apparatus including a cyclic DAC, according to an embodiment of the invention.



FIG. 2 and FIG. 3 show graphical forms of output voltages, according to an embodiment of the invention.



FIG. 4 shows a partial block diagram of a DAC, according to an embodiment of the invention.



FIG. 5 shows a block diagram of an encoder used in a DAC, according to an embodiment of the invention.



FIG. 6 shows a schematic diagram of an encoder element of an encoder, according to an embodiment of the invention.



FIG. 7 shows a partial block diagram of a DAC having a conversion unit, according to an embodiment of the invention.



FIG. 8 is an example timing diagram for the DAC of FIG. 4, FIG. 7, and FIG. 9, according to an embodiment of the invention.



FIG. 9 shows a partial block diagram of a differential DAC having a differential conversion unit, according to an embodiment of the invention.





DETAILED DESCRIPTION


FIG. 1 shows a partial block diagram of apparatus 101 including a cyclic DAC 100, according to an embodiment of the invention. Apparatus 101 can include or be included in audio, video, telecommunication, networking, imaging, sensor, or other systems. As shown in FIG. 1, DAC 100 receives a N bits digital input code b0 through bN−1 (bN−1, . . . , b2, b1, b0) from a digital information unit 102 and generates an analog output voltage Vout (or VDAC). An analog information unit 104 receives voltage Vout from DAC 100 for further processing.


DAC 100 operates as a cyclic digital to analog converter. In operation, DAC 100 initially sets (or resets) output voltage Vout to an initial value, e.g., zero. Then, DAC 100 successively applies a reference output voltage to output voltage Vout to obtain a final value of Vout that represents an analog voltage value corresponding to the data input code. DAC 100 selects from among three reference voltage −Vref, 0, and +Vref (e.g., Vref) and applies the selected reference voltage to output voltage Vout. Each selection of the reference voltage to be applied is based on the value of one of the bits of the digit input code. The value of one of the three reference values can be zero, as shown in FIG. 1. The following description shows details of the operation of DAC 100.


Initially, DAC 100 sets the output voltage to zero: Vout−1=0.


DAC 100 successively updates each value of output voltage Vout based on a recursive equation (1) below, until a final value of Vout is obtained.










Vout
j

=



Vout

j
-
1


+


f
i

·
Vref


2





(

equation





1

)







In equation (1), i=j=0 to N−1, where N is the number of bits of digital input code. For example, if digital input code is b2, b1, and b0, then N=3. Integer fi is a function of bi. In DAC 100, fi is defined in equation (2) and equation (3) below.






f
0=2bN−1−1   (equation 2)






f
i
=b
N−1−1+bi−1   (equation 3)


DAC 100 can start the conversion with the least significant bit (LSB) applied first or with the most significant bit (MSB) applied first. In the LSB applied first technique, a first value of voltage Vout is generated based on the LSB of the digital input code. In the MSB applied first technique, a first value of voltage Vout is generated based on the MSB of the digital input code. In digital input code bN−1, . . . , b2, b1, b0, the LSB is b0, and the MSB is bN−1. The following description shows an example of how DAC 100 converts a 3-bit (N=3) digital input code b2, b1, b0 into an analog output voltage using equation (1), (2), and (3) above. This example uses the LSB applied first technique in which a first value of Vout is generated corresponding to the value of bit b0. From equation (1), the value of output voltage Vout corresponding to each bit of the digital input code is generated as followed.












Vout
0

=



(


2


b

N
-
1



-
1

)

·
Vref

2














Vout
1

=




(


2


b

N
-
1



-
1

)

·
Vref


2
2


+



(


b

N
-
1


-
1
+

b
0


)

·
Vref

2










Vout
2

=




(


2


b

N
-
1



-
1

)

·
Vref


2
3


+



(


b

N
-
1


-
1
+

b
0


)

·
Vref


2
2


+



(


b

N
-
1


-
1
+

b
1


)

·
Vref


2
1







The final value of output voltage Vout for N bits digital input code is VoutN−1, which is obtained from the last conversion step N−1. Thus, the final value of the output voltage in the example above (where N=3) is VoutN−1=Vout2, as shown above. The above example shows an example conversion for a digital input code with N=3 bits. For other values of N, the output voltage of DAC 100 is generated based on equation (4) below.










Vout

N
-
1


=




(


2


b

N
-
1



-
1

)

·
Vref


2
N


+




i
=
1


N
-
1






(


b

N
-
i


-
1
+

b

i
-
1



)

·
Vref


2

N
-
i









(

equation





4

)







The above equation (4) shows the output voltage of DAC 100 when an LSB applied first technique is used. For the MSB applied first technique, the final result of the output voltage VoutN−1 would be the same as VoutN−1 in the case of the LSB applied first technique.


From equation (3) above, fi can have three possible values: −1, 0, and +1 .






f
i
=b
N−1−1+bi−1=−1 if bN−1=0 and bi−1=0






f
i
=b
N−1−1+bi−1=0 if bN−1=0 and bi−1=1 (or if bN−1=1 and bi−1=0)






f
i
=b
N−1−1+bi−1=+1 if bN−1=1 and bi−1=1


Thus, from equation (1) above, the value of output voltage Vout, before a division by two, can decrease (e.g., by subtracting a reference voltage Vref), increase (e.g., by adding a reference voltage Vref), or remain unchanged (adding or subtracting zero). From equation (1) above, Voutj calculated at a particular step j can also have three possible values corresponding to three values of fi=−1, 0, or +1.










Vout
j

=





Vout

j
-
1


-
Vref

2






if






f
i


=

-
1






(

equation





5

)







Vout
j

=





Vout

j
-
1


+
0

2






if






f
i


=
0





(

equation





6

)







Vout
j

=





Vout

j
-
1


+
Vref

2






if






f
i


=

+
1






(

equation





7

)







In the above equations (5), (6), and (7), Voutj−1 represents the output voltage value calculated by DAC 100 at step j−1, which is a step immediately before step j, also called a previous step. Thus, as shown in equation (5), (6), and (7), the value of Voutj can be the previous output voltage value Voutj−1 minus a reference voltage Vref and then divided by two (equation 5), Voutj−1 plus a reference voltage Vref and then divided by two (equation 7), or Voutj−1 plus zero and then divided by two (equation 6).


Equation (6) is equivalent to Voutj=Voutj−1/2, meaning that during calculation of Voutj, no reference voltage is added to or subtracted from a previous output voltage Voutj−1 before the previous output voltage is divided by two. Thus, in DAC 100, since no addition or subtraction is performed to the output voltage in some step (e.g., when fi=0) during the successive calculation to obtain the final value VoutN−1 of the output voltage, DAC 100 can avoid undesirable affects related to a reference voltage being added to or subtracted from the output voltage.


The above description relates to a general recursive step to obtain Voutj during a particular step. The following description shows an example conversion of all possible values of a combination of three bits b2, b1, and b0 (N=3) to an output voltage Vout in DAC 100, where b0 is the LSB and b2 is the MSB. In Table 1, FIG. 2 and FIG. 3, the reference voltage Vref is normalized, meaning that +Vref is +1 and −Vref is −1. Thus, the range of the output voltage is between −1 and +1 or −Vref<Vout<+Vref. The analog resolution (or LSB) for DAC 100 in this example is (+Vref−(−Vref))/2N= 2/8=¼.


Table 1 shows an example of a mapping of digital input codes to output voltage Vout for N=3. The values of f0, f1, and f2 are calculated based on equation (2) and (3) above.











TABLE 1







b2, b1, b0
f2, f1, f0
Output Voltage (Vout)










decimal
binary
equation (2) and (3)
normalized





0
000
−1 −1 −1
−7/8


1
001
−1 0 −1
−5/8


2
010
0 −1 −1
−3/8


3
011
0 0 −1
−1/8


4
100
0 0 +1
+1/8


5
101
0 +1 +1
+3/8


6
110
+1 0 +1
+5/8


7
111
+1 +1 +1
+7/8









Table 2 below shows step-by-step details of Vout generated by DAC 100 for all eight possible combinations of digital input code b2, b1, b0 based on the mapping of Table 1.













TABLE 2











Voutj =



fi
desired
(Voutj-1 + fi · Vref)/2















i
bi
binary
decimal
“−1/0/+1”
analog
j
Voutj
[step]


















reset





−1
0.000
0.000


0
b0
0
0
−1
−0.125
0
−0.500
0.500


1
b1
0
0
−1
−0.250
1
−0.750
0.250


2
b2
0
0
−1
−0.500
2
−0.875
0.125


b<2:0>
Digital value

0




max step



Analog value (V)



−0.875

−0.875
0.500


reset





−1
0.000
0.000


0
b0
1
1
−1
−0.125
0
−0.500
0.500


1
b1
0
0
0
0.000
1
−0.250
0.250


2
b2
0
0
−1
−0.500
2
−0.625
0.375


b<2:0>
Digital value

1




max step



Analog value (V)



−0.625

−0.625
0.500


reset





−1
0.000
0.000


0
b0
0
0
−1
−0.125
0
−0.500
0.500


1
b1
1
2
−1
−0.250
1
−0.750
0.250


2
b2
0
0
0
0.000
2
−0.375
0.375


b<2:0>
Digital value

2




max step



Analog value (V)



−0.375

−0.375
0.500


reset





−1
0.000
0.000


0
b0
1
1
−1
−0.125
0
−0.500
0.500


1
b1
1
2
0
0.000
1
−0.250
0.250


2
b2
0
0
0
0.000
2
−0.125
0.125


b<2:0>
Digital value

3




max step



Analog value (V)



−0.125

−0.125
0.500


reset





−1
0.000
0.000


0
b0
0
0
1
0.125
0
0.500
0.500


1
b1
0
0
0
0.000
1
0.250
0.250


2
b2
1
4
0
0.000
2
0.125
0.125


b<2:0>
Digital value

4




max step



Analog value (V)



0.125

0.125
0.500


reset





−1
0.000
0.000


0
b0
1
1
1
0.125
0
0.500
0.500


1
b1
0
0
1
0.250
1
0.750
0.250


2
b2
1
4
0
0.000
2
0.375
0.375


b<2:0>
Digital value

5




max step



Analog value (V)



0.375

0.375
0.500


reset





−1
0.000
0.000


0
b0
0
0
1
0.125
0
0.500
0.500


1
b1
1
2
0
0.000
1
0.250
0.250


2
b2
1
4
1
0.500
2
0.625
0.375


b<2:0>
Digital value

6




max step



Analog value (V)



0.625

0.625
0.500


reset





−1
0.000
0.000


0
b0
1
1
1
0.125
0
0.500
0.500


1
b1
1
2
1
0.250
1
0.750
0.250


2
b2
1
4
1
0.500
2
0.875
0.125


b<2:0>
Digital value

7




max step



Analog value (V)



0.875

0.875
0.500









As shown in Table 2, a conversion of each combination of b2, b1, b0 includes four steps j, shown in column j as four steps labeled −1, 0, 1, and 2. Step −1 is performed to reset DAC 100 to set the value of output voltage to zero, shown as Voutj=0.000 in step −1. Table 2 also shows other values of Vout at other steps (0, 1, 2) j for each combination of b2, b1, b0. For example, for b2, b1, b0=1 0 1, the values of Vout are 0.500, 0.750, and 0.375, with 0.375 being the final value of Vout. In another example, for b2, b1, b0=0 1 1, the values of Vout are 0.500, −0.250, and −0.125, with −0.125 being the final value of Vout.


Table 2 also shows changes in values of Vout between steps (shown in the column “step”). For example, for b2, b1, b0=1 0 1, the value changes are 0000, 0.500, 0.250, and 0.375. Each of these values changes is the difference between two consecutive values of Vout. For example, the previous value of Vout (at step 0) is 0.500 and a current value of Vout (at step 1) is 0.750. Therefore, the difference between 0.500 and 0.750 is 0.250, which is shown in Table 2 as 0.250. Thus, the value change of Vout indicates the magnitude that Vout changes from one step to the next step.


Table 2 shows an example for N=3 bits to help focus on the embodiments described herein. The algorithm described herein can also be applied to a DAC of more than three bits.



FIG. 2 and FIG. 3 show graphical forms of output voltage Vout of Table 2 at various steps j during conversions of digital input code b2, b1, b0=1 0 1 and b2, b1, b0=0 1 1, respectively. The values of Vout in FIG. 2 and FIG. 3 are based on the same values of Vout for the corresponding b2, b1, b0=1 0 1 and b2, b1, b0=0 1 1 from Table 2.


As shown in FIG. 2, Vout initially is zero (e.g., reset to 0) before conversion (Vout−1=0). In step 0, the value of Vout−1 changes (is updated) from zero to Vout0=0.500 based on the calculation of Vout using equation (1). In step 1, the value of Vout0=0.500 changes (is updated) to Vout1=0.750 based on the calculation of Vout using equation (1). In step 2 (final step for N=3), the value of Vout1=0.750 changes (is updated) to Vout2=0.375 based on the calculation of Vout using equation (1).


The graphical form of output voltage Vout of FIG. 3 corresponding to b2, b1, b0=0 1 1 is created in ways similar to that of Vout of FIG. 2.


As shown in Table 2 and in FIG. 2 and FIG. 3, for any combination of b2, b1, b0, the maximum value that Vout changes from one step to the next step is 0.500, which is at most equal to one half of the value of Vref=1.


In comparison to some conventional digital to analog converters (DACs), DAC 100 of FIG. 1 generally can have a smaller length of the path for output voltage Vout. The length is the sum of the segments from Vout=0 (at step j=−1) to the final value VoutN−1. Since the length of the path of Vout is generally smaller than that of some conventional DACs, the DAC 100 can be more efficient relative to some conventional DACs. Further, the maximum value change of Vout from one step to another step can generally be smaller than that of some conventional DACs, especially for the middle values of the digital input code. Thus, the time for DAC 100 to reach a final value (VoutN−1) of the output voltage can be smaller than that of conventional DACs, for the same accuracy. Therefore, DAC 100 can also be faster than conventional DACs.



FIG. 4 shows a partial block diagram of a DAC 400, according to an embodiment of the invention. DAC 400 includes an analog reference voltage generator 401, a digital phase generator 402, a input data storage 403, an input data encoder 404, an N-bit parallel to serial converter 405, a conversion unit 406, and a sample and hold output unit 407.


Analog reference voltage generator 401 generate reference voltages (signals) VRP, VRN, and VCM that are used during a conversion of a digital input code b0, b1, and b2 through bN−1 received at data input storage 403. Reference voltages VRP, VRN, and VCM are corresponding respectively to reference voltages +Vref, −Vref, and 0 described above.


Digital phase generator 402 receives a clock signal CLK, a signal SOC (start of conversion) to start a conversion of a digital input code, and a reset signal RST to reset DAC 400 before conversion of a first bit of a digital input code. DAC 400 provides a signal EOC (end of cycle) upon completion of a conversion of a digital input code. DAC 400 launches a conversion cycle when the SOC signal is detected high (e.g., SOC=1). Digital phase generator 402 also generates signals P0, P1, P2, and time<N−1:0> (i.e., time<0> through time<N−1>) in a regular sequence, and uses these signals during a conversion of a digital input code, as described in more details below with reference to FIG. 5 through FIG. 9.


Input data encoder 404 in FIG. 4 receives the N-bit digital input code b0, b1, and b2 through bN−1 in parallel and generates a first parallel N bits A<N−1:0> (i.e., A0 through AN−1) on a first set of N lines; a second parallel N bits B<N−1:0> (i.e., B0 through BN−1) on a second set of N lines; and a third parallel N bits C<N−1:0> (i.e., C0 through CN−1) on a third set of N lines.


Parallel to serial converter 405 converts the parallel N bits A<N−1:0> into one serial bit AS, the parallel N bits B<N−1:0> into one serial bit BS, and the parallel N bits C<N−1:0>into one serial bit CS. As shown in FIG. 4, each of the serial bits AS, BS, CS, is transferred on a single line from parallel to serial converter 405 to conversion unit 406.


Conversion unit 406 receives the 3 serial bits AS, BS, and CS based on timing of time time<N−1:0> as follows.


For LSB first implementation:






A
S
=A0.time<0>+A1.time<1>+ . . . +Ai.time<i>+ . . . +AN−1.time<N−1>






B
S
=B0.time<0>+B1.time<1>+ . . . +Bi.time<i>+ . . . +BN−1.time<N−1>






C
S
=C0.time<0>+C1.time<1>+ . . . +Ci.time<i>+ . . . +CN−1.time<N−1>


For MSB first implementation:






A
S
=A
N−1.time<0>+AN−2.time<1>+ . . . +AN−1−i.time<i>+ . . . +A0.time<N−1>






B
S
=B
N−1.time<0>+BN−2.time<1>+ . . . +BN−1−i.time<i>+ . . . +B0.time<N−1>






C
S
=C
N−1.time<0>+CN−2.time<1>+ . . . +CN−1−i.time<i>+ . . . +C0.time<N−1>


Conversion unit 406 also receives signals P0, P1, P2 and analog reference voltages (signals) VRP, VCM, VRN, and generates output voltage Vout in response to bits AS, BS, and CS.


Sample and hold unit 407 responds to digital signals S and H to sample output voltage Vout and transfers it to an output node of DAC 400 as VDAC. For example, sample and hold unit 407 samples output voltage Vout when S=1 and updates VDAC and hold it to the output of DAC 400 when H=1.



FIG. 5 shows a block diagram of an encoder 504, according to an embodiment of the invention. Encoder 504 can be substituted for input data encoder 404 of FIG. 4. As shown in FIG. 5, encoder 504 includes N identical encoder elements numbered from 0 to N−1. Encoder 504 receives digital input code bN−1, . . . , b2, b1, b0 (or b<N−1:0>) and output three parallel N-bit digital bits (or control bits) A<N−1:0>, B<N−1:0>, and C<N−1:0>. FIG. 5 shows an example where for N=12 bits and the encoding is independent from the technique (LSB or MSB applied first) used to generate the output voltage. As shown in FIG. 5, the most significant bit of the N=12 bit digital input code is bN−1 or b11 and is a common input to all encoder elements. Other inputs from bN−2 down to b0 are connected as shown. For each encoder element, there is a 1 bit shift (left) between input b<N−1:0>and output A<N−1:0>, and B<N−1:0>, and C<N−1:0>. Therefore, (A0, B0, C0) are produced from bN−1 only, for i=0. (Ai, Bi, Ci) are produced from (bi−1 and bN−1) for i=1 to N−1.


Encoder 504 digitally implements the function described in equation (2) and (3) above. Thus, for i=0 to N−1, (Ai, Bi, Ci) can be calculated as follows.






A
i=1 when fi=+1 otherwise Ai=0






B
i=1 when fi=0 otherwise Bi=0






C
i=1 when fi=−1 otherwise Ci=0


Table 3 is a truth table for encoder 504 when N=4 bits.













TABLE 3









input
representation
output



























code
b3
b2
b1
b0
f3
f2
f1
f0
A3
A2
A1
A0
B3
B2
B1
B0
C3
C2
C1
C0






























0
0
0
0
0
−1
−1
−1
−1
0
0
0
0
0
0
0
0
1
1
1
1


1
0
0
0
1
−1
−1
0
−1
0
0
0
0
0
0
1
0
1
1
0
1


2
0
0
1
0
−1
0
−1
−1
0
0
0
0
0
1
0
0
1
0
1
1


3
0
0
1
1
−1
0
0
−1
0
0
0
0
0
1
1
0
1
0
0
1


4
0
1
0
0
0
−1
−1
−1
0
0
0
0
1
0
0
0
0
1
1
1


5
0
1
0
1
0
−1
0
−1
0
0
0
0
1
0
1
0
0
1
0
1


6
0
1
1
0
0
0
−1
−1
0
0
0
0
1
1
0
0
0
0
1
1


7
0
1
1
1
0
0
0
−1
0
0
0
0
1
1
1
0
0
0
0
1


8
1
0
0
0
0
0
0
+1
0
0
0
1
1
1
1
0
0
0
0
0


9
1
0
0
1
0
0
+1
+1
0
0
1
1
1
1
0
0
0
0
0
0


10
1
0
1
0
0
+1
0
+1
0
1
0
1
1
0
1
0
0
0
0
0


11
1
0
1
1
0
+1
+1
+1
0
1
1
1
1
0
0
0
0
0
0
0


12
1
1
0
0
+1
0
0
+1
1
0
0
1
0
1
1
0
0
0
0
0


13
1
1
0
1
+1
0
+1
+1
1
0
1
1
0
1
0
0
0
0
0
0


14
1
1
1
0
+1
+1
0
+1
1
1
0
1
0
0
1
0
0
0
0
0


15
1
1
1
1
+1
+1
+1
+1
1
1
1
1
0
0
0
0
0
0
0
0










FIG. 6 shows a schematic diagram of an encoder element 605, according to an embodiment of the invention. Encoder element 605 includes two digital input bi and bN−1 and three digital output a, b, and c. FIG. 6 shows encoder element 605 including 12 bits (N=12). Thus, bN−1=b11. Encoder element 605 includes a combination of five digital gates including a NAND gate 610, a NOR gate 612, an AND gate 614, and inverters 616 and 618. FIG. 6 shows an example of encoder element 605. Other implementation can be used to generate output a, b, and c.


Based on the arrangement of the components of FIG. 6, input to output equations can be simplified as:
















output
note









a = bN−1 · bi
(AND)



b = bN−1 ⊕ bi
⊕ is the XOR (exclusive




or)



c = bN−1 + bi
(NOR)











The output (a,b,c) of encoder element 605 are mutually exclusive.


The truth table for encoder element 605 is given in Table 4.











TABLE 4








input
output











bN−1
bi
a
b
c





0
0
0
0
1


0
1
0
1
0


1
0
0
1
0


1
1
1
0
0










FIG. 7 shows a partial block diagram of a DAC 700 having a conversion unit 706, according to an embodiment of the invention. Conversion unit 706 can be substituted for conversion unit 406 of DAC 400 of FIG. 4. Conversion unit 706 is a single-ended version of a digital to analog conversion unit used to generate a single-ended analog output voltage Vout. A fully differential conversion unit to generate a differential output voltage can also be implemented, such as the one shown in FIG. 9.


As shown in FIG. 7, DAC 700 includes three analog reference voltages VRP, VCM, and VRN, which can be used to provide reference voltages such as +Vref, 0, and −Vref described above with reference to FIG. 1 through FIG. 6. Reference voltage VCM has a value equal to the average of the values of reference voltages VRP and VRN.


DAC 700 also includes three digital inputs AS, BS, and CS containing information of the serial input code at corresponding allocated time slots. AS, BS, and CS correspond to A<N−1:0>, B<N−1:0>, and C<N−1:0>, respectively, described above with reference to FIG. 4 and FIG. 5. DAC 700 also includes three signals P0, P1, P2 containing information of a reset phase (P0), a sampling phase (P1), and an analog update phase (P2).


DAC 700 also includes an amplifier 710 and a capacitor network including capacitors C1 and C2. Amplifier 710 is a single-ended operational amplifier. However, a fully differential operational amplifier can be used in the differential version of conversion unit 706. Capacitors C1 and C2 have the same capacitance value C. DAC 700 also includes switching circuitry having switches SD0, SDA, SDB, SDC, SU1, SU2, SR0, and SR1. Switches SDA, SDB, and SDC are controlled by control signals P1A, P1B, and P1C, respectively.


The switches shown in FIG. 7 may be implemented using any suitable circuit element(s). For example, in some cases, one or more switches are implemented using isolated gate transistors such as metal oxide semiconductor field effect transistors (MOSFET). Further, in other cases, complementary MOSFETs are coupled in parallel to form pass gates. For example, an n-channel MOSFET may be coupled in parallel with a p-channel MOSFET as a transistor pass gate to implement one or more switches in FIG. 7.


DAC 700 also includes gates 721, 722, and 723 to generate signals P1A, P1B, and P1C based on signal P1 and signals AS, BS, and CS, such that P1A=AS.P1 (or a logical AND of AS and P1); P1B=BS.P1 (or a logical AND of BS and P1); and P1C=CS.P1 (or a logical AND of CS and P1). Thus, as shown in FIG. 7, gates 721, 722, and 723 can include logical AND gates to generate signals P1A, P1B, and P1C.


DAC 700 uses switches SR0 and SR1 to reset conversion unit 706, for example, to set output voltage Vout initially at zero. DAC 700 uses switches SD0, SDA, SDB, and SDC to apply reference voltages to the capacitor C1. DAC 700 uses switches SU1 and SU2 to update analog output voltage Vout during a conversion. The operation of DAC 700 is described below with reference to both FIG. 7 and FIG. 8.



FIG. 8 is an example timing diagram for DAC 700 of FIG. 7, according to an embodiment of the invention. Signal CLK is the input clock. The number 1, 2, 3, 4, and 5 through 25 next to the waveform of signal CLK correspond to the periods of the CLK signal.


Signal SOC is the start of conversion signal used to start a conversion. As shown in FIG. 8, the SOC signal may go to a higher level (e.g., high or SOC=1) at period number 1 of the CLK signal to start the conversion. Then, the SOC goes to a lower level (e.g., low of SOC=0) during the conversion. The SOC goes high again at the start of a next conversion.


Signal EOC is the end of cycle signal generated when the conversion is completed. For example, the EOC signal may go to a lower level (e.g., EOC=0) at period number 25, indicating the end of a conversion. As shown in FIG. 8, at period 25 of the CLK signal, the SOC signal can go to a high level at the same time the EOC is high, in order to restart another conversion when the previous one has completed.


Signal P0 is for the beginning of the cycle. When P0 is high (P0=1), the input bus is latched in order to make all the data stable. It is also the time when the conversion unit 706 (FIG. 7) is reset.


Time<0>, time<1>, and time<2> through time<N−1> are periods of time corresponding to the bits being treated during the conversion cycle. In this case, the conversion cycle is based on the LSB first technique, as shown by bits A<0>, B<0>, and C<0> being treated at period number 1 of the CLK signal.


Serial data AS, BS, and CS are changed on the high level of the time<0>through time<N−1>. A input data encoder (such as input data encoder 404 of FIG. 4) of DAC 700 produces data AS, BS, and CS, such that AS, BS, and CS are stable when P1 is high for reliable conversion.


Signal P1 is used for sampling the reference voltages (VRP, VCM, VRN) during the conversion. Signal P2 is used for updating the value of analog output voltage Vout. As shown in FIG. 8, for each data bit, signals P1 and P2 are alternately asserted. The time period during which P1 is asserted is referred to herein as “phase one” for a particular data bit. The time period during which P2 is asserted is referred to herein as “phase two” for the same data bit. In some embodiments, phases one and two do not overlap, such that they cannot both be high at the same time. For example, the switches in FIG. 7 that are turned on (closed) during phase one are turned off (opened) before the phase two switches close during phase two. Likewise, the phase two switches are turned off prior to the phase one switches turning on. The width of signals P1 and P2 when they are high (P1=1 or P2=1) can be substantially equal to the period of the CLK signal (Tclk), such that the non overlap delay is negligible relative to Tclk.


The total number of periods of the CLK signal used in a conversion (TDAC) is calculated as follows. Resetting conversion unit 706 can be performed in one period Tclk of the CLK signal at the beginning of the conversion, which is the time between the rising edge of the P0 signal and the first rising edge of the P1 signal at period number 1 of the CLK signal. To obtain a final value of output voltage Vout from a conversion of a digital input code of N bits, the number of times the P1 signal is high (P1=1) is equal to N, and the number of times the P2 signal is high (P2=1) is also equal to N. Therefore, the total number of periods of the CLK signal used in a conversion is TDAC=2N+1. Thus, if N=12, then TDAC=25. If the CLK signal has as frequency of 50 MHz (megahertz) used in conversion unit 706, then DAC 700 will produce a data rate of 2 Msps (Million of samples per second). The operation of DAC 700 based on the timing of FIG. 8 is described below.


At the time when P0=1, switches SR0 and SR1 are turned on (closed) so that the system is reset giving initial output voltage Vout=0. A zero voltage is also stored across capacitor C2, which is shorted by switches SR1 being turned on. Switches SR0 and SR1 are turned off (opened) the rest of the time when P0=0. Thus, output voltage Vout is initially equal to zero. Then, DAC 700 performs N steps numbered j (j=0 to N−1) to successively apply reference voltages VRP, VRN, and VCM to conversion unit 706 to update the value of output voltage Vout as follows.


At all times when P1=1, switch SD0 is turned on. Capacitor C1 is charged as follows.


C1 is charged to






VRP−VCM=+Vref through switch SDA if AS=1






VCM−VCM=0 through switch SDB if BS=1






VRN−VCM=−Vref through switch SDC if CS=1


When P1=0, switches SD0, SDA, SDB, and SDC are all turned off.


When P1=1 (P2=0), output voltage Vout does not change because it is held by the voltage across capacitor C2 which does not change. This (when P1=1 and P2=0) can be considered a memory state for output voltage Vout.


Thus, at step j (when P1=1) the value of output voltage Voutj is





(at step j, P1=1), Voutj=Voutj−1


At all times when P2=1, switches SU1 and SU2 are turned on. Thus, capacitor C1 is connected in parallel with capacitor C2 between the inverted (−) input node and the output node of amplifier 710. The charges previously stored in capacitor C1 (e.g., when P1=1 and P2=0) are then equally spread over the parallel combination of capacitors C1 and C2. Since the capacitance value of capacitors C1 and C2 is the same, the parallel combination of capacitors C1 and C2 is twice the capacitance of capacitor C1 (C1+C2=2C1). Therefore, the charges previously stored in capacitor C1 are divided by two. Switches SU1 and SU2 are turned off the rest of the time when P2=0. Thus, at step j (P2=1) the value of output voltage Voutj is







(


at





step





j

,


P





2

=
1


)

,






Vout
j

=



Vout

j
-
1


+


As
j

·
Vref

+


Bs
j

·
0

-


Cs
j

·
Vref


2






By incrementing j and repeating previous operations P1−P2−P1−P2 (P1=1, P2=1, P1=1, and so on) up to j=N−1 leads to the final value of output voltage VoutN−1:







(


at





step





N


-


1

,


P





2

=
1


)

,






Vout

N
-
1


=




j
=
0


N
-
1







As
j

·
Vref

+


Bs
j

·
0

-


Cs
j

·
Vref



2

N
-
j









Thus the final output voltage is reached at the end of the last P2=1 time slot.


As described above, the update of the output voltage Vout is performed by letting the capacitor C1 and C2 share their respective charges without loading input nodes (+and −) of amplifier 710 for the charge sharing. Thus, DAC 700 can be relatively insensitive to the amplifier bandwidth of amplifier 710. The capacitance values of capacitors C1 and C2 can be relatively large without affecting the speed of the DAC 700. Errors due to mismatch in coefficient values of capacitors C1 and C2 can also be minimized.



FIG. 9 shows a partial block diagram of a differential DAC 900 having a differential conversion unit 906, according to an embodiment of the invention. Since DAC 900 is differential, the analog output voltage (e.g., Voutdiff) of DAC 900 can be defined as a function of output voltages Voutp and Voutn, e.g., Voutdiff=Voutp−Voutn. DAC 900 includes reference voltages VRP, VCM, and VRN, an operational amplifier 910, a capacitor network including capacitors C1P, C2P, C1N, and C2N, and a switching circuitry including switches SD0P, SDAP, SDBP, SDCP, SU1P, SU2P, SR1P, SR2P, SD0N, SDAN, SDBN, SDCN, SU1N, SU2N, SR1N, SR2N, and SR0. These switches are controlled by signals P1A, P1B, and P1C, as shown in FIG. 9. DAC 900 also includes gates 921, 922, and 923 to generate signals P1A, P1B, and P1C based on signal P1 and signals AS, BS, and CS.


The operation of DAC 900 is similar to the operation of DAC 700 of FIG. 7. For example, during reset when P0=1, switches SR1P, SR2P, SR1N, SR2N and SR0 are turned on (closed) so that the system is reset, giving initial output voltage Voutp=Voutn=0. Thus, Voutdiff=Voutp−Voutn=0 at reset. A zero voltage is also stored across capacitors C2P and C2N which are shorted by switches SR1P and SR1N being turned on. Switches SR1P, SR2P, SR1N, SR2N are turned off (opened) the rest of the time when P0=0. Thus, output voltages Voutp, Voutn, and Voutdiff are initially equal to zero. Then, DAC 900 performs N steps numbered j (j=0 to N−1) to successively apply reference voltages VRP, VRN, and VCM to conversion unit 906 to update the values of output voltages Voutp, Voutn and Voutdiff as follows.


At all times when P1=1, switches SD0P and SD0N are turned on. Capacitors C1P and C1N are charged as follows.


C1P is charged to






VRP−VCM=+Vref through switch SDAP if AS=1






VCM−VCM=0 through switch SDBP if BS=1






VRN−VCM=−Vref through switch SDCP if CS=1


C1N is charged to






VRN−VCM=−Vref through switch SDAN if AS=1






VCM−VCM=0 through switch SDBN if BS=1






VRP−VCM=+Vref through switch SDCN if CS=1


When P1=0, switches SD0P, SDAP, SDBP, SDCP and SD0N, SDAN, SDBN, SDCN are all turned off.


When P1=1 (P2=0), output voltages Voutp and Voutn do not change because they are held by the voltage across capacitors C2P and C2N, respectively, which do not change. This (when P1=1 and P2=0) can be considered a memory state for output voltages Voutp, Voutn, and Voutdiff.


Thus, at step j (when P1=1) the value of output voltages are:





(at step j, P1=1), Voutpj=Voutpj−1





(at step j, P1=1), Voutnj=Voutnj−1





(at step j, P1=1), Voutdiffj=Voutdiffj−1


At all times when P2=1, switches SU1P, SU2P, SU1N, and SU2N are turned on. Thus, capacitor C1P is connected in parallel with capacitor C2P between the inverted (−) input node and the output node (+) of amplifier 910. Capacitor C1N is connected in parallel with capacitor C2N between the noninverted (+) input node and the output node (−) of amplifier 910. The charges previously stored in capacitor C1P (e.g., when P1=1 and P2=0) are then equally spread over the parallel combination of capacitors C1P and C2P. The charges previously stored in capacitor C1N (e.g., when P1=1 and P2=0) are then equally spread over the parallel combination of capacitors C1N and C2N. Since the capacitance value of capacitors C1P and C2P is the same, the parallel combination of capacitors C1P and C2P is twice the capacitance of capacitor C1P (C1P+C2P=2C1P). Therefore, the charges previously stored in capacitor C1P are divided by two. Since the capacitance value of capacitors C1N and C2N is the same, the parallel combination of capacitors C1N and C2N is twice the capacitance of capacitor C1N (C1N+C2N=2C1N). Therefore, the charges previously stored in capacitor C1N are also divided by two. Switches SU1P, SU2P, SU1N, and SU2N are turned off the rest of the time when P2=0. Thus, at step j (P2=1) the value of output voltages Voutpj, Voutnj and Voutdiffj are shown below.







(


at





step





j

,


P





2

=
1


)

,






Voutp
j

=



Voutp

j
-
1


+


As
j

·
Vref

+


Bs
j

·
0

-


Cs
j

·
Vref


2









(


at





step





j

,


P





2

=
1


)

,






Voutn
j

=



Voutn

j
-
1


-


As
j

·
Vref

+


Bs
j

·
0

+


Cs
j

·
Vref


2









(


at





step





j

,


P





2

=
1


)

,






Voutdiff
j

=


Voutp
j

-

Voutn
j







Incrementing j and repeating previous operations P1−P2−P1−P2 up to j=N−1 leads to the final value of output voltages VoutpN−1, VoutnN−1 and VoutdiffN−1 as follows.







(


at





step





N


-


1

,


P





2

=
1


)

,






Voutp

N
-
1


=




j
=
0


N
-
1







As
j

·
Vref

+


Bs
j

·
0

-


Cs
j

·
Vref



2

N
-
j












(


at





step





N


-


1

,


P





2

=
1


)

,






Voutn

N
-
1


=




j
=
0


N
-
1







-

As
j


·
Vref

+

Bs
j

+


Cs
j

·
Vref



2

N
-
j












(


at





step





N


-


1

,


P





2

=
1


)

,






Voutdiff

N
-
1


=



Voutp

N
-
1


-

Voutn

N
-
1



=

2






Voutp

N
-
1









Thus the final output voltages are reached at the end of the last P2=1 time slot. The amplitude of analog output voltage Voutdiff of DAC 900 of FIG. 9 is twice the amplitude of analog output voltage Vout of DAC 700 of FIG. 7 because Voutdiff associated with FIG. 9 is differential whereas Vout associated with FIG. 7 is single-ended. Therefore, in applications where the output dynamic range of the DAC is a concern, DAC 900 can be more applicable than DAC 700.


One or more embodiments described herein include apparatus and methods having an amplifier, a capacitor network coupled to the amplifier, and switching circuitry coupled to the amplifier and the capacitor network. The switching circuit is configured to successively apply a selected reference voltage selected from among a first reference voltage, a second reference voltage, and a third reference voltage to the capacitor network in response to a digital input code to generate an output voltage. Other embodiments, including additional apparatus and methods, are described above with reference to FIG. 1 through FIG. 9.


The illustrations of the apparatus, such as apparatus 101, DAC 400, DAC 700, and DAC 900, are intended to provide a general understanding of the structure of various embodiments and not a complete description of all the elements and features of the apparatus that might make use of the structures described herein.


Any of the components described above can be implemented in a number of ways, including simulation via software. Thus, the apparatus (e.g., apparatus 101, DAC 400, DAC 700, and DAC 900) and their associated components described above can all be characterized as “modules” (or “module”) herein. Such modules may include hardware circuitry, single and/or multi-processor circuits, memory circuits, software program modules and objects and/or firmware, and combinations thereof, as desired by the architect of the apparatus (e.g., apparatus 101, DAC 400, DAC 700, and DAC 900), and as appropriate for particular implementations of various embodiments. For example, such modules may be included in a system operation simulation package, such as a software electrical signal simulation package, a power usage and distribution simulation package, a capacitance-inductance simulation package, a power/heat dissipation simulation package, a signal transmission-reception simulation package, and/or a combination of software and hardware used to operate or simulate the operation of various potential embodiments.


The apparatus of various embodiments includes or can be included in electronic circuitry used in high-speed computers, communication and signal processing circuitry, memory modules, portable memory storage devices (e.g., thumb drives), single or multi-processor modules, single or multiple embedded processors, multi-core processors, data switches, and application-specific modules including multilayer and multi-chip modules. Such apparatus may further be included as sub-components within a variety of electronic systems such as televisions, memory cellular telephones, personal computers (e.g., laptop computers, desktop computers, handheld computers, tablet computers, etc.), workstations, radios, video players, audio players (e.g., MP3 (Motion Picture Experts Group, Audio Layer 3) players), vehicles, medical devices (e.g., heart monitor, blood pressure monitor, etc.), set top boxes, and others.


The above description and the drawings illustrate some embodiments of the invention to enable those skilled in the art to practice the embodiments of the invention. Other embodiments may incorporate structural, logical, electrical, process, and other changes. In the drawings, like features or like numerals describe substantially similar features throughout the several views. Portions and features of some embodiments may be included in, or substituted for, those of others. Many other embodiments will be apparent to those of skill in the art upon reading and understanding the above description.


The Abstract is provided to comply with 37 C.F.R. §1.72(b) requiring an abstract that will allow the reader to quickly ascertain the nature and gist of the technical disclosure. The Abstract is submitted with the understanding that it will not be used to interpret or limit the claims.

Claims
  • 1. A digital to analog converter comprising: an amplifier;a capacitor network coupled to the amplifier; andswitching circuitry configured to successively apply a selected reference voltage selected from among a first reference voltage, a second reference voltage, and a third reference voltage to the capacitor network in response to a digital input code.
  • 2. The digital to analog converter of claim 1, wherein the switching circuitry includes at least one switch configured to apply the selected reference voltage to the capacitor network in response to a control signal generated based, at least in part, on a logical combination of two bits of the digital input code.
  • 3. The digital to analog converter of claim 1, wherein the capacitor network includes a first capacitor configured to share charge with a second capacitor of the capacitor network when at least one switch of the switching circuitry is turned on.
  • 4. The digital to analog converter of claim 3, wherein the first and second capacitors have a same capacitance value.
  • 5. The digital to analog converter of claim 1, wherein the switching circuitry is configured to apply the selected reference voltage to both a first plate and a second plate of a capacitor of the capacitor network when at least one switch of the switching circuitry is turned on.
  • 6. The digital to analog converter of claim 1, wherein the switching circuitry includes a switch to apply a selected reference voltage of zero volts to the capacitor network.
  • 7. A digital to analog converter comprising: an amplifier including a first input node, a second input node, and an output node;a capacitor network including a first capacitor coupled between a first node and a second node, and a second capacitor coupled between the first input node and the output node of the amplifier; andswitching circuitry coupled to the first and second capacitors and including a number of switches configured to selectively apply one of a first reference voltage, a second reference voltage, and a third reference voltage to the first capacitor during generation of an output voltage at the output node of the amplifier.
  • 8. The digital to analog converter of claim 7, wherein the number of switches includes: a first switch responsive to a first control signal to apply the first reference voltage to the first capacitor;a second switch responsive to a second control signal to apply the second reference voltage to the first capacitor; anda third switch responsive to a third control signal to apply the third reference voltage to the first capacitor.
  • 9. The digital to analog converter of claim 8, further comprising an encoder element having a first input to receive a first bit of a digital input code, a second input node to receive a second bit of the digital input code, and at least one output node to provide a control bit used to generate at least one of the first, second, and third control signals.
  • 10. The digital to analog converter of claim 7, wherein the switching network includes: a first switch coupled between the first node and the first input node of the amplifier; anda second switch coupled between the second node and the output node of the amplifier.
  • 11. The digital to analog converter of claim 7, wherein the capacitor network further includes: a third capacitor coupled between a third node and a fourth node; anda fourth capacitor coupled between the second input node of the amplifier and an additional output node of the amplifier.
  • 12. The digital to analog converter of claim 11, wherein the switching network is configured to couple the first capacitor in parallel with the second capacitor between the first input node of the amplifier and the output node of the amplifier in at least one cycle of a clock signal during generation of the output voltage at the first output node, and the switching network is configured to couple the third capacitor in parallel with the fourth capacitor between the second input node of the amplifier and the additional output node of the amplifier in at least one cycle of the clock signal during generation of an additional output voltage at the additional output node.
  • 13. A method comprising: generating an output voltage at an output node of a cyclic digital to analog converter;applying a selected reference voltage selected from among a first reference voltage, a second reference voltage, and a third reference voltage to the cyclic digital to analog converter in response to a bit of a digital input code received at the cyclic digital to analog converter;updating a value of the output voltage following the applying of the selected reference voltage; andrepeating the applying and the updating for remaining bits of the digital input code.
  • 14. The method of claim 13, wherein applying the selected reference voltage is in response to applying a least significant bit of the digital input code first.
  • 15. The method of claim 13, wherein applying the selected reference voltage is in response to applying a most significant bit of the digital input code first.
  • 16. The method of claim 13, wherein the value of the output voltage is equal to an initial value before applying the selected reference voltage, and wherein updating includes decreasing the initial value if a most significant bit of the digital input code has a first value and increasing the initial value if the most significant bit of the digital input code has a second value.
  • 17. The method of claim 13, wherein updating includes sharing charge between at least two capacitors of the capacitor network to change the value of the output voltage.
  • 18. The method of claim 13, wherein updating the value of the output voltage includes dividing the value of the output voltage by two without changing the value of the output voltage before the value of the output voltage is divided by two.
  • 19. The method of claim 13, wherein a value of each of the first and second reference voltages is at least equal to zero, and a value of the third reference voltage is an average of the value of the first reference voltage and the value of the second reference voltage.
  • 20. The method of claim 13, wherein a value of one of the first, second, and third reference voltages is zero.