For an input stage of an operational amplifier (op amp), an offset voltage may be present on one of the input terminals relative to the other input terminal. Ideally, the offset voltage should be 0V, but in practice will be other than 0V due to the component mismatches. As a result, a current mismatch through the op amps input stage will be present. Through a trimming process, a non-zero differential voltage will need to be imposed on the op amp's input stage to correct for the current mismatch.
In one example, integrated circuit includes first, second, third, and fourth transistors, first and second current source devices, and a trim circuit. The first transistor has a first control input and a first current terminal. The second transistor has a second control input and a second current terminal. The third transistor had a third control input and third and fourth current terminals. The fourth transistor has a fourth control input and fifth and sixth current terminals. The first current source is coupled between a first power supply node and the third current terminal. The second current source is coupled between the first supply node and the fifth current terminal. The trim circuit is coupled between the fourth current terminal and a second power supply node, and is coupled between the sixth current terminal and the second power supply node. The trim circuit includes a resistive digital-to-analog converter (RDAC) circuit.
In another example, a method includes obtaining a trim code from a storage device on an integrated circuit (IC). Based on the trim code, the method includes controlling switches within a resistive digital-to-analog converter (RDAC) circuit coupled in parallel with a first resistive device and a second resistive device, and configured to be coupled between a first current terminal of a first transistor and a power supply node and to be coupled between a second current terminal of a second transistor and the power supply node.
In yet another example, a circuit includes a first transistor having a first control input to receive a first input signal, and having a first current terminal. The IC also includes a second transistor having a second control input to receive a second input signal, and having a second current terminal. The IC includes third and fourth transistors. The third transistor has a third control input and third and fourth current terminals. The fourth transistor has a fourth control input and fifth and sixth current terminals. The IC further includes first and second current source devices. The first current source device is coupled between a first power supply node and the third current terminal. The second current source device is coupled between the first power supply node and the fifth current terminal. A first resistor is coupled between the sixth current terminal and a second power supply node. A second resistor is coupled between the fourth current terminal and the second power supply node. A trim circuit is coupled between the first power supply node and the fourth current terminal, and is coupled between the first power supply node and sixth current terminal. The trim circuit includes a current digital-to-analog converter (IDAC) circuit.
In another example, a method includes obtaining a trim code from a storage device on an integrated circuit (IC). Based on the trim code, the method includes controlling switches within a current digital-to-analog converter (IDAC) circuit coupled to a first resistive device and to a second resistive device.
For a detailed description of various examples, reference will now be made to the accompanying drawings in which:
Trimming the offset voltage has conventionally been done by trimming the resistance of resistors or by trimming a current, but both trimming modalities use a set of binary-weighted resistors (R, 2R, 4R, . . . , 2NR, where N represents the number of bits in the trim code used to trim the resistors or current). The total size of the binary-weighted resistors is quite large and thus leads to an increased cost for the integrated circuit (IC).
The examples described herein avoid the use of a binary-weighted set of resistors and thus the overall trim circuit is smaller and less costly than would otherwise have been the case if with the use of binary-weighted resistors. One example uses a resistive digital-to-analog converter (RDAC) to trim the offset voltage. Another example uses a current digital-to-analog converter (IDAC) to trim the offset voltage.
A transistor includes a control input and a pair of current terminals. In the case of a MOS device, the transistor includes a gate, a drain and a source. In the case of a bipolar junction device, the transistor includes a base, an emitter, and a collector. References are made herein to gates, drains and sources because the transistors shown in the figures comprise MOS devices, but in general, the principles apply to transistor control inputs and current terminals.
The sources of M1 and M2 are coupled together and to the power supply node (VDD) via current source I3. The gate of M1 is configured to receive a first input signal (IN1) and the gate of M2 is configured to receive a second input signal (IN2). The gates of M5 and M6 are coupled together and receive a bias voltage (VBIAS). The output signal (OUT) from the op amp is taken as the voltage on the drain of M5 (the node between I1 and M5). The drain of M5 is coupled to VDD via current source I1, and the drain of M6 is coupled to VDD via current source I2. The source of M5 is coupled to the drain of M3 at node 115, and the source of M3 is coupled to R2 at node 125. R2 is coupled to the ground node. Similarly, the source of M6 is coupled to the drain of M4 at node 111, and the source of M43 is coupled to the R1 at node 121. R1 is coupled to the ground node. The drain of M1 is coupled to the source of M5 and to the drain of M3 at node 115. The drain of M2 is coupled to the source of M6 and to the drain of M4 at node 111.
R1 and R2 are part of, or are coupled to, trim circuit 130. The trim circuit 130 also includes a resistive digital-to-analog converter (RDAC) 132. The trim circuit 132 is coupled between the source of M3 and the ground node, and also is coupled between the source of M4 and the ground node. A trim code 140 is used to configure the RDAC circuit 132 to trim the offset voltage. The trim code 140 is stored in a storage device coupled to, or provided within, the trim circuit 130. The trim code 140 can be determined through use of, for example, a test fixture to which the op amp is coupled. The trim code can be iteratively determined by incrementing or decrementing the trim code from an initial state and measuring a current produced by the op amp under a test setting (e.g., connection of a known voltage or current to the op amp's input terminal). Once the measured current (or voltage) reaches a predefined state, the trim code at that point is loaded into memory (e.g., one-time programmable memory) on the die containing the op amp.
I1 current (“I1” refers both to the current source device as well as to the magnitude of its current) flows through M5 and M3 to ground through the trim circuit 130. Similarly, I2 current flows through M6 and M4 to ground through the trim circuit 130. Based on the relative voltages of IN1 and IN2, current also flows from VDD through input M1 into node 115 and then to ground through trim circuit 130, as well as from VDD through transistor M2 into node 111 and to ground through trim circuit 130.
Due to component mismatches, an offset voltage may be present in the signal path from I3 through M1 relative to the signal path through M2. The RDAC 132 of the trim circuit 130 trims the offset voltage to reduce it to approximately zero volts.
A pair of switches is coupled in series and to each R-2R ladder segment as shown. Switch pair SW1 and SW2 is coupled in series between nodes 121 and 125, with the node between the switches coupled to one of the 2Rx resistors as shown. One of switches SW1 and SW2 is closed at any point in time depending upon a corresponding bit value of a trim code. The designation “B0” adjacent SW and SW2 indicates that bit 0 of the trim code is used to control the state of SW1 and SW2. With SW1 being closed (and SW2 open), R1 is coupled in parallel with the series combination of the 2Rx resistors of ladder segment 201. However, with SW2 being closed (and SW1 open), R2 is coupled in parallel with the series combination of the 2Rx resistors of ladder segment 201. In one example, B0 being a logic 0 causes SW1 to be closed and SW2 to be open, and B0 being a logic 1 causes SW1 to be open and SW2 to be closed (or vice versa).
Similarly, each subsequent set of switches (SW3/SW4, SWn−1/SWn) is coupled to a different ladder segment. As shown, SW3 and SW4 are coupled in series between nodes 121 and 125 with the node between the switches coupled to the 2Rx resistor of ladder segment 202. SWn−1 and SWn are also coupled in series between nodes 121 and 125 with the node between the switches coupled to the 2Rx resistor of ladder segment 203. Bit B1 of the trim code controls the state of switches SW3 and SW4 (with only one switch closed (on) at any point in time). Bit Bn (e.g., the most significant bit of the trim code) controls the on/off state of switches SWn−1 and SWn.
In the example of
As can be seen in
A pair of switches is coupled to the drain of each transistor M7-M9. SW520 and SW522 are coupled to the drain of M7. SW524 and SW526 are coupled to the drain of M8. SW528 and SW530 are coupled to the drain of M9. Each bit of the trim code controls one pair of the switches. For example, the least significant bit of the trim code may be used to control which of SW528 and SW530 are to be on. One of SW528 and SW530, but not both, is turned on based on the value of the trim bit. Each bit of the trim code controls a different pair of transistors. The switch of a given pair that is turned on causes current from its respective transistor to flow through that switch into either node 111 or 121 depending on which node the switch is coupled to. For all of those switches that are coupled to node 111 and turned on (by their respective trim bit), the currents from their collective transistors are added together and the aggregate current then flows into the respective node 111 or 121 to thereby trim the offset voltage.
Because an R-2R ladder is used to implement each IDAC circuit 432 and 434, the total resistor size is less than if binary-weighted transistors were used. The size analysis and benefit above with regard to the trim circuit 130 of
Upon power cycling the op amp (or at other times), the trim code is obtained from storage within the integrated circuit comprising the op amp. Based on the trim code, switches within the RDAC or IDAC circuit (depending on the implementation) are controlled as explained above.
In this description, the term “couple” or “couples” means either an indirect or direct connection. Thus, if a first device couples to a second device, that connection may be through a direct connection or through an indirect connection via other devices and connections. Modifications are possible in the described embodiments, and other embodiments are possible, within the scope of the claims.
This continuation application claim priority to U.S. patent application Ser. No. 16/275,105, filed Feb. 13, 2019, which application claims priority to U.S. Provisional Application No. 62/752,576, filed Oct. 30, 2018, both of which are hereby incorporated by reference in theft entirety.
Number | Name | Date | Kind |
---|---|---|---|
5134400 | Hash | Jul 1992 | A |
20020008653 | Nishimura | Jan 2002 | A1 |
20130342273 | Petrie | Dec 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20210067114 A1 | Mar 2021 | US |
Number | Date | Country | |
---|---|---|---|
62752576 | Oct 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 16275105 | Feb 2019 | US |
Child | 17094847 | US |