These and other features, aspects, and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings where:
The detailed description of the present invention is presented largely in terms of procedures, steps, logic blocks, processing, or other symbolic representations that directly or indirectly resemble the operations of devices or systems contemplated in the present invention. These descriptions and representations are typically used by those skilled in the art to most effectively convey the substance of their work to others skilled in the art.
Reference herein to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Further, the order of blocks in process flowcharts or diagrams or the use of sequence numbers representing one or more embodiments of the invention do not inherently indicate any particular order nor imply any limitations in the invention.
Embodiments of the present invention are discussed herein with reference to
The automatic trimming part includes a trimming data generator 144, a register 155 and a corrective circuit 166. With a generated current, the automatic trimming part is operatively designed to correct the current in accordance with a reference current. In operation, an op-amp 112 is employed to regulate two gates NMOS1 and NMOS1 that are connected as a source follower. When the automatic trimming procedure is started, a source voltage of NMOS1 is regulated to be equal to the voltage at (+) input of the op-amp 112, noted as Vref. As a result, the current Iref flowing though NMOS1 and Rt is also regulated. The current value Iref is equal to or substantially close to Vref/R1. This current is mirrored by a current mirror circuit comprised of two transistors PMOS1 and PMOS2. The mirrored current I2 is M times Iref, where M is a magnitude dictated by the current mirror circuit.
The mirrored current I2 is coupled to a trimming data generator 144 and compared with a current I1 generated in a current generator 111. The current generator 111 may be implemented using any known circuit and synchronized under a start signal (labeled as start 1) to generate the current I1. By comparing the two currents I1 and I2, the trimming data generator 144 outputs a comparison result. In one embodiment, the comparison result, namely a difference between the two currents, is represented in N-bit digital signals to form the trimming data. Depending on a precision requirement, N is a design choice for output current accuracy. If a higher accuracy is demanded, N will be increased.
The N-bit digital signals are stored in a register 155. Typically, the trimming data, the N-bit digital signals stored in the register 155 will not be changed unless a device/chip employing the automatic trimming part is reset or restarted. The output of the register 155 is coupled to a corrective circuit 166 that also receives the current I1. The corrective circuit 166 is designed to correct the current I1 based on the output of the register 155. As a result, the corrected current I1, namely an accurate current, is thus generated.
The third part of the architecture 100 is the control signal part designed to generate various control signals.
For example, I1=1 uA while I2 is 2 uA. The difference from the substractor 202 is 1 uA. It is assumed that the quantization of the ADC 204 is 1/8 uA (3-bit). Accordingly, there are eight divided currents i1, i2, . . . i8, whose values are 1/8, 2/8, 3/8, . . . 7/8, and 8/8/. The divided currents are logically combined to produce a correction value to be used to modify the current I1 and subsequently produce an accurate current.
Iout=I1+1i×Ra[(D1/R1)+(D2/R2)+ . . . +(Dn/Rn)]
where D1, D2, . . . Dn represent, respectively, the switches that may be 1 when turned on and 0 when turned off.
A pair of PMOS transistors PMOS3 and PMOS4 are provided to receive the collected divided currents produced from the array of resistors and coupled the accumulated current to the current adder 402. The current adder 402 receives the current I1 and the accumulated current and produces the current Iout.
It is assumed that a precision requirement is 5-bit, where n=5. Accordingly, Iout=I1+1i×Ra[(D1/R1)+(D2/R2)+(D3/R3)+(D4/R4)+(D5/R5)]. If R1=Ra, R2=2Ra, R3=4Ra, R4=8Ra, and R5=16Ra, Iout=I1+1i×[(D/1)+(D2/2)+(D3/4)+(D4/8)+(D5/16)]. The following table may then be obtained.
If I1 changes within a range from 5 to 10 uA with I2 being 8 uA, the following corrected current may be obtained:
The present invention has been described in sufficient details with a certain degree of particularity. It is understood to those skilled in the art that the present disclosure of embodiments has been made by way of examples only and that numerous changes in the arrangement and combination of parts may be resorted without departing from the spirit and scope of the invention as claimed. Accordingly, the scope of the present invention is defined by the appended claims rather than the foregoing description of embodiments.
Number | Date | Country | Kind |
---|---|---|---|
200610098878.9 | Jul 2006 | CN | national |