FIELD OF THE INVENTION 
     This invention relates in general to the field of operational amplifiers and, more particularly, to an operational amplifier having a digitally offset null that provides an increased common mode input range. 
     BACKGROUND OF THE INVENTION 
     Operational amplifiers are widely used in the electronics industry because of their many excellent circuit characteristics including high open loop gain, high input impedance, and low output impedance. General applications of the operational amplifier include circuit configurations such as voltage and current amplifiers, differentiators and integrators, active filters, oscillators, and analog to digital and digital to analog converters. To realize these different circuit configurations, operational amplifiers are used in conjunction with positive and or negative feedback in combination with passive and or active elements. 
     An operational amplifier is also widely used to function as a voltage comparator, wherein typically, a reference signal is applied to the inverting input and the voltage to be compared is applied to the noninverting input. If the magnitude of the voltage to be compared is greater than the magnitude of the reference signal, the output of the comparator is substantially equal to the positive supply voltage. If the magnitude of the voltage to be compared is less than the magnitude of the reference voltage, the output of the comparator is substantially equal to the negative or ground supply voltage. An inverted voltage comparator may be provided by simply transposing the signals at the inverting and noninverting inputs. Using the operational amplifier as a voltage comparator requires no external components or feedback, and its output only has two states of high and low. 
     The operational amplifier as utilized in the realization of a variety of circuit functions may be manufactured in bipolar or Complementary Metal Oxide Semiconductor (CMOS) technology or some combination thereof. The CMOS implementation is desirable for its low power consumption characteristic. Also, operational amplifiers are increasingly being integrated onto chips which merge digital and analog functions together with an increasing number of devices. 
     A typical problem associated with operational amplifiers is that of an offset error voltage. This type of error appears as deviations in the expected output due to imbalances in the input stage. This is further due to statistical deviations between the devices of the inverting and noninverting inputs. While this offset error is correctable by null offset adjustment, it requires additional circuitry and adds to the manufacturing time. A secondary problem often associated with null offset adjustment is a resulting decrease in the operational amplifiers input common mode range. 
     Early operational amplifiers provided additional pins to which a variable resistor could be connected for making a null offset adjustment. This had the disadvantages of requiring additional pins on the operational amplifier integrated circuit therein increasing its cost, requiring the additional resistor or trim potentiometer, and increasing the size of the printed circuit board. Also, the operational amplifier and trim potentiometer had different temperature coefficients and would not track over temperature changes causing the null offset to drift. An improved method of null offset adjustment is to trim a resistor on the integrated circuit itself by a laser beam while applying input signals and monitoring the output. This method improves the temperature coefficient problem but requires the additional circuitry, expensive laser beam equipment, reduction in input common mode range, adjustment time, and text fixtures. Due to the aging of the semiconductor, null offset adjustments may drift with no means available to readjust. 
     Thus, what is needed is an operational amplifier that does not require additional circuitry for null offset adjustment and having a null offset adjustment that may be done quickly and repeatedly if necessary. 
     SUMMARY OF THE INVENTION 
     Accordingly, it is an object of the present invention to provide an improved operational amplifier. 
     It is further an object of the present invention to provide an operational amplifier having a null adjustment method which provides an improved common input mode range. 
     It is yet a further object of the present invention to provide an operational amplifier whose null offset may be adjusted digitally. 
     In carrying out the above and other objects of the invention in one form, there is provided an operational amplifier having a digitally adjusted null offset, comprising a first current source for providing a first current to a differential input stage having inverting and noninverting inputs for amplifying the difference between first and second signals at the inverting and noninverting inputs, respectively. A second current source provides second and third currents wherein the second current may be digitally adjusted relative to a reference current of a current divider to affect the null offset between the inverting and noninverting inputs. The second current source is coupled to the current divider which receives a portion of the second current therein creating an imbalance between the second and third currents. The portion of the second current received by the current divider is a fraction of the reference current. A load stage is provided having a driver node, the load stage is coupled to the second current source and to the differential input stage for providing an amplifier signal at the driver node. 
     The above and other objects, features, and advantages of the present invention will be better understood from the following detailed description taken in conjunction with the accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWING 
     FIG. 1 is a schematic diagram of an operational amplifier having digital null offset adjustment. 
     FIG. 2 is a schematic diagram of the preferred embodiment of the present invention. 
     FIG. 3 is a block diagram of preferred embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     An operational amplifier 10 having a null offset that may be adjusted digitally by a microprocessor, for example, is shown in FIG. 1. The null offset is adjusted by controlling a current I 1  relative to a current I 2 . The operational amplifier 10 comprises a single ended amplifier 8 having an input connected to the drain of a P-type field effect transistor 16. The sources of a field effect transistor 17 and the field effect transistor 16 are connected to the drain of a P-type field effect transistor 31 whose source is coupled to a supply voltage terminal 1 by a resistor 32 and whose gate is connected to a current bias signal. The drains of field effect transisitors 33 and 34 are connected to the drains of the field effect transistors 17 and 16, respectively. The sources of the field effect transistors 33 and 34 are connected to the supply voltage terminal 21 and their gates are connected to the drain of the field effect transistor 17. An inverting input signal is applied to the gate of a field effect transistor 6 and a noninverting input is applied to the gate of a field effect transistor 7. The sources of the field effect transistors 6 and 7 are connected to a supply voltage terminal 21 for receiving a ground supply voltage and the drains are connected to the gates of the field effect transistors 16 and 17, respectively. 
     The currents I 1  and I 2  are equal and are set by P-type field effect transistors 4 and 5 which have their gates connected to the current bias signal. The field effect transistor 5 has a source coupled to a supply voltage terminal 1 by a resistor 3 for receiving a positive supply voltage, and a drain connected to the gate of the field effect transistor 16. Similarly, the field effect transistor 4 has a source coupled to the supply voltage terminal 1 by a resistor 2, and a drain connected to the gate of the field effect transistor 17. It should be recongnized that the devices 2 through 7 are added for the purpose of null offset adjust and that the remaining devices comprise an uncompensated operational amplifier. 
     All of the devices 2 through 8, 16, 17, and 31 through 34 are integrated on a single substrate, and generally will have minor variations in electrical and physical characteristics due to nonuniformities or statistical variations in processing. As a result, when the inverting and noninverting input signals are equal, an output 30 of the operational amplifier 10 connected to the output of the single ended amplifier 8 is not at a voltage level midway between the positive and ground supply voltages as it would be in a perfectly balanced system. The potential at the output 30 will typically be substantially equal to either the positive supply voltage (positive polarity) or the ground supply voltage (negative polarity). To correct this imbalance, a portion of the current I 1 , equal to I IN  /N, is drawn into a current divider 9 which is connected to the source of the field effect transistor 4 wherein I IN  is a reference current and I IN  /N is a fraction of I IN  (N being a positive number). To ensure that I 1  is the current that must be modified, the operational amplifier may be designed so that the voltage at the noninverting input of the differential amplifier 8 will always be slightly lower than the voltage at the inverting input therein having a positive polarity offset. This may be done, for example, by making the size of the field effect transistor 5 smaller than the size of the field effect transistor 4. 
     The reference current, I IN , is applied to the current divider 9. The amount of current drawn away from the operational amplifier 10 and received by the current divider 9 is a portion of I 1  equal to a fraction of I IN . The fraction of I IN  is equal to I IN  divided by a variable N, and is equal to I IN  /N. A microprocessor or other dedicated digital monitoring logic (not shown) monitors the output voltage at the output 30 which will equal the ground supply voltage. The current I IN  /N is incremented by a predetermined amount causing the voltage developed across the source and drain of the field effect transistor 4 to change therein causing the voltage at the noninverting input to change by a small amount, for example, 1 millivolt. Enough time is given to allow the output voltage to settle before the current I IN  /N is again incremented. As soon as the output voltage switches from the ground supply voltage to the positive supply voltage the null offset is complete and is accurate to within at least 1 millivolt (or the amount of incremental change at the noninverting input). 
     The system described in FIG. 1 has the advantage of being able to dynamically adjust the null offset. This is important since over time, the characteristics of the operational amplifier 10 may change due to heat and aging affects. One drawback to the embodiment shown in FIG. 1 is the relatively long time it may take to perform the null offset adjustment since such small incremental changes are being made causing the output to switch slowly. This is, however, much faster than that of the adjustment required by an external trim potentiometer. Also, the common mode input range is limited due to the threshold voltages developed in series across the gate and source of the field effect transistors 6 and 16, for example (this also occurs across the field effect transistors 7 and 17). This causes the voltage at the drain of the field effect transistor 31 to equal the inverting input voltage plus the sum of the threshold voltages of the field effect transistors 6 and 16. As a result, when the inverting input voltage is approximately equal to the positive supply voltage less the sum of two threshold voltages (of the field effect transistors 6 and 16), a current I 3  flowing through the field effect transistor 31 is reduced causing the operational amplifier 10 to operate less accurately. This can be seen more clearly by the following relationship of the common mode voltage (V CM ) at the gate of the field effect transistor 6 as follows: 
     
         V.sub.CM =V.sub.DD -V.sub.32 -V.sub.DS31 -V.sub.GS16 V.sub.GS6 ; 
    
     wherein V DD  is the positive supply voltage, V 32  is the voltage developed across the resistor 32, V DS31  is the drain to source voltage across the field effect transistor 31, and V GS16  and V GS6  are the gate to source voltages developed across the field effect transistors 16 and 6, respectively. 
     The noninverting input is limited by the same conditions due to the field effect transistors 7 and 17. Thus the common mode input range is limited to approximately two P-type field effect transistor threshold voltages below the positive supply voltage (due to the threshold voltages required). 
     An improved monolithically integrated operational amplifier 20 having a digitally adjusted null offset is shown in FIG. 2. Structures in FIG. 1 that are identical to structures in FIG. 2 are identified by the same numbers. A current source 11 is connected to the supply voltage terminal 1 for receiving the positive supply voltage and supplies a constant current I 3  to field effect transistors 14, and 15. The field effect transistors 14 and 15 each have a source connected to the current source 11 and a gate connected for receiving the noninverting and inverting input signals, respectively. An output stage is comprised of a cascode current mirror 12 and a load stage 13. 
     The cascode current mirror 12 includes a field effect transistor 18 having a source connected to the supply voltage terminal 1 and a drain connected to the offset adjust terminal 27 which connects to the current divider 9. A field effect transistor 19 has a source connected to the supply voltage terminal 1 and a gate connected to the gate of the field effect transistor 18. Field effect transistors 21 and 22 have their gates connected to a bias 1  voltage and their sources connected to the drains of the field effect transistors 18 and 19, respectively. The load stage 13 comprises a field effect transistor 23 having a drain connected to the drain of the field effect transistor 21 and to the gate of the field effect transistor 18, a gate connected to a bias 2  voltage, and a source connected to the drain of the field effect transistor 15. A field effect transistor 24 has a drain connected to the drain of the field effect transistor 22, a gate connected to the bias 2  voltage and a source connected to the drain of the field effect transistor 14. Field effect transistors 25 and 26 have their drains connected to the sources of the field effect transistors 23 and 24, respectively, their gates connected to a bias 3  voltage and their sources connected to the supply voltage terminal 21. The output 30 is connected to the drain of the field effect transistor 22. 
     If the devices making up the operational amplifier 20 were all perfectly matched, the currents I 4  and I 5  would be equal and an output current I 0  would equal zero when the noninverting and inverting input voltages are equal at the gates of the field effect transistors 14 and 15, respectively. In this ideal case, no offset voltage would exist between inverting and noninverting input voltages. Because the devices making up the operational amplifier 20 are not prefectly matched, the current I 0  is not equal to zero since the current I 4  is not equal to the current I 5 . The output current I 0  could be adjusted to equal zero by making the currents I A  and I B  unequal so that I 4&#39;  would equal I 5&#39;  (wherein I 4&#39;  is equal to I 4+  I A  and I 5&#39;  is equal to I 5  +I B ). The difference between the inverting and noninverting voltages to accomplish this would then be the offset voltage. 
     Because it is desireable to have an offset voltage of zero volts, this method is not used. The adjustment of the null offset in the operational amplifier 20 is made by controlling the current I 4  with respect to the current I 5  in the cascode current mirror 12 by reducing the current I 4  to equal the current I 5 . The operational amplifier 20 is designed to ensure the current I 4  is greater than the current I 5 , and the output current I 0  is equal to I 5  --I 5&#39; . The current I IN  /N going into the current divider 9 is ramped up which reduces the current I 4  by the amount equal to I IN  /N. The current I 4  is reduced until the current I 0  is equal to zero while the noninverting and inverting input voltages are equal (i.e., zero offset voltage). It should be appreciated that the devices 2 through 8 of FIG. 1 could be added to the operational amplifier 20 in like manner for the purpose of null offset adjustment. 
     FIG. 3 is a block diagram of the preferred embodiment of the present invention comprising the operational amplifier 20 with an additional driver stage 43, compensation capacitor 41, transmission gate 42, and inverter 44. These components would typically be integrated into a single operational amplifier 40. The operational amplifier 20 has an offset adjust terminal 27 for controlling the null offset adjustment and has its output 30 connected as a driver node to the input of the driver stage 43 and to a terminal 45 of the capacitor 41. The transmission gate 42 has a first current carrying electrode connected to a terminal 46 of the capacitor 41 and a second current carrying electrode connected to the output 47 of the driver stage 43. The inverting control input of the transmission gate 42 is connected to the output of the inverter 44, and the noninverting control input is connected to the input of the inverter 44. A control signal applied to the input of the inverter 44 causes the transmission gate 42 to turn on and off. 
     The null offset adjustment is made as before except that the compensation capacitor 41 is switched out of the circuit 40 by turning the transmission gate 42 off by the control signal. The compensation capacitor 41 is typically used to improve the stability of the operational amplifier 40 and is not necessary to perform null offset adjustment. The speed of the output signal is made much slower with the compensation capacitor 41 switched in since the current I IN  /N is changed in such small increments. With the capacitor switched out, the operational amplifier 40 is uncompensated and operates as a comparator. The resistance of the transmission gate 42 when it is switched on may be used to further improve the stability of the operational amplifier 40. The null offset adjustment may now be digitally set very quickly without degrading the common mode input voltage. 
     By now it should be appreciated that there has been provided an operational amplifier having a digitally offset null that may be quickly adjusted and does not decrease the common mode input range.
An operational amplifier is provided having a null offset that may be digitally adjusted quickly and accurately. The operational amplifier includes a cascode current mirror in an output stage wherein a small portion of current in the cascode current mirror is diverted away into a digitally controlled current divider. The more current that is diverted away, the larger the differential voltage that is created between the inverting and noninverting inputs of the operational amplifier. The current is increased until the output of the operational amplifier switches from the positive supply voltage to the ground supply voltage or vise versa. Additionally, a compensation capacitor at the output of the operational amplifier is switched out of the circuit during adjustment to speed up the null offset adjustment. Because the current being adjusted is not directly at the inputs of the operational amplifier the common mode input range is not deteriorated.