APPARATUS AND METHOD FOR MEASURING CURRENT SOURCE MISMATCHES IN CURRENT-STEERING DAC BY RE-USING R2R NETWORK
20200099389 ยท 2020-03-26
Inventors
- Eunyung Sung (San Diego, CA, US)
- Nitz Saputra (Burlingame, CA, US)
- Behnam Sedighi (La Jolla, CA, US)
- Ashok Swaminathan (Cardiff, CA, US)
- Honghao Ji (San Diego, CA, US)
- Shahin MEHDIZAD TALEIE (San Diego, CA, US)
- Dongwon Seo (San Diego, CA, US)
Cpc classification
H03M1/687
ELECTRICITY
International classification
H03M1/68
ELECTRICITY
Abstract
A current digital-to-analog converter includes a binary current-generating section configured to generate a binary-weighted current based on a first set of control signals; a unary current-generating section configured to generate a unary-weighted current based on a second set of control signals; and a current combining circuit configured to add or subtract a reference current and a current generated by a current source of the unary current-generating section using the binary-weighted current.
Claims
1. An apparatus for measuring current mismatch, comprising: a current digital-to-analog converter (DAC) configured to convert an input digital signal into an output analog current, comprising: a first current-generating section configured to generate a first current based on a first set of control signals in response to the input digital signal or a measurement mode; a second current-generating section configured to generate a second current based on a second set of control signals in response to the input digital signal or the measurement mode, wherein the first and second currents are summed to generate the output analog current in response to the input digital signal; and a current combining circuit configured to add or subtract a reference current and a current generated by a current source of the second current-generating section using the first current in response to the measurement mode.
2. The apparatus of claim 1, wherein the first current-generating section comprises an R2R resistor network, wherein the first current is generated at a node of the R2R resistor network.
3. The apparatus of claim 2, wherein the current combining circuit comprises a scaling device configured to scale the first current, wherein the current combining circuit is configured to add or subtract the reference current and the current generated by the current source using the scaled first current.
4. The apparatus of claim 3, wherein the scaling device comprises a resistor.
5. The apparatus of claim 3, further comprising a comparator configured to compare an output current or output voltage generated by the current combining circuit with a reference voltage.
6. The apparatus of claim 5, wherein the comparator includes a first input coupled to the current combining circuit and a second input configured to receive the reference voltage and coupled to a resistor.
7. The apparatus of claim 1, wherein the first current-generating section comprises: a set of current sources configured to generate a set of currents; and an R2R resistor network configured to generate the first current based on one or more of the set of current sources.
8. The apparatus of claim 7, wherein the current combining circuit comprises a first resistor configured to scale the first current, wherein the current combining circuit is configured to add or subtract the reference current and the current generated by the current source using the scaled first current.
9. The apparatus of claim 8, wherein the comparator includes a first input coupled to the current combining circuit and a second input coupled to a second resistor.
10. The apparatus of claim 1, wherein the first current comprises a binary-weighted current, and wherein the second current comprises unary-weighted current.
11. The apparatus of claim 1, wherein the first current-generating section and the second current-generating section are single-ended or differential current-generating sections, respectively.
12. The apparatus of claim 1, wherein the current combining circuit comprises a current summer configured to generate a third current based on a sum of the first current with the reference current.
13. The apparatus of claim 12, wherein the current combining circuit further comprises a current subtractor configured to generate a fourth current based on a difference between the current from the current source and the third current.
14. The apparatus of claim 13, wherein the current subtractor comprises a current mirror including a first input configured to receive the current from the current source and a second input configured to receive the third current.
15. The apparatus of claim 13, wherein the current combining circuit further comprises a current comparator configured to generate a signal based on a comparison of the fourth current with a threshold.
16. The apparatus of claim 13, wherein the current combining circuit further comprises a controller configured to generate the first set of control signals to adjust the first current to decrease the fourth current to substantially nil.
17. The apparatus of claim 16, wherein a value of the first set of control signals when the fourth current is substantially nil provides an indication of a mismatch between the reference current and the current generated by the current source.
18. The apparatus of claim 1, wherein the current combining circuit is configured to measure a current mismatch between the reference current and another current generated by another current source of the first current-generating section.
19. The apparatus of claim 1, wherein the second current-generating section comprises a set of current sources including the current source, and further comprising a controller configured to adjust the current source based on a current mismatch between the current generated by the current source and the reference current.
20. (canceled)
21. A digital-to-analog converter circuit for converting an input digital signal to an output analog current, comprising: a first section configured to generate a first current in response to the input digital signal or a measurement mode, comprising: a first set of current sources configured to generate a first set of one or more currents, respectively, in response to the input digital signal or the measurement mode; and one or more resistive networks configured to generate the first current based on the first set of one or more currents; a second section configured to generate a second current in response to the input digital signal or the measurement mode, wherein the second section comprises a second set of current sources, wherein the first and second currents are summed to generate the output analog current in response to the input digital signal; and a measurement circuit operably coupled to the first section and the second section in response to the measurement mode.
22. The digital-to-analog converter circuit of claim 21, wherein the measurement circuit is configured to output a signal indicative of an amount of current mismatch between a reference current and the second current from at least one of the second set of current sources in response to the measurement mode.
23. The digital-to-analog converter circuit of claim 21, wherein the first section is a binary current-generating section, wherein the second section is a unary current-generating section.
24. The digital-to-analog converter circuit of claim 21, wherein each of the one or more resistive networks is an R2R network.
25. The digital-to-analog converter circuit of claim 21, wherein the measurement circuit is configured to receive a first the second current from at least one of the second set of current sources.
26. The digital-to-analog converter circuit of claim 25, wherein the measurement circuit is configured to compare the second current from the at least one of the second set of current sources to the first current generated at least in part from the first section in response to the measurement mode.
27. The digital-to-analog converter circuit of claim 26, wherein the measurement circuit is configured to control one or more switches of the first section to decrease a difference between the second current from the at least one of the second set of current sources and the first current provided by the first section.
28. A method of measuring current mismatch, comprising: generating a first current based on a first set of control signals in response to an input digital signal or a measurement mode; generating a second current based on a second set of control signals in response to an input digital signal or a measurement mode, wherein the first and second currents are summed to generate an output analog current in response to the input digital signal; and generating an indication of a current mismatch between a reference current and the second current using the first current in response to the measurement mode.
29. The method of claim 28, wherein the indication is a value of the first set of control signals when a difference between the second current and a sum of the first and reference currents is a defined value.
30. An apparatus for measuring current mismatch, comprising: means for generating a first current based on a first set of control signals in response to an input digital signal or a measurement mode; means for generating a second current based on a second set of control signals in response to an input digital signal or a measurement mode, wherein the first and second currents are summed to generate an output analog current in response to the input digital signal; and means for generating an indication of a current mismatch between a reference current and the second current using the first current in response to the measurement mode.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
DETAILED DESCRIPTION
[0021] The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.
[0022]
[0023] The current DAC 100 includes a binary current-generating section 110, a unary current-generating section 120, and a decoder 150. The decoder 150 receives the input digital signal DIN and generates control signals b.sub.1 to b.sub.N and t.sub.1 to t.sub.M for controlling the operations of the binary current-generating section 110 and the unary current-generating section 120, respectively.
[0024] The binary current-generating section 110 includes a set of current sources T.sub.U11 to I.sub.U1N, a set of switches S.sub.11 to S.sub.1N, and a R2R resistor network 115. The set of current sources I.sub.U11 to I.sub.U1N are coupled in series with the set of switches S.sub.11 to S.sub.1N between an upper voltage rail VDD and a set of nodes n1 to nN of the R2R resistor network 115, respectively.
[0025] The R2R resistor network 115 includes a resistor with a resistance R between node n1 and a source of a reference voltage V.sub.REF. The R2R resistor network 115 includes another resistor with a resistance R coupled between node n1 and node n2 (not depicted). The R2R resistor network 115 further includes resistors with resistance of 2R between the nodes n2 to nN and the reference voltage source V.sub.REF, respectively. Additionally, the R2R resistor network 115 includes resistors with resistors R between pair of nodes n2-n3 to nN-output node of the binary current-generating section 110, respectively.
[0026] If all the switches S.sub.11 to S.sub.1N are closed, the set of current sources I.sub.U11 to I.sub.U1N are ideally configured to provide substantially the same amount of currents I.sub.U to the set of nodes n1 to nN of the R2R resistor network 115, respectively. The R2R resistor network 115 applies binary weights (e.g., ().sup.N, ().sup.N1 to to the currents I.sub.U generated by the current sources I.sub.U11, I.sub.U12 to I.sub.U1N, respectively. The R2R resistor network 115 sums all the binary-weighted currents to generate an intermediate current I.sub.int.
[0027] The control signals b.sub.1 to b.sub.N generated by the decoder 150 based on the input digital signal DIN control the close/open states of the set of switches S.sub.11 to S.sub.1N, respectively. Thus, if any one or more of the control signals b.sub.1 to b.sub.N are asserted, the corresponding one or more of the switches S.sub.11 to S.sub.1N are in the closed state; allowing the corresponding one or more currents I.sub.U to be applied to the corresponding one or more of the nodes n1 to nN of the R2R resistor network 115; and allowing the corresponding one or more binary-weighted currents to be summed to form the intermediate current I.sub.int.
[0028] Conversely, if any one or more of the control signals b.sub.1 to b.sub.N are deasserted, the corresponding one or more of the switches S.sub.11 to S.sub.1N are in the open state; preventing the corresponding one or more currents I.sub.U to be applied to the corresponding one or more of the nodes n1 to nN of the R2R resistor network 115; and not allowing the corresponding one or more binary-weighted currents to be summed to form the intermediate current I.sub.int. Accordingly, the decoder 150 sets the states of the control signals b.sub.1 to b.sub.N so that the binary current-generating section 110 generates the intermediate current I.sub.int based on the input digital signal DIN.
[0029] The unary current-generating section 120 includes a set of current sources I.sub.U21 to I.sub.U2M and a set of switches S.sub.21 to S.sub.2M (e.g., transistors) coupled in series between the upper voltage rail VDD and the output of the current DAC 100. The control signals t.sub.1 to t.sub.M generated by the decoder 150 controls the close/open states of the switches S.sub.21 to S.sub.2M, respectively. Each of the current sources I.sub.U21 to I.sub.U2M are ideally configured to generate substantially the same amount of current I.sub.U.
[0030] Thus, if any one or more of the control signals t.sub.1 to t.sub.M are asserted, the corresponding one or more of the switches S.sub.21 to S.sub.2M are in the closed state; thereby allowing the corresponding one or more currents I.sub.U to be summed with the intermediate current I.sub.int generated by the binary current-generating section 110 to form the output current I.sub.OUT of the current DAC 100.
[0031] If any one or more of the control signals t.sub.1 to t.sub.M are deasserted, the corresponding one or more of the switches S.sub.21 to S.sub.2M are in the open state; thereby not allowing the corresponding one or more currents I.sub.U to be summed with the intermediate current I.sub.int generated by the binary current-generating section 110 to form the output current I.sub.OUT of the current DAC 100.
[0032] Thus, the binary current-generating section 110 is configured to provide a fine resolution intermediate current I.sub.int (e.g., resolution of ().sup.N*I.sub.U) contribution to the output current I.sub.OUT based on the control signals b.sub.1 to b.sub.N generated by the decoder 150 based on the input current signal DIN. The unary current-generating section 120 is configured to provide a course resolution intermediate current I.sub.int (e.g., resolution of an I.sub.U) contribution to the output current I.sub.OUT based on the control signals t.sub.1 to t.sub.M generated by the decoder 150 based on the input current signal DIN.
[0033]
[0034] The current-steering DAC 200 includes a differential binary current-generating section 210, a differential binary current-generating section 220, and a decoder 250. The decoder 250 receives an input digital signal DIN and generates complementary control signals b.sub.1/
[0035] The differential binary current-generating section 210 includes a set of current sources I.sub.U11 to I.sub.U1N, a set of non-complementary switches S.sub.11 to S.sub.1N, a set of complementary switches S.sub.11 to S.sub.1N, and a differential R2R resistor network 215. The set of current sources T.sub.U11 to I.sub.U1N are coupled in series with the set of non-complementary switches S.sub.11 to S.sub.1N between an upper voltage rail VDD and a set of non-complementary nodes of the differential R2R resistor network 215. Also, the set of current sources I.sub.U11 to I.sub.U1N are coupled in series with the set of complementary switches S.sub.11 to S.sub.1N between the upper voltage rail VDD and a set of complementary nodes of the differential R2R resistor network 215.
[0036] The differential R2R resistor network 215 includes two resistors with resistance R coupled between complementary nodes of the first-stage (associated with current source I.sub.U11) The node between the two resistors is coupled to a source of a reference voltage V.sub.REF. The differential R2R resistor network 215 further includes two resistors of resistance R coupled between the complementary nodes of the first stage and the complementary nodes of the second stage (associated with current source I.sub.U12 not shown for simplicity sake), respectively. The differential R2R resistor network 215 includes two resistors with resistance 2R coupled between complementary nodes of the second-stage. The node between the two resistors is coupled to the reference voltage source V.sub.REF. The pattern of the two resistors with resistance of 2R between the complementary nodes of the current stage with the-between node coupled to the source of the reference voltage, and the two resistors with resistance R coupled between the complementary nodes of the current stage and the complementary nodes of the following stage, is repeated until the last Nth stage. The differential R2R resistor network 215 further includes a pair of resistors with resistance R coupled between the complementary nodes of the Nth stage and the complementary outputs of the differential binary current-generating section 210.
[0037] The complementary control signals b.sub.1/
[0038] If any one or more of the complementary control signals b.sub.1/
[0039] The differential unary current-generating section 220 includes a set of current sources I.sub.U21 to I.sub.U2M, a set of non-complementary switches S.sub.21 to S.sub.2M (e.g., transistors), and a set of complementary switches
[0040] The complementary control signals t.sub.1/
[0041] If any one or more of the complementary control signals t.sub.1/
[0042] Thus, the differential binary current-generating section 210 is configured to provide fine resolution differential intermediate current I.sub.intP/I.sub.intN (e.g., resolution of ().sup.N*I.sub.U) contribution to the differential output current I.sub.OUTP/I.sub.OUTN based on the complementary control signals b.sub.1/
[0043]
[0044] The current DAC 300 is similar to that of current DAC 100, and includes and reuses many of the same elements as indicated by the same reference numbers and similar reference numbers with a 3 as the most significant digit (MSD) instead of a 1. In particular, the current DAC 300 includes a binary current-generating section 310, a unary current-generating section 320, and a decoder 350. These elements have been described in detail with reference to the description of current DAC 100.
[0045] Additionally, the current DAC 300 includes a circuit 360 configured to combine current to measure mismatches between the currents I.sub.U1 to I.sub.UM generated by the current sources I.sub.U21 and I.sub.U2M, respectively. The current combining circuit 360 includes a reference current source I.sub.REF, a current summer 362, a current subtractor 364, a current comparator 366, a digital controller 368 configured to determine a current mismatch, and a set of switches S.sub.C1 to S.sub.CM. The current combining circuit 360 may also include an element or device 363 to buffer, scale, amplify, and/or attenuate the current I.sub.MASTER. The input of this element or scaling device 363 can be coupled to the main output current of the R2R resistor network 315 (as shown), or alternatively, may be coupled to any of the internal nodes n1 to nN of the R2R resistor network 315.
[0046] The reference current source I.sub.REF is configured to generate a calibrated reference current I.sub.REF. The reference current source I.sub.REF is coupled between an upper voltage rail VDD and a first input to the current summer 362. As discussed in more detail below, during current mismatch measurement, the binary current-generating section 310 is operated to generate a current I.sub.MASTER, which is applied to a second input of the current summer 362. The current summer 362 sums the reference current I.sub.REF with the current I.sub.MASTER from the binary current-generating section 310. Optional scaling device 363 can be used to set the range or step size of I.sub.MASTER, as best suited for a given application.
[0047] The set of switches S.sub.C1 to S.sub.CM is coupled between the set of current sources I.sub.U21 to I.sub.U2M and a first input of the current subtractor 364, respectively. The summed current I.sub.REF+I.sub.MASTER generated by the current summer 362 is provided to a second input of the current subtractor 364. The current subtractor 364 generates an error current I.sub.ERROR based on a difference between the current from a selected one of the current sources I.sub.U21 to I.sub.U2M (associated with a selected closed one of the set of switches S.sub.C1 to S.sub.CM) and the summed current I.sub.REF+I.sub.MASTER.
[0048] The current comparator 366 compares the error current I.sub.ERROR to a threshold current (not shown as ideally it is zero). If the error current I.sub.ERROR is below the threshold current, the current comparator 366 generates a logic zero (0). If the error current I.sub.ERROR is above the threshold current, the current comparator 366 generates a logic one (1). The logic output from the current comparator 366 is provided to the controller 368. It shall be understood that the current comparator 366 may generate a non-binary output, such as an analog output based on a comparison of the error current I.sub.ERROR to the threshold current.
[0049] The controller 368 controls the current mismatch measurement and generates the control signals b.sub.1 to b.sub.N and S.sub.C1 to S.sub.CM for the binary current-generating section 310 and the set of switches S.sub.C1 to S.sub.CM pursuant to the current mismatch measurement, respectively. The current mismatch measurement operates as follows.
[0050] In this example, the current mismatch measurement begins with measuring the current mismatch associated with the current I.sub.U1 generated by the current source I.sub.U21. In this regard, the current mismatch controller 368 asserts the control signal S.sub.C1 and deasserts the control signals S.sub.C2 to S.sub.CM to close switch S.sub.C1 and open switches S.sub.C2 to S.sub.CM. The closed switch S.sub.C1 routes the current I.sub.U1 to the first input of the current subtractor 364. Also, the current mismatch controller 368 deasserts the control signals b.sub.1 to b.sub.N so that the current I.sub.MASTER generated by the binary current-generating section 310 is substantially nil or zero (or defined value). Although setting the current I.sub.MASTER to zero is used to exemplify the current mismatch measurement, it shall be understood that the current I.sub.MASTER may be set to a predefined non-zero current.
[0051] Accordingly, as the current I.sub.MASTER is substantially nil, the current summer 362 outputs the reference current I.sub.REF, which is provided to the second input of the current subtractor 364. Accordingly, the current subtractor 364 generates the error current I.sub.ERROR as the difference between the current I.sub.U1 from the current source I.sub.U21 and the reference current I.sub.REF. Thus, the error current I.sub.ERROR represents the current mismatch associated with the current I.sub.U1 generated by the current source I.sub.U21. The error current I.sub.ERROR is positive and, in this example, greater than the current threshold of the current comparator 366, which may be set close to zero (0) current. Thus, the current comparator 366 initially outputs a logic one (1).
[0052] To quantify the mismatch I.sub.ERROR for storage and later use, the controller 368 begins binary adjusting (e.g., incrementing) the control signals b.sub.1 to b.sub.N to adjust (e.g., increment) the current I.sub.MASTER by the resolution (e.g., ().sup.N) for each LSB increment of the control signals b.sub.1 to b.sub.N to selectively open/close switches S.sub.11 to S.sub.1N of the binary current-generating section 310. The incrementing current I.sub.MASTER, via the current summer 362 and the current subtractor 364, causes the error current I.sub.ERROR to decrease. When the error current I.sub.ERROR decreases below the current threshold of the current comparator 366, the current comparator 366 generates a logic zero (0).
[0053] In response to the logic zero (0), the current mismatch controller 368 stops incrementing the control signals b.sub.1 to b.sub.N. The current value of the control signals b.sub.1 to b.sub.N represents the current mismatch associated with the current I.sub.U1 generated by the current source I.sub.U21. If, as discussed above, the initial I.sub.MASTER current is set to a non-zero current, the value of the control signals b.sub.1 to b.sub.N associated with the initial I.sub.MASTER current may need to be subtracted from the current value of the control signals b.sub.1 to b.sub.N to arrive at the current mismatch value. The current mismatch controller 368 stores the value of the control signals b.sub.1 to b.sub.N for later use in calibrating the current source I.sub.U21, correcting the output current, and/or perform any operation based of such value. This process is repeated for the other current sources I.sub.U22 to I.sub.U2M to measure their current mismatches. It shall be understood that other algorithms, such as successive approximation, can be utilized by the controller 368.
[0054] An advantage of the DAC 300 (as well as the other DACs 400-600 described herein) is that the DAC 300 leverages the fine-resolution of the binary-weighted current-generating section 310 to determine the current mismatch between each of the unary current sources I.sub.U21 to I.sub.U2M and the reference current I.sub.REF for calibration purposes. As the resolution of the binary-weighted current-generating section 310 is on the order of .sup.N, the current mismatch can be quantified with high accuracy. Without this self-measurement and calibration, the currents from the unary current sources I.sub.U21 to I.sub.U2M and the reference current I.sub.REF may need to be sent to an external measurement equipment for current mismatch measurements and calibration.
[0055]
[0056] The current-steering DAC 400 is also similar to that of current-steering DAC 200, and includes many of the same elements as indicated by the same reference numbers and similar reference numbers with a 4 as the MSD instead of a 2. In particular, the current-steering DAC 400 includes a differential binary current-generating section 410, a differential unary current-generating section 420, and a decoder 450. These elements have been described in detail with reference to the description of current-steering DAC 200.
[0057] Additionally, the current-steering DAC 400 includes a circuit 460 configured to combine currents to measure mismatches between the currents I.sub.U1 to I.sub.UM generated by the current sources I.sub.U21 and I.sub.U2M, respectively. The current combining circuit 460 includes a reference current source I.sub.REF, a current summer 462, a current subtractor 464, a current comparator 466, a current mismatch controller 468, and a set of switches S.sub.C1 to S.sub.CM. The current combining circuit 460 may also include an element or scaling device 463 to buffer, scale, amplify, and/or attenuate the current I.sub.MASTER.
[0058] The reference current source I.sub.REF is configured to generate a calibrated reference current I.sub.REF. The reference current source I.sub.REF is coupled between an upper voltage rail VDD and a first input to the current summer 462. As discussed in more detail below, during current mismatch measurement, the differential binary current-generating section 410 is operated to generate a current I.sub.MASTER, which is applied to a second input of the current summer 462. The current summer 462 sums the reference current I.sub.REF with the current I.sub.MASTER from the differential binary current-generating section 410. Optional scaling device 463 can be used to set the range or step size of the current I.sub.MASTER, as best suited for a given application.
[0059] The set of switches S.sub.C1 to S.sub.CM is coupled between the set of current sources I.sub.U21 to I.sub.U2M and a first input of the current subtractor 464, respectively. The summed current I.sub.REF+I.sub.MASTER generated by the current summer 462 is provided to a second input of the current subtractor 464. The current subtractor 464 generates an error current I.sub.ERROR based on a difference between the current from a selected one of the current sources I.sub.U21 to I.sub.U2M (associated with a selected closed one of the set of switches S.sub.C1 to S.sub.CM) and the summed current I.sub.REF+I.sub.MASTER.
[0060] The current comparator 466 compares the error current I.sub.ERROR to a threshold current (not shown). If the error current I.sub.ERROR is below the threshold current, the current comparator 466 generates a logic zero (0). If the error current I.sub.ERROR is above the threshold current, the current comparator 466 generates a logic one (1). The logic output from the current comparator 466 is provided to the controller 468.
[0061] The controller 468 controls the current mismatch measurement and generates the complementary control signals b.sub.1/
[0062] In this example, the current mismatch measurement begins with measuring the current mismatch associated with the current I.sub.U1 generated by the current source I.sub.U21. In this regard, the current mismatch controller 468 asserts the control signal S.sub.C1 and deasserts the control signals S.sub.C2 to S.sub.CM to close switch S.sub.C1 and open switches S.sub.C2 to S.sub.CM. The closed switch S.sub.C1 routes the current I.sub.U1 to the first input of the current subtractor 464. Also, the current mismatch controller 468 deasserts the complementary control signals b.sub.1/
[0063] Note, that in this example, the second input of the current summer 462 is coupled to the positive output of the differential binary current-generating section 410. Thus, the deasserted complementary control signals b.sub.1/
[0064] As the current I.sub.MASTER is substantially nil, the current summer 462 outputs the reference current I.sub.REF, which is provided to the second input of the current subtractor 464. Accordingly, the current subtractor 464 generates the error current I.sub.ERROR as the difference between the current I.sub.U1 from the current source I.sub.U21 and the reference current I.sub.REF. Thus, the error current I.sub.ERROR represents the current mismatch associated with the current I.sub.U1 generated by the current source I.sub.U21. The error current I.sub.ERROR is positive and, in this example, greater than the current threshold of the current comparator 466, which may be set close to zero (0) current. Thus, the current comparator 466 initially outputs a logic one (1).
[0065] To quantify the mismatch I.sub.ERROR for storage and later use, the controller 468 begins binary incrementing the control signals b.sub.1/
[0066] In response to the logic zero (0), the current mismatch controller 468 stops incrementing the control signals b.sub.1/
[0067]
[0068] The current-steering DAC 500 includes a differential binary current-generating section 510 including a differential R2R resistor network 515. In this example, the differential binary current-generating section 510 has a bit-depth of N bits, including current sources I.sub.U11 to I.sub.U1N (each configured as a p-channel metal oxide semiconductor field effect transistor (PMOS FET)) and complementary switches S.sub.11/
[0069] The current-steering DAC 500 also includes a differential unary current-generating section 520 including a bias current source I.sub.dac_bias, a current-mirroring transistor M, and a set of unary current sources I.sub.U21 to I.sub.U2M. The current-mirroring transistor M and the bias current source I.sub.dac_bias are coupled in series between an upper voltage rail VDD and a low voltage rail (e.g., ground). The current-mirroring transistor M and unary current sources I.sub.U21 to I.sub.U2M of the differential unary current-generating section 520 may each be configured as a PMOS FET. Note that the gates of the PMOS FETs M and I.sub.U21 to I.sub.2UM are coupled together, and optionally coupled to gates of the PMOS FETs T.sub.U11 to I.sub.U1N of the differential binary current-generating section 510. That is, the set of current sources I.sub.U11 to I.sub.U1N may be separately controlled from the current sources I.sub.U21 and I.sub.U2M; in which case, the current sources I.sub.U11 to I.sub.U1N will have its own bias current source Idac_bias and current-mirroring transistor M for setting the currents generated by current sources I.sub.U11 to I.sub.U1N.
[0070] The differential unary current-generating section 520 also includes complementary switches S.sub.21/
[0071] As previously discussed, the differential binary and unary current-generating sections 510 and 520 generate binary-weighted differential current and unary-weighted differential current, respectively, which are summed to produce a differential output current at the output VoutM and VoutP of the current-steering DAC 500 based on input data signal DIN. Although not shown for simplicity purpose, the current-steering DAC 500 includes a decoder/controller for generating the control signals for operating the complementary switches S.sub.11/
[0072] The current-steering DAC 500 includes a circuit configured to measure mismatches between the current I.sub.msb generated by the selected one of the current sources I.sub.U21 to I.sub.U2M of the unary current-generating section 520. The current mismatch measuring circuit includes a reference current source I.sub.REF, a current summer 562, the current subtractor 564, a current comparator 566, and a buffer 570. Although not shown for the sake of simplicity, the current mismatch measuring circuit also includes a current mismatch controller, as discussed with reference to current-steering DAC 400. The calibration switches S.sub.C11/
[0073] The reference current source I.sub.REF is configured to generate a calibrated reference current I.sub.REF, which is applied to a first input of the current summer 562. The reference current source I.sub.REF may also be configured as a PMOS FET with gate coupled to the gates of the PMOS FETs I.sub.U11 to I.sub.U1N, and M and I.sub.U21 to I.sub.U2M of the differential binary and unary current-generating sections 510 and 520, respectively. As previously discussed, during current mismatch measurement, the differential binary current-generating section 510 is operated to generate a current I.sub.MASTER, which is applied to a second input of the current summer 562 via a calibration resistor R.sub.CAL. During this unary current mismatch measurement mode, the calibration complementary switches S.sub.C11/
[0074] As discussed, the complementary calibration switches
[0075] The summed current I.sub.REF+I.sub.MASTER generated by the current summer 562 is provided to a second input of the current subtractor 564 (e.g., to the drain of the NMOS FET M2). The current I.sub.msb from the selected unary current source of the unary current-generating section 520 is provided to the drain of the NMOS FET M1 via the corresponding closed calibration switch. Because of the current-mirror relationship of the NMOS FETs M1 and M2 of the current subtractor 564, the respective currents through the NMOS FETs M1 and M2 are substantially the same (assuming a mirror ratio of one (1)). Thus, to achieve this equality, the current subtractor 564 generates an error current I.sub.ERROR based on a difference between the current I.sub.msb and the summed current I.sub.REF+I.sub.MASTER. Note that the mirror ratio does not need to be one (1), and other ratio could be used in some applications.
[0076] The current comparator 566 compares the error current I.sub.ERROR to a threshold current (not shown). If the error current I.sub.ERROR is below the threshold current, the current comparator 566 generates d.sub.out as a logic zero (0). If the error current I.sub.ERROR is above the threshold current, the current comparator 566 generates d.sub.out as a logic one (1). The logic output d.sub.out from the current comparator 566 is provided to the current mismatch controller (not shown). The current comparator 566 may include a transimpedance amplifier (TIA) configured to generate a voltage based on the current I.sub.ERROR, the voltage being compared to a threshold voltage in generating d.sub.out.
[0077] In order for the error current I.sub.ERROR to be accurately generated, it may be beneficial that the voltage potential at the input of the current comparator 566 is substantially equal to the voltage potential at the reference voltage node V.sub.REF of the differential R2R resistor network 515. To accomplish this, the buffer 570 includes an input coupled to the input of the current comparator 566 and an output coupled to the reference voltage node V.sub.REF of the differential R2R resistor network 515. Note the implementation of the buffer 570 using in amplifier in unity-gain-feedback configuration is shown as example here and other implementation of a voltage buffer could be used.
[0078] As discussed in detail with reference to current-steering DAC 400, the current mismatch controller controls the current mismatch measurement and generates the complementary control signals for the switches of the differential binary current-generating section 510 and the switches of the differential unary current-generating section 520 pursuant to the unary current mismatch measurement. The final value of the differential binary current-generating section 510 provides the current mismatch associated with the selected current source of the unary current-generating section 520. Although the DAC 500 is exemplified as a differential or current-steering DAC, it shall be understood that implementation is applicable (with alterations) to a single-ended DAC, such as current DAC 300.
[0079] As discussed, the current-steering DAC 500 further includes a set of calibration switches S.sub.C11 to S.sub.C1N coupled between the current sources I.sub.U11 to I.sub.U1N of the differential binary current-generation section 510 and the first input of the current subtractor 564, respectively. It may be desirable for calibration or other purposes to determine the difference between the currents generated by the current sources T.sub.U11 to I.sub.U1N and the reference current I.sub.REF. This is referred to herein as a binary current mismatch measurement mode.
[0080] Pursuant to the binary current mismatch mode, the complementary calibration switches S.sub.C21/
[0081] In the binary current mismatch measurement mode, the output of the current subtractor 564 generates the error current I.sub.ERROR as a function of the difference or weighted-difference between the current I.sub.msb generated by the selected binary current source and the reference current I.sub.REF, for use in calibration or other purpose, and may be applied to the input of the current comparator 566 or other device pursuant to the desired measurement. If the threshold of the current comparator 566 is set to zero (0), then its output dout provides an indication whether the current generated by the selected current source is greater or less than the reference current I.sub.REF.
[0082]
[0083] The current-steering DAC 600 is also similar to current-steering DAC 500, but instead of the output signal d.sub.out being based on an error current I.sub.ERROR, the current-steering DAC 600 generates an output signal d.sub.out based on an error voltage V.sub.ERROR. In this implementation, the voltage buffer 570 is not needed. In the case of current-steering DAC 600, a voltage comparator generates an output signal d.sub.out based on an error voltage V.sub.ERROR for use in performing the current mismatch measurement.
[0084] The current-steering DAC 600 includes a differential binary current-generating section 610 including a differential R2R resistor network 615. In this example, the differential binary current-generating section 610 has a bit-depth of N bits, including current sources I.sub.U11 to I.sub.U1N (each configured as a PMOS FET) and complementary switches S.sub.11/
[0085] The current-steering DAC 600 also includes a differential unary current-generating section 620 including a bias current source Idac_bias, a current-mirroring transistor M, and a set of unary current sources I.sub.U21 to I.sub.U2M. The current-mirroring transistor M and the bias current source I.sub.dac_bias are coupled in series between an upper voltage rail VDD and a low voltage rail (e.g., ground). The current current-mirroring transistor M and unary current sources I.sub.U21 to I.sub.U2M of the differential unary current-generating section 620 may each be configured as a PMOS FET. Note that the gates of the PMOS FETs M and I.sub.U21 to I.sub.U2M are coupled together, and also optionally coupled to gates of the PMOS FETs I.sub.U11 to I.sub.U1N of the differential binary current-generating section 610. That is, the set of current sources I.sub.U11 to I.sub.U1N may be separately controlled from the current sources I.sub.U21 and I.sub.U2M; in which case, the current sources I.sub.U11 to I.sub.U1N will have its own bias current source Idac_bias and current-mirroring transistor M for setting the currents generated by current sources I.sub.U11 to I.sub.U1N.
[0086] The differential unary current-generating section 620 also includes complementary switches S.sub.21/
[0087] As previously discussed, the differential binary and unary current-generating sections 610 and 620 generate binary-weighted differential current and unary-weighted differential current, respectively, which are summed to produce a differential output current at the output VoutM and VoutP of the current-steering DAC 600 based on input data signal DIN. Although not shown for simplicity purpose, the current-steering DAC 600 includes a decoder/controller for generating the control signals for operating the complementary switches S.sub.11/
[0088] The current-steering DAC 600 includes a circuit configured to measure mismatches between the currents I.sub.msb generated by the selected one of the current sources I.sub.U21 to I.sub.U2M of the unary current-generating section 620. The current mismatch measuring circuit includes a reference current source I.sub.REF, a current summer 662, the current subtractor 664, and a differential voltage comparator 666 with associated resistor R.sub.sink. Although not shown for the sake of simplicity, the current mismatch measuring circuit also includes a digital controller, as discussed with reference to current-steering DAC 400. The calibration switches S.sub.C11/
[0089] The reference current source I.sub.REF is configured to generate a calibrated reference current I.sub.REF, which is applied to a first input of the current summer 662. The reference current source I.sub.REF may also be configured as a PMOS FET with gate coupled to the gates of the PMOS FETs I.sub.U11 to I.sub.U1N, and M and I.sub.U21 to I.sub.U2M of the differential binary and unary current-generating sections 610 and 620, respectively. As previously discussed, during current mismatch measurement, the differential binary current-generating section 610 is operated to generate a current I.sub.MASTER, which is applied to a second input of the current summer 662 via a calibration resistor R.sub.CAL. During this unary current mismatch measurement mode, the calibration complementary switches S.sub.C11/
[0090] As discussed, the complementary calibration switches
[0091] The summed current I.sub.REF+I.sub.MASTER generated by the current summer 662 is provided to a second input of the current subtractor 664 (e.g., to the drain of the NMOS FET M2). The current I.sub.msb from the selected unary current source of the unary current-generating section 620 is provided to the drain of the NMOS FET M1 via the corresponding calibration switch. Because of the current-mirror relationship of the NMOS FETs M1 and M2 of the current subtractor 664, the respective currents through the NMOS FETs M1 and M2 are substantially the same (assuming a minor ratio of one (1)). Thus, to achieve this equality, the current subtractor 664 generates an error current I.sub.ERROR based on a difference between the current I.sub.msb and the summed current I.sub.REF+I.sub.MASTER. The error current I.sub.ERROR produces a voltage drop across the calibration resistor R.sub.CAL, resulting in an error voltage V.sub.ERROR being applied to a positive input of the voltage comparator 666. The error voltage V.sub.ERROR is given by Vref*(I.sub.msb(I.sub.REF+I.sub.MASTER)). Note that the minor ratio does not need to be one (1), and other ratio could be used in some applications.
[0092] The voltage comparator 666 compares the error voltage V.sub.ERROR to the reference voltage V.sub.REF from the differential R2R resistor network 615 applied across the resistor R.sub.sink at a negative input of the voltage comparator 666. If the error voltage V.sub.ERROR is below the threshold voltage Vref, the voltage comparator 666 generates a logic zero (0). If the error voltage V.sub.ERROR is above the threshold voltage Vref, the voltage comparator 666 generates a logic one (1). The logic output from the voltage comparator 666 is provided to the current mismatch controller (not shown).
[0093] As discussed in detail with reference to current-steering DAC 400, the current mismatch controller controls the current mismatch measurement and generates the complementary control signals for the switches of the differential binary current-generating section 610 and the switches of the differential unary current-generating section 620 pursuant to the unary current mismatch measurement. The final value of the differential binary current-generating section 610 provides the current mismatch associated with the selected current source of the unary current-generating section 620. Although the DAC 600 is exemplified as differential or current-steering DAC, it shall be understood that implementation is applicable (with alterations) to a single-ended DAC, such as current DAC 300.
[0094] As discussed, the current-steering DAC 600 further includes a set of calibration switches S.sub.C11 to S.sub.C1N coupled between the current sources I.sub.U11 to I.sub.U1N of the differential binary current-generation section 610 and the first input of the current subtractor 664, respectively. It may be desirable for calibration or other purposes to determine the difference between the currents generated by the current sources T.sub.U11 to I.sub.U1N and the reference current I.sub.REF. This again is referred to herein as the binary current mismatch measurement mode.
[0095] Pursuant to the binary current mismatch mode, the complementary calibration switches S.sub.C21/
[0096] In the binary current mismatch measurement mode, the output of the current subtractor 664 generates the error current I.sub.ERROR as a function of the difference or weighted-difference between the current I.sub.msb generated by the selected binary current source and the reference current I.sub.REF, for use in calibration or other purpose, and may be applied to the input of the voltage comparator 666 or other device pursuant to the desired measurement.
[0097] It shall be understood that the described methods herein are applicable to non-classical
[0098] R2R networks (such as segmented or splitter network). It shall also be understood that the current sources of the DACs previously described herein may be implemented using NMOS FETs. Additionally, it shall be understood that the unary current generation section and the binary current generation section may be segmented independently (e.g., the gates of the current-source FETs of the unary section need not be coupled to the gates of the current-source FETs of the binary section). In such case, the unit current (I.sub.U) generated in the unary section may be different than the unit current (I.sub.U) generated in the binary section.
[0099] With regard to the controllers described herein, a controller may be implemented as an application specific integrated circuit (ASIC), field programmable gate array (FPGA), part of a system on chip (SOC), digital signal processor (DSP), general purpose processor, microprocessor, microcontroller, etc. The hardware implementation of the controller may perform its operations under the control of instructions stored in a memory, such as a non-volatile memory (e.g., read only memory (ROM) and its permutations, such as programmable read only memory (PROM) and electrically erasable and programmable read only memory (EEPROM), magnetic hard disk, optical storage disk, etc.), and/or volatile memory, such as random access memory (RAM), cache memory, etc.
[0100]
[0101] The method 700 includes generating a first current based on a first set of control signals (block 710). Examples of means for generating a first current based on a first set of control signals include binary-weighted current-generating sections 310, 410, 510, and 610, where the first set of control signals are b.sub.1 to b.sub.N in the case of binary-weighted current-generating section 310, and b.sub.1/
[0102] The method 700 further includes generating a second current based on a second set of control signals (block 720). Examples of means for generating a second current based on a second set of control signals include unary-weighted current-generating sections 320, 420, 520, and 620, where the second set of control signals are t.sub.1 to t.sub.M in the case of unary-weighted current-generating section 320, and t.sub.1/
[0103] The method 700 additionally includes generating an indication of a current mismatch between a reference current and the second current using the first current (block 730). Examples of means for generating an indication of a current mismatch between a reference current and the second current using the first current include the controllers 368, 468, and those associated (but not shown) with current-steering DACs 500-600, wherein the value of the first set of control signals b.sub.1 to b.sub.N or b.sub.1/
[0104]
[0105] The baseband circuit 810 is configured to generate a digital signal (DS). The DAC 820 is configured to convert the digital signal (DS) into an analog signal (AS). The DAC 820 may be configured into any of the DACs described herein, such as current DAC 300, and current-steering DACs 400, 500, and 600. The RF circuit 830 is configured to generate a transmit RF signal (TXS) based on the analog signal AS from the DAC 820, and may perform such operations as frequency upconverting, filtering, phase shifting, amplitude adjustment, power amplification, etc. The transmit signal (TXS) is provided to the at least one antenna 840 for wireless transmission to one or more remote devices.
[0106] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.